@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.
- package/.turbo/turbo-build.log +5 -5
- package/CHANGELOG.md +12 -0
- package/dist/index.d.ts +4 -42
- package/dist/index.js +76 -246
- package/package.json +1 -2
- package/src/agent-parser.ts +7 -0
- package/src/config.ts +0 -6
- package/src/harness.ts +69 -215
- package/src/index.ts +0 -1
- package/src/reminder-store.ts +13 -4
- package/src/telemetry.ts +0 -8
- package/test/agent-parser.test.ts +74 -0
- package/test/telemetry.test.ts +0 -21
- package/.turbo/turbo-lint.log +0 -6
- package/.turbo/turbo-test.log +0 -34
- package/src/latitude-capture.ts +0 -48
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @poncho-ai/harness@0.
|
|
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
|
[34mCLI[39m tsup v8.5.1
|
|
9
9
|
[34mCLI[39m Target: es2022
|
|
10
10
|
[34mESM[39m Build start
|
|
11
|
-
[32mESM[39m [1mdist/index.js [22m[
|
|
12
|
-
[32mESM[39m ⚡️ Build success in
|
|
11
|
+
[32mESM[39m [1mdist/index.js [22m[32m334.17 KB[39m
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 152ms
|
|
13
13
|
[34mDTS[39m Build start
|
|
14
|
-
[32mDTS[39m ⚡️ Build success in
|
|
15
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
|
14
|
+
[32mDTS[39m ⚡️ Build success in 7104ms
|
|
15
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m33.55 KB[39m
|
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
|
|
805
|
-
*
|
|
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,
|
|
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 };
|