@basou/core 0.36.0 → 0.38.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.
- package/dist/index.d.ts +23 -9
- package/dist/index.js +542 -60
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/schemas/event.schema.json +16 -2
- package/schemas/session-import.schema.json +16 -2
package/dist/index.d.ts
CHANGED
|
@@ -422,9 +422,9 @@ declare const SessionImportPayloadSchema: z.ZodObject<{
|
|
|
422
422
|
source: z.ZodString;
|
|
423
423
|
prev_hash: z.ZodOptional<z.ZodString>;
|
|
424
424
|
type: z.ZodLiteral<"command_executed">;
|
|
425
|
-
command: z.ZodString
|
|
425
|
+
command: z.ZodNullable<z.ZodString>;
|
|
426
426
|
args: z.ZodArray<z.ZodString>;
|
|
427
|
-
cwd: z.ZodString
|
|
427
|
+
cwd: z.ZodNullable<z.ZodString>;
|
|
428
428
|
exit_code: z.ZodNullable<z.ZodNumber>;
|
|
429
429
|
signal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
430
430
|
received_signal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -669,8 +669,10 @@ type ClaudeTranscriptToPayloadOptions = {
|
|
|
669
669
|
* than mapping one-to-one:
|
|
670
670
|
*
|
|
671
671
|
* - `session_started` / `session_ended` from the first / last timestamped record.
|
|
672
|
-
* - `command_executed` from each `Bash` tool use, recorded as `
|
|
673
|
-
*
|
|
672
|
+
* - `command_executed` from each `Bash` tool use, recorded as `["-c", <cmd>]`
|
|
673
|
+
* with a NULL executor and a NULL outcome: the transcript carries the shell
|
|
674
|
+
* line and nothing about what ran it or how it ended (#191). Only `<cmd>`
|
|
675
|
+
* was observed; the `-c` is basou's framing of "this is a shell program".
|
|
674
676
|
* - `file_changed` from each `Edit` / `Write` / `NotebookEdit` tool use.
|
|
675
677
|
* - `decision_recorded` from each `AskUserQuestion` tool use, but ONLY when the
|
|
676
678
|
* recorded answer is a confirmed SELECTION — it exactly matches an option the
|
|
@@ -860,7 +862,10 @@ type CodexRolloutToPayloadOptions = {
|
|
|
860
862
|
* provenance-level events from the rollout's message-level records:
|
|
861
863
|
*
|
|
862
864
|
* - `session_started` / `session_ended` from the first / last timestamped record.
|
|
863
|
-
* - `command_executed` from each shell execution, recorded as `
|
|
865
|
+
* - `command_executed` from each shell execution, recorded as `["-c", <cmd>]`
|
|
866
|
+
* with a NULL executor: the rollout carries the shell line, never what ran
|
|
867
|
+
* it, and codex in fact runs through `/bin/zsh -lc` (#191). The `-c` is
|
|
868
|
+
* basou's framing of "this is a shell program"; only `<cmd>` was observed.
|
|
864
869
|
* Codex has written these two different ways, and BOTH are read (an operator's
|
|
865
870
|
* `~/.codex/sessions` holds a mix across a CLI upgrade):
|
|
866
871
|
* - one `function_call` named `exec_command` per command, with JSON
|
|
@@ -1153,9 +1158,9 @@ declare const CommandExecutedEventSchema: z.ZodObject<{
|
|
|
1153
1158
|
source: z.ZodString;
|
|
1154
1159
|
prev_hash: z.ZodOptional<z.ZodString>;
|
|
1155
1160
|
type: z.ZodLiteral<"command_executed">;
|
|
1156
|
-
command: z.ZodString
|
|
1161
|
+
command: z.ZodNullable<z.ZodString>;
|
|
1157
1162
|
args: z.ZodArray<z.ZodString>;
|
|
1158
|
-
cwd: z.ZodString
|
|
1163
|
+
cwd: z.ZodNullable<z.ZodString>;
|
|
1159
1164
|
exit_code: z.ZodNullable<z.ZodNumber>;
|
|
1160
1165
|
signal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1161
1166
|
received_signal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1463,9 +1468,9 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1463
1468
|
source: z.ZodString;
|
|
1464
1469
|
prev_hash: z.ZodOptional<z.ZodString>;
|
|
1465
1470
|
type: z.ZodLiteral<"command_executed">;
|
|
1466
|
-
command: z.ZodString
|
|
1471
|
+
command: z.ZodNullable<z.ZodString>;
|
|
1467
1472
|
args: z.ZodArray<z.ZodString>;
|
|
1468
|
-
cwd: z.ZodString
|
|
1473
|
+
cwd: z.ZodNullable<z.ZodString>;
|
|
1469
1474
|
exit_code: z.ZodNullable<z.ZodNumber>;
|
|
1470
1475
|
signal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1471
1476
|
received_signal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -6051,6 +6056,15 @@ type ReviewGapUnit = {
|
|
|
6051
6056
|
* a self-reported gap is still a gap.
|
|
6052
6057
|
*/
|
|
6053
6058
|
selfReports: SelfReportedReview[];
|
|
6059
|
+
/**
|
|
6060
|
+
* How many of this unit's commits ran with no recorded exit code, so that the
|
|
6061
|
+
* commit landing is assumed rather than observed.
|
|
6062
|
+
*
|
|
6063
|
+
* A caveat, never an input to `verdict`: lowering the count would mean an
|
|
6064
|
+
* unverifiable commit could quietly leave the report, which is the same hole
|
|
6065
|
+
* a self-report must not open. `commitCount` still counts every commit.
|
|
6066
|
+
*/
|
|
6067
|
+
commitsWithUnobservedOutcome: number;
|
|
6054
6068
|
};
|
|
6055
6069
|
/** Recorded reviews that reached no unit of work, broken down by cause. */
|
|
6056
6070
|
type UnattachedSelfReports = {
|