@hearsay-tools/squawk 0.18.0-pr3446.6039 → 0.18.0-pr3448.6045
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/delegation/routes.d.ts +77 -77
- package/dist/delegation/transport.d.ts +17 -17
- package/dist/git-worktree.d.ts +52 -0
- package/dist/git-worktree.js +374 -2
- package/dist/git-worktree.js.map +1 -1
- package/dist/project-migration/live.js +1 -1
- package/dist/project-migration/live.js.map +1 -1
- package/dist/runs/live-tasks.d.ts +10 -0
- package/dist/runs/live-tasks.js +33 -0
- package/dist/runs/live-tasks.js.map +1 -0
- package/dist/serve-command.js +1 -0
- package/dist/serve-command.js.map +1 -1
- package/dist/server/forge/draft-pr.js +1 -1
- package/dist/server/forge/draft-pr.js.map +1 -1
- package/dist/server/live-routes.d.ts +6 -6
- package/dist/server/project-context.d.ts +7 -10
- package/dist/server/project-context.js +8 -36
- package/dist/server/project-context.js.map +1 -1
- package/dist/server/server.d.ts +10 -8
- package/dist/server/server.js +4 -5
- package/dist/server/server.js.map +1 -1
- package/dist/server/start-run-options.d.ts +2 -1
- package/dist/server/start-run-options.js +1 -1
- package/dist/server/start-run-options.js.map +1 -1
- package/dist/server/workspace-projects.d.ts +1 -1
- package/dist/server/workspace-projects.js +1 -0
- package/dist/server/workspace-projects.js.map +1 -1
- package/dist/workflows/run/continuation-session.d.ts +1 -1
- package/dist/workflows/run/run-settlement.d.ts +1 -1
- package/dist/workflows/run/run-settlement.js.map +1 -1
- package/dist/workflows/run/worktree-autosave.d.ts +1 -1
- package/dist/workflows/run/worktree-autosave.js +1 -1
- package/dist/workflows/run/worktree-autosave.js.map +1 -1
- package/package.json +4 -4
- package/scripts/benchmark-run-store.ts +2 -1
- package/scripts/benchmark-workspace-events.ts +2 -1
- package/scripts/measure-transcript-facts-health.mjs +2 -1
- package/web/dist/assets/activity-motion-Dld5ms7x.js +2 -0
- package/web/dist/assets/{activity-route-DQI_8J09.js → activity-route-CNZPeNfz.js} +1 -1
- package/web/dist/assets/{agent-accounts-C6eyz75V.js → agent-accounts-B-Gpf8IN.js} +1 -1
- package/web/dist/assets/attention-VmnPpwJx.js +1 -0
- package/web/dist/assets/{commit-diff-panel-C7BUSPzE.js → commit-diff-panel-NClCG68F.js} +1 -1
- package/web/dist/assets/control-locations-B88tMDqg.js +1 -0
- package/web/dist/assets/diff-nIehE-T6.js +3 -0
- package/web/dist/assets/{diff-view-B9kgeZTm.js → diff-view-DcvEkA3I.js} +1 -1
- package/web/dist/assets/{file-preview-DrXgM1-S.js → file-preview-D5OEhi_p.js} +1 -1
- package/web/dist/assets/{git-toolbar-B1gOn_1U.js → git-toolbar-6nOTPb_C.js} +1 -1
- package/web/dist/assets/github-kqE3kY6l.js +1 -0
- package/web/dist/assets/github-sidebar-model-DkUAF09l.js +1 -0
- package/web/dist/assets/{global-activity-route-CZ_xwiz3.js → global-activity-route-BExanylS.js} +1 -1
- package/web/dist/assets/{index-75IttVLX.js → index-DBNT3CYH.js} +11 -11
- package/web/dist/assets/live-refetch-CZb2VOyu.js +1 -0
- package/web/dist/assets/popover-G6KGT-qq.js +1 -0
- package/web/dist/assets/{preview-pane-connected-Cx8q-Yrh.js → preview-pane-connected-BN0BWrKD.js} +1 -1
- package/web/dist/assets/queries-D2MPDhtr.js +1 -0
- package/web/dist/assets/repo-git-CPEbNCTy.js +1 -0
- package/web/dist/assets/{report-reader-CeBtx_Sf.js → report-reader-Ltc8JdIV.js} +1 -1
- package/web/dist/assets/{reports-CRPxIRMM.js → reports-DHuR8gwU.js} +1 -1
- package/web/dist/assets/run-header-BDtR-uVy.js +2 -0
- package/web/dist/assets/{skills-DDoJCcmD.js → skills-DTowIB5z.js} +1 -1
- package/web/dist/assets/task-changes-NqJ_-tod.js +1 -0
- package/web/dist/assets/task-commits-BbhrfhCT.js +1 -0
- package/web/dist/assets/{task-files-CkPJZE0w.js → task-files-n29-eIMD.js} +1 -1
- package/web/dist/assets/task-github-item-BwS8ltjs.js +1 -0
- package/web/dist/assets/task-thread-DkF28KyV.js +9 -0
- package/web/dist/assets/{thread-state-BtmIMbkZ.js → thread-state-C8XI1WNf.js} +1 -1
- package/web/dist/assets/use-hand-to-agent-state-CY43kvaa.js +1 -0
- package/web/dist/assets/workflows-CWFMDlCn.js +7 -0
- package/web/dist/index.html +10 -9
- package/dist/autosave-commit.d.ts +0 -52
- package/dist/autosave-commit.js +0 -378
- package/dist/autosave-commit.js.map +0 -1
- package/web/dist/assets/activity-motion-Bqd8S9Xy.js +0 -2
- package/web/dist/assets/control-locations-DlrUP5vD.js +0 -1
- package/web/dist/assets/diff-Bwy0qFul.js +0 -3
- package/web/dist/assets/github-g-ZOTwHQ.js +0 -1
- package/web/dist/assets/github-sidebar-model-BdoLA7qT.js +0 -1
- package/web/dist/assets/live-refetch-pzhdhNS_.js +0 -1
- package/web/dist/assets/popover-N-u5z2xh.js +0 -1
- package/web/dist/assets/queries-BtScxiQP.js +0 -1
- package/web/dist/assets/repo-git-DgZuI4FP.js +0 -1
- package/web/dist/assets/run-header-C8Eeonkx.js +0 -2
- package/web/dist/assets/task-changes-XAcKfebn.js +0 -1
- package/web/dist/assets/task-commits-D5V0Q0au.js +0 -1
- package/web/dist/assets/task-github-item-CbCOKkvp.js +0 -1
- package/web/dist/assets/task-thread-DyR8HsDz.js +0 -9
- package/web/dist/assets/use-hand-to-agent-state-BUpbMYM9.js +0 -1
- package/web/dist/assets/workflows-CEFtJj_h.js +0 -7
|
@@ -27,18 +27,6 @@ export declare function delegationFailure(error: unknown): {
|
|
|
27
27
|
export declare function createDelegationRoutes(service: DelegationService, credentials: CredentialRegistry): import("hono/hono-base").HonoBase<Env, {
|
|
28
28
|
"/list": {
|
|
29
29
|
$get: {
|
|
30
|
-
output: {
|
|
31
|
-
error: string;
|
|
32
|
-
code?: "invalid_input" | undefined;
|
|
33
|
-
};
|
|
34
|
-
outputFormat: "json";
|
|
35
|
-
status: 400;
|
|
36
|
-
input: {
|
|
37
|
-
query: {
|
|
38
|
-
offset?: string | undefined;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
} | {
|
|
42
30
|
output: {
|
|
43
31
|
workers: {
|
|
44
32
|
workerId: string;
|
|
@@ -76,23 +64,24 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
76
64
|
offset?: string | undefined;
|
|
77
65
|
};
|
|
78
66
|
};
|
|
67
|
+
} | {
|
|
68
|
+
output: {
|
|
69
|
+
error: string;
|
|
70
|
+
code?: "invalid_input" | undefined;
|
|
71
|
+
};
|
|
72
|
+
outputFormat: "json";
|
|
73
|
+
status: 400;
|
|
74
|
+
input: {
|
|
75
|
+
query: {
|
|
76
|
+
offset?: string | undefined;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
79
|
};
|
|
80
80
|
};
|
|
81
81
|
} & {
|
|
82
82
|
"/discover": {
|
|
83
83
|
$post: {
|
|
84
84
|
output: {
|
|
85
|
-
runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
|
|
86
|
-
models: {
|
|
87
|
-
id: string;
|
|
88
|
-
label: string;
|
|
89
|
-
description: string;
|
|
90
|
-
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
91
|
-
}[];
|
|
92
|
-
source: "cache" | "live" | "unavailable";
|
|
93
|
-
stale: boolean;
|
|
94
|
-
reason?: string | undefined;
|
|
95
|
-
} | {
|
|
96
85
|
scope: "host-default-account";
|
|
97
86
|
runners: {
|
|
98
87
|
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
@@ -113,6 +102,17 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
113
102
|
reason?: string | undefined;
|
|
114
103
|
}[];
|
|
115
104
|
nextOffset?: number | undefined;
|
|
105
|
+
} | {
|
|
106
|
+
runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
|
|
107
|
+
models: {
|
|
108
|
+
id: string;
|
|
109
|
+
label: string;
|
|
110
|
+
description: string;
|
|
111
|
+
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
112
|
+
}[];
|
|
113
|
+
source: "cache" | "live" | "unavailable";
|
|
114
|
+
stale: boolean;
|
|
115
|
+
reason?: string | undefined;
|
|
116
116
|
};
|
|
117
117
|
outputFormat: "json";
|
|
118
118
|
status: 200;
|
|
@@ -221,13 +221,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
221
221
|
status: 200;
|
|
222
222
|
input: {
|
|
223
223
|
json: {
|
|
224
|
-
workerIds: string[];
|
|
225
|
-
timeoutSeconds?: number | undefined;
|
|
226
|
-
mode?: "all" | "any" | "one" | undefined;
|
|
227
|
-
} | {
|
|
228
224
|
requestIds: string[];
|
|
229
225
|
mode?: "all" | "any" | "one" | undefined;
|
|
230
226
|
timeoutSeconds?: number | undefined;
|
|
227
|
+
} | {
|
|
228
|
+
workerIds: string[];
|
|
229
|
+
timeoutSeconds?: number | undefined;
|
|
230
|
+
mode?: "all" | "any" | "one" | undefined;
|
|
231
231
|
} | {
|
|
232
232
|
peerIds: string[];
|
|
233
233
|
timeoutSeconds?: number | undefined;
|
|
@@ -613,18 +613,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
613
613
|
} & {
|
|
614
614
|
"/:workerId": {
|
|
615
615
|
$get: {
|
|
616
|
-
output: {
|
|
617
|
-
error: string;
|
|
618
|
-
code?: "invalid_input" | undefined;
|
|
619
|
-
};
|
|
620
|
-
outputFormat: "json";
|
|
621
|
-
status: 400;
|
|
622
|
-
input: {
|
|
623
|
-
param: {
|
|
624
|
-
workerId: string;
|
|
625
|
-
};
|
|
626
|
-
};
|
|
627
|
-
} | {
|
|
628
616
|
output: {
|
|
629
617
|
workerId: string;
|
|
630
618
|
parentRunId: string;
|
|
@@ -728,11 +716,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
728
716
|
workerId: string;
|
|
729
717
|
};
|
|
730
718
|
};
|
|
731
|
-
}
|
|
732
|
-
};
|
|
733
|
-
} & {
|
|
734
|
-
"/:workerId/collect": {
|
|
735
|
-
$post: {
|
|
719
|
+
} | {
|
|
736
720
|
output: {
|
|
737
721
|
error: string;
|
|
738
722
|
code?: "invalid_input" | undefined;
|
|
@@ -743,10 +727,12 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
743
727
|
param: {
|
|
744
728
|
workerId: string;
|
|
745
729
|
};
|
|
746
|
-
} & {
|
|
747
|
-
json: Record<string, never>;
|
|
748
730
|
};
|
|
749
|
-
}
|
|
731
|
+
};
|
|
732
|
+
};
|
|
733
|
+
} & {
|
|
734
|
+
"/:workerId/collect": {
|
|
735
|
+
$post: {
|
|
750
736
|
output: {
|
|
751
737
|
workerId: string;
|
|
752
738
|
parentRunId: string;
|
|
@@ -848,11 +834,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
848
834
|
} & {
|
|
849
835
|
json: Record<string, never>;
|
|
850
836
|
};
|
|
851
|
-
}
|
|
852
|
-
};
|
|
853
|
-
} & {
|
|
854
|
-
"/:workerId/steer": {
|
|
855
|
-
$post: {
|
|
837
|
+
} | {
|
|
856
838
|
output: {
|
|
857
839
|
error: string;
|
|
858
840
|
code?: "invalid_input" | undefined;
|
|
@@ -864,11 +846,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
864
846
|
workerId: string;
|
|
865
847
|
};
|
|
866
848
|
} & {
|
|
867
|
-
json:
|
|
868
|
-
text: string;
|
|
869
|
-
};
|
|
849
|
+
json: Record<string, never>;
|
|
870
850
|
};
|
|
871
|
-
}
|
|
851
|
+
};
|
|
852
|
+
};
|
|
853
|
+
} & {
|
|
854
|
+
"/:workerId/steer": {
|
|
855
|
+
$post: {
|
|
872
856
|
output: {
|
|
873
857
|
workerId: string;
|
|
874
858
|
state: "delivered" | "queued";
|
|
@@ -884,11 +868,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
884
868
|
text: string;
|
|
885
869
|
};
|
|
886
870
|
};
|
|
887
|
-
}
|
|
888
|
-
};
|
|
889
|
-
} & {
|
|
890
|
-
"/:workerId/stop": {
|
|
891
|
-
$post: {
|
|
871
|
+
} | {
|
|
892
872
|
output: {
|
|
893
873
|
error: string;
|
|
894
874
|
code?: "invalid_input" | undefined;
|
|
@@ -900,9 +880,15 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
900
880
|
workerId: string;
|
|
901
881
|
};
|
|
902
882
|
} & {
|
|
903
|
-
json:
|
|
883
|
+
json: {
|
|
884
|
+
text: string;
|
|
885
|
+
};
|
|
904
886
|
};
|
|
905
|
-
}
|
|
887
|
+
};
|
|
888
|
+
};
|
|
889
|
+
} & {
|
|
890
|
+
"/:workerId/stop": {
|
|
891
|
+
$post: {
|
|
906
892
|
output: {
|
|
907
893
|
workerId: string;
|
|
908
894
|
state: "stopping" | "terminated";
|
|
@@ -916,11 +902,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
916
902
|
} & {
|
|
917
903
|
json: Record<string, never>;
|
|
918
904
|
};
|
|
919
|
-
}
|
|
920
|
-
};
|
|
921
|
-
} & {
|
|
922
|
-
"/:workerId/destroy": {
|
|
923
|
-
$post: {
|
|
905
|
+
} | {
|
|
924
906
|
output: {
|
|
925
907
|
error: string;
|
|
926
908
|
code?: "invalid_input" | undefined;
|
|
@@ -934,7 +916,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
934
916
|
} & {
|
|
935
917
|
json: Record<string, never>;
|
|
936
918
|
};
|
|
937
|
-
}
|
|
919
|
+
};
|
|
920
|
+
};
|
|
921
|
+
} & {
|
|
922
|
+
"/:workerId/destroy": {
|
|
923
|
+
$post: {
|
|
938
924
|
output: {
|
|
939
925
|
workerId: string;
|
|
940
926
|
state: "complete" | "incomplete";
|
|
@@ -957,6 +943,20 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
957
943
|
} & {
|
|
958
944
|
json: Record<string, never>;
|
|
959
945
|
};
|
|
946
|
+
} | {
|
|
947
|
+
output: {
|
|
948
|
+
error: string;
|
|
949
|
+
code?: "invalid_input" | undefined;
|
|
950
|
+
};
|
|
951
|
+
outputFormat: "json";
|
|
952
|
+
status: 400;
|
|
953
|
+
input: {
|
|
954
|
+
param: {
|
|
955
|
+
workerId: string;
|
|
956
|
+
};
|
|
957
|
+
} & {
|
|
958
|
+
json: Record<string, never>;
|
|
959
|
+
};
|
|
960
960
|
} | {
|
|
961
961
|
output: {
|
|
962
962
|
workerId: string;
|
|
@@ -986,11 +986,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
986
986
|
"/:workerId/diff": {
|
|
987
987
|
$get: {
|
|
988
988
|
output: {
|
|
989
|
-
|
|
990
|
-
|
|
989
|
+
workerId: string;
|
|
990
|
+
baselineSha: string;
|
|
991
|
+
diff: string;
|
|
992
|
+
truncated: boolean;
|
|
991
993
|
};
|
|
992
994
|
outputFormat: "json";
|
|
993
|
-
status:
|
|
995
|
+
status: 200;
|
|
994
996
|
input: {
|
|
995
997
|
param: {
|
|
996
998
|
workerId: string;
|
|
@@ -998,13 +1000,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
998
1000
|
};
|
|
999
1001
|
} | {
|
|
1000
1002
|
output: {
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
diff: string;
|
|
1004
|
-
truncated: boolean;
|
|
1003
|
+
error: string;
|
|
1004
|
+
code?: "invalid_input" | undefined;
|
|
1005
1005
|
};
|
|
1006
1006
|
outputFormat: "json";
|
|
1007
|
-
status:
|
|
1007
|
+
status: 400;
|
|
1008
1008
|
input: {
|
|
1009
1009
|
param: {
|
|
1010
1010
|
workerId: string;
|
|
@@ -57,17 +57,16 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
57
57
|
"/discover": {
|
|
58
58
|
$post: {
|
|
59
59
|
output: {
|
|
60
|
-
|
|
60
|
+
runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
|
|
61
|
+
models: {
|
|
61
62
|
id: string;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
attention: "error" | "none" | "permission" | "running" | "unseen" | "waiting";
|
|
66
|
-
attentionLabel: string;
|
|
67
|
-
accepts: boolean;
|
|
68
|
-
reason?: string | undefined;
|
|
63
|
+
label: string;
|
|
64
|
+
description: string;
|
|
65
|
+
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
69
66
|
}[];
|
|
70
|
-
|
|
67
|
+
source: "cache" | "live" | "unavailable";
|
|
68
|
+
stale: boolean;
|
|
69
|
+
reason?: string | undefined;
|
|
71
70
|
} | {
|
|
72
71
|
scope: "host-default-account";
|
|
73
72
|
runners: {
|
|
@@ -78,16 +77,17 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
78
77
|
runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
|
|
79
78
|
}[];
|
|
80
79
|
} | {
|
|
81
|
-
|
|
82
|
-
models: {
|
|
80
|
+
tasks: {
|
|
83
81
|
id: string;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
82
|
+
title: string;
|
|
83
|
+
runner?: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi" | undefined;
|
|
84
|
+
status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
|
|
85
|
+
attention: "error" | "none" | "permission" | "running" | "unseen" | "waiting";
|
|
86
|
+
attentionLabel: string;
|
|
87
|
+
accepts: boolean;
|
|
88
|
+
reason?: string | undefined;
|
|
87
89
|
}[];
|
|
88
|
-
|
|
89
|
-
stale: boolean;
|
|
90
|
-
reason?: string | undefined;
|
|
90
|
+
nextOffset?: number | undefined;
|
|
91
91
|
};
|
|
92
92
|
outputFormat: "json";
|
|
93
93
|
status: 200;
|
package/dist/git-worktree.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type AutosaveOptions } from './autosave-git.ts';
|
|
1
2
|
import { type LiveIndexCheck, type DiffRefusal } from './git-private-index.ts';
|
|
2
3
|
/** One worktree per task (spec 006). Only createWorktree throws; its caller reports failure. */
|
|
3
4
|
export declare const DIFF_CAP = 400000;
|
|
@@ -49,6 +50,57 @@ export type RemoveWorktreeOptions = {
|
|
|
49
50
|
assertCurrent?: () => void;
|
|
50
51
|
};
|
|
51
52
|
export declare function removeWorktree(repoRoot: string, worktreePath: string, branch?: string, opts?: RemoveWorktreeOptions): Promise<void>;
|
|
53
|
+
/**
|
|
54
|
+
* Autosave reason. Only periodic saves are opt-in. Turn-end, finalization and timer saves
|
|
55
|
+
* require the task branch; pre-PR saves follow current HEAD.
|
|
56
|
+
*/
|
|
57
|
+
export type AutosaveReason = 'periodic' | 'turn end' | 'run finalize' | 'pre-PR';
|
|
58
|
+
/**
|
|
59
|
+
* Structured autosave outcome. Pre-PR must report refused/failed saves. A task-branch mismatch
|
|
60
|
+
* skips; an unfinished merge, cherry-pick or revert refuses a guarded save.
|
|
61
|
+
*/
|
|
62
|
+
export type AutosaveResult = 'committed' | 'nothing-to-do' | 'refused' | 'failed' | 'skipped';
|
|
63
|
+
/**
|
|
64
|
+
* The facts behind a `committed` or `skipped` save, for the caller's report
|
|
65
|
+
* (hearsay-tools/cezarion#1004). `branch` is HEAD's branch name, `null` on a
|
|
66
|
+
* detached HEAD; `sha` is the short hash of the autosave commit, `null` when
|
|
67
|
+
* the commit landed but its hash could not be read back.
|
|
68
|
+
*/
|
|
69
|
+
export type AutosaveOutcome = {
|
|
70
|
+
result: 'committed';
|
|
71
|
+
sha: string | null;
|
|
72
|
+
branch: string | null;
|
|
73
|
+
} | {
|
|
74
|
+
result: 'skipped';
|
|
75
|
+
branch: string | null;
|
|
76
|
+
changedPaths: number;
|
|
77
|
+
};
|
|
78
|
+
export interface AutosaveCommitOptions extends AutosaveOptions {
|
|
79
|
+
/** The task's own branch (`cez/<id8>`). Given, the save commits only while HEAD is
|
|
80
|
+
* `refs/heads/<taskBranch>`, and writes that ref by compare-and-swap; on any other
|
|
81
|
+
* branch or a detached HEAD it returns `skipped` and leaves the working tree alone,
|
|
82
|
+
* and the index too unless HEAD moves while it saves. */
|
|
83
|
+
taskBranch?: string;
|
|
84
|
+
/** Receives the facts behind a `committed` or `skipped` result. Never called otherwise. */
|
|
85
|
+
onOutcome?: (outcome: AutosaveOutcome) => void;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Stage and commit everything in the worktree as a "cezar autosave" commit
|
|
89
|
+
* (janitor pattern) — the agent's progress is recoverable from the `cez/<id8>`
|
|
90
|
+
* branch history. Quietly a no-op when nothing changed. With `taskBranch`, a
|
|
91
|
+
* worktree whose HEAD the agent moved to another branch (or detached) is left
|
|
92
|
+
* uncommitted instead: an autosave commit there lands in the agent's own PR
|
|
93
|
+
* history (hearsay-tools/cezarion#1004).
|
|
94
|
+
*
|
|
95
|
+
* The message carries `reason` so the opt-in periodic timer and the always-on
|
|
96
|
+
* flushes are distinguishable in `git log`; the `cezar autosave` prefix is kept
|
|
97
|
+
* so existing log greps still match.
|
|
98
|
+
*
|
|
99
|
+
* Refuses to commit a worktree that is mid-merge or still carries conflict
|
|
100
|
+
* markers: the incident behind #471 was an autosave capturing a half-resolved
|
|
101
|
+
* merge, and a blind `git add -A` would do it again.
|
|
102
|
+
*/
|
|
103
|
+
export declare function autosaveCommit(dir: string, reason: AutosaveReason, options?: AutosaveCommitOptions): Promise<AutosaveResult>;
|
|
52
104
|
/**
|
|
53
105
|
* Whole-branch committed, uncommitted and untracked diff against the merge-base. Preserve this
|
|
54
106
|
* anchor for the protected text endpoint and conservative settlement checks.
|