@brainervirus/workit-pi 1.0.10 → 1.0.12
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 +24 -2
- package/dist/workit.js +3898 -3499
- package/package.json +1 -1
package/dist/worker.js
CHANGED
|
@@ -7554,10 +7554,11 @@ var decisionSchema = object({
|
|
|
7554
7554
|
presented: text,
|
|
7555
7555
|
approvedContent: text,
|
|
7556
7556
|
displayed: text.optional(),
|
|
7557
|
-
contentRefs: array(refSchema)
|
|
7557
|
+
contentRefs: array(refSchema),
|
|
7558
|
+
statedChoice: object({ ref: text, text }).strict().optional()
|
|
7558
7559
|
}).strict(),
|
|
7559
7560
|
digest,
|
|
7560
|
-
response: _enum(["approved", "rejected"]),
|
|
7561
|
+
response: _enum(["approved", "rejected", "stated"]),
|
|
7561
7562
|
requirementIds: array(digest),
|
|
7562
7563
|
revoked: object({ at: utc, reason: text }).strict().nullable(),
|
|
7563
7564
|
consumption: object({
|
|
@@ -7991,6 +7992,27 @@ var metadataLockSchema = object({
|
|
|
7991
7992
|
}).strict();
|
|
7992
7993
|
// packages/workit-core/src/core/authority.ts
|
|
7993
7994
|
var verifiedAuthorities = new WeakMap;
|
|
7995
|
+
// packages/workit-core/src/core/config.ts
|
|
7996
|
+
var PRESETS = {
|
|
7997
|
+
gitflow: {
|
|
7998
|
+
allowed: ["feature/*", "bugfix/*", "hotfix/*", "release/*"],
|
|
7999
|
+
protected: ["main", "develop", "master", "prod", "production"]
|
|
8000
|
+
},
|
|
8001
|
+
"github-flow": { allowed: ["*"], protected: ["main"] },
|
|
8002
|
+
"trunk-based": { allowed: ["*"], protected: ["main"] },
|
|
8003
|
+
custom: { allowed: [], protected: [] }
|
|
8004
|
+
};
|
|
8005
|
+
var DEFAULTS = {
|
|
8006
|
+
locale: "en",
|
|
8007
|
+
localeOptions: ["en", "es-CL", "es-MX", "es-AR", "pt-BR"],
|
|
8008
|
+
timezone: "America/Santiago",
|
|
8009
|
+
branchPolicy: {
|
|
8010
|
+
preset: "gitflow",
|
|
8011
|
+
allowed: [...PRESETS.gitflow.allowed],
|
|
8012
|
+
protected: [...PRESETS.gitflow.protected]
|
|
8013
|
+
},
|
|
8014
|
+
commitPolicy: { preset: "conventional" }
|
|
8015
|
+
};
|
|
7994
8016
|
// packages/workit-core/src/core/external-action.ts
|
|
7995
8017
|
var externalActionSchema = discriminatedUnion("operation", [
|
|
7996
8018
|
object({
|