@bastani/atomic 0.9.38-alpha.8 → 0.9.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/CHANGELOG.md +112 -0
  2. package/dist/builtin/intercom/CHANGELOG.md +10 -0
  3. package/dist/builtin/intercom/package.json +1 -1
  4. package/dist/builtin/mcp/package.json +1 -1
  5. package/dist/builtin/subagents/CHANGELOG.md +10 -0
  6. package/dist/builtin/subagents/package.json +1 -1
  7. package/dist/builtin/web-access/CHANGELOG.md +7 -0
  8. package/dist/builtin/web-access/package.json +1 -1
  9. package/dist/builtin/workflows/CHANGELOG.md +60 -0
  10. package/dist/builtin/workflows/package.json +1 -1
  11. package/dist/builtin/workflows/src/extension/index.bundle.mjs +5 -0
  12. package/dist/core/agent-session-prompt.d.ts.map +1 -1
  13. package/dist/core/agent-session-prompt.js +57 -15
  14. package/dist/core/agent-session-prompt.js.map +1 -1
  15. package/dist/core/queued-input-admission.d.ts +20 -0
  16. package/dist/core/queued-input-admission.d.ts.map +1 -0
  17. package/dist/core/queued-input-admission.js +55 -0
  18. package/dist/core/queued-input-admission.js.map +1 -0
  19. package/dist/core/storage/session/legacy-session-store.d.ts +6 -3
  20. package/dist/core/storage/session/legacy-session-store.d.ts.map +1 -1
  21. package/dist/core/storage/session/legacy-session-store.js +26 -12
  22. package/dist/core/storage/session/legacy-session-store.js.map +1 -1
  23. package/dist/core/storage/session/legacy-session-summary.d.ts +11 -0
  24. package/dist/core/storage/session/legacy-session-summary.d.ts.map +1 -0
  25. package/dist/core/storage/session/legacy-session-summary.js +103 -0
  26. package/dist/core/storage/session/legacy-session-summary.js.map +1 -0
  27. package/dist/extensions/mcp/client/transports/streamable-http.js +9 -8
  28. package/dist/extensions/mcp/client/transports/streamable-http.js.map +1 -1
  29. package/dist/main-session.d.ts.map +1 -1
  30. package/dist/main-session.js +4 -1
  31. package/dist/main-session.js.map +1 -1
  32. package/dist/modes/interactive/components/chat-session-host-actions.d.ts +4 -0
  33. package/dist/modes/interactive/components/chat-session-host-actions.d.ts.map +1 -1
  34. package/dist/modes/interactive/components/chat-session-host-actions.js +104 -30
  35. package/dist/modes/interactive/components/chat-session-host-actions.js.map +1 -1
  36. package/dist/modes/interactive/components/chat-session-host-events.d.ts.map +1 -1
  37. package/dist/modes/interactive/components/chat-session-host-events.js +1 -0
  38. package/dist/modes/interactive/components/chat-session-host-events.js.map +1 -1
  39. package/dist/modes/interactive/components/chat-session-host-state.d.ts +4 -0
  40. package/dist/modes/interactive/components/chat-session-host-state.d.ts.map +1 -1
  41. package/dist/modes/interactive/components/chat-session-host-state.js +4 -0
  42. package/dist/modes/interactive/components/chat-session-host-state.js.map +1 -1
  43. package/dist/modes/interactive/components/session-selector.js +4 -3
  44. package/dist/modes/interactive/components/session-selector.js.map +1 -1
  45. package/dist/modes/interactive/interactive-input-handling.js +8 -2
  46. package/dist/modes/interactive/interactive-input-handling.js.map +1 -1
  47. package/dist/modes/interactive/interactive-mode-base.d.ts +4 -0
  48. package/dist/modes/interactive/interactive-mode-base.d.ts.map +1 -1
  49. package/dist/modes/interactive/interactive-mode-base.js +4 -0
  50. package/dist/modes/interactive/interactive-mode-base.js.map +1 -1
  51. package/dist/modes/interactive/interactive-process-lifecycle.js +8 -2
  52. package/dist/modes/interactive/interactive-process-lifecycle.js.map +1 -1
  53. package/dist/modes/interactive/interactive-queueing.js +94 -73
  54. package/dist/modes/interactive/interactive-queueing.js.map +1 -1
  55. package/dist/modes/interactive/interactive-session-runtime.js +1 -0
  56. package/dist/modes/interactive/interactive-session-runtime.js.map +1 -1
  57. package/docs/docs.json +5 -2
  58. package/docs/llama-cpp.md +94 -1
  59. package/docs/sessions.md +1 -1
  60. package/docs/usage.md +2 -0
  61. package/npm-shrinkwrap.json +32 -32
  62. package/package.json +3 -3
  63. package/docs/nvidia-rtx-llama-cpp.md +0 -101
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@bastani/atomic",
3
- "version": "0.9.38-alpha.8",
3
+ "version": "0.9.38",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@bastani/atomic",
9
- "version": "0.9.38-alpha.8",
9
+ "version": "0.9.38",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
- "@bastani/atomic-natives": "0.9.38-alpha.8",
13
- "@bastani/pi-ai": "0.9.38-alpha.8",
12
+ "@bastani/atomic-natives": "0.9.38",
13
+ "@bastani/pi-ai": "0.9.38",
14
14
  "@earendil-works/pi-agent-core": "1.3.0",
15
15
  "@earendil-works/pi-codemode": "1.3.0",
16
16
  "@earendil-works/pi-tui": "1.3.0",
@@ -427,18 +427,18 @@
427
427
  }
428
428
  },
429
429
  "node_modules/@bastani/atomic-natives": {
430
- "version": "0.9.38-alpha.8",
431
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives/-/atomic-natives-0.9.38-alpha.8.tgz",
430
+ "version": "0.9.38",
431
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives/-/atomic-natives-0.9.38.tgz",
432
432
  "license": "MIT",
433
433
  "optionalDependencies": {
434
- "@bastani/atomic-natives-darwin-arm64": "0.9.38-alpha.8",
435
- "@bastani/atomic-natives-darwin-x64": "0.9.38-alpha.8",
436
- "@bastani/atomic-natives-linux-arm64-gnu": "0.9.38-alpha.8",
437
- "@bastani/atomic-natives-linux-arm64-musl": "0.9.38-alpha.8",
438
- "@bastani/atomic-natives-linux-x64-gnu": "0.9.38-alpha.8",
439
- "@bastani/atomic-natives-linux-x64-musl": "0.9.38-alpha.8",
440
- "@bastani/atomic-natives-win32-arm64-msvc": "0.9.38-alpha.8",
441
- "@bastani/atomic-natives-win32-x64-msvc": "0.9.38-alpha.8"
434
+ "@bastani/atomic-natives-darwin-arm64": "0.9.38",
435
+ "@bastani/atomic-natives-darwin-x64": "0.9.38",
436
+ "@bastani/atomic-natives-linux-arm64-gnu": "0.9.38",
437
+ "@bastani/atomic-natives-linux-arm64-musl": "0.9.38",
438
+ "@bastani/atomic-natives-linux-x64-gnu": "0.9.38",
439
+ "@bastani/atomic-natives-linux-x64-musl": "0.9.38",
440
+ "@bastani/atomic-natives-win32-arm64-msvc": "0.9.38",
441
+ "@bastani/atomic-natives-win32-x64-msvc": "0.9.38"
442
442
  },
443
443
  "engines": {
444
444
  "bun": ">=1.4.2",
@@ -446,8 +446,8 @@
446
446
  }
447
447
  },
448
448
  "node_modules/@bastani/atomic-natives-darwin-arm64": {
449
- "version": "0.9.38-alpha.8",
450
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-arm64/-/atomic-natives-darwin-arm64-0.9.38-alpha.8.tgz",
449
+ "version": "0.9.38",
450
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-arm64/-/atomic-natives-darwin-arm64-0.9.38.tgz",
451
451
  "license": "MIT",
452
452
  "os": [
453
453
  "darwin"
@@ -458,8 +458,8 @@
458
458
  "optional": true
459
459
  },
460
460
  "node_modules/@bastani/atomic-natives-darwin-x64": {
461
- "version": "0.9.38-alpha.8",
462
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-x64/-/atomic-natives-darwin-x64-0.9.38-alpha.8.tgz",
461
+ "version": "0.9.38",
462
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-x64/-/atomic-natives-darwin-x64-0.9.38.tgz",
463
463
  "license": "MIT",
464
464
  "os": [
465
465
  "darwin"
@@ -470,8 +470,8 @@
470
470
  "optional": true
471
471
  },
472
472
  "node_modules/@bastani/atomic-natives-linux-arm64-gnu": {
473
- "version": "0.9.38-alpha.8",
474
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-gnu/-/atomic-natives-linux-arm64-gnu-0.9.38-alpha.8.tgz",
473
+ "version": "0.9.38",
474
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-gnu/-/atomic-natives-linux-arm64-gnu-0.9.38.tgz",
475
475
  "license": "MIT",
476
476
  "os": [
477
477
  "linux"
@@ -485,8 +485,8 @@
485
485
  "optional": true
486
486
  },
487
487
  "node_modules/@bastani/atomic-natives-linux-arm64-musl": {
488
- "version": "0.9.38-alpha.8",
489
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-musl/-/atomic-natives-linux-arm64-musl-0.9.38-alpha.8.tgz",
488
+ "version": "0.9.38",
489
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-musl/-/atomic-natives-linux-arm64-musl-0.9.38.tgz",
490
490
  "license": "MIT",
491
491
  "os": [
492
492
  "linux"
@@ -500,8 +500,8 @@
500
500
  "optional": true
501
501
  },
502
502
  "node_modules/@bastani/atomic-natives-linux-x64-gnu": {
503
- "version": "0.9.38-alpha.8",
504
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-gnu/-/atomic-natives-linux-x64-gnu-0.9.38-alpha.8.tgz",
503
+ "version": "0.9.38",
504
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-gnu/-/atomic-natives-linux-x64-gnu-0.9.38.tgz",
505
505
  "license": "MIT",
506
506
  "os": [
507
507
  "linux"
@@ -515,8 +515,8 @@
515
515
  "optional": true
516
516
  },
517
517
  "node_modules/@bastani/atomic-natives-linux-x64-musl": {
518
- "version": "0.9.38-alpha.8",
519
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-musl/-/atomic-natives-linux-x64-musl-0.9.38-alpha.8.tgz",
518
+ "version": "0.9.38",
519
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-musl/-/atomic-natives-linux-x64-musl-0.9.38.tgz",
520
520
  "license": "MIT",
521
521
  "os": [
522
522
  "linux"
@@ -530,8 +530,8 @@
530
530
  "optional": true
531
531
  },
532
532
  "node_modules/@bastani/atomic-natives-win32-arm64-msvc": {
533
- "version": "0.9.38-alpha.8",
534
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-arm64-msvc/-/atomic-natives-win32-arm64-msvc-0.9.38-alpha.8.tgz",
533
+ "version": "0.9.38",
534
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-arm64-msvc/-/atomic-natives-win32-arm64-msvc-0.9.38.tgz",
535
535
  "license": "MIT",
536
536
  "os": [
537
537
  "win32"
@@ -542,8 +542,8 @@
542
542
  "optional": true
543
543
  },
544
544
  "node_modules/@bastani/atomic-natives-win32-x64-msvc": {
545
- "version": "0.9.38-alpha.8",
546
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-x64-msvc/-/atomic-natives-win32-x64-msvc-0.9.38-alpha.8.tgz",
545
+ "version": "0.9.38",
546
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-x64-msvc/-/atomic-natives-win32-x64-msvc-0.9.38.tgz",
547
547
  "license": "MIT",
548
548
  "os": [
549
549
  "win32"
@@ -554,8 +554,8 @@
554
554
  "optional": true
555
555
  },
556
556
  "node_modules/@bastani/pi-ai": {
557
- "version": "0.9.38-alpha.8",
558
- "resolved": "https://registry.npmjs.org/@bastani/pi-ai/-/pi-ai-0.9.38-alpha.8.tgz",
557
+ "version": "0.9.38",
558
+ "resolved": "https://registry.npmjs.org/@bastani/pi-ai/-/pi-ai-0.9.38.tgz",
559
559
  "license": "MIT",
560
560
  "dependencies": {
561
561
  "@anthropic-ai/sdk": "0.129.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/atomic",
3
- "version": "0.9.38-alpha.8",
3
+ "version": "0.9.38",
4
4
  "description": "Atomic coding agent CLI with read, bash, edit, write tools and session management",
5
5
  "type": "module",
6
6
  "atomicConfig": {
@@ -89,8 +89,8 @@
89
89
  "prepublishOnly": "bun run clean && bun run build && bun run shrinkwrap"
90
90
  },
91
91
  "dependencies": {
92
- "@bastani/atomic-natives": "0.9.38-alpha.8",
93
- "@bastani/pi-ai": "0.9.38-alpha.8",
92
+ "@bastani/atomic-natives": "0.9.38",
93
+ "@bastani/pi-ai": "0.9.38",
94
94
  "@earendil-works/pi-agent-core": "1.3.0",
95
95
  "@earendil-works/pi-codemode": "1.3.0",
96
96
  "@earendil-works/pi-tui": "1.3.0",
@@ -1,101 +0,0 @@
1
- ---
2
- title: "Local models on NVIDIA RTX"
3
- description: "Convert NVIDIA llama.cpp recipes into router presets for Atomic."
4
- ---
5
-
6
- # Run Atomic with NVIDIA RTX and llama.cpp
7
-
8
- [NVIDIA Local AI Inference Recipes](https://nvidia.github.io/local-ai-inference-recipes/index.html) provides llama.cpp settings tuned for specific NVIDIA hardware and models. Each recipe gives a single-model `llama-server` command. Atomic works with the llama.cpp router, which can serve and manage several models, so this guide converts the recipe command into a router preset.
9
-
10
- The examples below use Windows PowerShell. See [Local Models with llama.cpp](/llama-cpp) for Atomic's complete router and model-management reference.
11
-
12
- ## Before you begin
13
-
14
- 1. Open the [recipe catalog](https://nvidia.github.io/local-ai-inference-recipes/index.html), select your hardware, operating system, and model, then choose **llama.cpp**. Check the prerequisites and memory requirements. Keep the recipe's launch command for the conversion below.
15
- 2. Install llama.cpp with the recipe's setup instructions. The recipe's settings depend on its build, for example CUDA support or speculative decoding options.
16
- 3. Run `llama-server --help` and check that it lists `--models-preset`. Without it, the build cannot load the recipe as a router preset. Use a newer build that still meets the recipe's requirements.
17
- 4. Install Atomic with the [Quickstart](/quickstart). On native Windows, also see [Run Atomic on Windows](/windows).
18
-
19
- ## Convert the recipe to a preset
20
-
21
- A preset lists the settings for one or more models. Each section name becomes the model ID shown in Atomic. Save the preset next to `llama-server`, or pass its full path when starting the router.
22
-
23
- Convert each option from the recipe command into one preset line:
24
-
25
- - Remove the leading dashes: `--ctx-size 65536` becomes `ctx-size = 65536`.
26
- - Write options without a value as `true`: `--jinja` becomes `jinja = true`.
27
- - Remove quotes and PowerShell line-continuation backticks around values.
28
- - Leave out `--host` and `--port`. They belong on the router command line.
29
- - Add `load-on-startup = true` so the router loads the model when it starts.
30
- - Replace short model-file options with their long preset keys:
31
-
32
- | Recipe option | Preset key |
33
- |---|---|
34
- | `-hf` | `hf-repo` |
35
- | `-hff` | `hf-file` |
36
- | `-hfrd` | `hf-repo-draft` |
37
- | `--spec-draft-model` | `spec-draft-model` |
38
-
39
- For example, this recipe command:
40
-
41
- ```powershell
42
- llama-server.exe -hf "unsloth/Qwen3.8-27B-GGUF" `
43
- -hff "Qwen3.8-27B-UD-Q4_K_M.gguf" `
44
- -hfrd "z-lab/Qwen3.8-27B-DFlash2-GGUF" `
45
- --spec-draft-model "Qwen3.8-27B-DFlash2-Q4_K_M.gguf" `
46
- --no-mmproj `
47
- --host 127.0.0.1 `
48
- --port 9931 `
49
- --batch-size 4096 `
50
- --ubatch-size 1024 `
51
- --ctx-size 65536 `
52
- --parallel 1 `
53
- -ngl 999 `
54
- --jinja `
55
- --chat-template-kwargs '{"preserve_thinking":true}' `
56
- --spec-type draft-dflash `
57
- --spec-draft-n-max 7 `
58
- --spec-draft-backend-sampling
59
- ```
60
-
61
- becomes `qwen3.8-27b.ini`:
62
-
63
- ```ini
64
- version = 1
65
-
66
- [qwen3.8-27b]
67
- load-on-startup = true
68
- hf-repo = unsloth/Qwen3.8-27B-GGUF
69
- hf-file = Qwen3.8-27B-UD-Q4_K_M.gguf
70
- hf-repo-draft = z-lab/Qwen3.8-27B-DFlash2-GGUF
71
- spec-draft-model = Qwen3.8-27B-DFlash2-Q4_K_M.gguf
72
- no-mmproj = true
73
- batch-size = 4096
74
- ubatch-size = 1024
75
- ctx-size = 65536
76
- parallel = 1
77
- ngl = 999
78
- jinja = true
79
- chat-template-kwargs = {"preserve_thinking":true}
80
- spec-type = draft-dflash
81
- spec-draft-n-max = 7
82
- spec-draft-backend-sampling = true
83
- ```
84
-
85
- ## Start the router
86
-
87
- Open PowerShell in the llama.cpp folder and run:
88
-
89
- ```powershell
90
- .\llama-server.exe --models-preset qwen3.8-27b.ini --host 127.0.0.1 --port 8080
91
- ```
92
-
93
- If the recipe requires a Hugging Face token, set `$env:HF_TOKEN` in the same PowerShell window before starting the router. On its first start, the router downloads the model files.
94
-
95
- Use the [router health checks](/llama-cpp#troubleshooting) to confirm that the server is ready. In Windows PowerShell, use `curl.exe` rather than `curl`, which PowerShell maps to a different command. The model is ready when `/models` lists `qwen3.8-27b` with the status `loaded`.
96
-
97
- ## Use the model in Atomic
98
-
99
- Follow [Configure Atomic](/llama-cpp#configure-atomic) and connect to `http://127.0.0.1:8080`. The preset section name is the model ID, so select `qwen3.8-27b` in `/model` for this example.
100
-
101
- NVIDIA recipe memory settings assume that only the selected model uses the GPU. If `/llama` shows other loaded models, unload them before using the recipe model.