@workit-dev/codex 2.26.1 → 2.26.2
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/launch-mcp.js
CHANGED
|
@@ -11864,11 +11864,6 @@ if (!globalConfig.localeError)
|
|
|
11864
11864
|
config(en_default());
|
|
11865
11865
|
if (!globalConfig.memoizer)
|
|
11866
11866
|
config({ memoizer: memoizer() });
|
|
11867
|
-
var described = (schema, description) => {
|
|
11868
|
-
const copy = schema.clone();
|
|
11869
|
-
globalRegistry.add(copy, { description });
|
|
11870
|
-
return copy;
|
|
11871
|
-
};
|
|
11872
11867
|
|
|
11873
11868
|
// packages/workit-core/src/core/scope-glob.ts
|
|
11874
11869
|
var GLOB = /[*?[\]{}]/u;
|
|
@@ -14744,25 +14739,25 @@ var nonBlank = string2().check(refine((value) => value.trim().length > 0, "must
|
|
|
14744
14739
|
var branchPreset = custom((value) => typeof value === "string" && Object.hasOwn(PRESETS, value), "unsupported branch preset");
|
|
14745
14740
|
var commitPreset = custom((value) => typeof value === "string" && COMMIT_PRESETS.includes(value), "unsupported commit preset");
|
|
14746
14741
|
var workspaceBranchPolicySchema = strictObject({
|
|
14747
|
-
preset:
|
|
14748
|
-
developBranch:
|
|
14749
|
-
prefixes:
|
|
14742
|
+
preset: branchPreset,
|
|
14743
|
+
developBranch: optional(nonBlank),
|
|
14744
|
+
prefixes: optional(looseObject({
|
|
14750
14745
|
feature: nonBlank,
|
|
14751
14746
|
bugfix: nonBlank,
|
|
14752
14747
|
release: nonBlank,
|
|
14753
14748
|
hotfix: nonBlank
|
|
14754
|
-
})),
|
|
14755
|
-
allowed:
|
|
14756
|
-
protected:
|
|
14757
|
-
integration:
|
|
14749
|
+
})),
|
|
14750
|
+
allowed: optional(array(nonBlank)),
|
|
14751
|
+
protected: optional(array(nonBlank)),
|
|
14752
|
+
integration: optional(_enum(["pr", "merge"]))
|
|
14758
14753
|
});
|
|
14759
14754
|
var workspaceCommitPolicySchema = strictObject({
|
|
14760
|
-
preset:
|
|
14761
|
-
pattern:
|
|
14755
|
+
preset: commitPreset,
|
|
14756
|
+
pattern: optional(string2())
|
|
14762
14757
|
});
|
|
14763
14758
|
var workspaceProfileSchema = strictObject({
|
|
14764
|
-
branchPolicy:
|
|
14765
|
-
commitPolicy:
|
|
14759
|
+
branchPolicy: optional(workspaceBranchPolicySchema),
|
|
14760
|
+
commitPolicy: optional(workspaceCommitPolicySchema)
|
|
14766
14761
|
}).check(refine((profile) => profile.branchPolicy !== undefined || profile.commitPolicy !== undefined, { message: "a profile must define branchPolicy or commitPolicy" }));
|
|
14767
14762
|
var versionSourceSchema = discriminatedUnion("kind", [
|
|
14768
14763
|
strictObject({
|
|
@@ -14774,22 +14769,22 @@ var versionSourceSchema = discriminatedUnion("kind", [
|
|
|
14774
14769
|
strictObject({ kind: literal("manual") })
|
|
14775
14770
|
]);
|
|
14776
14771
|
var releaseTrackSchema = looseObject({
|
|
14777
|
-
strategy:
|
|
14778
|
-
productionBranch:
|
|
14779
|
-
integrationBranch:
|
|
14780
|
-
naming:
|
|
14772
|
+
strategy: optional(branchPreset),
|
|
14773
|
+
productionBranch: nonBlank,
|
|
14774
|
+
integrationBranch: nonBlank,
|
|
14775
|
+
naming: optional(looseObject({
|
|
14781
14776
|
feature: optional(nonBlank),
|
|
14782
14777
|
release: optional(nonBlank),
|
|
14783
14778
|
hotfix: optional(nonBlank)
|
|
14784
|
-
})),
|
|
14785
|
-
baseBranch:
|
|
14786
|
-
mergeBackBranches:
|
|
14787
|
-
pullRequestTarget:
|
|
14788
|
-
tagNamespace:
|
|
14789
|
-
versionSource:
|
|
14790
|
-
requiredChecks:
|
|
14791
|
-
critical:
|
|
14792
|
-
releaseNotes:
|
|
14779
|
+
})),
|
|
14780
|
+
baseBranch: optional(nonBlank),
|
|
14781
|
+
mergeBackBranches: optional(array(nonBlank)),
|
|
14782
|
+
pullRequestTarget: optional(nonBlank),
|
|
14783
|
+
tagNamespace: optional(string2()),
|
|
14784
|
+
versionSource: optional(versionSourceSchema),
|
|
14785
|
+
requiredChecks: optional(array(nonBlank)),
|
|
14786
|
+
critical: optional(array(nonBlank)),
|
|
14787
|
+
releaseNotes: optional(unknown())
|
|
14793
14788
|
}).check(superRefine((track, context) => {
|
|
14794
14789
|
for (const [field, values] of [
|
|
14795
14790
|
["mergeBackBranches", track.mergeBackBranches ?? []],
|
|
@@ -14811,67 +14806,67 @@ var releaseTrackSchema = looseObject({
|
|
|
14811
14806
|
});
|
|
14812
14807
|
}
|
|
14813
14808
|
}));
|
|
14814
|
-
var modelRoles =
|
|
14809
|
+
var modelRoles = optional(unknown());
|
|
14815
14810
|
var workspaceConfigSchema = looseObject({
|
|
14816
|
-
name:
|
|
14817
|
-
glob:
|
|
14818
|
-
vcs:
|
|
14819
|
-
provider:
|
|
14820
|
-
defaultTargetBranch:
|
|
14821
|
-
tokenFile:
|
|
14822
|
-
account:
|
|
14823
|
-
host:
|
|
14824
|
-
})),
|
|
14825
|
-
autoApprove:
|
|
14826
|
-
defaultEndpoint:
|
|
14827
|
-
verification:
|
|
14828
|
-
delegation:
|
|
14829
|
-
changelog:
|
|
14830
|
-
docs:
|
|
14831
|
-
changelogPath:
|
|
14832
|
-
prTemplate:
|
|
14833
|
-
releaseNotes:
|
|
14834
|
-
trailers:
|
|
14835
|
-
deleteBranch:
|
|
14836
|
-
cleanup:
|
|
14837
|
-
feedback:
|
|
14838
|
-
liveSessionGuard:
|
|
14839
|
-
shared:
|
|
14840
|
-
fanout:
|
|
14841
|
-
tierModels:
|
|
14842
|
-
deps:
|
|
14843
|
-
installTimeout:
|
|
14844
|
-
})),
|
|
14845
|
-
models:
|
|
14846
|
-
resources:
|
|
14847
|
-
remotes:
|
|
14848
|
-
externalRepos:
|
|
14849
|
-
additiveRiskPaths:
|
|
14850
|
-
autonomy:
|
|
14811
|
+
name: nonBlank,
|
|
14812
|
+
glob: nonBlank,
|
|
14813
|
+
vcs: optional(looseObject({
|
|
14814
|
+
provider: _enum(["gitlab", "github"]),
|
|
14815
|
+
defaultTargetBranch: optional(nonBlank),
|
|
14816
|
+
tokenFile: optional(nonBlank),
|
|
14817
|
+
account: optional(nonBlank),
|
|
14818
|
+
host: optional(unknown())
|
|
14819
|
+
})),
|
|
14820
|
+
autoApprove: optional(union([boolean2(), array(nonBlank)])),
|
|
14821
|
+
defaultEndpoint: optional(unknown()),
|
|
14822
|
+
verification: optional(_enum(["proportional", "self", "independent"])),
|
|
14823
|
+
delegation: optional(unknown()),
|
|
14824
|
+
changelog: optional(unknown()),
|
|
14825
|
+
docs: optional(unknown()),
|
|
14826
|
+
changelogPath: optional(unknown()),
|
|
14827
|
+
prTemplate: optional(unknown()),
|
|
14828
|
+
releaseNotes: optional(unknown()),
|
|
14829
|
+
trailers: optional(boolean2()),
|
|
14830
|
+
deleteBranch: optional(boolean2()),
|
|
14831
|
+
cleanup: optional(unknown()),
|
|
14832
|
+
feedback: optional(unknown()),
|
|
14833
|
+
liveSessionGuard: optional(boolean2()),
|
|
14834
|
+
shared: optional(boolean2()),
|
|
14835
|
+
fanout: optional(looseObject({
|
|
14836
|
+
tierModels: optional(unknown()),
|
|
14837
|
+
deps: optional(unknown()),
|
|
14838
|
+
installTimeout: optional(unknown())
|
|
14839
|
+
})),
|
|
14840
|
+
models: optional(looseObject({ roles: modelRoles })),
|
|
14841
|
+
resources: optional(unknown()),
|
|
14842
|
+
remotes: optional(array(nonBlank.check(refine((pattern) => remotePattern(pattern) !== null, "is not a remote URL (https://host/owner/repo, git@host:owner/repo, a path, or owner/*)")))),
|
|
14843
|
+
externalRepos: optional(array(nonBlank.check(_regex(/^[\w-]+(?:\/\w[\w.-]*)*\/(?:\w[\w.-]*|\*)$/u, "is owner/name, group/project or owner/* on the checkout's forge host, without the host")))),
|
|
14844
|
+
additiveRiskPaths: optional(array(nonBlank)),
|
|
14845
|
+
autonomy: optional(looseObject(Object.fromEntries(["push", "pr", "merge", "release", "rerun"].map((kind) => [
|
|
14851
14846
|
kind,
|
|
14852
|
-
|
|
14853
|
-
])))),
|
|
14854
|
-
youtrack:
|
|
14855
|
-
baseUrl:
|
|
14856
|
-
link_issues:
|
|
14857
|
-
writes:
|
|
14858
|
-
autoHosts:
|
|
14859
|
-
})),
|
|
14860
|
-
issues:
|
|
14861
|
-
provider:
|
|
14862
|
-
link:
|
|
14863
|
-
relation:
|
|
14864
|
-
backlink:
|
|
14865
|
-
link_on_pr:
|
|
14866
|
-
repo:
|
|
14867
|
-
host:
|
|
14868
|
-
})),
|
|
14869
|
-
branchPolicy:
|
|
14870
|
-
commitPolicy:
|
|
14871
|
-
defaultProfile:
|
|
14872
|
-
profiles:
|
|
14873
|
-
releaseTracks:
|
|
14874
|
-
releasePackages:
|
|
14847
|
+
optional(union([boolean2(), literal("verified")]))
|
|
14848
|
+
])))),
|
|
14849
|
+
youtrack: optional(looseObject({
|
|
14850
|
+
baseUrl: optional(nonBlank),
|
|
14851
|
+
link_issues: optional(boolean2()),
|
|
14852
|
+
writes: optional(_enum(["ask", "auto"])),
|
|
14853
|
+
autoHosts: optional(array(nonBlank))
|
|
14854
|
+
})),
|
|
14855
|
+
issues: optional(looseObject({
|
|
14856
|
+
provider: optional(_enum(["github", "gitlab", "youtrack"])),
|
|
14857
|
+
link: optional(boolean2()),
|
|
14858
|
+
relation: optional(unknown()),
|
|
14859
|
+
backlink: optional(boolean2()),
|
|
14860
|
+
link_on_pr: optional(boolean2()),
|
|
14861
|
+
repo: optional(unknown()),
|
|
14862
|
+
host: optional(unknown())
|
|
14863
|
+
})),
|
|
14864
|
+
branchPolicy: optional(workspaceBranchPolicySchema),
|
|
14865
|
+
commitPolicy: optional(workspaceCommitPolicySchema),
|
|
14866
|
+
defaultProfile: optional(nonBlank),
|
|
14867
|
+
profiles: optional(record(nonBlank, workspaceProfileSchema)),
|
|
14868
|
+
releaseTracks: optional(record(nonBlank, releaseTrackSchema)),
|
|
14869
|
+
releasePackages: optional(unknown())
|
|
14875
14870
|
}).check(superRefine((workspace, context) => {
|
|
14876
14871
|
if (workspace.defaultProfile !== undefined && !Object.hasOwn(workspace.profiles ?? {}, workspace.defaultProfile)) {
|
|
14877
14872
|
context.addIssue({
|
|
@@ -14882,11 +14877,11 @@ var workspaceConfigSchema = looseObject({
|
|
|
14882
14877
|
}
|
|
14883
14878
|
}));
|
|
14884
14879
|
var workspacesFileSchema = looseObject({
|
|
14885
|
-
workspaces:
|
|
14886
|
-
models:
|
|
14887
|
-
feedback:
|
|
14888
|
-
account:
|
|
14889
|
-
}))
|
|
14880
|
+
workspaces: optional(array(workspaceConfigSchema)),
|
|
14881
|
+
models: optional(looseObject({ roles: modelRoles })),
|
|
14882
|
+
feedback: optional(looseObject({
|
|
14883
|
+
account: optional(nonBlank)
|
|
14884
|
+
}))
|
|
14890
14885
|
}).check(superRefine((file, context) => {
|
|
14891
14886
|
const names = new Set;
|
|
14892
14887
|
for (const [index, workspace] of (file.workspaces ?? []).entries()) {
|
|
@@ -32159,7 +32154,6 @@ var READ_CMDLETS = new Set([
|
|
|
32159
32154
|
"pop-location",
|
|
32160
32155
|
"help"
|
|
32161
32156
|
]);
|
|
32162
|
-
var LOADER_ENV = /^(?:GIT_\w*|PAGER|EDITOR|VISUAL|PATH|LD_\w*|DYLD_\w*|NODE_OPTIONS|PYTHON\w*|BASH_ENV|ENV|PERL5(?:OPT|LIB)|RUBY(?:OPT|LIB))$/i;
|
|
32163
32157
|
|
|
32164
32158
|
// packages/workit-core/src/hooks/write-gate.ts
|
|
32165
32159
|
var CASE_INSENSITIVE = process.platform === "darwin" || process.platform === "win32";
|
|
@@ -32196,7 +32190,6 @@ var PUSHD2 = new Set(["pushd", "push-location"]);
|
|
|
32196
32190
|
var POPD2 = new Set(["popd", "pop-location"]);
|
|
32197
32191
|
var UNKNOWN_DIR = path35.resolve(path35.parse(process.cwd()).root, ".workit-unknown-dir");
|
|
32198
32192
|
var DECLARERS = new Set(["export", "declare", "typeset", "local", "readonly"]);
|
|
32199
|
-
var POSIX_LOADER = new RegExp(LOADER_ENV.source);
|
|
32200
32193
|
var REBINDS_ANY = new Set([
|
|
32201
32194
|
"source",
|
|
32202
32195
|
".",
|
|
@@ -2554,54 +2554,6 @@ function en_default() {
|
|
|
2554
2554
|
};
|
|
2555
2555
|
}
|
|
2556
2556
|
|
|
2557
|
-
// node_modules/zod/v4/core/registries.js
|
|
2558
|
-
var _a2;
|
|
2559
|
-
class $ZodRegistry {
|
|
2560
|
-
constructor() {
|
|
2561
|
-
this._map = new WeakMap;
|
|
2562
|
-
this._idmap = new Map;
|
|
2563
|
-
}
|
|
2564
|
-
add(schema, ..._meta) {
|
|
2565
|
-
const meta = _meta[0];
|
|
2566
|
-
this._map.set(schema, meta);
|
|
2567
|
-
if (meta && typeof meta === "object" && "id" in meta) {
|
|
2568
|
-
this._idmap.set(meta.id, schema);
|
|
2569
|
-
}
|
|
2570
|
-
return this;
|
|
2571
|
-
}
|
|
2572
|
-
clear() {
|
|
2573
|
-
this._map = new WeakMap;
|
|
2574
|
-
this._idmap = new Map;
|
|
2575
|
-
return this;
|
|
2576
|
-
}
|
|
2577
|
-
remove(schema) {
|
|
2578
|
-
const meta = this._map.get(schema);
|
|
2579
|
-
if (meta && typeof meta === "object" && "id" in meta) {
|
|
2580
|
-
this._idmap.delete(meta.id);
|
|
2581
|
-
}
|
|
2582
|
-
this._map.delete(schema);
|
|
2583
|
-
return this;
|
|
2584
|
-
}
|
|
2585
|
-
get(schema) {
|
|
2586
|
-
const p = schema._zod.parent;
|
|
2587
|
-
if (p) {
|
|
2588
|
-
const pm = { ...this.get(p) ?? {} };
|
|
2589
|
-
delete pm.id;
|
|
2590
|
-
const f = { ...pm, ...this._map.get(schema) };
|
|
2591
|
-
return Object.keys(f).length ? f : undefined;
|
|
2592
|
-
}
|
|
2593
|
-
return this._map.get(schema);
|
|
2594
|
-
}
|
|
2595
|
-
has(schema) {
|
|
2596
|
-
return this._map.has(schema);
|
|
2597
|
-
}
|
|
2598
|
-
}
|
|
2599
|
-
function registry() {
|
|
2600
|
-
return new $ZodRegistry;
|
|
2601
|
-
}
|
|
2602
|
-
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
|
|
2603
|
-
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
2604
|
-
|
|
2605
2557
|
// node_modules/zod/v4/core/api.js
|
|
2606
2558
|
function snapshotChecks(def) {
|
|
2607
2559
|
if (def.checks)
|
|
@@ -2981,11 +2933,6 @@ if (!globalConfig.localeError)
|
|
|
2981
2933
|
config(en_default());
|
|
2982
2934
|
if (!globalConfig.memoizer)
|
|
2983
2935
|
config({ memoizer: memoizer() });
|
|
2984
|
-
var described = (schema, description) => {
|
|
2985
|
-
const copy = schema.clone();
|
|
2986
|
-
globalRegistry.add(copy, { description });
|
|
2987
|
-
return copy;
|
|
2988
|
-
};
|
|
2989
2936
|
|
|
2990
2937
|
// packages/workit-core/src/core/remotes.ts
|
|
2991
2938
|
import { lstatSync, readFileSync as readFileSync3, realpathSync as realpathSync2, statSync } from "node:fs";
|
|
@@ -4091,25 +4038,25 @@ var nonBlank = string2().check(refine((value) => value.trim().length > 0, "must
|
|
|
4091
4038
|
var branchPreset = custom((value) => typeof value === "string" && Object.hasOwn(PRESETS, value), "unsupported branch preset");
|
|
4092
4039
|
var commitPreset = custom((value) => typeof value === "string" && COMMIT_PRESETS.includes(value), "unsupported commit preset");
|
|
4093
4040
|
var workspaceBranchPolicySchema = strictObject({
|
|
4094
|
-
preset:
|
|
4095
|
-
developBranch:
|
|
4096
|
-
prefixes:
|
|
4041
|
+
preset: branchPreset,
|
|
4042
|
+
developBranch: optional(nonBlank),
|
|
4043
|
+
prefixes: optional(looseObject({
|
|
4097
4044
|
feature: nonBlank,
|
|
4098
4045
|
bugfix: nonBlank,
|
|
4099
4046
|
release: nonBlank,
|
|
4100
4047
|
hotfix: nonBlank
|
|
4101
|
-
})),
|
|
4102
|
-
allowed:
|
|
4103
|
-
protected:
|
|
4104
|
-
integration:
|
|
4048
|
+
})),
|
|
4049
|
+
allowed: optional(array(nonBlank)),
|
|
4050
|
+
protected: optional(array(nonBlank)),
|
|
4051
|
+
integration: optional(_enum(["pr", "merge"]))
|
|
4105
4052
|
});
|
|
4106
4053
|
var workspaceCommitPolicySchema = strictObject({
|
|
4107
|
-
preset:
|
|
4108
|
-
pattern:
|
|
4054
|
+
preset: commitPreset,
|
|
4055
|
+
pattern: optional(string2())
|
|
4109
4056
|
});
|
|
4110
4057
|
var workspaceProfileSchema = strictObject({
|
|
4111
|
-
branchPolicy:
|
|
4112
|
-
commitPolicy:
|
|
4058
|
+
branchPolicy: optional(workspaceBranchPolicySchema),
|
|
4059
|
+
commitPolicy: optional(workspaceCommitPolicySchema)
|
|
4113
4060
|
}).check(refine((profile) => profile.branchPolicy !== undefined || profile.commitPolicy !== undefined, { message: "a profile must define branchPolicy or commitPolicy" }));
|
|
4114
4061
|
var versionSourceSchema = discriminatedUnion("kind", [
|
|
4115
4062
|
strictObject({
|
|
@@ -4121,22 +4068,22 @@ var versionSourceSchema = discriminatedUnion("kind", [
|
|
|
4121
4068
|
strictObject({ kind: literal("manual") })
|
|
4122
4069
|
]);
|
|
4123
4070
|
var releaseTrackSchema = looseObject({
|
|
4124
|
-
strategy:
|
|
4125
|
-
productionBranch:
|
|
4126
|
-
integrationBranch:
|
|
4127
|
-
naming:
|
|
4071
|
+
strategy: optional(branchPreset),
|
|
4072
|
+
productionBranch: nonBlank,
|
|
4073
|
+
integrationBranch: nonBlank,
|
|
4074
|
+
naming: optional(looseObject({
|
|
4128
4075
|
feature: optional(nonBlank),
|
|
4129
4076
|
release: optional(nonBlank),
|
|
4130
4077
|
hotfix: optional(nonBlank)
|
|
4131
|
-
})),
|
|
4132
|
-
baseBranch:
|
|
4133
|
-
mergeBackBranches:
|
|
4134
|
-
pullRequestTarget:
|
|
4135
|
-
tagNamespace:
|
|
4136
|
-
versionSource:
|
|
4137
|
-
requiredChecks:
|
|
4138
|
-
critical:
|
|
4139
|
-
releaseNotes:
|
|
4078
|
+
})),
|
|
4079
|
+
baseBranch: optional(nonBlank),
|
|
4080
|
+
mergeBackBranches: optional(array(nonBlank)),
|
|
4081
|
+
pullRequestTarget: optional(nonBlank),
|
|
4082
|
+
tagNamespace: optional(string2()),
|
|
4083
|
+
versionSource: optional(versionSourceSchema),
|
|
4084
|
+
requiredChecks: optional(array(nonBlank)),
|
|
4085
|
+
critical: optional(array(nonBlank)),
|
|
4086
|
+
releaseNotes: optional(unknown())
|
|
4140
4087
|
}).check(superRefine((track, context) => {
|
|
4141
4088
|
for (const [field, values] of [
|
|
4142
4089
|
["mergeBackBranches", track.mergeBackBranches ?? []],
|
|
@@ -4158,67 +4105,67 @@ var releaseTrackSchema = looseObject({
|
|
|
4158
4105
|
});
|
|
4159
4106
|
}
|
|
4160
4107
|
}));
|
|
4161
|
-
var modelRoles =
|
|
4108
|
+
var modelRoles = optional(unknown());
|
|
4162
4109
|
var workspaceConfigSchema = looseObject({
|
|
4163
|
-
name:
|
|
4164
|
-
glob:
|
|
4165
|
-
vcs:
|
|
4166
|
-
provider:
|
|
4167
|
-
defaultTargetBranch:
|
|
4168
|
-
tokenFile:
|
|
4169
|
-
account:
|
|
4170
|
-
host:
|
|
4171
|
-
})),
|
|
4172
|
-
autoApprove:
|
|
4173
|
-
defaultEndpoint:
|
|
4174
|
-
verification:
|
|
4175
|
-
delegation:
|
|
4176
|
-
changelog:
|
|
4177
|
-
docs:
|
|
4178
|
-
changelogPath:
|
|
4179
|
-
prTemplate:
|
|
4180
|
-
releaseNotes:
|
|
4181
|
-
trailers:
|
|
4182
|
-
deleteBranch:
|
|
4183
|
-
cleanup:
|
|
4184
|
-
feedback:
|
|
4185
|
-
liveSessionGuard:
|
|
4186
|
-
shared:
|
|
4187
|
-
fanout:
|
|
4188
|
-
tierModels:
|
|
4189
|
-
deps:
|
|
4190
|
-
installTimeout:
|
|
4191
|
-
})),
|
|
4192
|
-
models:
|
|
4193
|
-
resources:
|
|
4194
|
-
remotes:
|
|
4195
|
-
externalRepos:
|
|
4196
|
-
additiveRiskPaths:
|
|
4197
|
-
autonomy:
|
|
4110
|
+
name: nonBlank,
|
|
4111
|
+
glob: nonBlank,
|
|
4112
|
+
vcs: optional(looseObject({
|
|
4113
|
+
provider: _enum(["gitlab", "github"]),
|
|
4114
|
+
defaultTargetBranch: optional(nonBlank),
|
|
4115
|
+
tokenFile: optional(nonBlank),
|
|
4116
|
+
account: optional(nonBlank),
|
|
4117
|
+
host: optional(unknown())
|
|
4118
|
+
})),
|
|
4119
|
+
autoApprove: optional(union([boolean2(), array(nonBlank)])),
|
|
4120
|
+
defaultEndpoint: optional(unknown()),
|
|
4121
|
+
verification: optional(_enum(["proportional", "self", "independent"])),
|
|
4122
|
+
delegation: optional(unknown()),
|
|
4123
|
+
changelog: optional(unknown()),
|
|
4124
|
+
docs: optional(unknown()),
|
|
4125
|
+
changelogPath: optional(unknown()),
|
|
4126
|
+
prTemplate: optional(unknown()),
|
|
4127
|
+
releaseNotes: optional(unknown()),
|
|
4128
|
+
trailers: optional(boolean2()),
|
|
4129
|
+
deleteBranch: optional(boolean2()),
|
|
4130
|
+
cleanup: optional(unknown()),
|
|
4131
|
+
feedback: optional(unknown()),
|
|
4132
|
+
liveSessionGuard: optional(boolean2()),
|
|
4133
|
+
shared: optional(boolean2()),
|
|
4134
|
+
fanout: optional(looseObject({
|
|
4135
|
+
tierModels: optional(unknown()),
|
|
4136
|
+
deps: optional(unknown()),
|
|
4137
|
+
installTimeout: optional(unknown())
|
|
4138
|
+
})),
|
|
4139
|
+
models: optional(looseObject({ roles: modelRoles })),
|
|
4140
|
+
resources: optional(unknown()),
|
|
4141
|
+
remotes: optional(array(nonBlank.check(refine((pattern) => remotePattern(pattern) !== null, "is not a remote URL (https://host/owner/repo, git@host:owner/repo, a path, or owner/*)")))),
|
|
4142
|
+
externalRepos: optional(array(nonBlank.check(_regex(/^[\w-]+(?:\/\w[\w.-]*)*\/(?:\w[\w.-]*|\*)$/u, "is owner/name, group/project or owner/* on the checkout's forge host, without the host")))),
|
|
4143
|
+
additiveRiskPaths: optional(array(nonBlank)),
|
|
4144
|
+
autonomy: optional(looseObject(Object.fromEntries(["push", "pr", "merge", "release", "rerun"].map((kind) => [
|
|
4198
4145
|
kind,
|
|
4199
|
-
|
|
4200
|
-
])))),
|
|
4201
|
-
youtrack:
|
|
4202
|
-
baseUrl:
|
|
4203
|
-
link_issues:
|
|
4204
|
-
writes:
|
|
4205
|
-
autoHosts:
|
|
4206
|
-
})),
|
|
4207
|
-
issues:
|
|
4208
|
-
provider:
|
|
4209
|
-
link:
|
|
4210
|
-
relation:
|
|
4211
|
-
backlink:
|
|
4212
|
-
link_on_pr:
|
|
4213
|
-
repo:
|
|
4214
|
-
host:
|
|
4215
|
-
})),
|
|
4216
|
-
branchPolicy:
|
|
4217
|
-
commitPolicy:
|
|
4218
|
-
defaultProfile:
|
|
4219
|
-
profiles:
|
|
4220
|
-
releaseTracks:
|
|
4221
|
-
releasePackages:
|
|
4146
|
+
optional(union([boolean2(), literal("verified")]))
|
|
4147
|
+
])))),
|
|
4148
|
+
youtrack: optional(looseObject({
|
|
4149
|
+
baseUrl: optional(nonBlank),
|
|
4150
|
+
link_issues: optional(boolean2()),
|
|
4151
|
+
writes: optional(_enum(["ask", "auto"])),
|
|
4152
|
+
autoHosts: optional(array(nonBlank))
|
|
4153
|
+
})),
|
|
4154
|
+
issues: optional(looseObject({
|
|
4155
|
+
provider: optional(_enum(["github", "gitlab", "youtrack"])),
|
|
4156
|
+
link: optional(boolean2()),
|
|
4157
|
+
relation: optional(unknown()),
|
|
4158
|
+
backlink: optional(boolean2()),
|
|
4159
|
+
link_on_pr: optional(boolean2()),
|
|
4160
|
+
repo: optional(unknown()),
|
|
4161
|
+
host: optional(unknown())
|
|
4162
|
+
})),
|
|
4163
|
+
branchPolicy: optional(workspaceBranchPolicySchema),
|
|
4164
|
+
commitPolicy: optional(workspaceCommitPolicySchema),
|
|
4165
|
+
defaultProfile: optional(nonBlank),
|
|
4166
|
+
profiles: optional(record(nonBlank, workspaceProfileSchema)),
|
|
4167
|
+
releaseTracks: optional(record(nonBlank, releaseTrackSchema)),
|
|
4168
|
+
releasePackages: optional(unknown())
|
|
4222
4169
|
}).check(superRefine((workspace, context) => {
|
|
4223
4170
|
if (workspace.defaultProfile !== undefined && !Object.hasOwn(workspace.profiles ?? {}, workspace.defaultProfile)) {
|
|
4224
4171
|
context.addIssue({
|
|
@@ -4229,11 +4176,11 @@ var workspaceConfigSchema = looseObject({
|
|
|
4229
4176
|
}
|
|
4230
4177
|
}));
|
|
4231
4178
|
var workspacesFileSchema = looseObject({
|
|
4232
|
-
workspaces:
|
|
4233
|
-
models:
|
|
4234
|
-
feedback:
|
|
4235
|
-
account:
|
|
4236
|
-
}))
|
|
4179
|
+
workspaces: optional(array(workspaceConfigSchema)),
|
|
4180
|
+
models: optional(looseObject({ roles: modelRoles })),
|
|
4181
|
+
feedback: optional(looseObject({
|
|
4182
|
+
account: optional(nonBlank)
|
|
4183
|
+
}))
|
|
4237
4184
|
}).check(superRefine((file, context) => {
|
|
4238
4185
|
const names = new Set;
|
|
4239
4186
|
for (const [index, workspace] of (file.workspaces ?? []).entries()) {
|
|
@@ -14737,12 +14684,20 @@ var POWERSHELL_PARAMETERS = [
|
|
|
14737
14684
|
{ name: "workingdirectory", min: 2, aliases: ["wd"], kind: "value" }
|
|
14738
14685
|
];
|
|
14739
14686
|
var powershellRun = (words, stdin) => {
|
|
14687
|
+
const { script, opaque, dir } = powershellParameters(words, stdin);
|
|
14688
|
+
return {
|
|
14689
|
+
script: script !== null && dir !== undefined ? `Set-Location -LiteralPath '${dir.replaceAll("'", "''")}'; ${script}` : script,
|
|
14690
|
+
opaque
|
|
14691
|
+
};
|
|
14692
|
+
};
|
|
14693
|
+
var powershellParameters = (words, stdin) => {
|
|
14740
14694
|
const host = /powershell/i.test(words[0] ?? "") ? "powershell" : "pwsh";
|
|
14741
14695
|
let opaque = false;
|
|
14696
|
+
let dir;
|
|
14742
14697
|
for (let index = 1;index < words.length; index++) {
|
|
14743
14698
|
const word = words[index];
|
|
14744
14699
|
if (!/^[-/]/.test(word))
|
|
14745
|
-
return host === "powershell" ? { script: words.slice(index).join(" "), opaque } : { script: null, opaque: true };
|
|
14700
|
+
return host === "powershell" ? { script: words.slice(index).join(" "), opaque, dir } : { script: null, opaque: true };
|
|
14746
14701
|
const [, key = "", glued] = /^(?:--?|\/)([^:=]*)(?:[:=](.*))?$/s.exec(word) ?? [];
|
|
14747
14702
|
const flag = key.toLowerCase();
|
|
14748
14703
|
const matches = POWERSHELL_PARAMETERS.filter((parameter) => (parameter.host ?? host) === host && flag !== "" && (parameter.aliases?.includes(flag) || flag.length >= parameter.min && parameter.name.startsWith(flag)));
|
|
@@ -14750,13 +14705,19 @@ var powershellRun = (words, stdin) => {
|
|
|
14750
14705
|
opaque = true;
|
|
14751
14706
|
continue;
|
|
14752
14707
|
}
|
|
14753
|
-
const [{ kind }] = matches;
|
|
14708
|
+
const [{ kind, name }] = matches;
|
|
14754
14709
|
const value = glued ?? words[index + 1];
|
|
14710
|
+
if (name === "workingdirectory")
|
|
14711
|
+
dir = value;
|
|
14755
14712
|
if (kind === "info")
|
|
14756
14713
|
return { script: null, opaque: opaque || index < words.length - 1 };
|
|
14757
14714
|
if (kind === "encoded") {
|
|
14758
14715
|
try {
|
|
14759
|
-
return {
|
|
14716
|
+
return {
|
|
14717
|
+
script: Buffer.from(value ?? "", "base64").toString("utf16le"),
|
|
14718
|
+
opaque: true,
|
|
14719
|
+
dir
|
|
14720
|
+
};
|
|
14760
14721
|
} catch {
|
|
14761
14722
|
return { script: null, opaque: true };
|
|
14762
14723
|
}
|
|
@@ -14764,15 +14725,17 @@ var powershellRun = (words, stdin) => {
|
|
|
14764
14725
|
if (kind === "args")
|
|
14765
14726
|
return {
|
|
14766
14727
|
script: value ?? null,
|
|
14767
|
-
opaque: opaque || glued !== undefined || value === undefined
|
|
14728
|
+
opaque: opaque || glued !== undefined || value === undefined,
|
|
14729
|
+
dir
|
|
14768
14730
|
};
|
|
14769
14731
|
if (kind === "script") {
|
|
14770
14732
|
if (value === "-")
|
|
14771
|
-
return { script: stdin ?? null, opaque: true };
|
|
14733
|
+
return { script: stdin ?? null, opaque: true, dir };
|
|
14772
14734
|
const rest = glued === undefined ? words.slice(index + 1) : [glued, ...words.slice(index + 1)];
|
|
14773
14735
|
return {
|
|
14774
14736
|
script: rest.join(" ") || null,
|
|
14775
|
-
opaque: opaque || glued !== undefined || !rest.length
|
|
14737
|
+
opaque: opaque || glued !== undefined || !rest.length,
|
|
14738
|
+
dir
|
|
14776
14739
|
};
|
|
14777
14740
|
}
|
|
14778
14741
|
opaque ||= kind === "opaque";
|
|
@@ -17910,7 +17873,9 @@ var KEYWORDS2 = /^(?:if|elseif|else|switch|while|do|until|for|foreach|try|catch|
|
|
|
17910
17873
|
var WINDOWS_WRITERS = /^(?:xcopy|robocopy|attrib|icacls|cacls|takeown|compact|cipher|expand|extrac32|makecab|fsutil|reg|regedit|setx|schtasks|msiexec|certutil|bitsadmin|replace|subst|mountvol|format|diskpart|wsl|cscript|wscript|mshta|rundll32|regsvr32|call)$/;
|
|
17911
17874
|
var READ_METHODS = /^(?:trim(?:start|end)?|split|contains(?:key|value)?|startswith|endswith|substring|(?:last)?indexof(?:any)?|to(?:lower|upper)(?:invariant)?|tostring|tochararray|pad(?:left|right)|equals|compareto|gettype|gethashcode|normalize|where)$/i;
|
|
17912
17875
|
var READ_MEMBERS = /^(?:name|fullname|basename|extension|length|count|directory|directoryname|parent|root|exists|mode|lastwritetime(?:utc)?|creationtime(?:utc)?|lastaccesstime(?:utc)?|attributes|linktype|target|pspath|pschildname|path|line|linenumber|filename|matches|value|key|keys|values|id|processname|source|definition|version)$/i;
|
|
17913
|
-
var LOADER_ENV = /^(?:GIT_\w*|PAGER|EDITOR|VISUAL|PATH|LD_\w*|DYLD_\w*|NODE_OPTIONS|PYTHON\w*|BASH_ENV|ENV|PERL5(?:OPT|LIB)|RUBY(?:OPT|LIB))$/i;
|
|
17876
|
+
var LOADER_ENV = /^(?:GIT_\w*|SSH_ASKPASS(?:_REQUIRE)?|PAGER|EDITOR|VISUAL|PATH|PATHEXT|PSModulePath|LD_\w*|DYLD_\w*|NODE_OPTIONS|NODE_PATH|BUN_OPTIONS|npm_config_\w*|PYTHON\w*|BASH_ENV|ENV|PROMPT_COMMAND|PERL5(?:OPT|LIB)|RUBY(?:OPT|LIB)|RUSTC_(?:WORKSPACE_)?WRAPPER|CARGO_\w*|JAVA_TOOL_OPTIONS|_JAVA_OPTIONS|JDK_JAVA_OPTIONS|DOTNET_STARTUP_HOOKS|COMPLUS_\w*|CORECLR_\w*)$/i;
|
|
17877
|
+
var GIT_CONFIG_ENV2 = /^(?:HOME|USERPROFILE|HOMEDRIVE|HOMEPATH|XDG_\w+|LESS\w*)$/i;
|
|
17878
|
+
var EXEMPT_LOADER = /^(?:(?:GIT_)?PAGER=cat|GIT_OPTIONAL_LOCKS=0)$/;
|
|
17914
17879
|
var CMD_VAR = /%[^%\s]+%|![^!\s]+!/;
|
|
17915
17880
|
var NULL_SINK = /^(?:\$null|nul|\/dev\/null)$/i;
|
|
17916
17881
|
var pwshCode = (text) => {
|
|
@@ -17963,7 +17928,7 @@ var powershellTextWriter = (text) => {
|
|
|
17963
17928
|
if (statics)
|
|
17964
17929
|
return `${statics[1]}::${statics[2]}`;
|
|
17965
17930
|
for (const [, name] of code.matchAll(/\$\{?env:(\w+)\}?\s*[-+]?=/gi))
|
|
17966
|
-
if (LOADER_ENV.test(name))
|
|
17931
|
+
if (LOADER_ENV.test(name) || GIT_CONFIG_ENV2.test(name))
|
|
17967
17932
|
return `$env:${name} =`;
|
|
17968
17933
|
for (const [, name] of code.matchAll(/\.([A-Za-z_]\w*)\(/g))
|
|
17969
17934
|
if (!READ_METHODS.test(name))
|
|
@@ -19037,14 +19002,13 @@ var commandWords = (words) => {
|
|
|
19037
19002
|
start++;
|
|
19038
19003
|
return words.slice(start);
|
|
19039
19004
|
};
|
|
19040
|
-
var POSIX_LOADER = new RegExp(LOADER_ENV.source);
|
|
19041
19005
|
var loaderAssignment = (words) => {
|
|
19042
19006
|
for (const word of words) {
|
|
19043
19007
|
const name = /^(\w+)\+?=/.exec(word)?.[1];
|
|
19044
|
-
if (
|
|
19008
|
+
if (EXEMPT_LOADER.test(word))
|
|
19045
19009
|
continue;
|
|
19046
19010
|
if (name !== undefined) {
|
|
19047
|
-
if (
|
|
19011
|
+
if (LOADER_ENV.test(name))
|
|
19048
19012
|
return word.split("=")[0];
|
|
19049
19013
|
} else if (!DECLARERS.has(word) && word !== "env" && !word.startsWith("-"))
|
|
19050
19014
|
return;
|
|
@@ -21744,6 +21708,12 @@ var remoteIn = (dir, name, repo) => {
|
|
|
21744
21708
|
const url = configEntries(fs22.readFileSync(path34.join(shared, "config"), "utf8")).find(([key]) => key === `remote.${name}.url`.toLowerCase())?.[1];
|
|
21745
21709
|
return url !== undefined && literalIn(url, repo, true);
|
|
21746
21710
|
};
|
|
21711
|
+
var judgeEnvAllowed = (word) => {
|
|
21712
|
+
if (EXEMPT_LOADER.test(word))
|
|
21713
|
+
return true;
|
|
21714
|
+
const [, name = "", value = ""] = /^(\w+)\+?=([\s\S]*)$/.exec(word) ?? [];
|
|
21715
|
+
return !LOADER_ENV.test(name) && !GIT_CONFIG_ENV2.test(name) && !/[$`]/.test(value);
|
|
21716
|
+
};
|
|
21747
21717
|
var judgeGit = (command, repo, cwd, depth = 0) => {
|
|
21748
21718
|
const runsGit = /\bgit\b/.test(command);
|
|
21749
21719
|
for (const segment of segmentsOf(command)) {
|
|
@@ -21755,6 +21725,15 @@ var judgeGit = (command, repo, cwd, depth = 0) => {
|
|
|
21755
21725
|
const lead = [];
|
|
21756
21726
|
while (/^\w+\+?=/.test(words[at] ?? ""))
|
|
21757
21727
|
lead.push(words[at++]);
|
|
21728
|
+
if (words[at] === "env" && !segment.expands?.includes(at)) {
|
|
21729
|
+
let after = at + 1;
|
|
21730
|
+
while (/^\w+\+?=/.test(words[after] ?? ""))
|
|
21731
|
+
after++;
|
|
21732
|
+
if (!words[after]?.startsWith("-")) {
|
|
21733
|
+
lead.push(...words.slice(at + 1, after));
|
|
21734
|
+
at = after;
|
|
21735
|
+
}
|
|
21736
|
+
}
|
|
21758
21737
|
const name = path34.basename(words[at] ?? "");
|
|
21759
21738
|
let start = words.findIndex((word) => /(?:^|[\\/])git(?:\.exe)?(?:=|$)/.test(word));
|
|
21760
21739
|
if (start > at) {
|
|
@@ -21775,7 +21754,7 @@ var judgeGit = (command, repo, cwd, depth = 0) => {
|
|
|
21775
21754
|
if (/^(?:export|declare|local|readonly|typeset)$/.test(name))
|
|
21776
21755
|
lead.push(...words.slice(at + 1).filter((word) => /^\w+\+?=/.test(word)));
|
|
21777
21756
|
for (const word of runsGit ? lead : lead.filter((set) => /^(?:BASH_)?ENV=/.test(set)))
|
|
21778
|
-
if (
|
|
21757
|
+
if (!judgeEnvAllowed(word))
|
|
21779
21758
|
why ??= `\`${word}\` is not allowed`;
|
|
21780
21759
|
let index = start < 0 ? words.length : start + 1;
|
|
21781
21760
|
let dir = "";
|
package/dist/workit-hook.js
CHANGED
|
@@ -101,7 +101,7 @@ if (quiet) {
|
|
|
101
101
|
`);
|
|
102
102
|
} else {
|
|
103
103
|
try {
|
|
104
|
-
const { runCodexHook } = await import("./workit-hook-
|
|
104
|
+
const { runCodexHook } = await import("./workit-hook-w8qtakz2.js");
|
|
105
105
|
await runCodexHook([payload]);
|
|
106
106
|
} catch (error) {
|
|
107
107
|
const { answerRuntimeFailure } = await import("./workit-hook-2j7nwxvz.js");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workit-dev/codex",
|
|
3
|
-
"version": "2.26.
|
|
3
|
+
"version": "2.26.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Workit Codex CLI/desktop plugin — shared MCP transport, hooks, method skills, and verifier/reviewer/implementer agents",
|
|
6
6
|
"keywords": [
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"build": "bun scripts/build.ts"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@workit-dev/core": "^2.26.
|
|
45
|
-
"@workit-dev/mcp": "^2.26.
|
|
44
|
+
"@workit-dev/core": "^2.26.2",
|
|
45
|
+
"@workit-dev/mcp": "^2.26.2"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
48
48
|
"node": ">=24"
|