@ponythewhite/base-context 1.0.5 → 1.0.6
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 +6 -0
- package/dist/base-context-runtime/pyproject.toml +1 -1
- package/dist/base-context-runtime/uv.lock +1 -1
- package/dist/build-info.json +1 -1
- package/dist/bundle/{bundled-modules-UVCJPNFC.js → bundled-modules-MEACET4U.js} +2 -2
- package/dist/bundle/{chunk-WFJRFQGG.js → chunk-LIZVVGHR.js} +3 -2
- package/dist/bundle/{chunk-6FZM46AU.js → chunk-QKI6KEGP.js} +46 -22
- package/dist/bundle/{cli-main-OYVMMJUO.js → cli-main-ANUJY7Y4.js} +2 -2
- package/dist/bundle/cli.js +1 -1
- package/dist/bundle/{main-AVMYOTHF.js → main-4GIKOHIT.js} +2 -2
- package/dist/cli/product-doctor.d.ts.map +1 -1
- package/dist/cli/product-doctor.js +2 -2
- package/dist/cli/product-doctor.js.map +1 -1
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +9 -3
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/canonical-context.d.ts +3 -1
- package/dist/core/canonical-context.d.ts.map +1 -1
- package/dist/core/canonical-context.js +46 -16
- package/dist/core/canonical-context.js.map +1 -1
- package/dist/core/context-epoch-copy.d.ts.map +1 -1
- package/dist/core/context-epoch-copy.js +1 -1
- package/dist/core/context-epoch-copy.js.map +1 -1
- package/dist/core/context-epoch.d.ts +12 -2
- package/dist/core/context-epoch.d.ts.map +1 -1
- package/dist/core/context-epoch.js +28 -12
- package/dist/core/context-epoch.js.map +1 -1
- package/dist/core/session-bootstrap.d.ts +1 -0
- package/dist/core/session-bootstrap.d.ts.map +1 -1
- package/dist/core/session-bootstrap.js +1 -1
- package/dist/core/session-bootstrap.js.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-bootstrap.d.ts","sourceRoot":"","sources":["../../src/core/session-bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAC/F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAgB,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAsBzF,6FAA6F;AAC7F,wBAAsB,oBAAoB,CACzC,cAAc,EAAE,cAAc,EAC9B,MAAM,EAAE,sBAAsB,EAC9B,OAAO,GAAE;
|
|
1
|
+
{"version":3,"file":"session-bootstrap.d.ts","sourceRoot":"","sources":["../../src/core/session-bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAC/F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAgB,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAsBzF,6FAA6F;AAC7F,wBAAsB,oBAAoB,CACzC,cAAc,EAAE,cAAc,EAC9B,MAAM,EAAE,sBAAsB,EAC9B,OAAO,GAAE;IACR,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,kBAAkB,CAAC,EAAE,WAAW,CAAC;IACjC,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;CACxB;;;;;GAmEN","sourcesContent":["import { CanonicalContextCompiler, type CanonicalContextLimits } from \"./canonical-context.js\";\nimport type { ContextMode } from \"./context-epoch.js\";\nimport type { SessionContext, SessionEntry, SessionManager } from \"./session-manager.js\";\n\nfunction restoreBootstrapSetting(context: SessionContext, entry: SessionEntry): void {\n\tswitch (entry.type) {\n\t\tcase \"model_change\":\n\t\t\tcontext.model = { provider: entry.provider, modelId: entry.modelId };\n\t\t\tbreak;\n\t\tcase \"message\":\n\t\t\tif (entry.message.role !== \"assistant\") throw new Error(\"Bootstrap model source is not an assistant\");\n\t\t\tcontext.model = { provider: entry.message.provider, modelId: entry.message.model };\n\t\t\tbreak;\n\t\tcase \"thinking_level_change\":\n\t\t\tcontext.thinkingLevel = entry.thinkingLevel;\n\t\t\tbreak;\n\t\tcase \"service_tier_change\":\n\t\t\tcontext.serviceTier = entry.serviceTier;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tthrow new Error(\"Unexpected bootstrap setting source kind\");\n\t}\n}\n\n/** Restore settings and presence from one captured branch, including messages by default. */\nexport async function readSessionBootstrap(\n\tsessionManager: SessionManager,\n\tlimits: CanonicalContextLimits,\n\toptions: {\n\t\tincludeMessages?: boolean;\n\t\tallowPendingToolPublic?: boolean;\n\t\tinitialContextMode?: ContextMode;\n\t\tpurpose?: \"request\" | \"read\";\n\t} = {},\n) {\n\tlimits = { ...limits };\n\tconst includeMessages = options.includeMessages ?? true;\n\tif (!sessionManager.supportsCapturedHistoryReads()) {\n\t\tconst context: SessionContext = includeMessages\n\t\t\t? sessionManager.buildSessionContext()\n\t\t\t: { messages: [], thinkingLevel: \"off\", serviceTier: \"default\", model: null };\n\t\tconst branch = sessionManager.getBranch();\n\t\tif (!includeMessages) {\n\t\t\tfor (const entry of branch) {\n\t\t\t\tif (\n\t\t\t\t\tentry.type === \"model_change\" ||\n\t\t\t\t\tentry.type === \"thinking_level_change\" ||\n\t\t\t\t\tentry.type === \"service_tier_change\" ||\n\t\t\t\t\t(entry.type === \"message\" && entry.message.role === \"assistant\")\n\t\t\t\t)\n\t\t\t\t\trestoreBootstrapSetting(context, entry);\n\t\t\t}\n\t\t}\n\t\treturn {\n\t\t\tcontext,\n\t\t\thasExistingSession: includeMessages\n\t\t\t\t? context.messages.length > 0\n\t\t\t\t: branch.some(\n\t\t\t\t\t\t(entry) =>\n\t\t\t\t\t\t\tentry.type === \"compaction\" ||\n\t\t\t\t\t\t\tentry.type === \"custom_message\" ||\n\t\t\t\t\t\t\t(entry.type === \"message\" && !!entry.message) ||\n\t\t\t\t\t\t\t(entry.type === \"branch_summary\" && !!entry.summary),\n\t\t\t\t\t),\n\t\t\thasThinkingEntry: branch.some((entry) => entry.type === \"thinking_level_change\"),\n\t\t\thasServiceTierEntry: branch.some((entry) => entry.type === \"service_tier_change\"),\n\t\t};\n\t}\n\treturn sessionManager.readBranchHistory(async (view) => {\n\t\tconst bootstrap = await view.branchBootstrap();\n\t\tconst context: SessionContext = { messages: [], thinkingLevel: \"off\", serviceTier: \"default\", model: null };\n\t\tlet sourceBytes = 0;\n\t\tfor (const ref of [bootstrap.model, bootstrap.thinkingLevel, bootstrap.serviceTier]) {\n\t\t\tif (!ref) continue;\n\t\t\tconst remaining = limits.maxSourceBytes - sourceBytes;\n\t\t\tsourceBytes += ref.locator.length;\n\t\t\tif (sourceBytes > limits.maxSourceBytes) throw new Error(\"Bootstrap source byte budget exceeded\");\n\t\t\tconst hydrated = await view.hydrateEntry(ref.id, remaining);\n\t\t\tif (!hydrated) throw new Error(\"Bootstrap setting source is unavailable\");\n\t\t\trestoreBootstrapSetting(context, hydrated.entry);\n\t\t}\n\t\t// Native session construction may restore an unadmittable raw plan. It grants no transport permission.\n\t\tif (includeMessages)\n\t\t\tcontext.messages = await new CanonicalContextCompiler().compile(\n\t\t\t\tview.branchContext,\n\t\t\t\tlimits,\n\t\t\t\tundefined,\n\t\t\t\t{},\n\t\t\t\tundefined,\n\t\t\t\toptions.initialContextMode ?? \"on\",\n\t\t\t\toptions.allowPendingToolPublic,\n\t\t\t\toptions.purpose,\n\t\t\t);\n\t\treturn {\n\t\t\tcontext,\n\t\t\thasExistingSession: bootstrap.hasContextMessages,\n\t\t\thasThinkingEntry: bootstrap.thinkingLevel !== null,\n\t\t\thasServiceTierEntry: bootstrap.serviceTier !== null,\n\t\t};\n\t});\n}\n"]}
|
|
@@ -67,7 +67,7 @@ export async function readSessionBootstrap(sessionManager, limits, options = {})
|
|
|
67
67
|
}
|
|
68
68
|
// Native session construction may restore an unadmittable raw plan. It grants no transport permission.
|
|
69
69
|
if (includeMessages)
|
|
70
|
-
context.messages = await new CanonicalContextCompiler().compile(view.branchContext, limits, undefined, {}, undefined, options.initialContextMode ?? "on", options.allowPendingToolPublic);
|
|
70
|
+
context.messages = await new CanonicalContextCompiler().compile(view.branchContext, limits, undefined, {}, undefined, options.initialContextMode ?? "on", options.allowPendingToolPublic, options.purpose);
|
|
71
71
|
return {
|
|
72
72
|
context,
|
|
73
73
|
hasExistingSession: bootstrap.hasContextMessages,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-bootstrap.js","sourceRoot":"","sources":["../../src/core/session-bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAA+B,MAAM,wBAAwB,CAAC;AAI/F,SAAS,uBAAuB,CAAC,OAAuB,EAAE,KAAmB,EAAQ;IACpF,QAAQ,KAAK,CAAC,IAAI,EAAE,CAAC;QACpB,KAAK,cAAc;YAClB,OAAO,CAAC,KAAK,GAAG,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC;YACrE,MAAM;QACP,KAAK,SAAS;YACb,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,KAAK,WAAW;gBAAE,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;YACtG,OAAO,CAAC,KAAK,GAAG,EAAE,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;YACnF,MAAM;QACP,KAAK,uBAAuB;YAC3B,OAAO,CAAC,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC;YAC5C,MAAM;QACP,KAAK,qBAAqB;YACzB,OAAO,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;YACxC,MAAM;QACP;YACC,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;IAC9D,CAAC;AAAA,CACD;AAED,6FAA6F;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AAO,CAAC,kBAAkB,IAAI,IAAI,EAClC,OAAO,CAAC,sBAAsB,EAC9B,OAAO,CAAC,OAAO,CACf,CAAC;QACH,OAAO;YACN,OAAO;YACP,kBAAkB,EAAE,SAAS,CAAC,kBAAkB;YAChD,gBAAgB,EAAE,SAAS,CAAC,aAAa,KAAK,IAAI;YAClD,mBAAmB,EAAE,SAAS,CAAC,WAAW,KAAK,IAAI;SACnD,CAAC;IAAA,CACF,CAAC,CAAC;AAAA,CACH","sourcesContent":["import { CanonicalContextCompiler, type CanonicalContextLimits } from \"./canonical-context.js\";\nimport type { ContextMode } from \"./context-epoch.js\";\nimport type { SessionContext, SessionEntry, SessionManager } from \"./session-manager.js\";\n\nfunction restoreBootstrapSetting(context: SessionContext, entry: SessionEntry): void {\n\tswitch (entry.type) {\n\t\tcase \"model_change\":\n\t\t\tcontext.model = { provider: entry.provider, modelId: entry.modelId };\n\t\t\tbreak;\n\t\tcase \"message\":\n\t\t\tif (entry.message.role !== \"assistant\") throw new Error(\"Bootstrap model source is not an assistant\");\n\t\t\tcontext.model = { provider: entry.message.provider, modelId: entry.message.model };\n\t\t\tbreak;\n\t\tcase \"thinking_level_change\":\n\t\t\tcontext.thinkingLevel = entry.thinkingLevel;\n\t\t\tbreak;\n\t\tcase \"service_tier_change\":\n\t\t\tcontext.serviceTier = entry.serviceTier;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tthrow new Error(\"Unexpected bootstrap setting source kind\");\n\t}\n}\n\n/** Restore settings and presence from one captured branch, including messages by default. */\nexport async function readSessionBootstrap(\n\tsessionManager: SessionManager,\n\tlimits: CanonicalContextLimits,\n\toptions: {\n\t\tincludeMessages?: boolean;\n\t\tallowPendingToolPublic?: boolean;\n\t\tinitialContextMode?: ContextMode;\n\t\tpurpose?: \"request\" | \"read\";\n\t} = {},\n) {\n\tlimits = { ...limits };\n\tconst includeMessages = options.includeMessages ?? true;\n\tif (!sessionManager.supportsCapturedHistoryReads()) {\n\t\tconst context: SessionContext = includeMessages\n\t\t\t? sessionManager.buildSessionContext()\n\t\t\t: { messages: [], thinkingLevel: \"off\", serviceTier: \"default\", model: null };\n\t\tconst branch = sessionManager.getBranch();\n\t\tif (!includeMessages) {\n\t\t\tfor (const entry of branch) {\n\t\t\t\tif (\n\t\t\t\t\tentry.type === \"model_change\" ||\n\t\t\t\t\tentry.type === \"thinking_level_change\" ||\n\t\t\t\t\tentry.type === \"service_tier_change\" ||\n\t\t\t\t\t(entry.type === \"message\" && entry.message.role === \"assistant\")\n\t\t\t\t)\n\t\t\t\t\trestoreBootstrapSetting(context, entry);\n\t\t\t}\n\t\t}\n\t\treturn {\n\t\t\tcontext,\n\t\t\thasExistingSession: includeMessages\n\t\t\t\t? context.messages.length > 0\n\t\t\t\t: branch.some(\n\t\t\t\t\t\t(entry) =>\n\t\t\t\t\t\t\tentry.type === \"compaction\" ||\n\t\t\t\t\t\t\tentry.type === \"custom_message\" ||\n\t\t\t\t\t\t\t(entry.type === \"message\" && !!entry.message) ||\n\t\t\t\t\t\t\t(entry.type === \"branch_summary\" && !!entry.summary),\n\t\t\t\t\t),\n\t\t\thasThinkingEntry: branch.some((entry) => entry.type === \"thinking_level_change\"),\n\t\t\thasServiceTierEntry: branch.some((entry) => entry.type === \"service_tier_change\"),\n\t\t};\n\t}\n\treturn sessionManager.readBranchHistory(async (view) => {\n\t\tconst bootstrap = await view.branchBootstrap();\n\t\tconst context: SessionContext = { messages: [], thinkingLevel: \"off\", serviceTier: \"default\", model: null };\n\t\tlet sourceBytes = 0;\n\t\tfor (const ref of [bootstrap.model, bootstrap.thinkingLevel, bootstrap.serviceTier]) {\n\t\t\tif (!ref) continue;\n\t\t\tconst remaining = limits.maxSourceBytes - sourceBytes;\n\t\t\tsourceBytes += ref.locator.length;\n\t\t\tif (sourceBytes > limits.maxSourceBytes) throw new Error(\"Bootstrap source byte budget exceeded\");\n\t\t\tconst hydrated = await view.hydrateEntry(ref.id, remaining);\n\t\t\tif (!hydrated) throw new Error(\"Bootstrap setting source is unavailable\");\n\t\t\trestoreBootstrapSetting(context, hydrated.entry);\n\t\t}\n\t\t// Native session construction may restore an unadmittable raw plan. It grants no transport permission.\n\t\tif (includeMessages)\n\t\t\tcontext.messages = await new CanonicalContextCompiler().compile(\n\t\t\t\tview.branchContext,\n\t\t\t\tlimits,\n\t\t\t\tundefined,\n\t\t\t\t{},\n\t\t\t\tundefined,\n\t\t\t\toptions.initialContextMode ?? \"on\",\n\t\t\t\toptions.allowPendingToolPublic,\n\t\t\t\toptions.purpose,\n\t\t\t);\n\t\treturn {\n\t\t\tcontext,\n\t\t\thasExistingSession: bootstrap.hasContextMessages,\n\t\t\thasThinkingEntry: bootstrap.thinkingLevel !== null,\n\t\t\thasServiceTierEntry: bootstrap.serviceTier !== null,\n\t\t};\n\t});\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ponythewhite/base-context",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Synerise base-context: a coding and research agent with durable context and a persistent Python REPL",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@agentclientprotocol/sdk": "^1.3.0",
|
|
45
|
-
"@ponythewhite/base-context-agent": "1.0.
|
|
46
|
-
"@ponythewhite/base-context-ai": "1.0.
|
|
47
|
-
"@ponythewhite/base-context-tui": "1.0.
|
|
45
|
+
"@ponythewhite/base-context-agent": "1.0.6",
|
|
46
|
+
"@ponythewhite/base-context-ai": "1.0.6",
|
|
47
|
+
"@ponythewhite/base-context-tui": "1.0.6",
|
|
48
48
|
"@silvia-odwyer/photon-node": "^0.3.4",
|
|
49
49
|
"chalk": "^5.5.0",
|
|
50
50
|
"cli-highlight": "^2.1.11",
|