@agimon-ai/po-cache 0.0.0-alpha.0 → 0.0.0-stage
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 +2 -76
- package/package.json +3 -111
- package/LICENSE +0 -46
- package/dist/apiContracts.cjs +0 -17
- package/dist/apiContracts.cjs.map +0 -1
- package/dist/apiContracts.d.mts +0 -53
- package/dist/apiContracts.d.mts.map +0 -1
- package/dist/apiContracts.mjs +0 -13
- package/dist/apiContracts.mjs.map +0 -1
- package/dist/env.cjs +0 -7
- package/dist/env.d.mts +0 -8
- package/dist/env.d.mts.map +0 -1
- package/dist/env.mjs +0 -2
- package/dist/environment-CRhmV8ze.cjs +0 -39
- package/dist/environment-CRhmV8ze.cjs.map +0 -1
- package/dist/environment-vyw-n84h.mjs +0 -10
- package/dist/environment-vyw-n84h.mjs.map +0 -1
- package/dist/extensions/mcp.cjs +0 -26
- package/dist/extensions/mcp.cjs.map +0 -1
- package/dist/extensions/mcp.d.mts +0 -5
- package/dist/extensions/mcp.d.mts.map +0 -1
- package/dist/extensions/mcp.mjs +0 -21
- package/dist/extensions/mcp.mjs.map +0 -1
- package/dist/extensions/server.cjs +0 -3706
- package/dist/extensions/server.cjs.map +0 -1
- package/dist/extensions/server.d.mts +0 -5
- package/dist/extensions/server.d.mts.map +0 -1
- package/dist/extensions/server.mjs +0 -3701
- package/dist/extensions/server.mjs.map +0 -1
- package/dist/index.cjs +0 -17
- package/dist/index.d.mts +0 -116
- package/dist/index.d.mts.map +0 -1
- package/dist/index.mjs +0 -2
- package/dist/promptCacheTelemetry-BU1fIhb8.cjs +0 -289
- package/dist/promptCacheTelemetry-BU1fIhb8.cjs.map +0 -1
- package/dist/promptCacheTelemetry-CguL1ZqT.mjs +0 -200
- package/dist/promptCacheTelemetry-CguL1ZqT.mjs.map +0 -1
- package/llms.txt +0 -11
- package/src/prompts/po-use-cache/SKILL.md +0 -13
package/README.md
CHANGED
|
@@ -1,77 +1,3 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Temporary Holding Version
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Po loads this package as fixed core. It derives stable provider cache keys from the active
|
|
6
|
-
session composition and applies them only to supported provider requests.
|
|
7
|
-
|
|
8
|
-
> **Alpha:** cache routing and provider integration may change between releases.
|
|
9
|
-
|
|
10
|
-
## Requirements
|
|
11
|
-
|
|
12
|
-
- Node.js 24 or newer
|
|
13
|
-
|
|
14
|
-
## Install
|
|
15
|
-
|
|
16
|
-
A Po installation already includes this package. Do not add it to `.po/modes.yaml`.
|
|
17
|
-
|
|
18
|
-
## Package behavior
|
|
19
|
-
|
|
20
|
-
Po derives an opaque provider cache key from stable model-visible state: the composition
|
|
21
|
-
fingerprint, ordered domains, profile, persona, active minor modes, effective model, and child prompt
|
|
22
|
-
projection. Returning to equivalent state restores the same key. Provider expiry or eviction can
|
|
23
|
-
still make the cache cold.
|
|
24
|
-
|
|
25
|
-
The native session contribution rewrites only a nonblank cache key already emitted for an allowlisted OpenAI-family
|
|
26
|
-
wire API. It preserves supported retention and provider cache markers, does not add unsupported
|
|
27
|
-
fields to proxies, and reports only provider-observed token usage. Telemetry reports current
|
|
28
|
-
provider residency as `unknown`.
|
|
29
|
-
|
|
30
|
-
## Help
|
|
31
|
-
|
|
32
|
-
The published package includes `llms.txt` and `src/prompts/po-use-cache/SKILL.md`. While Po
|
|
33
|
-
Help is active, the extension adds `po-use-cache` to the live Help catalog. The contribution
|
|
34
|
-
follows Help provider replacement and is removed when the extension shuts down.
|
|
35
|
-
|
|
36
|
-
## Public API
|
|
37
|
-
|
|
38
|
-
```ts
|
|
39
|
-
import {
|
|
40
|
-
createChildPromptCacheProjection,
|
|
41
|
-
createParentPromptCacheNamespace,
|
|
42
|
-
createPromptCacheKey,
|
|
43
|
-
PromptCacheTelemetry,
|
|
44
|
-
} from '@agimon-ai/po-cache';
|
|
45
|
-
import { PO_PROMPT_CACHE_PARENT_NAMESPACE_ENV, PO_PROMPT_CACHE_ROOT_SESSION_ENV } from '@agimon-ai/po-cache/env';
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
## Development
|
|
49
|
-
|
|
50
|
-
```bash
|
|
51
|
-
pnpm build
|
|
52
|
-
pnpm typecheck
|
|
53
|
-
pnpm test
|
|
54
|
-
pnpm lint
|
|
55
|
-
pnpm exec vibe-lint check .
|
|
56
|
-
npm pack --dry-run
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
The live OpenAI canary is opt-in. It reports provider `cached_tokens`; a cold result does not fail
|
|
60
|
-
the test deterministically:
|
|
61
|
-
|
|
62
|
-
```bash
|
|
63
|
-
PO_CACHE_LIVE_OPENAI=1 \
|
|
64
|
-
OPENAI_API_KEY=... \
|
|
65
|
-
PO_CACHE_LIVE_OPENAI_MODEL=... \
|
|
66
|
-
pnpm exec vitest run tests/live/openaiPromptCache.live.test.ts
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
Maintained by [Agimon](https://agimon.ai/about).
|
|
70
|
-
|
|
71
|
-
## License
|
|
72
|
-
|
|
73
|
-
MIT
|
|
74
|
-
|
|
75
|
-
## Extension lifecycle and source layout
|
|
76
|
-
|
|
77
|
-
`src/extensions/server.ts` declares session hooks and resources from `controllers/cacheHooks.ts`. Shared policy and runtime logic live in `services/<name>/`, telemetry state lives in `models/`, and environment keys live in `constants/`. Flat `src/exports/` files publish reusable capabilities. The server plugin is exported only through `extensions/server`.
|
|
3
|
+
This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
|
package/package.json
CHANGED
|
@@ -1,114 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agimon-ai/po-cache",
|
|
3
|
-
"version": "0.0.0-
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"ai",
|
|
7
|
-
"coding-agent",
|
|
8
|
-
"developer-tools",
|
|
9
|
-
"pi-coding-agent",
|
|
10
|
-
"pi-extension",
|
|
11
|
-
"pi-package",
|
|
12
|
-
"po",
|
|
13
|
-
"prompt-cache",
|
|
14
|
-
"typescript"
|
|
15
|
-
],
|
|
16
|
-
"homepage": "https://agimon.ai",
|
|
17
|
-
"bugs": {
|
|
18
|
-
"url": "https://github.com/AgiFlow/po/issues"
|
|
19
|
-
},
|
|
20
|
-
"license": "MIT",
|
|
21
|
-
"author": "Vuong Ngo",
|
|
22
|
-
"repository": {
|
|
23
|
-
"type": "git",
|
|
24
|
-
"url": "git+https://github.com/AgiFlow/po.git",
|
|
25
|
-
"directory": "packages/foundations/po-cache"
|
|
26
|
-
},
|
|
27
|
-
"files": [
|
|
28
|
-
"dist",
|
|
29
|
-
"src/prompts",
|
|
30
|
-
"llms.txt",
|
|
31
|
-
"README.md",
|
|
32
|
-
"LICENSE",
|
|
33
|
-
"package.json"
|
|
34
|
-
],
|
|
35
|
-
"type": "module",
|
|
36
|
-
"main": "./dist/index.cjs",
|
|
37
|
-
"types": "./dist/index.d.mts",
|
|
38
|
-
"jsnext:main": "./dist/index.mjs",
|
|
39
|
-
"exports": {
|
|
40
|
-
".": {
|
|
41
|
-
"types": "./dist/index.d.mts",
|
|
42
|
-
"import": "./dist/index.mjs",
|
|
43
|
-
"require": "./dist/index.cjs"
|
|
44
|
-
},
|
|
45
|
-
"./env": {
|
|
46
|
-
"types": "./dist/env.d.mts",
|
|
47
|
-
"import": "./dist/env.mjs",
|
|
48
|
-
"require": "./dist/env.cjs"
|
|
49
|
-
},
|
|
50
|
-
"./extensions/server": {
|
|
51
|
-
"types": "./dist/extensions/server.d.mts",
|
|
52
|
-
"import": "./dist/extensions/server.mjs",
|
|
53
|
-
"require": "./dist/extensions/server.cjs"
|
|
54
|
-
},
|
|
55
|
-
"./package.json": "./package.json"
|
|
56
|
-
},
|
|
57
|
-
"publishConfig": {
|
|
58
|
-
"access": "public"
|
|
59
|
-
},
|
|
60
|
-
"dependencies": {
|
|
61
|
-
"@agimon-ai/po-config": "0.0.0-alpha.0",
|
|
62
|
-
"@agimon-ai/po-core": "0.0.0-alpha.0",
|
|
63
|
-
"@agimon-ai/po-minor-mode": "0.0.0-alpha.0",
|
|
64
|
-
"@deepseek-ai/cordis": "4.0.4",
|
|
65
|
-
"pi-cache-optimizer": "2.8.16"
|
|
66
|
-
},
|
|
67
|
-
"devDependencies": {
|
|
68
|
-
"@agimon-ai/po-build": "0.0.0-alpha.0",
|
|
69
|
-
"@agimon-ai/vibe-lint-plugin-doom-extension": "0.0.0-alpha.0",
|
|
70
|
-
"@earendil-works/pi-coding-agent": "1.0.2",
|
|
71
|
-
"@types/node": "26.6.4",
|
|
72
|
-
"@vitest/coverage-v8": "5.0.3",
|
|
73
|
-
"tsdown": "0.23.0",
|
|
74
|
-
"typescript": "7.0.2",
|
|
75
|
-
"vitest": "5.0.3"
|
|
76
|
-
},
|
|
77
|
-
"peerDependencies": {
|
|
78
|
-
"@earendil-works/pi-coding-agent": "1.0.2"
|
|
79
|
-
},
|
|
80
|
-
"peerDependenciesMeta": {
|
|
81
|
-
"@earendil-works/pi-coding-agent": {
|
|
82
|
-
"optional": true
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
"engines": {
|
|
86
|
-
"node": ">=24"
|
|
87
|
-
},
|
|
88
|
-
"poMcp": {
|
|
89
|
-
"entry": "./generated/mcp.ts",
|
|
90
|
-
"dist": "./dist/extensions/mcp.mjs",
|
|
91
|
-
"scopes": [
|
|
92
|
-
"session"
|
|
93
|
-
]
|
|
94
|
-
},
|
|
95
|
-
"poServer": {
|
|
96
|
-
"entry": "./generated/server.ts",
|
|
97
|
-
"dist": "./dist/extensions/server.mjs",
|
|
98
|
-
"scopes": [
|
|
99
|
-
"session"
|
|
100
|
-
],
|
|
101
|
-
"contracts": {
|
|
102
|
-
"entry": "./src/exports/apiContracts.ts",
|
|
103
|
-
"dist": "./dist/apiContracts.mjs"
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
"scripts": {
|
|
107
|
-
"build": "tsdown && tsdown --config tsdown.mcp.config.ts",
|
|
108
|
-
"build:mcp": "tsdown --config tsdown.mcp.config.ts",
|
|
109
|
-
"test": "vitest --run",
|
|
110
|
-
"typecheck": "tsc --noEmit",
|
|
111
|
-
"lint": "oxlint . && oxfmt . --check",
|
|
112
|
-
"fixcode": "oxlint . --fix && oxfmt ."
|
|
113
|
-
}
|
|
3
|
+
"version": "0.0.0-stage",
|
|
4
|
+
"stub": true,
|
|
5
|
+
"description": "Temporary package placeholder for staged publishing"
|
|
114
6
|
}
|
package/LICENSE
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 Vuong Ngo
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
22
|
-
|
|
23
|
-
Adapted statistics and diagnostics from pi-cache-optimizer 2.8.16
|
|
24
|
-
https://github.com/jiangge/pi-cache-optimizer
|
|
25
|
-
|
|
26
|
-
MIT License
|
|
27
|
-
|
|
28
|
-
Copyright (c) 2026 freescheme
|
|
29
|
-
|
|
30
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
31
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
32
|
-
in the Software without restriction, including without limitation the rights
|
|
33
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
34
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
35
|
-
furnished to do so, subject to the following conditions:
|
|
36
|
-
|
|
37
|
-
The above copyright notice and this permission notice shall be included in all
|
|
38
|
-
copies or substantial portions of the Software.
|
|
39
|
-
|
|
40
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
41
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
42
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
43
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
44
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
45
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
46
|
-
SOFTWARE.
|
package/dist/apiContracts.cjs
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
Object.defineProperties(exports, {
|
|
2
|
-
__esModule: { value: true },
|
|
3
|
-
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
-
});
|
|
5
|
-
//#region src/schemas/apiContracts.ts
|
|
6
|
-
/** This facet contributes agent tools, commands or lifecycle only, with no separate HTTP or socket surface. */
|
|
7
|
-
const apiContracts = (0, require("@agimon-ai/po-core/apiContracts").defineApiContract)({
|
|
8
|
-
version: 1,
|
|
9
|
-
http: [],
|
|
10
|
-
sockets: [],
|
|
11
|
-
dynamic: []
|
|
12
|
-
});
|
|
13
|
-
//#endregion
|
|
14
|
-
exports.apiContracts = apiContracts;
|
|
15
|
-
exports.default = apiContracts;
|
|
16
|
-
|
|
17
|
-
//# sourceMappingURL=apiContracts.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"apiContracts.cjs","names":["defineApiContract"],"sources":["../src/schemas/apiContracts.ts"],"sourcesContent":["import { defineApiContract } from '@agimon-ai/po-core/apiContracts';\n\n/** This facet contributes agent tools, commands or lifecycle only, with no separate HTTP or socket surface. */\nexport const apiContracts = defineApiContract({ version: 1, http: [], sockets: [], dynamic: [] });\nexport default apiContracts;\n"],"mappings":";;;;;;AAGA,MAAa,gBAAA,4CAAeA,CAAAA,CAAAA,kBAAAA,CAAkB;CAAE,SAAS;CAAG,MAAM,CAAC;CAAG,SAAS,CAAC;CAAG,SAAS,CAAC;AAAE,CAAC"}
|
package/dist/apiContracts.d.mts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
//#region src/schemas/apiContracts.d.ts
|
|
2
|
-
/** This facet contributes agent tools, commands or lifecycle only, with no separate HTTP or socket surface. */
|
|
3
|
-
export declare const apiContracts: {
|
|
4
|
-
version: 1;
|
|
5
|
-
protocols?: Record<string, string> | undefined;
|
|
6
|
-
schemas?: Record<string, boolean | object> | undefined;
|
|
7
|
-
http: {
|
|
8
|
-
id: string;
|
|
9
|
-
scope: "global" | "session" | "workspace";
|
|
10
|
-
basePath?: string | undefined;
|
|
11
|
-
path: string;
|
|
12
|
-
method: "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT";
|
|
13
|
-
description: string;
|
|
14
|
-
availability?: string | undefined;
|
|
15
|
-
authentication: "device" | "none" | "owner";
|
|
16
|
-
parameters?: {
|
|
17
|
-
name: string;
|
|
18
|
-
in: "header" | "path" | "query";
|
|
19
|
-
required: boolean;
|
|
20
|
-
schema: boolean | object;
|
|
21
|
-
}[] | undefined;
|
|
22
|
-
body?: {
|
|
23
|
-
contentType: string;
|
|
24
|
-
contentTypes?: string[] | undefined;
|
|
25
|
-
required: boolean;
|
|
26
|
-
schema: boolean | object;
|
|
27
|
-
} | undefined;
|
|
28
|
-
responses: Record<string, {
|
|
29
|
-
description: string;
|
|
30
|
-
contentType?: string | undefined;
|
|
31
|
-
schema?: boolean | object | undefined;
|
|
32
|
-
events?: Record<string, boolean | object> | undefined;
|
|
33
|
-
}>;
|
|
34
|
-
}[];
|
|
35
|
-
sockets: {
|
|
36
|
-
id: string;
|
|
37
|
-
scope: "global" | "session" | "workspace";
|
|
38
|
-
description: string;
|
|
39
|
-
availability?: string | undefined;
|
|
40
|
-
service: string;
|
|
41
|
-
member: string;
|
|
42
|
-
direction: "client-to-server" | "server-to-client";
|
|
43
|
-
kind: "channel" | "method" | "state";
|
|
44
|
-
input: boolean | object;
|
|
45
|
-
output?: boolean | object | undefined;
|
|
46
|
-
errors?: boolean | object | undefined;
|
|
47
|
-
}[];
|
|
48
|
-
dynamic: string[];
|
|
49
|
-
gaps?: string[] | undefined;
|
|
50
|
-
};
|
|
51
|
-
//#endregion
|
|
52
|
-
export { apiContracts as default };
|
|
53
|
-
//# sourceMappingURL=apiContracts.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"apiContracts.d.mts","names":[],"sources":["../src/schemas/apiContracts.ts"],"mappings":";;qBAGa"}
|
package/dist/apiContracts.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { defineApiContract } from "@agimon-ai/po-core/apiContracts";
|
|
2
|
-
//#region src/schemas/apiContracts.ts
|
|
3
|
-
/** This facet contributes agent tools, commands or lifecycle only, with no separate HTTP or socket surface. */
|
|
4
|
-
const apiContracts = defineApiContract({
|
|
5
|
-
version: 1,
|
|
6
|
-
http: [],
|
|
7
|
-
sockets: [],
|
|
8
|
-
dynamic: []
|
|
9
|
-
});
|
|
10
|
-
//#endregion
|
|
11
|
-
export { apiContracts, apiContracts as default };
|
|
12
|
-
|
|
13
|
-
//# sourceMappingURL=apiContracts.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"apiContracts.mjs","names":[],"sources":["../src/schemas/apiContracts.ts"],"sourcesContent":["import { defineApiContract } from '@agimon-ai/po-core/apiContracts';\n\n/** This facet contributes agent tools, commands or lifecycle only, with no separate HTTP or socket surface. */\nexport const apiContracts = defineApiContract({ version: 1, http: [], sockets: [], dynamic: [] });\nexport default apiContracts;\n"],"mappings":";;;AAGA,MAAa,eAAe,kBAAkB;CAAE,SAAS;CAAG,MAAM,CAAC;CAAG,SAAS,CAAC;CAAG,SAAS,CAAC;AAAE,CAAC"}
|
package/dist/env.cjs
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_environment = require("./environment-CRhmV8ze.cjs");
|
|
3
|
-
exports.PI_CACHE_RETENTION_ENV = require_environment.PI_CACHE_RETENTION_ENV;
|
|
4
|
-
exports.PI_CACHE_RETENTION_LONG = require_environment.PI_CACHE_RETENTION_LONG;
|
|
5
|
-
exports.PO_PROMPT_CACHE_CHILD_PROJECTION_ENV = require_environment.PO_PROMPT_CACHE_CHILD_PROJECTION_ENV;
|
|
6
|
-
exports.PO_PROMPT_CACHE_PARENT_NAMESPACE_ENV = require_environment.PO_PROMPT_CACHE_PARENT_NAMESPACE_ENV;
|
|
7
|
-
exports.PO_PROMPT_CACHE_ROOT_SESSION_ENV = require_environment.PO_PROMPT_CACHE_ROOT_SESSION_ENV;
|
package/dist/env.d.mts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
//#region src/constants/environment.d.ts
|
|
2
|
-
export declare const PO_PROMPT_CACHE_PARENT_NAMESPACE_ENV = "PO_PROMPT_CACHE_PARENT_NAMESPACE";
|
|
3
|
-
export declare const PO_PROMPT_CACHE_ROOT_SESSION_ENV = "PO_PROMPT_CACHE_ROOT_SESSION";
|
|
4
|
-
export declare const PO_PROMPT_CACHE_CHILD_PROJECTION_ENV = "PO_PROMPT_CACHE_CHILD_PROJECTION";
|
|
5
|
-
export declare const PI_CACHE_RETENTION_ENV = "PI_CACHE_RETENTION";
|
|
6
|
-
export declare const PI_CACHE_RETENTION_LONG = "long";
|
|
7
|
-
//#endregion
|
|
8
|
-
//# sourceMappingURL=env.d.mts.map
|
package/dist/env.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"env.d.mts","names":[],"sources":["../src/constants/environment.ts"],"mappings":";qBAAa;qBACA;qBACA;qBACA;qBACA"}
|
package/dist/env.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { a as PO_PROMPT_CACHE_ROOT_SESSION_ENV, i as PO_PROMPT_CACHE_PARENT_NAMESPACE_ENV, n as PI_CACHE_RETENTION_LONG, r as PO_PROMPT_CACHE_CHILD_PROJECTION_ENV, t as PI_CACHE_RETENTION_ENV } from "./environment-vyw-n84h.mjs";
|
|
2
|
-
export { PI_CACHE_RETENTION_ENV, PI_CACHE_RETENTION_LONG, PO_PROMPT_CACHE_CHILD_PROJECTION_ENV, PO_PROMPT_CACHE_PARENT_NAMESPACE_ENV, PO_PROMPT_CACHE_ROOT_SESSION_ENV };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
//#region src/constants/environment.ts
|
|
2
|
-
const PO_PROMPT_CACHE_PARENT_NAMESPACE_ENV = "PO_PROMPT_CACHE_PARENT_NAMESPACE";
|
|
3
|
-
const PO_PROMPT_CACHE_ROOT_SESSION_ENV = "PO_PROMPT_CACHE_ROOT_SESSION";
|
|
4
|
-
const PO_PROMPT_CACHE_CHILD_PROJECTION_ENV = "PO_PROMPT_CACHE_CHILD_PROJECTION";
|
|
5
|
-
const PI_CACHE_RETENTION_ENV = "PI_CACHE_RETENTION";
|
|
6
|
-
const PI_CACHE_RETENTION_LONG = "long";
|
|
7
|
-
//#endregion
|
|
8
|
-
Object.defineProperty(exports, "PI_CACHE_RETENTION_ENV", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function() {
|
|
11
|
-
return PI_CACHE_RETENTION_ENV;
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
Object.defineProperty(exports, "PI_CACHE_RETENTION_LONG", {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function() {
|
|
17
|
-
return PI_CACHE_RETENTION_LONG;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
Object.defineProperty(exports, "PO_PROMPT_CACHE_CHILD_PROJECTION_ENV", {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
get: function() {
|
|
23
|
-
return PO_PROMPT_CACHE_CHILD_PROJECTION_ENV;
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
Object.defineProperty(exports, "PO_PROMPT_CACHE_PARENT_NAMESPACE_ENV", {
|
|
27
|
-
enumerable: true,
|
|
28
|
-
get: function() {
|
|
29
|
-
return PO_PROMPT_CACHE_PARENT_NAMESPACE_ENV;
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
Object.defineProperty(exports, "PO_PROMPT_CACHE_ROOT_SESSION_ENV", {
|
|
33
|
-
enumerable: true,
|
|
34
|
-
get: function() {
|
|
35
|
-
return PO_PROMPT_CACHE_ROOT_SESSION_ENV;
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
//# sourceMappingURL=environment-CRhmV8ze.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"environment-CRhmV8ze.cjs","names":[],"sources":["../src/constants/environment.ts"],"sourcesContent":["export const PO_PROMPT_CACHE_PARENT_NAMESPACE_ENV = 'PO_PROMPT_CACHE_PARENT_NAMESPACE';\nexport const PO_PROMPT_CACHE_ROOT_SESSION_ENV = 'PO_PROMPT_CACHE_ROOT_SESSION';\nexport const PO_PROMPT_CACHE_CHILD_PROJECTION_ENV = 'PO_PROMPT_CACHE_CHILD_PROJECTION';\nexport const PI_CACHE_RETENTION_ENV = 'PI_CACHE_RETENTION';\nexport const PI_CACHE_RETENTION_LONG = 'long';\n"],"mappings":";AAAA,MAAa,uCAAuC;AACpD,MAAa,mCAAmC;AAChD,MAAa,uCAAuC;AACpD,MAAa,yBAAyB;AACtC,MAAa,0BAA0B"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
//#region src/constants/environment.ts
|
|
2
|
-
const PO_PROMPT_CACHE_PARENT_NAMESPACE_ENV = "PO_PROMPT_CACHE_PARENT_NAMESPACE";
|
|
3
|
-
const PO_PROMPT_CACHE_ROOT_SESSION_ENV = "PO_PROMPT_CACHE_ROOT_SESSION";
|
|
4
|
-
const PO_PROMPT_CACHE_CHILD_PROJECTION_ENV = "PO_PROMPT_CACHE_CHILD_PROJECTION";
|
|
5
|
-
const PI_CACHE_RETENTION_ENV = "PI_CACHE_RETENTION";
|
|
6
|
-
const PI_CACHE_RETENTION_LONG = "long";
|
|
7
|
-
//#endregion
|
|
8
|
-
export { PO_PROMPT_CACHE_ROOT_SESSION_ENV as a, PO_PROMPT_CACHE_PARENT_NAMESPACE_ENV as i, PI_CACHE_RETENTION_LONG as n, PO_PROMPT_CACHE_CHILD_PROJECTION_ENV as r, PI_CACHE_RETENTION_ENV as t };
|
|
9
|
-
|
|
10
|
-
//# sourceMappingURL=environment-vyw-n84h.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"environment-vyw-n84h.mjs","names":[],"sources":["../src/constants/environment.ts"],"sourcesContent":["export const PO_PROMPT_CACHE_PARENT_NAMESPACE_ENV = 'PO_PROMPT_CACHE_PARENT_NAMESPACE';\nexport const PO_PROMPT_CACHE_ROOT_SESSION_ENV = 'PO_PROMPT_CACHE_ROOT_SESSION';\nexport const PO_PROMPT_CACHE_CHILD_PROJECTION_ENV = 'PO_PROMPT_CACHE_CHILD_PROJECTION';\nexport const PI_CACHE_RETENTION_ENV = 'PI_CACHE_RETENTION';\nexport const PI_CACHE_RETENTION_LONG = 'long';\n"],"mappings":";AAAA,MAAa,uCAAuC;AACpD,MAAa,mCAAmC;AAChD,MAAa,uCAAuC;AACpD,MAAa,yBAAyB;AACtC,MAAa,0BAA0B"}
|
package/dist/extensions/mcp.cjs
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
Object.defineProperties(exports, {
|
|
2
|
-
__esModule: { value: true },
|
|
3
|
-
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
-
});
|
|
5
|
-
let _agimon_ai_po_core_mcpFacet = require("@agimon-ai/po-core/mcpFacet");
|
|
6
|
-
let _agimon_ai_po_core_serverFacet = require("@agimon-ai/po-core/serverFacet");
|
|
7
|
-
//#region src/extensions/workspaces/sessions/(backend)/skill/po-use-cache.mcp.ts
|
|
8
|
-
var po_use_cache_mcp_default = (0, _agimon_ai_po_core_mcpFacet.defineMcpSkill)({
|
|
9
|
-
name: "po-use-cache",
|
|
10
|
-
description: "Inspect Po provider prompt cache policy, routing identity, and provider-observed usage.",
|
|
11
|
-
read: () => (0, _agimon_ai_po_core_serverFacet.readPackageResource)(require("url").pathToFileURL(__filename).href, "src/prompts/po-use-cache/SKILL.md")
|
|
12
|
-
});
|
|
13
|
-
//#endregion
|
|
14
|
-
//#region generated/mcp.ts
|
|
15
|
-
const at = (value, context) => typeof value === "function" ? value(context) : value;
|
|
16
|
-
const mcp = (0, _agimon_ai_po_core_mcpFacet.defineMcpPlugin)({
|
|
17
|
-
name: "@agimon-ai/po-cache",
|
|
18
|
-
session: (context) => ({ get skills() {
|
|
19
|
-
return [at(po_use_cache_mcp_default, context)];
|
|
20
|
-
} })
|
|
21
|
-
});
|
|
22
|
-
//#endregion
|
|
23
|
-
exports.default = mcp;
|
|
24
|
-
exports.mcp = mcp;
|
|
25
|
-
|
|
26
|
-
//# sourceMappingURL=mcp.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.cjs","names":["defineMcpSkill","readPackageResource","defineMcpPlugin","skillPoUseCache"],"sources":["../../src/extensions/workspaces/sessions/(backend)/skill/po-use-cache.mcp.ts","../../generated/mcp.ts"],"sourcesContent":["import { defineMcpSkill } from '@agimon-ai/po-core/mcpFacet';\nimport { readPackageResource } from '@agimon-ai/po-core/serverFacet';\n\nexport default defineMcpSkill({\n name: 'po-use-cache',\n description: 'Inspect Po provider prompt cache policy, routing identity, and provider-observed usage.',\n read: () => readPackageResource(import.meta.url, 'src/prompts/po-use-cache/SKILL.md'),\n});\n","// Generated by @agimon-ai/po-build. Do not edit by hand.\nimport { defineMcpPlugin, type DoomMcpSessionPlugin } from '@agimon-ai/po-core/mcpFacet';\n\nimport skillPoUseCache from '../src/extensions/workspaces/sessions/(backend)/skill/po-use-cache.mcp';\n\ntype Factory<T, C> = (context: C) => T;\nconst at = <T, C>(value: T | Factory<T, C>, context: C): T =>\n typeof value === 'function' ? (value as Factory<T, C>)(context) : value;\n\nexport const mcp = defineMcpPlugin({\n name: '@agimon-ai/po-cache',\n session: (context) => ({\n get skills(): DoomMcpSessionPlugin['skills'] { return [at(skillPoUseCache, context)]; },\n }) satisfies DoomMcpSessionPlugin,\n});\n\nexport default mcp;\n"],"mappings":";;;;;;;AAGA,IAAA,4BAAA,GAAeA,4BAAAA,eAAAA,CAAe;CAC5B,MAAM;CACN,aAAa;CACb,aAAA,GAAYC,+BAAAA,oBAAAA,CAAAA,QAAAA,KAAAA,CAAAA,CAAAA,cAAAA,UAAAA,CAAAA,CAAAA,MAAqC,mCAAmC;AACtF,CAAC;;;ACDD,MAAM,MAAY,OAA0B,YAC1C,OAAO,UAAU,aAAc,MAAwB,OAAO,IAAI;AAEpE,MAAa,OAAA,GAAMC,4BAAAA,gBAAAA,CAAgB;CACjC,MAAM;CACN,UAAU,aAAa,EACrB,IAAI,SAAyC;EAAE,OAAO,CAAC,GAAGC,0BAAiB,OAAO,CAAC;CAAG,EACxF;AACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.d.mts","names":[],"sources":["../../generated/mcp.ts"],"mappings":";qBASa,2CAAG"}
|
package/dist/extensions/mcp.mjs
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { defineMcpPlugin, defineMcpSkill } from "@agimon-ai/po-core/mcpFacet";
|
|
2
|
-
import { readPackageResource } from "@agimon-ai/po-core/serverFacet";
|
|
3
|
-
//#region src/extensions/workspaces/sessions/(backend)/skill/po-use-cache.mcp.ts
|
|
4
|
-
var po_use_cache_mcp_default = defineMcpSkill({
|
|
5
|
-
name: "po-use-cache",
|
|
6
|
-
description: "Inspect Po provider prompt cache policy, routing identity, and provider-observed usage.",
|
|
7
|
-
read: () => readPackageResource(import.meta.url, "src/prompts/po-use-cache/SKILL.md")
|
|
8
|
-
});
|
|
9
|
-
//#endregion
|
|
10
|
-
//#region generated/mcp.ts
|
|
11
|
-
const at = (value, context) => typeof value === "function" ? value(context) : value;
|
|
12
|
-
const mcp = defineMcpPlugin({
|
|
13
|
-
name: "@agimon-ai/po-cache",
|
|
14
|
-
session: (context) => ({ get skills() {
|
|
15
|
-
return [at(po_use_cache_mcp_default, context)];
|
|
16
|
-
} })
|
|
17
|
-
});
|
|
18
|
-
//#endregion
|
|
19
|
-
export { mcp as default, mcp };
|
|
20
|
-
|
|
21
|
-
//# sourceMappingURL=mcp.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.mjs","names":["skillPoUseCache"],"sources":["../../src/extensions/workspaces/sessions/(backend)/skill/po-use-cache.mcp.ts","../../generated/mcp.ts"],"sourcesContent":["import { defineMcpSkill } from '@agimon-ai/po-core/mcpFacet';\nimport { readPackageResource } from '@agimon-ai/po-core/serverFacet';\n\nexport default defineMcpSkill({\n name: 'po-use-cache',\n description: 'Inspect Po provider prompt cache policy, routing identity, and provider-observed usage.',\n read: () => readPackageResource(import.meta.url, 'src/prompts/po-use-cache/SKILL.md'),\n});\n","// Generated by @agimon-ai/po-build. Do not edit by hand.\nimport { defineMcpPlugin, type DoomMcpSessionPlugin } from '@agimon-ai/po-core/mcpFacet';\n\nimport skillPoUseCache from '../src/extensions/workspaces/sessions/(backend)/skill/po-use-cache.mcp';\n\ntype Factory<T, C> = (context: C) => T;\nconst at = <T, C>(value: T | Factory<T, C>, context: C): T =>\n typeof value === 'function' ? (value as Factory<T, C>)(context) : value;\n\nexport const mcp = defineMcpPlugin({\n name: '@agimon-ai/po-cache',\n session: (context) => ({\n get skills(): DoomMcpSessionPlugin['skills'] { return [at(skillPoUseCache, context)]; },\n }) satisfies DoomMcpSessionPlugin,\n});\n\nexport default mcp;\n"],"mappings":";;;AAGA,IAAA,2BAAe,eAAe;CAC5B,MAAM;CACN,aAAa;CACb,YAAY,oBAAoB,YAAY,KAAK,mCAAmC;AACtF,CAAC;;;ACDD,MAAM,MAAY,OAA0B,YAC1C,OAAO,UAAU,aAAc,MAAwB,OAAO,IAAI;AAEpE,MAAa,MAAM,gBAAgB;CACjC,MAAM;CACN,UAAU,aAAa,EACrB,IAAI,SAAyC;EAAE,OAAO,CAAC,GAAGA,0BAAiB,OAAO,CAAC;CAAG,EACxF;AACF,CAAC"}
|