@alisio/sdk 0.4.2 → 0.4.4
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/dist/index.d.ts +11 -6
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -726,12 +726,12 @@ export interface RunEventDataMap {
|
|
|
726
726
|
previous: string;
|
|
727
727
|
};
|
|
728
728
|
compaction_started: {
|
|
729
|
-
reason: "manual" | "auto";
|
|
729
|
+
reason: "manual" | "auto" | "budget";
|
|
730
730
|
before: number;
|
|
731
731
|
messages: number;
|
|
732
732
|
};
|
|
733
733
|
compaction_completed: {
|
|
734
|
-
reason: "manual" | "auto";
|
|
734
|
+
reason: "manual" | "auto" | "budget";
|
|
735
735
|
before: number;
|
|
736
736
|
after: number;
|
|
737
737
|
replaced: number;
|
|
@@ -744,12 +744,12 @@ export interface RunEventDataMap {
|
|
|
744
744
|
partial?: true;
|
|
745
745
|
};
|
|
746
746
|
compaction_skipped: {
|
|
747
|
-
reason: "manual" | "auto";
|
|
747
|
+
reason: "manual" | "auto" | "budget";
|
|
748
748
|
before: number;
|
|
749
749
|
detail: string;
|
|
750
750
|
};
|
|
751
751
|
compaction_failed: {
|
|
752
|
-
reason: "manual" | "auto";
|
|
752
|
+
reason: "manual" | "auto" | "budget";
|
|
753
753
|
error: string;
|
|
754
754
|
};
|
|
755
755
|
/** Tool results clipped in place to fit the context budget. */
|
|
@@ -822,7 +822,7 @@ export interface CompactionCheckpoint {
|
|
|
822
822
|
}
|
|
823
823
|
export interface CompactionStart {
|
|
824
824
|
sessionId: string;
|
|
825
|
-
reason: "manual" | "auto";
|
|
825
|
+
reason: "manual" | "auto" | "budget";
|
|
826
826
|
/** Messages about to be replaced by the checkpoint. */
|
|
827
827
|
messages: readonly Message[];
|
|
828
828
|
focus?: string;
|
|
@@ -1441,6 +1441,11 @@ export interface DecisionActivationResult {
|
|
|
1441
1441
|
/** Short, path-free explanation for `unavailable`. */
|
|
1442
1442
|
message?: string;
|
|
1443
1443
|
}
|
|
1444
|
+
/** Optional hints for `api.decisions.activate`. */
|
|
1445
|
+
export interface DecisionActivationOptions {
|
|
1446
|
+
/** The call follows an explicit user action (for example a setup command): the host recommends and pre-selects "Yes". */
|
|
1447
|
+
recommend?: boolean;
|
|
1448
|
+
}
|
|
1444
1449
|
export interface DecisionsApi {
|
|
1445
1450
|
/** Registers a provider (does NOT activate it; activation is `decisions.provider` in config). */
|
|
1446
1451
|
registerProvider(provider: DecisionProvider): () => void;
|
|
@@ -1457,7 +1462,7 @@ export interface DecisionsApi {
|
|
|
1457
1462
|
* confirmation question) and persists `decisions.provider` in the user's global configuration;
|
|
1458
1463
|
* it never overwrites a different configured provider. Never throws for expected outcomes.
|
|
1459
1464
|
*/
|
|
1460
|
-
activate?(providerId: string): Promise<DecisionActivationResult>;
|
|
1465
|
+
activate?(providerId: string, options?: DecisionActivationOptions): Promise<DecisionActivationResult>;
|
|
1461
1466
|
/**
|
|
1462
1467
|
* Never throws for infrastructure problems: resolves null (disabled, no provider, timeout,
|
|
1463
1468
|
* provider error, circuit open, or every answer rejected). Throws `DecisionRequestError` (a
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alisio/sdk",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"description": "Typed plugin SDK for Alisio: the stable contract for tools, commands, context, compaction and session hooks, model completions and storage. Types only plus tiny helpers; zero runtime dependencies.",
|
|
5
5
|
"author": "Gustavo Gutiérrez",
|
|
6
6
|
"license": "MIT",
|