@collegium/sdk 0.0.1-beta.19 → 0.0.1-beta.22

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/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { c as ToolTurnScope, d as defineConfig, i as defineTool, n as ToolContext, o as ToolApprovalPayload, s as ToolDisclosure, t as PluginTool, u as Register } from "./tool-CZZZNBSg.js";
1
+ import { c as ToolTurnScope, d as defineConfig, i as defineTool, n as ToolContext, o as ToolApprovalPayload, s as ToolDisclosure, t as PluginTool, u as Register } from "./tool-CcZsVMw2.js";
2
2
  export { type PluginTool, type Register, type ToolApprovalPayload, type ToolContext, type ToolDisclosure, type ToolTurnScope, defineConfig, defineTool };
package/dist/testing.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as PluginToolFailureError, c as ToolTurnScope, l as PluginConfig, r as ToolContextFor } from "./tool-CZZZNBSg.js";
1
+ import { a as PluginToolFailureError, c as ToolTurnScope, l as PluginConfig, r as ToolContextFor } from "./tool-CcZsVMw2.js";
2
2
  import { z } from "zod";
3
3
  //#region src/testing.d.ts
4
4
  /** `settings` as the declared schema accepts them, so defaults apply as they do at boot; `turn` overrides the four facts */
@@ -114,9 +114,10 @@ declare class PluginToolFailureError extends Error {
114
114
  }
115
115
  //#endregion
116
116
  //#region ../core/src/plugins/plugins.types.d.ts
117
- /** what a plugin tool body may return: the text alone, or the text beside a durable record's disclosure (§3.4) */
117
+ /** what a plugin tool body may return: the text alone, or the text beside a durable record's disclosure and the line later turns replay (§3.4) */
118
118
  type PluginToolOutput = string | {
119
119
  readonly disclosure?: ToolDisclosure;
120
+ readonly replay?: string;
120
121
  readonly text: string;
121
122
  };
122
123
  /**
@@ -133,11 +134,15 @@ type PluginToolErr = {
133
134
  type PluginToolDeclaration<TContext, TParams extends z.ZodType> = {
134
135
  /** present ⇒ the tool always gates (§5); renders the payload the approver reads and cannot decline */
135
136
  approval?(args: z.infer<TParams>): ToolApprovalPayload;
137
+ /** may run alongside the other concurrent calls of one completion: a read that touches nothing another call in the batch does */
138
+ readonly concurrent?: boolean;
136
139
  readonly description: string;
137
140
  execute(args: z.infer<TParams>, context: TContext): Promisable<PluginToolOutput>;
138
141
  readonly parameters: TParams;
139
142
  /** §7.2 — whether a timed-out call may be reported to the model as a plain failure; false ends the turn as unconfirmable */
140
143
  readonly retryable?: boolean;
144
+ /** a later result of any supersedable tool in the same turn replaces this one's text with its replay line, past the retained few (§3.8) */
145
+ readonly supersedable?: boolean;
141
146
  readonly timeoutMs?: number;
142
147
  /** §8.1 — the one-line summary beside the name in the status post; absent shows the name alone */
143
148
  traceDetail?(args: z.infer<TParams>): string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@collegium/sdk",
3
3
  "type": "module",
4
- "version": "0.0.1-beta.19",
4
+ "version": "0.0.1-beta.22",
5
5
  "description": "Write a Collegium plugin: declare a toolset with its tools, settings, storage, and skills.",
6
6
  "license": "AGPL-3.0-only",
7
7
  "homepage": "https://collegium.sh",