@rudderhq/agent-runtime-opencode-local 0.1.0-canary.3 → 0.1.0-canary.31
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/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/ui/build-config.d.ts +1 -1
- package/dist/ui/build-config.d.ts.map +1 -1
- package/dist/ui/build-config.js +4 -0
- package/dist/ui/build-config.js.map +1 -1
- package/package.json +2 -2
- package/skills/rudder-create-agent/SKILL.md +1 -1
- package/skills/rudder-create-agent/references/api-reference.md +4 -2
- package/skills/rudder-create-agent/references/cli-reference.md +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4,5 +4,5 @@ export declare const models: Array<{
|
|
|
4
4
|
id: string;
|
|
5
5
|
label: string;
|
|
6
6
|
}>;
|
|
7
|
-
export declare const agentConfigurationDoc = "# opencode_local agent configuration\n\nAdapter: opencode_local\n\nUse when:\n- You want Rudder to run OpenCode locally as the agent runtime\n- You want provider/model routing in OpenCode format (provider/model)\n- You want OpenCode session resume across heartbeats via --session\n\nDon't use when:\n- You need webhook-style external invocation (use openclaw_gateway or http)\n- You only need one-shot shell commands (use process)\n- OpenCode CLI is not installed on the machine\n\nCore fields:\n- cwd (string, optional): default absolute working directory fallback for the agent process (created if missing when possible)\n- instructionsFilePath (string, optional): absolute path to a markdown instructions file prepended to the run prompt\n- model (string, required): OpenCode model id in provider/model format (for example anthropic/claude-sonnet-4-5)\n- variant (string, optional): provider-specific model variant (for example minimal|low|medium|high|max)\n- promptTemplate (string, optional): run prompt template\n- command (string, optional): defaults to \"opencode\"\n- extraArgs (string[], optional): additional CLI args\n- env (object, optional): KEY=VALUE environment variables\n\nOperational fields:\n- timeoutSec (number, optional): run timeout in seconds\n- graceSec (number, optional): SIGTERM grace period in seconds\n\nNotes:\n- OpenCode supports multiple providers and models. Use `opencode models` to list available options in provider/model format.\n- Rudder requires an explicit `model` value for `opencode_local` agents.\n- Rudder loads only the bundled Rudder skills plus the skills explicitly enabled on the agent's Skills page; user-home Claude/OpenCode skills are discovery candidates until selected there.\n- Runs are executed with: opencode run --format json ...\n- Sessions are resumed with --session when stored session cwd matches current cwd.\n";
|
|
7
|
+
export declare const agentConfigurationDoc = "# opencode_local agent configuration\n\nAdapter: opencode_local\n\nUse when:\n- You want Rudder to run OpenCode locally as the agent runtime\n- You want provider/model routing in OpenCode format (provider/model)\n- You want OpenCode session resume across heartbeats via --session\n\nDon't use when:\n- You need webhook-style external invocation (use openclaw_gateway or http)\n- You only need one-shot shell commands (use process)\n- OpenCode CLI is not installed on the machine\n\nCore fields:\n- cwd (string, optional): default absolute working directory fallback for the agent process (created if missing when possible)\n- instructionsFilePath (string, optional): absolute path to a markdown instructions file prepended to the run prompt\n- model (string, required): OpenCode model id in provider/model format (for example anthropic/claude-sonnet-4-5)\n- modelFallbacks (array, optional): ordered fallback attempts as { agentRuntimeType, model, config? }; each may use a different runtime/provider\n- variant (string, optional): provider-specific model variant (for example minimal|low|medium|high|max)\n- promptTemplate (string, optional): run prompt template\n- command (string, optional): defaults to \"opencode\"\n- extraArgs (string[], optional): additional CLI args\n- env (object, optional): KEY=VALUE environment variables\n\nOperational fields:\n- timeoutSec (number, optional): run timeout in seconds\n- graceSec (number, optional): SIGTERM grace period in seconds\n\nNotes:\n- OpenCode supports multiple providers and models. Use `opencode models` to list available options in provider/model format.\n- Rudder requires an explicit `model` value for `opencode_local` agents.\n- Rudder loads only the bundled Rudder skills plus the skills explicitly enabled on the agent's Skills page; user-home Claude/OpenCode skills are discovery candidates until selected there.\n- Runs are executed with: opencode run --format json ...\n- Sessions are resumed with --session when stored session cwd matches current cwd.\n";
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,mBAAmB,CAAC;AACrC,eAAO,MAAM,KAAK,qBAAqB,CAAC;AAExC,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAM,CAAC;AAE/D,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,mBAAmB,CAAC;AACrC,eAAO,MAAM,KAAK,qBAAqB,CAAC;AAExC,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAM,CAAC;AAE/D,eAAO,MAAM,qBAAqB,4+DAoCjC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -19,6 +19,7 @@ Core fields:
|
|
|
19
19
|
- cwd (string, optional): default absolute working directory fallback for the agent process (created if missing when possible)
|
|
20
20
|
- instructionsFilePath (string, optional): absolute path to a markdown instructions file prepended to the run prompt
|
|
21
21
|
- model (string, required): OpenCode model id in provider/model format (for example anthropic/claude-sonnet-4-5)
|
|
22
|
+
- modelFallbacks (array, optional): ordered fallback attempts as { agentRuntimeType, model, config? }; each may use a different runtime/provider
|
|
22
23
|
- variant (string, optional): provider-specific model variant (for example minimal|low|medium|high|max)
|
|
23
24
|
- promptTemplate (string, optional): run prompt template
|
|
24
25
|
- command (string, optional): defaults to "opencode"
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG,gBAAgB,CAAC;AACrC,MAAM,CAAC,MAAM,KAAK,GAAG,kBAAkB,CAAC;AAExC,MAAM,CAAC,MAAM,MAAM,GAAyC,EAAE,CAAC;AAE/D,MAAM,CAAC,MAAM,qBAAqB,GAAG
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG,gBAAgB,CAAC;AACrC,MAAM,CAAC,MAAM,KAAK,GAAG,kBAAkB,CAAC;AAExC,MAAM,CAAC,MAAM,MAAM,GAAyC,EAAE,CAAC;AAE/D,MAAM,CAAC,MAAM,qBAAqB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCpC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type CreateConfigValues } from "@rudderhq/agent-runtime-utils";
|
|
2
2
|
export declare function buildOpenCodeLocalConfig(v: CreateConfigValues): Record<string, unknown>;
|
|
3
3
|
//# sourceMappingURL=build-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-config.d.ts","sourceRoot":"","sources":["../../src/ui/build-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"build-config.d.ts","sourceRoot":"","sources":["../../src/ui/build-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAoDjG,wBAAgB,wBAAwB,CAAC,CAAC,EAAE,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAyBvF"}
|
package/dist/ui/build-config.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { normalizeModelFallbacks } from "@rudderhq/agent-runtime-utils";
|
|
1
2
|
function parseCommaArgs(value) {
|
|
2
3
|
return value
|
|
3
4
|
.split(",")
|
|
@@ -63,6 +64,9 @@ export function buildOpenCodeLocalConfig(v) {
|
|
|
63
64
|
ac.bootstrapPromptTemplate = v.bootstrapPrompt;
|
|
64
65
|
if (v.model)
|
|
65
66
|
ac.model = v.model;
|
|
67
|
+
const modelFallbacks = normalizeModelFallbacks(v.modelFallbacks, { agentRuntimeType: "opencode_local", model: v.model });
|
|
68
|
+
if (modelFallbacks.length > 0)
|
|
69
|
+
ac.modelFallbacks = modelFallbacks;
|
|
66
70
|
if (v.thinkingEffort)
|
|
67
71
|
ac.variant = v.thinkingEffort;
|
|
68
72
|
// OpenCode sessions can run until the CLI exits naturally; keep timeout disabled (0)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-config.js","sourceRoot":"","sources":["../../src/ui/build-config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"build-config.js","sourceRoot":"","sources":["../../src/ui/build-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAA2B,MAAM,+BAA+B,CAAC;AAEjG,SAAS,cAAc,CAAC,KAAa;IACnC,OAAO,KAAK;SACT,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;SAC1B,MAAM,CAAC,OAAO,CAAC,CAAC;AACrB,CAAC;AAED,SAAS,YAAY,CAAC,IAAY;IAChC,MAAM,GAAG,GAA2B,EAAE,CAAC;IACvC,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC;QACvC,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;QAC5B,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC;YAAE,SAAS;QAClD,MAAM,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAChC,IAAI,EAAE,IAAI,CAAC;YAAE,SAAS;QACtB,MAAM,GAAG,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;QACxC,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,EAAE,GAAG,CAA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AE,CAAC,QAAQ,GAAG,EAAE,CAAC;IACjB,MAAM,GAAG,GAAG,gBAAgB,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC;IAC5C,MAAM,MAAM,GAAG,YAAY,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;IACvC,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QAClD,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC;YACpD,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;QACtC,CAAC;IACH,CAAC;IACD,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,GAAG,CAAC;QAAE,EAAE,CAAC,GAAG,GAAG,GAAG,CAAC;IAC9C,IAAI,CAAC,CAAC,OAAO;QAAE,EAAE,CAAC,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC;IACtC,IAAI,CAAC,CAAC,SAAS;QAAE,EAAE,CAAC,SAAS,GAAG,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAC5D,OAAO,EAAE,CAAC;AACZ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rudderhq/agent-runtime-opencode-local",
|
|
3
|
-
"version": "0.1.0-canary.
|
|
3
|
+
"version": "0.1.0-canary.31",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"homepage": "https://github.com/Undertone0809/rudder",
|
|
6
6
|
"bugs": {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"typecheck": "tsc --noEmit"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@rudderhq/agent-runtime-utils": "0.1.0-canary.
|
|
54
|
+
"@rudderhq/agent-runtime-utils": "0.1.0-canary.31",
|
|
55
55
|
"picocolors": "^1.1.1"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
@@ -103,7 +103,7 @@ rudder agent hire --org-id "$RUDDER_ORG_ID" --payload '{
|
|
|
103
103
|
"desiredSkills": ["vercel-labs/agent-browser/agent-browser"],
|
|
104
104
|
"agentRuntimeType": "codex_local",
|
|
105
105
|
"agentRuntimeConfig": {"cwd": "/abs/path/to/repo", "model": "o4-mini"},
|
|
106
|
-
"runtimeConfig": {"heartbeat": {"enabled": true, "intervalSec": 300, "wakeOnDemand": true}},
|
|
106
|
+
"runtimeConfig": {"heartbeat": {"enabled": true, "intervalSec": 300, "wakeOnDemand": true, "maxConcurrentRuns": 3}},
|
|
107
107
|
"sourceIssueId": "<issue-id>"
|
|
108
108
|
}' --json
|
|
109
109
|
```
|
|
@@ -61,7 +61,8 @@ Representative shape:
|
|
|
61
61
|
"heartbeat": {
|
|
62
62
|
"enabled": true,
|
|
63
63
|
"intervalSec": 300,
|
|
64
|
-
"wakeOnDemand": true
|
|
64
|
+
"wakeOnDemand": true,
|
|
65
|
+
"maxConcurrentRuns": 3
|
|
65
66
|
}
|
|
66
67
|
},
|
|
67
68
|
"permissions": {
|
|
@@ -95,7 +96,8 @@ Request body:
|
|
|
95
96
|
"heartbeat": {
|
|
96
97
|
"enabled": true,
|
|
97
98
|
"intervalSec": 300,
|
|
98
|
-
"wakeOnDemand": true
|
|
99
|
+
"wakeOnDemand": true,
|
|
100
|
+
"maxConcurrentRuns": 3
|
|
99
101
|
}
|
|
100
102
|
},
|
|
101
103
|
"budgetMonthlyCents": 0,
|
|
@@ -63,7 +63,7 @@ rudder agent hire --org-id "$RUDDER_ORG_ID" --payload '{
|
|
|
63
63
|
"desiredSkills": ["vercel-labs/agent-browser/agent-browser"],
|
|
64
64
|
"agentRuntimeType": "codex_local",
|
|
65
65
|
"agentRuntimeConfig": {"cwd": "/abs/path/to/repo", "model": "o4-mini"},
|
|
66
|
-
"runtimeConfig": {"heartbeat": {"enabled": true, "intervalSec": 300, "wakeOnDemand": true}},
|
|
66
|
+
"runtimeConfig": {"heartbeat": {"enabled": true, "intervalSec": 300, "wakeOnDemand": true, "maxConcurrentRuns": 3}},
|
|
67
67
|
"sourceIssueId": "<issue-id>"
|
|
68
68
|
}' --json
|
|
69
69
|
```
|