@agimon-ai/po-git 0.0.0-alpha.197 → 0.0.0-alpha.199
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/extensions/server.cjs +5 -3
- package/dist/extensions/server.cjs.map +1 -1
- package/dist/extensions/server.mjs +5 -3
- package/dist/extensions/server.mjs.map +1 -1
- package/dist/{gitDependencies-BnNuImZi.cjs → gitDependencies-D8bKxZSc.cjs} +6 -2
- package/dist/gitDependencies-D8bKxZSc.cjs.map +1 -0
- package/dist/{gitDependencies-DYe8D0VS.mjs → gitDependencies-Delu4xip.mjs} +6 -2
- package/dist/gitDependencies-Delu4xip.mjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/po-runtime-identity.json +1 -1
- package/package.json +12 -12
- package/src/prompts/codemode-how-to-git/SKILL.md +3 -0
- package/dist/gitDependencies-BnNuImZi.cjs.map +0 -1
- package/dist/gitDependencies-DYe8D0VS.mjs.map +0 -1
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_gitDependencies = require("../gitDependencies-
|
|
5
|
+
const require_gitDependencies = require("../gitDependencies-D8bKxZSc.cjs");
|
|
6
6
|
let _agimon_ai_po_core_platform = require("@agimon-ai/po-core/platform");
|
|
7
7
|
let _agimon_ai_po_sparo = require("@agimon-ai/po-sparo");
|
|
8
8
|
let _agimon_ai_po_core_serverPlugin = require("@agimon-ai/po-core/serverPlugin");
|
|
@@ -897,12 +897,14 @@ function createWorktreeWorkflows(options) {
|
|
|
897
897
|
}, signal);
|
|
898
898
|
throw new WorktreeWorkflowError("not_started", "Workflow validation failed before checkout creation.", { cause: error });
|
|
899
899
|
}
|
|
900
|
-
|
|
900
|
+
const frozen = input.overrides?.allocation;
|
|
901
|
+
const refusal = report.errors.length ? `The workflow is not valid: ${report.errors.map((issue) => issue.message).join("; ")}` : report.allocation === void 0 ? void 0 : frozen === void 0 ? "This role-bound workflow needs an allocation prepared before the checkout, and none was supplied." : JSON.stringify(canonical(report.allocation)) !== JSON.stringify(canonical(frozen)) ? "The workflow allocation changed since it was prepared." : void 0;
|
|
902
|
+
if (refusal) {
|
|
901
903
|
await update({
|
|
902
904
|
...attempt,
|
|
903
905
|
state: "rejected"
|
|
904
906
|
}, signal);
|
|
905
|
-
throw new WorktreeWorkflowError("not_started",
|
|
907
|
+
throw new WorktreeWorkflowError("not_started", refusal);
|
|
906
908
|
}
|
|
907
909
|
operation(signal).signal.throwIfAborted();
|
|
908
910
|
try {
|