@poncho-ai/harness 0.25.0 → 0.26.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 +6 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +497 -286
- package/package.json +1 -1
- package/src/config.ts +4 -0
- package/src/harness.ts +18 -2
- package/src/kv-store.ts +206 -0
- package/src/memory.ts +26 -291
- package/src/todo-tools.ts +363 -0
- package/.turbo/turbo-lint.log +0 -6
- package/.turbo/turbo-test.log +0 -135
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @poncho-ai/harness@0.
|
|
2
|
+
> @poncho-ai/harness@0.26.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[32m276.38 KB[39m
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 147ms
|
|
13
13
|
[34mDTS[39m Build start
|
|
14
|
-
[32mDTS[39m ⚡️ Build success in
|
|
15
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m28.
|
|
14
|
+
[32mDTS[39m ⚡️ Build success in 7090ms
|
|
15
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m28.59 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @poncho-ai/harness
|
|
2
2
|
|
|
3
|
+
## 0.26.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#40](https://github.com/cesr/poncho-ai/pull/40) [`95ae86b`](https://github.com/cesr/poncho-ai/commit/95ae86b4ea0d913357ccca9a43a227c83e46b9c4) Thanks [@cesr](https://github.com/cesr)! - Add built-in todo tools (todo_list, todo_add, todo_update, todo_remove) with per-conversation storage and a live todo panel in the web UI
|
|
8
|
+
|
|
3
9
|
## 0.25.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -330,6 +330,10 @@ type BuiltInToolToggles = {
|
|
|
330
330
|
edit_file?: boolean;
|
|
331
331
|
delete_file?: boolean;
|
|
332
332
|
delete_directory?: boolean;
|
|
333
|
+
todo_list?: boolean;
|
|
334
|
+
todo_add?: boolean;
|
|
335
|
+
todo_update?: boolean;
|
|
336
|
+
todo_remove?: boolean;
|
|
333
337
|
};
|
|
334
338
|
interface MessagingChannelConfig {
|
|
335
339
|
platform: "slack" | "resend" | "telegram";
|
|
@@ -480,6 +484,17 @@ declare class S3UploadStore implements UploadStore {
|
|
|
480
484
|
}
|
|
481
485
|
declare const createUploadStore: (config: UploadsConfig | undefined, workingDir: string) => Promise<UploadStore>;
|
|
482
486
|
|
|
487
|
+
type TodoStatus = "pending" | "in_progress" | "completed";
|
|
488
|
+
type TodoPriority = "high" | "medium" | "low";
|
|
489
|
+
interface TodoItem {
|
|
490
|
+
id: string;
|
|
491
|
+
content: string;
|
|
492
|
+
status: TodoStatus;
|
|
493
|
+
priority: TodoPriority;
|
|
494
|
+
createdAt: number;
|
|
495
|
+
updatedAt: number;
|
|
496
|
+
}
|
|
497
|
+
|
|
483
498
|
type ModelProviderFactory = (modelName: string) => LanguageModel;
|
|
484
499
|
/**
|
|
485
500
|
* Returns the context window size (in tokens) for a given model name.
|
|
@@ -571,6 +586,7 @@ declare class AgentHarness {
|
|
|
571
586
|
readonly uploadStore?: UploadStore;
|
|
572
587
|
private skillContextWindow;
|
|
573
588
|
private memoryStore?;
|
|
589
|
+
private todoStore?;
|
|
574
590
|
private loadedConfig?;
|
|
575
591
|
private loadedSkills;
|
|
576
592
|
private skillFingerprint;
|
|
@@ -600,6 +616,7 @@ declare class AgentHarness {
|
|
|
600
616
|
private shouldEnableWriteTool;
|
|
601
617
|
constructor(options?: HarnessOptions);
|
|
602
618
|
get frontmatter(): AgentFrontmatter | undefined;
|
|
619
|
+
getTodos(conversationId: string): Promise<TodoItem[]>;
|
|
603
620
|
private listActiveSkills;
|
|
604
621
|
private getAgentMcpIntent;
|
|
605
622
|
private getAgentScriptIntent;
|