@gencode/agents 0.12.0 → 0.12.1

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.
@@ -1,5 +1,5 @@
1
1
  import * as _gencode_shared0 from "@gencode/shared";
2
- import { AgentDiagnosticEvent, AgentProgressEvent, AgentProgressEvent as AgentProgressEvent$1, AgentProgressEventBase, CallbackEventPayload, Channel, Channel as Channel$1, HitlCheckpoint, HitlRequest, HitlResolution, HitlToolContext, RunResultPayload, SessionContextSnapshot, SessionMetadata, SessionSummary, ToolResultReference, UiToolExtra, UiToolOutputSchema, UiToolResult, UiToolValidationResult } from "@gencode/shared";
2
+ import { AgentDiagnosticEvent, AgentProgressEvent, AgentProgressEvent as AgentProgressEvent$1, AgentProgressEventBase, ArtifactRecord, CallbackEventPayload, Channel, Channel as Channel$1, HitlCheckpoint, HitlRequest, HitlResolution, HitlToolContext, RunResultPayload, SessionContextSnapshot, SessionMetadata, SessionSummary, ToolResultReference, UiToolExtra, UiToolOutputSchema, UiToolResult, UiToolValidationResult } from "@gencode/shared";
3
3
  import { Agent, AgentTool } from "@earendil-works/pi-agent-core";
4
4
  import { AssistantMessage, Message, Type } from "@earendil-works/pi-ai";
5
5
 
@@ -1051,7 +1051,8 @@ type AgentRunParamsBase = {
1051
1051
  * Additional skill registry directories supplied by the CLI.
1052
1052
  * Each directory contains skill child directories such as <dir>/<skill-name>/SKILL.md.
1053
1053
  */
1054
- skillsLoadPaths?: string[]; /** Whether the CLI should prepare an encrypted .aimax mount before this run. */
1054
+ skillsLoadPaths?: string[]; /** Optional exact hostnames allowed for returned URL artifacts. Undefined or empty means collect all URL artifacts. */
1055
+ artifactsUrlWhitelist?: string[]; /** Whether the CLI should prepare an encrypted .aimax mount before this run. */
1055
1056
  encryptSessions?: boolean; /** Memory system options (optional) */
1056
1057
  memory?: {
1057
1058
  /** Explicit memory provider id (overrides plugins.slots.memory) */providerId?: string; /** Explicit plugin id for memory provider (used when providerId not set) */
@@ -1149,7 +1150,8 @@ type UserEntry = {
1149
1150
  type AssistantEntry = {
1150
1151
  role: "assistant"; /** Text response from the assistant (may be empty when the turn is tool-only) */
1151
1152
  content: string; /** Reasoning/thinking text when the model returned a thinking block */
1152
- thinking?: string; /** Persisted SDK stop reason when the assistant turn ended abnormally. */
1153
+ thinking?: string; /** Final user-relevant artifacts produced by the run when this is the run's final assistant entry. */
1154
+ artifacts?: ArtifactRecord[]; /** Persisted SDK stop reason when the assistant turn ended abnormally. */
1153
1155
  stopReason?: "stop" | "length" | "toolUse" | "error" | "aborted"; /** Pi-compatible assistant error text for failed model turns. */
1154
1156
  errorMessage?: string; /** Tool calls issued by the assistant during this turn */
1155
1157
  toolCalls?: Array<{
@@ -1,4 +1,4 @@
1
- import { C as TranscriptEntry, Hn as PluginHookRegistry, i as preloadExtensions, ln as RunEventDispatcher, mn as PluginHookAgentContext, n as discoverPiExtensions, o as PluginToolRegistry, r as getExtensions, t as DiscoveredPiExtension } from "../loader-CWpoiWtT.js";
1
+ import { C as TranscriptEntry, Hn as PluginHookRegistry, i as preloadExtensions, ln as RunEventDispatcher, mn as PluginHookAgentContext, n as discoverPiExtensions, o as PluginToolRegistry, r as getExtensions, t as DiscoveredPiExtension } from "../loader-CR0TB17A.js";
2
2
  import { Agent, AgentTool } from "@earendil-works/pi-agent-core";
3
3
 
4
4
  //#region src/pi-extensions/tool-adapter.d.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gencode/agents",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -37,7 +37,7 @@
37
37
  "openai": "6.10.0",
38
38
  "sqlite-vec": "^0.1.6",
39
39
  "zod": "^4.3.6",
40
- "@gencode/shared": "0.2.2"
40
+ "@gencode/shared": "0.2.3"
41
41
  },
42
42
  "engines": {
43
43
  "node": ">=22.19.0"