@bluewombat/conductor 0.8.0 → 0.9.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.
@@ -1,7 +1,7 @@
1
1
  import type { CommandResult, WorkLedger } from "@bluewombat/work-ledger";
2
2
  import type { AuthorityPort, TransformerPort } from "../transformers/port.js";
3
3
  export type ConductorRefusalCode = "stable-missing" | "root-invalid" | "persist-failed" | "interrupted" | "isolate-failed" | "warm-failed" | "align-conflict" | "transformer-invalid" | "unavailable" | "not-found" | "point-of-no-return" | "project-busy" | "illegal-transition";
4
- /** Prepare a Feature workspace after Isolation — install deps, and so on. */
4
+ /** Prepare a Ticket workspace after Isolation — install deps, and so on. */
5
5
  export type WarmOutcome = "warmed" | "failed" | "interrupted" | "invalid-invocation";
6
6
  export type WarmPort = {
7
7
  prepare(input: {
@@ -33,20 +33,20 @@ export type OpenConductorOptions = {
33
33
  workspaceRoot: string;
34
34
  transformerDurationMs?: number;
35
35
  /**
36
- * The outside judge of a Submission. Absent: an assembled feature is folded
36
+ * The outside judge of a Submission. Absent: an assembled ticket is folded
37
37
  * into the work line directly, with nobody else asked.
38
38
  */
39
39
  authority?: AuthorityPort;
40
- /** The work line a Submission is offered to. Required with an Authority. */
40
+ /** The work line a Submission is offered to, unless the Ticket names its own `line`. Required with an Authority. */
41
41
  workLineTarget?: string;
42
42
  /** How many times the Authority may send the work back before it escalates. */
43
43
  maxRefusals?: number;
44
44
  /**
45
- * Whether a local judge decides if the assembled feature meets the
45
+ * Whether a local judge decides if the assembled ticket meets the
46
46
  * intention, before any Submission exists — or, without an Authority,
47
47
  * before the final fold. Absent or `false`: `assembly.validate` is not
48
48
  * declared, and `integrating` goes straight to offer (or the local judge on
49
- * `produce: false`), as before.
49
+ * `produce: false`).
50
50
  */
51
51
  assemblyValidate?: boolean;
52
52
  /**
@@ -57,16 +57,16 @@ export type OpenConductorOptions = {
57
57
  assemblyFixDeclared?: boolean;
58
58
  /**
59
59
  * Told at the moments a pass changes what an outsider would want to know:
60
- * the plan is in, a Subtask is integrated, the work is submitted. Awaited,
60
+ * the work is submitted. Awaited,
61
61
  * so what the caller says lands before the next step; what it throws is
62
62
  * its own problem and does not stop the run.
63
63
  */
64
64
  observe?: (moment: ConductorMoment) => Promise<void> | void;
65
65
  /**
66
- * Prepare the Feature workspace once it exists, before any Subtask is
67
- * isolated from it. Absent: Subtasks inherit whatever Isolation left —
68
- * often a cold tree with no dependencies. Bounded by `durationMs`; retried
69
- * on the next `runProject` until it returns `warmed`.
66
+ * Prepare the workspace once it exists, before the Builder runs in it.
67
+ * Absent: the Builder gets whatever Isolation left — often a cold tree with
68
+ * no dependencies. Bounded by `durationMs`; retried on the next `runProject`
69
+ * until it returns `warmed`.
70
70
  */
71
71
  warm?: WarmPort & {
72
72
  durationMs: number;
@@ -74,15 +74,6 @@ export type OpenConductorOptions = {
74
74
  };
75
75
  /** One thing that happened inside a pass, for whoever is watching from outside. */
76
76
  export type ConductorMoment = {
77
- kind: "planned";
78
- key: string;
79
- } | {
80
- kind: "subtask-integrated";
81
- key: string;
82
- subtaskId: string;
83
- integrated: number;
84
- total: number;
85
- } | {
86
77
  kind: "submitted";
87
78
  key: string;
88
79
  reference: string;
@@ -94,8 +85,8 @@ export type Conductor = {
94
85
  runProject(project: string): Promise<ProjectRunResult>;
95
86
  cancel(key: string): Promise<CommandResult>;
96
87
  /**
97
- * Drop a held Subtask (or planning) without waiting for the bail clock.
98
- * Destroys the declared Subtask directory when one was recorded.
88
+ * Drop a held unit without waiting for the bail clock.
89
+ * Destroys the declared directory when one was recorded.
99
90
  */
100
91
  release(key: string): Promise<CommandResult>;
101
92
  };
@@ -1 +1 @@
1
- {"version":3,"file":"open-conductor.d.ts","sourceRoot":"","sources":["../../src/run/open-conductor.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,aAAa,EAIb,UAAU,EACX,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EACV,aAAa,EAGb,eAAe,EA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