overlord-cli 0.2607240957.0 → 0.2607241654.0
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.js +43 -0
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -17168,6 +17168,43 @@ async function runManagementCommand({
|
|
|
17168
17168
|
else console.log(`Linked ${sourceUrl} to project ${projectId}`);
|
|
17169
17169
|
return;
|
|
17170
17170
|
}
|
|
17171
|
+
case "add-et": {
|
|
17172
|
+
const name = flagValue(parsed.flags, "--name") ?? parsed.positional.join(" ");
|
|
17173
|
+
const protocolFlags = {};
|
|
17174
|
+
if (name) protocolFlags["--name"] = name;
|
|
17175
|
+
const workspaceId = flagValue(parsed.flags, "--workspace-id");
|
|
17176
|
+
if (workspaceId) protocolFlags["--workspace-id"] = workspaceId;
|
|
17177
|
+
const result = await runtime.backend.post({
|
|
17178
|
+
path: "/api/protocol/register-target",
|
|
17179
|
+
body: { args: rest, positional: parsed.positional, flags: protocolFlags, fileInputs: {} }
|
|
17180
|
+
});
|
|
17181
|
+
const record = asRecord2(result);
|
|
17182
|
+
if (record.status === "workspace_selection_required") {
|
|
17183
|
+
if (json) {
|
|
17184
|
+
printJson({ result });
|
|
17185
|
+
} else {
|
|
17186
|
+
const workspaces = Array.isArray(record.workspaces) ? record.workspaces : [];
|
|
17187
|
+
console.log(
|
|
17188
|
+
"You belong to more than one workspace. Re-run with --workspace-id set to one of:"
|
|
17189
|
+
);
|
|
17190
|
+
for (const entry of workspaces) {
|
|
17191
|
+
const ws = asRecord2(entry);
|
|
17192
|
+
console.log(` - ${ws.name ?? ws.id} (${ws.slug ?? ws.id})`);
|
|
17193
|
+
}
|
|
17194
|
+
}
|
|
17195
|
+
return;
|
|
17196
|
+
}
|
|
17197
|
+
if (json) {
|
|
17198
|
+
printJson({ result });
|
|
17199
|
+
} else {
|
|
17200
|
+
const target = asRecord2(record.executionTarget);
|
|
17201
|
+
const ws = asRecord2(record.workspace);
|
|
17202
|
+
console.log(
|
|
17203
|
+
`Registered execution target ${target.label ?? name ?? ""} (${target.executionTargetId ?? "unknown"}) in workspace ${ws.name ?? ws.id ?? ""}`
|
|
17204
|
+
);
|
|
17205
|
+
}
|
|
17206
|
+
return;
|
|
17207
|
+
}
|
|
17171
17208
|
case "create":
|
|
17172
17209
|
case "prompt": {
|
|
17173
17210
|
const objectivesJson = flagValue(parsed.flags, "--objectives-json");
|
|
@@ -17791,6 +17828,7 @@ var COMMAND_FLAGS = {
|
|
|
17791
17828
|
],
|
|
17792
17829
|
"add-cwd": ["--directory", "--key", "--project-id", "--primary", "--access"],
|
|
17793
17830
|
"add-url": ["--url", "--project-id", "--key", "--primary", "--access"],
|
|
17831
|
+
"add-et": ["--name", "--workspace-id"],
|
|
17794
17832
|
create: ["--objectives-json", "--objective", "--prompt", "--project-id", "--title", "--resource"],
|
|
17795
17833
|
prompt: [
|
|
17796
17834
|
"--objectives-json",
|
|
@@ -17923,6 +17961,10 @@ Projects:
|
|
|
17923
17961
|
(prompts to pick a project when --project-id is omitted)
|
|
17924
17962
|
${primaryCommand} add-url --url <git-url> --project-id <id> [--key <resourceKey>] [--primary true|false] [--access read|read_write]
|
|
17925
17963
|
|
|
17964
|
+
Execution targets:
|
|
17965
|
+
${primaryCommand} add-et --name "<name>" [--workspace-id <id-or-name>] [--json]
|
|
17966
|
+
(announce this machine as an execution target)
|
|
17967
|
+
|
|
17926
17968
|
Missions:
|
|
17927
17969
|
${primaryCommand} create "<objective>" [--objectives-json '[...]'] [--json]
|
|
17928
17970
|
${primaryCommand} prompt "<objective>" [--json]
|
|
@@ -17993,6 +18035,7 @@ var KNOWN_COMMANDS = /* @__PURE__ */ new Set([
|
|
|
17993
18035
|
"org-setup",
|
|
17994
18036
|
"add-cwd",
|
|
17995
18037
|
"add-url",
|
|
18038
|
+
"add-et",
|
|
17996
18039
|
"create",
|
|
17997
18040
|
"prompt",
|
|
17998
18041
|
"attach",
|