@kodycodes/cli 3.28.0 → 3.28.1
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/{auth-W7H6R6G5.js → auth-4MJQCPHH.js} +3 -3
- package/dist/bin.js +4 -4
- package/dist/{chunk-QFDBRFG5.js → chunk-6UYRLITC.js} +2 -2
- package/dist/{chunk-V35GMVDB.js → chunk-AAPTGBH2.js} +2 -2
- package/dist/{chunk-HJMRMBFW.js → chunk-AK7QC5Q6.js} +1 -7
- package/dist/chunk-AK7QC5Q6.js.map +6 -0
- package/dist/{chunk-NHX6KT7Q.js → chunk-AUY7E5W4.js} +2 -2
- package/dist/{chunk-QXP526E7.js → chunk-JXUNYHCE.js} +30 -31
- package/dist/chunk-JXUNYHCE.js.map +6 -0
- package/dist/{chunk-STHICAUI.js → chunk-ZVKF65ZW.js} +2 -2
- package/dist/cli.js +4 -4
- package/dist/{commands-XRZICB4E.js → commands-KJ2LKZPN.js} +2 -57
- package/dist/{commands-XRZICB4E.js.map → commands-KJ2LKZPN.js.map} +1 -1
- package/dist/{dev-command-7UJGTUZL.js → dev-command-MPBKGNZW.js} +3 -3
- package/dist/{git-credential-JJBJSSFJ.js → git-credential-AYJBXNYA.js} +4 -4
- package/dist/{local-package-run-G7LQHXMJ.js → local-package-run-PUB3K7FH.js} +3 -3
- package/dist/{mock-dep-resolve-WD4PG7JB.js → mock-dep-resolve-YLYKZ64B.js} +2 -2
- package/dist/{open-api-client-TAWXGPDD.js → open-api-client-5BVEGHDF.js} +2 -2
- package/dist/{remote-execute-HQRDC57G.js → remote-execute-NXD5ASKQ.js} +2 -2
- package/dist/{setup-git-L6KMU43V.js → setup-git-DHJHWR2L.js} +3 -3
- package/dist/{whoami-J5V52HIV.js → whoami-JXSVR7Y5.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-HJMRMBFW.js.map +0 -6
- package/dist/chunk-QXP526E7.js.map +0 -6
- /package/dist/{auth-W7H6R6G5.js.map → auth-4MJQCPHH.js.map} +0 -0
- /package/dist/{chunk-QFDBRFG5.js.map → chunk-6UYRLITC.js.map} +0 -0
- /package/dist/{chunk-V35GMVDB.js.map → chunk-AAPTGBH2.js.map} +0 -0
- /package/dist/{chunk-NHX6KT7Q.js.map → chunk-AUY7E5W4.js.map} +0 -0
- /package/dist/{chunk-STHICAUI.js.map → chunk-ZVKF65ZW.js.map} +0 -0
- /package/dist/{dev-command-7UJGTUZL.js.map → dev-command-MPBKGNZW.js.map} +0 -0
- /package/dist/{git-credential-JJBJSSFJ.js.map → git-credential-AYJBXNYA.js.map} +0 -0
- /package/dist/{local-package-run-G7LQHXMJ.js.map → local-package-run-PUB3K7FH.js.map} +0 -0
- /package/dist/{mock-dep-resolve-WD4PG7JB.js.map → mock-dep-resolve-YLYKZ64B.js.map} +0 -0
- /package/dist/{open-api-client-TAWXGPDD.js.map → open-api-client-5BVEGHDF.js.map} +0 -0
- /package/dist/{remote-execute-HQRDC57G.js.map → remote-execute-NXD5ASKQ.js.map} +0 -0
- /package/dist/{setup-git-L6KMU43V.js.map → setup-git-DHJHWR2L.js.map} +0 -0
- /package/dist/{whoami-J5V52HIV.js.map → whoami-JXSVR7Y5.js.map} +0 -0
|
@@ -4832,61 +4832,6 @@ Run \`kody daemon\` in a terminal, or fix that and run: kody daemon install --co
|
|
|
4832
4832
|
);
|
|
4833
4833
|
return 0;
|
|
4834
4834
|
}
|
|
4835
|
-
if (input.command === "context" && sub === "acknowledge") {
|
|
4836
|
-
const ref = rest[0];
|
|
4837
|
-
if (!ref) throw new Error("Usage: kody context acknowledge <name|ec id>");
|
|
4838
|
-
const token = await input.token();
|
|
4839
|
-
const id = encodeURIComponent(ref);
|
|
4840
|
-
const read = await apiJson({
|
|
4841
|
-
...base,
|
|
4842
|
-
token,
|
|
4843
|
-
method: "GET",
|
|
4844
|
-
path: `/v1/execution-contexts/${id}`
|
|
4845
|
-
});
|
|
4846
|
-
const context = read.context ?? {};
|
|
4847
|
-
const ack = context.acknowledgment;
|
|
4848
|
-
const name = context.name ?? ref;
|
|
4849
|
-
if (!ack?.required || !ack.fingerprint) {
|
|
4850
|
-
out(
|
|
4851
|
-
input,
|
|
4852
|
-
{ acknowledged: true, alreadyCurrent: true },
|
|
4853
|
-
`Nothing to acknowledge on ${name}: you operate it, are its login, or already acknowledged what it runs as.`
|
|
4854
|
-
);
|
|
4855
|
-
return 0;
|
|
4856
|
-
}
|
|
4857
|
-
const login = ack.login;
|
|
4858
|
-
const who = login?.handle ? `@${login.handle}` : "its owner";
|
|
4859
|
-
const runsAs = login?.kind === "profile" ? `the agent profile ${login.profileName ? `"${login.profileName}" ` : ""}of ${who}` : `the account ${who}`;
|
|
4860
|
-
const lines = [
|
|
4861
|
-
`${name} runs as ${runsAs}, on a machine operated by @${context.operator?.handle ?? "unknown"}.`,
|
|
4862
|
-
"Your runs use only your own Kody access, never the machine login's. Anyone with host access on the machine acts with its login.",
|
|
4863
|
-
ack.excessCount ? `Its login can do ${ack.excessCount} thing${ack.excessCount === 1 ? "" : "s"} you can't:` : "Its login has no access you lack.",
|
|
4864
|
-
...(ack.entries ?? []).map(
|
|
4865
|
-
(entry) => ` - ${entry.permission === "owner" ? "everything (an org Owner)" : entry.resource ? `${entry.permission} on ${entry.resource}` : entry.permission}`
|
|
4866
|
-
)
|
|
4867
|
-
];
|
|
4868
|
-
const confirm = input.service?.confirm ?? terminalConfirm();
|
|
4869
|
-
if (!confirm) {
|
|
4870
|
-
throw new Error(
|
|
4871
|
-
`Acknowledging needs you at a terminal: run \`kody context acknowledge ${ref}\` yourself, or choose Acknowledge on ${name}'s page in Kody.`
|
|
4872
|
-
);
|
|
4873
|
-
}
|
|
4874
|
-
input.write(`${lines.join("\n")}
|
|
4875
|
-
`);
|
|
4876
|
-
if (!await confirm(`Acknowledge what ${name} runs as?`, false)) {
|
|
4877
|
-
input.write("Not acknowledged; runs on it stay refused.\n");
|
|
4878
|
-
return 1;
|
|
4879
|
-
}
|
|
4880
|
-
const body = await apiJson({
|
|
4881
|
-
...base,
|
|
4882
|
-
token,
|
|
4883
|
-
method: "POST",
|
|
4884
|
-
path: `/v1/execution-contexts/${id}/acknowledge`,
|
|
4885
|
-
body: { fingerprint: ack.fingerprint }
|
|
4886
|
-
});
|
|
4887
|
-
out(input, body, `Acknowledged ${name}. Your runs can use it now.`);
|
|
4888
|
-
return 0;
|
|
4889
|
-
}
|
|
4890
4835
|
if (input.command === "context" && sub === "cancel-run") {
|
|
4891
4836
|
const [ref, runId] = rest;
|
|
4892
4837
|
if (!ref || !runId) {
|
|
@@ -5291,7 +5236,7 @@ Run \`kody daemon\` in a terminal, or fix that and run: kody daemon install --co
|
|
|
5291
5236
|
return stayStoppedExitCode;
|
|
5292
5237
|
}
|
|
5293
5238
|
throw new Error(
|
|
5294
|
-
"Usage: kody context register --name <name> [--org <slug>] | kody context list | kody context revoke <name> | kody context delete <name> | kody context
|
|
5239
|
+
"Usage: kody context register --name <name> [--org <slug>] | kody context list | kody context revoke <name> | kody context delete <name> | kody context cancel-run <name> <run id> | kody context policy [show | allow <path> [--mode ro|rw] | remove <path>] | kody context commands [status | on | off] [--context <name>] | kody chain show | add <name> | remove <name> | kody connect --name <name> | kody daemon [--context <ec id>] [--max-concurrent <n>] | kody daemon install | status | logs | restart | start | stop | uninstall | auto-update [on | off | status] | kody update"
|
|
5295
5240
|
);
|
|
5296
5241
|
}
|
|
5297
5242
|
async function resolveContextId(input) {
|
|
@@ -5468,4 +5413,4 @@ export {
|
|
|
5468
5413
|
maxConcurrentRuns,
|
|
5469
5414
|
runExecutionContextCommand
|
|
5470
5415
|
};
|
|
5471
|
-
//# sourceMappingURL=commands-
|
|
5416
|
+
//# sourceMappingURL=commands-KJ2LKZPN.js.map
|