billion-context-omp 0.1.7 → 0.1.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/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/dist/index.js +583 -51
- package/dist/index.js.map +1 -1
- package/dist/messages.d.ts +1 -1
- package/dist/user-config.d.ts +7 -1
- package/package.json +2 -2
package/dist/messages.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SessionEntry, SessionMessageEntry } from "@oh-my-pi/pi-coding-agent";
|
|
2
|
-
import type
|
|
2
|
+
import { type CoreMessage } from "acp-kernel";
|
|
3
3
|
type AgentMessage = SessionMessageEntry["message"];
|
|
4
4
|
export type { AgentMessage };
|
|
5
5
|
export declare function entriesToCoreMessages(entries: SessionEntry[]): CoreMessage[];
|
package/dist/user-config.d.ts
CHANGED
|
@@ -19,7 +19,13 @@ export interface UserAcpConfig {
|
|
|
19
19
|
compressModel?: string;
|
|
20
20
|
}
|
|
21
21
|
/** Read global + project acp-omp.json, project overrides global. Returns {} on any
|
|
22
|
-
* error (missing file, bad JSON) — never throws.
|
|
22
|
+
* error (missing file, bad JSON) — never throws.
|
|
23
|
+
*
|
|
24
|
+
* `prompts` / `acknowledgePromptsRisk` are accepted from the GLOBAL config
|
|
25
|
+
* only (issue #32): a repo under agent control can ship a project-local
|
|
26
|
+
* .omp/acp-omp.json, and letting it inject arbitrary system-prompt text
|
|
27
|
+
* every turn is a prompt-injection surface. Project-local files may tune
|
|
28
|
+
* everything else (thresholds, models, timeouts) but not the prompts. */
|
|
23
29
|
export declare function loadUserConfig(cwd: string): Promise<UserAcpConfig>;
|
|
24
30
|
/** Merge user config onto an adapter config: user config wins for the keys it
|
|
25
31
|
* sets. Used at session_start to apply runtime-discovered config. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "billion-context-omp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "One billion, not one million. Model-driven context management for the oh-my-pi (omp) coding agent.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"@oh-my-pi/pi-coding-agent": "17.3.2",
|
|
69
69
|
"@oh-my-pi/pi-utils": "17.3.2",
|
|
70
70
|
"@types/node": "^26.1.2",
|
|
71
|
-
"acp-kernel": "0.0.
|
|
71
|
+
"acp-kernel": "0.0.24",
|
|
72
72
|
"billion-context-kit": "0.2.0",
|
|
73
73
|
"tsup": "^8.5.1",
|
|
74
74
|
"tsx": "^4.23.1",
|