@brainervirus/workit-pi 1.0.8 → 1.0.10

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 CHANGED
@@ -7553,6 +7553,7 @@ var decisionSchema = object({
7553
7553
  scope: scopeSchema,
7554
7554
  presented: text,
7555
7555
  approvedContent: text,
7556
+ displayed: text.optional(),
7556
7557
  contentRefs: array(refSchema)
7557
7558
  }).strict(),
7558
7559
  digest,
@@ -7591,7 +7592,7 @@ var workerReportSchema = object({
7591
7592
  }).strict();
7592
7593
  var workerSchema = object({
7593
7594
  assignment: assignmentSchema,
7594
- state: _enum(["assigned", "running", "cancelling", "stopped", "unknown"]),
7595
+ state: _enum(["assigned", "dispatching", "running", "cancelling", "stopped", "unknown"]),
7595
7596
  session: refSchema.nullable(),
7596
7597
  report: workerReportSchema.nullable()
7597
7598
  }).strict();
@@ -7631,6 +7632,10 @@ var actionProgressListSchema = array(actionProgressSchema).check((ctx) => {
7631
7632
  path: ["decisionId"]
7632
7633
  });
7633
7634
  });
7635
+ var runtimeSchema = object({
7636
+ createdWith: text.nullable(),
7637
+ updatedWith: text
7638
+ }).strict();
7634
7639
  var taskRecordSchema = object({
7635
7640
  schemaVersion: literal(1),
7636
7641
  id,
@@ -7644,6 +7649,8 @@ var taskRecordSchema = object({
7644
7649
  status: _enum(["active", "paused", "closed"]),
7645
7650
  closure: closureSchema.nullable(),
7646
7651
  progress: progressSchema,
7652
+ pauseReason: text.nullable().optional(),
7653
+ runtime: runtimeSchema.optional(),
7647
7654
  assessments: array(entrySchema(assessmentSchema)),
7648
7655
  policy: policySchema.nullable(),
7649
7656
  policyChanges: array(policyChangeSchema),
@@ -7659,6 +7666,7 @@ var workspaceRecordSchema = object({
7659
7666
  id,
7660
7667
  revision,
7661
7668
  root: nonEmpty,
7669
+ runtime: runtimeSchema.optional(),
7662
7670
  writer: object({ state: _enum(["held", "uncertain"]), owner: ownerSchema, acquiredAt: utc }).strict().nullable()
7663
7671
  }).strict();
7664
7672
  var capabilitySchema = object({
@@ -7686,6 +7694,9 @@ var taskSummarySchema = object({
7686
7694
  id,
7687
7695
  revision,
7688
7696
  workspaceRevision: revision,
7697
+ createdAt: utc,
7698
+ updatedAt: utc,
7699
+ runtime: runtimeSchema.nullable(),
7689
7700
  objective: text,
7690
7701
  status: _enum(["active", "paused", "closed"]),
7691
7702
  closure: closureSchema.nullable(),
@@ -7756,7 +7767,7 @@ var taskOperations = {
7756
7767
  expectedWorkspaceRevision: revision.optional(),
7757
7768
  outcome: outcomeSchema,
7758
7769
  summary: text,
7759
- decisionIds: array(id)
7770
+ decisionIds: array(id).optional()
7760
7771
  })
7761
7772
  };
7762
7773
  var policyOperations = {
@@ -7848,14 +7859,15 @@ var writerOperations = {
7848
7859
  ...taskId,
7849
7860
  expectedRevision: revision.optional(),
7850
7861
  expectedWorkspaceRevision: revision.optional(),
7851
- workerId: nullableId.optional()
7862
+ workerId: nullableId.optional(),
7863
+ reason: text.optional()
7852
7864
  }),
7853
7865
  release: operation({
7854
7866
  action: literal("release"),
7855
7867
  ...taskId,
7856
7868
  expectedRevision: revision.optional(),
7857
7869
  expectedWorkspaceRevision: revision.optional(),
7858
- reason: text
7870
+ reason: text.optional()
7859
7871
  })
7860
7872
  };
7861
7873
  var stateOperations = {
@@ -7992,7 +8004,11 @@ var externalActionSchema = discriminatedUnion("operation", [
7992
8004
  }).strict(),
7993
8005
  object({
7994
8006
  operation: literal("git.commit"),
7995
- payload: object({ message: string2().min(1) }).strict()
8007
+ payload: object({
8008
+ message: string2().min(1).optional(),
8009
+ plan_steps: array(string2().min(1)).optional(),
8010
+ plan_branch: string2().min(1).optional()
8011
+ }).strict()
7996
8012
  }).strict(),
7997
8013
  object({
7998
8014
  operation: literal("git.push"),