@ai-workbench/remote-agent 0.9.0-toolbridge.2 → 0.9.0-toolbridge.7
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 +12 -3
- package/dist/acp.d.ts +10 -0
- package/dist/acp.js +71 -6
- package/dist/agents.d.ts +2 -0
- package/dist/agents.js +4 -3
- package/dist/claude-local.d.ts +1 -0
- package/dist/claude-local.js +2 -2
- package/dist/client.js +1 -1
- package/dist/cloud-failure.d.ts +11 -0
- package/dist/cloud-failure.js +54 -0
- package/dist/employee-mcp.d.ts +8 -24
- package/dist/employee-mcp.js +24 -188
- package/dist/employee-tools.d.ts +5 -22
- package/dist/employee-tools.js +4 -292
- package/dist/index.d.ts +4 -0
- package/dist/index.js +31 -15
- package/dist/model-catalog.d.ts +1 -1
- package/dist/model-catalog.js +4 -0
- package/dist/presentation.js +1 -0
- package/dist/provider.js +4 -2
- package/dist/toolbridge-loop.js +3 -0
- package/dist/toolbridge-table.js +4 -1
- package/dist/toolbridge.d.ts +1 -0
- package/dist/toolbridge.js +1 -0
- package/package.json +10 -6
- package/helpers/ripgrep/LICENSE-vscode +0 -13
- package/helpers/ripgrep/PROVENANCE.md +0 -9
- package/helpers/ripgrep/darwin-arm64/rg +0 -0
- package/helpers/ripgrep/darwin-x64/rg +0 -0
- package/helpers/ripgrep/manifest.json +0 -56
- package/helpers/ripgrep/notices/COPYING-ripgrep +0 -3
- package/helpers/ripgrep/notices/DEPENDENCIES.json +0 -946
- package/helpers/ripgrep/notices/LICENCE-PCRE2.md +0 -103
- package/helpers/ripgrep/notices/LICENSE-MIT-ripgrep +0 -21
- package/helpers/ripgrep/notices/UNLICENSE-ripgrep +0 -24
- package/helpers/ripgrep/notices/aho-corasick-1.1.3/COPYING +0 -3
- package/helpers/ripgrep/notices/aho-corasick-1.1.3/LICENSE-MIT +0 -21
- package/helpers/ripgrep/notices/aho-corasick-1.1.3/UNLICENSE +0 -24
- package/helpers/ripgrep/notices/anyhow-1.0.100/LICENSE-APACHE +0 -176
- package/helpers/ripgrep/notices/anyhow-1.0.100/LICENSE-MIT +0 -23
- package/helpers/ripgrep/notices/arbitrary-1.4.2/LICENSE-APACHE +0 -201
- package/helpers/ripgrep/notices/arbitrary-1.4.2/LICENSE-MIT +0 -27
- package/helpers/ripgrep/notices/bstr-1.12.0/COPYING +0 -8
- package/helpers/ripgrep/notices/bstr-1.12.0/LICENSE-APACHE +0 -201
- package/helpers/ripgrep/notices/bstr-1.12.0/LICENSE-MIT +0 -21
- package/helpers/ripgrep/notices/cc-1.2.41/LICENSE-APACHE +0 -201
- package/helpers/ripgrep/notices/cc-1.2.41/LICENSE-MIT +0 -25
- package/helpers/ripgrep/notices/cfg-if-1.0.4/LICENSE-APACHE +0 -201
- package/helpers/ripgrep/notices/cfg-if-1.0.4/LICENSE-MIT +0 -25
- package/helpers/ripgrep/notices/crossbeam-channel-0.5.15/LICENSE-APACHE +0 -201
- package/helpers/ripgrep/notices/crossbeam-channel-0.5.15/LICENSE-MIT +0 -27
- package/helpers/ripgrep/notices/crossbeam-channel-0.5.15/LICENSE-THIRD-PARTY +0 -593
- package/helpers/ripgrep/notices/crossbeam-deque-0.8.6/LICENSE-APACHE +0 -201
- package/helpers/ripgrep/notices/crossbeam-deque-0.8.6/LICENSE-MIT +0 -27
- package/helpers/ripgrep/notices/crossbeam-epoch-0.9.18/LICENSE-APACHE +0 -201
- package/helpers/ripgrep/notices/crossbeam-epoch-0.9.18/LICENSE-MIT +0 -27
- package/helpers/ripgrep/notices/crossbeam-utils-0.8.21/LICENSE-APACHE +0 -201
- package/helpers/ripgrep/notices/crossbeam-utils-0.8.21/LICENSE-MIT +0 -27
- package/helpers/ripgrep/notices/derive_arbitrary-1.4.2/LICENSE-APACHE +0 -201
- package/helpers/ripgrep/notices/derive_arbitrary-1.4.2/LICENSE-MIT +0 -27
- package/helpers/ripgrep/notices/encoding_rs-0.8.35/COPYRIGHT +0 -17
- package/helpers/ripgrep/notices/encoding_rs-0.8.35/LICENSE-APACHE +0 -202
- package/helpers/ripgrep/notices/encoding_rs-0.8.35/LICENSE-MIT +0 -25
- package/helpers/ripgrep/notices/encoding_rs-0.8.35/LICENSE-WHATWG +0 -26
- package/helpers/ripgrep/notices/encoding_rs_io-0.1.7/COPYING +0 -8
- package/helpers/ripgrep/notices/encoding_rs_io-0.1.7/LICENSE-APACHE +0 -201
- package/helpers/ripgrep/notices/encoding_rs_io-0.1.7/LICENSE-MIT +0 -21
- package/helpers/ripgrep/notices/find-msvc-tools-0.1.4/LICENSE-APACHE +0 -201
- package/helpers/ripgrep/notices/find-msvc-tools-0.1.4/LICENSE-MIT +0 -25
- package/helpers/ripgrep/notices/getrandom-0.3.4/LICENSE-APACHE +0 -201
- package/helpers/ripgrep/notices/getrandom-0.3.4/LICENSE-MIT +0 -26
- package/helpers/ripgrep/notices/glob-0.3.3/LICENSE-APACHE +0 -201
- package/helpers/ripgrep/notices/glob-0.3.3/LICENSE-MIT +0 -25
- package/helpers/ripgrep/notices/itoa-1.0.15/LICENSE-APACHE +0 -176
- package/helpers/ripgrep/notices/itoa-1.0.15/LICENSE-MIT +0 -23
- package/helpers/ripgrep/notices/jobserver-0.1.34/LICENSE-APACHE +0 -201
- package/helpers/ripgrep/notices/jobserver-0.1.34/LICENSE-MIT +0 -25
- package/helpers/ripgrep/notices/lexopt-0.3.1/LICENSE +0 -19
- package/helpers/ripgrep/notices/libc-0.2.177/LICENSE-APACHE +0 -176
- package/helpers/ripgrep/notices/libc-0.2.177/LICENSE-MIT +0 -25
- package/helpers/ripgrep/notices/log-0.4.28/LICENSE-APACHE +0 -201
- package/helpers/ripgrep/notices/log-0.4.28/LICENSE-MIT +0 -25
- package/helpers/ripgrep/notices/memchr-2.7.6/COPYING +0 -3
- package/helpers/ripgrep/notices/memchr-2.7.6/LICENSE-MIT +0 -21
- package/helpers/ripgrep/notices/memchr-2.7.6/UNLICENSE +0 -24
- package/helpers/ripgrep/notices/memmap2-0.9.8/LICENSE-APACHE +0 -201
- package/helpers/ripgrep/notices/memmap2-0.9.8/LICENSE-MIT +0 -26
- package/helpers/ripgrep/notices/msvc_spectre_libs-0.1.3/LICENSE +0 -21
- package/helpers/ripgrep/notices/pcre2-0.2.11/COPYING +0 -3
- package/helpers/ripgrep/notices/pcre2-0.2.11/LICENSE-MIT +0 -21
- package/helpers/ripgrep/notices/pcre2-0.2.11/UNLICENSE +0 -24
- package/helpers/ripgrep/notices/pcre2-sys-0.2.10/COPYING +0 -3
- package/helpers/ripgrep/notices/pcre2-sys-0.2.10/LICENSE-MIT +0 -21
- package/helpers/ripgrep/notices/pcre2-sys-0.2.10/UNLICENSE +0 -24
- package/helpers/ripgrep/notices/pkg-config-0.3.32/LICENSE-APACHE +0 -201
- package/helpers/ripgrep/notices/pkg-config-0.3.32/LICENSE-MIT +0 -25
- package/helpers/ripgrep/notices/proc-macro2-1.0.101/LICENSE-APACHE +0 -176
- package/helpers/ripgrep/notices/proc-macro2-1.0.101/LICENSE-MIT +0 -23
- package/helpers/ripgrep/notices/quote-1.0.41/LICENSE-APACHE +0 -176
- package/helpers/ripgrep/notices/quote-1.0.41/LICENSE-MIT +0 -23
- package/helpers/ripgrep/notices/r-efi-5.3.0/AUTHORS +0 -74
- package/helpers/ripgrep/notices/regex-1.12.2/LICENSE-APACHE +0 -201
- package/helpers/ripgrep/notices/regex-1.12.2/LICENSE-MIT +0 -25
- package/helpers/ripgrep/notices/regex-automata-0.4.13/LICENSE-APACHE +0 -201
- package/helpers/ripgrep/notices/regex-automata-0.4.13/LICENSE-MIT +0 -25
- package/helpers/ripgrep/notices/regex-syntax-0.8.8/LICENSE-APACHE +0 -201
- package/helpers/ripgrep/notices/regex-syntax-0.8.8/LICENSE-MIT +0 -25
- package/helpers/ripgrep/notices/regex-syntax-0.8.8/src/unicode_tables/LICENSE-UNICODE +0 -57
- package/helpers/ripgrep/notices/ryu-1.0.20/LICENSE-APACHE +0 -176
- package/helpers/ripgrep/notices/ryu-1.0.20/LICENSE-BOOST +0 -23
- package/helpers/ripgrep/notices/same-file-1.0.6/COPYING +0 -3
- package/helpers/ripgrep/notices/same-file-1.0.6/LICENSE-MIT +0 -21
- package/helpers/ripgrep/notices/same-file-1.0.6/UNLICENSE +0 -24
- package/helpers/ripgrep/notices/serde-1.0.228/LICENSE-APACHE +0 -176
- package/helpers/ripgrep/notices/serde-1.0.228/LICENSE-MIT +0 -23
- package/helpers/ripgrep/notices/serde_core-1.0.228/LICENSE-APACHE +0 -176
- package/helpers/ripgrep/notices/serde_core-1.0.228/LICENSE-MIT +0 -23
- package/helpers/ripgrep/notices/serde_derive-1.0.228/LICENSE-APACHE +0 -176
- package/helpers/ripgrep/notices/serde_derive-1.0.228/LICENSE-MIT +0 -23
- package/helpers/ripgrep/notices/serde_json-1.0.145/LICENSE-APACHE +0 -176
- package/helpers/ripgrep/notices/serde_json-1.0.145/LICENSE-MIT +0 -23
- package/helpers/ripgrep/notices/shlex-1.3.0/LICENSE-APACHE +0 -13
- package/helpers/ripgrep/notices/shlex-1.3.0/LICENSE-MIT +0 -21
- package/helpers/ripgrep/notices/syn-2.0.106/LICENSE-APACHE +0 -176
- package/helpers/ripgrep/notices/syn-2.0.106/LICENSE-MIT +0 -23
- package/helpers/ripgrep/notices/termcolor-1.4.1/COPYING +0 -3
- package/helpers/ripgrep/notices/termcolor-1.4.1/LICENSE-MIT +0 -21
- package/helpers/ripgrep/notices/termcolor-1.4.1/UNLICENSE +0 -24
- package/helpers/ripgrep/notices/textwrap-0.16.2/LICENSE +0 -21
- package/helpers/ripgrep/notices/tikv-jemalloc-sys-0.6.0+5.3.0-1-ge13ca993e8ccb9ba9847cc330696e02839f328f7/LICENSE-APACHE +0 -201
- package/helpers/ripgrep/notices/tikv-jemalloc-sys-0.6.0+5.3.0-1-ge13ca993e8ccb9ba9847cc330696e02839f328f7/LICENSE-MIT +0 -25
- package/helpers/ripgrep/notices/tikv-jemalloc-sys-0.6.0+5.3.0-1-ge13ca993e8ccb9ba9847cc330696e02839f328f7/jemalloc/COPYING +0 -27
- package/helpers/ripgrep/notices/tikv-jemallocator-0.6.0/LICENSE-APACHE +0 -201
- package/helpers/ripgrep/notices/tikv-jemallocator-0.6.0/LICENSE-MIT +0 -25
- package/helpers/ripgrep/notices/unicode-ident-1.0.19/LICENSE-APACHE +0 -176
- package/helpers/ripgrep/notices/unicode-ident-1.0.19/LICENSE-MIT +0 -23
- package/helpers/ripgrep/notices/unicode-ident-1.0.19/LICENSE-UNICODE +0 -39
- package/helpers/ripgrep/notices/walkdir-2.5.0/COPYING +0 -3
- package/helpers/ripgrep/notices/walkdir-2.5.0/LICENSE-MIT +0 -21
- package/helpers/ripgrep/notices/walkdir-2.5.0/UNLICENSE +0 -24
- package/helpers/ripgrep/notices/wasip2-1.0.1+wasi-0.2.4/LICENSE-APACHE +0 -201
- package/helpers/ripgrep/notices/wasip2-1.0.1+wasi-0.2.4/LICENSE-Apache-2.0_WITH_LLVM-exception +0 -220
- package/helpers/ripgrep/notices/wasip2-1.0.1+wasi-0.2.4/LICENSE-MIT +0 -23
- package/helpers/ripgrep/notices/winapi-util-0.1.11/COPYING +0 -3
- package/helpers/ripgrep/notices/winapi-util-0.1.11/LICENSE-MIT +0 -21
- package/helpers/ripgrep/notices/winapi-util-0.1.11/UNLICENSE +0 -24
- package/helpers/ripgrep/notices/windows-link-0.2.1/license-apache-2.0 +0 -201
- package/helpers/ripgrep/notices/windows-link-0.2.1/license-mit +0 -21
- package/helpers/ripgrep/notices/windows-sys-0.61.2/license-apache-2.0 +0 -201
- package/helpers/ripgrep/notices/windows-sys-0.61.2/license-mit +0 -21
- package/helpers/ripgrep/notices/wit-bindgen-0.46.0/LICENSE-APACHE +0 -201
- package/helpers/ripgrep/notices/wit-bindgen-0.46.0/LICENSE-Apache-2.0_WITH_LLVM-exception +0 -220
- package/helpers/ripgrep/notices/wit-bindgen-0.46.0/LICENSE-MIT +0 -23
package/dist/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CloudTurnFailure, cloudTurnFailure, DEFAULT_CLOUD_CANCEL_RECEIPT_WAIT_MS } from "./cloud-failure.js";
|
|
1
2
|
import { ToolBridgeLoop } from "./toolbridge-loop.js";
|
|
2
3
|
import { openToolBridgeMcp, TOOLBRIDGE_NOTICE } from "./toolbridge.js";
|
|
3
4
|
import { connectNeedMessage } from "./connect-need.js";
|
|
@@ -14,7 +15,7 @@ import { AcpSession } from "./acp.js";
|
|
|
14
15
|
import { StreamMapper } from "./mapping.js";
|
|
15
16
|
import { connectProvider } from "./provider.js";
|
|
16
17
|
import { brokerFactory } from "./broker.js";
|
|
17
|
-
import { AGENTS, CODEX_AGENT } from "./agents.js";
|
|
18
|
+
import { AGENTS, CODEX_AGENT, CODEX_CLOUD_AGENT } from "./agents.js";
|
|
18
19
|
import { prepareInput, prepareContinuation } from "./input.js";
|
|
19
20
|
import { NeedError } from "./remote.js";
|
|
20
21
|
import { employeeFailure } from "./presentation.js";
|
|
@@ -39,8 +40,9 @@ export const settingsNamespace = 'ai-workbench-codex';
|
|
|
39
40
|
// L can be installed/enabled after X; keeping X mounted lets it explain the prerequisite.
|
|
40
41
|
export const inject = ['llm'];
|
|
41
42
|
/** Owner-approved defaults; administrators may override through the existing settings. */
|
|
42
|
-
export const DEFAULT_CONFIG = Object.freeze({ acpMaxMessageBytes: 4194304, brokerMaxFrameBytes: 2097152, brokerControlMaxBytes: 1048576, employeeShellKillGraceMs: 1000 });
|
|
43
|
+
export const DEFAULT_CONFIG = Object.freeze({ acpMaxMessageBytes: 4194304, brokerMaxFrameBytes: 2097152, brokerControlMaxBytes: 1048576, employeeShellKillGraceMs: 1000, cloudCancelReceiptWaitMs: DEFAULT_CLOUD_CANCEL_RECEIPT_WAIT_MS });
|
|
43
44
|
export const Config = Schema.object({
|
|
45
|
+
cloudCancelReceiptWaitMs: Schema.number().min(1).max(2147483647).step(1).i18n({ en: 'Cloud cancellation receipt wait in milliseconds; default 10000, then end with unknown task status', zh: '云取消回执最长等待毫秒;默认10000,超时按云任务状态未知结束本轮' }).default(DEFAULT_CONFIG.cloudCancelReceiptWaitMs).volatile(),
|
|
44
46
|
acpMaxMessageBytes: Schema.number().min(1).step(1).i18n({ en: 'Session message limit; default 4 MiB, adjustable by administrators', zh: '会话消息容量;默认4 MiB,管理员可调整' }).default(DEFAULT_CONFIG.acpMaxMessageBytes).volatile(),
|
|
45
47
|
brokerMaxFrameBytes: Schema.number().min(1).step(1).i18n({ en: 'Host output chunk limit; default 2 MiB, adjustable by administrators', zh: '主机回传单段容量;默认2 MiB,管理员可调整' }).default(DEFAULT_CONFIG.brokerMaxFrameBytes).volatile(),
|
|
46
48
|
brokerControlMaxBytes: Schema.number().min(1).step(1).i18n({ en: 'Host session control reply limit; default 1 MiB, adjustable by administrators', zh: '主机会话管理回复容量;默认1 MiB,管理员可调整' }).default(DEFAULT_CONFIG.brokerControlMaxBytes).volatile(),
|
|
@@ -220,12 +222,15 @@ export class CodexRemoteAdapter extends LlmAdapter {
|
|
|
220
222
|
}
|
|
221
223
|
}
|
|
222
224
|
catch (error) {
|
|
225
|
+
if (error instanceof CloudTurnFailure)
|
|
226
|
+
throw new LlmError(error.message, error.code, { cause: new Error(error.requires) });
|
|
227
|
+
const cloudNotice = this.agent.id === CODEX_CLOUD_AGENT.id && promptDispatched ? ' 云任务可能继续运行至结束;未回落到主机 Codex。' : '';
|
|
223
228
|
if (error instanceof ModelConfigurationError)
|
|
224
|
-
throw new LlmError(employeeFailure(error.code, this.agent.loginProvider, promptDispatched), error.code, { cause: error });
|
|
229
|
+
throw new LlmError(employeeFailure(error.code, this.agent.loginProvider, promptDispatched) + cloudNotice, error.code, { cause: error });
|
|
225
230
|
if (error instanceof NeedError) {
|
|
226
231
|
const rpc = /RPC 错误码 (-?\d+)/u.exec(error.requires)?.[1];
|
|
227
232
|
const evidence = failureEvidenceSummary(error);
|
|
228
|
-
const message = connectNeedMessage(error) ?? employeeFailure(error.code, this.agent.loginProvider, promptDispatched);
|
|
233
|
+
const message = (connectNeedMessage(error) ?? employeeFailure(error.code, this.agent.loginProvider, promptDispatched)) + cloudNotice;
|
|
229
234
|
const login = originalLoginFailure(error);
|
|
230
235
|
let diagnostic = login?.technical ? JSON.stringify(login.technical) : '';
|
|
231
236
|
if (login?.technical && this.reportLoginFailure) {
|
|
@@ -239,7 +244,7 @@ export class CodexRemoteAdapter extends LlmAdapter {
|
|
|
239
244
|
}
|
|
240
245
|
throw new LlmError(message, error.code, { cause: new Error(`诊断代码:${error.code};${error.requires}` + (evidence ? ';' + evidence : '') + (diagnostic ? ';' + diagnostic : '')) });
|
|
241
246
|
}
|
|
242
|
-
throw new LlmError(employeeFailure('TURN_FAILED', this.agent.loginProvider, promptDispatched), 'TURN_FAILED', { cause: error });
|
|
247
|
+
throw new LlmError(employeeFailure('TURN_FAILED', this.agent.loginProvider, promptDispatched) + cloudNotice, 'TURN_FAILED', { cause: error });
|
|
243
248
|
}
|
|
244
249
|
finally {
|
|
245
250
|
if (options.sessionId)
|
|
@@ -302,7 +307,7 @@ export class CodexRemoteAdapter extends LlmAdapter {
|
|
|
302
307
|
this.employeeNoticeSessions.add(key);
|
|
303
308
|
live = undefined;
|
|
304
309
|
const configuration = JSON.stringify([config.acpMaxMessageBytes, config.brokerMaxFrameBytes, config.brokerControlMaxBytes, config.employeeShellKillGraceMs]);
|
|
305
|
-
Object.assign(request, { acpMaxMessageBytes: config.acpMaxMessageBytes, resumeSessionId: previous?.sessionId, sessionId: options.sessionId, mode, hostSource: previous?.hostSource, cwd: previous?.cwd, identity: previous?.identity, bindingId: previous?.bindingId, workspaceId: previous?.workspaceId, agent: this.agent, signal, brokerSettings: Object.freeze({ brokerMaxFrameBytes: config.brokerMaxFrameBytes, brokerControlMaxBytes: config.brokerControlMaxBytes }) });
|
|
310
|
+
Object.assign(request, { acpMaxMessageBytes: config.acpMaxMessageBytes, resumeSessionId: this.agent.id === CODEX_CLOUD_AGENT.id ? undefined : previous?.sessionId, sessionId: options.sessionId, mode, hostSource: previous?.hostSource, cwd: previous?.cwd, identity: previous?.identity, bindingId: previous?.bindingId, workspaceId: previous?.workspaceId, agent: this.agent, signal, brokerSettings: Object.freeze({ brokerMaxFrameBytes: config.brokerMaxFrameBytes, brokerControlMaxBytes: config.brokerControlMaxBytes }) });
|
|
306
311
|
request.previousContextSha256 = previous?.contextSha256;
|
|
307
312
|
const after = options.messages.findLastIndex(message => message.role === 'assistant');
|
|
308
313
|
const tail = options.messages.slice(after + 1);
|
|
@@ -323,7 +328,7 @@ export class CodexRemoteAdapter extends LlmAdapter {
|
|
|
323
328
|
let input = await prepareInput(options, this.readImage);
|
|
324
329
|
const contextSha256 = createHash('sha256').update(input.systemPrompt ?? '').digest('hex');
|
|
325
330
|
request.contextSha256 = contextSha256;
|
|
326
|
-
const codex = this.agent.
|
|
331
|
+
const codex = this.agent.routing === 'native-exec';
|
|
327
332
|
const contextChanged = !!previous && codex && (previous.contextSha256 ?? '').toLowerCase() !== contextSha256;
|
|
328
333
|
// Only identical durable context can prove a legacy context-bound journal.
|
|
329
334
|
// New Codex transport scopes are independent of the native context digest.
|
|
@@ -348,7 +353,7 @@ export class CodexRemoteAdapter extends LlmAdapter {
|
|
|
348
353
|
}
|
|
349
354
|
if (previous && !runtime.hostSource && (previous.identity !== runtime.identity || previous.cwd !== runtime.cwd || previous.bindingId && previous.bindingId !== runtime.binding?.bindingId || previous.workspaceId && previous.workspaceId !== runtime.binding?.workspaceId))
|
|
350
355
|
throw new NeedError('SESSION_CONTEXT_MISMATCH', '原会话的员工主机或工作区已改变,请新建会话', '原会话的可信目标和工作区');
|
|
351
|
-
input = await prepareContinuation({ ...options, messages: options.messages.slice((checkpoint?.index ?? -1) + 1) }, input, this.readImage, { maxBytes: config.acpMaxMessageBytes, host: runtime.hostWorkspace });
|
|
356
|
+
input = await prepareContinuation({ ...options, messages: options.messages.slice(this.agent.id === CODEX_CLOUD_AGENT.id ? 0 : (checkpoint?.index ?? -1) + 1) }, input, this.readImage, { maxBytes: config.acpMaxMessageBytes, host: runtime.hostWorkspace });
|
|
352
357
|
if (runtime.hostWorkspace && mode === 'session' && Buffer.byteLength(JSON.stringify({ prompt: input.prompt, systemPrompt: input.systemPrompt }), 'utf8') > config.acpMaxMessageBytes)
|
|
353
358
|
throw new NeedError('ACP_MESSAGE_TOO_LARGE', '本轮输入超过已设置的会话消息容量,未截断或发送', '管理员调整acpMaxMessageBytes');
|
|
354
359
|
const details = runtime.details ?? await createRemoteDetails({ warn: line => console.warn(line) }).open({ sessionId: options.sessionId ?? 'unscoped', provider: this.agent.loginProvider, identity: runtime.identity, connection: runtime.connection });
|
|
@@ -397,7 +402,7 @@ export class CodexRemoteAdapter extends LlmAdapter {
|
|
|
397
402
|
const push = (chunks) => { queue.push(...chunks); wake?.(); wake = undefined; };
|
|
398
403
|
let promptPermit;
|
|
399
404
|
let confirmedNativeMode;
|
|
400
|
-
const hooks = { closeDiagnostics: runtime.closeDiagnostics, broker: runtime.broker, sessionOwnership: runtime.sessionOwnership, employeeExecution: runtime.employeeExecution, ...this.permissions ? { promptGuard: () => {
|
|
405
|
+
const hooks = { cloudCancelReceiptWaitMs: config.cloudCancelReceiptWaitMs ?? DEFAULT_CONFIG.cloudCancelReceiptWaitMs, closeDiagnostics: runtime.closeDiagnostics, broker: runtime.broker, sessionOwnership: runtime.sessionOwnership, employeeExecution: runtime.employeeExecution, ...this.permissions ? { promptGuard: () => {
|
|
401
406
|
if (!promptPermit)
|
|
402
407
|
throw new NeedError('PERMISSION_POLICY_CHANGED', '当前权限没有保持确认,本次没有继续派发。', '当前权限代次和同值回执');
|
|
403
408
|
return promptPermit;
|
|
@@ -407,13 +412,18 @@ export class CodexRemoteAdapter extends LlmAdapter {
|
|
|
407
412
|
} } : {}, approve: async (permission, approvalSignal) => {
|
|
408
413
|
const execution = runtime.execution;
|
|
409
414
|
const toolName = permission.toolCall.name ?? permission.toolCall._meta?.claudeCode?.toolName;
|
|
415
|
+
if (this.agent.id === CODEX_CLOUD_AGENT.id && this.permissions?.read(options.sessionId).sandbox === 'read-only' && ['mcp__employee__Write', 'mcp__employee__Edit', 'mcp__employee__Bash'].includes(toolName ?? '')) {
|
|
416
|
+
details.record({ kind: 'tool', severity: 'info', code: 'EMPLOYEE_READ_ONLY', summary: '只读档员工写请求已拒绝,未创建审批卡。', payload: { tool: toolName } });
|
|
417
|
+
return 'rejected';
|
|
418
|
+
}
|
|
410
419
|
if (execution && bridge?.enabled && bridge.isBridge(toolName)) {
|
|
411
420
|
const current = this.permissions ? permissionMode('claude', this.permissions.read(options.sessionId)) : undefined;
|
|
412
|
-
|
|
421
|
+
const cloudReadOnly = this.agent.id === CODEX_CLOUD_AGENT.id && current === 'plan' && confirmedNativeMode === 'read-only' && bridge.isReadOnly(toolName);
|
|
422
|
+
if (current === 'plan' && !cloudReadOnly) {
|
|
413
423
|
details.record({ kind: 'tool', severity: 'info', code: 'TOOLBRIDGE_PLAN_PERMISSION_REJECTED', summary: '本轮为plan档,桥接原生权限请求未放行。' });
|
|
414
424
|
return 'rejected';
|
|
415
425
|
}
|
|
416
|
-
if (current === 'default' && confirmedNativeMode === 'default') {
|
|
426
|
+
if (cloudReadOnly || current === 'default' && confirmedNativeMode === (this.agent.loginProvider === 'claude' ? 'default' : 'workspace-write')) {
|
|
417
427
|
details.record({ kind: 'tool', severity: 'info', code: 'TOOLBRIDGE_NATIVE_PERMISSION_ANSWERED', summary: '已确认桥接工具仅在DSH审批,原生请求自动答复一次。', payload: { tool: toolName } });
|
|
418
428
|
return 'allowed-once';
|
|
419
429
|
}
|
|
@@ -434,7 +444,13 @@ export class CodexRemoteAdapter extends LlmAdapter {
|
|
|
434
444
|
catch (error) {
|
|
435
445
|
failure = error;
|
|
436
446
|
session?.close({ layer: 'adapter', initiator: 'adapter.mapper-failure', reason: closeCode(error, 'MAPPING_FAILED'), action: 'close' });
|
|
437
|
-
} }, onResponse: response =>
|
|
447
|
+
} }, onResponse: response => { if (this.agent.id === CODEX_CLOUD_AGENT.id) {
|
|
448
|
+
const failed = cloudTurnFailure(response);
|
|
449
|
+
if (failed) {
|
|
450
|
+
details.record({ kind: 'need', severity: 'action-required', code: failed.code, summary: failed.message, method: 'session/prompt', payload: failed.info });
|
|
451
|
+
throw failed;
|
|
452
|
+
}
|
|
453
|
+
} push(mapper.acpResponse(response)); }, onDetail: detail => details.record(detail) };
|
|
438
454
|
const transport = runtime.acpTransport instanceof acp.AgentApp || runtime.acpTransport instanceof unstable.AgentApp ? runtime.acpTransport : acp.ndJsonStream(runtime.acpTransport.writable, runtime.acpTransport.readable, { maxMessageBytes: config.acpMaxMessageBytes });
|
|
439
455
|
session = new AcpSession(transport, hooks);
|
|
440
456
|
live = { session, runtime, configuration, contextSha256, usageSnapshot: mapper.usageSnapshot };
|
|
@@ -484,7 +500,7 @@ export class CodexRemoteAdapter extends LlmAdapter {
|
|
|
484
500
|
const task = (async () => {
|
|
485
501
|
remoteAttempted = true;
|
|
486
502
|
try {
|
|
487
|
-
await session.start(runtime.execution?.hostCwd ?? runtime.cwd, previous?.sessionId, modelSignal, { systemPrompt: input.systemPrompt, ...(bridgeMcp ? { toolBridgeServers: bridgeMcp.mcpServers } : {}), ...(runtime.execution ? { employeeRouting: runtime.execution.routing } : {}), ...(codex ? { codexNewSessionOnly: true } : {}), ...(runtime.employeeExecutionMeta ? { employeeExecution: runtime.employeeExecutionMeta } : {}) }, input.prompt);
|
|
503
|
+
await session.start(runtime.execution?.hostCwd ?? runtime.cwd, this.agent.id === CODEX_CLOUD_AGENT.id ? undefined : previous?.sessionId, modelSignal, { systemPrompt: input.systemPrompt, routing: this.agent.routing, loginProvider: this.agent.loginProvider, ...(bridgeMcp ? { toolBridgeServers: bridgeMcp.mcpServers } : {}), ...(runtime.execution ? { employeeRouting: runtime.execution.routing } : {}), ...(codex ? { codexNewSessionOnly: true } : {}), ...(runtime.employeeExecutionMeta ? { employeeExecution: runtime.employeeExecutionMeta } : {}) }, input.prompt);
|
|
488
504
|
}
|
|
489
505
|
catch (error) {
|
|
490
506
|
details.record({ kind: 'session', severity: 'action-required', code: 'SESSION_START_FAILED', summary: '远端会话建立或恢复失败,本轮用户输入未发送。', payload: { operation: previous ? 'resume-or-load' : 'new', reason: closeCode(error, 'ACP_FAILED'), promptDispatched: false } });
|
|
@@ -724,14 +740,14 @@ export function apply(ctx, live) {
|
|
|
724
740
|
};
|
|
725
741
|
return runtime;
|
|
726
742
|
};
|
|
727
|
-
const local = agent.
|
|
743
|
+
const local = agent.routing === 'mcp' ? createClaudeLocalProvider({ getConnect: get, getNetwork: () => ctx.get('aiWorkbenchNetwork'), readWorkspace: id => readEmployeeWorkspace(ctx, id), readUserTurn: request => readLocalUserTurn(ctx, { sessionId: request.sessionId, route: agent.id, userMessageIds: request.userMessageIds ?? [] }), reportAdmissionFailure: (request, code) => preflightDiagnostics.failure(request, agent.loginProvider, code, 'local-admission'), recordUnscoped: (request, observation) => managerForProfile().recordLocalFailure({ sessionId: request.sessionId, provider: agent.loginProvider, code: observation.code, observation }), configuration: config, details, open, ...(agent.id === CODEX_CLOUD_AGENT.id ? { readOnly: (id) => dshPermissionSource(ctx).read(id).sandbox === 'read-only' } : {}) }) : undefined;
|
|
728
744
|
const workspace = async (request) => {
|
|
729
745
|
const services = ctx;
|
|
730
746
|
const registry = services.get('workspaceRegistry');
|
|
731
747
|
const sessions = services.get('sessions');
|
|
732
748
|
return officialEmployeeWorkspace(request.sessionId, registry, sessions?.get(request.sessionId)?.header);
|
|
733
749
|
};
|
|
734
|
-
const provider = connectProvider(get, { agent, workspace, source: sessionSources, ...(agent.
|
|
750
|
+
const provider = connectProvider(get, { agent, workspace, source: sessionSources, ...(agent.routing === 'native-exec' ? { employee: {
|
|
735
751
|
getNetwork: () => ctx.get('aiWorkbenchNetwork'),
|
|
736
752
|
workspace, native: () => resolveEmployeeNative(),
|
|
737
753
|
} } : {}), details, open, local });
|
package/dist/model-catalog.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type LlmResolvedModelInfo } from '@deepseek-ai/dsh-llm';
|
|
2
2
|
import type { ModelCatalogTarget } from '@ai-workbench/connect/api';
|
|
3
|
-
import type
|
|
3
|
+
import { type AgentDefinition } from './agents.ts';
|
|
4
4
|
import { type ConnectApi, type ConnectTarget } from './provider.ts';
|
|
5
5
|
export { runCatalog } from './catalog-ssh.ts';
|
|
6
6
|
export interface HostModel {
|
package/dist/model-catalog.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LlmError, ReasoningEffortId } from '@deepseek-ai/dsh-llm';
|
|
2
|
+
import { CODEX_CLOUD_AGENT } from "./agents.js";
|
|
2
3
|
import { validateTarget } from "./provider.js";
|
|
3
4
|
import { ModelConfigurationError } from "./model-configuration.js";
|
|
4
5
|
import { runCatalog, catalogSafeText } from "./catalog-ssh.js";
|
|
@@ -124,6 +125,9 @@ export class ModelCatalog {
|
|
|
124
125
|
if (state.phase !== 'connected' || state.instanceId !== target.instanceId || state.epoch !== target.epoch)
|
|
125
126
|
controller.abort(new CatalogError('连接已变化,本次模型列表读取已停止;连接恢复后请重新打开模型菜单。', 'MODEL_CATALOG_CONNECTION_CHANGED'));
|
|
126
127
|
});
|
|
128
|
+
// The cloud ACP contract has one selector, independent of the host CLI catalog.
|
|
129
|
+
if (agent.id === CODEX_CLOUD_AGENT.id)
|
|
130
|
+
return { target, models: freeze([{ id: 'codex-cloud', value: 'codex-cloud', name: agent.name.zh, resolvedModel: 'codex-cloud', reasoning: { options: [], defaultValue: null, defaultKnown: false }, source: { agent: 'aw-cloud-acp', version: '0.1.2' } }]), signal: combined, release() { } };
|
|
127
131
|
const max = this.maxBytes();
|
|
128
132
|
if (!Number.isSafeInteger(max) || max < 1)
|
|
129
133
|
fail('模型目录容量设置无效,请联系管理员检查插件配置。');
|
package/dist/presentation.js
CHANGED
|
@@ -4,6 +4,7 @@ export const CONNECTION_REQUIRED = '远程主机连接组件没有装好,请
|
|
|
4
4
|
/** Employee failures use business language; diagnostic codes remain separately available. */
|
|
5
5
|
export function employeeFailure(code, brand = 'codex', promptDispatched = true) {
|
|
6
6
|
const messages = {
|
|
7
|
+
CLOUD_LOCAL_WORKSPACE_REQUIRED: 'Codex(云)目前只支持本机文件夹;请选择本机文件夹并新建会话。',
|
|
7
8
|
PERMISSION_POLICY_REQUIRED: '我需要读取这条对话的权限设置,目前没有读到;本轮未执行,你的原话仍保留。',
|
|
8
9
|
PERMISSION_MODE_UNSUPPORTED: '这个权限档位还没有对应的远程执行能力;我需要主机连接组件支持该档位,本轮未执行,你的原话仍保留。',
|
|
9
10
|
PERMISSION_MODE_UNCONFIRMED: '远端没有确认按当前权限执行,本轮未继续;你的原话仍保留,具体原因见技术详情。',
|
package/dist/provider.js
CHANGED
|
@@ -3,7 +3,7 @@ import { connectNeedError } from "./connect-need.js";
|
|
|
3
3
|
import { loginDiagnostic, loginReason } from "./login-diagnostic.js";
|
|
4
4
|
import { NeedError } from "./remote.js";
|
|
5
5
|
import { CONNECTION_REQUIRED } from "./presentation.js";
|
|
6
|
-
import { CODEX_AGENT } from "./agents.js";
|
|
6
|
+
import { CODEX_AGENT, CODEX_CLOUD_AGENT } from "./agents.js";
|
|
7
7
|
export function requireLoginCoordinator(api) {
|
|
8
8
|
if (!['getConnectionState', 'getLoginPromptState', 'requestLoginPrompt', 'refreshLoginPrompts'].every(key => typeof api[key] === 'function'))
|
|
9
9
|
throw new NeedError('CONNECT_API_MISMATCH', '我需要 connect-api 0.6.1 的统一登录询问与连接状态能力', 'L >=0.6.1');
|
|
@@ -164,6 +164,8 @@ export function connectProvider(get, options = {}) {
|
|
|
164
164
|
request.workspaceSource = workspaceSessionSource(api, workspace.id, request);
|
|
165
165
|
}
|
|
166
166
|
const host = request.workspaceSource?.source === 'host';
|
|
167
|
+
if (host && agent.id === CODEX_CLOUD_AGENT.id)
|
|
168
|
+
throw new NeedError('CLOUD_LOCAL_WORKSPACE_REQUIRED', 'Codex(云)目前只支持本机文件夹;请选择本机文件夹并新建会话。', 'L确认的本机工作区与员工工具通道');
|
|
167
169
|
if (options.employee && !host) {
|
|
168
170
|
const module = await import("./employee-provider.js");
|
|
169
171
|
request.localContext = await module.inspectEmployeeWorkspace(get, options.employee, agent, api, request);
|
|
@@ -217,7 +219,7 @@ export function connectProvider(get, options = {}) {
|
|
|
217
219
|
return local;
|
|
218
220
|
}
|
|
219
221
|
}
|
|
220
|
-
if (!host && agent.
|
|
222
|
+
if (!host && agent.routing === 'mcp' && options.local) {
|
|
221
223
|
const runtime = await options.local(request, api, connection, target);
|
|
222
224
|
if (runtime)
|
|
223
225
|
return runtime;
|
package/dist/toolbridge-loop.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CloudTurnFailure } from "./cloud-failure.js";
|
|
1
2
|
import { createAssistantMessage } from '@deepseek-ai/dsh-llm';
|
|
2
3
|
import { ToolBridge } from "./toolbridge.js";
|
|
3
4
|
import { NeedError } from "./remote.js";
|
|
@@ -245,6 +246,8 @@ export class ToolBridgeLoop {
|
|
|
245
246
|
if (key && this.runs.get(key) === run)
|
|
246
247
|
this.runs.delete(key);
|
|
247
248
|
await run.task;
|
|
249
|
+
if (run.error instanceof CloudTurnFailure)
|
|
250
|
+
throw run.error;
|
|
248
251
|
}
|
|
249
252
|
}
|
|
250
253
|
}
|
package/dist/toolbridge-table.js
CHANGED
|
@@ -21,7 +21,10 @@ export function bridgeTable(tools = []) {
|
|
|
21
21
|
if (table.has(alias))
|
|
22
22
|
throw new NeedError('TOOLBRIDGE_NAME_COLLISION', '工具桥名称冲突,未执行。', '唯一工具桥名称');
|
|
23
23
|
const schema = structuredClone(tool);
|
|
24
|
-
|
|
24
|
+
// Only an explicit boolean from the supplied tool declaration is authority.
|
|
25
|
+
// Pinned DSH ToolSchema has no read-only field; unmarked tools stay unmarked.
|
|
26
|
+
const hint = schema.annotations?.readOnlyHint;
|
|
27
|
+
table.set(alias, { alias, schema, wire: { name: alias, description: 'DSH工具 ' + schema.name + ':' + schema.description, inputSchema: structuredClone(schema.parameters), ...(typeof hint === 'boolean' ? { annotations: { readOnlyHint: hint } } : {}) } });
|
|
25
28
|
}
|
|
26
29
|
return table;
|
|
27
30
|
}
|
package/dist/toolbridge.d.ts
CHANGED
|
@@ -86,6 +86,7 @@ export declare class ToolBridge {
|
|
|
86
86
|
title?: string | undefined;
|
|
87
87
|
}[];
|
|
88
88
|
isBridge(name: unknown): boolean;
|
|
89
|
+
isReadOnly(name: unknown): boolean;
|
|
89
90
|
call(alias: string, args: Record<string, unknown>, signal: AbortSignal): Promise<CallToolResult>;
|
|
90
91
|
get pending(): Pending[];
|
|
91
92
|
get unsettled(): boolean;
|
package/dist/toolbridge.js
CHANGED
|
@@ -44,6 +44,7 @@ export class ToolBridge {
|
|
|
44
44
|
return; this.enabled = true; this.record = record; record({ kind: 'session', severity: 'info', code: 'TOOLBRIDGE_SELECTED', summary: TOOLBRIDGE_NOTICE, payload: { toolCount: this.table.size, toolTimeoutSec: TOOLBRIDGE_TIMEOUT_SECONDS, timeoutSource: 'owner-2026-10-26', snapshot: 'native-session-open', excluded: 'official-file-command-subagent-team-run_code' } }); }
|
|
45
45
|
get tools() { return [...this.table.values()].map(t => t.wire); }
|
|
46
46
|
isBridge(name) { return typeof name === 'string' && this.table.has(name.replace(/^mcp__employee__/, '')); }
|
|
47
|
+
isReadOnly(name) { return typeof name === 'string' && this.table.get(name.replace(/^mcp__employee__/, ''))?.wire.annotations?.readOnlyHint === true; }
|
|
47
48
|
async call(alias, args, signal) {
|
|
48
49
|
const tool = this.table.get(alias);
|
|
49
50
|
if (!this.enabled || this.ended || this.localTurnEnded || !this.active || this.active.aborted || !tool || signal.aborted)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-workbench/remote-agent",
|
|
3
|
-
"version": "0.9.0-toolbridge.
|
|
3
|
+
"version": "0.9.0-toolbridge.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
"files": [
|
|
17
17
|
"dist",
|
|
18
18
|
"locale",
|
|
19
|
-
"cordis.patch.yml"
|
|
20
|
-
"helpers"
|
|
19
|
+
"cordis.patch.yml"
|
|
21
20
|
],
|
|
22
21
|
"scripts": {
|
|
23
22
|
"test": "npm run build && node --test --test-concurrency=1 lib/test/*.test.js",
|
|
24
23
|
"typecheck": "node node_modules/typescript/bin/tsc --noEmit",
|
|
25
|
-
"build": "node node_modules/typescript/bin/tsc && node node_modules/typescript/bin/tsc -p tsconfig.build.json && node tools/build-client.mjs",
|
|
24
|
+
"build": "npm run build --workspace=@ai-workbench/employee-tools && node node_modules/typescript/bin/tsc && node node_modules/typescript/bin/tsc -p tsconfig.build.json && node tools/build-client.mjs",
|
|
26
25
|
"probe:host": "node tools/probe-host.ts",
|
|
27
|
-
"pack:artifact": "node tools/pack-artifact.mjs"
|
|
26
|
+
"pack:artifact": "node tools/pack-artifact.mjs",
|
|
27
|
+
"pack:employee-tools": "node tools/pack-employee-tools.mjs"
|
|
28
28
|
},
|
|
29
29
|
"engines": {
|
|
30
30
|
"node": ">=24.13.1"
|
|
@@ -33,7 +33,8 @@
|
|
|
33
33
|
"@agentclientprotocol/sdk": "2.0.0",
|
|
34
34
|
"@modelcontextprotocol/sdk": "1.32.1",
|
|
35
35
|
"@openai/codex": "0.160.1",
|
|
36
|
-
"zod": "4.6.7"
|
|
36
|
+
"zod": "4.6.7",
|
|
37
|
+
"@ai-workbench/employee-tools": "0.1.0"
|
|
37
38
|
},
|
|
38
39
|
"devDependencies": {
|
|
39
40
|
"@ai-workbench/connect": "file:test/fixtures/ai-workbench-connect-0.7.37.tgz",
|
|
@@ -115,5 +116,8 @@
|
|
|
115
116
|
"acp",
|
|
116
117
|
"claude",
|
|
117
118
|
"codex"
|
|
119
|
+
],
|
|
120
|
+
"workspaces": [
|
|
121
|
+
"packages/employee-tools"
|
|
118
122
|
]
|
|
119
123
|
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
vscode-ripgrep
|
|
2
|
-
|
|
3
|
-
Copyright (c) Microsoft Corporation
|
|
4
|
-
|
|
5
|
-
All rights reserved.
|
|
6
|
-
|
|
7
|
-
MIT License
|
|
8
|
-
|
|
9
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
10
|
-
|
|
11
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
12
|
-
|
|
13
|
-
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# Bundled Mac search component
|
|
2
|
-
|
|
3
|
-
Original unmodified binaries from Microsoft @vscode/ripgrep-universal 1.18.0. The npm integrity/SHA256, per-file SHA/bytes and upstream release archives are in manifest.json. Both npm binaries were compared byte for byte with the pinned Microsoft release assets (v15.0.1). No employee download/install hook or PATH lookup.
|
|
4
|
-
|
|
5
|
-
Microsoft packaging tag v1.18.0 commit d22dec46c67fc8c5d307c9b18dba2792efd1f016 locks ripgrep-prebuilt v15.0.1 commit 67202aaafb17aecd9b5b7046d5b7baa92b05237a. Its config pins upstream ripgrep15.0.0 plus the retained Microsoft patch (Windows/ARM-musl adjustments); reported binaries are ripgrep15.0.0 with PCRE2 10.45. Upstream source: https://github.com/BurntSushi/ripgrep/tree/15.0.0 ; vendor source/config: https://github.com/microsoft/ripgrep-prebuilt/tree/v15.0.1 ; npm wrapper: https://github.com/microsoft/vscode-ripgrep/tree/v1.18.0 . Source-input hashes are retained in manifest.json. This is vendor artifact provenance, not a local reproducible build attestation; exact vendor compiler invocation/runtime std build was not independently attested.
|
|
6
|
-
|
|
7
|
-
LICENSE-vscode retains Microsoft packaging MIT text. notices/ contains ripgrep MIT/Unlicense/COPYING, PCRE2 licence, and a conservative full upstream Cargo.lock dependency superset plus Microsoft's Windows-only msvc_spectre_libs. Every crate archive matches its Cargo checksum; DEPENDENCIES.json identifies original package, version, licence and retained texts. r-efi licence is embedded in AUTHORS. wasip2 texts omitted from its crate were retrieved at its .cargo_vcs_info.json exact source commit. Superset inclusion is not a claim all non-Mac/build/test crates are linked into these Mac binaries. prepare-ripgrep-notices.py regenerates notices from the retained pinned inputs.
|
|
8
|
-
|
|
9
|
-
Runtime validates shipped rg size/SHA256, executable regular file, macOS arm64/x64 only. No strip/sign/byte alteration by X. Arm64 actual PCRE2 operation is fixture-tested; x64 is byte/inventory verified, not executed on this arm64 Mac. macOS SDK/system libraries are supplied by the OS; binaries have no Homebrew dylib dependency. The plugin message/output bound uses named acpMaxMessageBytes. Other platforms fail explicitly rather than host fallback.
|
|
Binary file
|
|
Binary file
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"npm": "@vscode/ripgrep-universal@1.18.0",
|
|
3
|
-
"source": "https://registry.npmjs.org/@vscode/ripgrep-universal/-/ripgrep-universal-1.18.0.tgz",
|
|
4
|
-
"archiveSha256": "76a03f429dc13a90f53b60995211a54308ab4f67b2521bac00f9c4be953dff52",
|
|
5
|
-
"integrity": "sha512-kgrAVy1L/v/8erAjo+I720ifTf7o4rvYUwgsuEu97XAEBtPT9sk3HhcSgFpxMydvNmwdJtXo9/AVee7JjocTrg==",
|
|
6
|
-
"files": {
|
|
7
|
-
"darwin-arm64": {
|
|
8
|
-
"bytes": 4528512,
|
|
9
|
-
"sha256": "6ef40346bf31fcce79d9614c7745c198542925a0c7d4911e1ffe794c53392ac1"
|
|
10
|
-
},
|
|
11
|
-
"darwin-x64": {
|
|
12
|
-
"bytes": 4742676,
|
|
13
|
-
"sha256": "f999495980a5e6f1e7d26461ef5768b4013a62df610ed7d77a8b2de247a5b228"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"vendorRelease": "microsoft/ripgrep-prebuilt@v15.0.1",
|
|
17
|
-
"vendorCommit": "67202aaafb17aecd9b5b7046d5b7baa92b05237a",
|
|
18
|
-
"sourceRipgrep": "BurntSushi/ripgrep@15.0.0",
|
|
19
|
-
"reportedVersion": "ripgrep 15.0.0 / PCRE2 10.45",
|
|
20
|
-
"sourceInputs": [
|
|
21
|
-
{
|
|
22
|
-
"file": "vscode-build.json",
|
|
23
|
-
"sha256": "fcf6b245175385854a06785ae990546fe0d197ceb65ec9ca58860a5817f07abd"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"file": "vscode-binaries.lock.json",
|
|
27
|
-
"sha256": "0bd421f46e3ee2f127290f67e73adb240e1311162d6d33c25121849e5f2beadc"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"file": "prebuilt-config.json",
|
|
31
|
-
"sha256": "71bc7b3ecdd5442001f74896a738eafb3b831ee5a183e128067fe6b6d6b64ea7"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"file": "prebuilt-build-build.sh",
|
|
35
|
-
"sha256": "cf0d97cafca064c763d3ceeebe8b2f7647f5b4b35710b37c74804a4d3e1b3929"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"file": "prebuilt-patches-0001-resolve-binskim-issues.patch",
|
|
39
|
-
"sha256": "45f8b58bba714c446de407f93120f557736b45fad6f43ea283077201646a1be7"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"file": "ripgrep-lock",
|
|
43
|
-
"sha256": "257bfa1eeacfa4d8222e2c50f9d2f8d15ef07e96adee46eaa87839f3b6cfa3b4"
|
|
44
|
-
}
|
|
45
|
-
],
|
|
46
|
-
"vendorArchives": {
|
|
47
|
-
"darwin-arm64": {
|
|
48
|
-
"sha256": "2fa16464fd8638588a67c7fc172d3c4b57fbdc65dff366e10b0b0e90734628a6",
|
|
49
|
-
"url": "https://github.com/microsoft/ripgrep-prebuilt/releases/download/v15.0.1/ripgrep-v15.0.1-aarch64-apple-darwin.tar.gz"
|
|
50
|
-
},
|
|
51
|
-
"darwin-x64": {
|
|
52
|
-
"sha256": "591c693e80bb444ef1907b2a906feb9c77bcafe1cdf509107cc75dcf0e875bd2",
|
|
53
|
-
"url": "https://github.com/microsoft/ripgrep-prebuilt/releases/download/v15.0.1/ripgrep-v15.0.1-x86_64-apple-darwin.tar.gz"
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|