@brainervirus/workit-pi 2.5.0 → 2.7.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/worker.js +38 -3
- package/dist/workit.js +774 -262
- package/package.json +1 -1
- package/skills/workit-behavioral-tdd/SKILL.md +15 -9
- package/skills/workit-debug/SKILL.md +2 -1
package/dist/worker.js
CHANGED
|
@@ -7800,7 +7800,36 @@ var candidateSchema = object({
|
|
|
7800
7800
|
path: ["id"]
|
|
7801
7801
|
});
|
|
7802
7802
|
});
|
|
7803
|
-
var
|
|
7803
|
+
var checkObservationSchema = object({
|
|
7804
|
+
observer: literal("workit_cli"),
|
|
7805
|
+
name: nonEmpty.nullable(),
|
|
7806
|
+
configured: boolean2(),
|
|
7807
|
+
argv: array(text).min(1),
|
|
7808
|
+
shell: boolean2(),
|
|
7809
|
+
cwd: nonEmpty,
|
|
7810
|
+
exitCode: safeInteger,
|
|
7811
|
+
durationMs: safeInteger.min(0),
|
|
7812
|
+
timedOut: boolean2(),
|
|
7813
|
+
head: text.nullable(),
|
|
7814
|
+
tree: text.nullable(),
|
|
7815
|
+
dirty: boolean2().nullable(),
|
|
7816
|
+
signal: text.nullable(),
|
|
7817
|
+
treeAfter: text.nullable(),
|
|
7818
|
+
modifiedWorktree: boolean2(),
|
|
7819
|
+
base: text.nullable(),
|
|
7820
|
+
patchId: text.nullable(),
|
|
7821
|
+
environment: object({
|
|
7822
|
+
platform: nonEmpty,
|
|
7823
|
+
arch: nonEmpty,
|
|
7824
|
+
vars: record(nonEmpty, text.nullable())
|
|
7825
|
+
}).strict(),
|
|
7826
|
+
logDigest: text.nullable(),
|
|
7827
|
+
logRef: text.nullable(),
|
|
7828
|
+
logTail: array(text).max(40),
|
|
7829
|
+
ledgerRowId: text.nullable(),
|
|
7830
|
+
attestation: object({ host: nonEmpty, session: text.nullable(), agentId: text.nullable() }).strict().nullable()
|
|
7831
|
+
}).strict();
|
|
7832
|
+
var evidenceFields = {
|
|
7804
7833
|
kind: _enum(["check", "review", "investigation", "artifact"]),
|
|
7805
7834
|
claim: text,
|
|
7806
7835
|
requirementIds: array(digest),
|
|
@@ -7811,7 +7840,9 @@ var evidenceSchema = object({
|
|
|
7811
7840
|
refs: array(refSchema),
|
|
7812
7841
|
exitCode: safeInteger.nullable(),
|
|
7813
7842
|
reviewContext: refSchema.nullable()
|
|
7814
|
-
}
|
|
7843
|
+
};
|
|
7844
|
+
var evidenceSchema = object({ ...evidenceFields, observation: checkObservationSchema.optional() }).strict();
|
|
7845
|
+
var reportedEvidenceSchema = object(evidenceFields).strict();
|
|
7815
7846
|
var evidenceEvaluationSchema = object({
|
|
7816
7847
|
evidenceId: id,
|
|
7817
7848
|
status: _enum(["passed", "failed", "missing", "skipped", "stale"]),
|
|
@@ -8069,7 +8100,7 @@ var evidenceOperations = {
|
|
|
8069
8100
|
action: literal("record"),
|
|
8070
8101
|
...taskId,
|
|
8071
8102
|
expectedRevision: revision.optional(),
|
|
8072
|
-
evidence:
|
|
8103
|
+
evidence: reportedEvidenceSchema
|
|
8073
8104
|
})
|
|
8074
8105
|
};
|
|
8075
8106
|
var findingOperations = {
|
|
@@ -8434,6 +8465,10 @@ var runtimeWorkspaceIndexSchema = object({
|
|
|
8434
8465
|
|
|
8435
8466
|
// packages/workit-core/src/core/authority.ts
|
|
8436
8467
|
var verifiedAuthorities = new WeakMap;
|
|
8468
|
+
|
|
8469
|
+
// packages/workit-core/src/git/rev.ts
|
|
8470
|
+
var MAX_BUFFER = 256 * 1024 * 1024;
|
|
8471
|
+
var MAX_UNTRACKED_BYTES = 5 * 1024 * 1024;
|
|
8437
8472
|
// packages/workit-core/src/core/external-action.ts
|
|
8438
8473
|
var chainStepSchema = union([
|
|
8439
8474
|
string2().min(1),
|