@poncho-ai/sdk 1.4.1 → 1.5.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 +4 -4
- package/CHANGELOG.md +6 -0
- package/dist/index.d.ts +14 -0
- package/package.json +1 -1
- package/src/index.ts +12 -1
- package/.turbo/turbo-lint.log +0 -6
- package/.turbo/turbo-test.log +0 -14
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @poncho-ai/sdk@1.
|
|
2
|
+
> @poncho-ai/sdk@1.5.0 build /home/runner/work/poncho-ai/poncho-ai/packages/sdk
|
|
3
3
|
> tsup src/index.ts --format esm --dts
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
[34mCLI[39m Target: es2022
|
|
9
9
|
[34mESM[39m Build start
|
|
10
10
|
[32mESM[39m [1mdist/index.js [22m[32m11.44 KB[39m
|
|
11
|
-
[32mESM[39m ⚡️ Build success in
|
|
11
|
+
[32mESM[39m ⚡️ Build success in 20ms
|
|
12
12
|
[34mDTS[39m Build start
|
|
13
|
-
[32mDTS[39m ⚡️ Build success in
|
|
14
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m21.
|
|
13
|
+
[32mDTS[39m ⚡️ Build success in 1276ms
|
|
14
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m21.84 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @poncho-ai/sdk
|
|
2
2
|
|
|
3
|
+
## 1.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`6f0abfd`](https://github.com/cesr/poncho-ai/commit/6f0abfd9f729b545cf293741ee813f705910aaf3) Thanks [@cesr](https://github.com/cesr)! - Add context compaction for long conversations. Automatically summarizes older messages when the context window fills up, keeping conversations going indefinitely. Includes auto-compaction in the run loop, `/compact` command, Web UI divider with expandable summary, and visual history preservation.
|
|
8
|
+
|
|
3
9
|
## 1.4.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -529,6 +529,7 @@ interface Message {
|
|
|
529
529
|
type: "text" | "tools";
|
|
530
530
|
content: string | string[];
|
|
531
531
|
}>;
|
|
532
|
+
isCompactionSummary?: boolean;
|
|
532
533
|
};
|
|
533
534
|
}
|
|
534
535
|
/** Extract the text content from a message, regardless of content format. */
|
|
@@ -701,6 +702,19 @@ type AgentEvent = {
|
|
|
701
702
|
tool: string;
|
|
702
703
|
approvalId: string;
|
|
703
704
|
input?: Record<string, unknown>;
|
|
705
|
+
} | {
|
|
706
|
+
type: "compaction:started";
|
|
707
|
+
estimatedTokens: number;
|
|
708
|
+
} | {
|
|
709
|
+
type: "compaction:completed";
|
|
710
|
+
tokensBefore: number;
|
|
711
|
+
tokensAfter: number;
|
|
712
|
+
messagesBefore: number;
|
|
713
|
+
messagesAfter: number;
|
|
714
|
+
compactedMessages?: Message[];
|
|
715
|
+
} | {
|
|
716
|
+
type: "compaction:warning";
|
|
717
|
+
reason: string;
|
|
704
718
|
};
|
|
705
719
|
|
|
706
720
|
export { type AgentEvent, type AgentFailure, type ContentPart, FEATURE_DOMAIN_ORDER, type FeatureDomain, type FileContentPart, type FileInput, type JsonSchema, type Message, ONBOARDING_FIELDS, type OnboardingField, type OnboardingFieldCondition, type OnboardingFieldKind, type OnboardingFieldTarget, type OnboardingOption, type OnboardingScope, type Role, type RunInput, type RunResult, type TextContentPart, type TokenUsage, type ToolContext, type ToolDefinition, type ToolHandler, defineTool, fieldsForScope, getTextContent };
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -36,6 +36,7 @@ export interface Message {
|
|
|
36
36
|
step?: number;
|
|
37
37
|
toolActivity?: string[];
|
|
38
38
|
sections?: Array<{ type: "text" | "tools"; content: string | string[] }>;
|
|
39
|
+
isCompactionSummary?: boolean;
|
|
39
40
|
};
|
|
40
41
|
}
|
|
41
42
|
|
|
@@ -176,4 +177,14 @@ export type AgentEvent =
|
|
|
176
177
|
tool: string;
|
|
177
178
|
approvalId: string;
|
|
178
179
|
input?: Record<string, unknown>;
|
|
179
|
-
}
|
|
180
|
+
}
|
|
181
|
+
| { type: "compaction:started"; estimatedTokens: number }
|
|
182
|
+
| {
|
|
183
|
+
type: "compaction:completed";
|
|
184
|
+
tokensBefore: number;
|
|
185
|
+
tokensAfter: number;
|
|
186
|
+
messagesBefore: number;
|
|
187
|
+
messagesAfter: number;
|
|
188
|
+
compactedMessages?: Message[];
|
|
189
|
+
}
|
|
190
|
+
| { type: "compaction:warning"; reason: string };
|
package/.turbo/turbo-lint.log
DELETED
package/.turbo/turbo-test.log
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
> @poncho-ai/sdk@1.1.1 test /Users/cesar/Dev/latitude/poncho-ai/packages/sdk
|
|
3
|
-
> vitest
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
[7m[1m[36m RUN [39m[22m[27m [36mv1.6.1[39m [90m/Users/cesar/Dev/latitude/poncho-ai/packages/sdk[39m
|
|
7
|
-
|
|
8
|
-
[32m✓[39m test/sdk.test.ts [2m ([22m[2m1 test[22m[2m)[22m[90m 3[2mms[22m[39m
|
|
9
|
-
|
|
10
|
-
[2m Test Files [22m [1m[32m1 passed[39m[22m[90m (1)[39m
|
|
11
|
-
[2m Tests [22m [1m[32m1 passed[39m[22m[90m (1)[39m
|
|
12
|
-
[2m Start at [22m 17:47:36
|
|
13
|
-
[2m Duration [22m 992ms[2m (transform 343ms, setup 0ms, collect 429ms, tests 3ms, environment 0ms, prepare 129ms)[22m
|
|
14
|
-
|