wicked-crew 0.5.0 → 0.7.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/api/audit.d.ts +70 -0
- package/dist/api/audit.d.ts.map +1 -0
- package/dist/api/audit.js +131 -0
- package/dist/api/audit.js.map +1 -0
- package/dist/api/auth.d.ts +192 -0
- package/dist/api/auth.d.ts.map +1 -0
- package/dist/api/auth.js +515 -0
- package/dist/api/auth.js.map +1 -0
- package/dist/api/gate-cache.d.ts +8 -0
- package/dist/api/gate-cache.d.ts.map +1 -1
- package/dist/api/gate-cache.js +10 -0
- package/dist/api/gate-cache.js.map +1 -1
- package/dist/api/guidance-index.d.ts +39 -0
- package/dist/api/guidance-index.d.ts.map +1 -0
- package/dist/api/guidance-index.js +67 -0
- package/dist/api/guidance-index.js.map +1 -0
- package/dist/api/open-path.d.ts +34 -0
- package/dist/api/open-path.d.ts.map +1 -0
- package/dist/api/open-path.js +101 -0
- package/dist/api/open-path.js.map +1 -0
- package/dist/api/retry-index.d.ts +30 -0
- package/dist/api/retry-index.d.ts.map +1 -0
- package/dist/api/retry-index.js +45 -0
- package/dist/api/retry-index.js.map +1 -0
- package/dist/api/routes.d.ts +164 -1
- package/dist/api/routes.d.ts.map +1 -1
- package/dist/api/routes.js +769 -21
- package/dist/api/routes.js.map +1 -1
- package/dist/api/run-files.d.ts +63 -0
- package/dist/api/run-files.d.ts.map +1 -0
- package/dist/api/run-files.js +271 -0
- package/dist/api/run-files.js.map +1 -0
- package/dist/api/seat-health.d.ts +55 -0
- package/dist/api/seat-health.d.ts.map +1 -0
- package/dist/api/seat-health.js +273 -0
- package/dist/api/seat-health.js.map +1 -0
- package/dist/api/seat-signin.d.ts +27 -0
- package/dist/api/seat-signin.d.ts.map +1 -0
- package/dist/api/seat-signin.js +143 -0
- package/dist/api/seat-signin.js.map +1 -0
- package/dist/api/server.d.ts +190 -3
- package/dist/api/server.d.ts.map +1 -1
- package/dist/api/server.js +365 -11
- package/dist/api/server.js.map +1 -1
- package/dist/api/stall-watchdog.d.ts +62 -0
- package/dist/api/stall-watchdog.d.ts.map +1 -0
- package/dist/api/stall-watchdog.js +138 -0
- package/dist/api/stall-watchdog.js.map +1 -0
- package/dist/cli/index.js +171 -12
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/mcp.d.ts +14 -0
- package/dist/cli/mcp.d.ts.map +1 -0
- package/dist/cli/mcp.js +119 -0
- package/dist/cli/mcp.js.map +1 -0
- package/dist/core/adapter.d.ts +87 -10
- package/dist/core/adapter.d.ts.map +1 -1
- package/dist/core/adapter.js +347 -28
- package/dist/core/adapter.js.map +1 -1
- package/dist/core/bridge-reaper.d.ts +134 -0
- package/dist/core/bridge-reaper.d.ts.map +1 -0
- package/dist/core/bridge-reaper.js +286 -0
- package/dist/core/bridge-reaper.js.map +1 -0
- package/dist/core/deliver.d.ts +118 -0
- package/dist/core/deliver.d.ts.map +1 -0
- package/dist/core/deliver.js +241 -0
- package/dist/core/deliver.js.map +1 -0
- package/dist/core/deliverable-floor.d.ts +103 -0
- package/dist/core/deliverable-floor.d.ts.map +1 -0
- package/dist/core/deliverable-floor.js +173 -0
- package/dist/core/deliverable-floor.js.map +1 -0
- package/dist/core/exec.d.ts +2 -0
- package/dist/core/exec.d.ts.map +1 -1
- package/dist/core/exec.js.map +1 -1
- package/dist/core/types.d.ts +92 -352
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/types.js +14 -4
- package/dist/core/types.js.map +1 -1
- package/dist/interactive/bridge-pool.d.ts +99 -0
- package/dist/interactive/bridge-pool.d.ts.map +1 -0
- package/dist/interactive/bridge-pool.js +244 -0
- package/dist/interactive/bridge-pool.js.map +1 -0
- package/dist/interactive/bridge-root.d.ts +36 -0
- package/dist/interactive/bridge-root.d.ts.map +1 -0
- package/dist/interactive/bridge-root.js +48 -0
- package/dist/interactive/bridge-root.js.map +1 -0
- package/dist/interactive/chat-events.d.ts +207 -0
- package/dist/interactive/chat-events.d.ts.map +1 -0
- package/dist/interactive/chat-events.js +769 -0
- package/dist/interactive/chat-events.js.map +1 -0
- package/dist/interactive/demo-events.d.ts +283 -0
- package/dist/interactive/demo-events.d.ts.map +1 -0
- package/dist/interactive/demo-events.js +889 -0
- package/dist/interactive/demo-events.js.map +1 -0
- package/dist/interactive/draft-events.d.ts +224 -0
- package/dist/interactive/draft-events.d.ts.map +1 -0
- package/dist/interactive/draft-events.js +793 -0
- package/dist/interactive/draft-events.js.map +1 -0
- package/dist/interactive/edit-events.d.ts +194 -0
- package/dist/interactive/edit-events.d.ts.map +1 -0
- package/dist/interactive/edit-events.js +601 -0
- package/dist/interactive/edit-events.js.map +1 -0
- package/dist/interactive/ledger.d.ts +39 -0
- package/dist/interactive/ledger.d.ts.map +1 -0
- package/dist/interactive/ledger.js +93 -0
- package/dist/interactive/ledger.js.map +1 -0
- package/dist/interactive/proxy-routes.d.ts +39 -0
- package/dist/interactive/proxy-routes.d.ts.map +1 -0
- package/dist/interactive/proxy-routes.js +189 -0
- package/dist/interactive/proxy-routes.js.map +1 -0
- package/dist/interactive/repo-snapshot.d.ts +100 -0
- package/dist/interactive/repo-snapshot.d.ts.map +1 -0
- package/dist/interactive/repo-snapshot.js +289 -0
- package/dist/interactive/repo-snapshot.js.map +1 -0
- package/dist/interactive/ws-relay.d.ts +85 -0
- package/dist/interactive/ws-relay.d.ts.map +1 -0
- package/dist/interactive/ws-relay.js +191 -0
- package/dist/interactive/ws-relay.js.map +1 -0
- package/dist/projects/activity.d.ts +29 -0
- package/dist/projects/activity.d.ts.map +1 -0
- package/dist/projects/activity.js +172 -0
- package/dist/projects/activity.js.map +1 -0
- package/dist/projects/charter.d.ts +28 -0
- package/dist/projects/charter.d.ts.map +1 -0
- package/dist/projects/charter.js +53 -0
- package/dist/projects/charter.js.map +1 -0
- package/dist/projects/events.d.ts +55 -0
- package/dist/projects/events.d.ts.map +1 -0
- package/dist/projects/events.js +141 -0
- package/dist/projects/events.js.map +1 -0
- package/dist/projects/graph-paths.d.ts +92 -0
- package/dist/projects/graph-paths.d.ts.map +1 -0
- package/dist/projects/graph-paths.js +130 -0
- package/dist/projects/graph-paths.js.map +1 -0
- package/dist/projects/graph.d.ts +179 -0
- package/dist/projects/graph.d.ts.map +1 -0
- package/dist/projects/graph.js +775 -0
- package/dist/projects/graph.js.map +1 -0
- package/dist/projects/membership-index.d.ts +25 -0
- package/dist/projects/membership-index.d.ts.map +1 -0
- package/dist/projects/membership-index.js +46 -0
- package/dist/projects/membership-index.js.map +1 -0
- package/dist/projects/routes.d.ts +97 -0
- package/dist/projects/routes.d.ts.map +1 -0
- package/dist/projects/routes.js +510 -0
- package/dist/projects/routes.js.map +1 -0
- package/dist/projects/settings.d.ts +32 -0
- package/dist/projects/settings.d.ts.map +1 -0
- package/dist/projects/settings.js +64 -0
- package/dist/projects/settings.js.map +1 -0
- package/dist/qe/acceptance.d.ts +137 -0
- package/dist/qe/acceptance.d.ts.map +1 -0
- package/dist/qe/acceptance.js +249 -0
- package/dist/qe/acceptance.js.map +1 -0
- package/dist/qe/gate-events.d.ts +111 -0
- package/dist/qe/gate-events.d.ts.map +1 -0
- package/dist/qe/gate-events.js +168 -0
- package/dist/qe/gate-events.js.map +1 -0
- package/dist/qe/ledger.d.ts +100 -0
- package/dist/qe/ledger.d.ts.map +1 -0
- package/dist/qe/ledger.js +154 -0
- package/dist/qe/ledger.js.map +1 -0
- package/dist/studio/assets/index-8p8uwCxG.js +530 -0
- package/dist/studio/assets/index-D6S9zUtO.css +32 -0
- package/dist/studio/index.html +5 -3
- package/package.json +10 -4
- package/dist/studio/assets/index-DaaUU8Ep.css +0 -32
- package/dist/studio/assets/index-Fu5DRC00.js +0 -423
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THE DELIVERABLE FLOOR (crew#311) — "done" is re-derived from the artifact, never asserted.
|
|
3
|
+
*
|
|
4
|
+
* ## The defect
|
|
5
|
+
*
|
|
6
|
+
* A governed unit that produced NOTHING still passed its execution gate on the strength of a
|
|
7
|
+
* prose reply. The engine's only universal floor is the SUBSTANCE floor
|
|
8
|
+
* (wicked-core `actor.rs`, "phase produced no reviewable substance"): a governed
|
|
9
|
+
* Creator/Neutral unit is rejected only when its output carries BOTH under 200 trimmed chars
|
|
10
|
+
* of prose AND no worktree change. So ~200 characters of narration — "I'll read the design
|
|
11
|
+
* spec, let me check the API types…" — clears it, with no file anywhere. Prose length stood in
|
|
12
|
+
* for evidence.
|
|
13
|
+
*
|
|
14
|
+
* The engine has two real evidence instruments, and neither reaches a run of this shape:
|
|
15
|
+
*
|
|
16
|
+
* 1. `validator_pin` → the built-in EVIDENCE floor (`builtin_floors::EVIDENCE_FLOOR_PIN`,
|
|
17
|
+
* criterion "the run left a change in its worktree (done is re-derived from the diff, never
|
|
18
|
+
* asserted)"). It re-verifies a git DIFF, and is fail-closed on a run with no worktree — so
|
|
19
|
+
* an UNBOUND run (`repoRef` omitted, `workdir: null`) can never satisfy it. Every crew
|
|
20
|
+
* interactive seam launches unbound on purpose (wicked-core#293/#294), and their deliverable
|
|
21
|
+
* is a FILE in a declared write root, invisible to a diff.
|
|
22
|
+
* 2. `required_deliverables` → enforced by wicked-core as of FINDING-101, but only in the
|
|
23
|
+
* WRAPPED-CLI runner (`execute_wrapped.rs`), only against the unit's own cwd, and any
|
|
24
|
+
* absolute or `..`-escaping path is counted MISSING by construction. The ACP runner — the
|
|
25
|
+
* path a real seat takes — never consults it. So for a run whose deliverable is an absolute
|
|
26
|
+
* path under `extraWriteRoots`, declaring it there would fail every run on one runner and
|
|
27
|
+
* check nothing on the other. That gap is wicked-core's to close
|
|
28
|
+
* (wicked-core#297, items 1 and 3); once it is, this phase can retire in favour of the
|
|
29
|
+
* engine field. Crew must not paper over it meanwhile by declaring something unverifiable.
|
|
30
|
+
*
|
|
31
|
+
* ## What this module does
|
|
32
|
+
*
|
|
33
|
+
* It gives crew the instrument it can honestly own: a deterministic TOOL phase, appended to a
|
|
34
|
+
* PER-RUN copy of the workflow def (the exact mechanism `core/deliver.ts` proved for
|
|
35
|
+
* `deliver: "pr"` — the shared def is never mutated, nothing lands in the overlay dir, the
|
|
36
|
+
* catalog never grows a per-run entry), which asserts that the artifacts the launcher declared
|
|
37
|
+
* EXIST and are non-empty. A Tool phase's failure surface is its exit code: wicked-core's
|
|
38
|
+
* `run_tool_cmd` maps a non-zero exit to `StepStatus::Failed`, which fails the unit and the run
|
|
39
|
+
* through the unchanged completion path. No LLM, no worktree, no judgement about the content —
|
|
40
|
+
* only "the phase promised this file; is it there".
|
|
41
|
+
*
|
|
42
|
+
* That is deliberately a FLOOR and not a review, in exactly the sense `builtin_floors` documents:
|
|
43
|
+
* it proves an artifact exists. It says nothing about whether the artifact is correct, or even
|
|
44
|
+
* related to the task. What it removes is the failure mode crew#311 recorded — a unit whose
|
|
45
|
+
* `Write` was policy-denied, which therefore produced no file at all, reporting done.
|
|
46
|
+
*
|
|
47
|
+
* ## The report
|
|
48
|
+
*
|
|
49
|
+
* The script prints what was EXPECTED and what was FOUND before it exits, on both branches, so
|
|
50
|
+
* the failure is legible from the unit output alone: which paths were declared, which exist
|
|
51
|
+
* (with their size), and which are missing and why (absent / empty file / empty directory).
|
|
52
|
+
* An operator reading a failed run must never have to guess what the phase was supposed to
|
|
53
|
+
* produce.
|
|
54
|
+
*/
|
|
55
|
+
/** The id of the appended floor phase — also the collision probe when a def already carries one. */
|
|
56
|
+
export const DELIVERABLE_FLOOR_PHASE_ID = 'verify-deliverables';
|
|
57
|
+
/** The marker line the failing branch prints. Asserted by tests and greppable in a unit output. */
|
|
58
|
+
export const DELIVERABLE_FLOOR_FAILURE_MARKER = '[wicked-crew] DELIVERABLE FLOOR FAILED';
|
|
59
|
+
/**
|
|
60
|
+
* The floor program, run as `node -e <script> <path...>`.
|
|
61
|
+
*
|
|
62
|
+
* Node rather than a shell: this must work identically on macOS, Linux, and Windows, and the
|
|
63
|
+
* daemon already IS node, so `process.execPath` is a guaranteed-present absolute interpreter
|
|
64
|
+
* (see {@link deliverableFloorPhase}). `-e` runs CommonJS, so `require` is available; the
|
|
65
|
+
* declared paths arrive as `process.argv.slice(1)`, passed as argv rather than interpolated
|
|
66
|
+
* into a shell string so a path containing a space, a quote, or a `$` cannot be re-parsed.
|
|
67
|
+
*
|
|
68
|
+
* A path counts as PRODUCED when it exists AND carries bytes: a non-empty file, or a directory
|
|
69
|
+
* with at least one entry (a phase may declare a directory of outputs). A zero-byte file is
|
|
70
|
+
* NOT evidence — it is the same "nothing was produced" this exists to catch, and the draft/chat
|
|
71
|
+
* seams already treated an empty deliverable as a failure at their own post-hoc check.
|
|
72
|
+
*/
|
|
73
|
+
export function deliverableFloorScript() {
|
|
74
|
+
return [
|
|
75
|
+
'const fs=require("node:fs");',
|
|
76
|
+
'const want=process.argv.slice(1);',
|
|
77
|
+
'const found=[],missing=[];',
|
|
78
|
+
'for(const p of want){',
|
|
79
|
+
'let s=null;',
|
|
80
|
+
'try{s=fs.statSync(p)}catch(e){s=null}',
|
|
81
|
+
'if(s===null){missing.push(p+" (does not exist)");continue}',
|
|
82
|
+
'if(s.isDirectory()){',
|
|
83
|
+
'let n=0;try{n=fs.readdirSync(p).length}catch(e){n=0}',
|
|
84
|
+
'if(n===0){missing.push(p+" (directory is empty)")}else{found.push(p+" (directory, "+n+" entries)")}',
|
|
85
|
+
'continue}',
|
|
86
|
+
'if(s.size===0){missing.push(p+" (file is empty, 0 bytes)");continue}',
|
|
87
|
+
'found.push(p+" ("+s.size+" bytes)");',
|
|
88
|
+
'}',
|
|
89
|
+
'console.log("[wicked-crew] deliverable floor: this phase declared "+want.length+" artifact(s).");',
|
|
90
|
+
'console.log("[wicked-crew] EXPECTED: "+(want.length?want.join(", "):"(none)"));',
|
|
91
|
+
'console.log("[wicked-crew] FOUND: "+(found.length?found.join(", "):"(nothing)"));',
|
|
92
|
+
'if(missing.length===0){',
|
|
93
|
+
'console.log("[wicked-crew] every declared deliverable exists and carries bytes — done is re-derived from the artifact, not asserted.");',
|
|
94
|
+
'process.exit(0)}',
|
|
95
|
+
'console.log("[wicked-crew] MISSING: "+missing.join(", "));',
|
|
96
|
+
`console.log(${JSON.stringify(DELIVERABLE_FLOOR_FAILURE_MARKER)}+" — the run reported done without producing the artifact(s) it was launched to produce. A prose reply is not a deliverable (crew#311).");`,
|
|
97
|
+
'process.exit(1);',
|
|
98
|
+
].join('');
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* The floor PhaseDef for `paths`.
|
|
102
|
+
*
|
|
103
|
+
* `cmd[0]` is `process.execPath` — the ABSOLUTE path of the node binary already running the
|
|
104
|
+
* daemon — not the bare name `node`. wicked-core preflights every Tool phase at launch
|
|
105
|
+
* (`workflow::preflight_tool_phases`) and REFUSES to start a run whose tool binary does not
|
|
106
|
+
* resolve; a bare `node` resolves only if the engine's PATH happens to carry one, which is
|
|
107
|
+
* exactly the kind of environment-dependent gate that fails in production and passes in tests.
|
|
108
|
+
* The composed def is per-run and hot-registered only, so baking a machine-local path into it
|
|
109
|
+
* costs nothing: it never reaches the catalog or the overlay dir.
|
|
110
|
+
*
|
|
111
|
+
* `role: 'neutral'` + `executes_code: false` + `governed`-free Tool dispatch: this phase is
|
|
112
|
+
* deterministic tooling, so the substance floor, the agent judge, and the input-governance fold
|
|
113
|
+
* do not apply to it — its verdict IS its exit code.
|
|
114
|
+
*/
|
|
115
|
+
export function deliverableFloorPhase(paths, dependsOn = []) {
|
|
116
|
+
return {
|
|
117
|
+
id: DELIVERABLE_FLOOR_PHASE_ID,
|
|
118
|
+
kind: 'test',
|
|
119
|
+
executor: {
|
|
120
|
+
type: 'tool',
|
|
121
|
+
cmd: [process.execPath, '-e', deliverableFloorScript(), ...paths],
|
|
122
|
+
},
|
|
123
|
+
gate_type: 'execution',
|
|
124
|
+
gate: 'auto',
|
|
125
|
+
executes_code: false,
|
|
126
|
+
// NOT `verified_evidence: true`: wicked-core arms any `verified_evidence` phase that names no
|
|
127
|
+
// pin of its own with the worktree-DIFF floor (FINDING-055), which is fail-closed on the
|
|
128
|
+
// repo-less runs this phase exists to serve — it would deny every one of them for the wrong
|
|
129
|
+
// reason. This phase carries its own re-verification in its exit code.
|
|
130
|
+
verified_evidence: false,
|
|
131
|
+
// NOT the declared paths either: core checks `required_deliverables` relative to the unit's
|
|
132
|
+
// cwd and counts every absolute path as missing (see the module doc; wicked-core#297).
|
|
133
|
+
// Declaring them here would fail the run on the wrapped-CLI path for the wrong reason.
|
|
134
|
+
required_deliverables: [],
|
|
135
|
+
depends_on: dependsOn,
|
|
136
|
+
role: 'neutral',
|
|
137
|
+
skill_ref: null,
|
|
138
|
+
allowed_skills: [],
|
|
139
|
+
validator_pin: null,
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Compose a PER-RUN def: `base`'s phases (untouched — the shared def is never mutated) plus the
|
|
144
|
+
* deliverable floor appended last, under a run-scoped id. Mirrors `composeDeliverWorkflow`'s
|
|
145
|
+
* contract exactly, including the id charset/length rules `registerWorkflow` enforces and the
|
|
146
|
+
* deliberate absence of `is_system` (core's register schema rejects unknown fields on this path,
|
|
147
|
+
* and a composed def is engine input, not catalog data).
|
|
148
|
+
*
|
|
149
|
+
* Throws on an empty `paths` list — a floor over nothing would pass vacuously, which is the
|
|
150
|
+
* defect, not the fix. Throws on a def that already carries the floor phase, for the same
|
|
151
|
+
* ambiguity reason `composeDeliverWorkflow` does.
|
|
152
|
+
*/
|
|
153
|
+
export function composeDeliverableFloor(base, runId, paths) {
|
|
154
|
+
if (paths.length === 0) {
|
|
155
|
+
throw new Error('requireDeliverables: at least one path must be declared — a floor over nothing passes vacuously');
|
|
156
|
+
}
|
|
157
|
+
for (const p of paths) {
|
|
158
|
+
if (p.trim().length === 0) {
|
|
159
|
+
throw new Error('requireDeliverables: a declared deliverable path must not be blank');
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
if (base.phases.some((p) => p.id === DELIVERABLE_FLOOR_PHASE_ID)) {
|
|
163
|
+
throw new Error(`workflow '${base.id}' already has a '${DELIVERABLE_FLOOR_PHASE_ID}' phase — launch it without requireDeliverables`);
|
|
164
|
+
}
|
|
165
|
+
const last = base.phases[base.phases.length - 1];
|
|
166
|
+
const safeRunId = runId.replace(/[^a-zA-Z0-9._-]/g, '_');
|
|
167
|
+
const composedId = `${base.id}-verified-${safeRunId}`.slice(0, 128);
|
|
168
|
+
return {
|
|
169
|
+
id: composedId,
|
|
170
|
+
phases: [...base.phases, deliverableFloorPhase(paths, last !== undefined ? [last.id] : [])],
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
//# sourceMappingURL=deliverable-floor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deliverable-floor.js","sourceRoot":"","sources":["../../src/core/deliverable-floor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AAIH,oGAAoG;AACpG,MAAM,CAAC,MAAM,0BAA0B,GAAG,qBAAqB,CAAC;AAEhE,mGAAmG;AACnG,MAAM,CAAC,MAAM,gCAAgC,GAC3C,wCAAwC,CAAC;AAE3C;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,sBAAsB;IACpC,OAAO;QACL,8BAA8B;QAC9B,mCAAmC;QACnC,4BAA4B;QAC5B,uBAAuB;QACvB,aAAa;QACb,uCAAuC;QACvC,4DAA4D;QAC5D,sBAAsB;QACtB,sDAAsD;QACtD,qGAAqG;QACrG,WAAW;QACX,sEAAsE;QACtE,sCAAsC;QACtC,GAAG;QACH,mGAAmG;QACnG,iFAAiF;QACjF,sFAAsF;QACtF,yBAAyB;QACzB,yIAAyI;QACzI,kBAAkB;QAClB,6DAA6D;QAC7D,eAAe,IAAI,CAAC,SAAS,CAAC,gCAAgC,CAAC,4IAA4I;QAC3M,kBAAkB;KACnB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACb,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAA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pH,CAAC;IACJ,CAAC;IACD,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACjD,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,CAAC,kBAAkB,EAAE,GAAG,CAAC,CAAC;IACzD,MAAM,UAAU,GAAG,GAAG,IAAI,CAAC,EAAE,aAAa,SAAS,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;IACpE,OAAO;QACL,EAAE,EAAE,UAAU;QACd,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,qBAAqB,CAAC,KAAK,EAAE,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;KAC5F,CAAC;AACJ,CAAC"}
|
package/dist/core/exec.d.ts
CHANGED
|
@@ -18,6 +18,8 @@ type ExecOpts = {
|
|
|
18
18
|
timeout?: number;
|
|
19
19
|
cwd?: string;
|
|
20
20
|
env?: NodeJS.ProcessEnv;
|
|
21
|
+
/** Suppress the console window a child would open on Windows (git, etc.). */
|
|
22
|
+
windowsHide?: boolean;
|
|
21
23
|
/** `number | undefined` on purpose: `exactOptionalPropertyTypes` would otherwise reject the very
|
|
22
24
|
* shape this module defends against, making the guard below untypeable and untestable. */
|
|
23
25
|
maxBuffer?: number | undefined;
|
package/dist/core/exec.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exec.d.ts","sourceRoot":"","sources":["../../src/core/exec.ts"],"names":[],"mappings":"AA+BA;;sFAEsF;AACtF,eAAO,MAAM,qBAAqB,QAAmB,CAAC;AAUtD;;;;oDAIoD;AACpD,qBAAa,kBAAmB,SAAQ,KAAK;IAEzC,QAAQ,CAAC,IAAI,EAAE,MAAM;IACrB,QAAQ,CAAC,UAAU,EAAE,MAAM;gBADlB,IAAI,E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