@rebon/cli-darwin-arm64 1.8.7 → 1.9.2

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 (43) hide show
  1. package/bin/compose-runtime/payload/compose/shims/dsh-environment.js +34 -0
  2. package/bin/compose-runtime/src/commands-runtime.mjs +72 -0
  3. package/bin/compose-runtime/src/loader.mjs +7 -0
  4. package/bin/compose-runtime/src/probe.mjs +77 -0
  5. package/bin/compose-runtime/src/provided-modules.json +38 -0
  6. package/bin/compose-runtime/src/realm.mjs +5 -3
  7. package/bin/compose-runtime/src/registry.mjs +15 -2
  8. package/bin/compose-runtime/src/resolve.mjs +3 -33
  9. package/bin/marketplace/.claude-plugin/marketplace.json +258 -0
  10. package/bin/marketplace/plugins/dsh-llm-deepseek/LICENSE +21 -0
  11. package/bin/marketplace/plugins/dsh-llm-deepseek/llm-deepseek.js +672 -0
  12. package/bin/marketplace/plugins/dsh-llm-deepseek/rebon-plugin.json +27 -0
  13. package/bin/marketplace/plugins/dsh-tool-todo/LICENSE +21 -0
  14. package/bin/marketplace/plugins/dsh-tool-todo/rebon-plugin.json +27 -0
  15. package/bin/marketplace/plugins/dsh-tool-todo/tool-todo.js +143 -0
  16. package/bin/marketplace/plugins/dsh-tool-web/LICENSE +21 -0
  17. package/bin/marketplace/plugins/dsh-tool-web/rebon-plugin.json +27 -0
  18. package/bin/marketplace/plugins/dsh-tool-web/tool-web.js +1527 -0
  19. package/bin/marketplace/plugins/dsh-web-search-exa/LICENSE +21 -0
  20. package/bin/marketplace/plugins/dsh-web-search-exa/rebon-plugin.json +27 -0
  21. package/bin/marketplace/plugins/dsh-web-search-exa/web-search-exa.js +122 -0
  22. package/bin/mods-runtime/package.json +13 -0
  23. package/bin/mods-runtime/src/chain.mjs +188 -0
  24. package/bin/mods-runtime/src/classic.mjs +217 -0
  25. package/bin/mods-runtime/src/claude-code.mjs +101 -0
  26. package/bin/mods-runtime/src/client.mjs +316 -0
  27. package/bin/mods-runtime/src/engine.mjs +196 -0
  28. package/bin/mods-runtime/src/index.mjs +58 -0
  29. package/bin/mods-runtime/src/jsx-transform.mjs +324 -0
  30. package/bin/mods-runtime/src/mod.mjs +370 -0
  31. package/bin/mods-runtime/src/render.mjs +122 -0
  32. package/bin/mods-runtime/src/transpile.mjs +167 -0
  33. package/bin/plugin-host/src/cli.mjs +13 -0
  34. package/bin/plugin-host/src/host.mjs +11 -1
  35. package/bin/plugin-host/src/methods.mjs +4 -1
  36. package/bin/plugin-host/src/protocol.mjs +38 -4
  37. package/bin/rebon +2 -2
  38. package/bin/rebon-boa-helper +0 -0
  39. package/bin/rebon-browser-mcp +0 -0
  40. package/bin/rebon-computer-use +0 -0
  41. package/bin/rebon-lsp-mcp +0 -0
  42. package/bin/sandbox-win +0 -0
  43. package/package.json +1 -1
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "dsh-llm-deepseek",
3
+ "version": "0.1.0",
4
+ "description": "DeepSeek Harness model provider for the official DeepSeek API, on the plugin plane. Packaged from the DeepSeek Harness module Rebon vendors (@deepseek-ai/dsh-llm-deepseek).",
5
+ "license": "MIT",
6
+ "capabilities": {
7
+ "kernelPlugins": {
8
+ "dsh-llm-deepseek": {
9
+ "entry": "llm-deepseek.js",
10
+ "seats": [
11
+ "credentials"
12
+ ],
13
+ "llmProviders": [
14
+ "deepseek-official"
15
+ ]
16
+ }
17
+ }
18
+ },
19
+ "metadata": {
20
+ "upstream": "@deepseek-ai/dsh-llm-deepseek"
21
+ },
22
+ "container": {
23
+ "network": [
24
+ "api.deepseek.com"
25
+ ]
26
+ }
27
+ }
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 DeepSeek
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "dsh-tool-todo",
3
+ "version": "0.1.0",
4
+ "description": "DeepSeek Harness todo list: a todo_write tool the model keeps its plan in. Packaged from the DeepSeek Harness module Rebon vendors (@deepseek-ai/dsh-tool-todo).",
5
+ "license": "MIT",
6
+ "capabilities": {
7
+ "kernelPlugins": {
8
+ "dsh-tool-todo": {
9
+ "entry": "tool-todo.js",
10
+ "tools": [
11
+ "todo_write"
12
+ ],
13
+ "publishedTopics": [
14
+ "compose:session/append"
15
+ ]
16
+ }
17
+ }
18
+ },
19
+ "metadata": {
20
+ "upstream": "@deepseek-ai/dsh-tool-todo",
21
+ "kernelPluginConfig": {
22
+ "dsh-tool-todo": {
23
+ "allowParallelInProgress": false
24
+ }
25
+ }
26
+ }
27
+ }
@@ -0,0 +1,143 @@
1
+ // packages/todo/tool-todo/src/index.ts
2
+ import z from "@deepseek-ai/schemastery";
3
+ import { z as zod } from "zod";
4
+ import { defineTool } from "@deepseek-ai/dsh-tools";
5
+ var name = "tool-todo";
6
+ var inject = ["tools"];
7
+ var STATUSES = ["pending", "in_progress", "completed"];
8
+ var Config = z.object({
9
+ allowParallelInProgress: z.boolean().required()
10
+ });
11
+ var DESCRIPTION_HEAD = "Record and update a structured task list for the current work. Send the ENTIRE list every call \u2014 it REPLACES the previous list (there are no partial updates, no per-item edits). Use it to plan multi-step work and show progress: add one todo per concrete step before you start. ";
12
+ var DESCRIPTION_PARALLEL = "Mark every todo being actively worked on `in_progress` \u2014 several at once when work genuinely runs in parallel (e.g. concurrent subagents or background commands), one for sequential work; while work remains, at least one task should be `in_progress`. ";
13
+ var DESCRIPTION_SINGLE = "Keep AT MOST ONE todo `in_progress` at a time; while work remains, exactly one active task should be `in_progress`. ";
14
+ var DESCRIPTION_TAIL = "Mark a todo `completed` the moment it is done (do not batch completions), and allow no `in_progress` item only once all work is complete. Skip the list for trivial single-step tasks. Statuses: `pending` (not started), `in_progress` (being worked on now), `completed` (finished).";
15
+ function describe(allowParallel) {
16
+ return DESCRIPTION_HEAD + (allowParallel ? DESCRIPTION_PARALLEL : DESCRIPTION_SINGLE) + DESCRIPTION_TAIL;
17
+ }
18
+ function toTodoList(raw, allowParallel) {
19
+ const todos = [];
20
+ const seen = /* @__PURE__ */ new Set();
21
+ let active = 0;
22
+ for (const item of raw) {
23
+ const content = item.content.trim();
24
+ if (content.length === 0) {
25
+ throw new Error("invalid todo: `content` must be a non-empty string");
26
+ }
27
+ if (seen.has(content)) {
28
+ throw new Error(`invalid todos: duplicate content ${JSON.stringify(content)}`);
29
+ }
30
+ seen.add(content);
31
+ if (item.status === "in_progress") active++;
32
+ todos.push({ content, status: item.status });
33
+ }
34
+ if (!allowParallel && active > 1) {
35
+ throw new Error(`invalid todos: at most one task may be in_progress (got ${active})`);
36
+ }
37
+ return todos;
38
+ }
39
+ var todosProjectionSchema = zod.union([
40
+ zod.array(zod.object({
41
+ content: zod.string(),
42
+ status: zod.union([zod.literal("pending"), zod.literal("in_progress"), zod.literal("completed")])
43
+ })),
44
+ zod.null()
45
+ ]);
46
+ function apply(ctx, config) {
47
+ const allowParallel = config.allowParallelInProgress;
48
+ ctx.inject(["sessionProjections"], (projectionCtx) => {
49
+ projectionCtx.sessionProjections.register({
50
+ key: "todos",
51
+ schema: todosProjectionSchema,
52
+ init: () => null,
53
+ apply: (state, event) => {
54
+ if (event.type === "todo/write") return event.data.todos;
55
+ if (event.type === "turn/start") return null;
56
+ return state;
57
+ },
58
+ view: (state) => state,
59
+ stateVersion: 2
60
+ });
61
+ });
62
+ ctx.tools.register(defineTool({
63
+ name: "todo_write",
64
+ description: describe(allowParallel),
65
+ parameters: {
66
+ todos: {
67
+ type: "array",
68
+ required: true,
69
+ description: "The COMPLETE task list, replacing any previous list.",
70
+ items: {
71
+ type: "object",
72
+ additionalProperties: false,
73
+ properties: {
74
+ content: { type: "string", required: true, description: "What the task is \u2014 a short imperative line." },
75
+ status: {
76
+ type: "string",
77
+ required: true,
78
+ enum: [...STATUSES],
79
+ description: "pending (not started) | in_progress (now) | completed (done)."
80
+ }
81
+ }
82
+ }
83
+ }
84
+ },
85
+ output: {
86
+ schema: {
87
+ type: "object",
88
+ additionalProperties: false,
89
+ properties: {
90
+ todos: {
91
+ type: "array",
92
+ required: true,
93
+ items: {
94
+ type: "object",
95
+ additionalProperties: false,
96
+ properties: {
97
+ content: { type: "string", required: true },
98
+ status: { type: "string", required: true, enum: [...STATUSES] }
99
+ }
100
+ }
101
+ },
102
+ counts: {
103
+ type: "object",
104
+ additionalProperties: false,
105
+ required: true,
106
+ properties: {
107
+ pending: { type: "integer", required: true },
108
+ inProgress: { type: "integer", required: true },
109
+ completed: { type: "integer", required: true }
110
+ }
111
+ }
112
+ }
113
+ },
114
+ render: (_args, value) => [{
115
+ type: "text",
116
+ text: `Updated todo list: ${value.counts.pending} pending, ${value.counts.inProgress} in progress, ${value.counts.completed} completed.`
117
+ }]
118
+ },
119
+ execute(args, exec) {
120
+ const todos = toTodoList(args.todos, allowParallel);
121
+ if (!exec.agent) {
122
+ throw new Error("todo_write requires an owning agent session");
123
+ }
124
+ exec.agent.session.append("todo/write", { todos });
125
+ const count = (status) => todos.filter((t) => t.status === status).length;
126
+ return Promise.resolve({
127
+ todos: todos.map((todo) => ({ content: todo.content, status: todo.status })),
128
+ counts: {
129
+ pending: count("pending"),
130
+ inProgress: count("in_progress"),
131
+ completed: count("completed")
132
+ }
133
+ });
134
+ },
135
+ presentCall: (args) => ({ card: "generic", title: "Update todo list", kind: "other", rawInput: args.todos })
136
+ }));
137
+ }
138
+ export {
139
+ Config,
140
+ apply,
141
+ inject,
142
+ name
143
+ };
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 DeepSeek
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "dsh-tool-web",
3
+ "version": "0.1.0",
4
+ "description": "DeepSeek Harness web tools: web_search and web_fetch. Packaged from the DeepSeek Harness module Rebon vendors (@deepseek-ai/dsh-tool-web).",
5
+ "license": "MIT",
6
+ "capabilities": {
7
+ "kernelPlugins": {
8
+ "dsh-tool-web": {
9
+ "entry": "tool-web.js",
10
+ "tools": [
11
+ "web_search",
12
+ "web_fetch"
13
+ ],
14
+ "publishedTopics": [
15
+ "compose:session/append"
16
+ ],
17
+ "invokableTools": [
18
+ "WebSearch",
19
+ "WebFetch"
20
+ ]
21
+ }
22
+ }
23
+ },
24
+ "metadata": {
25
+ "upstream": "@deepseek-ai/dsh-tool-web"
26
+ }
27
+ }