infinicode 2.8.27 → 2.8.29
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/.opencode/plugins/home-logo-animation.tsx +124 -124
- package/.opencode/plugins/mesh-commands.tsx +140 -140
- package/.opencode/plugins/routing-mode-display.tsx +138 -138
- package/.opencode/themes/infinibot-gold.json +222 -222
- package/.opencode/tui.json +8 -8
- package/README.md +623 -623
- package/bin/robopark.js +2 -2
- package/dist/kernel/agents/backends/registry.js +22 -2
- package/dist/kernel/federation/dashboard-html.d.ts +1 -1
- package/dist/kernel/federation/dashboard-html.js +1512 -1403
- package/dist/kernel/plugins/dashboard-plugin.js +8 -8
- package/dist/robopark/add-robot.js +25 -3
- package/dist/robopark/auto-start.js +38 -38
- package/dist/robopark/probe.js +15 -15
- package/dist/robopark/setup-livekit.js +52 -52
- package/package.json +2 -2
- package/packages/robopark/README.md +63 -63
- package/packages/robopark/pi-client/README.md +17 -17
- package/packages/robopark/scheduler/main.py +827 -2
- package/packages/robopark/scheduler/preview_agent.py +7 -0
- package/packages/robopark/scheduler/requirements-robot.txt +9 -9
- package/packages/robopark/vision/README.md +66 -66
- package/packages/robopark/vision/requirements-demo.txt +16 -16
package/bin/robopark.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import('../dist/robopark-cli.js');
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import('../dist/robopark-cli.js');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CliAgentBackend } from './cli-backend.js';
|
|
2
|
-
import { tryJson, extractText, extractSessionId, sessionIdFromText } from './parse-utils.js';
|
|
2
|
+
import { tryJson, extractText, extractSessionId, sessionIdFromText, appendLine } from './parse-utils.js';
|
|
3
3
|
// ── Claude Code ──────────────────────────────────────────────────────────────
|
|
4
4
|
// `claude -p` = headless print mode. stream-json emits JSONL: a system/init
|
|
5
5
|
// object carrying session_id, assistant messages, then a terminal `result`.
|
|
@@ -70,9 +70,29 @@ const OPENCODE_SPEC = {
|
|
|
70
70
|
const sid = extractSessionId(obj);
|
|
71
71
|
if (sid)
|
|
72
72
|
acc.sessionId ??= sid;
|
|
73
|
+
// OpenCode emits a stream of typed events. The assistant answer is carried
|
|
74
|
+
// by the `text` event; `step_finish` may contain a final `result` or
|
|
75
|
+
// `answer`, and errors are flagged either by an explicit `error` field or
|
|
76
|
+
// by a non-success step reason.
|
|
77
|
+
if (obj.type === 'text') {
|
|
78
|
+
const t = extractText(obj);
|
|
79
|
+
if (t)
|
|
80
|
+
acc.content = appendLine(acc.content, t);
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
if (obj.type === 'step_finish' || obj.type === 'result' || obj.type === 'done') {
|
|
84
|
+
const t = extractText(obj);
|
|
85
|
+
if (t)
|
|
86
|
+
acc.content = appendLine(acc.content, t);
|
|
87
|
+
const reason = obj.reason ?? obj.stop_reason;
|
|
88
|
+
if (typeof reason === 'string' && reason !== 'stop' && reason !== 'success' && reason !== 'tool-calls') {
|
|
89
|
+
acc.isError = true;
|
|
90
|
+
}
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
73
93
|
const t = extractText(obj);
|
|
74
94
|
if (t)
|
|
75
|
-
acc.content = t;
|
|
95
|
+
acc.content = appendLine(acc.content, t);
|
|
76
96
|
if (obj.error)
|
|
77
97
|
acc.isError = true;
|
|
78
98
|
},
|