toc-ocra 0.2.38 → 0.3.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.
Files changed (79) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +147 -139
  3. package/assets/icon.svg +1 -1
  4. package/dist/cli/cli.mjs +3208 -2573
  5. package/dist/plugin/renderer.css.map +1 -1
  6. package/dist/plugin/renderer.js.map +1 -1
  7. package/dist/service/agent.mjs +1477 -963
  8. package/dist/src/config.d.ts +4 -2
  9. package/dist/src/config.js +6 -6
  10. package/dist/src/config.js.map +1 -1
  11. package/dist/src/health/server.js +8 -8
  12. package/dist/src/index.js +43 -1
  13. package/dist/src/index.js.map +1 -1
  14. package/dist/src/providers/acp/acp-agents.d.ts +5 -0
  15. package/dist/src/providers/acp/acp-agents.js +55 -0
  16. package/dist/src/providers/acp/acp-agents.js.map +1 -0
  17. package/dist/src/providers/acp/acp-driver.d.ts +60 -0
  18. package/dist/src/providers/acp/acp-driver.js +317 -0
  19. package/dist/src/providers/acp/acp-driver.js.map +1 -0
  20. package/dist/src/providers/chat/codex-app-server.js +3 -2
  21. package/dist/src/providers/chat/codex-app-server.js.map +1 -1
  22. package/dist/src/providers/chat/index.d.ts +4 -2
  23. package/dist/src/providers/chat/index.js +7 -8
  24. package/dist/src/providers/chat/index.js.map +1 -1
  25. package/dist/src/providers/cli/claude.js +6 -2
  26. package/dist/src/providers/cli/claude.js.map +1 -1
  27. package/dist/src/providers/cli/codex.js +5 -1
  28. package/dist/src/providers/cli/codex.js.map +1 -1
  29. package/dist/src/providers/cli/gemini.js +3 -1
  30. package/dist/src/providers/cli/gemini.js.map +1 -1
  31. package/dist/src/providers/cli/grok.js +3 -1
  32. package/dist/src/providers/cli/grok.js.map +1 -1
  33. package/dist/src/providers/cli/kiro.d.ts +10 -4
  34. package/dist/src/providers/cli/kiro.js +37 -37
  35. package/dist/src/providers/cli/kiro.js.map +1 -1
  36. package/dist/src/providers/cli/opencode.js +3 -1
  37. package/dist/src/providers/cli/opencode.js.map +1 -1
  38. package/dist/src/providers/cli-failure.d.ts +66 -0
  39. package/dist/src/providers/cli-failure.js +128 -0
  40. package/dist/src/providers/cli-failure.js.map +1 -0
  41. package/dist/src/providers/cli-specs.d.ts +58 -0
  42. package/dist/src/providers/cli-specs.js +37 -0
  43. package/dist/src/providers/cli-specs.js.map +1 -0
  44. package/dist/src/providers/codex-quota.js +3 -2
  45. package/dist/src/providers/codex-quota.js.map +1 -1
  46. package/dist/src/providers/kiro-quota.js +3 -2
  47. package/dist/src/providers/kiro-quota.js.map +1 -1
  48. package/dist/src/providers/model-catalog-collector.d.ts +1 -1
  49. package/dist/src/providers/model-catalog-collector.js +3 -3
  50. package/dist/src/providers/model-catalog-collector.js.map +1 -1
  51. package/dist/src/providers/model-catalog.d.ts +0 -2
  52. package/dist/src/providers/model-catalog.js +12 -13
  53. package/dist/src/providers/model-catalog.js.map +1 -1
  54. package/dist/src/providers/provider.d.ts +21 -45
  55. package/dist/src/providers/provider.js +6 -4
  56. package/dist/src/providers/provider.js.map +1 -1
  57. package/dist/src/providers/quota-reader.d.ts +1 -1
  58. package/dist/src/providers/quota-reader.js +5 -10
  59. package/dist/src/providers/quota-reader.js.map +1 -1
  60. package/dist/src/providers/registry.d.ts +46 -9
  61. package/dist/src/providers/registry.js +73 -21
  62. package/dist/src/providers/registry.js.map +1 -1
  63. package/dist/src/runs/run-recorder.d.ts +32 -0
  64. package/dist/src/runs/run-recorder.js +27 -0
  65. package/dist/src/runs/run-recorder.js.map +1 -0
  66. package/dist/src/runs/run-supervisor.d.ts +13 -0
  67. package/dist/src/runs/run-supervisor.js +124 -57
  68. package/dist/src/runs/run-supervisor.js.map +1 -1
  69. package/dist/src/smoke/cli-smoke.d.ts +30 -0
  70. package/dist/src/smoke/cli-smoke.js +92 -0
  71. package/dist/src/smoke/cli-smoke.js.map +1 -0
  72. package/dist/src/types/protocol.d.ts +3 -0
  73. package/dist/src/types/protocol.js.map +1 -1
  74. package/locales/en.json +202 -202
  75. package/locales/zh-CN.json +202 -202
  76. package/package.json +102 -102
  77. package/scripts/installation.cjs +260 -260
  78. package/scripts/postinstall.cjs +22 -22
  79. package/scripts/service.mjs +253 -253
@@ -0,0 +1,92 @@
1
+ import { mkdtemp, realpath, rm } from 'node:fs/promises';
2
+ import { tmpdir } from 'node:os';
3
+ import { join } from 'node:path';
4
+ import { cliDetection } from '../providers/detection.js';
5
+ import { CLI_CATALOG, catalogEntry } from '../providers/registry.js';
6
+ import { RunSupervisor } from '../runs/run-supervisor.js';
7
+ /**
8
+ * One minimal turn per installed CLI, through the same supervisor and
9
+ * drivers task-chain turns use: `toc-ocra smoke` (or `doctor --smoke`)
10
+ * checks every CLI on this computer with one command. `--full` adds a shell
11
+ * step, a resume and a missing session; `--record <dir>` saves each turn's
12
+ * raw traffic for replay tests (tests/recordings).
13
+ */
14
+ export const SMOKE_TOKEN = 'TOC_OCRA_SMOKE_OK';
15
+ const PROMPTS = {
16
+ reply: `这是设备代理的连通性检查,不需要做任何事。请只回复:${SMOKE_TOKEN}`,
17
+ shell: `这是设备代理的连通性检查。请执行 shell 命令 \`echo toc-ocra-smoke\`,然后只回复:${SMOKE_TOKEN}`,
18
+ resume: `这是同一会话的第二轮检查。请只回复:${SMOKE_TOKEN}`,
19
+ 'missing-session': `这是设备代理的连通性检查。请只回复:${SMOKE_TOKEN}`
20
+ };
21
+ const silent = { debug() { }, info() { }, warn() { }, error() { }, close() { } };
22
+ export async function runCliSmoke(options = {}) {
23
+ const detection = await cliDetection.detect(true);
24
+ const ids = options.only?.length
25
+ ? options.only.map((id) => catalogEntry(id)?.id ?? id)
26
+ : CLI_CATALOG.filter((entry) => entry.headless && detection.detectedIds.includes(entry.id)).map((entry) => entry.id);
27
+ const root = await realpath(await mkdtemp(join(tmpdir(), 'toc-ocra-smoke-')));
28
+ const finished = new Map();
29
+ const config = { allowedRoots: [root], maxConcurrentRuns: 0, maxRunSeconds: options.timeoutSeconds ?? 300, dataDir: root };
30
+ const supervisor = new RunSupervisor(config, silent, {
31
+ started: async () => undefined,
32
+ finished: async (runId, report) => { finished.set(runId, report); }
33
+ });
34
+ const savedRecord = process.env.TOC_OCRA_RECORD_DIR;
35
+ if (options.record)
36
+ process.env.TOC_OCRA_RECORD_DIR = options.record;
37
+ const results = [];
38
+ try {
39
+ for (const id of ids) {
40
+ const entry = catalogEntry(id);
41
+ const installed = detection.detectedIds.includes(entry?.id ?? id);
42
+ if (!entry?.headless || !installed) {
43
+ results.push({ cli: id, scenario: 'reply', ok: false, status: 'skipped', duration_ms: 0, error: !entry ? '不支持的 CLI 类型' : !installed ? '本机未安装' : '不支持无界面执行' });
44
+ continue;
45
+ }
46
+ const turn = async (scenario, extra = {}) => {
47
+ const runId = `smoke-${id}-${scenario}-${Date.now()}`;
48
+ // Read-only where the CLI enforces it; the shell step needs full access.
49
+ const mode = scenario !== 'shell' && entry.restrictedPermission ? 'restricted' : 'full';
50
+ const started = Date.now();
51
+ await supervisor.start({
52
+ cli_policy: { enabled: true, mode, version: 1 },
53
+ run_id: runId, workstation_id: `smoke-${id}`, workstation_name: 'smoke', agent_type: id, task_chain_id: '', message_id: '',
54
+ prompt: PROMPTS[scenario], session_id: '', model: '', reasoning_effort: '', workdir: root, ...extra
55
+ });
56
+ while (!finished.has(runId))
57
+ await new Promise((resolve) => setTimeout(resolve, 200));
58
+ const report = finished.get(runId);
59
+ supervisor.markReported(runId);
60
+ const result = {
61
+ cli: id, scenario, status: report.status, duration_ms: Date.now() - started,
62
+ ok: report.status === 'succeeded' && (report.final_message ?? '').includes(SMOKE_TOKEN),
63
+ ...(report.session_id ? { session_id: report.session_id } : {}),
64
+ ...(report.failure_kind ? { failure_kind: report.failure_kind } : {}),
65
+ ...(report.error ? { error: report.error } : report.status === 'succeeded' && !(report.final_message ?? '').includes(SMOKE_TOKEN) ? { error: `回复中没有 ${SMOKE_TOKEN}:${(report.final_message ?? '').slice(0, 120)}` } : {})
66
+ };
67
+ options.log?.(`${result.ok ? '✓' : '✗'} ${id} ${scenario} ${result.status}${result.failure_kind ? ` [${result.failure_kind}]` : ''} ${Math.round(result.duration_ms / 100) / 10}s${result.error ? ` ${result.error}` : ''}`);
68
+ results.push(result);
69
+ return result;
70
+ };
71
+ const first = await turn('reply');
72
+ if (!options.full || !first.ok)
73
+ continue;
74
+ await turn('shell');
75
+ if (first.session_id)
76
+ await turn('resume', { session_id: first.session_id });
77
+ await turn('missing-session', { session_id: '00000000-0000-4000-8000-000000000000' });
78
+ }
79
+ }
80
+ finally {
81
+ if (options.record) {
82
+ if (savedRecord === undefined)
83
+ delete process.env.TOC_OCRA_RECORD_DIR;
84
+ else
85
+ process.env.TOC_OCRA_RECORD_DIR = savedRecord;
86
+ }
87
+ await supervisor.disposeAll();
88
+ await rm(root, { recursive: true, force: true }).catch(() => undefined);
89
+ }
90
+ return results;
91
+ }
92
+ //# sourceMappingURL=cli-smoke.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-smoke.js","sourceRoot":"","sources":["../../../src/smoke/cli-smoke.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAIhC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAGzD;;;;;;GAMG;AAEH,MAAM,CAAC,MAAM,WAAW,GAAG,mBAAmB,CAAA;AAyB9C,MAAM,OAAO,GAAkC;IAC7C,KAAK,EAAE,6BAA6B,WAAW,EAAE;IACjD,KAAK,EAAE,2DAA2D,WAAW,EAAE;IAC/E,MAAM,EAAE,qBAAqB,WAAW,EAAE;IAC1C,iBA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,KAAK,CAAC,EAAE;gBAAE,SAAQ;YACxC,MAAM,IAAI,CAAC,OAAO,CAAC,CAAA;YACnB,IAAI,KAAK,CAAC,UAAU;gBAAE,MAAM,IAAI,CAAC,QAAQ,EAAE,EAAE,UAAU,EAAE,KAAK,CAAC,UAAU,EAAE,CAAC,CAAA;YAC5E,MAAM,IAAI,CAAC,iBAAiB,EAAE,EAAE,UAAU,EAAE,sCAAsC,EAAE,CAAC,CAAA;QACvF,CAAC;IACH,CAAC;YAAS,CAAC;QACT,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;YACnB,IAAI,WAAW,KAAK,SAAS;gBAAE,OAAO,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAA;;gBAChE,OAAO,CAAC,GAAG,CAAC,mBAAmB,GAAG,WAAW,CAAA;QACpD,CAAC;QACD,MAAM,UAAU,CAAC,UAAU,EAAE,CAAA;QAC7B,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAA;IACzE,CAAC;IACD,OAAO,OAAO,CAAA;AAChB,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import type { CliFailureKind } from '../providers/cli-failure.js';
2
3
  export type ApiEnvelope<T> = {
3
4
  success: boolean;
4
5
  message?: string;
@@ -140,6 +141,8 @@ export type RunFinishedReport = {
140
141
  duration_ms: number;
141
142
  /** `stalled`: stopped by the agent because the CLI printed nothing for too long. */
142
143
  failure_reason?: 'stalled';
144
+ /** Shared failure kind (providers/cli-failure.ts), the same for every CLI and OS. */
145
+ failure_kind?: CliFailureKind;
143
146
  stall?: RunStall;
144
147
  };
145
148
  export type RunStartedReport = {
@@ -1 +1 @@
1
- {"version":3,"file":"protocol.js","sourceRoot":"","sources":["../../../src/types/protocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,M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jD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;IACtC,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC/D,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;QACtB,aAAa,EAAE,kBAAkB;QACjC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACpD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;KAClD,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC1B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE;IAC5D,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;CAChH,CAAC,CAAA"}
package/locales/en.json CHANGED
@@ -1,202 +1,202 @@
1
- {
2
- "nav": {
3
- "title": "Device agent"
4
- },
5
- "page": {
6
- "title": "Device agent",
7
- "subtitle": "Let computers take tasks from task chains: enable this one with one click, connect others with one command."
8
- },
9
- "common": {
10
- "copy": "Copy",
11
- "copied": "Copied",
12
- "checking": "Checking the local service…"
13
- },
14
- "error": {
15
- "offline": "Can't reach the local service. Make sure toc-ocra is running."
16
- },
17
- "health": {
18
- "online": "Online: {{name}}",
19
- "disconnected": "Bound, but the server is not reachable right now",
20
- "unpaired": "Local service running, not bound to a server yet",
21
- "offline": "Local service not running",
22
- "disabled": "The local device agent is off"
23
- },
24
- "offline": {
25
- "title": "Local service not running",
26
- "body": "The plugin talks to the local toc-ocra service at {{url}}. This desktop app version cannot start it for you, so start it in a terminal; after updating the app you can switch it on here.",
27
- "once": "Run once (stops when the terminal closes)",
28
- "service": "For everyday use: install it as a background service that starts at login",
29
- "node": "Requires Node.js 20 or newer. This page refreshes on its own once the service is up."
30
- },
31
- "pair": {
32
- "title": "Connect to the local service",
33
- "body": "The local service shows a 6-digit connection code when it starts. You can also print it with this command.",
34
- "placeholder": "6-digit code",
35
- "submit": "Connect",
36
- "wrong": "Wrong code. Check it again (a code changes after it is used).",
37
- "locked": "Too many wrong codes. Try again with the new code in 30 seconds."
38
- },
39
- "status": {
40
- "title": "This computer",
41
- "service": "Local service",
42
- "binding": "Binding",
43
- "device": "Device",
44
- "server": "Server",
45
- "runs": "Running tasks",
46
- "lastError": "Last error: {{error}}",
47
- "tokenFromEnv": "The device token comes from the TOC_OCRA_TOKEN environment variable, so binding can't be changed here.",
48
- "unpair": "Unbind"
49
- },
50
- "binding": {
51
- "unpaired": "Not bound",
52
- "revoked": "Credentials revoked",
53
- "online": "Online",
54
- "connecting": "Connecting"
55
- },
56
- "bind": {
57
- "title": "Bind to the current server",
58
- "rebindTitle": "Bind again",
59
- "revoked": "The server no longer accepts this computer's credentials (it may have been unpaired on the Devices page). Bind it again.",
60
- "elsewhere": "This computer is bound to {{bound}}, but you are using {{current}}. Binding again switches it to the current server.",
61
- "body": "Once bound, tasks sent to this device in \"{{workspace}}\" run on this computer (server: {{server}}).",
62
- "server": "Server address",
63
- "device": "Device",
64
- "newDevice": "Find this computer automatically",
65
- "replaces": "replaces its current binding",
66
- "name": "Name for first registration",
67
- "identityRequired": "Update the device agent or select an existing device to bind.",
68
- "submit": "Bind",
69
- "working": "Binding…",
70
- "noWorkspace": "Select a workspace first.",
71
- "noServer": "The server address is missing.",
72
- "done": "This computer is now bound to {{server}}"
73
- },
74
- "auto": {
75
- "done": "Switched to {{server}} automatically (device: {{device}})",
76
- "deferred": "Tasks are running; this computer switches to {{server}} when they finish"
77
- },
78
- "cli": {
79
- "title": "CLIs on this computer",
80
- "runnable": "Runnable",
81
- "detectOnly": "Detected only",
82
- "none": "No usable CLI detected.",
83
- "redetect": "Detect again"
84
- },
85
- "tabs": {
86
- "local": "This computer",
87
- "remote": "Other computers",
88
- "providers": "TB Switch"
89
- },
90
- "provider": {
91
- "chooseDevice": "Manage device",
92
- "selectDevice": "Select a device",
93
- "myDevice": "My device",
94
- "owner": "{{owner}}'s device",
95
- "thisDevice": "This computer",
96
- "refreshDevices": "Refresh devices",
97
- "loadingDevices": "Loading workspace devices…",
98
- "loading": "Loading…",
99
- "retry": "Retry",
100
- "noWorkspace": "Select a workspace first.",
101
- "noDevices": "No devices are available in this workspace.",
102
- "noDevicesDescription": "Devices available in the workspace will appear here.",
103
- "status": {
104
- "notPaired": "Not paired",
105
- "online": "Online",
106
- "offline": "Offline",
107
- "paused": "Paused"
108
- },
109
- "title": "TB Switch settings",
110
- "description": "View and switch configured providers and the default route on {{name}}.",
111
- "cli": "CLI",
112
- "refresh": "Refresh settings",
113
- "notPaired": "This device is not paired with the device agent, so TB Switch settings cannot be read.",
114
- "paused": "The device agent is paused. Resume it to read and change settings.",
115
- "offline": "The device agent is offline. Settings will be available when it comes back online.",
116
- "loadingState": "Loading {{app}} settings…",
117
- "selectHint": "Choose a CLI to read its existing settings on the selected device.",
118
- "readOnly": "You can view settings, but only the device owner or a workspace admin can change them.",
119
- "ownerOnly": "Only the device owner or a workspace admin can change settings on this device.",
120
- "refreshed": "Settings refreshed.",
121
- "updated": "Device settings updated.",
122
- "warnings": "Switching notes",
123
- "mode": "Provider mode",
124
- "single": "Single provider",
125
- "multi": "Multi-provider routing",
126
- "singleDescription": "Use one current provider for the entire CLI.",
127
- "multiDescription": "Use configured providers based on model routes.",
128
- "multiUnsupported": "This CLI does not support multi-provider routing.",
129
- "noRoutes": "No routes are available. Configure them in the desktop TB Switch plugin first.",
130
- "defaultRoute": "Default model route",
131
- "proxyRunning": "Proxy running",
132
- "providerRemoved": "Provider removed",
133
- "configuredProviders": "Configured providers",
134
- "noProviders": "No providers are configured. Configure them in the desktop TB Switch plugin first.",
135
- "official": "Official login",
136
- "custom": "Custom provider",
137
- "current": "Current",
138
- "currentProvider": "Current provider: {{name}}. Open CLI sessions may need to restart to use the new settings.",
139
- "confirmModeTitle": "Change provider mode?",
140
- "confirmMulti": "Configured providers will be selected by model route.",
141
- "confirmSingle": "The CLI will use one current provider. Configured model routes will be kept.",
142
- "confirmModeHelp": "This changes existing settings on the selected device. It does not add or edit providers or routes.",
143
- "cancel": "Cancel",
144
- "confirm": "Confirm"
145
- },
146
- "service": {
147
- "title": "Local device agent",
148
- "onBody": "On: this computer takes tasks from task chains and runs CLIs such as Codex and Claude locally.",
149
- "offBody": "Turn it on and the desktop app starts the device agent on this computer and binds it to the current server. No terminal needed.",
150
- "followsApp": "The agent follows the desktop app: it starts with the app and stops when the app quits (it shows offline about 90 seconds later).",
151
- "starting": "Starting the local device agent…",
152
- "onExternalBody": "Enabled: the device agent on this computer is already running (a background service or toc-ocra started in a terminal). It receives task-chain work and runs Codex, Claude and other CLIs here.",
153
- "external": "Connected to the agent already running on this computer instead of starting another. It does not stop when the desktop app quits; to turn it off run toc-ocra service:uninstall in a terminal (or stop the toc-ocra you started).",
154
- "portTaken": "The local service port is used by another program, so the desktop app cannot start the device agent.",
155
- "crashed": "The device agent stopped unexpectedly: {{error}}"
156
- },
157
- "remote": {
158
- "title": "Install on another computer",
159
- "body": "A Linux server, another Mac or a Windows PC: generate one command and run it in that computer's terminal. It installs, pairs and sets up the background service, and this page shows the match when it is done.",
160
- "server": "Server address that computer uses",
161
- "serverInvalid": "The server address is invalid. Use an address starting with http:// or https://.",
162
- "loopback": "127.0.0.1 / localhost only works on this computer. Other computers cannot reach it; use this server's LAN or public address.",
163
- "add": "Add a computer",
164
- "platformLabel": "System",
165
- "platform": {
166
- "linux": "Linux server",
167
- "mac": "macOS",
168
- "win": "Windows"
169
- },
170
- "name": "Device name",
171
- "namePlaceholder": "e.g. Test server",
172
- "generate": "Generate install command",
173
- "working": "Generating…",
174
- "cancel": "Cancel",
175
- "pendingTitle": "Run on \"{{name}}\"",
176
- "pendingBody": "Copy this command and run it in that computer's terminal:",
177
- "hintNode": "Requires Node.js 20 or newer.",
178
- "hintLinux": "If npm reports a permission error, prefix npm install with sudo (or use Node from nvm). To stay online after logging out, run loginctl enable-linger \"$USER\" once.",
179
- "hintWindows": "Run it in PowerShell.",
180
- "expires": "The pairing code expires in {{minutes}}:{{seconds}} and works once.",
181
- "expired": "The pairing code expired. Generate a new one.",
182
- "waiting": "Waiting for that computer to run the command… This updates on its own.",
183
- "regenerate": "Generate again",
184
- "matched": "Matched",
185
- "matchedBody": "\"{{name}}\" is online and ready to use in workstations.",
186
- "matchedNotice": "\"{{name}}\" is online",
187
- "done": "Done",
188
- "listTitle": "My other computers",
189
- "empty": "No other computers yet.",
190
- "install": "Generate install command",
191
- "repair": "Pair again",
192
- "enabled": "Take tasks",
193
- "disableHint": "Turning off \"Take tasks\" disables the device: the pairing is kept, no tasks are sent, and turning it back on restores it right away without touching that computer.",
194
- "uninstall": "To uninstall completely, run on that computer",
195
- "status": {
196
- "online": "Online",
197
- "offline": "Offline",
198
- "disabled": "Disabled",
199
- "notConnected": "Not paired"
200
- }
201
- }
202
- }
1
+ {
2
+ "nav": {
3
+ "title": "Device agent"
4
+ },
5
+ "page": {
6
+ "title": "Device agent",
7
+ "subtitle": "Let computers take tasks from task chains: enable this one with one click, connect others with one command."
8
+ },
9
+ "common": {
10
+ "copy": "Copy",
11
+ "copied": "Copied",
12
+ "checking": "Checking the local service…"
13
+ },
14
+ "error": {
15
+ "offline": "Can't reach the local service. Make sure toc-ocra is running."
16
+ },
17
+ "health": {
18
+ "online": "Online: {{name}}",
19
+ "disconnected": "Bound, but the server is not reachable right now",
20
+ "unpaired": "Local service running, not bound to a server yet",
21
+ "offline": "Local service not running",
22
+ "disabled": "The local device agent is off"
23
+ },
24
+ "offline": {
25
+ "title": "Local service not running",
26
+ "body": "The plugin talks to the local toc-ocra service at {{url}}. This desktop app version cannot start it for you, so start it in a terminal; after updating the app you can switch it on here.",
27
+ "once": "Run once (stops when the terminal closes)",
28
+ "service": "For everyday use: install it as a background service that starts at login",
29
+ "node": "Requires Node.js 20 or newer. This page refreshes on its own once the service is up."
30
+ },
31
+ "pair": {
32
+ "title": "Connect to the local service",
33
+ "body": "The local service shows a 6-digit connection code when it starts. You can also print it with this command.",
34
+ "placeholder": "6-digit code",
35
+ "submit": "Connect",
36
+ "wrong": "Wrong code. Check it again (a code changes after it is used).",
37
+ "locked": "Too many wrong codes. Try again with the new code in 30 seconds."
38
+ },
39
+ "status": {
40
+ "title": "This computer",
41
+ "service": "Local service",
42
+ "binding": "Binding",
43
+ "device": "Device",
44
+ "server": "Server",
45
+ "runs": "Running tasks",
46
+ "lastError": "Last error: {{error}}",
47
+ "tokenFromEnv": "The device token comes from the TOC_OCRA_TOKEN environment variable, so binding can't be changed here.",
48
+ "unpair": "Unbind"
49
+ },
50
+ "binding": {
51
+ "unpaired": "Not bound",
52
+ "revoked": "Credentials revoked",
53
+ "online": "Online",
54
+ "connecting": "Connecting"
55
+ },
56
+ "bind": {
57
+ "title": "Bind to the current server",
58
+ "rebindTitle": "Bind again",
59
+ "revoked": "The server no longer accepts this computer's credentials (it may have been unpaired on the Devices page). Bind it again.",
60
+ "elsewhere": "This computer is bound to {{bound}}, but you are using {{current}}. Binding again switches it to the current server.",
61
+ "body": "Once bound, tasks sent to this device in \"{{workspace}}\" run on this computer (server: {{server}}).",
62
+ "server": "Server address",
63
+ "device": "Device",
64
+ "newDevice": "Find this computer automatically",
65
+ "replaces": "replaces its current binding",
66
+ "name": "Name for first registration",
67
+ "identityRequired": "Update the device agent or select an existing device to bind.",
68
+ "submit": "Bind",
69
+ "working": "Binding…",
70
+ "noWorkspace": "Select a workspace first.",
71
+ "noServer": "The server address is missing.",
72
+ "done": "This computer is now bound to {{server}}"
73
+ },
74
+ "auto": {
75
+ "done": "Switched to {{server}} automatically (device: {{device}})",
76
+ "deferred": "Tasks are running; this computer switches to {{server}} when they finish"
77
+ },
78
+ "cli": {
79
+ "title": "CLIs on this computer",
80
+ "runnable": "Runnable",
81
+ "detectOnly": "Detected only",
82
+ "none": "No usable CLI detected.",
83
+ "redetect": "Detect again"
84
+ },
85
+ "tabs": {
86
+ "local": "This computer",
87
+ "remote": "Other computers",
88
+ "providers": "TB Switch"
89
+ },
90
+ "provider": {
91
+ "chooseDevice": "Manage device",
92
+ "selectDevice": "Select a device",
93
+ "myDevice": "My device",
94
+ "owner": "{{owner}}'s device",
95
+ "thisDevice": "This computer",
96
+ "refreshDevices": "Refresh devices",
97
+ "loadingDevices": "Loading workspace devices…",
98
+ "loading": "Loading…",
99
+ "retry": "Retry",
100
+ "noWorkspace": "Select a workspace first.",
101
+ "noDevices": "No devices are available in this workspace.",
102
+ "noDevicesDescription": "Devices available in the workspace will appear here.",
103
+ "status": {
104
+ "notPaired": "Not paired",
105
+ "online": "Online",
106
+ "offline": "Offline",
107
+ "paused": "Paused"
108
+ },
109
+ "title": "TB Switch settings",
110
+ "description": "View and switch configured providers and the default route on {{name}}.",
111
+ "cli": "CLI",
112
+ "refresh": "Refresh settings",
113
+ "notPaired": "This device is not paired with the device agent, so TB Switch settings cannot be read.",
114
+ "paused": "The device agent is paused. Resume it to read and change settings.",
115
+ "offline": "The device agent is offline. Settings will be available when it comes back online.",
116
+ "loadingState": "Loading {{app}} settings…",
117
+ "selectHint": "Choose a CLI to read its existing settings on the selected device.",
118
+ "readOnly": "You can view settings, but only the device owner or a workspace admin can change them.",
119
+ "ownerOnly": "Only the device owner or a workspace admin can change settings on this device.",
120
+ "refreshed": "Settings refreshed.",
121
+ "updated": "Device settings updated.",
122
+ "warnings": "Switching notes",
123
+ "mode": "Provider mode",
124
+ "single": "Single provider",
125
+ "multi": "Multi-provider routing",
126
+ "singleDescription": "Use one current provider for the entire CLI.",
127
+ "multiDescription": "Use configured providers based on model routes.",
128
+ "multiUnsupported": "This CLI does not support multi-provider routing.",
129
+ "noRoutes": "No routes are available. Configure them in the desktop TB Switch plugin first.",
130
+ "defaultRoute": "Default model route",
131
+ "proxyRunning": "Proxy running",
132
+ "providerRemoved": "Provider removed",
133
+ "configuredProviders": "Configured providers",
134
+ "noProviders": "No providers are configured. Configure them in the desktop TB Switch plugin first.",
135
+ "official": "Official login",
136
+ "custom": "Custom provider",
137
+ "current": "Current",
138
+ "currentProvider": "Current provider: {{name}}. Open CLI sessions may need to restart to use the new settings.",
139
+ "confirmModeTitle": "Change provider mode?",
140
+ "confirmMulti": "Configured providers will be selected by model route.",
141
+ "confirmSingle": "The CLI will use one current provider. Configured model routes will be kept.",
142
+ "confirmModeHelp": "This changes existing settings on the selected device. It does not add or edit providers or routes.",
143
+ "cancel": "Cancel",
144
+ "confirm": "Confirm"
145
+ },
146
+ "service": {
147
+ "title": "Local device agent",
148
+ "onBody": "On: this computer takes tasks from task chains and runs CLIs such as Codex and Claude locally.",
149
+ "offBody": "Turn it on and the desktop app starts the device agent on this computer and binds it to the current server. No terminal needed.",
150
+ "followsApp": "The agent follows the desktop app: it starts with the app and stops when the app quits (it shows offline about 90 seconds later).",
151
+ "starting": "Starting the local device agent…",
152
+ "onExternalBody": "Enabled: the device agent on this computer is already running (a background service or toc-ocra started in a terminal). It receives task-chain work and runs Codex, Claude and other CLIs here.",
153
+ "external": "Connected to the agent already running on this computer instead of starting another. It does not stop when the desktop app quits; to turn it off run toc-ocra service:uninstall in a terminal (or stop the toc-ocra you started).",
154
+ "portTaken": "The local service port is used by another program, so the desktop app cannot start the device agent.",
155
+ "crashed": "The device agent stopped unexpectedly: {{error}}"
156
+ },
157
+ "remote": {
158
+ "title": "Install on another computer",
159
+ "body": "A Linux server, another Mac or a Windows PC: generate one command and run it in that computer's terminal. It installs, pairs and sets up the background service, and this page shows the match when it is done.",
160
+ "server": "Server address that computer uses",
161
+ "serverInvalid": "The server address is invalid. Use an address starting with http:// or https://.",
162
+ "loopback": "127.0.0.1 / localhost only works on this computer. Other computers cannot reach it; use this server's LAN or public address.",
163
+ "add": "Add a computer",
164
+ "platformLabel": "System",
165
+ "platform": {
166
+ "linux": "Linux server",
167
+ "mac": "macOS",
168
+ "win": "Windows"
169
+ },
170
+ "name": "Device name",
171
+ "namePlaceholder": "e.g. Test server",
172
+ "generate": "Generate install command",
173
+ "working": "Generating…",
174
+ "cancel": "Cancel",
175
+ "pendingTitle": "Run on \"{{name}}\"",
176
+ "pendingBody": "Copy this command and run it in that computer's terminal:",
177
+ "hintNode": "Requires Node.js 20 or newer.",
178
+ "hintLinux": "If npm reports a permission error, prefix npm install with sudo (or use Node from nvm). To stay online after logging out, run loginctl enable-linger \"$USER\" once.",
179
+ "hintWindows": "Run it in PowerShell.",
180
+ "expires": "The pairing code expires in {{minutes}}:{{seconds}} and works once.",
181
+ "expired": "The pairing code expired. Generate a new one.",
182
+ "waiting": "Waiting for that computer to run the command… This updates on its own.",
183
+ "regenerate": "Generate again",
184
+ "matched": "Matched",
185
+ "matchedBody": "\"{{name}}\" is online and ready to use in workstations.",
186
+ "matchedNotice": "\"{{name}}\" is online",
187
+ "done": "Done",
188
+ "listTitle": "My other computers",
189
+ "empty": "No other computers yet.",
190
+ "install": "Generate install command",
191
+ "repair": "Pair again",
192
+ "enabled": "Take tasks",
193
+ "disableHint": "Turning off \"Take tasks\" disables the device: the pairing is kept, no tasks are sent, and turning it back on restores it right away without touching that computer.",
194
+ "uninstall": "To uninstall completely, run on that computer",
195
+ "status": {
196
+ "online": "Online",
197
+ "offline": "Offline",
198
+ "disabled": "Disabled",
199
+ "notConnected": "Not paired"
200
+ }
201
+ }
202
+ }