@crewx/sdk 0.9.0-rc.57 → 0.9.0-rc.59
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/config/migrate-grok-mode.d.ts +6 -0
- package/dist/config/models.generated.d.ts +12 -2
- package/dist/config/overdrive.d.ts +2 -0
- package/dist/config/pricing.generated.d.ts +2 -2
- package/dist/conversation/index.d.ts +1 -1
- package/dist/conversation/to-template-messages.d.ts +7 -0
- package/dist/conversation/types.d.ts +1 -0
- package/dist/esm/index.js +221 -147
- package/dist/esm/plugins/index.js +85 -72
- package/dist/esm/repository/index.js +92 -79
- package/dist/esm/testing/index.js +1 -1
- package/dist/facade/Crewx.d.ts +2 -0
- package/dist/index.browser.js +4 -4
- package/dist/index.d.ts +8 -1
- package/dist/index.js +221 -147
- package/dist/migrations/0014_organic_mongu.sql +73 -0
- package/dist/migrations/meta/0014_snapshot.json +1975 -0
- package/dist/migrations/meta/_journal.json +7 -0
- package/dist/plugins/index.js +85 -72
- package/dist/provider/acp/meta.d.ts +2 -0
- package/dist/provider/bridge.d.ts +1 -0
- package/dist/provider/cli/adapters/cli-knob.util.d.ts +2 -0
- package/dist/provider/models.d.ts +1 -1
- package/dist/repository/index.js +92 -79
- package/dist/repository/task.repository.d.ts +1 -0
- package/dist/schema/index.d.ts +2 -0
- package/dist/schema/ui-action-receipts.d.ts +303 -0
- package/dist/schema/ui-instances.d.ts +267 -0
- package/dist/testing/index.js +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/ui-card/index.d.ts +2 -0
- package/dist/ui-card/legacy-card-parser.d.ts +11 -0
- package/dist/ui-instance/definition.d.ts +6 -0
- package/dist/ui-instance/errors.d.ts +17 -0
- package/dist/ui-instance/index.d.ts +6 -0
- package/dist/ui-instance/json.d.ts +5 -0
- package/dist/ui-instance/runtime.d.ts +13 -0
- package/dist/ui-instance/store.d.ts +65 -0
- package/dist/ui-instance/types.d.ts +200 -0
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ModelApiPricing } from './pricing.types.js';
|
|
2
2
|
export declare const MODEL_TIERS: readonly ["flagship", "balanced", "speed"];
|
|
3
3
|
export type ModelTier = (typeof MODEL_TIERS)[number];
|
|
4
|
-
export declare const MODEL_CATALOG_VERSION =
|
|
5
|
-
export declare const MODEL_CATALOG_UPDATED = "2026-08-
|
|
4
|
+
export declare const MODEL_CATALOG_VERSION = 18;
|
|
5
|
+
export declare const MODEL_CATALOG_UPDATED = "2026-08-14T00:00:00Z";
|
|
6
6
|
export interface ModelCatalogEntry {
|
|
7
7
|
id: string;
|
|
8
8
|
name: string;
|
|
@@ -21,9 +21,18 @@ export interface ProviderModelOverride {
|
|
|
21
21
|
effort?: string[];
|
|
22
22
|
defaultEffort?: string;
|
|
23
23
|
}
|
|
24
|
+
export type ProviderOptionSpec = {
|
|
25
|
+
key: string;
|
|
26
|
+
type: 'boolean';
|
|
27
|
+
} | {
|
|
28
|
+
key: string;
|
|
29
|
+
type: 'enum';
|
|
30
|
+
values: string[];
|
|
31
|
+
};
|
|
24
32
|
export interface ProviderExecutionOptions {
|
|
25
33
|
mode: string;
|
|
26
34
|
effort: string;
|
|
35
|
+
providerOptions?: Record<string, unknown>;
|
|
27
36
|
}
|
|
28
37
|
export interface ProviderDefaultProfile {
|
|
29
38
|
model: string;
|
|
@@ -39,6 +48,7 @@ export interface ProviderCatalogEntry {
|
|
|
39
48
|
modes: ProviderModeEntry[];
|
|
40
49
|
effort: string[];
|
|
41
50
|
modelOverrides: Record<string, ProviderModelOverride>;
|
|
51
|
+
providerOptions?: ProviderOptionSpec[];
|
|
42
52
|
}
|
|
43
53
|
export declare const PROVIDER_CATALOGS: Record<string, ProviderCatalogEntry>;
|
|
44
54
|
export declare const PROVIDER_DEFAULTS: ProviderDefaults;
|
|
@@ -3,6 +3,7 @@ export interface OverdriveProfile {
|
|
|
3
3
|
model?: string;
|
|
4
4
|
mode?: string;
|
|
5
5
|
effort?: string;
|
|
6
|
+
providerOptions?: Record<string, unknown>;
|
|
6
7
|
}
|
|
7
8
|
export type OverdriveSignalInput = boolean | {
|
|
8
9
|
mode?: 'count' | 'latch';
|
|
@@ -20,6 +21,7 @@ export interface OverdriveResolution {
|
|
|
20
21
|
mode?: string;
|
|
21
22
|
effort?: string;
|
|
22
23
|
crossProvider: boolean;
|
|
24
|
+
providerOptions?: Record<string, unknown>;
|
|
23
25
|
}
|
|
24
26
|
export declare function resolveOverdrive(agentOptions: unknown, mode: 'query' | 'execute', baseProvider: string, signal: OverdriveSignal): OverdriveResolution;
|
|
25
27
|
export interface ModeOverrideResolution {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ModelPricing } from './pricing.types.js';
|
|
2
2
|
export declare const MODEL_PRICING: Record<string, ModelPricing>;
|
|
3
|
-
export declare const MODEL_PRICING_VERSION =
|
|
4
|
-
export declare const MODEL_PRICING_UPDATED = "2026-08-
|
|
3
|
+
export declare const MODEL_PRICING_VERSION = 18;
|
|
4
|
+
export declare const MODEL_PRICING_UPDATED = "2026-08-14T00:00:00Z";
|
|
5
5
|
export declare const UNPUBLISHED_MODEL_IDS: ReadonlySet<string>;
|
|
6
6
|
export declare const CATALOG_MODEL_IDS: ReadonlySet<string>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export * from './types.js';
|
|
2
2
|
export { toTaskReader } from './to-task-reader.js';
|
|
3
|
-
export { toTemplateMessages } from './to-template-messages.js';
|
|
3
|
+
export { LEGACY_UI_CARD_SAFE_SUMMARY, sanitizeLegacyUiCardText, sanitizeTemplateMessages, toTemplateMessages, } from './to-template-messages.js';
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
import type { ConversationThread, TemplateMessage } from './types';
|
|
2
|
+
import type { UiAgentContextProjection } from '../ui-instance/types.js';
|
|
3
|
+
export declare const LEGACY_UI_CARD_SAFE_SUMMARY = "[workflow card omitted from AI context]";
|
|
4
|
+
export declare const V2_UI_INSTANCE_SAFE_SUMMARY = "[workflow UI instance omitted from AI context]";
|
|
5
|
+
export declare function sanitizeUiInstanceReferenceText(text: string): string;
|
|
6
|
+
export declare function sanitizeLegacyUiCardText(text: string): string;
|
|
7
|
+
export declare function sanitizeTemplateMessages(messages: readonly TemplateMessage[]): TemplateMessage[];
|
|
8
|
+
export declare function appendUiProjections(messages: readonly TemplateMessage[], projections: readonly UiAgentContextProjection[] | undefined): TemplateMessage[];
|
|
2
9
|
export declare function toTemplateMessages(thread: ConversationThread): TemplateMessage[];
|