@gobing-ai/ts-ai-runner 0.4.30 → 0.4.32
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/agent-spec.d.ts +7 -0
- package/dist/agent-spec.d.ts.map +1 -1
- package/dist/agent-spec.js +2 -0
- package/package.json +4 -4
- package/src/agent-spec.ts +9 -0
package/dist/agent-spec.d.ts
CHANGED
|
@@ -4,6 +4,13 @@ export interface AgentSpec {
|
|
|
4
4
|
id: string;
|
|
5
5
|
name: string;
|
|
6
6
|
type: string;
|
|
7
|
+
/**
|
|
8
|
+
* Executor name the spec was materialized from (task 0537, feature B2).
|
|
9
|
+
* Optional: pre-existing specs carry only `type` and still load — the
|
|
10
|
+
* drain path falls back to `type` for those (`@transition-shim(spec-without-executor-field)`
|
|
11
|
+
* in apps/cli/src/commands/agent.ts).
|
|
12
|
+
*/
|
|
13
|
+
executor?: string;
|
|
7
14
|
workspace: string;
|
|
8
15
|
purpose: string;
|
|
9
16
|
tags: string[];
|
package/dist/agent-spec.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-spec.d.ts","sourceRoot":"","sources":["../src/agent-spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,KAAK,UAAU,EAIlB,MAAM,uBAAuB,CAAC;AAE/B,4EAA4E;AAC5E,MAAM,WAAW,SAAS;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,4EAA4E;AAC5E,qBAAa,UAAW,SAAQ,KAAK;gBACrB,OAAO,EAAE,MAAM;CAI9B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EAAE,GAAE,UAAmC,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC,CAcrH;AAED,wGAAwG;AACxG,wBAAsB,aAAa,CAC/B,IAAI,EAAE,SAAS,EACf,SAAS,EAAE,MAAM,EACjB,EAAE,GAAE,UAAmC,GACxC,OAAO,CAAC,IAAI,CAAC,CAIf;AAED,oGAAoG;AACpG,wBAAsB,eAAe,CACjC,EAAE,EAAE,MAAM,EACV,SAAS,EAAE,MAAM,EACjB,EAAE,GAAE,UAAmC,GACxC,OAAO,CAAC,IAAI,CAAC,CAGf"}
|
package/dist/agent-spec.js
CHANGED
|
@@ -56,6 +56,7 @@ function parseAgentSpec(source, fileName) {
|
|
|
56
56
|
id: requireString(parsed, 'id', fileName),
|
|
57
57
|
name: requireString(parsed, 'name', fileName),
|
|
58
58
|
type: requireString(parsed, 'type', fileName),
|
|
59
|
+
...(typeof parsed.executor === 'string' && parsed.executor.trim() !== '' ? { executor: parsed.executor } : {}),
|
|
59
60
|
workspace: requireString(parsed, 'workspace', fileName),
|
|
60
61
|
purpose: requireString(parsed, 'purpose', fileName),
|
|
61
62
|
tags: requireStringArray(parsed, 'tags', fileName),
|
|
@@ -69,6 +70,7 @@ function serializeAgentSpec(spec) {
|
|
|
69
70
|
id: spec.id,
|
|
70
71
|
name: spec.name,
|
|
71
72
|
type: spec.type,
|
|
73
|
+
...(spec.executor !== undefined ? { executor: spec.executor } : {}),
|
|
72
74
|
workspace: spec.workspace,
|
|
73
75
|
purpose: spec.purpose,
|
|
74
76
|
tags: spec.tags,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gobing-ai/ts-ai-runner",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.32",
|
|
4
4
|
"description": "@gobing-ai/ts-ai-runner — Coding-agent shims, detection, doctor checks, and prompt execution.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
"release": "echo 'Manual publish is disabled. Releases go through GitHub Actions via Trusted Publishing — push a tag: git tag @gobing-ai/ts-ai-runner-v<version> && git push --tags' && exit 1"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@gobing-ai/ts-infra": "^0.4.
|
|
51
|
-
"@gobing-ai/ts-runtime": "^0.4.
|
|
50
|
+
"@gobing-ai/ts-infra": "^0.4.32",
|
|
51
|
+
"@gobing-ai/ts-runtime": "^0.4.32"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@types/bun": "1.3.14",
|
|
55
|
-
"@gobing-ai/ts-db": "^0.4.
|
|
55
|
+
"@gobing-ai/ts-db": "^0.4.32"
|
|
56
56
|
},
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|
package/src/agent-spec.ts
CHANGED
|
@@ -12,6 +12,13 @@ export interface AgentSpec {
|
|
|
12
12
|
id: string;
|
|
13
13
|
name: string;
|
|
14
14
|
type: string;
|
|
15
|
+
/**
|
|
16
|
+
* Executor name the spec was materialized from (task 0537, feature B2).
|
|
17
|
+
* Optional: pre-existing specs carry only `type` and still load — the
|
|
18
|
+
* drain path falls back to `type` for those (`@transition-shim(spec-without-executor-field)`
|
|
19
|
+
* in apps/cli/src/commands/agent.ts).
|
|
20
|
+
*/
|
|
21
|
+
executor?: string;
|
|
15
22
|
workspace: string;
|
|
16
23
|
purpose: string;
|
|
17
24
|
tags: string[];
|
|
@@ -90,6 +97,7 @@ function parseAgentSpec(source: string, fileName: string): AgentSpec {
|
|
|
90
97
|
id: requireString(parsed, 'id', fileName),
|
|
91
98
|
name: requireString(parsed, 'name', fileName),
|
|
92
99
|
type: requireString(parsed, 'type', fileName),
|
|
100
|
+
...(typeof parsed.executor === 'string' && parsed.executor.trim() !== '' ? { executor: parsed.executor } : {}),
|
|
93
101
|
workspace: requireString(parsed, 'workspace', fileName),
|
|
94
102
|
purpose: requireString(parsed, 'purpose', fileName),
|
|
95
103
|
tags: requireStringArray(parsed, 'tags', fileName),
|
|
@@ -104,6 +112,7 @@ function serializeAgentSpec(spec: AgentSpec): string {
|
|
|
104
112
|
id: spec.id,
|
|
105
113
|
name: spec.name,
|
|
106
114
|
type: spec.type,
|
|
115
|
+
...(spec.executor !== undefined ? { executor: spec.executor } : {}),
|
|
107
116
|
workspace: spec.workspace,
|
|
108
117
|
purpose: spec.purpose,
|
|
109
118
|
tags: spec.tags,
|