@poncho-ai/harness 0.32.0 → 0.33.0

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
 
2
- > @poncho-ai/harness@0.32.0 build /Users/cesar/Dev/latitude/poncho-ai/packages/harness
2
+ > @poncho-ai/harness@0.33.0 build /home/runner/work/poncho-ai/poncho-ai/packages/harness
3
3
  > node scripts/embed-docs.js && tsup src/index.ts --format esm --dts
4
4
 
5
5
  [embed-docs] Generated poncho-docs.ts with 4 topics
@@ -8,8 +8,8 @@
8
8
  CLI tsup v8.5.1
9
9
  CLI Target: es2022
10
10
  ESM Build start
11
- ESM dist/index.js 340.95 KB
12
- ESM ⚡️ Build success in 194ms
11
+ ESM dist/index.js 334.17 KB
12
+ ESM ⚡️ Build success in 152ms
13
13
  DTS Build start
14
- DTS ⚡️ Build success in 3547ms
15
- DTS dist/index.d.ts 34.66 KB
14
+ DTS ⚡️ Build success in 7104ms
15
+ DTS dist/index.d.ts 33.55 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @poncho-ai/harness
2
2
 
3
+ ## 0.33.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#75](https://github.com/cesr/poncho-ai/pull/75) [`d447d0a`](https://github.com/cesr/poncho-ai/commit/d447d0a3cb77f3d097276b524b5f870dddf1899e) Thanks [@cesr](https://github.com/cesr)! - Add `maxRuns` option to cron jobs for automatic pruning of old conversations, preventing unbounded storage growth on hosted stores.
8
+
9
+ ## 0.32.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`67424e0`](https://github.com/cesr/poncho-ai/commit/67424e073b2faa28a255781f91a80f4602c745e2) Thanks [@cesr](https://github.com/cesr)! - Fix stale fired reminders not being cleaned up: pruneStale now removes all fired reminders immediately and runs on list() in addition to create().
14
+
3
15
  ## 0.32.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -20,6 +20,7 @@ interface CronJobConfig {
20
20
  task: string;
21
21
  timezone?: string;
22
22
  channel?: string;
23
+ maxRuns?: number;
23
24
  }
24
25
  interface AgentFrontmatter {
25
26
  name: string;
@@ -442,12 +443,6 @@ interface PonchoConfig extends McpConfig {
442
443
  url: string;
443
444
  headers?: Record<string, string>;
444
445
  };
445
- latitude?: {
446
- apiKeyEnv?: string;
447
- projectIdEnv?: string;
448
- path?: string;
449
- documentPath?: string;
450
- };
451
446
  handler?: (event: unknown) => Promise<void> | void;
452
447
  };
453
448
  skills?: Record<string, Record<string, unknown>>;
@@ -728,11 +723,9 @@ declare class AgentHarness {
728
723
  private lastSkillRefreshAt;
729
724
  private readonly activeSkillNames;
730
725
  private readonly registeredMcpToolNames;
731
- private latitudeTelemetry?;
732
726
  private otlpSpanProcessor?;
733
727
  private otlpTracerProvider?;
734
728
  private hasOtlpExporter;
735
- private insideTelemetryCapture;
736
729
  private _browserSession?;
737
730
  private _browserMod?;
738
731
  private parsedAgent?;
@@ -801,9 +794,8 @@ declare class AgentHarness {
801
794
  shutdown(): Promise<void>;
802
795
  listTools(): ToolDefinition[];
803
796
  /**
804
- * Wraps the run() generator with telemetry capture for complete trace coverage.
805
- * Supports Latitude, generic OTLP, or both simultaneously.
806
- * Streams events in real-time using an event queue pattern.
797
+ * Wraps the run() generator with an OTel root span (invoke_agent) so all
798
+ * child spans (LLM calls via AI SDK, tool execution) group under one trace.
807
799
  */
808
800
  runWithTelemetry(input: RunInput): AsyncGenerator<AgentEvent>;
809
801
  compact(messages: Message[], options?: CompactMessagesOptions): Promise<CompactResult>;
@@ -824,30 +816,6 @@ declare class AgentHarness {
824
816
  runToCompletion(input: RunInput): Promise<HarnessRunOutput>;
825
817
  }
826
818
 
827
- interface LatitudeCaptureConfig {
828
- apiKeyEnv?: string;
829
- projectIdEnv?: string;
830
- path?: string;
831
- defaultPath?: string;
832
- }
833
- /**
834
- * Reads and validates Latitude telemetry configuration from environment
835
- * variables. The actual telemetry capture is handled by LatitudeTelemetry
836
- * from @latitude-data/telemetry in harness.ts (via runWithTelemetry).
837
- */
838
- declare class LatitudeCapture {
839
- private readonly apiKey?;
840
- private readonly projectId?;
841
- private readonly path?;
842
- constructor(config?: LatitudeCaptureConfig);
843
- isConfigured(): boolean;
844
- getConfig(): {
845
- apiKey: string | undefined;
846
- projectId: number | undefined;
847
- path: string | undefined;
848
- };
849
- }
850
-
851
819
  /**
852
820
  * Converts a JSON Schema object to a Zod schema
853
821
  *
@@ -931,12 +899,6 @@ declare function normalizeOtlp(opt: OtlpOption | undefined): OtlpConfig | undefi
931
899
  interface TelemetryConfig {
932
900
  enabled?: boolean;
933
901
  otlp?: OtlpOption;
934
- latitude?: {
935
- apiKeyEnv?: string;
936
- projectIdEnv?: string;
937
- path?: string;
938
- documentPath?: string;
939
- };
940
902
  handler?: (event: AgentEvent) => Promise<void> | void;
941
903
  }
942
904
  declare class TelemetryEmitter {
@@ -948,4 +910,4 @@ declare class TelemetryEmitter {
948
910
 
949
911
  declare const createSubagentTools: (manager: SubagentManager) => ToolDefinition[];
950
912
 
951
- export { type AgentFrontmatter, AgentHarness, type AgentIdentity, type AgentLimitsConfig, type AgentModelConfig, type ArchivedToolResult$1 as ArchivedToolResult, type BuiltInToolToggles, type CompactMessagesOptions, type CompactResult, type CompactionConfig, type Conversation, type ConversationState, type ConversationStore, type ConversationSummary, type CronJobConfig, type HarnessOptions, type HarnessRunOutput, InMemoryConversationStore, InMemoryStateStore, LatitudeCapture, type LatitudeCaptureConfig, LocalMcpBridge, LocalUploadStore, type MainMemory, type McpConfig, type MemoryConfig, type MemoryStore, type MessagingChannelConfig, type ModelProviderFactory, OPENAI_CODEX_CLIENT_ID, type OpenAICodexAuthConfig, type OpenAICodexDeviceAuthRequest, type OpenAICodexSession, type OtlpConfig, type OtlpOption, PONCHO_UPLOAD_SCHEME, type ParsedAgent, type PendingSubagentResult, type PonchoConfig, type ProviderConfig, type Reminder, type ReminderStatus, type ReminderStore, type RemoteMcpServerConfig, type RuntimeRenderContext, S3UploadStore, STORAGE_SCHEMA_VERSION, type SkillContextEntry, type SkillMetadata, type StateConfig, type StateProviderName, type StateStore, type StorageConfig, type SubagentManager, type SubagentResult, type SubagentSpawnResult, type SubagentSummary, type TelemetryConfig, TelemetryEmitter, type ToolAccess, type ToolCall, ToolDispatcher, type ToolExecutionResult, type UploadStore, type UploadsConfig, VercelBlobUploadStore, buildAgentDirectoryName, buildSkillContextWindow, compactMessages, completeOpenAICodexDeviceAuth, createConversationStore, createDefaultTools, createDeleteDirectoryTool, createDeleteTool, createEditTool, createMemoryStore, createMemoryTools, createModelProvider, createReminderStore, createReminderTools, createSearchTools, createSkillTools, createStateStore, createSubagentTools, createUploadStore, createWriteTool, deleteOpenAICodexSession, deriveUploadKey, ensureAgentIdentity, estimateTokens, estimateTotalTokens, findSafeSplitPoint, generateAgentId, getAgentStoreDirectory, getModelContextWindow, getOpenAICodexAccessToken, getOpenAICodexAuthFilePath, getOpenAICodexRequiredScopes, getPonchoStoreRoot, jsonSchemaToZod, loadPonchoConfig, loadSkillContext, loadSkillInstructions, loadSkillMetadata, normalizeOtlp, normalizeScriptPolicyPath, parseAgentFile, parseAgentMarkdown, ponchoDocsTool, readOpenAICodexSession, readSkillResource, renderAgentPrompt, resolveAgentIdentity, resolveCompactionConfig, resolveMemoryConfig, resolveSkillDirs, resolveStateConfig, slugifyStorageComponent, startOpenAICodexDeviceAuth, writeOpenAICodexSession };
913
+ export { type AgentFrontmatter, AgentHarness, type AgentIdentity, type AgentLimitsConfig, type AgentModelConfig, type ArchivedToolResult$1 as ArchivedToolResult, type BuiltInToolToggles, type CompactMessagesOptions, type CompactResult, type CompactionConfig, type Conversation, type ConversationState, type ConversationStore, type ConversationSummary, type CronJobConfig, type HarnessOptions, type HarnessRunOutput, InMemoryConversationStore, InMemoryStateStore, LocalMcpBridge, LocalUploadStore, type MainMemory, type McpConfig, type MemoryConfig, type MemoryStore, type MessagingChannelConfig, type ModelProviderFactory, OPENAI_CODEX_CLIENT_ID, type OpenAICodexAuthConfig, type OpenAICodexDeviceAuthRequest, type OpenAICodexSession, type OtlpConfig, type OtlpOption, PONCHO_UPLOAD_SCHEME, type ParsedAgent, type PendingSubagentResult, type PonchoConfig, type ProviderConfig, type Reminder, type ReminderStatus, type ReminderStore, type RemoteMcpServerConfig, type RuntimeRenderContext, S3UploadStore, STORAGE_SCHEMA_VERSION, type SkillContextEntry, type SkillMetadata, type StateConfig, type StateProviderName, type StateStore, type StorageConfig, type SubagentManager, type SubagentResult, type SubagentSpawnResult, type SubagentSummary, type TelemetryConfig, TelemetryEmitter, type ToolAccess, type ToolCall, ToolDispatcher, type ToolExecutionResult, type UploadStore, type UploadsConfig, VercelBlobUploadStore, buildAgentDirectoryName, buildSkillContextWindow, compactMessages, completeOpenAICodexDeviceAuth, createConversationStore, createDefaultTools, createDeleteDirectoryTool, createDeleteTool, createEditTool, createMemoryStore, createMemoryTools, createModelProvider, createReminderStore, createReminderTools, createSearchTools, createSkillTools, createStateStore, createSubagentTools, createUploadStore, createWriteTool, deleteOpenAICodexSession, deriveUploadKey, ensureAgentIdentity, estimateTokens, estimateTotalTokens, findSafeSplitPoint, generateAgentId, getAgentStoreDirectory, getModelContextWindow, getOpenAICodexAccessToken, getOpenAICodexAuthFilePath, getOpenAICodexRequiredScopes, getPonchoStoreRoot, jsonSchemaToZod, loadPonchoConfig, loadSkillContext, loadSkillInstructions, loadSkillMetadata, normalizeOtlp, normalizeScriptPolicyPath, parseAgentFile, parseAgentMarkdown, ponchoDocsTool, readOpenAICodexSession, readSkillResource, renderAgentPrompt, resolveAgentIdentity, resolveCompactionConfig, resolveMemoryConfig, resolveSkillDirs, resolveStateConfig, slugifyStorageComponent, startOpenAICodexDeviceAuth, writeOpenAICodexSession };