diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md index dec21ac..b11f3a6 100644 --- a/THIRD_PARTY_NOTICES.md +++ b/THIRD_PARTY_NOTICES.md @@ -10,7 +10,7 @@ do not edit by hand. | @ai-sdk/provider | 2.0.5 | Apache-2.0 | | @ai-sdk/provider-utils | 3.0.39 | Apache-2.0 | | @alcalzone/ansi-tokenize | 0.3.1 | MIT | -| @atomic-chat/core | 0.23.4 | MIT | +| @atomic-chat/core | 0.24.2 | MIT | | @fastify/busboy | 2.1.1 | MIT | | @isaacs/fs-minipass | 4.0.1 | ISC | | @nodable/entities | 3.1.0 | MIT | @@ -245,7 +245,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ```` -## @atomic-chat/core 0.23.4 +## @atomic-chat/core 0.24.2 License: MIT diff --git a/bun.lock b/bun.lock index 0ba89b5..41504b9 100644 --- a/bun.lock +++ b/bun.lock @@ -5,7 +5,7 @@ "": { "name": "@atomicbot-ai/atc", "dependencies": { - "@atomic-chat/core": "0.23.4", + "@atomic-chat/core": "0.24.2", "fast-xml-parser": "5.11.2", "fflate": "0.8.3", "ink": "^7.1.1", @@ -63,9 +63,6 @@ }, }, }, - "patchedDependencies": { - "@atomic-chat/core@0.23.4": "patches/@atomic-chat%2Fcore@0.23.4.patch", - }, "packages": { "@adobe/css-tools": ["@adobe/css-tools@4.5.0", "", {}, "sha512-6OzddxPio9UiWTCemp4N8cYLV2ZN1ncRnV1cVGtve7dhPOtRkleRyx32GQCYSwDYgaHU3USMm84tNsvKzRCa1Q=="], @@ -83,7 +80,7 @@ "@asamuzakjp/css-color": ["@asamuzakjp/css-color@3.2.0", "", { "dependencies": { "@csstools/css-calc": "^2.1.3", "@csstools/css-color-parser": "^3.0.9", "@csstools/css-parser-algorithms": "^3.0.4", "@csstools/css-tokenizer": "^3.0.3", "lru-cache": "^10.4.3" } }, "sha512-K1A6z8tS3XsmCMM86xoWdn7Fkdn9m6RSVtocUrJYIwZnFVkng/PvkEoWtOWmP+Scc6saYWHWZYbndEEXxl24jw=="], - "@atomic-chat/core": ["@atomic-chat/core@0.23.4", "", { "dependencies": { "@ai-sdk/openai-compatible": "^1.0.28", "ai": "^5.0.121", "smol-toml": "^1.9.1", "tar": "^7.4.3", "yaml": "^2.8.1", "yauzl": "^3.2.0" }, "bin": { "atomic-chat-core": "dist/cli/bin.js" } }, "sha512-G7Pe9h+FMxN7p5xYl3REYktG737E83XkG4PWSFKjtasY6c7shvxVdhquMD/Zbf+T99MxrkoIzYoYpQ+bNIJlGQ=="], + "@atomic-chat/core": ["@atomic-chat/core@0.24.2", "", { "dependencies": { "@ai-sdk/openai-compatible": "^1.0.28", "ai": "^5.0.121", "smol-toml": "^1.9.1", "tar": "^7.4.3", "yaml": "^2.8.1", "yauzl": "^3.2.0" }, "bin": { "atomic-chat-core": "dist/cli/bin.js" } }, "sha512-A6+qgn1aCIDUxmQ3ccgx/Oa2Gp3heo9iVhb6/9H2pU7js4YjhgOI/2+i1lXtI8tjoECWU8Iofs+YgC4WUsPeEA=="], "@atomicbot-ai/atc-admin-ui": ["@atomicbot-ai/atc-admin-ui@workspace:packages/admin-ui"], diff --git a/docs/decisions/2026-11-18-use-published-core-integrations.md b/docs/decisions/2026-11-18-use-published-core-integrations.md new file mode 100644 index 0000000..a6c334c --- /dev/null +++ b/docs/decisions/2026-11-18-use-published-core-integrations.md @@ -0,0 +1,12 @@ +--- +date: 2026-11-18 +title: "Use the published core integrations API" +--- + +# Use the published core integrations API + +- **Context:** Atomic Server initially exposed core's integrations and Muse launch arguments through a patch to the npm package. +- **Decision:** Pin the published core 0.24.2, which exports the integrations module and accepts the embedding endpoint in the Muse launch planner. +- **Consequences:** Bun installs the upstream package directly. Agent setup and launch keep using that package's integration logic. +- **Links:** [Configure agents through core](2026-11-17-configure-agents-through-core.md). +- **Owner:** team. diff --git a/docs/decisions/INDEX.md b/docs/decisions/INDEX.md index 403513d..67720e7 100644 --- a/docs/decisions/INDEX.md +++ b/docs/decisions/INDEX.md @@ -11,6 +11,8 @@ add a new one that says which record it supersedes. ## Records +- **2026-11-18** — [Use the published core integrations API](2026-11-18-use-published-core-integrations.md) — pin core 0.24.2 and remove the dependency patch. + - **2026-11-17** — [Configure agents through core](2026-11-17-configure-agents-through-core.md) — use the shared registry for host configuration and launches. - **2026-11-17** — [Show progress when opening terminal agent setup](2026-11-17-show-terminal-agent-setup-progress.md) — make the full agent card clickable and show the options check. diff --git a/docs/release.md b/docs/release.md index 84b5f40..edf0654 100644 --- a/docs/release.md +++ b/docs/release.md @@ -265,8 +265,9 @@ pwsh scripts/sign-windows-binary.ps1 dist\bin\atc-x86_64-pc-windows-msvc.exe dis `atc` embeds the core as the npm package `@atomic-chat/core` (repo `atomic-chat-core`, published by its release workflow) at an **exact** version, never a caret: the protocol and version checks make a silently -newer core unsafe. 0.23.4 is the pin. The Foundry Local and LiteRT-LM host entries (`./foundry-host` +newer core unsafe. 0.24.2 is the pin. The Foundry Local and LiteRT-LM host entries (`./foundry-host` and `./litert-host`) run before command parsing in `src/bin.ts`, including in the compiled binary. +Core 0.24.2 exports `./integrations`, including the Muse launch arguments for an embedding server. The core also exports the provider setting schemas (`./settings`), `readWindowsAcl` in `./host`, and a PrismML catalog that picks the build for a file's `requires`/`min_build`. Since 0.17.0 the core downloads no model files and exports no downloader (ADR @@ -277,7 +278,7 @@ limit on remote GGUF reads (`remoteGgufTimeoutMs`); `startDaemon` passes both op ```jsonc // package.json -"dependencies": { "@atomic-chat/core": "0.23.4" } +"dependencies": { "@atomic-chat/core": "0.24.2" } ``` To bump the core: `bun add --exact @atomic-chat/core@`, run `npm run verify`, and commit the bump diff --git a/package.json b/package.json index 8068701..c723aa6 100644 --- a/package.json +++ b/package.json @@ -46,16 +46,13 @@ "verify": "npm run lint && npm run typecheck && npm run format:check && node scripts/gen-third-party-notices.mjs --check && npm test && npm run test:ui && npm run build && npm run build:ui && npm run build:bin && npm run test:e2e && npm run test:e2e:web && npm run test:runtime-compat && npm run test:installers" }, "dependencies": { - "@atomic-chat/core": "0.23.4", + "@atomic-chat/core": "0.24.2", "fast-xml-parser": "5.11.2", "fflate": "0.8.3", "ink": "^7.1.1", "pdfjs-dist": "4.8.69", "react": "^19.2.0" }, - "patchedDependencies": { - "@atomic-chat/core@0.23.4": "patches/@atomic-chat%2Fcore@0.23.4.patch" - }, "devDependencies": { "@eslint/js": "^9.36.0", "@types/node": "^22.18.0", diff --git a/patches/@atomic-chat%2Fcore@0.23.4.patch b/patches/@atomic-chat%2Fcore@0.23.4.patch deleted file mode 100644 index 4b0e5d2..0000000 --- a/patches/@atomic-chat%2Fcore@0.23.4.patch +++ /dev/null @@ -1,40 +0,0 @@ -diff --git a/package.json b/package.json ---- a/package.json -+++ b/package.json -@@ -31,6 +31,10 @@ - "types": "./dist/host/index.d.ts", - "import": "./dist/host/index.js" - }, -+ "./integrations": { -+ "types": "./dist/integrations/index.d.ts", -+ "import": "./dist/integrations/index.js" -+ }, - "./models": { - "types": "./dist/models/index.d.ts", - "import": "./dist/models/index.js" -diff --git a/dist/integrations/catalog.js b/dist/integrations/catalog.js ---- a/dist/integrations/catalog.js -+++ b/dist/integrations/catalog.js -@@ -331,7 +331,9 @@ - * The arguments that start `agent` on `model`: its fixed `runArgs`, plus `--model atomic/` for - * Kilo, which otherwise opens on the model it last used before the one its config selects. - */ --export function runArgsFor(agent, model) { -+export function runArgsFor(agent, model, apiUrl) { -+ if (agent.id === 'muse' && apiUrl) -+ return ['--provider', 'meta', '--base-url', apiUrl, ...(model ? ['--model', model] : [])]; - return agent.id === 'kilo' && model ? ['--model', `atomic/${model}`, ...agent.runArgs] : [...agent.runArgs]; - } - /** -diff --git a/dist/integrations/catalog.d.ts b/dist/integrations/catalog.d.ts ---- a/dist/integrations/catalog.d.ts -+++ b/dist/integrations/catalog.d.ts -@@ -63,7 +63,7 @@ - * The arguments that start `agent` on `model`: its fixed `runArgs`, plus `--model atomic/` for - * Kilo, which otherwise opens on the model it last used before the one its config selects. - */ --export declare function runArgsFor(agent: Agent, model: string): string[]; -+export declare function runArgsFor(agent: Agent, model: string, apiUrl?: string): string[]; - /** - * Poolside's docs give the standalone base URL with its API prefix (`/v1`), so it is kept; only - * surrounding whitespace and trailing slashes go.