@kitman-sh/cli 0.14.2 → 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/LICENSE.md +10 -0
- package/dist/{chunk-scdr623z.js → chunk-0kreahhj.js} +1 -1
- package/dist/{chunk-v86jpzpr.js → chunk-4yvafzhp.js} +7 -7
- package/dist/{chunk-vfw3xn1e.js → chunk-5c4tn29r.js} +3 -3
- package/dist/{chunk-gwz39037.js → chunk-6zwwrpve.js} +1 -1
- package/dist/{chunk-hza25m2e.js → chunk-af3m4nhz.js} +36 -22
- package/dist/{chunk-q4ch3t9q.js → chunk-c6fanp7r.js} +6 -6
- package/dist/{chunk-ge9qjp6s.js → chunk-dz7qcbpp.js} +4 -4
- package/dist/{chunk-1jabs81x.js → chunk-ec01eq70.js} +184 -82
- package/dist/{chunk-3csj1ve1.js → chunk-kg32dz1w.js} +4 -4
- package/dist/{chunk-qqmxhk9w.js → chunk-me1zn085.js} +60 -14
- package/dist/{chunk-jzfy127y.js → chunk-nmw831xh.js} +4 -4
- package/dist/{chunk-e024f8af.js → chunk-p9wzycsm.js} +2 -2
- package/dist/{chunk-4xez238w.js → chunk-pcyscxe1.js} +2 -2
- package/dist/{chunk-ffq8vvvx.js → chunk-pvv8y59t.js} +7 -7
- package/dist/{chunk-t9chwen8.js → chunk-q1y9qjjp.js} +6 -4
- package/dist/{chunk-ryxff0xk.js → chunk-qd9bkybz.js} +109 -118
- package/dist/{chunk-0r9tp5pz.js → chunk-qnb3a82t.js} +4 -4
- package/dist/{chunk-m9x7feh0.js → chunk-ra22g5nv.js} +7 -7
- package/dist/{chunk-yfag1eey.js → chunk-rx2cg7rn.js} +5 -5
- package/dist/{chunk-avhqm9p0.js → chunk-tnrmd4hz.js} +31 -165
- package/dist/{chunk-z7c2ndfg.js → chunk-v26jmjr0.js} +11 -11
- package/dist/{chunk-80vwvv5x.js → chunk-wvhm5fgh.js} +25 -25
- package/dist/{chunk-39pdxhcv.js → chunk-x2jjnfff.js} +3 -3
- package/dist/{chunk-h6kd80nr.js → chunk-yv2mq2e9.js} +1 -1
- package/dist/{chunk-24j1cmsm.js → chunk-zv1sshtj.js} +22 -22
- package/dist/index.js +4 -4
- package/package.json +4 -3
|
@@ -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,
|
|
@@ -158,8 +158,8 @@ import {
|
|
|
158
158
|
sessionForApi,
|
|
159
159
|
readAuthStore,
|
|
160
160
|
agentCredentialForApi,
|
|
161
|
-
make5,
|
|
162
161
|
make6,
|
|
162
|
+
make7,
|
|
163
163
|
Service,
|
|
164
164
|
shouldRefresh,
|
|
165
165
|
refreshSession,
|
|
@@ -170,13 +170,13 @@ import {
|
|
|
170
170
|
runMcpEffect,
|
|
171
171
|
createAgentAuthSignedFetch,
|
|
172
172
|
setupMcpAgentCredential
|
|
173
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-qd9bkybz.js";
|
|
174
174
|
import {
|
|
175
175
|
guard,
|
|
176
176
|
Id,
|
|
177
177
|
Timestamp,
|
|
178
178
|
ActorType
|
|
179
|
-
} from "./chunk-
|
|
179
|
+
} from "./chunk-yv2mq2e9.js";
|
|
180
180
|
import {
|
|
181
181
|
join,
|
|
182
182
|
interrupt,
|
|
@@ -193,21 +193,21 @@ import {
|
|
|
193
193
|
withDefault,
|
|
194
194
|
option,
|
|
195
195
|
String2
|
|
196
|
-
} from "./chunk-
|
|
196
|
+
} from "./chunk-tnrmd4hz.js";
|
|
197
197
|
import {
|
|
198
198
|
searchDocs2,
|
|
199
199
|
readDoc2
|
|
200
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-q1y9qjjp.js";
|
|
201
201
|
import {
|
|
202
202
|
nextInt
|
|
203
|
-
} from "./chunk-
|
|
203
|
+
} from "./chunk-0kreahhj.js";
|
|
204
204
|
import {
|
|
205
205
|
layerJson,
|
|
206
|
-
|
|
206
|
+
make4,
|
|
207
207
|
withHeaders,
|
|
208
208
|
layerProtocolSocket,
|
|
209
209
|
ConnectionHooks
|
|
210
|
-
} from "./chunk-
|
|
210
|
+
} from "./chunk-rx2cg7rn.js";
|
|
211
211
|
|
|
212
212
|
// apps/cli/src/mcp.ts
|
|
213
213
|
import { tmpdir as tmpdir2 } from "os";
|
|
@@ -1959,56 +1959,56 @@ var LivePresenceSubscriptionMessage = Union([
|
|
|
1959
1959
|
LivePresenceSubscriptionUpdate
|
|
1960
1960
|
]);
|
|
1961
1961
|
|
|
1962
|
-
class LiveRpcs extends make6(
|
|
1962
|
+
class LiveRpcs extends make7(make6("Session", {
|
|
1963
1963
|
success: Struct({ workspaceId: String4, clientKind: String4 }),
|
|
1964
1964
|
error: LiveRpcError
|
|
1965
|
-
}),
|
|
1965
|
+
}), make6("Subscribe", {
|
|
1966
1966
|
payload: LiveSubscribeInput,
|
|
1967
1967
|
success: LiveSubscriptionMessage,
|
|
1968
1968
|
error: LiveRpcError,
|
|
1969
1969
|
stream: true
|
|
1970
|
-
}),
|
|
1970
|
+
}), make6("Replay", {
|
|
1971
1971
|
payload: LiveReplayInput,
|
|
1972
1972
|
success: ArraySchema(LiveEvent),
|
|
1973
1973
|
error: LiveRpcError
|
|
1974
|
-
}),
|
|
1974
|
+
}), make6("Ack", {
|
|
1975
1975
|
payload: LiveAckInput,
|
|
1976
1976
|
success: LiveAckResult,
|
|
1977
1977
|
error: LiveRpcError
|
|
1978
|
-
}),
|
|
1978
|
+
}), make6("SubscribeWeb", {
|
|
1979
1979
|
payload: LiveWebSubscribeInput,
|
|
1980
1980
|
success: LiveWebSubscriptionMessage,
|
|
1981
1981
|
error: LiveRpcError,
|
|
1982
1982
|
stream: true
|
|
1983
|
-
}),
|
|
1983
|
+
}), make6("SubscriptionStatus", {
|
|
1984
1984
|
payload: { subscriptionId: String4 },
|
|
1985
1985
|
success: LiveSubscriptionStatus,
|
|
1986
1986
|
error: LiveRpcError
|
|
1987
|
-
}),
|
|
1987
|
+
}), make6("ReplayWeb", {
|
|
1988
1988
|
payload: LiveWebReplayInput,
|
|
1989
1989
|
success: LiveWebReplayResult,
|
|
1990
1990
|
error: LiveRpcError
|
|
1991
|
-
}),
|
|
1991
|
+
}), make6("AckWeb", {
|
|
1992
1992
|
payload: LiveWebAckInput,
|
|
1993
1993
|
success: LiveWebAckResult,
|
|
1994
1994
|
error: LiveRpcError
|
|
1995
|
-
}),
|
|
1995
|
+
}), make6("PublishPresence", {
|
|
1996
1996
|
payload: LivePresencePublishInput,
|
|
1997
1997
|
success: LivePresenceEntry,
|
|
1998
1998
|
error: LiveRpcError
|
|
1999
|
-
}),
|
|
1999
|
+
}), make6("SubscribePresence", {
|
|
2000
2000
|
payload: LivePresenceSubscribeInput,
|
|
2001
2001
|
success: LivePresenceSubscriptionMessage,
|
|
2002
2002
|
error: LiveRpcError,
|
|
2003
2003
|
stream: true
|
|
2004
|
-
}),
|
|
2004
|
+
}), make6("ClearPresence", {
|
|
2005
2005
|
payload: { scope: optional(LiveScope) },
|
|
2006
2006
|
error: LiveRpcError
|
|
2007
|
-
}),
|
|
2007
|
+
}), make6("RecordSessionUpdate", {
|
|
2008
2008
|
payload: { sessionId: String4, input: SessionUpdateCreate },
|
|
2009
2009
|
success: SessionUpdate,
|
|
2010
2010
|
error: LiveRpcError
|
|
2011
|
-
}),
|
|
2011
|
+
}), make6("EndSession", {
|
|
2012
2012
|
payload: { sessionId: String4, input: SessionEnd },
|
|
2013
2013
|
success: Session,
|
|
2014
2014
|
error: LiveRpcError
|
|
@@ -2060,7 +2060,7 @@ function connectKitmanLiveRoot(protocol) {
|
|
|
2060
2060
|
})
|
|
2061
2061
|
});
|
|
2062
2062
|
const layer = (isString2(protocol) ? liveWebSocketProtocol(protocol) : protocol()).pipe(provideMerge(hooks));
|
|
2063
|
-
const client = await runPromise(buildWithScope(layer, scope).pipe(flatMap3((context) =>
|
|
2063
|
+
const client = await runPromise(buildWithScope(layer, scope).pipe(flatMap3((context) => make4(LiveRpcs).pipe(provideContext2(context))), provide(scope)));
|
|
2064
2064
|
let abandon = () => {};
|
|
2065
2065
|
const abandoned = new Promise((_resolve, reject) => {
|
|
2066
2066
|
abandon = reject;
|
|
@@ -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,7 @@ import {
|
|
|
18
18
|
isMinLength,
|
|
19
19
|
isMaxLength,
|
|
20
20
|
FiniteFromString
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-ec01eq70.js";
|
|
22
22
|
|
|
23
23
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/JsonSchema.js
|
|
24
24
|
var PRE_2020_TO_2020_COLLISIONS = ["$anchor", "$defs", "$dynamicAnchor", "$dynamicRef", "$vocabulary", "contentSchema", "dependentRequired", "dependentSchemas", "maxContains", "minContains", "prefixItems", "unevaluatedItems", "unevaluatedProperties"];
|
|
@@ -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,12 +168,12 @@ import {
|
|
|
168
168
|
decodeJsonStringSync,
|
|
169
169
|
encodeUnknownJsonStringSync,
|
|
170
170
|
storable
|
|
171
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-ec01eq70.js";
|
|
172
172
|
import {
|
|
173
173
|
Id,
|
|
174
174
|
secretReference,
|
|
175
175
|
secretPlaceholder
|
|
176
|
-
} from "./chunk-
|
|
176
|
+
} from "./chunk-yv2mq2e9.js";
|
|
177
177
|
import {
|
|
178
178
|
currentTimeMillis,
|
|
179
179
|
SecureRandom,
|
|
@@ -254,7 +254,7 @@ import {
|
|
|
254
254
|
checkServicesFile,
|
|
255
255
|
checkServices,
|
|
256
256
|
serviceChecks
|
|
257
|
-
} from "./chunk-
|
|
257
|
+
} from "./chunk-qd9bkybz.js";
|
|
258
258
|
import {
|
|
259
259
|
join,
|
|
260
260
|
interrupt,
|
|
@@ -263,7 +263,7 @@ import {
|
|
|
263
263
|
unbounded2,
|
|
264
264
|
offer,
|
|
265
265
|
makeUnsafe3,
|
|
266
|
-
|
|
266
|
+
make11,
|
|
267
267
|
fromQueue,
|
|
268
268
|
fromPubSub,
|
|
269
269
|
map2,
|
|
@@ -298,7 +298,7 @@ import {
|
|
|
298
298
|
writeSrtSettings2,
|
|
299
299
|
srtStepArgv2,
|
|
300
300
|
srtArgv2
|
|
301
|
-
} from "./chunk-
|
|
301
|
+
} from "./chunk-tnrmd4hz.js";
|
|
302
302
|
import {
|
|
303
303
|
writeAgentEnvironmentConfigFile2,
|
|
304
304
|
readManifestSkillPaths2,
|
|
@@ -314,8 +314,8 @@ import {
|
|
|
314
314
|
applyAgentEnvironmentMaterialization2,
|
|
315
315
|
isPathWithin2,
|
|
316
316
|
skillIdentity2
|
|
317
|
-
} from "./chunk-
|
|
318
|
-
import"./chunk-
|
|
317
|
+
} from "./chunk-qnb3a82t.js";
|
|
318
|
+
import"./chunk-x2jjnfff.js";
|
|
319
319
|
import {
|
|
320
320
|
egressAllowed,
|
|
321
321
|
writeSecretRegistry,
|
|
@@ -325,7 +325,7 @@ import {
|
|
|
325
325
|
secretFilter2,
|
|
326
326
|
opaqueTunnelRefusal2,
|
|
327
327
|
isOpaqueConnectReason2
|
|
328
|
-
} from "./chunk-
|
|
328
|
+
} from "./chunk-p9wzycsm.js";
|
|
329
329
|
import {
|
|
330
330
|
sliceBytes2,
|
|
331
331
|
maxLineBytes2,
|
|
@@ -333,23 +333,23 @@ import {
|
|
|
333
333
|
decodedOption2,
|
|
334
334
|
decoded2,
|
|
335
335
|
readOpencode2
|
|
336
|
-
} from "./chunk-
|
|
336
|
+
} from "./chunk-pvv8y59t.js";
|
|
337
337
|
import {
|
|
338
338
|
uploadRunFile,
|
|
339
339
|
programLease,
|
|
340
340
|
rpcRunFiles,
|
|
341
341
|
programHostsEnv,
|
|
342
342
|
undeclaredHostsEnv
|
|
343
|
-
} from "./chunk-
|
|
344
|
-
import"./chunk-
|
|
343
|
+
} from "./chunk-dz7qcbpp.js";
|
|
344
|
+
import"./chunk-4yvafzhp.js";
|
|
345
345
|
import {
|
|
346
346
|
nextInt
|
|
347
|
-
} from "./chunk-
|
|
347
|
+
} from "./chunk-0kreahhj.js";
|
|
348
348
|
import {
|
|
349
349
|
ChildProcessSpawner,
|
|
350
|
-
|
|
351
|
-
} from "./chunk-
|
|
352
|
-
import"./chunk-
|
|
350
|
+
make3
|
|
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";
|
|
@@ -7152,7 +7152,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
7152
7152
|
const input = yield* unbounded2();
|
|
7153
7153
|
const pending = new Map;
|
|
7154
7154
|
let lastId = 0;
|
|
7155
|
-
const handle = yield* spawner.spawn(
|
|
7155
|
+
const handle = yield* spawner.spawn(make3(binary, ["app-server"], {
|
|
7156
7156
|
cwd: env.home,
|
|
7157
7157
|
extendEnv: true,
|
|
7158
7158
|
env: { HOME: env.home, CODEX_HOME: env.codexHome },
|
|
@@ -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}` })));
|
|
@@ -7315,10 +7315,10 @@ var handshake = [
|
|
|
7315
7315
|
`).join("");
|
|
7316
7316
|
var kitmanMcpPreflight = (mcp) => gen(function* () {
|
|
7317
7317
|
const spawner = yield* ChildProcessSpawner;
|
|
7318
|
-
const server = yield* spawner.spawn(
|
|
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);
|
|
@@ -7391,8 +7391,8 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
|
|
|
7391
7391
|
};
|
|
7392
7392
|
const exitCode = sandbox === undefined ? yield* gen(function* () {
|
|
7393
7393
|
const spawner = yield* ChildProcessSpawner;
|
|
7394
|
-
const handle = yield* spawner.spawn(
|
|
7395
|
-
stdin:
|
|
7394
|
+
const handle = yield* spawner.spawn(make3(input.bun ?? process.execPath, [file], {
|
|
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
|
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitman-sh/cli",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.4",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"license": "
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"bin": {
|
|
7
7
|
"kitman": "./dist/index.js"
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
|
-
"dist"
|
|
10
|
+
"dist",
|
|
11
|
+
"LICENSE.md"
|
|
11
12
|
],
|
|
12
13
|
"dependencies": {
|
|
13
14
|
"@anthropic-ai/sandbox-runtime": "^0.0.81",
|