@crewx/sdk 0.9.0-rc.184 → 0.9.0-rc.185
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/context-budget/index.d.ts +10 -0
- package/dist/esm/index.js +289 -289
- package/dist/esm/plugins/index.js +42 -42
- package/dist/esm/repository/index.js +65 -65
- package/dist/facade/Crewx.d.ts +2 -0
- package/dist/index.js +287 -287
- package/dist/plugins/index.js +42 -42
- package/dist/provider/cli/adapter.types.d.ts +1 -0
- package/dist/repository/index.js +74 -74
- package/package.json +1 -1
|
@@ -57,6 +57,13 @@ export interface ContextBudgetActivityDegradation {
|
|
|
57
57
|
taskDistance: number;
|
|
58
58
|
action: 'reduced' | 'omitted';
|
|
59
59
|
}
|
|
60
|
+
export interface ContextBudgetInputByteLimit {
|
|
61
|
+
unit: 'utf8_bytes';
|
|
62
|
+
limit: number;
|
|
63
|
+
initialCount: number;
|
|
64
|
+
finalCount: number;
|
|
65
|
+
exceeded: boolean;
|
|
66
|
+
}
|
|
60
67
|
export type ContextBudgetAssemblyErrorCode = 'INPUT_BUDGET_EXCEEDED' | 'CONTINUITY_SLOT_REQUIRED';
|
|
61
68
|
export declare class ContextBudgetLayoutError extends Error {
|
|
62
69
|
readonly layoutId: string;
|
|
@@ -80,6 +87,7 @@ export interface ContextBudgetManifest {
|
|
|
80
87
|
tokenizer: TokenizerMetadata;
|
|
81
88
|
initialTokenCount: number | null;
|
|
82
89
|
finalTokenCount: number | null;
|
|
90
|
+
inputBudgetBytes?: ContextBudgetInputByteLimit;
|
|
83
91
|
activityLogTokenCount: number | null;
|
|
84
92
|
activityIncludedEntries: number | null;
|
|
85
93
|
activityOmittedEntries: number | null;
|
|
@@ -135,6 +143,8 @@ export declare function resolveTokenizerMetadata(options?: TokenizerOptions): To
|
|
|
135
143
|
export declare function countTokens(text: string, options?: TokenizerOptions): TokenCountResult;
|
|
136
144
|
export declare function renderFreshProviderInitialInput(input: FreshProviderInitialInput): string;
|
|
137
145
|
export declare function countFreshProviderInitialInput(input: FreshProviderInitialInput, count: (text: string) => number): number;
|
|
146
|
+
export declare function countUtf8Bytes(text: string): number;
|
|
147
|
+
export declare function countFreshProviderInitialInputBytes(input: FreshProviderInitialInput): number;
|
|
138
148
|
export declare function createTokenCounter(options?: TokenizerOptions): TokenCounter;
|
|
139
149
|
export declare function __createTokenCounterForTest(options?: TokenizerOptions, internalOptions?: TokenCounterInternalOptions): TokenCounter;
|
|
140
150
|
export declare function resolveInputBudget(options: ResolveInputBudgetOptions): ResolveInputBudgetResult;
|