@kitman-sh/cli 0.14.3 → 0.14.4
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/{chunk-bbf0jzsc.js → chunk-0kreahhj.js} +1 -1
- package/dist/{chunk-91j33xf2.js → chunk-4yvafzhp.js} +6 -6
- package/dist/{chunk-ctpgfdzf.js → chunk-5c4tn29r.js} +3 -3
- package/dist/{chunk-3f6mzrm7.js → chunk-6zwwrpve.js} +1 -1
- package/dist/{chunk-my9vcmfw.js → chunk-af3m4nhz.js} +44 -30
- package/dist/{chunk-a4mkjaxa.js → chunk-c6fanp7r.js} +6 -6
- package/dist/{chunk-7q3t3x0x.js → chunk-dz7qcbpp.js} +6 -6
- package/dist/{chunk-zpp4jg4a.js → chunk-ec01eq70.js} +215 -71
- package/dist/{chunk-rvnem2bt.js → chunk-kg32dz1w.js} +4 -4
- package/dist/{chunk-zxmx605h.js → chunk-me1zn085.js} +2 -2
- package/dist/{chunk-7v1n7a6k.js → chunk-nmw831xh.js} +4 -4
- package/dist/{chunk-y0y2gg8d.js → chunk-p9wzycsm.js} +2 -2
- package/dist/{chunk-9anvghq2.js → chunk-pcyscxe1.js} +2 -2
- package/dist/{chunk-hasfatd4.js → chunk-pvv8y59t.js} +5 -5
- package/dist/{chunk-65dpe0ev.js → chunk-q1y9qjjp.js} +5 -3
- package/dist/{chunk-34748vfg.js → chunk-qd9bkybz.js} +123 -288
- package/dist/{chunk-f96vy2h9.js → chunk-qnb3a82t.js} +4 -4
- package/dist/{chunk-44kx62t6.js → chunk-ra22g5nv.js} +7 -7
- package/dist/{chunk-tebzffha.js → chunk-rx2cg7rn.js} +17 -17
- package/dist/{chunk-2w9a76nr.js → chunk-tnrmd4hz.js} +178 -163
- package/dist/{chunk-er9n65mh.js → chunk-v26jmjr0.js} +9 -9
- package/dist/{chunk-daem5h1c.js → chunk-wvhm5fgh.js} +14 -14
- package/dist/{chunk-dhtx14r5.js → chunk-x2jjnfff.js} +3 -3
- package/dist/{chunk-9avbsbvk.js → chunk-yv2mq2e9.js} +6 -1
- package/dist/{chunk-rgrpvnwg.js → chunk-zv1sshtj.js} +22 -22
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -32,7 +32,8 @@ import {
|
|
|
32
32
|
toCodecJson,
|
|
33
33
|
Json,
|
|
34
34
|
encodePrettyJsonString
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-ec01eq70.js";
|
|
36
|
+
import"./chunk-yv2mq2e9.js";
|
|
36
37
|
import {
|
|
37
38
|
SecureRandom,
|
|
38
39
|
layerWebCrypto,
|
|
@@ -44,7 +45,7 @@ import {
|
|
|
44
45
|
layer4,
|
|
45
46
|
kitmanMcpServer,
|
|
46
47
|
RunnerRpcProtocolVersion
|
|
47
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-qd9bkybz.js";
|
|
48
49
|
import {
|
|
49
50
|
decodeText,
|
|
50
51
|
mkString,
|
|
@@ -52,24 +53,23 @@ import {
|
|
|
52
53
|
Path,
|
|
53
54
|
withDefault,
|
|
54
55
|
String2
|
|
55
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-tnrmd4hz.js";
|
|
56
57
|
import {
|
|
57
58
|
Packument,
|
|
58
59
|
tarballMatches
|
|
59
|
-
} from "./chunk-
|
|
60
|
-
import"./chunk-
|
|
60
|
+
} from "./chunk-x2jjnfff.js";
|
|
61
|
+
import"./chunk-4yvafzhp.js";
|
|
61
62
|
import {
|
|
62
63
|
AgentDeclaration,
|
|
63
64
|
KitDeclarations,
|
|
64
65
|
describeFlag,
|
|
65
66
|
Described
|
|
66
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-dz7qcbpp.js";
|
|
67
68
|
import {
|
|
68
69
|
ChildProcessSpawner,
|
|
69
70
|
make3
|
|
70
|
-
} from "./chunk-
|
|
71
|
-
import"./chunk-
|
|
72
|
-
import"./chunk-9avbsbvk.js";
|
|
71
|
+
} from "./chunk-me1zn085.js";
|
|
72
|
+
import"./chunk-rx2cg7rn.js";
|
|
73
73
|
|
|
74
74
|
// packages/sdk/src/build/index.ts
|
|
75
75
|
class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
|
|
@@ -118,7 +118,7 @@ import {
|
|
|
118
118
|
decodeJsonStringOption,
|
|
119
119
|
encodeJsonStringSync,
|
|
120
120
|
encodePrettyJsonString
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-ec01eq70.js";
|
|
122
122
|
import {
|
|
123
123
|
currentTimeMillis,
|
|
124
124
|
SecureRandom,
|
|
@@ -170,7 +170,13 @@ import {
|
|
|
170
170
|
runMcpEffect,
|
|
171
171
|
createAgentAuthSignedFetch,
|
|
172
172
|
setupMcpAgentCredential
|
|
173
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-qd9bkybz.js";
|
|
174
|
+
import {
|
|
175
|
+
guard,
|
|
176
|
+
Id,
|
|
177
|
+
Timestamp,
|
|
178
|
+
ActorType
|
|
179
|
+
} from "./chunk-yv2mq2e9.js";
|
|
174
180
|
import {
|
|
175
181
|
join,
|
|
176
182
|
interrupt,
|
|
@@ -187,27 +193,21 @@ import {
|
|
|
187
193
|
withDefault,
|
|
188
194
|
option,
|
|
189
195
|
String2
|
|
190
|
-
} from "./chunk-
|
|
196
|
+
} from "./chunk-tnrmd4hz.js";
|
|
191
197
|
import {
|
|
192
198
|
searchDocs2,
|
|
193
199
|
readDoc2
|
|
194
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-q1y9qjjp.js";
|
|
195
201
|
import {
|
|
196
202
|
nextInt
|
|
197
|
-
} from "./chunk-
|
|
203
|
+
} from "./chunk-0kreahhj.js";
|
|
198
204
|
import {
|
|
199
205
|
layerJson,
|
|
200
206
|
make4,
|
|
201
207
|
withHeaders,
|
|
202
208
|
layerProtocolSocket,
|
|
203
209
|
ConnectionHooks
|
|
204
|
-
} from "./chunk-
|
|
205
|
-
import {
|
|
206
|
-
guard,
|
|
207
|
-
Id,
|
|
208
|
-
Timestamp,
|
|
209
|
-
ActorType
|
|
210
|
-
} from "./chunk-9avbsbvk.js";
|
|
210
|
+
} from "./chunk-rx2cg7rn.js";
|
|
211
211
|
|
|
212
212
|
// apps/cli/src/mcp.ts
|
|
213
213
|
import { tmpdir as tmpdir2 } from "os";
|
|
@@ -2271,7 +2271,6 @@ var generatedOpenApiSchemas = {
|
|
|
2271
2271
|
"1c7e95ca28857b84": JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","projectId","input"],"properties":{"workspaceId":{"type":"string"},"projectId":{"type":"string"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"userId":{"type":"string"}},"required":["userId"],"additionalProperties":true}}}'),
|
|
2272
2272
|
"1c88d235cae8e504": JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"teamId":{"type":"string"},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"enabled":{"type":"boolean"},"match":{"type":"string","enum":["all","any"]},"conditions":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"field":{"type":"string","enum":["creator"]},"userIds":{"type":"array","items":{"type":"string"},"minItems":1},"negate":{"type":"boolean"}},"required":["field","userIds","negate"],"additionalProperties":true},{"type":"object","properties":{"field":{"type":"string","enum":["creatorIsMember"]},"negate":{"type":"boolean"}},"required":["field","negate"],"additionalProperties":true},{"type":"object","properties":{"field":{"type":"string","enum":["origin"]},"kinds":{"type":"array","items":{"type":"string","enum":["manual","plan_ticket","launch","event","alert","migrated"]},"minItems":1},"negate":{"type":"boolean"}},"required":["field","kinds","negate"],"additionalProperties":true},{"type":"object","properties":{"field":{"type":"string","enum":["labels"]},"match":{"type":"string","enum":["any","all"]},"labelIds":{"type":"array","items":{"type":"string"},"minItems":1},"negate":{"type":"boolean"}},"required":["field","match","labelIds","negate"],"additionalProperties":true},{"type":"object","properties":{"field":{"type":"string","enum":["priority"]},"priorities":{"type":"array","items":{"type":"string","enum":["none","urgent","high","medium","low"]},"minItems":1},"negate":{"type":"boolean"}},"required":["field","priorities","negate"],"additionalProperties":true},{"type":"object","properties":{"field":{"type":"string","enum":["repository"]},"repoBindingIds":{"type":"array","items":{"type":"string"}},"none":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["field","repoBindingIds","none","negate"],"additionalProperties":true},{"type":"object","properties":{"field":{"type":"string","enum":["text"]},"text":{"type":"string","pattern":"^\\\\S[\\\\s\\\\S]*\\\\S$|^\\\\S$|^$","minLength":1},"negate":{"type":"boolean"}},"required":["field","text","negate"],"additionalProperties":true}]}},"actions":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["setTeam"]},"teamId":{"type":"string"}},"required":["kind","teamId"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","enum":["setType"]},"typeId":{"type":"string"}},"required":["kind","typeId"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","enum":["assign"]},"assigneeId":{"type":"string"}},"required":["kind","assigneeId"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","enum":["addLabels"]},"labelIds":{"type":"array","items":{"type":"string"},"minItems":1}},"required":["kind","labelIds"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","enum":["setPriority"]},"priority":{"type":"string","enum":["none","urgent","high","medium","low"]}},"required":["kind","priority"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","enum":["setRepository"]},"repoBindingId":{"type":"string"}},"required":["kind"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","enum":["accept"]},"stateId":{"type":"string"}},"required":["kind","stateId"],"additionalProperties":true}]}}},"required":["id","teamId","position","name","enabled","match","conditions","actions"],"additionalProperties":true}'),
|
|
2273
2273
|
"1ca455dfc12235e0": JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","taskIds"],"properties":{"workspaceId":{"type":"string"},"taskIds":{"type":"array","items":{"type":"string"}}}}'),
|
|
2274
|
-
"1d2dd636658f4bce": JSON.parse('{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"object","properties":{"kind":{"type":"string","enum":["task","run","proposal","memory","mcp_approval","project_update","runner"]},"id":{"type":"string","minLength":1}},"required":["kind","id"],"additionalProperties":false},"action":{"type":"string","enum":["answer","review","decide","retry","runner_offline","start"]},"unread":{"type":"integer","minimum":0,"maximum":9007199254740991},"latestAt":{"type":"string","format":"date-time"},"doneAt":{"type":"string","format":"date-time"},"snoozedUntil":{"type":"string","format":"date-time"},"notifications":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"workspaceId":{"type":"string","minLength":1},"recipientUserId":{"type":"string","minLength":1},"kind":{"type":"string","enum":["question_waiting","run_failed","review_ready","no_runner","proposal_waiting","approval_waiting","assigned","mentioned","commented","state_changed","run_finished","drift_unresolved","run_progress","change_request_update","start_blocked","update_drafted","runner_problem"]},"subject":{"type":"object","properties":{"kind":{"type":"string","enum":["task","run","proposal","memory","mcp_approval","project_update","runner"]},"id":{"type":"string","minLength":1}},"required":["kind","id"],"additionalProperties":false},"actorId":{"type":"string","minLength":1},"actorName":{"type":"string"},"payload":{"type":"object","properties":{"taskKey":{"type":"string","minLength":1,"maxLength":500},"taskTitle":{"type":"string","minLength":1,"maxLength":500},"loopTitle":{"type":"string","minLength":1,"maxLength":500},"proposalTitle":{"type":"string","minLength":1,"maxLength":500},"toolName":{"type":"string","minLength":1,"maxLength":500},"workspaceName":{"type":"string","minLength":1,"maxLength":500},"cause":{"type":"string","minLength":1,"maxLength":500},"state":{"type":"string","minLength":1,"maxLength":500},"changeRequestUrl":{"type":"string","minLength":1,"maxLength":2048},"missing":{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"maxItems":20},"choices":{"type":"array","items":{"type":"string","minLength":1,"maxLength":2048},"maxItems":20},"projectId":{"type":"string","minLength":1},"projectName":{"type":"string","minLength":1,"maxLength":500},"writtenFrom":{"type":"object","properties":{"runs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"taskChanges":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"since":{"type":"string","format":"date-time"}},"required":["runs","taskChanges"],"additionalProperties":false},"runnerName":{"type":"string","minLength":1,"maxLength":500},"problem":{"type":"string","minLength":1,"maxLength":500},"fix":{"type":"string","minLength":1,"maxLength":500}},"additionalProperties":false},"title":{"type":"string"},"body":{"type":"string"},"link":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"readAt":{"type":"string","format":"date-time"}},"required":["id","workspaceId","recipientUserId","kind","subject","payload","title","body","link","createdAt"],"additionalProperties":false},"minItems":1}},"required":["subject","unread","latestAt","notifications"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}'),
|
|
2275
2274
|
"1e2013413a6538df": JSON.parse('{"type":"object","additionalProperties":false,"required":["runnerId","input"],"properties":{"runnerId":{"type":"string"},"input":{"type":"object","properties":{"concurrency":{"type":"integer","minimum":1,"maximum":32},"sandbox":{"type":"string","enum":["host","srt","docker"]},"dockerImage":{"type":["string","null"],"maxLength":500,"pattern":"^[^\\\\s@]+@sha256:[a-f0-9]{64}$"},"checkHosts":{"type":"array","items":{"type":"string","maxLength":260,"pattern":"^(?:localhost|[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)+|\\\\*\\\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?\\\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*)(?::(?:[1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?$"},"maxItems":50},"checkDockerImage":{"type":["string","null"],"maxLength":500,"pattern":"^[^\\\\s@]+@sha256:[a-f0-9]{64}$"},"checkRegistryImage":{"type":["string","null"],"maxLength":500,"pattern":"^[^\\\\s@]+@sha256:[a-f0-9]{64}$"}},"additionalProperties":false}}}'),
|
|
2276
2275
|
"1e851cc201cff2fe": JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","taskId","input"],"properties":{"workspaceId":{"type":"string"},"taskId":{"type":"string","description":"The Task: its id or any key it has had, such as `KIT-12`."},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"projectId":{"type":"string"},"milestoneId":{"type":"string"}},"additionalProperties":true}}}'),
|
|
2277
2276
|
"20968fa48262e049": JSON.parse('{"type":"object","additionalProperties":false,"required":["proposalId","input"],"properties":{"proposalId":{"type":"string"},"input":{"type":"object","properties":{"revisionId":{"type":"string","minLength":1},"targetVersionBefore":{"type":"string","minLength":1,"maxLength":240},"targetVersionAfter":{"type":"string","minLength":1,"maxLength":240},"revertOfApplicationId":{"type":"string","minLength":1}},"required":["revisionId"],"additionalProperties":false}}}'),
|
|
@@ -2586,6 +2585,7 @@ var generatedOpenApiSchemas = {
|
|
|
2586
2585
|
e34121abec74b040: JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","connectionId","input"],"properties":{"workspaceId":{"type":"string"},"connectionId":{"type":"string"},"input":{"type":"object","properties":{"repositories":{"type":"array","items":{"type":"string","minLength":1,"maxLength":400},"maxItems":200},"groups":{"type":"array","items":{"type":"string","minLength":1,"maxLength":400},"maxItems":100},"teamId":{"type":"string","minLength":1}},"required":["repositories"],"additionalProperties":false}}}'),
|
|
2587
2586
|
e40d3806534c4e6c: JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","typeId"],"properties":{"workspaceId":{"type":"string"},"typeId":{"type":"string"}}}'),
|
|
2588
2587
|
e43995eff3f29217: JSON.parse('{"type":"object","additionalProperties":false,"required":["runnerId","input"],"properties":{"runnerId":{"type":"string"},"input":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":160},"capacity":{"type":"object","properties":{"maxConcurrentRuns":{"type":"number","minimum":1},"maxCpuCores":{"type":"number","minimum":1},"maxMemoryMb":{"type":"number","minimum":1},"maxRunSeconds":{"type":"number","minimum":1}},"additionalProperties":false},"cacheHints":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":240,"pattern":"^(?!\\\\/)(?!.*:\\\\/\\\\/)(?!.*\\\\\\\\)(?!.*\\\\s)(?!.*(?:^|\\\\/)\\\\.\\\\.?($|\\\\/))[A-Za-z0-9._:@/-]+$"},"sharing":{"type":"string","enum":["runner","replica","workspace"]},"warmed":{"type":"boolean"},"cacheClass":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9._:-]+$"},"developmentEnvironmentHash":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-fA-F0-9]{64}$"},"agentEnvironmentHash":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-fA-F0-9]{64}$"},"sandboxPolicyHash":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-fA-F0-9]{64}$"},"secretScopeHash":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-fA-F0-9]{64}$"},"cacheState":{"type":"string","enum":["hit","miss","stale","corrupt","lock_wait","invalidated"]}},"required":["key","sharing","warmed"],"additionalProperties":false}},"placement":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":80},"label":{"type":"string","minLength":1,"maxLength":160},"zone":{"type":"string","minLength":1,"maxLength":160}},"required":["kind"],"additionalProperties":false},"telemetry":{"type":"object","properties":{"activeWorkUnits":{"type":"integer","minimum":0,"maximum":9007199254740991},"queuedWorkUnits":{"type":"integer","minimum":0,"maximum":9007199254740991},"cacheHitRate":{"type":"number","minimum":0,"maximum":1}},"additionalProperties":false}},"required":["name"],"additionalProperties":false}}}'),
|
|
2588
|
+
e453c7c28d515935: JSON.parse('{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"object","properties":{"kind":{"type":"string","enum":["task","run","proposal","memory","mcp_approval","project_update","runner"]},"id":{"type":"string","minLength":1}},"required":["kind","id"],"additionalProperties":false},"action":{"type":"string","enum":["answer","review","decide","retry","runner_offline","start"]},"unread":{"type":"integer","minimum":0,"maximum":9007199254740991},"latestAt":{"type":"string","format":"date-time"},"doneAt":{"type":"string","format":"date-time"},"snoozedUntil":{"type":"string","format":"date-time"},"notifications":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"workspaceId":{"type":"string","minLength":1},"recipientUserId":{"type":"string","minLength":1},"kind":{"type":"string","enum":["question_waiting","run_failed","review_ready","no_runner","proposal_waiting","approval_waiting","assigned","mentioned","commented","state_changed","run_finished","drift_unresolved","run_progress","change_request_update","start_blocked","update_drafted","runner_problem"]},"subject":{"type":"object","properties":{"kind":{"type":"string","enum":["task","run","proposal","memory","mcp_approval","project_update","runner"]},"id":{"type":"string","minLength":1}},"required":["kind","id"],"additionalProperties":false},"actorId":{"type":"string","minLength":1},"actorName":{"type":"string"},"payload":{"type":"object","properties":{"taskKey":{"type":"string","minLength":1,"maxLength":500},"taskTitle":{"type":"string","minLength":1,"maxLength":500},"loopTitle":{"type":"string","minLength":1,"maxLength":500},"proposalTitle":{"type":"string","minLength":1,"maxLength":500},"toolName":{"type":"string","minLength":1,"maxLength":500},"workspaceName":{"type":"string","minLength":1,"maxLength":500},"cause":{"type":"string","minLength":1,"maxLength":500},"state":{"type":"string","minLength":1,"maxLength":500},"stateCategory":{"type":"string","enum":["triage","backlog","unstarted","started","completed","canceled","duplicate"]},"changeRequestUrl":{"type":"string","minLength":1,"maxLength":2048},"missing":{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"maxItems":20},"choices":{"type":"array","items":{"type":"string","minLength":1,"maxLength":2048},"maxItems":20},"projectId":{"type":"string","minLength":1},"projectName":{"type":"string","minLength":1,"maxLength":500},"writtenFrom":{"type":"object","properties":{"runs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"taskChanges":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"since":{"type":"string","format":"date-time"}},"required":["runs","taskChanges"],"additionalProperties":false},"runnerName":{"type":"string","minLength":1,"maxLength":500},"problem":{"type":"string","minLength":1,"maxLength":500},"fix":{"type":"string","minLength":1,"maxLength":500}},"additionalProperties":false},"title":{"type":"string"},"body":{"type":"string"},"link":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"readAt":{"type":"string","format":"date-time"}},"required":["id","workspaceId","recipientUserId","kind","subject","payload","title","body","link","createdAt"],"additionalProperties":false},"minItems":1}},"required":["subject","unread","latestAt","notifications"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}'),
|
|
2589
2589
|
e4be76b1166a050c: JSON.parse('{"type":"object","properties":{"id":{"type":"string","minLength":1},"changeRequestId":{"type":"string","minLength":1},"reviewId":{"type":"string","minLength":1},"path":{"type":"string","minLength":1,"maxLength":1024},"side":{"type":"string","enum":["base","head"]},"startLine":{"type":"integer","minimum":1,"maximum":2147483647},"endLine":{"type":"integer","minimum":1,"maximum":2147483647},"headCommitSha":{"type":"string","pattern":"^[a-fA-F0-9]{7,64}$"},"linesDigest":{"type":"string","pattern":"^[a-z0-9]{1,64}$"},"body":{"type":"string"},"authorActorType":{"type":"string","enum":["human","delegated_agent","agent"]},"authorActorId":{"type":"string","minLength":1},"status":{"type":"object","properties":{"state":{"type":"string","enum":["not_sent","queued","sent","not_delivered","resolved"]},"runId":{"type":"string","minLength":1},"pushed":{"type":"string","pattern":"^[a-fA-F0-9]{7,64}$"},"settled":{"type":"boolean"},"reason":{"type":"string","maxLength":1000}},"required":["state"],"additionalProperties":false},"resolvedAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","changeRequestId","reviewId","path","side","startLine","endLine","headCommitSha","body","status","createdAt"],"additionalProperties":false}'),
|
|
2590
2590
|
e4ddf18f7b229efd: JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"color":{"type":"string"},"description":{"type":"string"}},"required":["id","name","color"],"additionalProperties":true}'),
|
|
2591
2591
|
e55d85896adc4f2e: JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","input"],"properties":{"workspaceId":{"type":"string"},"input":{"type":"object","properties":{"target":{"type":["string","null"],"enum":["default_branch","epic_branch"]}},"required":["target"],"additionalProperties":false}}}'),
|
|
@@ -2761,7 +2761,7 @@ var generatedOpenApiOperationContracts = {
|
|
|
2761
2761
|
listForegroundRunners: { inputSchemaId: "fc99a2a80b97a8b2", outputSchemaId: "7e181a04c9a339fd" },
|
|
2762
2762
|
listForgeGroups: { inputSchemaId: "6e3309061f450eb5", outputSchemaId: "e7ae9850680c9b28" },
|
|
2763
2763
|
listForgeRepositories: { inputSchemaId: "4ad8e8d37e49a69e", outputSchemaId: "3a8ada2b32940b98" },
|
|
2764
|
-
listInbox: { inputSchemaId: "77e89229d1ad6a66", outputSchemaId: "
|
|
2764
|
+
listInbox: { inputSchemaId: "77e89229d1ad6a66", outputSchemaId: "e453c7c28d515935" },
|
|
2765
2765
|
listInitiatives: { inputSchemaId: "fcc72cba1350bf89", outputSchemaId: "1182dc2e5ca0807b" },
|
|
2766
2766
|
listKitInstalls: { inputSchemaId: "99e4d49868110007", outputSchemaId: "44204524a95aad66" },
|
|
2767
2767
|
listKits: { inputSchemaId: "6e3d1c6bfb5b7371", outputSchemaId: "b111d39afd4c9019" },
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
Record,
|
|
25
25
|
Int,
|
|
26
26
|
fromJsonString
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-ec01eq70.js";
|
|
28
28
|
import {
|
|
29
29
|
withDefault,
|
|
30
30
|
String2
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-tnrmd4hz.js";
|
|
32
32
|
import {
|
|
33
33
|
newerKitmanVersion,
|
|
34
34
|
digestSha256,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
get2,
|
|
40
40
|
layer4,
|
|
41
41
|
KitDigest
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-qd9bkybz.js";
|
|
43
43
|
|
|
44
44
|
// packages/core/src/npm-registry.ts
|
|
45
45
|
var KitManifest = Struct({
|
|
@@ -18,7 +18,12 @@ import {
|
|
|
18
18
|
isMinLength,
|
|
19
19
|
isMaxLength,
|
|
20
20
|
FiniteFromString
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-ec01eq70.js";
|
|
22
|
+
|
|
23
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/JsonSchema.js
|
|
24
|
+
var PRE_2020_TO_2020_COLLISIONS = ["$anchor", "$defs", "$dynamicAnchor", "$dynamicRef", "$vocabulary", "contentSchema", "dependentRequired", "dependentSchemas", "maxContains", "minContains", "prefixItems", "unevaluatedItems", "unevaluatedProperties"];
|
|
25
|
+
var DRAFT_07_TO_2020_COLLISIONS = [...PRE_2020_TO_2020_COLLISIONS, "deprecated"];
|
|
26
|
+
var OPEN_API_30_TO_2020_COLLISIONS = [...PRE_2020_TO_2020_COLLISIONS, "$comment", "$id", "$schema", "const", "contains", "contentEncoding", "contentMediaType", "else", "examples", "if", "patternProperties", "propertyNames", "then"];
|
|
22
27
|
|
|
23
28
|
// packages/core/src/schema.ts
|
|
24
29
|
var Days = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
isFailure2,
|
|
42
42
|
hasInterrupts,
|
|
43
43
|
makeUnsafe5,
|
|
44
|
-
|
|
44
|
+
make16,
|
|
45
45
|
_await,
|
|
46
46
|
fail5,
|
|
47
47
|
isDoneUnsafe,
|
|
@@ -168,7 +168,12 @@ import {
|
|
|
168
168
|
decodeJsonStringSync,
|
|
169
169
|
encodeUnknownJsonStringSync,
|
|
170
170
|
storable
|
|
171
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-ec01eq70.js";
|
|
172
|
+
import {
|
|
173
|
+
Id,
|
|
174
|
+
secretReference,
|
|
175
|
+
secretPlaceholder
|
|
176
|
+
} from "./chunk-yv2mq2e9.js";
|
|
172
177
|
import {
|
|
173
178
|
currentTimeMillis,
|
|
174
179
|
SecureRandom,
|
|
@@ -249,7 +254,7 @@ import {
|
|
|
249
254
|
checkServicesFile,
|
|
250
255
|
checkServices,
|
|
251
256
|
serviceChecks
|
|
252
|
-
} from "./chunk-
|
|
257
|
+
} from "./chunk-qd9bkybz.js";
|
|
253
258
|
import {
|
|
254
259
|
join,
|
|
255
260
|
interrupt,
|
|
@@ -258,7 +263,7 @@ import {
|
|
|
258
263
|
unbounded2,
|
|
259
264
|
offer,
|
|
260
265
|
makeUnsafe3,
|
|
261
|
-
|
|
266
|
+
make11,
|
|
262
267
|
fromQueue,
|
|
263
268
|
fromPubSub,
|
|
264
269
|
map2,
|
|
@@ -293,7 +298,7 @@ import {
|
|
|
293
298
|
writeSrtSettings2,
|
|
294
299
|
srtStepArgv2,
|
|
295
300
|
srtArgv2
|
|
296
|
-
} from "./chunk-
|
|
301
|
+
} from "./chunk-tnrmd4hz.js";
|
|
297
302
|
import {
|
|
298
303
|
writeAgentEnvironmentConfigFile2,
|
|
299
304
|
readManifestSkillPaths2,
|
|
@@ -309,8 +314,8 @@ import {
|
|
|
309
314
|
applyAgentEnvironmentMaterialization2,
|
|
310
315
|
isPathWithin2,
|
|
311
316
|
skillIdentity2
|
|
312
|
-
} from "./chunk-
|
|
313
|
-
import"./chunk-
|
|
317
|
+
} from "./chunk-qnb3a82t.js";
|
|
318
|
+
import"./chunk-x2jjnfff.js";
|
|
314
319
|
import {
|
|
315
320
|
egressAllowed,
|
|
316
321
|
writeSecretRegistry,
|
|
@@ -320,7 +325,7 @@ import {
|
|
|
320
325
|
secretFilter2,
|
|
321
326
|
opaqueTunnelRefusal2,
|
|
322
327
|
isOpaqueConnectReason2
|
|
323
|
-
} from "./chunk-
|
|
328
|
+
} from "./chunk-p9wzycsm.js";
|
|
324
329
|
import {
|
|
325
330
|
sliceBytes2,
|
|
326
331
|
maxLineBytes2,
|
|
@@ -328,28 +333,23 @@ import {
|
|
|
328
333
|
decodedOption2,
|
|
329
334
|
decoded2,
|
|
330
335
|
readOpencode2
|
|
331
|
-
} from "./chunk-
|
|
336
|
+
} from "./chunk-pvv8y59t.js";
|
|
332
337
|
import {
|
|
333
338
|
uploadRunFile,
|
|
334
339
|
programLease,
|
|
335
340
|
rpcRunFiles,
|
|
336
341
|
programHostsEnv,
|
|
337
342
|
undeclaredHostsEnv
|
|
338
|
-
} from "./chunk-
|
|
339
|
-
import"./chunk-
|
|
343
|
+
} from "./chunk-dz7qcbpp.js";
|
|
344
|
+
import"./chunk-4yvafzhp.js";
|
|
340
345
|
import {
|
|
341
346
|
nextInt
|
|
342
|
-
} from "./chunk-
|
|
347
|
+
} from "./chunk-0kreahhj.js";
|
|
343
348
|
import {
|
|
344
349
|
ChildProcessSpawner,
|
|
345
350
|
make3
|
|
346
|
-
} from "./chunk-
|
|
347
|
-
import"./chunk-
|
|
348
|
-
import {
|
|
349
|
-
Id,
|
|
350
|
-
secretReference,
|
|
351
|
-
secretPlaceholder
|
|
352
|
-
} from "./chunk-9avbsbvk.js";
|
|
351
|
+
} from "./chunk-me1zn085.js";
|
|
352
|
+
import"./chunk-rx2cg7rn.js";
|
|
353
353
|
|
|
354
354
|
// packages/core/src/sync-kit.ts
|
|
355
355
|
import { createHash } from "crypto";
|
|
@@ -7175,7 +7175,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
7175
7175
|
return {
|
|
7176
7176
|
request: (method, params) => gen(function* () {
|
|
7177
7177
|
const id = ++lastId;
|
|
7178
|
-
const deferred = yield*
|
|
7178
|
+
const deferred = yield* make16();
|
|
7179
7179
|
pending.set(id, deferred);
|
|
7180
7180
|
yield* send({ id, method, params });
|
|
7181
7181
|
return yield* _await(deferred).pipe(mapError2((error) => new CodexAppServerFailed({ reason: `${method}: ${error.message}` })));
|
|
@@ -7318,7 +7318,7 @@ var kitmanMcpPreflight = (mcp) => gen(function* () {
|
|
|
7318
7318
|
const server = yield* spawner.spawn(make3(mcp.command, [...mcp.args], {
|
|
7319
7319
|
extendEnv: true,
|
|
7320
7320
|
env: mcp.env,
|
|
7321
|
-
stdin: { stream:
|
|
7321
|
+
stdin: { stream: make11(new TextEncoder().encode(handshake)), endOnDone: false },
|
|
7322
7322
|
stderr: "ignore"
|
|
7323
7323
|
}));
|
|
7324
7324
|
const reply = yield* server.stdout.pipe(decodeText, splitLines, map2((line) => getOrUndefined(decodeJsonStringOption(line))), filter((message) => isJsonObject(message) && message.id === 2), runHead);
|
|
@@ -7392,7 +7392,7 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
|
|
|
7392
7392
|
const exitCode = sandbox === undefined ? yield* gen(function* () {
|
|
7393
7393
|
const spawner = yield* ChildProcessSpawner;
|
|
7394
7394
|
const handle = yield* spawner.spawn(make3(input.bun ?? process.execPath, [file], {
|
|
7395
|
-
stdin:
|
|
7395
|
+
stdin: make11(new TextEncoder().encode(stdin)),
|
|
7396
7396
|
stdout: "inherit",
|
|
7397
7397
|
stderr: "inherit",
|
|
7398
7398
|
extendEnv: false,
|
package/dist/index.js
CHANGED
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
var args = process.argv.slice(2);
|
|
6
6
|
if (args[0] === "srt") {
|
|
7
7
|
process.argv.splice(2, 1);
|
|
8
|
-
const { runSrtCli } = await import("./chunk-
|
|
8
|
+
const { runSrtCli } = await import("./chunk-pcyscxe1.js");
|
|
9
9
|
await runSrtCli();
|
|
10
10
|
} else if (args[0] === "srt-step") {
|
|
11
|
-
const { runSrtStep } = await import("./chunk-
|
|
11
|
+
const { runSrtStep } = await import("./chunk-5c4tn29r.js");
|
|
12
12
|
await runSrtStep(args.slice(1));
|
|
13
13
|
} else if (args[0] === "opencode-read") {
|
|
14
|
-
const { runOpencodeReader } = await import("./chunk-
|
|
14
|
+
const { runOpencodeReader } = await import("./chunk-nmw831xh.js");
|
|
15
15
|
runOpencodeReader();
|
|
16
16
|
} else {
|
|
17
|
-
const { runCli } = await import("./chunk-
|
|
17
|
+
const { runCli } = await import("./chunk-af3m4nhz.js");
|
|
18
18
|
runCli(args);
|
|
19
19
|
}
|