overlord-cli 0.2607101820.0 → 0.2607121101.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 +19 -0
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9066,6 +9066,23 @@ async function runManagementCommand({
|
|
|
9066
9066
|
else console.log(`Linked ${directory} to project ${projectId}`);
|
|
9067
9067
|
return;
|
|
9068
9068
|
}
|
|
9069
|
+
case "add-url": {
|
|
9070
|
+
const sourceUrl = flagValue(parsed.flags, "--url");
|
|
9071
|
+
if (!sourceUrl) throw new CliError({ message: "Missing --url <git-url>" });
|
|
9072
|
+
const projectId = flagValue(parsed.flags, "--project-id");
|
|
9073
|
+
if (!projectId) throw new CliError({ message: "Missing --project-id for URL resources." });
|
|
9074
|
+
const resource = await runtime.backend.post({
|
|
9075
|
+
path: `/api/projects/${encodeURIComponent(projectId)}/resources`,
|
|
9076
|
+
body: {
|
|
9077
|
+
sourceUrl,
|
|
9078
|
+
resourceKey: flagValue(parsed.flags, "--key"),
|
|
9079
|
+
isPrimary: flagValue(parsed.flags, "--primary") !== "false"
|
|
9080
|
+
}
|
|
9081
|
+
});
|
|
9082
|
+
if (json) printJson({ resource });
|
|
9083
|
+
else console.log(`Linked ${sourceUrl} to project ${projectId}`);
|
|
9084
|
+
return;
|
|
9085
|
+
}
|
|
9069
9086
|
case "create":
|
|
9070
9087
|
case "prompt": {
|
|
9071
9088
|
const objectivesJson = flagValue(parsed.flags, "--objectives-json");
|
|
@@ -9666,6 +9683,7 @@ Projects:
|
|
|
9666
9683
|
${primaryCommand} create-project --name "<name>" [--directory <path>|--no-directory]
|
|
9667
9684
|
${primaryCommand} add-cwd [--directory <path>] [--project-id <id>] [--key <resourceKey>] [--primary true|false]
|
|
9668
9685
|
(prompts to pick a project when --project-id is omitted)
|
|
9686
|
+
${primaryCommand} add-url --url <git-url> --project-id <id> [--key <resourceKey>] [--primary true|false]
|
|
9669
9687
|
|
|
9670
9688
|
Missions:
|
|
9671
9689
|
${primaryCommand} create "<objective>" [--objectives-json '[...]'] [--json]
|
|
@@ -9735,6 +9753,7 @@ var KNOWN_COMMANDS = /* @__PURE__ */ new Set([
|
|
|
9735
9753
|
"create-project",
|
|
9736
9754
|
"org-setup",
|
|
9737
9755
|
"add-cwd",
|
|
9756
|
+
"add-url",
|
|
9738
9757
|
"create",
|
|
9739
9758
|
"prompt",
|
|
9740
9759
|
"attach",
|