@diffexai/diffex 0.2.3 → 0.2.5

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 (83) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +1 -1
  3. package/dist/AGENTS.md +0 -4
  4. package/dist/core/agent-session.d.ts +0 -1
  5. package/dist/core/agent-session.js +3 -10
  6. package/dist/core/sdk.js +1 -1
  7. package/dist/core/system-prompt-production.d.ts +7 -0
  8. package/dist/core/system-prompt-production.js +108 -0
  9. package/dist/core/system-prompt.d.ts +2 -2
  10. package/dist/core/system-prompt.js +34 -28
  11. package/dist/core/tools/subagents.js +22 -9
  12. package/dist/modes/interactive/interactive-mode.js +2 -19
  13. package/dist/modes/print-mode.js +12 -14
  14. package/dist/node_modules/@diffexai/diffex-agent-core/distribution-components.json +4 -4
  15. package/dist/node_modules/@diffexai/diffex-agent-core/distribution-files.json +1 -1
  16. package/dist/node_modules/@diffexai/diffex-agent-core/package.json +1 -1
  17. package/dist/node_modules/@diffexai/diffex-ai/dist/providers/data/.manifest.json +1 -1
  18. package/dist/node_modules/@diffexai/diffex-ai/dist/providers/data/amazon-bedrock.json +1 -1
  19. package/dist/node_modules/@diffexai/diffex-ai/dist/providers/data/cloudflare-ai-gateway.json +1 -1
  20. package/dist/node_modules/@diffexai/diffex-ai/dist/providers/data/fireworks.json +1 -1
  21. package/dist/node_modules/@diffexai/diffex-ai/dist/providers/data/nvidia.json +1 -1
  22. package/dist/node_modules/@diffexai/diffex-ai/dist/providers/data/opencode-go.json +1 -1
  23. package/dist/node_modules/@diffexai/diffex-ai/dist/providers/data/opencode.json +1 -1
  24. package/dist/node_modules/@diffexai/diffex-ai/dist/providers/data/openrouter.json +1 -1
  25. package/dist/node_modules/@diffexai/diffex-ai/dist/providers/data/qwen-token-plan-cn.json +1 -1
  26. package/dist/node_modules/@diffexai/diffex-ai/dist/providers/data/qwen-token-plan.json +1 -1
  27. package/dist/node_modules/@diffexai/diffex-ai/dist/providers/data/vercel-ai-gateway.json +1 -1
  28. package/dist/node_modules/@diffexai/diffex-ai/distribution-components.json +3 -3
  29. package/dist/node_modules/@diffexai/diffex-ai/distribution-files.json +12 -12
  30. package/dist/node_modules/@diffexai/diffex-ai/package.json +1 -1
  31. package/dist/node_modules/@diffexai/diffex-client/distribution-components.json +3 -3
  32. package/dist/node_modules/@diffexai/diffex-client/distribution-files.json +1 -1
  33. package/dist/node_modules/@diffexai/diffex-client/package.json +1 -1
  34. package/dist/node_modules/@diffexai/diffex-harness-state/distribution-components.json +2 -2
  35. package/dist/node_modules/@diffexai/diffex-harness-state/distribution-files.json +1 -1
  36. package/dist/node_modules/@diffexai/diffex-harness-state/package.json +1 -1
  37. package/dist/node_modules/@diffexai/diffex-protocol/distribution-components.json +2 -2
  38. package/dist/node_modules/@diffexai/diffex-protocol/distribution-files.json +1 -1
  39. package/dist/node_modules/@diffexai/diffex-protocol/package.json +1 -1
  40. package/dist/node_modules/@diffexai/diffex-telemetry/distribution-components.json +2 -2
  41. package/dist/node_modules/@diffexai/diffex-telemetry/distribution-files.json +1 -1
  42. package/dist/node_modules/@diffexai/diffex-telemetry/package.json +1 -1
  43. package/dist/node_modules/@diffexai/diffex-tui/distribution-components.json +2 -2
  44. package/dist/node_modules/@diffexai/diffex-tui/distribution-files.json +1 -1
  45. package/dist/node_modules/@diffexai/diffex-tui/package.json +1 -1
  46. package/dist/server/create-harness.js +1 -1
  47. package/distribution-components.json +11 -11
  48. package/distribution-files.json +51 -43
  49. package/npm-shrinkwrap.json +2 -2
  50. package/package.json +1 -31
  51. package/release/distribution-manifest.json +4 -4
  52. package/release/install-package-lock.json +5 -5
  53. package/release/install-package.json +2 -2
  54. package/docs/compaction.md +0 -401
  55. package/docs/containerization.md +0 -84
  56. package/docs/custom-provider.md +0 -774
  57. package/docs/environment-variables.md +0 -88
  58. package/docs/evolution.md +0 -90
  59. package/docs/extensions.md +0 -2982
  60. package/docs/images/interactive-mode.png +0 -0
  61. package/docs/images/tree-view.png +0 -0
  62. package/docs/installation.md +0 -118
  63. package/docs/json.md +0 -91
  64. package/docs/keybindings.md +0 -241
  65. package/docs/llama-cpp.md +0 -99
  66. package/docs/models.md +0 -565
  67. package/docs/packages.md +0 -232
  68. package/docs/prompt-templates.md +0 -96
  69. package/docs/providers.md +0 -317
  70. package/docs/quickstart.md +0 -161
  71. package/docs/rpc.md +0 -1647
  72. package/docs/sdk.md +0 -1332
  73. package/docs/security.md +0 -66
  74. package/docs/session-format.md +0 -438
  75. package/docs/sessions.md +0 -162
  76. package/docs/settings.md +0 -341
  77. package/docs/shell-aliases.md +0 -13
  78. package/docs/skills.md +0 -227
  79. package/docs/terminal-setup.md +0 -152
  80. package/docs/themes.md +0 -326
  81. package/docs/tmux.md +0 -63
  82. package/docs/tui.md +0 -940
  83. package/docs/usage.md +0 -434
@@ -1,8 +1,8 @@
1
1
  [
2
2
  {
3
3
  "name": "@diffexai/diffex-ai",
4
- "version": "0.2.3",
5
- "sourceCommit": "a9a2beea7798edd34c62e836d73a0d50b6260950",
4
+ "version": "0.2.5",
5
+ "sourceCommit": "823b91ffb444aa4ba189fa85fa3b0de13b103909",
6
6
  "license": "Apache-2.0",
7
7
  "portions": "Diffex contributions; Pi-derived portions retain MIT terms in LICENSE",
8
8
  "notice": "LICENSE",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  {
22
22
  "name": "@diffexai/diffex-telemetry",
23
- "version": "^0.2.3",
23
+ "version": "^0.2.5",
24
24
  "distribution": "resolved separately by package manager; not bundled in this npm tarball"
25
25
  },
26
26
  {
@@ -1,5 +1,5 @@
1
1
  {
2
- "sourceCommit": "a9a2beea7798edd34c62e836d73a0d50b6260950",
2
+ "sourceCommit": "823b91ffb444aa4ba189fa85fa3b0de13b103909",
3
3
  "algorithm": "sha256",
4
4
  "files": [
5
5
  {
@@ -676,11 +676,11 @@
676
676
  },
677
677
  {
678
678
  "path": "dist/providers/data/.manifest.json",
679
- "sha256": "4786d8d79b58eb3741266c39807f9489b7ad8593d350f5da94cdccb0f97e8c58"
679
+ "sha256": "7356223d3749bc3a5b21bc8f797d07b00988cd3da06e07a49678d341c9aa5d1e"
680
680
  },
681
681
  {
682
682
  "path": "dist/providers/data/amazon-bedrock.json",
683
- "sha256": "8e0a8b7d5fe92926e402f0e690e19be3ea4366309c4ca2836fff420b380f73d5"
683
+ "sha256": "9d3eed9613b9b56f0c5f202a61b279a7168edf01bae6c3218a7ab28664ff80ea"
684
684
  },
685
685
  {
686
686
  "path": "dist/providers/data/ant-ling.json",
@@ -704,7 +704,7 @@
704
704
  },
705
705
  {
706
706
  "path": "dist/providers/data/cloudflare-ai-gateway.json",
707
- "sha256": "b558491cae89bc61ef95017e22a1ac3a1bd430d79ab779fb77391ca0a6b7849b"
707
+ "sha256": "356a2892803067a5d042c5abb87051edba46f7209589c625f8bcea8c7c5ce5c9"
708
708
  },
709
709
  {
710
710
  "path": "dist/providers/data/cloudflare-workers-ai.json",
@@ -716,7 +716,7 @@
716
716
  },
717
717
  {
718
718
  "path": "dist/providers/data/fireworks.json",
719
- "sha256": "8fc7c3887a4a8e49451cbe4f57fdb147b889d9cd5a1480c46eaaa6b95c299afc"
719
+ "sha256": "4c9055f7a2c5345b808bb561b07b227fc29148e0fb774c0ac50db2b34ab89aaf"
720
720
  },
721
721
  {
722
722
  "path": "dist/providers/data/github-copilot.json",
@@ -764,7 +764,7 @@
764
764
  },
765
765
  {
766
766
  "path": "dist/providers/data/nvidia.json",
767
- "sha256": "7459d845fd752fb70a9be5a28be44dc5e2873fbd788e9c931d3200731db42ba9"
767
+ "sha256": "2ff6862206269af88a694e627c4b54753055357710adaf49ac8518d102c17407"
768
768
  },
769
769
  {
770
770
  "path": "dist/providers/data/openai-codex.json",
@@ -776,19 +776,19 @@
776
776
  },
777
777
  {
778
778
  "path": "dist/providers/data/opencode-go.json",
779
- "sha256": "31c4434316c8a1b7fcc637b25f1147dd44da946a0b932ca10fb5ac594261dad7"
779
+ "sha256": "f6ef7d30054d5af88cb5604bbad21c5d706ff8a4283da3e9f36d2a781d1754cf"
780
780
  },
781
781
  {
782
782
  "path": "dist/providers/data/opencode.json",
783
- "sha256": "aa960b0665d65bf2b441ffdb727dbb640074d5232470c06df237f03b5efeacb0"
783
+ "sha256": "cb309aef8247a0c8717a4ad093927f584d61d25a7319e1b975b703f04c7b78a2"
784
784
  },
785
785
  {
786
786
  "path": "dist/providers/data/openrouter.json",
787
- "sha256": "64bd70583cd0db09283381b3e7cc10e8750ddcf8b168b6edc64540efe77070e6"
787
+ "sha256": "bb2b41a4007f5cffda2eb166f34d73f6d566f3501693d74994ebf48f18280634"
788
788
  },
789
789
  {
790
790
  "path": "dist/providers/data/qwen-token-plan-cn.json",
791
- "sha256": "b18db950e464e8ea7fd5ef073ac2fe8445d28cf35a7dc2927ae366ac9dc6c8dc"
791
+ "sha256": "a50420854a624ea82155d9621cd88d6cbd7802498d28fb1fd317eb7a1bc26cc7"
792
792
  },
793
793
  {
794
794
  "path": "dist/providers/data/qwen-token-plan-individual.json",
@@ -796,7 +796,7 @@
796
796
  },
797
797
  {
798
798
  "path": "dist/providers/data/qwen-token-plan.json",
799
- "sha256": "fe914313157ff41ab2f71977f0fdcfedb3a8a205d1092e3180f6799e5d7942fd"
799
+ "sha256": "24285f68b2350aa1d98ecaeafe0914bce97940fe8798eff20f2a5c6d8c26bd6f"
800
800
  },
801
801
  {
802
802
  "path": "dist/providers/data/together.json",
@@ -804,7 +804,7 @@
804
804
  },
805
805
  {
806
806
  "path": "dist/providers/data/vercel-ai-gateway.json",
807
- "sha256": "66d7477cdca2297252ad79531f11a1bf60b755f2f19fc051180042c9f6d5e40e"
807
+ "sha256": "3f61c5e49ac610838559b8108f287e5c983ad3b8651863c7ddfdf40969dd5346"
808
808
  },
809
809
  {
810
810
  "path": "dist/providers/data/xai.json",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diffexai/diffex-ai",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "Unified LLM API with automatic model discovery and provider configuration",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,8 +1,8 @@
1
1
  [
2
2
  {
3
3
  "name": "@diffexai/diffex-client",
4
- "version": "0.2.3",
5
- "sourceCommit": "a9a2beea7798edd34c62e836d73a0d50b6260950",
4
+ "version": "0.2.5",
5
+ "sourceCommit": "823b91ffb444aa4ba189fa85fa3b0de13b103909",
6
6
  "license": "Apache-2.0",
7
7
  "portions": "Diffex contributions; Pi-derived portions retain MIT terms in LICENSE",
8
8
  "notice": "LICENSE",
@@ -10,7 +10,7 @@
10
10
  },
11
11
  {
12
12
  "name": "@diffexai/diffex-protocol",
13
- "version": "^0.2.3",
13
+ "version": "^0.2.5",
14
14
  "distribution": "resolved separately by package manager; not bundled in this npm tarball"
15
15
  }
16
16
  ]
@@ -1,5 +1,5 @@
1
1
  {
2
- "sourceCommit": "a9a2beea7798edd34c62e836d73a0d50b6260950",
2
+ "sourceCommit": "823b91ffb444aa4ba189fa85fa3b0de13b103909",
3
3
  "algorithm": "sha256",
4
4
  "files": [
5
5
  {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diffexai/diffex-client",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "Transport-neutral client for remote Diffex sessions over framed CBOR bytes",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,8 +1,8 @@
1
1
  [
2
2
  {
3
3
  "name": "@diffexai/diffex-harness-state",
4
- "version": "0.2.3",
5
- "sourceCommit": "a9a2beea7798edd34c62e836d73a0d50b6260950",
4
+ "version": "0.2.5",
5
+ "sourceCommit": "823b91ffb444aa4ba189fa85fa3b0de13b103909",
6
6
  "license": "Apache-2.0",
7
7
  "portions": "Diffex contributions; Pi-derived portions retain MIT terms in LICENSE",
8
8
  "notice": "LICENSE",
@@ -1,5 +1,5 @@
1
1
  {
2
- "sourceCommit": "a9a2beea7798edd34c62e836d73a0d50b6260950",
2
+ "sourceCommit": "823b91ffb444aa4ba189fa85fa3b0de13b103909",
3
3
  "algorithm": "sha256",
4
4
  "files": [
5
5
  {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diffexai/diffex-harness-state",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "Persistent harness state schema and bundle storage for Diffex",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,8 +1,8 @@
1
1
  [
2
2
  {
3
3
  "name": "@diffexai/diffex-protocol",
4
- "version": "0.2.3",
5
- "sourceCommit": "a9a2beea7798edd34c62e836d73a0d50b6260950",
4
+ "version": "0.2.5",
5
+ "sourceCommit": "823b91ffb444aa4ba189fa85fa3b0de13b103909",
6
6
  "license": "Apache-2.0",
7
7
  "portions": "Diffex contributions; Pi-derived portions retain MIT terms in LICENSE",
8
8
  "notice": "LICENSE",
@@ -1,5 +1,5 @@
1
1
  {
2
- "sourceCommit": "a9a2beea7798edd34c62e836d73a0d50b6260950",
2
+ "sourceCommit": "823b91ffb444aa4ba189fa85fa3b0de13b103909",
3
3
  "algorithm": "sha256",
4
4
  "files": [
5
5
  {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diffexai/diffex-protocol",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "Transport-neutral CBOR protocol for remote Diffex sessions",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,8 +1,8 @@
1
1
  [
2
2
  {
3
3
  "name": "@diffexai/diffex-telemetry",
4
- "version": "0.2.3",
5
- "sourceCommit": "a9a2beea7798edd34c62e836d73a0d50b6260950",
4
+ "version": "0.2.5",
5
+ "sourceCommit": "823b91ffb444aa4ba189fa85fa3b0de13b103909",
6
6
  "license": "Apache-2.0",
7
7
  "portions": "Diffex contributions; Pi-derived portions retain MIT terms in LICENSE",
8
8
  "notice": "LICENSE",
@@ -1,5 +1,5 @@
1
1
  {
2
- "sourceCommit": "a9a2beea7798edd34c62e836d73a0d50b6260950",
2
+ "sourceCommit": "823b91ffb444aa4ba189fa85fa3b0de13b103909",
3
3
  "algorithm": "sha256",
4
4
  "files": [
5
5
  {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diffexai/diffex-telemetry",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "Vendor-neutral telemetry contracts and typed schema utilities for Diffex",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,8 +1,8 @@
1
1
  [
2
2
  {
3
3
  "name": "@diffexai/diffex-tui",
4
- "version": "0.2.3",
5
- "sourceCommit": "a9a2beea7798edd34c62e836d73a0d50b6260950",
4
+ "version": "0.2.5",
5
+ "sourceCommit": "823b91ffb444aa4ba189fa85fa3b0de13b103909",
6
6
  "license": "Apache-2.0",
7
7
  "portions": "Diffex contributions; Pi-derived portions retain MIT terms in LICENSE",
8
8
  "notice": "LICENSE",
@@ -1,5 +1,5 @@
1
1
  {
2
- "sourceCommit": "a9a2beea7798edd34c62e836d73a0d50b6260950",
2
+ "sourceCommit": "823b91ffb444aa4ba189fa85fa3b0de13b103909",
3
3
  "algorithm": "sha256",
4
4
  "files": [
5
5
  {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diffexai/diffex-tui",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "Terminal User Interface library with differential rendering for efficient text-based applications",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -23,7 +23,7 @@ export function buildCodingAgentHarnessSystemPrompt(options) {
23
23
  .trim();
24
24
  return promptSnippet ? [[tool.name, promptSnippet]] : [];
25
25
  }));
26
- const promptGuidelines = activeTools.flatMap((tool) => tool.promptGuidelines ?? []);
26
+ const promptGuidelines = Object.fromEntries(activeTools.map((tool) => [tool.name, tool.promptGuidelines ?? []]));
27
27
  return buildSystemPrompt({
28
28
  ...options.systemPromptOptions,
29
29
  cwd: options.cwd,
@@ -1,8 +1,8 @@
1
1
  [
2
2
  {
3
3
  "name": "@diffexai/diffex",
4
- "version": "0.2.3",
5
- "sourceCommit": "a9a2beea7798edd34c62e836d73a0d50b6260950",
4
+ "version": "0.2.5",
5
+ "sourceCommit": "823b91ffb444aa4ba189fa85fa3b0de13b103909",
6
6
  "license": "Apache-2.0",
7
7
  "portions": "Diffex contributions; Pi-derived portions retain MIT terms in LICENSE",
8
8
  "notice": "LICENSE",
@@ -10,7 +10,7 @@
10
10
  },
11
11
  {
12
12
  "name": "@diffexai/diffex-evolution",
13
- "version": "0.2.3",
13
+ "version": "0.2.5",
14
14
  "license": "Apache-2.0",
15
15
  "portions": "dist/vendor/evolution: runtime JavaScript and declarations",
16
16
  "notice": "LICENSE",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  {
20
20
  "name": "@diffexai/diffex-harness-trace",
21
- "version": "0.2.3",
21
+ "version": "0.2.5",
22
22
  "license": "Apache-2.0",
23
23
  "portions": "dist/vendor/harness-trace: runtime JavaScript and declarations",
24
24
  "notice": "LICENSE",
@@ -134,7 +134,7 @@
134
134
  },
135
135
  {
136
136
  "name": "@diffexai/diffex-agent-core",
137
- "version": "0.2.3",
137
+ "version": "0.2.5",
138
138
  "license": "Apache-2.0",
139
139
  "portions": "dist/node_modules/@diffexai/diffex-agent-core: bundled runtime, declarations, approved assets and native prebuilds",
140
140
  "notice": "dist/node_modules/@diffexai/diffex-agent-core/LICENSE",
@@ -142,7 +142,7 @@
142
142
  },
143
143
  {
144
144
  "name": "@diffexai/diffex-ai",
145
- "version": "0.2.3",
145
+ "version": "0.2.5",
146
146
  "license": "Apache-2.0",
147
147
  "portions": "dist/node_modules/@diffexai/diffex-ai: bundled runtime, declarations, approved assets and native prebuilds",
148
148
  "notice": "dist/node_modules/@diffexai/diffex-ai/LICENSE",
@@ -150,7 +150,7 @@
150
150
  },
151
151
  {
152
152
  "name": "@diffexai/diffex-client",
153
- "version": "0.2.3",
153
+ "version": "0.2.5",
154
154
  "license": "Apache-2.0",
155
155
  "portions": "dist/node_modules/@diffexai/diffex-client: bundled runtime, declarations, approved assets and native prebuilds",
156
156
  "notice": "dist/node_modules/@diffexai/diffex-client/LICENSE",
@@ -158,7 +158,7 @@
158
158
  },
159
159
  {
160
160
  "name": "@diffexai/diffex-harness-state",
161
- "version": "0.2.3",
161
+ "version": "0.2.5",
162
162
  "license": "Apache-2.0",
163
163
  "portions": "dist/node_modules/@diffexai/diffex-harness-state: bundled runtime, declarations, approved assets and native prebuilds",
164
164
  "notice": "dist/node_modules/@diffexai/diffex-harness-state/LICENSE",
@@ -166,7 +166,7 @@
166
166
  },
167
167
  {
168
168
  "name": "@diffexai/diffex-protocol",
169
- "version": "0.2.3",
169
+ "version": "0.2.5",
170
170
  "license": "Apache-2.0",
171
171
  "portions": "dist/node_modules/@diffexai/diffex-protocol: bundled runtime, declarations, approved assets and native prebuilds",
172
172
  "notice": "dist/node_modules/@diffexai/diffex-protocol/LICENSE",
@@ -174,7 +174,7 @@
174
174
  },
175
175
  {
176
176
  "name": "@diffexai/diffex-telemetry",
177
- "version": "0.2.3",
177
+ "version": "0.2.5",
178
178
  "license": "Apache-2.0",
179
179
  "portions": "dist/node_modules/@diffexai/diffex-telemetry: bundled runtime, declarations, approved assets and native prebuilds",
180
180
  "notice": "dist/node_modules/@diffexai/diffex-telemetry/LICENSE",
@@ -182,7 +182,7 @@
182
182
  },
183
183
  {
184
184
  "name": "@diffexai/diffex-tui",
185
- "version": "0.2.3",
185
+ "version": "0.2.5",
186
186
  "license": "Apache-2.0",
187
187
  "portions": "dist/node_modules/@diffexai/diffex-tui: bundled runtime, declarations, approved assets and native prebuilds",
188
188
  "notice": "dist/node_modules/@diffexai/diffex-tui/LICENSE",