@valni/cli-darwin-x64 0.0.0-stage → 0.1.3

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 (183) hide show
  1. package/LICENSE +52 -0
  2. package/package.json +18 -5
  3. package/runtime/LICENSE +52 -0
  4. package/runtime/assets/clankolas.png +0 -0
  5. package/runtime/examples/extensions/auto-commit-on-exit.ts +49 -0
  6. package/runtime/examples/extensions/bash-spawn-hook.ts +30 -0
  7. package/runtime/examples/extensions/bookmark.ts +50 -0
  8. package/runtime/examples/extensions/border-status-editor.ts +145 -0
  9. package/runtime/examples/extensions/built-in-tool-renderer.ts +249 -0
  10. package/runtime/examples/extensions/claude-rules.ts +86 -0
  11. package/runtime/examples/extensions/commands.ts +72 -0
  12. package/runtime/examples/extensions/confirm-destructive.ts +59 -0
  13. package/runtime/examples/extensions/custom-footer.ts +64 -0
  14. package/runtime/examples/extensions/custom-header.ts +73 -0
  15. package/runtime/examples/extensions/custom-provider-anthropic/index.ts +604 -0
  16. package/runtime/examples/extensions/custom-provider-anthropic/package-lock.json +24 -0
  17. package/runtime/examples/extensions/custom-provider-anthropic/package.json +19 -0
  18. package/runtime/examples/extensions/dirty-repo-guard.ts +56 -0
  19. package/runtime/examples/extensions/doom-overlay/doom/build/doom.js +21 -0
  20. package/runtime/examples/extensions/doom-overlay/doom/build/doom.wasm +0 -0
  21. package/runtime/examples/extensions/doom-overlay/doom/build.sh +152 -0
  22. package/runtime/examples/extensions/doom-overlay/doom/doomgeneric_valni.c +72 -0
  23. package/runtime/examples/extensions/doom-overlay/doom-component.ts +132 -0
  24. package/runtime/examples/extensions/doom-overlay/doom-engine.ts +173 -0
  25. package/runtime/examples/extensions/doom-overlay/doom-keys.ts +104 -0
  26. package/runtime/examples/extensions/doom-overlay/index.ts +74 -0
  27. package/runtime/examples/extensions/doom-overlay/wad-finder.ts +51 -0
  28. package/runtime/examples/extensions/dynamic-resources/dynamic.json +78 -0
  29. package/runtime/examples/extensions/dynamic-resources/index.ts +13 -0
  30. package/runtime/examples/extensions/dynamic-tools.ts +74 -0
  31. package/runtime/examples/extensions/entry-renderer.ts +41 -0
  32. package/runtime/examples/extensions/event-bus.ts +43 -0
  33. package/runtime/examples/extensions/file-trigger.ts +41 -0
  34. package/runtime/examples/extensions/git-checkpoint.ts +53 -0
  35. package/runtime/examples/extensions/git-merge-and-resolve.ts +115 -0
  36. package/runtime/examples/extensions/github-issue-autocomplete.ts +185 -0
  37. package/runtime/examples/extensions/hello.ts +26 -0
  38. package/runtime/examples/extensions/hidden-thinking-label.ts +53 -0
  39. package/runtime/examples/extensions/inline-bash.ts +94 -0
  40. package/runtime/examples/extensions/input-transform-streaming.ts +39 -0
  41. package/runtime/examples/extensions/input-transform.ts +43 -0
  42. package/runtime/examples/extensions/interactive-shell.ts +196 -0
  43. package/runtime/examples/extensions/mac-system-theme.ts +47 -0
  44. package/runtime/examples/extensions/message-renderer.ts +59 -0
  45. package/runtime/examples/extensions/minimal-mode.ts +426 -0
  46. package/runtime/examples/extensions/modal-editor.ts +85 -0
  47. package/runtime/examples/extensions/model-status.ts +31 -0
  48. package/runtime/examples/extensions/notify.ts +55 -0
  49. package/runtime/examples/extensions/overlay-qa-tests.ts +1450 -0
  50. package/runtime/examples/extensions/overlay-test.ts +153 -0
  51. package/runtime/examples/extensions/permission-gate.ts +34 -0
  52. package/runtime/examples/extensions/pirate.ts +47 -0
  53. package/runtime/examples/extensions/plan-mode/index.ts +390 -0
  54. package/runtime/examples/extensions/plan-mode/utils.ts +168 -0
  55. package/runtime/examples/extensions/preset.ts +436 -0
  56. package/runtime/examples/extensions/project-trust.ts +64 -0
  57. package/runtime/examples/extensions/prompt-customizer.ts +97 -0
  58. package/runtime/examples/extensions/protected-paths.ts +30 -0
  59. package/runtime/examples/extensions/provider-payload.ts +18 -0
  60. package/runtime/examples/extensions/question.ts +278 -0
  61. package/runtime/examples/extensions/questionnaire.ts +440 -0
  62. package/runtime/examples/extensions/rainbow-editor.ts +88 -0
  63. package/runtime/examples/extensions/reload-runtime.ts +37 -0
  64. package/runtime/examples/extensions/rpc-demo.ts +118 -0
  65. package/runtime/examples/extensions/sandbox/index.ts +321 -0
  66. package/runtime/examples/extensions/sandbox/package-lock.json +92 -0
  67. package/runtime/examples/extensions/sandbox/package.json +19 -0
  68. package/runtime/examples/extensions/send-user-message.ts +97 -0
  69. package/runtime/examples/extensions/session-name.ts +27 -0
  70. package/runtime/examples/extensions/shutdown-command.ts +63 -0
  71. package/runtime/examples/extensions/snake.ts +343 -0
  72. package/runtime/examples/extensions/space-invaders.ts +560 -0
  73. package/runtime/examples/extensions/ssh.ts +220 -0
  74. package/runtime/examples/extensions/status-line.ts +32 -0
  75. package/runtime/examples/extensions/structured-output.ts +65 -0
  76. package/runtime/examples/extensions/subagent/agents.ts +126 -0
  77. package/runtime/examples/extensions/subagent/index.ts +1009 -0
  78. package/runtime/examples/extensions/system-prompt-header.ts +17 -0
  79. package/runtime/examples/extensions/tic-tac-toe.ts +1008 -0
  80. package/runtime/examples/extensions/timed-confirm.ts +70 -0
  81. package/runtime/examples/extensions/titlebar-spinner.ts +58 -0
  82. package/runtime/examples/extensions/todo.ts +297 -0
  83. package/runtime/examples/extensions/tool-override.ts +144 -0
  84. package/runtime/examples/extensions/tools.ts +146 -0
  85. package/runtime/examples/extensions/trigger-compact.ts +50 -0
  86. package/runtime/examples/extensions/truncated-tool.ts +195 -0
  87. package/runtime/examples/extensions/widget-placement.ts +9 -0
  88. package/runtime/examples/extensions/with-deps/index.ts +32 -0
  89. package/runtime/examples/extensions/with-deps/package-lock.json +31 -0
  90. package/runtime/examples/extensions/with-deps/package.json +22 -0
  91. package/runtime/examples/extensions/working-indicator.ts +123 -0
  92. package/runtime/examples/extensions/working-message-test.ts +25 -0
  93. package/runtime/examples/rpc-extension-ui.ts +632 -0
  94. package/runtime/examples/sdk/01-minimal.ts +26 -0
  95. package/runtime/examples/sdk/02-custom-model.ts +43 -0
  96. package/runtime/examples/sdk/03-custom-prompt.ts +70 -0
  97. package/runtime/examples/sdk/04-skills.ts +55 -0
  98. package/runtime/examples/sdk/05-tools.ts +48 -0
  99. package/runtime/examples/sdk/06-extensions.ts +94 -0
  100. package/runtime/examples/sdk/07-context-files.ts +42 -0
  101. package/runtime/examples/sdk/08-prompt-templates.ts +51 -0
  102. package/runtime/examples/sdk/09-api-keys-and-oauth.ts +34 -0
  103. package/runtime/examples/sdk/10-settings.ts +53 -0
  104. package/runtime/examples/sdk/11-sessions.ts +52 -0
  105. package/runtime/examples/sdk/12-full-control.ts +71 -0
  106. package/runtime/examples/sdk/13-session-runtime.ts +67 -0
  107. package/runtime/export-html/ansi-to-html.js +249 -0
  108. package/runtime/export-html/index.js +226 -0
  109. package/runtime/export-html/template.css +1066 -0
  110. package/runtime/export-html/template.html +55 -0
  111. package/runtime/export-html/template.js +1864 -0
  112. package/runtime/export-html/tool-renderer.js +108 -0
  113. package/runtime/export-html/vendor/highlight.min.js +1213 -0
  114. package/runtime/export-html/vendor/marked.min.js +78 -0
  115. package/runtime/extensions/pi-switchboard/.github/workflows/ci.yml +51 -0
  116. package/runtime/extensions/pi-switchboard/LICENSE +22 -0
  117. package/runtime/extensions/pi-switchboard/README.md +85 -0
  118. package/runtime/extensions/pi-switchboard/extensions/switchboard/catalog.ts +183 -0
  119. package/runtime/extensions/pi-switchboard/extensions/switchboard/config.ts +97 -0
  120. package/runtime/extensions/pi-switchboard/extensions/switchboard/connections.ts +386 -0
  121. package/runtime/extensions/pi-switchboard/extensions/switchboard/constants.ts +12 -0
  122. package/runtime/extensions/pi-switchboard/extensions/switchboard/device-auth.ts +127 -0
  123. package/runtime/extensions/pi-switchboard/extensions/switchboard/envelope.ts +199 -0
  124. package/runtime/extensions/pi-switchboard/extensions/switchboard/errors.ts +180 -0
  125. package/runtime/extensions/pi-switchboard/extensions/switchboard/index.ts +125 -0
  126. package/runtime/extensions/pi-switchboard/extensions/switchboard/participant.ts +17 -0
  127. package/runtime/extensions/pi-switchboard/extensions/switchboard/sessionStream.ts +131 -0
  128. package/runtime/extensions/pi-switchboard/extensions/switchboard/toolProxy.ts +136 -0
  129. package/runtime/extensions/pi-switchboard/extensions/switchboard/tools.ts +16 -0
  130. package/runtime/extensions/pi-switchboard/extensions/switchboard/types.ts +37 -0
  131. package/runtime/extensions/pi-switchboard/package.json +30 -0
  132. package/runtime/extensions/pi-switchboard/tsconfig.json +13 -0
  133. package/runtime/extensions/switchboard-local/.github/workflows/ci.yml +80 -0
  134. package/runtime/extensions/switchboard-local/.github/workflows/release.yml +46 -0
  135. package/runtime/extensions/switchboard-local/README.md +98 -0
  136. package/runtime/extensions/switchboard-local/extensions/local/engine.ts +28 -0
  137. package/runtime/extensions/switchboard-local/extensions/local/engines/gguf.ts +324 -0
  138. package/runtime/extensions/switchboard-local/extensions/local/engines/llamaBuild.ts +62 -0
  139. package/runtime/extensions/switchboard-local/extensions/local/engines/mlx.ts +245 -0
  140. package/runtime/extensions/switchboard-local/extensions/local/engines/select.ts +38 -0
  141. package/runtime/extensions/switchboard-local/extensions/local/engines/support.ts +151 -0
  142. package/runtime/extensions/switchboard-local/extensions/local/hf.ts +106 -0
  143. package/runtime/extensions/switchboard-local/extensions/local/index.ts +67 -0
  144. package/runtime/extensions/switchboard-local/extensions/local/nativeStream.ts +602 -0
  145. package/runtime/extensions/switchboard-local/extensions/local/paths.ts +44 -0
  146. package/runtime/extensions/switchboard-local/extensions/local/provider.ts +57 -0
  147. package/runtime/extensions/switchboard-local/extensions/local/store.ts +82 -0
  148. package/runtime/extensions/switchboard-local/extensions/local/ui.ts +60 -0
  149. package/runtime/extensions/switchboard-local/node_modules/@valni/switchboard/dist/apiTypes.js +74 -0
  150. package/runtime/extensions/switchboard-local/node_modules/@valni/switchboard/dist/client.js +292 -0
  151. package/runtime/extensions/switchboard-local/node_modules/@valni/switchboard/dist/deviceAuth.js +155 -0
  152. package/runtime/extensions/switchboard-local/node_modules/@valni/switchboard/dist/errors.js +95 -0
  153. package/runtime/extensions/switchboard-local/node_modules/@valni/switchboard/dist/index.js +8 -0
  154. package/runtime/extensions/switchboard-local/node_modules/@valni/switchboard/dist/messages.js +253 -0
  155. package/runtime/extensions/switchboard-local/node_modules/@valni/switchboard/dist/models.js +19 -0
  156. package/runtime/extensions/switchboard-local/node_modules/@valni/switchboard/dist/native.js +886 -0
  157. package/runtime/extensions/switchboard-local/node_modules/@valni/switchboard/dist/wire.js +85 -0
  158. package/runtime/extensions/switchboard-local/node_modules/@valni/switchboard/package.json +39 -0
  159. package/runtime/extensions/switchboard-local/node_modules/@valni/switchboard-native/package.json +29 -0
  160. package/runtime/extensions/switchboard-local/node_modules/@valni/switchboard-native/src/anthropic.ts +127 -0
  161. package/runtime/extensions/switchboard-local/node_modules/@valni/switchboard-native/src/google.ts +111 -0
  162. package/runtime/extensions/switchboard-local/node_modules/@valni/switchboard-native/src/index.ts +8 -0
  163. package/runtime/extensions/switchboard-local/node_modules/@valni/switchboard-native/src/modelRecord.test.ts +25 -0
  164. package/runtime/extensions/switchboard-local/node_modules/@valni/switchboard-native/src/modelRecord.ts +57 -0
  165. package/runtime/extensions/switchboard-local/node_modules/@valni/switchboard-native/src/openaiGeneric.ts +103 -0
  166. package/runtime/extensions/switchboard-local/node_modules/@valni/switchboard-native/src/openaiPro.ts +89 -0
  167. package/runtime/extensions/switchboard-local/node_modules/@valni/switchboard-native/src/profile.ts +120 -0
  168. package/runtime/extensions/switchboard-local/node_modules/@valni/switchboard-native/src/routing.test.ts +82 -0
  169. package/runtime/extensions/switchboard-local/node_modules/@valni/switchboard-native/src/routing.ts +74 -0
  170. package/runtime/extensions/switchboard-local/node_modules/@valni/switchboard-native/src/validateConfig.google.test.ts +137 -0
  171. package/runtime/extensions/switchboard-local/node_modules/@valni/switchboard-native/src/validateConfig.openai.test.ts +241 -0
  172. package/runtime/extensions/switchboard-local/node_modules/@valni/switchboard-native/src/validateConfig.test.ts +174 -0
  173. package/runtime/extensions/switchboard-local/node_modules/@valni/switchboard-native/src/validateConfig.ts +438 -0
  174. package/runtime/extensions/switchboard-local/package.json +34 -0
  175. package/runtime/extensions/switchboard-local/tsconfig.json +13 -0
  176. package/runtime/native/darwin/prebuilds/darwin-x64/darwin-modifiers.node +0 -0
  177. package/runtime/package.json +98 -0
  178. package/runtime/photon_rs_bg.wasm +0 -0
  179. package/runtime/theme/dark.json +86 -0
  180. package/runtime/theme/light.json +85 -0
  181. package/runtime/theme/theme-schema.json +340 -0
  182. package/runtime/valni +4 -0
  183. package/README.md +0 -3
@@ -0,0 +1,98 @@
1
+ {
2
+ "name": "@valni/cli",
3
+ "private": true,
4
+ "version": "0.1.3",
5
+ "description": "Coding agent CLI with read, bash, edit, write tools and session management",
6
+ "type": "module",
7
+ "valniConfig": {
8
+ "name": "valni",
9
+ "configDir": ".valni"
10
+ },
11
+ "bin": {
12
+ "valni": "dist/cli.js"
13
+ },
14
+ "main": "./dist/index.js",
15
+ "types": "./dist/index.d.ts",
16
+ "exports": {
17
+ ".": {
18
+ "types": "./dist/index.d.ts",
19
+ "import": "./dist/index.js"
20
+ },
21
+ "./rpc-entry": {
22
+ "import": "./dist/rpc-entry.js"
23
+ }
24
+ },
25
+ "files": [
26
+ "dist",
27
+ "examples",
28
+ "npm-shrinkwrap.json"
29
+ ],
30
+ "scripts": {
31
+ "clean": "shx rm -rf dist",
32
+ "build": "tsgo -p tsconfig.build.json && shx chmod +x dist/cli.js dist/rpc-entry.js && npm run copy-assets",
33
+ "build:binary": "npm --prefix ../tui run build && npm --prefix ../ai run build && npm --prefix ../agent run build && npm run build && bun build --compile ./dist/bun/cli.js ./src/utils/image-resize-worker.ts --outfile dist/valni && npm run copy-binary-assets",
34
+ "copy-assets": "shx mkdir -p dist/modes/interactive/theme && shx cp src/modes/interactive/theme/*.json dist/modes/interactive/theme/ && shx mkdir -p dist/modes/interactive/assets && shx cp src/modes/interactive/assets/*.png dist/modes/interactive/assets/ && shx mkdir -p dist/core/export-html/vendor && shx cp src/core/export-html/template.html src/core/export-html/template.css src/core/export-html/template.js dist/core/export-html/ && shx cp src/core/export-html/vendor/*.js dist/core/export-html/vendor/",
35
+ "copy-binary-assets": "shx cp package.json dist/ && shx cp ../../LICENSE dist/ && shx mkdir -p dist/theme && shx cp src/modes/interactive/theme/*.json dist/theme/ && shx mkdir -p dist/assets && shx cp src/modes/interactive/assets/*.png dist/assets/ && shx mkdir -p dist/export-html/vendor && shx cp src/core/export-html/template.html dist/export-html/ && shx cp src/core/export-html/vendor/*.js dist/export-html/vendor/ && shx cp -r examples dist/ && shx cp ../../node_modules/@silvia-odwyer/photon-node/photon_rs_bg.wasm dist/",
36
+ "test": "vitest --run",
37
+ "shrinkwrap": "node ../../scripts/generate-coding-agent-shrinkwrap.mjs",
38
+ "prepublishOnly": "npm run clean && npm run build && npm run shrinkwrap"
39
+ },
40
+ "dependencies": {
41
+ "@valni/agent-core": "^0.1.3",
42
+ "@valni/ai": "^0.1.3",
43
+ "@valni/tui": "^0.1.3",
44
+ "pi-switchboard": "git+https://github.com/Valni-Labs/pi-switchboard.git#b35310164e79b3f99bfd697622527a8458e1719d",
45
+ "switchboard-local": "git+https://github.com/Valni-Labs/switchboard-local.git#bda14d2d85735da4519f4545b598b4c5e97e7d3b",
46
+ "@silvia-odwyer/photon-node": "0.3.4",
47
+ "chalk": "5.6.2",
48
+ "cross-spawn": "7.0.6",
49
+ "diff": "8.0.4",
50
+ "glob": "13.0.6",
51
+ "highlight.js": "10.7.3",
52
+ "hosted-git-info": "9.0.3",
53
+ "ignore": "7.0.5",
54
+ "jiti": "2.7.0",
55
+ "minimatch": "10.2.5",
56
+ "proper-lockfile": "4.1.2",
57
+ "semver": "7.8.0",
58
+ "typebox": "1.1.38",
59
+ "undici": "8.5.0",
60
+ "yaml": "2.9.0"
61
+ },
62
+ "overrides": {
63
+ "rimraf": "6.1.2",
64
+ "gaxios": {
65
+ "rimraf": "6.1.2"
66
+ }
67
+ },
68
+ "devDependencies": {
69
+ "@types/cross-spawn": "6.0.6",
70
+ "@types/diff": "7.0.2",
71
+ "@types/hosted-git-info": "3.0.5",
72
+ "@types/ms": "2.1.0",
73
+ "@types/node": "24.12.4",
74
+ "@types/proper-lockfile": "4.1.4",
75
+ "@types/semver": "7.7.1",
76
+ "shx": "0.4.0",
77
+ "typescript": "5.9.3",
78
+ "vitest": "4.1.9"
79
+ },
80
+ "keywords": [
81
+ "coding-agent",
82
+ "ai",
83
+ "llm",
84
+ "cli",
85
+ "tui",
86
+ "agent"
87
+ ],
88
+ "author": "Mario Zechner",
89
+ "license": "SEE LICENSE IN LICENSE",
90
+ "repository": {
91
+ "type": "git",
92
+ "url": "git+https://github.com/Valni-Labs/valni-cli.git",
93
+ "directory": "packages/coding-agent"
94
+ },
95
+ "engines": {
96
+ "node": ">=22.19.0"
97
+ }
98
+ }
Binary file
@@ -0,0 +1,86 @@
1
+ {
2
+ "name": "dark",
3
+ "vars": {
4
+ "cyan": "#00d7ff",
5
+ "blue": "#5f87ff",
6
+ "green": "#b5bd68",
7
+ "red": "#cc6666",
8
+ "yellow": "#ffff00",
9
+ "text": "#d4d4d4",
10
+ "gray": "#808080",
11
+ "dimGray": "#666666",
12
+ "darkGray": "#505050",
13
+ "accent": "#8abeb7",
14
+ "selectedBg": "#3a3a4a",
15
+ "userMsgBg": "#343541",
16
+ "toolPendingBg": "#282832",
17
+ "toolSuccessBg": "#283228",
18
+ "toolErrorBg": "#3c2828",
19
+ "customMsgBg": "#2d2838"
20
+ },
21
+ "colors": {
22
+ "accent": "accent",
23
+ "border": "blue",
24
+ "borderAccent": "cyan",
25
+ "borderMuted": "darkGray",
26
+ "success": "green",
27
+ "error": "red",
28
+ "warning": "yellow",
29
+ "muted": "gray",
30
+ "dim": "dimGray",
31
+ "text": "text",
32
+ "thinkingText": "gray",
33
+
34
+ "selectedBg": "selectedBg",
35
+ "userMessageBg": "userMsgBg",
36
+ "userMessageText": "text",
37
+ "customMessageBg": "customMsgBg",
38
+ "customMessageText": "text",
39
+ "customMessageLabel": "#9575cd",
40
+ "toolPendingBg": "toolPendingBg",
41
+ "toolSuccessBg": "toolSuccessBg",
42
+ "toolErrorBg": "toolErrorBg",
43
+ "toolTitle": "text",
44
+ "toolOutput": "gray",
45
+
46
+ "mdHeading": "#f0c674",
47
+ "mdLink": "#81a2be",
48
+ "mdLinkUrl": "dimGray",
49
+ "mdCode": "accent",
50
+ "mdCodeBlock": "green",
51
+ "mdCodeBlockBorder": "gray",
52
+ "mdQuote": "gray",
53
+ "mdQuoteBorder": "gray",
54
+ "mdHr": "gray",
55
+ "mdListBullet": "accent",
56
+
57
+ "toolDiffAdded": "green",
58
+ "toolDiffRemoved": "red",
59
+ "toolDiffContext": "gray",
60
+
61
+ "syntaxComment": "#6A9955",
62
+ "syntaxKeyword": "#569CD6",
63
+ "syntaxFunction": "#DCDCAA",
64
+ "syntaxVariable": "#9CDCFE",
65
+ "syntaxString": "#CE9178",
66
+ "syntaxNumber": "#B5CEA8",
67
+ "syntaxType": "#4EC9B0",
68
+ "syntaxOperator": "#D4D4D4",
69
+ "syntaxPunctuation": "#D4D4D4",
70
+
71
+ "thinkingOff": "darkGray",
72
+ "thinkingMinimal": "#6e6e6e",
73
+ "thinkingLow": "#5f87af",
74
+ "thinkingMedium": "#81a2be",
75
+ "thinkingHigh": "#b294bb",
76
+ "thinkingXhigh": "#d183e8",
77
+ "thinkingMax": "#ff5fff",
78
+
79
+ "bashMode": "green"
80
+ },
81
+ "export": {
82
+ "pageBg": "#18181e",
83
+ "cardBg": "#1e1e24",
84
+ "infoBg": "#3c3728"
85
+ }
86
+ }
@@ -0,0 +1,85 @@
1
+ {
2
+ "name": "light",
3
+ "vars": {
4
+ "teal": "#5a8080",
5
+ "blue": "#547da7",
6
+ "green": "#588458",
7
+ "red": "#aa5555",
8
+ "yellow": "#9a7326",
9
+ "text": "#1f2328",
10
+ "mediumGray": "#6c6c6c",
11
+ "dimGray": "#767676",
12
+ "lightGray": "#b0b0b0",
13
+ "selectedBg": "#d0d0e0",
14
+ "userMsgBg": "#e8e8e8",
15
+ "toolPendingBg": "#e8e8f0",
16
+ "toolSuccessBg": "#e8f0e8",
17
+ "toolErrorBg": "#f0e8e8",
18
+ "customMsgBg": "#ede7f6"
19
+ },
20
+ "colors": {
21
+ "accent": "teal",
22
+ "border": "blue",
23
+ "borderAccent": "teal",
24
+ "borderMuted": "lightGray",
25
+ "success": "green",
26
+ "error": "red",
27
+ "warning": "yellow",
28
+ "muted": "mediumGray",
29
+ "dim": "dimGray",
30
+ "text": "text",
31
+ "thinkingText": "mediumGray",
32
+
33
+ "selectedBg": "selectedBg",
34
+ "userMessageBg": "userMsgBg",
35
+ "userMessageText": "text",
36
+ "customMessageBg": "customMsgBg",
37
+ "customMessageText": "text",
38
+ "customMessageLabel": "#7e57c2",
39
+ "toolPendingBg": "toolPendingBg",
40
+ "toolSuccessBg": "toolSuccessBg",
41
+ "toolErrorBg": "toolErrorBg",
42
+ "toolTitle": "text",
43
+ "toolOutput": "mediumGray",
44
+
45
+ "mdHeading": "yellow",
46
+ "mdLink": "blue",
47
+ "mdLinkUrl": "dimGray",
48
+ "mdCode": "teal",
49
+ "mdCodeBlock": "green",
50
+ "mdCodeBlockBorder": "mediumGray",
51
+ "mdQuote": "mediumGray",
52
+ "mdQuoteBorder": "mediumGray",
53
+ "mdHr": "mediumGray",
54
+ "mdListBullet": "green",
55
+
56
+ "toolDiffAdded": "green",
57
+ "toolDiffRemoved": "red",
58
+ "toolDiffContext": "mediumGray",
59
+
60
+ "syntaxComment": "#008000",
61
+ "syntaxKeyword": "#0000FF",
62
+ "syntaxFunction": "#795E26",
63
+ "syntaxVariable": "#001080",
64
+ "syntaxString": "#A31515",
65
+ "syntaxNumber": "#098658",
66
+ "syntaxType": "#267F99",
67
+ "syntaxOperator": "#000000",
68
+ "syntaxPunctuation": "#000000",
69
+
70
+ "thinkingOff": "lightGray",
71
+ "thinkingMinimal": "#767676",
72
+ "thinkingLow": "blue",
73
+ "thinkingMedium": "teal",
74
+ "thinkingHigh": "#875f87",
75
+ "thinkingXhigh": "#8b008b",
76
+ "thinkingMax": "#af005f",
77
+
78
+ "bashMode": "green"
79
+ },
80
+ "export": {
81
+ "pageBg": "#f8f8f8",
82
+ "cardBg": "#ffffff",
83
+ "infoBg": "#fffae6"
84
+ }
85
+ }
@@ -0,0 +1,340 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "Valni Coding Agent Theme",
4
+ "description": "Theme schema for Valni coding agent",
5
+ "type": "object",
6
+ "required": ["name", "colors"],
7
+ "properties": {
8
+ "$schema": {
9
+ "type": "string",
10
+ "description": "JSON schema reference"
11
+ },
12
+ "name": {
13
+ "type": "string",
14
+ "pattern": "^[^/]+$",
15
+ "description": "Theme name. Must not contain '/' because it is reserved for automatic light/dark theme settings."
16
+ },
17
+ "vars": {
18
+ "type": "object",
19
+ "description": "Reusable color variables",
20
+ "additionalProperties": {
21
+ "oneOf": [
22
+ {
23
+ "type": "string",
24
+ "description": "Hex color (#RRGGBB), variable reference, or empty string for terminal default"
25
+ },
26
+ {
27
+ "type": "integer",
28
+ "minimum": 0,
29
+ "maximum": 255,
30
+ "description": "256-color palette index (0-255)"
31
+ }
32
+ ]
33
+ }
34
+ },
35
+ "colors": {
36
+ "type": "object",
37
+ "description": "Theme color definitions (thinkingMax is optional and falls back to thinkingXhigh)",
38
+ "required": [
39
+ "accent",
40
+ "border",
41
+ "borderAccent",
42
+ "borderMuted",
43
+ "success",
44
+ "error",
45
+ "warning",
46
+ "muted",
47
+ "dim",
48
+ "text",
49
+ "thinkingText",
50
+ "selectedBg",
51
+ "userMessageBg",
52
+ "userMessageText",
53
+ "customMessageBg",
54
+ "customMessageText",
55
+ "customMessageLabel",
56
+ "toolPendingBg",
57
+ "toolSuccessBg",
58
+ "toolErrorBg",
59
+ "toolTitle",
60
+ "toolOutput",
61
+ "mdHeading",
62
+ "mdLink",
63
+ "mdLinkUrl",
64
+ "mdCode",
65
+ "mdCodeBlock",
66
+ "mdCodeBlockBorder",
67
+ "mdQuote",
68
+ "mdQuoteBorder",
69
+ "mdHr",
70
+ "mdListBullet",
71
+ "toolDiffAdded",
72
+ "toolDiffRemoved",
73
+ "toolDiffContext",
74
+ "syntaxComment",
75
+ "syntaxKeyword",
76
+ "syntaxFunction",
77
+ "syntaxVariable",
78
+ "syntaxString",
79
+ "syntaxNumber",
80
+ "syntaxType",
81
+ "syntaxOperator",
82
+ "syntaxPunctuation",
83
+ "thinkingOff",
84
+ "thinkingMinimal",
85
+ "thinkingLow",
86
+ "thinkingMedium",
87
+ "thinkingHigh",
88
+ "thinkingXhigh",
89
+ "bashMode"
90
+ ],
91
+ "properties": {
92
+ "accent": {
93
+ "$ref": "#/$defs/colorValue",
94
+ "description": "Primary accent color (logo, selected items, cursor)"
95
+ },
96
+ "border": {
97
+ "$ref": "#/$defs/colorValue",
98
+ "description": "Normal borders"
99
+ },
100
+ "borderAccent": {
101
+ "$ref": "#/$defs/colorValue",
102
+ "description": "Highlighted borders"
103
+ },
104
+ "borderMuted": {
105
+ "$ref": "#/$defs/colorValue",
106
+ "description": "Subtle borders"
107
+ },
108
+ "success": {
109
+ "$ref": "#/$defs/colorValue",
110
+ "description": "Success states"
111
+ },
112
+ "error": {
113
+ "$ref": "#/$defs/colorValue",
114
+ "description": "Error states"
115
+ },
116
+ "warning": {
117
+ "$ref": "#/$defs/colorValue",
118
+ "description": "Warning states"
119
+ },
120
+ "muted": {
121
+ "$ref": "#/$defs/colorValue",
122
+ "description": "Secondary/dimmed text"
123
+ },
124
+ "dim": {
125
+ "$ref": "#/$defs/colorValue",
126
+ "description": "Very dimmed text (more subtle than muted)"
127
+ },
128
+ "text": {
129
+ "$ref": "#/$defs/colorValue",
130
+ "description": "Default text color (usually empty string)"
131
+ },
132
+ "thinkingText": {
133
+ "$ref": "#/$defs/colorValue",
134
+ "description": "Thinking block text color"
135
+ },
136
+ "selectedBg": {
137
+ "$ref": "#/$defs/colorValue",
138
+ "description": "Selected item background"
139
+ },
140
+ "userMessageBg": {
141
+ "$ref": "#/$defs/colorValue",
142
+ "description": "User message background"
143
+ },
144
+ "userMessageText": {
145
+ "$ref": "#/$defs/colorValue",
146
+ "description": "User message text color"
147
+ },
148
+ "customMessageBg": {
149
+ "$ref": "#/$defs/colorValue",
150
+ "description": "Custom message background (hook-injected messages)"
151
+ },
152
+ "customMessageText": {
153
+ "$ref": "#/$defs/colorValue",
154
+ "description": "Custom message text color"
155
+ },
156
+ "customMessageLabel": {
157
+ "$ref": "#/$defs/colorValue",
158
+ "description": "Custom message type label color"
159
+ },
160
+ "toolPendingBg": {
161
+ "$ref": "#/$defs/colorValue",
162
+ "description": "Tool execution box (pending state)"
163
+ },
164
+ "toolSuccessBg": {
165
+ "$ref": "#/$defs/colorValue",
166
+ "description": "Tool execution box (success state)"
167
+ },
168
+ "toolErrorBg": {
169
+ "$ref": "#/$defs/colorValue",
170
+ "description": "Tool execution box (error state)"
171
+ },
172
+ "toolTitle": {
173
+ "$ref": "#/$defs/colorValue",
174
+ "description": "Tool execution box title color"
175
+ },
176
+ "toolOutput": {
177
+ "$ref": "#/$defs/colorValue",
178
+ "description": "Tool execution box output text color"
179
+ },
180
+ "mdHeading": {
181
+ "$ref": "#/$defs/colorValue",
182
+ "description": "Markdown heading text"
183
+ },
184
+ "mdLink": {
185
+ "$ref": "#/$defs/colorValue",
186
+ "description": "Markdown link text"
187
+ },
188
+ "mdLinkUrl": {
189
+ "$ref": "#/$defs/colorValue",
190
+ "description": "Markdown link URL"
191
+ },
192
+ "mdCode": {
193
+ "$ref": "#/$defs/colorValue",
194
+ "description": "Markdown inline code"
195
+ },
196
+ "mdCodeBlock": {
197
+ "$ref": "#/$defs/colorValue",
198
+ "description": "Markdown code block content"
199
+ },
200
+ "mdCodeBlockBorder": {
201
+ "$ref": "#/$defs/colorValue",
202
+ "description": "Markdown code block fences"
203
+ },
204
+ "mdQuote": {
205
+ "$ref": "#/$defs/colorValue",
206
+ "description": "Markdown blockquote text"
207
+ },
208
+ "mdQuoteBorder": {
209
+ "$ref": "#/$defs/colorValue",
210
+ "description": "Markdown blockquote border"
211
+ },
212
+ "mdHr": {
213
+ "$ref": "#/$defs/colorValue",
214
+ "description": "Markdown horizontal rule"
215
+ },
216
+ "mdListBullet": {
217
+ "$ref": "#/$defs/colorValue",
218
+ "description": "Markdown list bullets/numbers"
219
+ },
220
+ "toolDiffAdded": {
221
+ "$ref": "#/$defs/colorValue",
222
+ "description": "Added lines in tool diffs"
223
+ },
224
+ "toolDiffRemoved": {
225
+ "$ref": "#/$defs/colorValue",
226
+ "description": "Removed lines in tool diffs"
227
+ },
228
+ "toolDiffContext": {
229
+ "$ref": "#/$defs/colorValue",
230
+ "description": "Context lines in tool diffs"
231
+ },
232
+ "syntaxComment": {
233
+ "$ref": "#/$defs/colorValue",
234
+ "description": "Syntax highlighting: comments"
235
+ },
236
+ "syntaxKeyword": {
237
+ "$ref": "#/$defs/colorValue",
238
+ "description": "Syntax highlighting: keywords"
239
+ },
240
+ "syntaxFunction": {
241
+ "$ref": "#/$defs/colorValue",
242
+ "description": "Syntax highlighting: function names"
243
+ },
244
+ "syntaxVariable": {
245
+ "$ref": "#/$defs/colorValue",
246
+ "description": "Syntax highlighting: variable names"
247
+ },
248
+ "syntaxString": {
249
+ "$ref": "#/$defs/colorValue",
250
+ "description": "Syntax highlighting: string literals"
251
+ },
252
+ "syntaxNumber": {
253
+ "$ref": "#/$defs/colorValue",
254
+ "description": "Syntax highlighting: number literals"
255
+ },
256
+ "syntaxType": {
257
+ "$ref": "#/$defs/colorValue",
258
+ "description": "Syntax highlighting: type names"
259
+ },
260
+ "syntaxOperator": {
261
+ "$ref": "#/$defs/colorValue",
262
+ "description": "Syntax highlighting: operators"
263
+ },
264
+ "syntaxPunctuation": {
265
+ "$ref": "#/$defs/colorValue",
266
+ "description": "Syntax highlighting: punctuation"
267
+ },
268
+ "thinkingOff": {
269
+ "$ref": "#/$defs/colorValue",
270
+ "description": "Thinking level border: off"
271
+ },
272
+ "thinkingMinimal": {
273
+ "$ref": "#/$defs/colorValue",
274
+ "description": "Thinking level border: minimal"
275
+ },
276
+ "thinkingLow": {
277
+ "$ref": "#/$defs/colorValue",
278
+ "description": "Thinking level border: low"
279
+ },
280
+ "thinkingMedium": {
281
+ "$ref": "#/$defs/colorValue",
282
+ "description": "Thinking level border: medium"
283
+ },
284
+ "thinkingHigh": {
285
+ "$ref": "#/$defs/colorValue",
286
+ "description": "Thinking level border: high"
287
+ },
288
+ "thinkingXhigh": {
289
+ "$ref": "#/$defs/colorValue",
290
+ "description": "Thinking level border: xhigh"
291
+ },
292
+ "thinkingMax": {
293
+ "$ref": "#/$defs/colorValue",
294
+ "description": "Thinking level border: max (falls back to thinkingXhigh when omitted)"
295
+ },
296
+ "bashMode": {
297
+ "$ref": "#/$defs/colorValue",
298
+ "description": "Editor border color in bash mode"
299
+ }
300
+ },
301
+ "additionalProperties": false
302
+ },
303
+ "export": {
304
+ "type": "object",
305
+ "description": "Optional colors for HTML export (defaults derived from userMessageBg if not specified)",
306
+ "properties": {
307
+ "pageBg": {
308
+ "$ref": "#/$defs/colorValue",
309
+ "description": "Page background color"
310
+ },
311
+ "cardBg": {
312
+ "$ref": "#/$defs/colorValue",
313
+ "description": "Card/container background color"
314
+ },
315
+ "infoBg": {
316
+ "$ref": "#/$defs/colorValue",
317
+ "description": "Info sections background (system prompt, notices)"
318
+ }
319
+ },
320
+ "additionalProperties": false
321
+ }
322
+ },
323
+ "additionalProperties": false,
324
+ "$defs": {
325
+ "colorValue": {
326
+ "oneOf": [
327
+ {
328
+ "type": "string",
329
+ "description": "Hex color (#RRGGBB), variable reference, or empty string for terminal default"
330
+ },
331
+ {
332
+ "type": "integer",
333
+ "minimum": 0,
334
+ "maximum": 255,
335
+ "description": "256-color palette index (0-255)"
336
+ }
337
+ ]
338
+ }
339
+ }
340
+ }
package/runtime/valni ADDED
@@ -0,0 +1,4 @@
1
+ [diffend] Oversized file quarantined before diffing.
2
+ name: package/runtime/valni
3
+ size: 76042320 bytes
4
+ sha256: 988ae92973eb878acc93322d1665aff802365c45e27a8efb89e93bfce2f2d067
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.