@principles/codex-adapter 0.10.0 → 0.10.1
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/tool-semantics.d.ts +11 -1
- package/dist/tool-semantics.js +11 -1
- package/package.json +4 -4
package/dist/tool-semantics.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* never fire on a real Codex event.
|
|
9
9
|
*
|
|
10
10
|
* EVIDENCE BOUND: this declaration contains only names with in-repo
|
|
11
|
-
* evidence — the shipped hook matcher `Bash|apply_patch`
|
|
11
|
+
* evidence — the shipped hook matcher `Bash|apply_patch|pd_submit_pain`
|
|
12
12
|
* (plugins/principles-disciple/hooks/hooks.json:5, locked by
|
|
13
13
|
* packages/codex-adapter/tests/codex-plugin-bundle.test.ts:183 and used as
|
|
14
14
|
* the installed-hook fixture in
|
|
@@ -17,6 +17,16 @@
|
|
|
17
17
|
* Codex tool surface is tracked as PRI-657 — a wrong guess would be worse
|
|
18
18
|
* than a gap (the reliability check rejects undeclared names, forcing
|
|
19
19
|
* correct names).
|
|
20
|
+
*
|
|
21
|
+
* OG-4 DELIBERATE OMISSION (2026-11-13): the PreToolUse matcher now also
|
|
22
|
+
* routes `pd_submit_pain` (the shared MCP write tool) so the hook OBSERVES the
|
|
23
|
+
* call, but the name is intentionally NOT declared here. `CanonicalKind` is a
|
|
24
|
+
* file-mutation axis: `write` feeds `computeBehaviorFacts.writeCount` and
|
|
25
|
+
* disables the `'other' ⇒ facts incomplete` conservative guard. Declaring a
|
|
26
|
+
* ledger write as a file write would fabricate file-level facts, and the
|
|
27
|
+
* payload carries no target path. Until the enum grows a non-file mutation
|
|
28
|
+
* kind (or host-sampled events justify a mapping), it resolves to `'other'`,
|
|
29
|
+
* which the provider treats as an incomplete semantic view.
|
|
20
30
|
*/
|
|
21
31
|
import { type ToolSemanticMappingV1, type ToolSemanticRegistry } from '@principles/core/runtime';
|
|
22
32
|
export declare const CODEX_TOOL_SEMANTIC_MAPPINGS: readonly ToolSemanticMappingV1[];
|
package/dist/tool-semantics.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* never fire on a real Codex event.
|
|
9
9
|
*
|
|
10
10
|
* EVIDENCE BOUND: this declaration contains only names with in-repo
|
|
11
|
-
* evidence — the shipped hook matcher `Bash|apply_patch`
|
|
11
|
+
* evidence — the shipped hook matcher `Bash|apply_patch|pd_submit_pain`
|
|
12
12
|
* (plugins/principles-disciple/hooks/hooks.json:5, locked by
|
|
13
13
|
* packages/codex-adapter/tests/codex-plugin-bundle.test.ts:183 and used as
|
|
14
14
|
* the installed-hook fixture in
|
|
@@ -17,6 +17,16 @@
|
|
|
17
17
|
* Codex tool surface is tracked as PRI-657 — a wrong guess would be worse
|
|
18
18
|
* than a gap (the reliability check rejects undeclared names, forcing
|
|
19
19
|
* correct names).
|
|
20
|
+
*
|
|
21
|
+
* OG-4 DELIBERATE OMISSION (2026-11-13): the PreToolUse matcher now also
|
|
22
|
+
* routes `pd_submit_pain` (the shared MCP write tool) so the hook OBSERVES the
|
|
23
|
+
* call, but the name is intentionally NOT declared here. `CanonicalKind` is a
|
|
24
|
+
* file-mutation axis: `write` feeds `computeBehaviorFacts.writeCount` and
|
|
25
|
+
* disables the `'other' ⇒ facts incomplete` conservative guard. Declaring a
|
|
26
|
+
* ledger write as a file write would fabricate file-level facts, and the
|
|
27
|
+
* payload carries no target path. Until the enum grows a non-file mutation
|
|
28
|
+
* kind (or host-sampled events justify a mapping), it resolves to `'other'`,
|
|
29
|
+
* which the provider treats as an incomplete semantic view.
|
|
20
30
|
*/
|
|
21
31
|
import { buildToolSemanticRegistry } from '@principles/core/runtime';
|
|
22
32
|
export const CODEX_TOOL_SEMANTIC_MAPPINGS = Object.freeze([
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@principles/codex-adapter",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"description": "Codex CLI host adapter for Principles Disciple — implements HostAdapter interface for OpenAI Codex CLI's stdin/stdout JSON hook model (ADR-0020).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"lint": "eslint \"src/**/*.ts\""
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@principles/core": "^7.6.
|
|
37
|
-
"@principles/host-runtime": "^4.1.
|
|
36
|
+
"@principles/core": "^7.6.2",
|
|
37
|
+
"@principles/host-runtime": "^4.1.2",
|
|
38
38
|
"@principles/install-layout": "^0.8.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "80b43dd1b98d261b580215cff8b815594606178c"
|
|
56
56
|
}
|