principles-disciple 1.203.0 → 1.204.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.
@@ -195,14 +195,28 @@ export interface PluginHookBeforePromptBuildResult {
195
195
  }
196
196
  export interface PluginHookBeforeToolCallEvent {
197
197
  toolName: string;
198
+ /** Host-provided tool call arguments (OpenClaw 2026.7.x sends `params`). */
198
199
  params?: Record<string, unknown>;
200
+ /** @deprecated Host sends `params`; kept for older adapter shims. */
199
201
  toolArgs?: Record<string, unknown>;
200
202
  agentId?: string;
201
203
  sessionId?: string;
202
204
  [key: string]: unknown;
203
205
  }
204
206
  export interface PluginHookBeforeToolCallResult {
207
+ /**
208
+ * Host merge contract (OpenClaw 2026.7.x, hook-before-tool-call-result.ts):
209
+ * only `params`, `block`, `blockReason`, `requireApproval` are read from the
210
+ * hook result. New code must use these fields.
211
+ */
212
+ params?: Record<string, unknown>;
213
+ block?: boolean;
214
+ blockReason?: string;
215
+ /** Shape is host-defined (approval request details). */
216
+ requireApproval?: unknown;
217
+ /** @deprecated Use `params`. Host does not read `toolArgs`. */
205
218
  toolArgs?: Record<string, unknown>;
219
+ /** @deprecated Blocking is expressed via `block: true`. Host does not read `skipToolCall`. */
206
220
  skipToolCall?: boolean;
207
221
  [key: string]: unknown;
208
222
  }
@@ -250,15 +264,21 @@ export interface PluginHookSubagentEndedEvent {
250
264
  [key: string]: unknown;
251
265
  }
252
266
  export interface PluginHookLlmOutputEvent {
253
- output: string;
267
+ /**
268
+ * @deprecated Host (OpenClaw 2026.7.x) does not send `output`. It fires once
269
+ * per model-loop attempt with `assistantTexts` + `lastAssistant`; read those.
270
+ */
271
+ output?: string;
254
272
  agentId?: string;
255
273
  sessionId?: string;
256
274
  runId?: string;
257
275
  provider?: string;
258
276
  model?: string;
259
277
  usage?: TokenUsage;
278
+ /** Host-provided full assistant texts for this model-loop attempt. */
260
279
  assistantTexts?: string[];
261
280
  trigger?: string;
281
+ /** Last complete assistant message object (host-defined shape). */
262
282
  lastAssistant?: unknown;
263
283
  [key: string]: unknown;
264
284
  }
@@ -314,6 +334,8 @@ export interface PluginHookBeforeMessageWriteResult {
314
334
  role?: string;
315
335
  content?: unknown;
316
336
  };
337
+ /** Host contract: `block: true` prevents the transcript write entirely. */
338
+ block?: boolean;
317
339
  [key: string]: unknown;
318
340
  }
319
341
  export interface OpenClawPluginHttpRouteParams {
@@ -2,7 +2,7 @@
2
2
  "id": "principles-disciple",
3
3
  "name": "Principles Disciple",
4
4
  "description": "Turn repeated Agent corrections into Owner-approved, observable, reversible behavior principles. Stop correcting the same AI behavior across sessions.",
5
- "version": "1.203.0",
5
+ "version": "1.204.0",
6
6
  "activation": {
7
7
  "onCapabilities": [
8
8
  "hook"
@@ -2,7 +2,7 @@
2
2
  "id": "principles-disciple",
3
3
  "name": "Principles Disciple",
4
4
  "description": "Turn repeated Agent corrections into Owner-approved, observable, reversible behavior principles. Stop correcting the same AI behavior across sessions.",
5
- "version": "1.203.0",
5
+ "version": "1.204.0",
6
6
  "activation": {
7
7
  "onCapabilities": [
8
8
  "hook"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "principles-disciple",
3
- "version": "1.203.0",
3
+ "version": "1.204.0",
4
4
  "description": "Turn repeated Agent corrections into Owner-approved, observable, reversible behavior principles. Stop correcting the same AI behavior across sessions.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",