@linzumi/cli 1.0.182 → 1.0.183
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/README.md +1 -1
- package/dist/impl-res/cloud-supervisor.mjs +11 -11
- package/dist/impl-res/index.js +103 -103
- package/dist/impl-ts/cloud-supervisor.mjs +11 -11
- package/dist/impl-ts/index.js +420 -420
- package/dist/impl-ts/mcp-server.mjs +17 -17
- package/dist/mcp-server.mjs +17 -17
- package/package.json +1 -1
- package/scripts/build-harness-codex-parity-oracle.mjs +8 -0
- package/scripts/build-mcp-parity-oracle.mjs +12 -1
- package/scripts/build-onboarding-discovery-parity-oracle.mjs +10 -2
- package/scripts/build-vm-sandbox-parity-oracle.mjs +7 -0
package/package.json
CHANGED
|
@@ -85,6 +85,7 @@ import {
|
|
|
85
85
|
codexThreadRuntimeOverrides,
|
|
86
86
|
codexTurnRuntimeOverrides,
|
|
87
87
|
codexWireApprovalPolicy,
|
|
88
|
+
codexWireApprovalPolicyIsNeverEquivalentGranular,
|
|
88
89
|
} from './src/codexRuntimeOptions';
|
|
89
90
|
import { upstreamHttpStatusFate } from './src/terminalFailureRetry';
|
|
90
91
|
import {
|
|
@@ -282,6 +283,13 @@ function runCase(input) {
|
|
|
282
283
|
sandboxedNeverDefault: input.sandboxedNeverDefault,
|
|
283
284
|
})
|
|
284
285
|
);
|
|
286
|
+
case 'wireApprovalPolicyIsNeverEquivalentGranular':
|
|
287
|
+
// Total (never throws) - the #3819 pin-scoping predicate.
|
|
288
|
+
return codexWireApprovalPolicyIsNeverEquivalentGranular(
|
|
289
|
+
input.approvalPolicy ?? undefined,
|
|
290
|
+
input.sandbox ?? undefined,
|
|
291
|
+
{ sandboxedNeverDefault: input.sandboxedNeverDefault }
|
|
292
|
+
);
|
|
285
293
|
case 'threadRuntimeOverrides':
|
|
286
294
|
return tryCall(() => codexThreadRuntimeOverrides(input.options));
|
|
287
295
|
case 'turnRuntimeOverrides':
|
|
@@ -197,7 +197,18 @@ async function handle(testCase) {
|
|
|
197
197
|
}
|
|
198
198
|
return {
|
|
199
199
|
config,
|
|
200
|
-
|
|
200
|
+
// Both approval-scoping branches (#3819 security P1): the pin rides
|
|
201
|
+
// codexArgs ONLY for granular never-equivalent sessions.
|
|
202
|
+
codexArgs: outcome(() =>
|
|
203
|
+
codexMcpConfigArgs(config.value, {
|
|
204
|
+
neverEquivalentGranularApprovalPolicy: false,
|
|
205
|
+
})
|
|
206
|
+
),
|
|
207
|
+
codexArgsNeverEquivalentGranular: outcome(() =>
|
|
208
|
+
codexMcpConfigArgs(config.value, {
|
|
209
|
+
neverEquivalentGranularApprovalPolicy: true,
|
|
210
|
+
})
|
|
211
|
+
),
|
|
201
212
|
codexToml: outcome(() => codexMcpConfigToml(config.value)),
|
|
202
213
|
claudeCodeJson: outcome(() => claudeCodeMcpConfigJson(config.value)),
|
|
203
214
|
claudeSdkMcpServers: outcome(() =>
|
|
@@ -182,7 +182,12 @@ function handleAgentSeams(testCase) {
|
|
|
182
182
|
operatingMode: testCase.mcp.operatingMode,
|
|
183
183
|
toolScope: testCase.mcp.toolScope,
|
|
184
184
|
cwd: testCase.mcp.cwd,
|
|
185
|
-
})
|
|
185
|
+
}),
|
|
186
|
+
// The discovery exec lane rides the plain approval_policy
|
|
187
|
+
// "never" config string, never the granular never-equivalent
|
|
188
|
+
// wire object - no tool-approval pin (#3819 security P1),
|
|
189
|
+
// matching onboardingDiscoveryAgent.ts.
|
|
190
|
+
{ neverEquivalentGranularApprovalPolicy: false }
|
|
186
191
|
),
|
|
187
192
|
dangerousReason: assessment.dangerous ? assessment.reason : null,
|
|
188
193
|
};
|
|
@@ -372,7 +377,10 @@ await build({
|
|
|
372
377
|
platform: 'node',
|
|
373
378
|
target: 'node20',
|
|
374
379
|
format: 'esm',
|
|
375
|
-
outfile: join(
|
|
380
|
+
outfile: join(
|
|
381
|
+
packageRoot,
|
|
382
|
+
'.differential/onboarding-discovery-parity-oracle.mjs'
|
|
383
|
+
),
|
|
376
384
|
minify: false,
|
|
377
385
|
sourcemap: false,
|
|
378
386
|
legalComments: 'none',
|
|
@@ -1023,6 +1023,13 @@ async function handle(testCase) {
|
|
|
1023
1023
|
...(testCase.mcp.agentSession === undefined
|
|
1024
1024
|
? {}
|
|
1025
1025
|
: { agentSession: testCase.mcp.agentSession }),
|
|
1026
|
+
...(testCase.mcp.neverEquivalentGranularApprovalPolicy ===
|
|
1027
|
+
undefined
|
|
1028
|
+
? {}
|
|
1029
|
+
: {
|
|
1030
|
+
neverEquivalentGranularApprovalPolicy:
|
|
1031
|
+
testCase.mcp.neverEquivalentGranularApprovalPolicy,
|
|
1032
|
+
}),
|
|
1026
1033
|
},
|
|
1027
1034
|
mcpServerBundlePath: bundlePath,
|
|
1028
1035
|
})
|