@rebon/cli-win32-x64 1.2.0 → 1.4.0
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.
- package/LICENSE +202 -0
- package/NOTICE +10 -0
- package/README.md +203 -144
- package/THIRD_PARTY_NOTICES.txt +1232 -128
- package/bin/rebon.js +22 -22
- package/lib/windows-managed.js +390 -390
- package/package.json +9 -2
- package/payload/compose-runtime/package.json +17 -17
- package/payload/compose-runtime/payload/compose/shims/dsh-anonymous-user-id.js +10 -10
- package/payload/compose-runtime/payload/compose/shims/dsh-credentials.js +13 -13
- package/payload/compose-runtime/payload/compose/shims/dsh-launch-environment.js +21 -21
- package/payload/compose-runtime/payload/compose/shims/dsh-llm.js +313 -313
- package/payload/compose-runtime/payload/compose/shims/dsh-settings.js +43 -43
- package/payload/compose-runtime/payload/compose/shims/dsh-tools.js +20 -20
- package/payload/compose-runtime/payload/compose/shims/dsh-web.js +10 -10
- package/payload/compose-runtime/payload/compose/shims/llm-adapter.js +32 -32
- package/payload/compose-runtime/payload/compose/shims/zod-lite.js +49 -49
- package/payload/compose-runtime/payload/vendor/cordis/LICENSE +21 -0
- package/payload/compose-runtime/payload/vendor/cordis/index.js +1530 -1530
- package/payload/compose-runtime/payload/vendor/cosmokit/LICENSE +21 -21
- package/payload/compose-runtime/payload/vendor/cosmokit/index.mjs +357 -357
- package/payload/compose-runtime/payload/vendor/dsh/LICENSE-agent +21 -21
- package/payload/compose-runtime/payload/vendor/dsh/LICENSE-agent-loop +21 -21
- package/payload/compose-runtime/payload/vendor/dsh/LICENSE-llm-core +21 -21
- package/payload/compose-runtime/payload/vendor/dsh/LICENSE-llm-deepseek +21 -21
- package/payload/compose-runtime/payload/vendor/dsh/LICENSE-logger-console +21 -21
- package/payload/compose-runtime/payload/vendor/dsh/LICENSE-scope +21 -21
- package/payload/compose-runtime/payload/vendor/dsh/LICENSE-session +21 -21
- package/payload/compose-runtime/payload/vendor/dsh/LICENSE-system-prompt +21 -21
- package/payload/compose-runtime/payload/vendor/dsh/LICENSE-timeout +21 -21
- package/payload/compose-runtime/payload/vendor/dsh/LICENSE-timer +21 -21
- package/payload/compose-runtime/payload/vendor/dsh/LICENSE-tool-todo +21 -21
- package/payload/compose-runtime/payload/vendor/dsh/LICENSE-tool-web +21 -21
- package/payload/compose-runtime/payload/vendor/dsh/LICENSE-tools-schema +21 -21
- package/payload/compose-runtime/payload/vendor/dsh/LICENSE-turndown +21 -0
- package/payload/compose-runtime/payload/vendor/dsh/LICENSE-turndown-plugin-gfm +21 -0
- package/payload/compose-runtime/payload/vendor/dsh/LICENSE-web-search-exa +21 -21
- package/payload/compose-runtime/payload/vendor/dsh/agent-loop.js +1193 -1193
- package/payload/compose-runtime/payload/vendor/dsh/agent.js +714 -714
- package/payload/compose-runtime/payload/vendor/dsh/llm-core.js +269 -269
- package/payload/compose-runtime/payload/vendor/dsh/llm-deepseek.js +672 -672
- package/payload/compose-runtime/payload/vendor/dsh/logger-console.js +83 -83
- package/payload/compose-runtime/payload/vendor/dsh/scope.js +287 -287
- package/payload/compose-runtime/payload/vendor/dsh/session.js +1668 -1668
- package/payload/compose-runtime/payload/vendor/dsh/system-prompt.js +309 -309
- package/payload/compose-runtime/payload/vendor/dsh/timeout.js +100 -100
- package/payload/compose-runtime/payload/vendor/dsh/timer.js +128 -128
- package/payload/compose-runtime/payload/vendor/dsh/tool-todo.js +143 -143
- package/payload/compose-runtime/payload/vendor/dsh/tool-web.js +1527 -1527
- package/payload/compose-runtime/payload/vendor/dsh/tools-schema.js +849 -849
- package/payload/compose-runtime/payload/vendor/dsh/web-search-exa.js +122 -122
- package/payload/compose-runtime/payload/vendor/eventsource-parser/LICENSE +21 -21
- package/payload/compose-runtime/payload/vendor/eventsource-parser/index.js +177 -177
- package/payload/compose-runtime/payload/vendor/eventsource-parser/stream.js +48 -48
- package/payload/compose-runtime/payload/vendor/schemastery/LICENSE +21 -0
- package/payload/compose-runtime/payload/vendor/schemastery/index.mjs +656 -656
- package/payload/compose-runtime/payload-manifests.json +48 -48
- package/payload/compose-runtime/src/bridge.mjs +193 -195
- package/payload/compose-runtime/src/credentials-runtime.mjs +50 -50
- package/payload/compose-runtime/src/eventsource-stream.mjs +48 -48
- package/payload/compose-runtime/src/index.mjs +7 -7
- package/payload/compose-runtime/src/llm-runtime.mjs +326 -326
- package/payload/compose-runtime/src/loader.mjs +78 -78
- package/payload/compose-runtime/src/loop-assembly.mjs +237 -237
- package/payload/compose-runtime/src/payload.mjs +49 -49
- package/payload/compose-runtime/src/plugin.mjs +59 -59
- package/payload/compose-runtime/src/realm.mjs +223 -223
- package/payload/compose-runtime/src/registry.mjs +191 -191
- package/payload/compose-runtime/src/resolve.mjs +115 -115
- package/payload/compose-runtime/src/systemprompt-runtime.mjs +67 -67
- package/payload/compose-runtime/src/tools-runtime.mjs +239 -239
- package/payload/compose-runtime/src/web-runtime.mjs +209 -209
- package/payload/plugin-host/package.json +11 -11
- package/payload/plugin-host/src/bridge.mjs +64 -64
- package/payload/plugin-host/src/cli.mjs +147 -147
- package/payload/plugin-host/src/framing.mjs +113 -113
- package/payload/plugin-host/src/host.mjs +691 -691
- package/payload/plugin-host/src/json.mjs +208 -208
- package/payload/plugin-host/src/lifecycle.mjs +114 -114
- package/payload/plugin-host/src/loader.mjs +183 -183
- package/payload/plugin-host/src/methods.mjs +377 -377
- package/payload/plugin-host/src/ownership.mjs +57 -57
- package/payload/plugin-host/src/protocol.mjs +129 -129
- package/payload/plugin-host/src/sdk.mjs +7 -7
- package/payload/rebon-boa-helper.exe +0 -0
- package/payload/rebon-browser-mcp.exe +0 -0
- package/payload/rebon-computer-use.exe +0 -0
- package/payload/rebon-lsp-mcp.exe +0 -0
- package/payload/rebon.exe +2 -2
- package/payload/sandbox-win.exe +0 -0
- package/scripts/postinstall.js +112 -112
- package/payload/compose-runtime/payload/compose/credentials-runtime.js +0 -38
- package/payload/compose-runtime/payload/compose/llm-runtime.js +0 -330
- package/payload/compose-runtime/payload/compose/loop-assembly.js +0 -149
- package/payload/compose-runtime/payload/compose/serve-dispatch.js +0 -82
- package/payload/compose-runtime/payload/compose/systemprompt-runtime.js +0 -74
- package/payload/compose-runtime/payload/compose/tools-runtime.js +0 -228
- package/payload/compose-runtime/payload/compose/web-runtime.js +0 -204
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
// `eventsource-parser/stream` for real Node — the published package's shape.
|
|
2
|
-
//
|
|
3
|
-
// The vendored build under `js/vendor/eventsource-parser/stream.js` is not the
|
|
4
|
-
// published module: it was rewritten so that `EventSourceParserStream` is a
|
|
5
|
-
// "Mini streams" transform (an object with `transformIterable`), because bare
|
|
6
|
-
// deno_core has no WHATWG `TransformStream` for the real one to extend. The
|
|
7
|
-
// dsh DeepSeek adapter consumes it as a platform stream —
|
|
8
|
-
// `response.body.pipeThrough(new TextDecoderStream()).pipeThrough(new
|
|
9
|
-
// EventSourceParserStream())` — which on real Node throws
|
|
10
|
-
// `ERR_INVALID_ARG_TYPE: transform.readable must be an instance of
|
|
11
|
-
// ReadableStream` against the rewritten class.
|
|
12
|
-
//
|
|
13
|
-
// So on Node the upstream shape comes back. Parsing itself is still the
|
|
14
|
-
// vendored upstream `createParser`, so framing semantics — chunk reassembly,
|
|
15
|
-
// CRLF/BOM, comment skipping, multi-`data:` joining — stay byte-identical to
|
|
16
|
-
// the published package on both runtimes; only the plumbing differs.
|
|
17
|
-
import { createParser } from 'eventsource-parser';
|
|
18
|
-
|
|
19
|
-
export { ParseError } from 'eventsource-parser';
|
|
20
|
-
|
|
21
|
-
export class EventSourceParserStream extends TransformStream {
|
|
22
|
-
constructor({ onError, onRetry, onComment, maxBufferSize } = {}) {
|
|
23
|
-
let parser;
|
|
24
|
-
super({
|
|
25
|
-
start(controller) {
|
|
26
|
-
parser = createParser({
|
|
27
|
-
onEvent: (event) => controller.enqueue(event),
|
|
28
|
-
onError(error) {
|
|
29
|
-
// Upstream's rule, kept: a callback observes, the string
|
|
30
|
-
// `'terminate'` aborts, and a buffer overflow aborts regardless of
|
|
31
|
-
// what the consumer asked for — there is no way to keep parsing
|
|
32
|
-
// past it.
|
|
33
|
-
if (typeof onError === 'function') onError(error);
|
|
34
|
-
if (onError === 'terminate' || error.type === 'max-buffer-size-exceeded') {
|
|
35
|
-
controller.error(error);
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
onRetry,
|
|
39
|
-
onComment,
|
|
40
|
-
maxBufferSize,
|
|
41
|
-
});
|
|
42
|
-
},
|
|
43
|
-
transform(chunk) {
|
|
44
|
-
parser.feed(chunk);
|
|
45
|
-
},
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
}
|
|
1
|
+
// `eventsource-parser/stream` for real Node — the published package's shape.
|
|
2
|
+
//
|
|
3
|
+
// The vendored build under `js/vendor/eventsource-parser/stream.js` is not the
|
|
4
|
+
// published module: it was rewritten so that `EventSourceParserStream` is a
|
|
5
|
+
// "Mini streams" transform (an object with `transformIterable`), because bare
|
|
6
|
+
// deno_core has no WHATWG `TransformStream` for the real one to extend. The
|
|
7
|
+
// dsh DeepSeek adapter consumes it as a platform stream —
|
|
8
|
+
// `response.body.pipeThrough(new TextDecoderStream()).pipeThrough(new
|
|
9
|
+
// EventSourceParserStream())` — which on real Node throws
|
|
10
|
+
// `ERR_INVALID_ARG_TYPE: transform.readable must be an instance of
|
|
11
|
+
// ReadableStream` against the rewritten class.
|
|
12
|
+
//
|
|
13
|
+
// So on Node the upstream shape comes back. Parsing itself is still the
|
|
14
|
+
// vendored upstream `createParser`, so framing semantics — chunk reassembly,
|
|
15
|
+
// CRLF/BOM, comment skipping, multi-`data:` joining — stay byte-identical to
|
|
16
|
+
// the published package on both runtimes; only the plumbing differs.
|
|
17
|
+
import { createParser } from 'eventsource-parser';
|
|
18
|
+
|
|
19
|
+
export { ParseError } from 'eventsource-parser';
|
|
20
|
+
|
|
21
|
+
export class EventSourceParserStream extends TransformStream {
|
|
22
|
+
constructor({ onError, onRetry, onComment, maxBufferSize } = {}) {
|
|
23
|
+
let parser;
|
|
24
|
+
super({
|
|
25
|
+
start(controller) {
|
|
26
|
+
parser = createParser({
|
|
27
|
+
onEvent: (event) => controller.enqueue(event),
|
|
28
|
+
onError(error) {
|
|
29
|
+
// Upstream's rule, kept: a callback observes, the string
|
|
30
|
+
// `'terminate'` aborts, and a buffer overflow aborts regardless of
|
|
31
|
+
// what the consumer asked for — there is no way to keep parsing
|
|
32
|
+
// past it.
|
|
33
|
+
if (typeof onError === 'function') onError(error);
|
|
34
|
+
if (onError === 'terminate' || error.type === 'max-buffer-size-exceeded') {
|
|
35
|
+
controller.error(error);
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
onRetry,
|
|
39
|
+
onComment,
|
|
40
|
+
maxBufferSize,
|
|
41
|
+
});
|
|
42
|
+
},
|
|
43
|
+
transform(chunk) {
|
|
44
|
+
parser.feed(chunk);
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
// The package's root export: the loader seam the plugin host runs with.
|
|
2
|
-
//
|
|
3
|
-
// `rebon-plugin-host --loader <this file>` is what turns a generic plugin host
|
|
4
|
-
// into one that can mount a Cordis composition. Everything else in this package
|
|
5
|
-
// hangs off that.
|
|
6
|
-
export { createLoader, cordisPluginOf } from './loader.mjs';
|
|
7
|
-
export { activate as composeControl } from './plugin.mjs';
|
|
1
|
+
// The package's root export: the loader seam the plugin host runs with.
|
|
2
|
+
//
|
|
3
|
+
// `rebon-plugin-host --loader <this file>` is what turns a generic plugin host
|
|
4
|
+
// into one that can mount a Cordis composition. Everything else in this package
|
|
5
|
+
// hangs off that.
|
|
6
|
+
export { createLoader, cordisPluginOf } from './loader.mjs';
|
|
7
|
+
export { activate as composeControl } from './plugin.mjs';
|