@brainervirus/workit-pi 1.0.9 → 1.0.11
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 +23 -6
- package/dist/workit.js +848 -264
- package/package.json +1 -1
- package/skills/workit-plan/SKILL.md +14 -2
package/dist/worker.js
CHANGED
|
@@ -7553,10 +7553,12 @@ var decisionSchema = object({
|
|
|
7553
7553
|
scope: scopeSchema,
|
|
7554
7554
|
presented: text,
|
|
7555
7555
|
approvedContent: text,
|
|
7556
|
-
|
|
7556
|
+
displayed: text.optional(),
|
|
7557
|
+
contentRefs: array(refSchema),
|
|
7558
|
+
statedChoice: object({ ref: text, text }).strict().optional()
|
|
7557
7559
|
}).strict(),
|
|
7558
7560
|
digest,
|
|
7559
|
-
response: _enum(["approved", "rejected"]),
|
|
7561
|
+
response: _enum(["approved", "rejected", "stated"]),
|
|
7560
7562
|
requirementIds: array(digest),
|
|
7561
7563
|
revoked: object({ at: utc, reason: text }).strict().nullable(),
|
|
7562
7564
|
consumption: object({
|
|
@@ -7631,6 +7633,10 @@ var actionProgressListSchema = array(actionProgressSchema).check((ctx) => {
|
|
|
7631
7633
|
path: ["decisionId"]
|
|
7632
7634
|
});
|
|
7633
7635
|
});
|
|
7636
|
+
var runtimeSchema = object({
|
|
7637
|
+
createdWith: text.nullable(),
|
|
7638
|
+
updatedWith: text
|
|
7639
|
+
}).strict();
|
|
7634
7640
|
var taskRecordSchema = object({
|
|
7635
7641
|
schemaVersion: literal(1),
|
|
7636
7642
|
id,
|
|
@@ -7644,6 +7650,8 @@ var taskRecordSchema = object({
|
|
|
7644
7650
|
status: _enum(["active", "paused", "closed"]),
|
|
7645
7651
|
closure: closureSchema.nullable(),
|
|
7646
7652
|
progress: progressSchema,
|
|
7653
|
+
pauseReason: text.nullable().optional(),
|
|
7654
|
+
runtime: runtimeSchema.optional(),
|
|
7647
7655
|
assessments: array(entrySchema(assessmentSchema)),
|
|
7648
7656
|
policy: policySchema.nullable(),
|
|
7649
7657
|
policyChanges: array(policyChangeSchema),
|
|
@@ -7659,6 +7667,7 @@ var workspaceRecordSchema = object({
|
|
|
7659
7667
|
id,
|
|
7660
7668
|
revision,
|
|
7661
7669
|
root: nonEmpty,
|
|
7670
|
+
runtime: runtimeSchema.optional(),
|
|
7662
7671
|
writer: object({ state: _enum(["held", "uncertain"]), owner: ownerSchema, acquiredAt: utc }).strict().nullable()
|
|
7663
7672
|
}).strict();
|
|
7664
7673
|
var capabilitySchema = object({
|
|
@@ -7686,6 +7695,9 @@ var taskSummarySchema = object({
|
|
|
7686
7695
|
id,
|
|
7687
7696
|
revision,
|
|
7688
7697
|
workspaceRevision: revision,
|
|
7698
|
+
createdAt: utc,
|
|
7699
|
+
updatedAt: utc,
|
|
7700
|
+
runtime: runtimeSchema.nullable(),
|
|
7689
7701
|
objective: text,
|
|
7690
7702
|
status: _enum(["active", "paused", "closed"]),
|
|
7691
7703
|
closure: closureSchema.nullable(),
|
|
@@ -7756,7 +7768,7 @@ var taskOperations = {
|
|
|
7756
7768
|
expectedWorkspaceRevision: revision.optional(),
|
|
7757
7769
|
outcome: outcomeSchema,
|
|
7758
7770
|
summary: text,
|
|
7759
|
-
decisionIds: array(id)
|
|
7771
|
+
decisionIds: array(id).optional()
|
|
7760
7772
|
})
|
|
7761
7773
|
};
|
|
7762
7774
|
var policyOperations = {
|
|
@@ -7848,14 +7860,15 @@ var writerOperations = {
|
|
|
7848
7860
|
...taskId,
|
|
7849
7861
|
expectedRevision: revision.optional(),
|
|
7850
7862
|
expectedWorkspaceRevision: revision.optional(),
|
|
7851
|
-
workerId: nullableId.optional()
|
|
7863
|
+
workerId: nullableId.optional(),
|
|
7864
|
+
reason: text.optional()
|
|
7852
7865
|
}),
|
|
7853
7866
|
release: operation({
|
|
7854
7867
|
action: literal("release"),
|
|
7855
7868
|
...taskId,
|
|
7856
7869
|
expectedRevision: revision.optional(),
|
|
7857
7870
|
expectedWorkspaceRevision: revision.optional(),
|
|
7858
|
-
reason: text
|
|
7871
|
+
reason: text.optional()
|
|
7859
7872
|
})
|
|
7860
7873
|
};
|
|
7861
7874
|
var stateOperations = {
|
|
@@ -7992,7 +8005,11 @@ var externalActionSchema = discriminatedUnion("operation", [
|
|
|
7992
8005
|
}).strict(),
|
|
7993
8006
|
object({
|
|
7994
8007
|
operation: literal("git.commit"),
|
|
7995
|
-
payload: object({
|
|
8008
|
+
payload: object({
|
|
8009
|
+
message: string2().min(1).optional(),
|
|
8010
|
+
plan_steps: array(string2().min(1)).optional(),
|
|
8011
|
+
plan_branch: string2().min(1).optional()
|
|
8012
|
+
}).strict()
|
|
7996
8013
|
}).strict(),
|
|
7997
8014
|
object({
|
|
7998
8015
|
operation: literal("git.push"),
|