@oh-my-pi/pi-agent-core 1.341.0 → 2.0.1337

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oh-my-pi/pi-agent-core",
3
- "version": "1.341.0",
3
+ "version": "2.0.1337",
4
4
  "description": "General-purpose agent with transport abstraction, state management, and attachment support",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
package/src/agent-loop.ts CHANGED
@@ -19,7 +19,7 @@ import type {
19
19
  AgentTool,
20
20
  AgentToolResult,
21
21
  StreamFn,
22
- } from "./types.js";
22
+ } from "./types";
23
23
 
24
24
  /**
25
25
  * Start an agent loop with a new prompt message.
package/src/agent.ts CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  streamSimple,
13
13
  type TextContent,
14
14
  } from "@oh-my-pi/pi-ai";
15
- import { agentLoop, agentLoopContinue } from "./agent-loop.js";
15
+ import { agentLoop, agentLoopContinue } from "./agent-loop";
16
16
  import type {
17
17
  AgentContext,
18
18
  AgentEvent,
@@ -23,7 +23,7 @@ import type {
23
23
  AgentToolContext,
24
24
  StreamFn,
25
25
  ThinkingLevel,
26
- } from "./types.js";
26
+ } from "./types";
27
27
 
28
28
  /**
29
29
  * Default convertToLlm: Keep only LLM-compatible messages, convert attachments.
package/src/index.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  // Core Agent
2
- export * from "./agent.js";
2
+ export * from "./agent";
3
3
  // Loop functions
4
- export * from "./agent-loop.js";
4
+ export * from "./agent-loop";
5
5
  // Proxy utilities
6
- export * from "./proxy.js";
6
+ export * from "./proxy";
7
7
  // Types
8
- export * from "./types.js";
8
+ export * from "./types";
package/src/types.ts CHANGED
@@ -174,6 +174,8 @@ export interface AgentTool<TParameters extends TSchema = TSchema, TDetails = any
174
174
  extends Tool<TParameters> {
175
175
  // A human-readable label for the tool to be displayed in UI
176
176
  label: string;
177
+ /** If true, tool is excluded unless explicitly listed in --tools or agent's tools field */
178
+ hidden?: boolean;
177
179
  execute: (
178
180
  toolCallId: string,
179
181
  params: Static<TParameters>,