@vincemakes/kiso-core 0.42.2 → 0.42.3
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/kernel/compaction.d.ts +2 -2
- package/dist/kernel/compaction.js +2 -2
- package/dist/kernel/hooks.d.ts +2 -2
- package/dist/kernel/hooks.js +2 -2
- package/dist/kernel/permission.d.ts +1 -1
- package/dist/kernel/permission.js +1 -1
- package/dist/protocol/messages.d.ts +1 -1
- package/dist/protocol/messages.js +1 -1
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* L2 — context-economy primitives, the MECHANICAL half.
|
|
3
3
|
*
|
|
4
4
|
* The kernel's compaction policy is identity preservation, not summary
|
|
5
|
-
* (
|
|
5
|
+
* (the predecessor's ADR-0007): keep the message SHELL (id, role, position), replace
|
|
6
6
|
* the content with a marker, zero LLM calls. A summary is a NEW message; it
|
|
7
7
|
* never rewrites an old one. Messages are immutable (ADR-0002) — "clearing"
|
|
8
8
|
* is append, not mutation.
|
|
@@ -21,7 +21,7 @@ import type { Message } from "../protocol/messages.js";
|
|
|
21
21
|
/**
|
|
22
22
|
* Rough token estimate (chars/4 + structural overhead). Calibration-free on
|
|
23
23
|
* purpose: context economy only needs a stable MONOTONE proxy, not an exact
|
|
24
|
-
* count — the threshold absorbs the error (
|
|
24
|
+
* count — the threshold absorbs the error (the predecessor's ADR-0007). The proxy's
|
|
25
25
|
* three-word contract, and the pins that hold it, are
|
|
26
26
|
* packages/core/tests/sc1b-estimator.test.ts.
|
|
27
27
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* L2 — context-economy primitives, the MECHANICAL half.
|
|
3
3
|
*
|
|
4
4
|
* The kernel's compaction policy is identity preservation, not summary
|
|
5
|
-
* (
|
|
5
|
+
* (the predecessor's ADR-0007): keep the message SHELL (id, role, position), replace
|
|
6
6
|
* the content with a marker, zero LLM calls. A summary is a NEW message; it
|
|
7
7
|
* never rewrites an old one. Messages are immutable (ADR-0002) — "clearing"
|
|
8
8
|
* is append, not mutation.
|
|
@@ -64,7 +64,7 @@ function textTokens(text) {
|
|
|
64
64
|
/**
|
|
65
65
|
* Rough token estimate (chars/4 + structural overhead). Calibration-free on
|
|
66
66
|
* purpose: context economy only needs a stable MONOTONE proxy, not an exact
|
|
67
|
-
* count — the threshold absorbs the error (
|
|
67
|
+
* count — the threshold absorbs the error (the predecessor's ADR-0007). The proxy's
|
|
68
68
|
* three-word contract, and the pins that hold it, are
|
|
69
69
|
* packages/core/tests/sc1b-estimator.test.ts.
|
|
70
70
|
*/
|
package/dist/kernel/hooks.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* L2 — the hook vocabulary: 3 phases + lifecycle (
|
|
2
|
+
* L2 — the hook vocabulary: 3 phases + lifecycle (the predecessor's ADR-0006).
|
|
3
3
|
*
|
|
4
4
|
* ReAct's loop has exactly three model↔world interfaces — assemble (feed the
|
|
5
5
|
* model), model (the model speaks), execute (the model makes the world work)
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*
|
|
10
10
|
* Payload types are SHARED between fire-site and read-site: a hook author
|
|
11
11
|
* cannot drift a key name, because the keys do not exist — the payload is a
|
|
12
|
-
* typed object (the
|
|
12
|
+
* typed object (the predecessor's payload-contract discipline, ADR-0017, as a
|
|
13
13
|
* compile-time fact instead of a written rule).
|
|
14
14
|
*/
|
|
15
15
|
import type { Event } from "../protocol/events.js";
|
package/dist/kernel/hooks.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* L2 — the hook vocabulary: 3 phases + lifecycle (
|
|
2
|
+
* L2 — the hook vocabulary: 3 phases + lifecycle (the predecessor's ADR-0006).
|
|
3
3
|
*
|
|
4
4
|
* ReAct's loop has exactly three model↔world interfaces — assemble (feed the
|
|
5
5
|
* model), model (the model speaks), execute (the model makes the world work)
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*
|
|
10
10
|
* Payload types are SHARED between fire-site and read-site: a hook author
|
|
11
11
|
* cannot drift a key name, because the keys do not exist — the payload is a
|
|
12
|
-
* typed object (the
|
|
12
|
+
* typed object (the predecessor's payload-contract discipline, ADR-0017, as a
|
|
13
13
|
* compile-time fact instead of a written rule).
|
|
14
14
|
*/
|
|
15
15
|
/** Every hook optional; unset = pass-through. The kernel runs with this. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* L2 — permission as a negotiation, not a gate (
|
|
2
|
+
* L2 — permission as a negotiation, not a gate (the predecessor's ADR-0002).
|
|
3
3
|
*
|
|
4
4
|
* A permission decision is a dialog step with state and an upgrade path:
|
|
5
5
|
* allow one call, deny with a reason fed back to the model, or defer to a
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* L2 — permission as a negotiation, not a gate (
|
|
2
|
+
* L2 — permission as a negotiation, not a gate (the predecessor's ADR-0002).
|
|
3
3
|
*
|
|
4
4
|
* A permission decision is a dialog step with state and an upgrade path:
|
|
5
5
|
* allow one call, deny with a reason fed back to the model, or defer to a
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* carries images. Forcing every caller into the array shape to serve the
|
|
11
11
|
* 5% that need vision is a tax paid on every line of product code.
|
|
12
12
|
*
|
|
13
|
-
* See ADR-0003 (sum type). The tool contract's record is
|
|
13
|
+
* See ADR-0003 (sum type). The tool contract's record is the predecessor's ADR-0008 —
|
|
14
14
|
* the PREDECESSOR series, cited the same way in kernel/hooks.ts and
|
|
15
15
|
* kernel/mode.ts: kiso's own numbers 0006-0019 were NEVER assigned
|
|
16
16
|
* (docs/adrs/README.md), so an unprefixed "ADR-0008" sends a reader to a
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* carries images. Forcing every caller into the array shape to serve the
|
|
11
11
|
* 5% that need vision is a tax paid on every line of product code.
|
|
12
12
|
*
|
|
13
|
-
* See ADR-0003 (sum type). The tool contract's record is
|
|
13
|
+
* See ADR-0003 (sum type). The tool contract's record is the predecessor's ADR-0008 —
|
|
14
14
|
* the PREDECESSOR series, cited the same way in kernel/hooks.ts and
|
|
15
15
|
* kernel/mode.ts: kiso's own numbers 0006-0019 were NEVER assigned
|
|
16
16
|
* (docs/adrs/README.md), so an unprefixed "ADR-0008" sends a reader to a
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vincemakes/kiso-core",
|
|
3
|
-
"version": "0.42.
|
|
3
|
+
"version": "0.42.3",
|
|
4
4
|
"description": "kiso core \u2014 protocol, event log, loop, hooks, modes, permissions, compaction, delivery truth. The 2,000-line kernel at the bottom of the kiso framework.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"openai"
|
|
34
34
|
],
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@vincemakes/kiso-evals": "0.42.
|
|
36
|
+
"@vincemakes/kiso-evals": "0.42.3",
|
|
37
37
|
"@types/node": "^26.1.2",
|
|
38
38
|
"typescript": "^5.7.2",
|
|
39
39
|
"vitest": "^3.0.0"
|