@odla-ai/cli 0.46.1 → 0.46.2
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/bin.cjs +23 -1
- package/dist/bin.cjs.map +1 -1
- package/dist/bin.js +1 -1
- package/dist/{chunk-JHB6352A.js → chunk-PCEGBCLZ.js} +24 -2
- package/dist/chunk-PCEGBCLZ.js.map +1 -0
- package/dist/{cli-2FTL245Y.js → cli-UTMLBANX.js} +2 -2
- package/dist/index.cjs +23 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/skills/odla/references/sdks.md +16 -0
- package/dist/chunk-JHB6352A.js.map +0 -1
- /package/dist/{cli-2FTL245Y.js.map → cli-UTMLBANX.js.map} +0 -0
package/dist/bin.js
CHANGED
|
@@ -172,7 +172,7 @@ function absoluteEntryPath(entryPath) {
|
|
|
172
172
|
|
|
173
173
|
// src/bin.ts
|
|
174
174
|
var argv = process.argv.slice(2);
|
|
175
|
-
requireCurrentCliForProvision(argv).then(() => requireCoherentProvisionRuntime(argv)).then(async () => (await import("./cli-
|
|
175
|
+
requireCurrentCliForProvision(argv).then(() => requireCoherentProvisionRuntime(argv)).then(async () => (await import("./cli-UTMLBANX.js")).runCli()).catch((err) => {
|
|
176
176
|
console.error(redactSecrets(`odla-ai: ${err instanceof Error ? err.message : String(err)}`));
|
|
177
177
|
process.exitCode = exitCodeFor(err);
|
|
178
178
|
});
|
|
@@ -1244,7 +1244,7 @@ var COMMAND_SURFACE = {
|
|
|
1244
1244
|
},
|
|
1245
1245
|
pm: {
|
|
1246
1246
|
...PM_ENTITIES,
|
|
1247
|
-
project: { list: {}, add: {}, create: {}, use: {} },
|
|
1247
|
+
project: { list: {}, add: {}, create: {}, use: {}, set: {} },
|
|
1248
1248
|
handoff: {},
|
|
1249
1249
|
next: {},
|
|
1250
1250
|
start: {},
|
|
@@ -10953,6 +10953,7 @@ Usage:
|
|
|
10953
10953
|
odla-ai pm project list [--app <product-id>] [--status <s>] [--json]
|
|
10954
10954
|
odla-ai pm project add --app <product-id> --name <name> [--description <text>] [--json]
|
|
10955
10955
|
odla-ai pm project use <project-id> [--json] [saved for this app, on this machine]
|
|
10956
|
+
odla-ai pm project set <project-id> [--name <n>|--description <text>|--status <active|completed|archived>] [--mutation-id <id>] [--json]
|
|
10956
10957
|
odla-ai pm goal list [--app <id>] [--project <id>] [--status <s>] [--q <text>] [--limit <n>] [--offset <n>] [--json]
|
|
10957
10958
|
odla-ai pm task list [--app <id>] [--column <backlog|ready|doing|review|done>] [--goal <id>] [--assignee <id>] [--q <text>] [--limit <n>] [--offset <n>] [--json]
|
|
10958
10959
|
odla-ai pm decision list [--app <id>] [--status <s>] [--q <text>] [--limit <n>] [--offset <n>] [--json]
|
|
@@ -12672,6 +12673,23 @@ async function pmProjectUse(ctx, id2) {
|
|
|
12672
12673
|
writePmProjectContext(ctx.rootDir, { appId: project.appId, projectId: project.id });
|
|
12673
12674
|
emit2(ctx, project, () => ctx.out.log(`using ${project.appId} / ${project.name} (${project.id}) in this worktree`));
|
|
12674
12675
|
}
|
|
12676
|
+
async function pmProjectSet(ctx, id2, parsed) {
|
|
12677
|
+
const patch2 = {};
|
|
12678
|
+
for (const key of ["name", "description", "status"]) {
|
|
12679
|
+
const value2 = stringOpt(parsed.options[key]);
|
|
12680
|
+
if (value2 !== void 0) patch2[key] = value2;
|
|
12681
|
+
}
|
|
12682
|
+
if (!Object.keys(patch2).length) {
|
|
12683
|
+
throw new Error("pm project set needs --name, --description, or --status <active|completed|archived>");
|
|
12684
|
+
}
|
|
12685
|
+
const { project } = await pmRequest(
|
|
12686
|
+
ctx,
|
|
12687
|
+
"PATCH",
|
|
12688
|
+
`/project/${encodeURIComponent(id2)}`,
|
|
12689
|
+
{ patch: patch2, mutationId: writeMutationId2(parsed) }
|
|
12690
|
+
);
|
|
12691
|
+
emit2(ctx, project, () => ctx.out.log(`project ${project.name} (${project.id}) is ${project.status}`));
|
|
12692
|
+
}
|
|
12675
12693
|
|
|
12676
12694
|
// src/pm-command.ts
|
|
12677
12695
|
var ALIASES = {
|
|
@@ -12792,6 +12810,10 @@ async function pmCommand(parsed, deps = {}) {
|
|
|
12792
12810
|
assertArgs(parsed, COMMON_OPTIONS, 4);
|
|
12793
12811
|
return pmProjectUse(await buildContext2(parsed, deps), requireId2(parsed.positionals[3], action3));
|
|
12794
12812
|
}
|
|
12813
|
+
if (action3 === "set") {
|
|
12814
|
+
assertArgs(parsed, [...COMMON_OPTIONS, "name", "description", "status", "mutation-id"], 4);
|
|
12815
|
+
return pmProjectSet(await buildContext2(parsed, deps), requireId2(parsed.positionals[3], action3), parsed);
|
|
12816
|
+
}
|
|
12795
12817
|
rejectWord(["pm", "project"], action3);
|
|
12796
12818
|
}
|
|
12797
12819
|
if (word === "next") {
|
|
@@ -16161,4 +16183,4 @@ export {
|
|
|
16161
16183
|
isTerminalHostedSecurityStatus,
|
|
16162
16184
|
runCli
|
|
16163
16185
|
};
|
|
16164
|
-
//# sourceMappingURL=chunk-
|
|
16186
|
+
//# sourceMappingURL=chunk-PCEGBCLZ.js.map
|