@brainervirus/workit-pi 1.0.11 → 1.1.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 -2
- package/dist/workit.js +5364 -4682
- 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,6 +7997,28 @@ var metadataLockSchema = object({
|
|
|
7990
7997
|
host: string2().min(1),
|
|
7991
7998
|
nonce: string2().min(1)
|
|
7992
7999
|
}).strict();
|
|
8000
|
+
// packages/workit-core/src/core/config.ts
|
|
8001
|
+
var PRESETS = {
|
|
8002
|
+
gitflow: {
|
|
8003
|
+
allowed: ["feature/*", "bugfix/*", "hotfix/*", "release/*"],
|
|
8004
|
+
protected: ["main", "develop", "master", "prod", "production"]
|
|
8005
|
+
},
|
|
8006
|
+
"github-flow": { allowed: ["*"], protected: ["main"] },
|
|
8007
|
+
"trunk-based": { allowed: ["*"], protected: ["main"] },
|
|
8008
|
+
custom: { allowed: [], protected: [] }
|
|
8009
|
+
};
|
|
8010
|
+
var DEFAULTS = {
|
|
8011
|
+
locale: "en",
|
|
8012
|
+
localeOptions: ["en", "es-CL", "es-MX", "es-AR", "pt-BR"],
|
|
8013
|
+
timezone: "America/Santiago",
|
|
8014
|
+
branchPolicy: {
|
|
8015
|
+
preset: "gitflow",
|
|
8016
|
+
allowed: [...PRESETS.gitflow.allowed],
|
|
8017
|
+
protected: [...PRESETS.gitflow.protected]
|
|
8018
|
+
},
|
|
8019
|
+
commitPolicy: { preset: "conventional" }
|
|
8020
|
+
};
|
|
8021
|
+
|
|
7993
8022
|
// packages/workit-core/src/core/authority.ts
|
|
7994
8023
|
var verifiedAuthorities = new WeakMap;
|
|
7995
8024
|
// packages/workit-core/src/core/external-action.ts
|
|
@@ -8025,6 +8054,13 @@ var externalActionSchema = discriminatedUnion("operation", [
|
|
|
8025
8054
|
babysit: boolean2().optional()
|
|
8026
8055
|
}).strict()
|
|
8027
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(),
|
|
8028
8064
|
object({
|
|
8029
8065
|
operation: literal("youtrack.update"),
|
|
8030
8066
|
payload: object({
|