Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
91fe471
Release 1.3.0
zlareb1 Nov 17, 2026
7086580
Prepare release 1.3.0 with plugin 1.2.30 (#809)
zlareb1 Nov 18, 2026
9fffa2e
Prepare release 1.3.0 from current main
zlareb1 Nov 18, 2026
1a6858f
Gateway bearer tests isolate their clock
zlareb1 Nov 18, 2026
bfc634a
Release preparation includes isolated bearer test clocks
zlareb1 Nov 18, 2026
d26a8e9
Restore mirror failure tests to their request context
zlareb1 Nov 18, 2026
b85d8f4
Install Node tooling from integrity-locked package trees
zlareb1 Nov 18, 2026
bb9396e
Keep Node security tooling on the isolated request-context baseline
zlareb1 Nov 18, 2026
7f43d38
Bind locked native tools without vendor lifecycle downloads
zlareb1 Nov 18, 2026
40b8953
Validate native package containment before reading metadata
zlareb1 Nov 18, 2026
ad64a7d
Prepare release 1.3.0 from current main (#845)
zlareb1 Nov 18, 2026
4a15416
Release preparation retains its approved branch history
zlareb1 Nov 18, 2026
59da2c2
Release 1.3.0 pins the server and plugin minimum
zlareb1 Nov 18, 2026
77fc975
Release preparation retains native coordination transport
zlareb1 Nov 18, 2026
28115a2
Release preparation includes translated documentation
zlareb1 Nov 18, 2026
15105cb
Require witnessed requests in hook failure tests
zlareb1 Nov 18, 2026
fb0a633
Release preparation includes current source and hook failure tests
zlareb1 Nov 18, 2026
d46014e
Release preparation includes current account and callback contracts
zlareb1 Nov 18, 2026
19e3505
test: cover parent-state filtering of conversation chunks
zlareb1 Nov 18, 2026
c6fcf9e
Exclude conversation chunks whose known parent is not served
zlareb1 Nov 18, 2026
f4e8e5f
Keep the vector candidate shape check specific to its table
zlareb1 Nov 18, 2026
5d88087
Merge remote-tracking branch 'origin/main' into fix/chunk-parent-serv…
zlareb1 Nov 18, 2026
64ca4c8
Regenerate chunk SQL shapes and align fixtures with canonical memory …
zlareb1 Nov 18, 2026
f8d22e2
Keep conversation chunk identities aligned with their parent writes
zlareb1 Nov 18, 2026
302d444
Generate the chunk SQL snapshot with complete schema metadata
zlareb1 Nov 18, 2026
087643b
Bind anonymous chunk identities without producing unreadable keys
zlareb1 Nov 18, 2026
a17e623
Keep chunk SQL snapshots and neighbour checks aligned with parent ide…
zlareb1 Nov 18, 2026
78ca672
Release preparation includes current SDK and source contracts
zlareb1 Nov 18, 2026
22d98e6
Keep blank-session chunk identities independent
zlareb1 Nov 18, 2026
313cb39
Compare chunk session UUIDs in their stored hex format
zlareb1 Nov 18, 2026
9e8076f
Populate codec-sized vectors in chunk parent integration fixtures
zlareb1 Nov 18, 2026
bddb970
Release checks install every declared SDK integration
zlareb1 Nov 18, 2026
29b79c9
Compose current memory controls into Release 1.3.0
zlareb1 Nov 18, 2026
4fed9ad
Compose reviewed chunk eligibility into Release 1.3.0
zlareb1 Nov 18, 2026
b16bff0
Release regressions retain their interpreter and parent predicate
zlareb1 Nov 18, 2026
35cd0ec
Compose the merged SDK cancellation regression into Release 1.3.0
zlareb1 Nov 18, 2026
da03d5c
Compose merged framework packaging and plugin guidance into Release 1…
zlareb1 Nov 18, 2026
ca4210c
Compose locked tooling with the release SDK acceptance matrix
zlareb1 Nov 18, 2026
be8c48f
Include current CLI and documentation changes in Release 1.3.0
zlareb1 Nov 19, 2026
aacda75
Qualify the complete Release 1.3.0 source against current main
zlareb1 Nov 19, 2026
0ac23d6
Prepare 1.3.0 with the scoped team-memory guide
zlareb1 Nov 19, 2026
4317834
Include the published citation walkthrough in 1.3.0
zlareb1 Nov 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "loom-code-skill",
"version": "1.2.0",
"version": "1.3.0",
"description": "Code search and code intelligence for repositories in a Loom code index (the loom-code Agent Skill: code.* first, then read only that), and the loom Agent Skill: how an agent uses Loom. Skills only, no hooks.",
"author": { "name": "ClickHouse" },
"homepage": "https://clickhouse.github.io/loom/",
Expand Down
2 changes: 1 addition & 1 deletion .cursor-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clickhouse-loom",
"version": "1.2.0",
"version": "1.3.0",
"displayName": "ClickHouse Loom",
"description": "Shared long-term memory, document search and a code index for Cursor from a self-hosted ClickHouse Loom server, over MCP, with the loom and loom-code skills that say when to recall, save and ask the code index.",
"author": { "name": "ClickHouse" },
Expand Down
153 changes: 153 additions & 0 deletions .devcontainer/agent-cli/bind-native.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
#!/usr/bin/env node
const fs = require("node:fs");
const path = require("node:path");
const { execFileSync } = require("node:child_process");

function hostPlatform() {
let arch = process.arch;
if (process.platform === "darwin" && arch === "x64") {
try {
if (
execFileSync("/usr/sbin/sysctl", ["-n", "sysctl.proc_translated"], {
encoding: "utf8",
timeout: 1000,
stdio: ["ignore", "pipe", "ignore"],
}).trim() === "1"
)
arch = "arm64";
} catch (error) {
if (error.status !== 1) throw error;
}
}
const musl = process.platform === "linux" && !process.report.getReport().header.glibcVersionRuntime;
return { platform: process.platform, arch, musl };
}

function nativeInfo(tool, { platform, arch, musl = false }) {
if (!["x64", "arm64"].includes(arch)) throw new Error(`Unsupported native architecture: ${arch}`);
const abi = platform === "linux" && musl ? "-musl" : "";
const exe = platform === "win32" ? ".exe" : "";
if (tool === "bun") {
const os = { win32: "windows", android: "linux" }[platform] || platform;
const cpu = arch === "arm64" ? "aarch64" : arch;
const suffix = platform === "android" ? "-android" : abi;
const baseline = arch === "x64" && platform !== "android" && platform !== "freebsd" ? "-baseline" : "";
return {
wrapper: "bun",
native: `@oven/bun-${os}-${cpu}${suffix}${baseline}`,
file: `bin/bun${exe}`,
targets: ["bin/bun.exe", "bin/bunx.exe"],
};
}
if (tool === "pnpm") {
return {
wrapper: "pnpm",
native: `@pnpm/exe.${platform}-${arch}${abi}`,
file: `pnpm${exe}`,
targets: ["pnpm", "pn", "pnpx", "pnx"].map((name) => name + exe),
};
}
if (tool === "claude") {
return {
wrapper: "@anthropic-ai/claude-code",
native: `@anthropic-ai/claude-code-${platform}-${arch}${abi}`,
file: `claude${exe}`,
targets: ["bin/claude.exe"],
};
}
throw new Error(`Unsupported native tool: ${tool}`);
}

function json(file) {
return JSON.parse(fs.readFileSync(file, "utf8"));
}

function inside(root, file) {
const relative = path.relative(root, file);
if (!relative || relative === ".." || relative.startsWith(".." + path.sep) || path.isAbsolute(relative))
throw new Error("Native package path leaves its locked project");
}

function bindingPlan(project, tool, host) {
const info = nativeInfo(tool, host);
const manifest = json(path.join(project, "package.json"));
const lock = json(path.join(project, "package-lock.json"));
const wrapperDir = fs.realpathSync(path.join(project, "node_modules", info.wrapper));
inside(project, wrapperDir);
const wrapper = json(path.join(wrapperDir, "package.json"));
const expected = manifest.dependencies?.[info.wrapper];
if (!expected || wrapper.name !== info.wrapper || wrapper.version !== expected)
throw new Error(`Native wrapper version mismatch: ${info.wrapper}`);
const declared = wrapper.optionalDependencies?.[info.native] || manifest.optionalDependencies?.[info.native];
const entry = lock.packages?.[`node_modules/${info.native}`];
if (
declared !== expected ||
entry?.version !== expected ||
!/^sha512-[A-Za-z0-9+/]{86}==$/.test(entry.integrity || "") ||
!entry.resolved?.startsWith("https://registry.npmjs.org/")
)
throw new Error(`Native package is absent from the locked graph: ${info.native}`);
const nativeDir = fs.realpathSync(path.join(project, "node_modules", info.native));
inside(project, nativeDir);
const native = json(path.join(nativeDir, "package.json"));
if (native.name !== info.native || native.version !== expected)
throw new Error(`Native package version mismatch: ${info.native}`);
const source = fs.realpathSync(path.join(nativeDir, info.file));
inside(nativeDir, source);
if (!fs.statSync(source).isFile() || fs.statSync(source).size === 0)
throw new Error(`Native binary is missing: ${info.native}`);
return { ...info, source, wrapperDir, host };
}

function placeBinary(source, destination) {
fs.mkdirSync(path.dirname(destination), { recursive: true });
const temporary = destination + ".loom-native";
fs.rmSync(temporary, { force: true });
try {
try {
fs.linkSync(source, temporary);
} catch (error) {
if (!["EXDEV", "EPERM"].includes(error.code)) throw error;
fs.copyFileSync(source, temporary, fs.constants.COPYFILE_FICLONE);
}
fs.chmodSync(temporary, 0o755);
fs.renameSync(temporary, destination);
} finally {
fs.rmSync(temporary, { force: true });
}
}

function bindNative(project, tools, host = hostPlatform()) {
project = fs.realpathSync(project);
const plans = tools.map((tool) => bindingPlan(project, tool, host));
for (const plan of plans) {
for (const target of plan.targets) {
const destination = path.join(plan.wrapperDir, target);
fs.mkdirSync(path.dirname(destination), { recursive: true });
const parent = fs.realpathSync(path.dirname(destination));
if (parent !== plan.wrapperDir) inside(plan.wrapperDir, parent);
placeBinary(plan.source, destination);
}
if (plan.wrapper === "pnpm" && host.platform === "win32") {
const file = path.join(plan.wrapperDir, "package.json");
const manifest = json(file);
manifest.bin = Object.fromEntries(["pnpm", "pn", "pnpx", "pnx"].map((name) => [name, name + ".exe"]));
const temporary = file + ".loom-native";
fs.writeFileSync(temporary, JSON.stringify(manifest, null, 2) + "\n");
fs.renameSync(temporary, file);
}
}
}

if (require.main === module) {
try {
const [project, ...tools] = process.argv.slice(2);
if (!project || tools.length === 0) throw new Error("Supply a locked project and native tools to bind");
bindNative(project, tools);
} catch (error) {
console.error(`Native tool installation refused: ${error.message}`);
process.exitCode = 1;
}
}

module.exports = { bindNative, nativeInfo };
142 changes: 142 additions & 0 deletions .devcontainer/agent-cli/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .devcontainer/agent-cli/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "loom-devcontainer-agent-cli",
"private": true,
"version": "0.0.0",
"dependencies": {
"@anthropic-ai/claude-code": "2.1.319"
}
}
5 changes: 4 additions & 1 deletion .devcontainer/start-loom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ fi
# is connected below, so the installer connects no agent.
LOOM_CONNECT=none sh "$installer"

npm install --global --silent @anthropic-ai/claude-code
script_dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
npm ci --prefix "$script_dir/agent-cli" --ignore-scripts --no-fund --no-audit
node "$script_dir/agent-cli/bind-native.cjs" "$script_dir/agent-cli" claude
npm install --global --offline --ignore-scripts --silent "$script_dir/agent-cli/node_modules/@anthropic-ai/claude-code"
claude plugin marketplace list 2>/dev/null | grep -Eq '[[:space:]]loom$' \
|| claude plugin marketplace add ClickHouse/loom
claude plugin install loom@loom
Expand Down
Loading
Loading