@symbioticsec/plugin 0.8.12 → 0.8.15

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +31 -0
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -346,6 +346,16 @@ export interface Hooks {
346
346
  callID: string;
347
347
  }, output: {
348
348
  args: any;
349
+ /**
350
+ * Optional PreToolUse-style hint. The host injects this into the next
351
+ * model turn without failing the tool.
352
+ */
353
+ additionalContext?: string;
354
+ /**
355
+ * If set, the host prompts the user before the tool runs
356
+ * (`PermissionNext.ask`). Use instead of throwing for routing `ask`.
357
+ */
358
+ ask?: string;
349
359
  }) => Promise<void>;
350
360
  "shell.env"?: (input: {
351
361
  cwd: string;
@@ -364,6 +374,27 @@ export interface Hooks {
364
374
  output: string;
365
375
  metadata: any;
366
376
  }) => Promise<void>;
377
+ /**
378
+ * SessionStart equivalent. Fired once when a session begins processing
379
+ * (`create` / `resume`) and again after compaction (`compact`). Push
380
+ * strings onto `output.context`. The host keeps this as stable session
381
+ * knowledge (conversation prefix), not a per-turn system-prompt splice.
382
+ * One-shot PreToolUse hints still use `tool.execute.before` additionalContext.
383
+ */
384
+ "session.start"?: (input: {
385
+ sessionID: string;
386
+ reason: "create" | "resume" | "compact";
387
+ }, output: {
388
+ context: string[];
389
+ }) => Promise<void>;
390
+ /**
391
+ * Stop equivalent. Fired when the assistant turn ends (loop complete or abort).
392
+ * `chat.complete` still fires per stream step.
393
+ */
394
+ "session.stop"?: (input: {
395
+ sessionID: string;
396
+ last?: string;
397
+ }, output: {}) => Promise<void>;
367
398
  "experimental.chat.messages.transform"?: (input: {}, output: {
368
399
  messages: {
369
400
  info: Message;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@symbioticsec/plugin",
4
- "version": "0.8.12",
4
+ "version": "0.8.15",
5
5
  "type": "module",
6
6
  "license": "© Symbiotic Security. All rights reserved. Use is subject to the Legal Agreements outlined here: https://docs.google.com/document/d/1jwTKCmTBKdtXkIDFWgfw4T00govAv5tLOPoO96pDFLU",
7
7
  "scripts": {
@@ -42,7 +42,7 @@
42
42
  "dist"
43
43
  ],
44
44
  "dependencies": {
45
- "@symbioticsec/sdk": "0.8.12",
45
+ "@symbioticsec/sdk": "0.8.15",
46
46
  "zod": "4.1.8"
47
47
  },
48
48
  "devDependencies": {