@ponythewhite/base-context 1.0.7 → 1.0.8
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/CHANGELOG.md +19 -0
- package/dist/base-context-runtime/pyproject.toml +1 -1
- package/dist/base-context-runtime/src/rlm/__init__.py +3 -0
- package/dist/base-context-runtime/src/rlm/harness.py +86 -48
- package/dist/base-context-runtime/test/test_harness.py +215 -140
- package/dist/base-context-runtime/uv.lock +1 -1
- package/dist/build-info.json +1 -1
- package/dist/bundle/amazon-bedrock.js +3 -3
- package/dist/bundle/{anthropic-UV5GZDGU.js → anthropic-5PSCZEER.js} +2 -7
- package/dist/bundle/{azure-openai-responses-WSNPXLYC.js → azure-openai-responses-AYTLJR33.js} +2 -2
- package/dist/bundle/{bundled-modules-PS66L3IT.js → bundled-modules-IGMJH2MU.js} +5 -5
- package/dist/bundle/{chunk-UPVDERMD.js → chunk-2IPDSTDR.js} +11 -9
- package/dist/bundle/chunk-D3KOF57W.js +22040 -0
- package/dist/bundle/{chunk-VCW3YDFF.js → chunk-EXEFSSF4.js} +1475 -562
- package/dist/bundle/{chunk-VSIYFWYI.js → chunk-KT2BNEPE.js} +21 -8
- package/dist/bundle/{chunk-KTNETTHI.js → chunk-Q3MBSBEB.js} +3 -101
- package/dist/bundle/{chunk-LFPWHI42.js → chunk-QKIFBA7N.js} +2 -2
- package/dist/bundle/{chunk-PFROC4EV.js → chunk-RVJVXZCS.js} +12 -9
- package/dist/bundle/{cli-main-MMHTK7EB.js → cli-main-BUK7QTHO.js} +4 -4
- package/dist/bundle/cli.js +1 -1
- package/dist/bundle/{google-T32FMD4G.js → google-HTMCUJ7X.js} +2 -2
- package/dist/bundle/{google-vertex-56KP6I3B.js → google-vertex-ZQO65AXF.js} +2 -2
- package/dist/bundle/{main-XAIVH4Y7.js → main-2FWHT2WZ.js} +5 -5
- package/dist/bundle/{mistral-WGBMYIVU.js → mistral-SB7LU56G.js} +1 -1
- package/dist/bundle/{openai-codex-responses-PIV2RQ3G.js → openai-codex-responses-5CEW4VN3.js} +53 -27
- package/dist/bundle/{openai-completions-64C3JPR4.js → openai-completions-BAZJQSS2.js} +1 -1
- package/dist/bundle/{openai-responses-UI7RSTDV.js → openai-responses-VHOE427P.js} +48 -5
- package/dist/core/agent-session.d.ts +6 -1
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +177 -24
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/canonical-context.d.ts +8 -0
- package/dist/core/canonical-context.d.ts.map +1 -1
- package/dist/core/canonical-context.js +37 -5
- package/dist/core/canonical-context.js.map +1 -1
- package/dist/core/compaction/compaction.d.ts +2 -2
- package/dist/core/compaction/compaction.d.ts.map +1 -1
- package/dist/core/compaction/compaction.js +31 -13
- package/dist/core/compaction/compaction.js.map +1 -1
- package/dist/core/context-epoch.d.ts +1 -1
- package/dist/core/context-epoch.d.ts.map +1 -1
- package/dist/core/context-epoch.js +2 -1
- package/dist/core/context-epoch.js.map +1 -1
- package/dist/core/extensions/types.d.ts +2 -2
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/history-index-worker.d.ts.map +1 -1
- package/dist/core/history-index-worker.js +29 -8
- package/dist/core/history-index-worker.js.map +1 -1
- package/dist/core/history-index.d.ts +11 -1
- package/dist/core/history-index.d.ts.map +1 -1
- package/dist/core/history-index.js +2 -1
- package/dist/core/history-index.js.map +1 -1
- package/dist/core/inference-coordinator.d.ts.map +1 -1
- package/dist/core/inference-coordinator.js +108 -13
- package/dist/core/inference-coordinator.js.map +1 -1
- package/dist/core/kernel/bootstrap.d.ts.map +1 -1
- package/dist/core/kernel/bootstrap.js +97 -107
- package/dist/core/kernel/bootstrap.js.map +1 -1
- package/dist/core/kernel/repl-manager.d.ts.map +1 -1
- package/dist/core/kernel/repl-manager.js +11 -0
- package/dist/core/kernel/repl-manager.js.map +1 -1
- package/dist/core/kernel/shared.d.ts +2 -0
- package/dist/core/kernel/shared.d.ts.map +1 -1
- package/dist/core/kernel/shared.js.map +1 -1
- package/dist/core/messages.d.ts.map +1 -1
- package/dist/core/messages.js +4 -1
- package/dist/core/messages.js.map +1 -1
- package/dist/core/prompts/rlm.d.ts.map +1 -1
- package/dist/core/prompts/rlm.js +4 -2
- package/dist/core/prompts/rlm.js.map +1 -1
- package/dist/core/public-context.d.ts.map +1 -1
- package/dist/core/public-context.js +16 -0
- package/dist/core/public-context.js.map +1 -1
- package/dist/core/refinement/refinement.d.ts +19 -5
- package/dist/core/refinement/refinement.d.ts.map +1 -1
- package/dist/core/refinement/refinement.js +90 -35
- package/dist/core/refinement/refinement.js.map +1 -1
- package/dist/core/request-view-selection.d.ts +10 -2
- package/dist/core/request-view-selection.d.ts.map +1 -1
- package/dist/core/request-view-selection.js +235 -100
- package/dist/core/request-view-selection.js.map +1 -1
- package/dist/core/retained-tool-output.d.ts +28 -0
- package/dist/core/retained-tool-output.d.ts.map +1 -0
- package/dist/core/retained-tool-output.js +102 -0
- package/dist/core/retained-tool-output.js.map +1 -0
- package/dist/core/selective-recovery.d.ts +47 -3
- package/dist/core/selective-recovery.d.ts.map +1 -1
- package/dist/core/selective-recovery.js +428 -109
- package/dist/core/selective-recovery.js.map +1 -1
- package/dist/core/session-history-index.d.ts +3 -1
- package/dist/core/session-history-index.d.ts.map +1 -1
- package/dist/core/session-history-index.js +1 -1
- package/dist/core/session-history-index.js.map +1 -1
- package/dist/core/settings-manager.d.ts +5 -0
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +3 -0
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/system-prompt.d.ts +3 -1
- package/dist/core/system-prompt.d.ts.map +1 -1
- package/dist/core/system-prompt.js +3 -3
- package/dist/core/system-prompt.js.map +1 -1
- package/dist/core/task-frame.d.ts +1 -1
- package/dist/core/task-frame.d.ts.map +1 -1
- package/dist/core/task-frame.js +21 -1
- package/dist/core/task-frame.js.map +1 -1
- package/dist/core/task-state-reader.d.ts +10 -2
- package/dist/core/task-state-reader.d.ts.map +1 -1
- package/dist/core/task-state-reader.js +75 -9
- package/dist/core/task-state-reader.js.map +1 -1
- package/dist/core/tools/ipython.d.ts +5 -0
- package/dist/core/tools/ipython.d.ts.map +1 -1
- package/dist/core/tools/ipython.js +59 -17
- package/dist/core/tools/ipython.js.map +1 -1
- package/dist/core/tools/prime-context.d.ts.map +1 -1
- package/dist/core/tools/prime-context.js +1 -1
- package/dist/core/tools/prime-context.js.map +1 -1
- package/dist/core/view-units.d.ts +4 -0
- package/dist/core/view-units.d.ts.map +1 -1
- package/dist/core/view-units.js +28 -19
- package/dist/core/view-units.js.map +1 -1
- package/dist/installer.mjs +98 -77
- package/dist/modes/interactive/components/refinement-outcome-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/refinement-outcome-message.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +5 -5
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/skills/skill-creator/SKILL.md +18 -1
- package/docs/settings.md +45 -0
- package/docs/skills.md +77 -2
- package/package.json +4 -4
- package/skills/skill-creator/SKILL.md +18 -1
- package/dist/bundle/chunk-W46VZFI6.js +0 -21681
package/dist/build-info.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { createRequire as __piBundleCreateRequire } from 'node:module'; const require = __piBundleCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
writeFileLogEntry
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-QKIFBA7N.js";
|
|
5
|
+
import "./chunk-2IPDSTDR.js";
|
|
6
6
|
import "./chunk-5QCJ5DQU.js";
|
|
7
7
|
import "./chunk-CRBVRZBV.js";
|
|
8
8
|
import "./chunk-GRJFXLBM.js";
|
|
9
9
|
import "./chunk-2T7M7VJ4.js";
|
|
10
10
|
import "./chunk-DGNX7HQ3.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-D3KOF57W.js";
|
|
12
12
|
import "./chunk-BAWSWWEU.js";
|
|
13
13
|
|
|
14
14
|
// dist/node/amazon-bedrock.js
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
streamFailureFromStopReason,
|
|
37
37
|
streamFailureMessage,
|
|
38
38
|
truncateRawPayload
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-D3KOF57W.js";
|
|
40
40
|
import "./chunk-BAWSWWEU.js";
|
|
41
41
|
|
|
42
42
|
// ../../node_modules/@anthropic-ai/sdk/internal/tslib.mjs
|
|
@@ -7190,16 +7190,11 @@ function shouldUseFineGrainedToolStreamingBeta(model, context) {
|
|
|
7190
7190
|
function convertTools(tools, isOAuthToken2, supportsEagerToolInputStreaming, cacheControl) {
|
|
7191
7191
|
if (!tools) return [];
|
|
7192
7192
|
return tools.map((tool, index) => {
|
|
7193
|
-
const schema = tool.parameters;
|
|
7194
7193
|
return {
|
|
7195
7194
|
name: isOAuthToken2 ? toClaudeCodeName(tool.name) : tool.name,
|
|
7196
7195
|
description: tool.description,
|
|
7197
7196
|
...supportsEagerToolInputStreaming ? { eager_input_streaming: true } : {},
|
|
7198
|
-
input_schema:
|
|
7199
|
-
type: "object",
|
|
7200
|
-
properties: schema.properties ?? {},
|
|
7201
|
-
required: schema.required ?? []
|
|
7202
|
-
},
|
|
7197
|
+
input_schema: structuredClone(tool.parameters),
|
|
7203
7198
|
...cacheControl && index === tools.length - 1 ? { cache_control: cacheControl } : {}
|
|
7204
7199
|
};
|
|
7205
7200
|
});
|
package/dist/bundle/{azure-openai-responses-WSNPXLYC.js → azure-openai-responses-AYTLJR33.js}
RENAMED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
convertResponsesMessages,
|
|
4
4
|
convertResponsesTools,
|
|
5
5
|
processResponsesStream
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KT2BNEPE.js";
|
|
7
7
|
import "./chunk-NQB5DCFC.js";
|
|
8
8
|
import {
|
|
9
9
|
AzureOpenAI
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
formatStreamFailureMessage,
|
|
26
26
|
recordStreamFailure,
|
|
27
27
|
streamFailureFromStopReason
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-D3KOF57W.js";
|
|
29
29
|
import "./chunk-BAWSWWEU.js";
|
|
30
30
|
|
|
31
31
|
// ../ai/src/providers/azure-openai-responses.ts
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
oauth_exports,
|
|
52
52
|
runPrintMode,
|
|
53
53
|
runRpcMode
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-RVJVXZCS.js";
|
|
55
55
|
import {
|
|
56
56
|
AgentSession,
|
|
57
57
|
CURRENT_SESSION_VERSION,
|
|
@@ -143,15 +143,15 @@ import {
|
|
|
143
143
|
withFileMutationQueue,
|
|
144
144
|
wrapRegisteredTool,
|
|
145
145
|
wrapRegisteredTools
|
|
146
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-EXEFSSF4.js";
|
|
147
147
|
import "./chunk-CFNASUYO.js";
|
|
148
|
-
import "./chunk-
|
|
148
|
+
import "./chunk-QKIFBA7N.js";
|
|
149
149
|
import {
|
|
150
150
|
VERSION,
|
|
151
151
|
build_exports,
|
|
152
152
|
getAgentDir,
|
|
153
153
|
src_exports
|
|
154
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-2IPDSTDR.js";
|
|
155
155
|
import "./chunk-5QCJ5DQU.js";
|
|
156
156
|
import {
|
|
157
157
|
compile_exports,
|
|
@@ -162,7 +162,7 @@ import "./chunk-2T7M7VJ4.js";
|
|
|
162
162
|
import "./chunk-UIRUOAIQ.js";
|
|
163
163
|
import "./chunk-HXOBFFJX.js";
|
|
164
164
|
import "./chunk-DGNX7HQ3.js";
|
|
165
|
-
import "./chunk-
|
|
165
|
+
import "./chunk-D3KOF57W.js";
|
|
166
166
|
import {
|
|
167
167
|
__export
|
|
168
168
|
} from "./chunk-BAWSWWEU.js";
|
|
@@ -311,6 +311,7 @@ import {
|
|
|
311
311
|
calculateCost,
|
|
312
312
|
clampThinkingLevel,
|
|
313
313
|
classifyStreamFailure,
|
|
314
|
+
conservativeTextTokenCost,
|
|
314
315
|
createAssistantMessageDiagnostic,
|
|
315
316
|
createAssistantMessageEventStream,
|
|
316
317
|
extractDiagnosticError,
|
|
@@ -336,7 +337,7 @@ import {
|
|
|
336
337
|
supportsFastMode,
|
|
337
338
|
truncateRawPayload,
|
|
338
339
|
withRequestBody
|
|
339
|
-
} from "./chunk-
|
|
340
|
+
} from "./chunk-D3KOF57W.js";
|
|
340
341
|
import {
|
|
341
342
|
__export
|
|
342
343
|
} from "./chunk-BAWSWWEU.js";
|
|
@@ -1348,6 +1349,7 @@ __export(src_exports, {
|
|
|
1348
1349
|
clearApiProviders: () => clearApiProviders,
|
|
1349
1350
|
complete: () => complete,
|
|
1350
1351
|
completeSimple: () => completeSimple,
|
|
1352
|
+
conservativeTextTokenCost: () => conservativeTextTokenCost,
|
|
1351
1353
|
createAssistantMessageDiagnostic: () => createAssistantMessageDiagnostic,
|
|
1352
1354
|
createAssistantMessageEventStream: () => createAssistantMessageEventStream,
|
|
1353
1355
|
extractDiagnosticError: () => extractDiagnosticError,
|
|
@@ -1946,7 +1948,7 @@ function createLazySimpleStream(loadModule) {
|
|
|
1946
1948
|
};
|
|
1947
1949
|
}
|
|
1948
1950
|
function loadAnthropicProviderModule() {
|
|
1949
|
-
anthropicProviderModulePromise ||= import("./anthropic-
|
|
1951
|
+
anthropicProviderModulePromise ||= import("./anthropic-5PSCZEER.js").then((module) => {
|
|
1950
1952
|
const provider = module;
|
|
1951
1953
|
return {
|
|
1952
1954
|
stream: provider.streamAnthropic,
|
|
@@ -1956,7 +1958,7 @@ function loadAnthropicProviderModule() {
|
|
|
1956
1958
|
return anthropicProviderModulePromise;
|
|
1957
1959
|
}
|
|
1958
1960
|
function loadAzureOpenAIResponsesProviderModule() {
|
|
1959
|
-
azureOpenAIResponsesProviderModulePromise ||= import("./azure-openai-responses-
|
|
1961
|
+
azureOpenAIResponsesProviderModulePromise ||= import("./azure-openai-responses-AYTLJR33.js").then((module) => {
|
|
1960
1962
|
const provider = module;
|
|
1961
1963
|
return {
|
|
1962
1964
|
stream: provider.streamAzureOpenAIResponses,
|
|
@@ -1966,7 +1968,7 @@ function loadAzureOpenAIResponsesProviderModule() {
|
|
|
1966
1968
|
return azureOpenAIResponsesProviderModulePromise;
|
|
1967
1969
|
}
|
|
1968
1970
|
function loadGoogleProviderModule() {
|
|
1969
|
-
googleProviderModulePromise ||= import("./google-
|
|
1971
|
+
googleProviderModulePromise ||= import("./google-HTMCUJ7X.js").then((module) => {
|
|
1970
1972
|
const provider = module;
|
|
1971
1973
|
return {
|
|
1972
1974
|
stream: provider.streamGoogle,
|
|
@@ -1976,7 +1978,7 @@ function loadGoogleProviderModule() {
|
|
|
1976
1978
|
return googleProviderModulePromise;
|
|
1977
1979
|
}
|
|
1978
1980
|
function loadGoogleVertexProviderModule() {
|
|
1979
|
-
googleVertexProviderModulePromise ||= import("./google-vertex-
|
|
1981
|
+
googleVertexProviderModulePromise ||= import("./google-vertex-ZQO65AXF.js").then((module) => {
|
|
1980
1982
|
const provider = module;
|
|
1981
1983
|
return {
|
|
1982
1984
|
stream: provider.streamGoogleVertex,
|
|
@@ -1986,7 +1988,7 @@ function loadGoogleVertexProviderModule() {
|
|
|
1986
1988
|
return googleVertexProviderModulePromise;
|
|
1987
1989
|
}
|
|
1988
1990
|
function loadMistralProviderModule() {
|
|
1989
|
-
mistralProviderModulePromise ||= import("./mistral-
|
|
1991
|
+
mistralProviderModulePromise ||= import("./mistral-SB7LU56G.js").then((module) => {
|
|
1990
1992
|
const provider = module;
|
|
1991
1993
|
return {
|
|
1992
1994
|
stream: provider.streamMistral,
|
|
@@ -1996,7 +1998,7 @@ function loadMistralProviderModule() {
|
|
|
1996
1998
|
return mistralProviderModulePromise;
|
|
1997
1999
|
}
|
|
1998
2000
|
function loadOpenAICodexResponsesProviderModule() {
|
|
1999
|
-
openAICodexResponsesProviderModulePromise ||= import("./openai-codex-responses-
|
|
2001
|
+
openAICodexResponsesProviderModulePromise ||= import("./openai-codex-responses-5CEW4VN3.js").then((module) => {
|
|
2000
2002
|
const provider = module;
|
|
2001
2003
|
return {
|
|
2002
2004
|
stream: provider.streamOpenAICodexResponses,
|
|
@@ -2006,7 +2008,7 @@ function loadOpenAICodexResponsesProviderModule() {
|
|
|
2006
2008
|
return openAICodexResponsesProviderModulePromise;
|
|
2007
2009
|
}
|
|
2008
2010
|
function loadOpenAICompletionsProviderModule() {
|
|
2009
|
-
openAICompletionsProviderModulePromise ||= import("./openai-completions-
|
|
2011
|
+
openAICompletionsProviderModulePromise ||= import("./openai-completions-BAZJQSS2.js").then((module) => {
|
|
2010
2012
|
const provider = module;
|
|
2011
2013
|
return {
|
|
2012
2014
|
stream: provider.streamOpenAICompletions,
|
|
@@ -2016,7 +2018,7 @@ function loadOpenAICompletionsProviderModule() {
|
|
|
2016
2018
|
return openAICompletionsProviderModulePromise;
|
|
2017
2019
|
}
|
|
2018
2020
|
function loadOpenAIResponsesProviderModule() {
|
|
2019
|
-
openAIResponsesProviderModulePromise ||= import("./openai-responses-
|
|
2021
|
+
openAIResponsesProviderModulePromise ||= import("./openai-responses-VHOE427P.js").then((module) => {
|
|
2020
2022
|
const provider = module;
|
|
2021
2023
|
return {
|
|
2022
2024
|
stream: provider.streamOpenAIResponses,
|