@akagilnc/pi-workflow-roles 0.1.5583 → 0.1.5598
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/README.md +2 -0
- package/README.zh-CN.md +2 -0
- package/dist/acp-host/production-host.js +393 -854
- package/dist/collector-config.js +0 -44
- package/dist/headless-host/production-host.js +361 -822
- package/dist/merger-contracts.js +6 -2
- package/dist/migrate-book-topology.js +4855 -10472
- package/dist/package-contracts/worker-output.js +1 -6
- package/dist/packaged-role-registry.js +5 -4
- package/dist/public-cli/instruction-seat-run.js +8 -8
- package/dist/public-cli/invocation.js +93 -236
- package/dist/public-cli/main.js +18409 -18786
- package/dist/public-cli/option-definitions.js +7 -7
- package/dist/public-cli/post-admission.js +11 -40
- package/dist/public-cli/run-lifecycle.js +11 -43
- package/dist/public-role-summons.js +1 -1
- package/dist/role-run-relocation.js +14 -23
- package/package.json +1 -1
- package/scripts/build-package.mjs +0 -1
- package/src/collector-config.ts +0 -42
- package/src/collector-role.ts +10 -20
- package/src/host-contracts.ts +0 -3
- package/src/merger-contracts.ts +6 -2
- package/src/merger-role.ts +11 -1
- package/src/navigator-attendance.ts +2 -2
- package/src/package-contracts/worker-output.ts +0 -8
- package/src/packaged-role-registry.ts +4 -3
- package/src/public-cli/instruction-seat-run.ts +7 -8
- package/src/public-cli/invocation.ts +113 -351
- package/src/public-cli/option-definitions.ts +7 -7
- package/src/public-cli/post-admission.ts +12 -56
- package/src/public-cli/run-lifecycle.ts +11 -55
- package/src/public-role-summons.ts +1 -1
- package/src/role-run-placement.ts +0 -1
- package/src/role-run-relocation.ts +14 -25
- package/src/role-runtime-dependencies.ts +0 -2
- package/src/role-runtime.ts +0 -16
- package/src/worker-role.ts +11 -78
- package/dist/package-contracts/fixer-packet.js +0 -77
- package/packets/fixer-prerequisites.json +0 -6
- package/src/package-contracts/fixer-packet.ts +0 -91
|
@@ -13,26 +13,18 @@ import {
|
|
|
13
13
|
type FixerOutput,
|
|
14
14
|
type FixerPhase,
|
|
15
15
|
} from "./fixer-output.ts";
|
|
16
|
-
import { fixerPrerequisiteSchema, fixerPrerequisitesSchema, parseFixerPrerequisites, validateFixerPrerequisites } from "./fixer-packet.ts";
|
|
17
|
-
import type { FixerInvocationInput, FixerPrerequisite } from "./fixer-packet.ts";
|
|
18
16
|
import { withTerminatingOutputDeclarations } from "./terminating-infrastructure.ts";
|
|
19
17
|
|
|
20
18
|
export {
|
|
21
19
|
FIXER_OUTPUT_TOOL_NAME,
|
|
22
20
|
fixerOutputSchema,
|
|
23
21
|
validateFixerOutput,
|
|
24
|
-
fixerPrerequisiteSchema,
|
|
25
|
-
fixerPrerequisitesSchema,
|
|
26
|
-
parseFixerPrerequisites,
|
|
27
|
-
validateFixerPrerequisites,
|
|
28
22
|
};
|
|
29
23
|
export type {
|
|
30
24
|
FixerBlocker,
|
|
31
25
|
FixerClassResult,
|
|
32
26
|
FixerOutput,
|
|
33
27
|
FixerPhase,
|
|
34
|
-
FixerInvocationInput,
|
|
35
|
-
FixerPrerequisite,
|
|
36
28
|
};
|
|
37
29
|
|
|
38
30
|
export const CODER_OUTPUT_TOOL_NAME = "ak_coder_output";
|
|
@@ -115,10 +115,10 @@ export const PUBLIC_ROLE_RECORDS = [
|
|
|
115
115
|
reportPhase: true,
|
|
116
116
|
},
|
|
117
117
|
boardPlacement: "marshal",
|
|
118
|
+
/** #1168: dispatch is first message; navigator reads admitted instruction. */
|
|
119
|
+
navigatorSubject: "public-instruction",
|
|
118
120
|
activationFlags: [
|
|
119
|
-
{ field: "packetPath", flag: "ak-fix-packet", binds: "input" },
|
|
120
121
|
{ field: "phase", flag: "ak-fixer-phase", binds: "phase" },
|
|
121
|
-
{ field: "prerequisitesPath", flag: "ak-fixer-prerequisites" },
|
|
122
122
|
],
|
|
123
123
|
activationStage: "load-and-install",
|
|
124
124
|
sessionMaterials: [
|
|
@@ -145,8 +145,9 @@ export const PUBLIC_ROLE_RECORDS = [
|
|
|
145
145
|
artifactFace: {
|
|
146
146
|
reportPhase: true,
|
|
147
147
|
},
|
|
148
|
+
/** #1168: dispatch is first message; navigator reads admitted instruction. */
|
|
149
|
+
navigatorSubject: "public-instruction",
|
|
148
150
|
activationFlags: [
|
|
149
|
-
{ field: "taskPath", flag: "ak-coder-task", binds: "input" },
|
|
150
151
|
{ field: "phase", flag: "ak-coder-phase", binds: "phase" },
|
|
151
152
|
],
|
|
152
153
|
activationStage: "load-and-install",
|
|
@@ -48,7 +48,6 @@ import {
|
|
|
48
48
|
recordAdmittedCorrelation,
|
|
49
49
|
recordChildDiaristRun,
|
|
50
50
|
relocateAdmittedRunToTicket,
|
|
51
|
-
withPreparedAttachments,
|
|
52
51
|
type AdmittedCountersignInvocation,
|
|
53
52
|
type AdmittedRoleInvocation,
|
|
54
53
|
type PublicSeatParse,
|
|
@@ -618,7 +617,7 @@ async function runCountersignBody(
|
|
|
618
617
|
summons: {
|
|
619
618
|
sourceRunPath: gateParentRunPath,
|
|
620
619
|
instruction: resumeInstruction,
|
|
621
|
-
instructionEmpty: resumeInstruction.
|
|
620
|
+
instructionEmpty: resumeInstruction.length === 0,
|
|
622
621
|
},
|
|
623
622
|
});
|
|
624
623
|
if (resumed != null) return resumed;
|
|
@@ -634,12 +633,12 @@ async function runCountersignBody(
|
|
|
634
633
|
}
|
|
635
634
|
|
|
636
635
|
try {
|
|
637
|
-
|
|
636
|
+
{
|
|
638
637
|
const materializeAdmission = async (ticketNumber?: number): Promise<void> => {
|
|
639
638
|
await materializeCountersignInvocation(admitted, {
|
|
640
639
|
home: env.home,
|
|
641
640
|
principalAuthority: env.principalAuthority,
|
|
642
|
-
|
|
641
|
+
attachmentPaths: parsed.attachmentPaths ?? [],
|
|
643
642
|
...(env.model === undefined ? {} : { model: env.model }),
|
|
644
643
|
...(ticketNumber === undefined ? {} : { ticketNumber }),
|
|
645
644
|
});
|
|
@@ -676,7 +675,7 @@ async function runCountersignBody(
|
|
|
676
675
|
});
|
|
677
676
|
await relocateAdmittedRunToTicket(admitted, env.principalAuthority);
|
|
678
677
|
return result;
|
|
679
|
-
}
|
|
678
|
+
}
|
|
680
679
|
} catch (error) {
|
|
681
680
|
const rejected = usageExit(error, io);
|
|
682
681
|
if (rejected !== undefined) return rejected;
|
|
@@ -749,7 +748,7 @@ export async function runPublicInstructionSeat(
|
|
|
749
748
|
const summons: SameTicketSummonsMaterials = {
|
|
750
749
|
...sameParentInstruction(env, {
|
|
751
750
|
instruction: parsed.instruction ?? "",
|
|
752
|
-
instructionEmpty: (parsed.instruction ?? "").
|
|
751
|
+
instructionEmpty: (parsed.instruction ?? "").length === 0,
|
|
753
752
|
}),
|
|
754
753
|
attachmentPaths: parsed.attachmentPaths ?? [],
|
|
755
754
|
};
|
|
@@ -775,7 +774,7 @@ export async function runPublicInstructionSeat(
|
|
|
775
774
|
sourceRunPath: parentRunPath,
|
|
776
775
|
...sameParentInstruction(env, {
|
|
777
776
|
instruction: parsed.instruction ?? "",
|
|
778
|
-
instructionEmpty: (parsed.instruction ?? "").
|
|
777
|
+
instructionEmpty: (parsed.instruction ?? "").length === 0,
|
|
779
778
|
}),
|
|
780
779
|
attachmentPaths: parsed.attachmentPaths ?? [],
|
|
781
780
|
};
|
|
@@ -865,7 +864,7 @@ export async function runPublicInstructionSeat(
|
|
|
865
864
|
instruction: parsed.instruction ?? "",
|
|
866
865
|
projectRoot: admitted.projectRoot,
|
|
867
866
|
failureLabel: "secretariat unbound summons",
|
|
868
|
-
attachmentPaths: admitted.attachments.map((attachment) => attachment.
|
|
867
|
+
attachmentPaths: admitted.attachments.map((attachment) => attachment.path),
|
|
869
868
|
correlationId: admitted.runId,
|
|
870
869
|
}, env, io);
|
|
871
870
|
} catch (error) {
|