@sema-agent/mods-kernel 7.61.0 → 7.63.0
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/events.d.ts +4 -1
- package/dist/events.js +13 -10
- package/package.json +2 -2
package/dist/events.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const KERNEL_CONTRACT_VERSION =
|
|
1
|
+
export declare const KERNEL_CONTRACT_VERSION = 8;
|
|
2
2
|
export declare const MOD_TIERS: readonly ["prepend", "user", "append", "builtin", "core"];
|
|
3
3
|
export type ModTier = (typeof MOD_TIERS)[number];
|
|
4
4
|
export type ModRegistrationTier = Exclude<ModTier, "builtin" | "core">;
|
|
@@ -97,6 +97,7 @@ export declare const MOD_EVENT_TABLE: Readonly<{
|
|
|
97
97
|
"prompt.fill": ModEventRow;
|
|
98
98
|
"prompt.suggest": ModEventRow;
|
|
99
99
|
"prompt.edit": ModEventRow;
|
|
100
|
+
"prompt.change": ModEventRow;
|
|
100
101
|
"prompt.autocomplete": ModEventRow;
|
|
101
102
|
"prompt.section": ModEventRow;
|
|
102
103
|
"prompt.context": ModEventRow;
|
|
@@ -146,6 +147,7 @@ export declare const MOD_EVENT_TABLE: Readonly<{
|
|
|
146
147
|
"session.surface": ModEventRow;
|
|
147
148
|
"session.surfaces": ModEventRow;
|
|
148
149
|
"session.authorize": ModEventRow;
|
|
150
|
+
"session.identity": ModEventRow;
|
|
149
151
|
"session.usage": ModEventRow;
|
|
150
152
|
"session.version": ModEventRow;
|
|
151
153
|
"turn.abort": ModEventRow;
|
|
@@ -168,6 +170,7 @@ export declare const MOD_EVENT_TABLE: Readonly<{
|
|
|
168
170
|
"ui.panes": ModEventRow;
|
|
169
171
|
"ui.selection": ModEventRow;
|
|
170
172
|
"ui.copy": ModEventRow;
|
|
173
|
+
"ui.view": ModEventRow;
|
|
171
174
|
"ui.notify": ModEventRow;
|
|
172
175
|
"ui.blit": ModEventRow;
|
|
173
176
|
"fs.read": ModEventRow;
|
package/dist/events.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const KERNEL_CONTRACT_VERSION =
|
|
1
|
+
export const KERNEL_CONTRACT_VERSION = 8;
|
|
2
2
|
export const MOD_TIERS = Object.freeze(["prepend", "user", "append", "builtin", "core"]);
|
|
3
3
|
export const MOD_SEATS = Object.freeze(["deployment", "task"]);
|
|
4
4
|
export const MOD_EVENT_SIDES = Object.freeze(["engine", "surface", "both"]);
|
|
@@ -55,8 +55,8 @@ export const MOD_EVENT_TABLE = Object.freeze({
|
|
|
55
55
|
"classic.Notification": engine(),
|
|
56
56
|
"classic.UserPromptSubmit": engine(station("refuse", "immediate", ["source", "inputId", "actor", "prompt"])),
|
|
57
57
|
"classic.UserPromptExpansion": engine(),
|
|
58
|
-
"classic.SessionStart": engine(),
|
|
59
|
-
"classic.SessionEnd": engine(),
|
|
58
|
+
"classic.SessionStart": engine(station("skip", "grace")),
|
|
59
|
+
"classic.SessionEnd": engine(station("skip", "grace")),
|
|
60
60
|
"classic.Stop": engine(station("skip", "immediate")),
|
|
61
61
|
"classic.StopFailure": engine(station("skip", "grace")),
|
|
62
62
|
"classic.SubagentStart": engine(station("skip", "immediate", ["agentId", "agentType"])),
|
|
@@ -94,10 +94,11 @@ export const MOD_EVENT_TABLE = Object.freeze({
|
|
|
94
94
|
"ui.focus": surface(station("skip", "grace", ["component", "requestId", "plugin", "origin", "element"], { call: true })),
|
|
95
95
|
"agent.offer": engine(station("skip", "grace", ["agent", "provider"])),
|
|
96
96
|
"agent.spawn": engine(station("refuse_until_run", "immediate", AGENT_SPAWN_PINNED, { call: true })),
|
|
97
|
-
"prompt.submit": engine(),
|
|
97
|
+
"prompt.submit": engine(station("refuse", "immediate", ["source", "inputId", "actor"])),
|
|
98
98
|
"prompt.fill": surface(station("skip", "grace", ["origin", "mode"], { call: true })),
|
|
99
99
|
"prompt.suggest": surface(station("skip", "grace", ["origin"], { call: true })),
|
|
100
100
|
"prompt.edit": surface(station("skip", "grace", ["origin", "key"], { budgetMs: PROMPT_EDIT_BUDGET_MS })),
|
|
101
|
+
"prompt.change": surface(),
|
|
101
102
|
"prompt.autocomplete": surface(),
|
|
102
103
|
"prompt.section": engine(station("skip", "grace", ["name", "key", "mountedTools"])),
|
|
103
104
|
"prompt.context": engine(),
|
|
@@ -113,17 +114,17 @@ export const MOD_EVENT_TABLE = Object.freeze({
|
|
|
113
114
|
"telemetry.mark": engine(),
|
|
114
115
|
"skill.prompt": engine(),
|
|
115
116
|
"attribution.text": engine(),
|
|
116
|
-
"session.start": engine(),
|
|
117
|
+
"session.start": engine(station("skip", "grace", ["cwd", "sessionId", "agentId"])),
|
|
117
118
|
"session.receive": engine(station("refuse", "immediate", ["origin", "event", "agentId"])),
|
|
118
119
|
"session.append": engine(station("skip", "grace", ["door", "origin", "agentId"], { call: true })),
|
|
119
120
|
"session.send": engine(station("refuse_until_run", "immediate", ["origin", "agentId", "to", "text"], { call: true })),
|
|
120
121
|
"session.compact": engine(station("refuse_until_run", "immediate", ["trigger", "agentId", "instructions"], { call: true })),
|
|
121
122
|
"session.attach": engine(),
|
|
122
123
|
"session.detach": engine(),
|
|
123
|
-
"session.measure": engine(),
|
|
124
|
+
"session.measure": engine(station("skip", "grace", ["context", "changed", "agentId"])),
|
|
124
125
|
"session.end": engine(station("skip", "grace", ["reason", "sessionId", "agentId"])),
|
|
125
126
|
"plugin.register": Object.freeze({ side: "both", station: station("refuse", "immediate", ["name", "seat", "tier", "uses"]) }),
|
|
126
|
-
"turn.start": engine(),
|
|
127
|
+
"turn.start": engine(station("skip", "grace", ["turn", "agentId"])),
|
|
127
128
|
"turn.step": engine(),
|
|
128
129
|
"turn.complete": engine(station("skip", "grace", ["answer", "agentId", "turn"])),
|
|
129
130
|
"engine.create": engine(),
|
|
@@ -137,15 +138,16 @@ export const MOD_EVENT_TABLE = Object.freeze({
|
|
|
137
138
|
"session.cwd": engine(method(true)),
|
|
138
139
|
"session.root": engine(method(true)),
|
|
139
140
|
"session.model": engine(method(true)),
|
|
140
|
-
"session.turns": engine(),
|
|
141
|
+
"session.turns": engine(method(true)),
|
|
141
142
|
"session.id": engine(method(true)),
|
|
142
143
|
"session.messages": engine(method(true)),
|
|
143
144
|
"session.repo": engine(),
|
|
144
145
|
"session.surface": engine(),
|
|
145
146
|
"session.surfaces": engine(),
|
|
146
147
|
"session.authorize": engine(),
|
|
147
|
-
"session.
|
|
148
|
-
"session.
|
|
148
|
+
"session.identity": engine(),
|
|
149
|
+
"session.usage": engine(method(true)),
|
|
150
|
+
"session.version": engine(method(true)),
|
|
149
151
|
"turn.abort": engine(),
|
|
150
152
|
"prompt.read": surface(method(true)),
|
|
151
153
|
"flag.value": engine(),
|
|
@@ -166,6 +168,7 @@ export const MOD_EVENT_TABLE = Object.freeze({
|
|
|
166
168
|
"ui.panes": surface(),
|
|
167
169
|
"ui.selection": surface(method(true)),
|
|
168
170
|
"ui.copy": surface(method(true)),
|
|
171
|
+
"ui.view": surface(),
|
|
169
172
|
"ui.notify": surface(),
|
|
170
173
|
"ui.blit": surface(),
|
|
171
174
|
"fs.read": engine(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sema-agent/mods-kernel",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.63.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The sema mods kernel: one extension bus (registration, admission, chain, failure and budget law) shared by the engine and the shell. Zero dependencies.",
|
|
6
6
|
"type": "module",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"scripts": {
|
|
32
32
|
"build": "tsc -p tsconfig.json"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "bbc88f8338cca4452ef29328a57de79c18c47502"
|
|
35
35
|
}
|