@agimon-ai/po-cache 0.0.0-alpha.3 → 0.0.0-alpha.4
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/extensions/mcp.cjs.map +1 -1
- package/dist/extensions/mcp.d.mts +1 -1
- package/dist/extensions/mcp.mjs.map +1 -1
- package/dist/extensions/server.cjs +3 -3
- package/dist/extensions/server.cjs.map +1 -1
- package/dist/extensions/server.d.mts +1 -1
- package/dist/extensions/server.mjs +5 -5
- package/dist/extensions/server.mjs.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{promptCacheTelemetry-BU1fIhb8.cjs → promptCacheTelemetry-DeN4LdSo.cjs} +6 -6
- package/dist/promptCacheTelemetry-DeN4LdSo.cjs.map +1 -0
- package/dist/{promptCacheTelemetry-CguL1ZqT.mjs → promptCacheTelemetry-LM1cAPk8.mjs} +5 -5
- package/dist/promptCacheTelemetry-LM1cAPk8.mjs.map +1 -0
- package/package.json +9 -9
- package/dist/promptCacheTelemetry-BU1fIhb8.cjs.map +0 -1
- package/dist/promptCacheTelemetry-CguL1ZqT.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region generated/server.d.ts
|
|
2
|
-
export declare const facet: import("@agimon-ai/po-core/serverFacet").
|
|
2
|
+
export declare const facet: import("@agimon-ai/po-core/serverFacet").PoServerFacet;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { facet as default };
|
|
5
5
|
//# sourceMappingURL=server.d.mts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { a as PO_PROMPT_CACHE_ROOT_SESSION_ENV, i as PO_PROMPT_CACHE_PARENT_NAMESPACE_ENV, r as PO_PROMPT_CACHE_CHILD_PROJECTION_ENV } from "../environment-vyw-n84h.mjs";
|
|
2
|
-
import { c as createPromptCacheModelFingerprint, h as sha256Base64Url, i as rewritePromptCacheKey, l as createRootSessionIdentity, o as createParentPromptCacheNamespace, p as PromptCacheTelemetryService, s as createPromptCacheKey, t as PromptCacheTelemetry, u as canonicalJson } from "../promptCacheTelemetry-
|
|
2
|
+
import { c as createPromptCacheModelFingerprint, h as sha256Base64Url, i as rewritePromptCacheKey, l as createRootSessionIdentity, o as createParentPromptCacheNamespace, p as PromptCacheTelemetryService, s as createPromptCacheKey, t as PromptCacheTelemetry, u as canonicalJson } from "../promptCacheTelemetry-LM1cAPk8.mjs";
|
|
3
3
|
import { createHash, randomUUID } from "node:crypto";
|
|
4
4
|
import { composeServerProviderOverrides, defineServerPlugin } from "@agimon-ai/po-core/serverFacet";
|
|
5
5
|
import { composeRootHooks, defineHook, defineRoot } from "@agimon-ai/po-core/extensionFile";
|
|
6
|
-
import { BACKGROUND_CONTEXT, createSerialRunner, getOrThrow, nodeHost, readTextIfExists,
|
|
6
|
+
import { BACKGROUND_CONTEXT, createSerialRunner, getOrThrow, nodeHost, readTextIfExists, requirePoFs, writeFileAtomic } from "@agimon-ai/po-core/platform";
|
|
7
7
|
import { getSessionHarnessState } from "@agimon-ai/po-config/harnessStore";
|
|
8
|
-
import {
|
|
8
|
+
import { PO_MINOR_MODE_CATALOG_SERVICE, readMinorModeCatalog } from "@agimon-ai/po-minor-mode";
|
|
9
9
|
import { join } from "node:path";
|
|
10
10
|
import { getAgentDir } from "@earendil-works/pi-coding-agent";
|
|
11
11
|
//#region src/services/environment/index.ts
|
|
@@ -175,7 +175,7 @@ function createCacheRuntime(dependencies, environment) {
|
|
|
175
175
|
return parentNamespace;
|
|
176
176
|
};
|
|
177
177
|
const plugin = (cordis) => {
|
|
178
|
-
cordis.inject([
|
|
178
|
+
cordis.inject([PO_MINOR_MODE_CATALOG_SERVICE], (context) => {
|
|
179
179
|
if (isProjectedChild) return void 0;
|
|
180
180
|
const catalog = readMinorModeCatalog(context);
|
|
181
181
|
if (!catalog) return void 0;
|
|
@@ -3593,7 +3593,7 @@ var root_server_default = defineRoot(({ agent, context: root }) => {
|
|
|
3593
3593
|
telemetry,
|
|
3594
3594
|
now: Date.now
|
|
3595
3595
|
}, agent.context.environment);
|
|
3596
|
-
const optimizer = createNativeOptimizer(agent.context,
|
|
3596
|
+
const optimizer = createNativeOptimizer(agent.context, requirePoFs(root));
|
|
3597
3597
|
return {
|
|
3598
3598
|
value: { hooks: optimizer.hooks.map((hook) => {
|
|
3599
3599
|
if (hook.event === "session_start") return {
|