@brainervirus/workit-pi 1.0.12 → 1.1.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.
Files changed (3) hide show
  1. package/dist/worker.js +19 -4
  2. package/dist/workit.js +2403 -2015
  3. package/package.json +1 -1
package/dist/worker.js CHANGED
@@ -7333,7 +7333,13 @@ var refSchema = discriminatedUnion("kind", [
7333
7333
  id
7334
7334
  }).strict(),
7335
7335
  object({ kind: literal("host"), host: hostSchema, handle: nonEmpty }).strict(),
7336
- object({ kind: literal("external"), url: text.url() }).strict()
7336
+ object({ kind: literal("external"), url: text.url() }).strict(),
7337
+ object({
7338
+ kind: literal("standing"),
7339
+ workspace: nonEmpty,
7340
+ class: nonEmpty,
7341
+ configDigest: nullableDigest
7342
+ }).strict()
7337
7343
  ]);
7338
7344
  var provenanceSchema = object({
7339
7345
  kind: _enum(["host_observed", "agent_reported", "imported"]),
@@ -7555,7 +7561,8 @@ var decisionSchema = object({
7555
7561
  approvedContent: text,
7556
7562
  displayed: text.optional(),
7557
7563
  contentRefs: array(refSchema),
7558
- statedChoice: object({ ref: text, text }).strict().optional()
7564
+ statedChoice: object({ ref: text, text }).strict().optional(),
7565
+ standing: object({ workspace: nonEmpty, class: nonEmpty }).strict().optional()
7559
7566
  }).strict(),
7560
7567
  digest,
7561
7568
  response: _enum(["approved", "rejected", "stated"]),
@@ -7990,8 +7997,6 @@ var metadataLockSchema = object({
7990
7997
  host: string2().min(1),
7991
7998
  nonce: string2().min(1)
7992
7999
  }).strict();
7993
- // packages/workit-core/src/core/authority.ts
7994
- var verifiedAuthorities = new WeakMap;
7995
8000
  // packages/workit-core/src/core/config.ts
7996
8001
  var PRESETS = {
7997
8002
  gitflow: {
@@ -8013,6 +8018,9 @@ var DEFAULTS = {
8013
8018
  },
8014
8019
  commitPolicy: { preset: "conventional" }
8015
8020
  };
8021
+
8022
+ // packages/workit-core/src/core/authority.ts
8023
+ var verifiedAuthorities = new WeakMap;
8016
8024
  // packages/workit-core/src/core/external-action.ts
8017
8025
  var externalActionSchema = discriminatedUnion("operation", [
8018
8026
  object({
@@ -8046,6 +8054,13 @@ var externalActionSchema = discriminatedUnion("operation", [
8046
8054
  babysit: boolean2().optional()
8047
8055
  }).strict()
8048
8056
  }).strict(),
8057
+ object({
8058
+ operation: literal("hosting.merge"),
8059
+ payload: object({
8060
+ target_branch: string2().min(1).optional(),
8061
+ source_branch: string2().min(1).optional()
8062
+ }).strict()
8063
+ }).strict(),
8049
8064
  object({
8050
8065
  operation: literal("youtrack.update"),
8051
8066
  payload: object({