@vellumai/plugin-api 0.10.7-dev.202607081809.214a958 → 0.10.7-dev.202607081935.d1f7c0a

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/index.d.ts +0 -160
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -101,12 +101,6 @@ export declare type AgentLoopExitReason =
101
101
  /** An unhandled error ended the turn. */
102
102
  | "error";
103
103
 
104
- declare interface AllowlistOption {
105
- label: string;
106
- description: string;
107
- pattern: string;
108
- }
109
-
110
104
  declare interface AppDataResponse {
111
105
  type: "app_data_response";
112
106
  surfaceId: string;
@@ -1453,8 +1447,6 @@ declare interface EnvVarsResponse {
1453
1447
  vars: Record<string, string>;
1454
1448
  }
1455
1449
 
1456
- declare type ErrorCategory = "permission_denied" | "auth" | "tool_failure" | "unexpected";
1457
-
1458
1450
  declare type ErrorEvent_2 = z.infer<typeof ErrorEventSchema>;
1459
1451
 
1460
1452
  declare const ErrorEventSchema: z.ZodObject<{
@@ -1467,58 +1459,6 @@ declare const ErrorEventSchema: z.ZodObject<{
1467
1459
  conversationId: z.ZodOptional<z.ZodString>;
1468
1460
  }, z.core.$strip>;
1469
1461
 
1470
- /**
1471
- * Tool-related type declarations: the neutral leaf module describing
1472
- * tools, permission risk, and tool execution results.
1473
- *
1474
- * Pure type-level declarations only (+ the `RiskLevel` enum, which is a
1475
- * value). No runtime helpers live here — the assistant keeps all behavior
1476
- * functions in `assistant/src/tools/` and re-exports the types from this
1477
- * file. This module imports nothing, so it can sit at the bottom of the
1478
- * import graph and be consumed by `tools/types.ts`, `providers/types.ts`,
1479
- * and `permissions/types.ts` without creating cycles.
1480
- *
1481
- * Heavy daemon-internal references (CES client, host-proxy classes, trust
1482
- * classifications, interface IDs, content blocks, CES `ApprovalRequired`)
1483
- * are held as opaque `unknown` / broadened-`string` placeholders here. The
1484
- * assistant redeclares `Tool`, `ToolContext`, `ToolExecutionResult`,
1485
- * `ToolExecutedEvent`, `ToolLifecycleEvent`, `ToolLifecycleEventHandler`,
1486
- * and `ProxyToolResolver` in `assistant/src/tools/types.ts` with the
1487
- * concrete types in place, so existing call sites keep their full type
1488
- * information. The two sides are structurally independent — no inheritance,
1489
- * no intersection — which avoids TypeScript's contravariance mismatches on
1490
- * lifecycle-event handlers.
1491
- */
1492
- declare type ExecutionTarget = "sandbox" | "host";
1493
-
1494
- /**
1495
- * Telemetry fields stamped centrally by the executor's `emitLifecycleEvent`
1496
- * on terminal (executed/error) lifecycle events.
1497
- */
1498
- declare interface ExecutorTelemetryStamp {
1499
- /**
1500
- * Model attribution snapshot for the conversation at invocation time.
1501
- * Copied from {@link ToolContext.attribution} by the executor; `null` when
1502
- * resolution failed or no attribution was available.
1503
- */
1504
- attribution?: UsageAttributionSnapshot | null;
1505
- /**
1506
- * Serialized byte size of the RAW tool input, stamped by the executor
1507
- * before sensitive-field sanitization rewrites `input`. Only the size
1508
- * leaves the device, never the payload.
1509
- */
1510
- inputBytes?: number | null;
1511
- /**
1512
- * Byte size of the RAW tool result content, stamped by the executor
1513
- * before sensitive-output extraction rewrites `result.content`. Only
1514
- * stamped on `executed` events: error events carry no executor-side
1515
- * result — the audit listener sizes the error string it builds itself,
1516
- * which never goes through sanitization, so it is already raw. Only the
1517
- * size leaves the device, never the payload.
1518
- */
1519
- resultBytes?: number | null;
1520
- }
1521
-
1522
1462
  export declare interface FileContent {
1523
1463
  type: "file";
1524
1464
  source: MediaSource_2;
@@ -3461,11 +3401,6 @@ declare interface SchedulesListResponse {
3461
3401
 
3462
3402
  declare type _SchedulesServerMessages = SchedulesListResponse | HeartbeatAlert | HeartbeatConversationCreated | HeartbeatConfigResponse | HeartbeatRunsListResponse | HeartbeatRunNowResponse | HeartbeatChecklistResponse | HeartbeatChecklistWriteResponse | FilingConfigResponse | FilingRunNowResponse;
3463
3403
 
3464
- declare interface ScopeOption {
3465
- label: string;
3466
- scope: string;
3467
- }
3468
-
3469
3404
  /**
3470
3405
  * Result vocabulary for a secret prompt: how the value is delivered and the
3471
3406
  * outcome of the prompt. Kept in a leaf module (no runtime dependencies) so
@@ -4097,11 +4032,6 @@ export declare interface ToolContext {
4097
4032
  * @legacy
4098
4033
  */
4099
4034
  attribution?: UsageAttributionSnapshot | null;
4100
- /**
4101
- * Optional callback for tool lifecycle events (start/prompt/deny/execute/error).
4102
- * @legacy
4103
- */
4104
- onToolLifecycleEvent?: ToolLifecycleEventHandler;
4105
4035
  /**
4106
4036
  * Optional resolver for proxy tools - delegates execution to an external client.
4107
4037
  * @legacy
@@ -4369,54 +4299,6 @@ declare const ToolDefinitionSchema: z.ZodObject<{
4369
4299
  exclusive: z.ZodOptional<z.ZodBoolean>;
4370
4300
  }, z.core.$strip>;
4371
4301
 
4372
- /**
4373
- * `ToolExecutedEvent` carries a `result: ToolExecutionResult` field, so
4374
- * the assistant re-declares it here to reference the assistant-side
4375
- * `ToolExecutionResult` (which narrows `contentBlocks` to `ContentBlock[]`
4376
- * and `cesApprovalRequired` to `ApprovalRequired`).
4377
- */
4378
- declare interface ToolExecutedEvent extends ExecutorTelemetryStamp {
4379
- type: "executed";
4380
- toolName: string;
4381
- input: Record<string, unknown>;
4382
- workingDir: string;
4383
- conversationId: string;
4384
- requestId?: string;
4385
- executionTarget?: ExecutionTarget;
4386
- riskLevel: string;
4387
- /** ID of the trust rule that matched this invocation (if any). */
4388
- matchedTrustRuleId?: string;
4389
- /** How the approval decision was reached. Copied from PermissionDecision for analytics consumers. */
4390
- approvalMode?: string;
4391
- /** Why the approval decision was reached (stable enum). Copied from PermissionDecision for analytics consumers. */
4392
- approvalReason?: string;
4393
- decision: string;
4394
- durationMs: number;
4395
- result: ToolExecutionResult;
4396
- }
4397
-
4398
- /**
4399
- * Extends the contracts declaration with the assistant-side telemetry
4400
- * fields stamped centrally by the executor's `emitLifecycleEvent`.
4401
- */
4402
- declare interface ToolExecutionErrorEvent extends ToolExecutionErrorEvent_2, ExecutorTelemetryStamp {
4403
- }
4404
-
4405
- declare interface ToolExecutionErrorEvent_2 extends ToolLifecycleEventBase {
4406
- type: "error";
4407
- riskLevel: string;
4408
- /** ID of the trust rule that matched this invocation (if any). */
4409
- matchedTrustRuleId?: string;
4410
- decision: string;
4411
- durationMs: number;
4412
- errorMessage: string;
4413
- isExpected: boolean;
4414
- /** Classifies the error for downstream consumers (audit, alerting, monitoring). */
4415
- errorCategory: ErrorCategory;
4416
- errorName?: string;
4417
- errorStack?: string;
4418
- }
4419
-
4420
4302
  export declare interface ToolExecutionResult {
4421
4303
  /** Textual result shown to the model in the tool-result block. Empty string is valid. */
4422
4304
  content: string;
@@ -4501,11 +4383,6 @@ export declare interface ToolExecutionResult {
4501
4383
  activityMetadata?: ToolActivityMetadata;
4502
4384
  }
4503
4385
 
4504
- declare interface ToolExecutionStartEvent extends ToolLifecycleEventBase {
4505
- type: "start";
4506
- startedAtMs: number;
4507
- }
4508
-
4509
4386
  declare interface ToolInputDelta {
4510
4387
  type: "tool_input_delta";
4511
4388
  toolName: string;
@@ -4529,19 +4406,6 @@ declare interface ToolInputSchema {
4529
4406
  required?: string[];
4530
4407
  }
4531
4408
 
4532
- declare type ToolLifecycleEvent = ToolExecutionStartEvent | ToolPermissionPromptEvent | ToolPermissionDeniedEvent | ToolExecutedEvent | ToolExecutionErrorEvent;
4533
-
4534
- declare interface ToolLifecycleEventBase {
4535
- toolName: string;
4536
- input: Record<string, unknown>;
4537
- workingDir: string;
4538
- conversationId: string;
4539
- requestId?: string;
4540
- executionTarget?: ExecutionTarget;
4541
- }
4542
-
4543
- declare type ToolLifecycleEventHandler = (event: ToolLifecycleEvent) => void | Promise<void>;
4544
-
4545
4409
  declare interface ToolNamesListResponse {
4546
4410
  type: "tool_names_list_response";
4547
4411
  /** Sorted list of all registered tool names. */
@@ -4569,30 +4433,6 @@ declare const ToolOutputChunkEventSchema: z.ZodObject<{
4569
4433
  messageId: z.ZodOptional<z.ZodString>;
4570
4434
  }, z.core.$strip>;
4571
4435
 
4572
- declare interface ToolPermissionDeniedEvent extends ToolLifecycleEventBase {
4573
- type: "permission_denied";
4574
- riskLevel: string;
4575
- /** Classifier-provided reason explaining why the risk level was assigned (bash/host_bash only). */
4576
- riskReason?: string;
4577
- /** ID of the trust rule that matched this invocation (if any). */
4578
- matchedTrustRuleId?: string;
4579
- decision: "deny" | "always_deny";
4580
- reason: string;
4581
- durationMs: number;
4582
- }
4583
-
4584
- declare interface ToolPermissionPromptEvent extends ToolLifecycleEventBase {
4585
- type: "permission_prompt";
4586
- riskLevel: string;
4587
- /** Classifier-provided reason explaining why the risk level was assigned (bash/host_bash only). */
4588
- riskReason?: string;
4589
- reason: string;
4590
- allowlistOptions: AllowlistOption[];
4591
- scopeOptions: ScopeOption[];
4592
- diff?: DiffInfo;
4593
- persistentDecisionsAllowed?: boolean;
4594
- }
4595
-
4596
4436
  declare interface ToolPermissionSimulateResponse {
4597
4437
  type: "tool_permission_simulate_response";
4598
4438
  success: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.10.7-dev.202607081809.214a958",
3
+ "version": "0.10.7-dev.202607081935.d1f7c0a",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",