@kodelyth/codex 2026.5.40 → 2026.6.1
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/client-ChMX13_o.js +642 -0
- package/dist/client-factory-D3dIsp4Y.js +9 -0
- package/dist/command-formatters-BRW7_Nu7.js +519 -0
- package/dist/command-handlers-P2IqtXaZ.js +1462 -0
- package/dist/compact-baos5flR.js +329 -0
- package/dist/computer-use-VfLvTMaa.js +367 -0
- package/dist/config-CezENx_E.js +510 -0
- package/dist/doctor-contract-api.js +53 -0
- package/dist/harness.js +51 -0
- package/dist/index.js +1133 -0
- package/dist/media-understanding-provider.js +335 -0
- package/dist/models-B9DhrIwD.js +110 -0
- package/dist/node-cli-sessions-De4_DuFw.js +1216 -0
- package/dist/plugin-activation-BlMuJeXz.js +452 -0
- package/dist/prompt-overlay.js +12 -0
- package/dist/protocol-C9UWI98H.js +9 -0
- package/dist/protocol-validators-BGBspNmF.js +5988 -0
- package/dist/provider-catalog.js +84 -0
- package/dist/provider-discovery.js +33 -0
- package/dist/provider.js +150 -0
- package/dist/rate-limit-cache-CHuacE27.js +24 -0
- package/dist/request-CTQKUxaa.js +89 -0
- package/dist/rolldown-runtime-DUslC3ob.js +14 -0
- package/dist/run-attempt-DqV2OU1R.js +5366 -0
- package/dist/session-binding-3PzU7ZTW.js +222 -0
- package/dist/shared-client-Cnyr9dyT.js +631 -0
- package/dist/side-question-CP5XlA0U.js +667 -0
- package/dist/test-api.js +45 -0
- package/dist/thread-lifecycle-DBJetBuV.js +1561 -0
- package/dist/vision-tools-Cl_5a93K.js +1379 -0
- package/klaw.plugin.json +24 -85
- package/package.json +18 -3
- package/doctor-contract-api.js +0 -7
- package/harness.js +0 -7
- package/index.js +0 -7
- package/media-understanding-provider.js +0 -7
- package/prompt-overlay.js +0 -7
- package/provider-catalog.js +0 -7
- package/provider-discovery.js +0 -7
- package/provider.js +0 -7
- package/test-api.js +0 -7
package/dist/test-api.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { c as resolveCodexAppServerRuntimeOptions } from "./config-CezENx_E.js";
|
|
2
|
+
import { S as filterCodexDynamicTools, a as buildThreadResumeParams, b as createCodexDynamicToolBridge, i as buildDeveloperInstructions, o as buildThreadStartParams, s as buildTurnStartParams } from "./thread-lifecycle-DBJetBuV.js";
|
|
3
|
+
//#region extensions/codex/test-api.ts
|
|
4
|
+
function resolveCodexPromptSnapshotAppServerOptions(pluginConfig) {
|
|
5
|
+
return resolveCodexAppServerRuntimeOptions({
|
|
6
|
+
pluginConfig,
|
|
7
|
+
env: {},
|
|
8
|
+
requirementsToml: null
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
function buildCodexHarnessPromptSnapshot(params) {
|
|
12
|
+
const developerInstructions = buildDeveloperInstructions(params.attempt, { dynamicTools: params.dynamicTools });
|
|
13
|
+
return {
|
|
14
|
+
developerInstructions,
|
|
15
|
+
threadStartParams: buildThreadStartParams(params.attempt, {
|
|
16
|
+
cwd: params.cwd,
|
|
17
|
+
dynamicTools: params.dynamicTools,
|
|
18
|
+
appServer: params.appServer,
|
|
19
|
+
developerInstructions,
|
|
20
|
+
config: params.config
|
|
21
|
+
}),
|
|
22
|
+
threadResumeParams: buildThreadResumeParams(params.attempt, {
|
|
23
|
+
threadId: params.threadId,
|
|
24
|
+
appServer: params.appServer,
|
|
25
|
+
developerInstructions,
|
|
26
|
+
config: params.config
|
|
27
|
+
}),
|
|
28
|
+
turnStartParams: buildTurnStartParams(params.attempt, {
|
|
29
|
+
threadId: params.threadId,
|
|
30
|
+
cwd: params.cwd,
|
|
31
|
+
appServer: params.appServer,
|
|
32
|
+
promptText: params.promptText
|
|
33
|
+
})
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
function createCodexDynamicToolSpecsForPromptSnapshot(params) {
|
|
37
|
+
return createCodexDynamicToolBridge({
|
|
38
|
+
tools: filterCodexDynamicTools(params.tools, params.pluginConfig ?? {}),
|
|
39
|
+
signal: new AbortController().signal,
|
|
40
|
+
loading: params.pluginConfig?.codexDynamicToolsLoading ?? "searchable",
|
|
41
|
+
directToolNames: params.directToolNames
|
|
42
|
+
}).specs;
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
export { buildCodexHarnessPromptSnapshot, createCodexDynamicToolSpecsForPromptSnapshot, resolveCodexPromptSnapshotAppServerOptions };
|