@basou/core 0.41.0 → 0.42.1
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 +203 -19
- package/dist/index.js +496 -337
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/schemas/event.schema.json +18 -7
- package/schemas/retired/0.1.0/event.schema.json +1477 -0
- package/schemas/session-import.schema.json +20 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://basou.dev/schemas/0.
|
|
3
|
+
"$id": "https://basou.dev/schemas/0.2.0/event.schema.json",
|
|
4
4
|
"title": "Basou Event",
|
|
5
5
|
"description": "One line of a `.basou/sessions/<id>/events.jsonl` stream (a discriminated union over the event `type`).",
|
|
6
6
|
"oneOf": [
|
|
@@ -448,7 +448,8 @@
|
|
|
448
448
|
{
|
|
449
449
|
"type": "null"
|
|
450
450
|
}
|
|
451
|
-
]
|
|
451
|
+
],
|
|
452
|
+
"description": "Spawned executable name. null means basou did not observe the executor - not a default, and not a benign value."
|
|
452
453
|
},
|
|
453
454
|
"args": {
|
|
454
455
|
"type": "array",
|
|
@@ -464,7 +465,8 @@
|
|
|
464
465
|
{
|
|
465
466
|
"type": "null"
|
|
466
467
|
}
|
|
467
|
-
]
|
|
468
|
+
],
|
|
469
|
+
"description": "Working directory the command ran in. null means the directory could not be resolved; it is never the session's directory as a fallback."
|
|
468
470
|
},
|
|
469
471
|
"exit_code": {
|
|
470
472
|
"anyOf": [
|
|
@@ -476,7 +478,8 @@
|
|
|
476
478
|
{
|
|
477
479
|
"type": "null"
|
|
478
480
|
}
|
|
479
|
-
]
|
|
481
|
+
],
|
|
482
|
+
"description": "Child exit code. null means the outcome is unknown (signal-terminated, or never recorded by the source). null is not success."
|
|
480
483
|
},
|
|
481
484
|
"signal": {
|
|
482
485
|
"anyOf": [
|
|
@@ -499,9 +502,17 @@
|
|
|
499
502
|
]
|
|
500
503
|
},
|
|
501
504
|
"duration_ms": {
|
|
502
|
-
"
|
|
503
|
-
|
|
504
|
-
|
|
505
|
+
"anyOf": [
|
|
506
|
+
{
|
|
507
|
+
"type": "integer",
|
|
508
|
+
"minimum": 0,
|
|
509
|
+
"maximum": 9007199254740991
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"type": "null"
|
|
513
|
+
}
|
|
514
|
+
],
|
|
515
|
+
"description": "Observed duration in milliseconds, or null when no duration was observed. Read 0 as unobserved too, on any version: a spawned process cannot run in under half a millisecond, and under schema_version 0.1.0 a writer with nothing to report stored 0 as the floor. Writers at 0.2.0 and above record null instead and never write 0."
|
|
505
516
|
}
|
|
506
517
|
},
|
|
507
518
|
"required": [
|