@crewx/sdk 0.9.0-rc.159 → 0.9.0-rc.160
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/continuity.d.ts +2 -0
- package/dist/context-budget/index.d.ts +2 -1
- package/dist/conversation/types.d.ts +10 -0
- package/dist/esm/index.js +310 -326
- package/dist/esm/plugins/index.js +84 -84
- package/dist/esm/publish/index.js +2 -2
- package/dist/esm/repository/index.js +173 -173
- package/dist/esm/skills/index.js +2 -2
- package/dist/events/types.d.ts +7 -0
- package/dist/facade/Crewx.d.ts +2 -1
- package/dist/index.browser.d.ts +2 -0
- package/dist/index.browser.js +4 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +237 -253
- package/dist/mcp-app/app-handoff.d.ts +109 -0
- package/dist/mcp-app/apps-context.d.ts +13 -1
- package/dist/mcp-app/card-handler.d.ts +7 -0
- package/dist/mcp-app/index.d.ts +5 -1
- package/dist/mcp-app/prompt-cards.d.ts +28 -0
- package/dist/mcp-app/types.d.ts +16 -0
- package/dist/mcp-app/workspace-snapshot.d.ts +1 -0
- package/dist/migrations/0040_task_provider_inputs.sql +53 -0
- package/dist/migrations/meta/0040_snapshot.json +3759 -0
- package/dist/migrations/meta/_journal.json +7 -0
- package/dist/plugins/index.js +84 -84
- package/dist/publish/index.js +2 -2
- package/dist/repository/index.d.ts +2 -1
- package/dist/repository/index.js +130 -130
- package/dist/repository/task.repository.d.ts +26 -1
- package/dist/schema/index.d.ts +1 -0
- package/dist/schema/task-provider-inputs.d.ts +100 -0
- package/dist/schema/tasks.d.ts +855 -1
- package/dist/skills/index.js +2 -2
- package/dist/template/helpers/format-conversation.d.ts +1 -0
- package/dist/types/index.d.ts +4 -0
- package/package.json +1 -1
- package/templates/agents/default.yaml +8 -1
|
@@ -13,6 +13,7 @@ export interface ConversationTurn {
|
|
|
13
13
|
export interface GroupedConversationTurns {
|
|
14
14
|
turns: ConversationTurn[];
|
|
15
15
|
unpairedMessages: TemplateMessage[];
|
|
16
|
+
droppedMessages: TemplateMessage[];
|
|
16
17
|
}
|
|
17
18
|
export interface ConversationTurnSelection {
|
|
18
19
|
includedTurns: ConversationTurn[];
|
|
@@ -48,6 +49,7 @@ export interface SelectConversationHighlightsOptions {
|
|
|
48
49
|
}
|
|
49
50
|
export declare function getConversationMessageTaskId(message: TemplateMessage): string | undefined;
|
|
50
51
|
export declare function groupConversationTurns(messages: readonly TemplateMessage[]): GroupedConversationTurns;
|
|
52
|
+
export declare function withoutDroppedAppCards(messages: readonly TemplateMessage[]): TemplateMessage[];
|
|
51
53
|
export declare function materializeConversationTurn(turn: ConversationTurn, includeActivityLog?: boolean): string;
|
|
52
54
|
export declare function selectConversationTurns(options: SelectConversationTurnsOptions): ConversationTurnSelection;
|
|
53
55
|
export declare function buildThreadStateContext(state: ConversationThreadState | undefined): ConversationThreadState | undefined;
|
|
@@ -65,6 +65,7 @@ export declare class ContextBudgetLayoutError extends Error {
|
|
|
65
65
|
constructor(message: string, layoutId: string, omittedTurnCount: number);
|
|
66
66
|
}
|
|
67
67
|
export interface ContextBudgetManifest {
|
|
68
|
+
runningInstructionAppsOmitted?: number;
|
|
68
69
|
phase: ContextBudgetPhase;
|
|
69
70
|
initialInputFraming: ProviderInitialInputFraming;
|
|
70
71
|
resolved: boolean;
|
|
@@ -137,5 +138,5 @@ export declare function countFreshProviderInitialInput(input: FreshProviderIniti
|
|
|
137
138
|
export declare function createTokenCounter(options?: TokenizerOptions): TokenCounter;
|
|
138
139
|
export declare function __createTokenCounterForTest(options?: TokenizerOptions, internalOptions?: TokenCounterInternalOptions): TokenCounter;
|
|
139
140
|
export declare function resolveInputBudget(options: ResolveInputBudgetOptions): ResolveInputBudgetResult;
|
|
140
|
-
export { DEFAULT_HIGHLIGHT_BUDGET_PERCENT, DEFAULT_PROTECTED_TURN_COUNT, MAX_ACTIVE_HIGHLIGHT_CHARS, MAX_ACTIVE_HIGHLIGHTS, MAX_THREAD_STATE_VALUE_CHARS, MAX_THREAD_TITLE_CHARS, buildSemanticContinuityContext, buildThreadStateContext, getConversationMessageTaskId, groupConversationTurns, materializeConversationTurn, selectConversationHighlights, selectConversationTurns, } from './continuity.js';
|
|
141
|
+
export { DEFAULT_HIGHLIGHT_BUDGET_PERCENT, DEFAULT_PROTECTED_TURN_COUNT, MAX_ACTIVE_HIGHLIGHT_CHARS, MAX_ACTIVE_HIGHLIGHTS, MAX_THREAD_STATE_VALUE_CHARS, MAX_THREAD_TITLE_CHARS, buildSemanticContinuityContext, buildThreadStateContext, getConversationMessageTaskId, groupConversationTurns, materializeConversationTurn, selectConversationHighlights, selectConversationTurns, withoutDroppedAppCards, } from './continuity.js';
|
|
141
142
|
export type { BuildSemanticContinuityContextOptions, ConversationHighlightSelection, ConversationTurn, ConversationTurnSelection, GroupedConversationTurns, SelectConversationHighlightsOptions, SelectConversationTurnsOptions, } from './continuity.js';
|
|
@@ -59,6 +59,15 @@ export interface ConversationThread {
|
|
|
59
59
|
updatedAt?: number;
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
|
+
export interface TemplateAppCard {
|
|
63
|
+
readonly instanceId: string;
|
|
64
|
+
readonly anchorTaskId: string;
|
|
65
|
+
readonly status: 'running' | 'waiting' | 'done' | 'failed' | 'expired';
|
|
66
|
+
readonly result?: 'saved' | 'deferred' | 'cancelled';
|
|
67
|
+
readonly agentId?: string;
|
|
68
|
+
readonly xml: string;
|
|
69
|
+
readonly replacesSlot?: boolean;
|
|
70
|
+
}
|
|
62
71
|
export interface TemplateMessage {
|
|
63
72
|
id?: string;
|
|
64
73
|
text: string;
|
|
@@ -72,6 +81,7 @@ export interface TemplateMessage {
|
|
|
72
81
|
size?: number;
|
|
73
82
|
localPath?: string;
|
|
74
83
|
}>;
|
|
84
|
+
appCard?: TemplateAppCard;
|
|
75
85
|
}
|
|
76
86
|
export interface FetchHistoryOptions {
|
|
77
87
|
limit?: number;
|