@knpkv/herdr-coordinator 0.3.1 → 0.3.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/chat.d.ts +19 -9
- package/dist/chat.d.ts.map +1 -1
- package/dist/orchestrator-model.d.ts +47 -1
- package/dist/orchestrator-model.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/chat.d.ts
CHANGED
|
@@ -60,11 +60,20 @@ export declare const makeCoordinatorChat: (options: CoordinatorChatOptions) => E
|
|
|
60
60
|
readonly expiredAt?: number | null;
|
|
61
61
|
readonly status: "expired" | "failed" | "interrupted" | "pending_approval" | "queued" | "rejected" | "running" | "succeeded";
|
|
62
62
|
readonly payload: {
|
|
63
|
+
readonly kind: "nix.check";
|
|
64
|
+
} | {
|
|
65
|
+
readonly kind: "nix.apply";
|
|
66
|
+
readonly ref: string;
|
|
67
|
+
} | {
|
|
63
68
|
readonly kind: "agent.delegate";
|
|
64
69
|
readonly repository: string;
|
|
65
70
|
readonly prompt: string;
|
|
66
71
|
readonly mode: "consult" | "review" | "transition_summary" | "work";
|
|
67
72
|
readonly channel?: "coordinator_chat";
|
|
73
|
+
} | {
|
|
74
|
+
readonly kind: "agent.message";
|
|
75
|
+
readonly session: string;
|
|
76
|
+
readonly message: string;
|
|
68
77
|
} | {
|
|
69
78
|
readonly kind: "work.reconcile";
|
|
70
79
|
readonly repository: string;
|
|
@@ -190,16 +199,17 @@ export declare const makeCoordinatorChat: (options: CoordinatorChatOptions) => E
|
|
|
190
199
|
readonly expectedGoalEventId: string;
|
|
191
200
|
readonly expectedGoalUpdatedAt: number;
|
|
192
201
|
} | {
|
|
193
|
-
readonly kind: "
|
|
194
|
-
|
|
195
|
-
readonly
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
202
|
+
readonly kind: "work.abandon";
|
|
203
|
+
readonly goalId: string;
|
|
204
|
+
readonly owner: {
|
|
205
|
+
readonly id: string;
|
|
206
|
+
readonly name: string;
|
|
207
|
+
};
|
|
208
|
+
readonly reason: string;
|
|
209
|
+
readonly expectedGoalEventId: string;
|
|
210
|
+
readonly expectedGoalUpdatedAt: number;
|
|
199
211
|
} | {
|
|
200
|
-
readonly kind: "
|
|
201
|
-
readonly session: string;
|
|
202
|
-
readonly message: string;
|
|
212
|
+
readonly kind: "browser.mcp.recover";
|
|
203
213
|
};
|
|
204
214
|
readonly result: string | null;
|
|
205
215
|
readonly acceptedReceipt?: string | null;
|
package/dist/chat.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../src/chat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAa,MAAM,oBAAoB,CAAA;AACpF,OAAO,EAAS,MAAM,EAAE,MAAM,EAAkB,MAAM,QAAQ,CAAA;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,EAAoC,KAAK,WAAW,EAAyC,MAAM,YAAY,CAAA;AACtH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,MAAM,EAAE,iBAAiB,CAAA;IAClC,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAA;IAC5B,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;IACpC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;IACvC,QAAQ,CAAC,KAAK,EAAE,gBAAgB,CAAA;CACjC;AAyDD,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../src/chat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAa,MAAM,oBAAoB,CAAA;AACpF,OAAO,EAAS,MAAM,EAAE,MAAM,EAAkB,MAAM,QAAQ,CAAA;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,EAAoC,KAAK,WAAW,EAAyC,MAAM,YAAY,CAAA;AACtH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,MAAM,EAAE,iBAAiB,CAAA;IAClC,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAA;IAC5B,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;IACpC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;IACvC,QAAQ,CAAC,KAAK,EAAE,gBAAgB,CAAA;CACjC;AAyDD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA0F9B,CAAA;AAEF,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAA"}
|
|
@@ -206,6 +206,16 @@ export declare const OrchestratorCommand: Schema.Struct<{
|
|
|
206
206
|
readonly reason: Schema.String;
|
|
207
207
|
readonly expectedGoalEventId: Schema.String;
|
|
208
208
|
readonly expectedGoalUpdatedAt: Schema.Number;
|
|
209
|
+
}>, Schema.Struct<{
|
|
210
|
+
readonly kind: Schema.Literal<"work.abandon">;
|
|
211
|
+
readonly goalId: Schema.String;
|
|
212
|
+
readonly owner: Schema.Struct<{
|
|
213
|
+
readonly id: Schema.String;
|
|
214
|
+
readonly name: Schema.String;
|
|
215
|
+
}>;
|
|
216
|
+
readonly reason: Schema.String;
|
|
217
|
+
readonly expectedGoalEventId: Schema.String;
|
|
218
|
+
readonly expectedGoalUpdatedAt: Schema.Number;
|
|
209
219
|
}>]>, Schema.Struct<{
|
|
210
220
|
readonly kind: Schema.Literal<"browser.mcp.recover">;
|
|
211
221
|
}>]>;
|
|
@@ -474,6 +484,14 @@ export declare const OrchestratorDispatchActivation: Schema.Struct<{
|
|
|
474
484
|
readonly approvalJobId: Schema.String;
|
|
475
485
|
readonly approvalActor: Schema.String;
|
|
476
486
|
}>>;
|
|
487
|
+
readonly observedAdmission: Schema.optionalKey<Schema.Struct<{
|
|
488
|
+
readonly sessionId: Schema.String;
|
|
489
|
+
readonly workAssignment: Schema.String;
|
|
490
|
+
readonly baseHead: Schema.String;
|
|
491
|
+
readonly expectedAbsenceToken: Schema.String;
|
|
492
|
+
readonly actor: Schema.Literal<"reconciler">;
|
|
493
|
+
readonly observationId: Schema.String;
|
|
494
|
+
}>>;
|
|
477
495
|
readonly existingGoalRecovery: Schema.optionalKey<Schema.Struct<{
|
|
478
496
|
readonly sessionId: Schema.String;
|
|
479
497
|
readonly workAssignment: Schema.String;
|
|
@@ -573,6 +591,14 @@ export declare const OrchestratorDispatchActivated: Schema.Struct<{
|
|
|
573
591
|
readonly approvalJobId: Schema.String;
|
|
574
592
|
readonly approvalActor: Schema.String;
|
|
575
593
|
}>>;
|
|
594
|
+
readonly observedAdmission: Schema.optionalKey<Schema.Struct<{
|
|
595
|
+
readonly sessionId: Schema.String;
|
|
596
|
+
readonly workAssignment: Schema.String;
|
|
597
|
+
readonly baseHead: Schema.String;
|
|
598
|
+
readonly expectedAbsenceToken: Schema.String;
|
|
599
|
+
readonly actor: Schema.Literal<"reconciler">;
|
|
600
|
+
readonly observationId: Schema.String;
|
|
601
|
+
}>>;
|
|
576
602
|
readonly existingGoalRecovery: Schema.optionalKey<Schema.Struct<{
|
|
577
603
|
readonly sessionId: Schema.String;
|
|
578
604
|
readonly workAssignment: Schema.String;
|
|
@@ -642,7 +668,7 @@ export declare const OrchestratorDispatchActivated: Schema.Struct<{
|
|
|
642
668
|
readonly title: Schema.String;
|
|
643
669
|
readonly summary: Schema.String;
|
|
644
670
|
readonly detail: Schema.String;
|
|
645
|
-
readonly state: Schema.Literals<readonly ["planned", "working", "blocked", "review", "deployed", "completed"]>;
|
|
671
|
+
readonly state: Schema.Literals<readonly ["planned", "working", "blocked", "review", "deployed", "completed", "abandoned"]>;
|
|
646
672
|
readonly owner: Schema.Struct<{
|
|
647
673
|
readonly id: Schema.String;
|
|
648
674
|
readonly name: Schema.String;
|
|
@@ -868,6 +894,16 @@ export declare const OrchestratorRequest: Schema.Struct<{
|
|
|
868
894
|
readonly reason: Schema.String;
|
|
869
895
|
readonly expectedGoalEventId: Schema.String;
|
|
870
896
|
readonly expectedGoalUpdatedAt: Schema.Number;
|
|
897
|
+
}>, Schema.Struct<{
|
|
898
|
+
readonly kind: Schema.Literal<"work.abandon">;
|
|
899
|
+
readonly goalId: Schema.String;
|
|
900
|
+
readonly owner: Schema.Struct<{
|
|
901
|
+
readonly id: Schema.String;
|
|
902
|
+
readonly name: Schema.String;
|
|
903
|
+
}>;
|
|
904
|
+
readonly reason: Schema.String;
|
|
905
|
+
readonly expectedGoalEventId: Schema.String;
|
|
906
|
+
readonly expectedGoalUpdatedAt: Schema.Number;
|
|
871
907
|
}>]>, Schema.Struct<{
|
|
872
908
|
readonly kind: Schema.Literal<"browser.mcp.recover">;
|
|
873
909
|
}>]>;
|
|
@@ -1090,6 +1126,16 @@ export declare const OrchestratorPendingDispatch: Schema.Struct<{
|
|
|
1090
1126
|
readonly reason: Schema.String;
|
|
1091
1127
|
readonly expectedGoalEventId: Schema.String;
|
|
1092
1128
|
readonly expectedGoalUpdatedAt: Schema.Number;
|
|
1129
|
+
}>, Schema.Struct<{
|
|
1130
|
+
readonly kind: Schema.Literal<"work.abandon">;
|
|
1131
|
+
readonly goalId: Schema.String;
|
|
1132
|
+
readonly owner: Schema.Struct<{
|
|
1133
|
+
readonly id: Schema.String;
|
|
1134
|
+
readonly name: Schema.String;
|
|
1135
|
+
}>;
|
|
1136
|
+
readonly reason: Schema.String;
|
|
1137
|
+
readonly expectedGoalEventId: Schema.String;
|
|
1138
|
+
readonly expectedGoalUpdatedAt: Schema.Number;
|
|
1093
1139
|
}>]>, Schema.Struct<{
|
|
1094
1140
|
readonly kind: Schema.Literal<"browser.mcp.recover">;
|
|
1095
1141
|
}>]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrator-model.d.ts","sourceRoot":"","sources":["../src/orchestrator-model.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAgB/B,eAAO,MAAM,uBAAuB,eAGnC,CAAA;AACD,eAAO,MAAM,kBAAkB,eAG9B,CAAA;AAMD,eAAO,MAAM,iBAAiB,eAAgB,CAAA;AAC9C,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,IAAI,CAAA;AAE7D,eAAO,MAAM,sBAAsB,eAAa,CAAA;AAChD,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC,IAAI,CAAA;AAEvE,eAAO,MAAM,0BAA0B,eAAa,CAAA;AACpD,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,IAAI,CAAA;AAgC/E,wEAAwE;AACxE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;IAA0D,CAAA;AACxF,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,IAAI,CAAA;AAE7D,8EAA8E;AAC9E,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAchC,CAAA;AACD,MAAM,WAAW,oBAAqB,SAAQ,MAAM,C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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBvC,CAAA;AACD,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAC,IAAI,CAAA;AAEjF,eAAO,MAAM,mBAAmB;;;;;EAK9B,CAAA;AACF,MAAM,WAAW,mBAAoB,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,mBAAmB,CAAC;CAAG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knpkv/herdr-coordinator",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Persistent coordinator chat contracts for Herdr fleet jobs",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "knpkv",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"@effect/platform-node": "4.0.0",
|
|
38
38
|
"@effect/sql-sqlite-node": "4.0.0",
|
|
39
39
|
"effect": "4.0.0",
|
|
40
|
-
"@knpkv/herdr-fleet": "^0.
|
|
41
|
-
"@knpkv/herdr-work": "^0.
|
|
40
|
+
"@knpkv/herdr-fleet": "^0.6.0",
|
|
41
|
+
"@knpkv/herdr-work": "^0.6.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@effect/vitest": "4.0.0",
|