@crewai-ts/core 0.1.2 → 0.1.5
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/a2a.d.ts +1684 -0
- package/dist/a2ui-schemas.d.ts +3312 -0
- package/dist/a2ui.d.ts +379 -0
- package/dist/agent-adapters.d.ts +178 -0
- package/dist/agent-executors.d.ts +508 -0
- package/dist/agent-parser.d.ts +44 -0
- package/dist/agent-planning.d.ts +358 -0
- package/dist/agent-utils.d.ts +210 -0
- package/dist/agent.d.ts +444 -0
- package/dist/auth.d.ts +179 -0
- package/dist/config-utils.d.ts +5 -0
- package/dist/content-processor.d.ts +12 -0
- package/dist/context.d.ts +157 -0
- package/dist/converter.d.ts +97 -0
- package/dist/crew-chat.d.ts +97 -0
- package/dist/crew.d.ts +424 -0
- package/dist/decorators.d.ts +20 -0
- package/dist/env.d.ts +13 -0
- package/dist/errors.d.ts +27 -0
- package/dist/evaluators.d.ts +477 -0
- package/dist/events.d.ts +2657 -0
- package/dist/execution-utils.d.ts +85 -0
- package/dist/experimental-conversational.d.ts +181 -0
- package/dist/file-handler.d.ts +36 -0
- package/dist/file-store.d.ts +37 -0
- package/dist/files.d.ts +554 -0
- package/dist/flow-conversation.d.ts +90 -0
- package/dist/flow-definition.d.ts +195 -0
- package/dist/flow-persistence.d.ts +107 -0
- package/dist/flow-visualization.d.ts +77 -0
- package/dist/flow.d.ts +927 -0
- package/dist/formatter.d.ts +7 -0
- package/dist/guardrail.d.ts +95 -0
- package/dist/hooks.d.ts +241 -0
- package/dist/human-input.d.ts +74 -0
- package/dist/i18n.d.ts +26 -0
- package/dist/index.cjs +83 -36
- package/dist/index.d.ts +99 -13004
- package/dist/index.js +82 -36
- package/dist/input-files.d.ts +24 -0
- package/dist/input-provider.d.ts +22 -0
- package/dist/knowledge.d.ts +353 -0
- package/dist/lite-agent-output.d.ts +69 -0
- package/dist/lite-agent.d.ts +154 -0
- package/dist/llm.d.ts +630 -0
- package/dist/llms-hooks-transport.d.ts +1 -2
- package/dist/lock-store.d.ts +14 -0
- package/dist/logger.d.ts +55 -0
- package/dist/mcp.d.ts +315 -0
- package/dist/memory.d.ts +915 -0
- package/dist/metadata.d.ts +9 -0
- package/dist/misc-compat.d.ts +125 -0
- package/dist/openai-completion.d.ts +324 -0
- package/dist/outputs.d.ts +69 -0
- package/dist/planning.d.ts +60 -0
- package/dist/plus-api.d.ts +194 -0
- package/dist/project-compat.d.ts +133 -0
- package/dist/project.d.ts +221 -0
- package/dist/prompts.d.ts +66 -0
- package/dist/provider-completions.d.ts +593 -0
- package/dist/rag.d.ts +1074 -0
- package/dist/rpm.d.ts +27 -0
- package/dist/rw-lock.d.ts +21 -0
- package/dist/schema-utils.d.ts +121 -0
- package/dist/security.d.ts +66 -0
- package/dist/settings.d.ts +103 -0
- package/dist/skills.d.ts +145 -0
- package/dist/state-provider-core.d.ts +1 -1
- package/dist/state.d.ts +204 -0
- package/dist/step-execution-context.d.ts +36 -0
- package/dist/streaming.d.ts +153 -0
- package/dist/string-utils.d.ts +12 -0
- package/dist/task-output-storage.d.ts +62 -0
- package/dist/task.d.ts +305 -0
- package/dist/telemetry.d.ts +91 -0
- package/dist/token-counter-callback.d.ts +36 -0
- package/dist/tools.d.ts +563 -0
- package/dist/tracing-utils.d.ts +56 -0
- package/dist/training-converter.d.ts +36 -0
- package/dist/training-handler.d.ts +10 -0
- package/dist/types.d.ts +72 -0
- package/dist/utilities.d.ts +130 -0
- package/dist/utility-types.d.ts +10 -0
- package/dist/version.d.ts +12 -0
- package/package.json +326 -4904
- package/dist/index.d.cts +0 -13068
- package/dist/llms-hooks-transport-ChGiFBiU.d.ts +0 -233
- package/dist/llms-hooks-transport-DZlurMUQ.d.cts +0 -233
- package/dist/llms-hooks-transport.d.cts +0 -2
- package/dist/state-provider-core-Be9RKRAm.d.cts +0 -4876
- package/dist/state-provider-core-Be9RKRAm.d.ts +0 -4876
- package/dist/state-provider-core.d.cts +0 -1
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
export type FlowDefinitionCondition = string | Record<string, unknown>;
|
|
2
|
+
export declare const FlowDefinitionCondition: Readonly<{
|
|
3
|
+
kind: "FlowDefinitionCondition";
|
|
4
|
+
}>;
|
|
5
|
+
export type FlowDefinitionDiagnosticOptions = {
|
|
6
|
+
code: string;
|
|
7
|
+
message: string;
|
|
8
|
+
severity?: "warning" | "error";
|
|
9
|
+
path?: string | null;
|
|
10
|
+
};
|
|
11
|
+
export declare class FlowDefinitionDiagnostic {
|
|
12
|
+
readonly code: string;
|
|
13
|
+
readonly message: string;
|
|
14
|
+
readonly severity: "warning" | "error";
|
|
15
|
+
readonly path: string | null;
|
|
16
|
+
constructor(options: FlowDefinitionDiagnosticOptions);
|
|
17
|
+
toDict(excludeNone?: boolean): Record<string, unknown>;
|
|
18
|
+
to_dict(options?: {
|
|
19
|
+
exclude_none?: boolean;
|
|
20
|
+
}): Record<string, unknown>;
|
|
21
|
+
}
|
|
22
|
+
export type FlowStateDefinitionOptions = {
|
|
23
|
+
type?: "dict" | "pydantic" | "unknown";
|
|
24
|
+
ref?: string | null;
|
|
25
|
+
default?: unknown;
|
|
26
|
+
};
|
|
27
|
+
export declare class FlowStateDefinition {
|
|
28
|
+
readonly type: "dict" | "pydantic" | "unknown";
|
|
29
|
+
readonly ref: string | null;
|
|
30
|
+
readonly default: unknown;
|
|
31
|
+
constructor(options?: FlowStateDefinitionOptions);
|
|
32
|
+
toDict(excludeNone?: boolean): Record<string, unknown>;
|
|
33
|
+
to_dict(options?: {
|
|
34
|
+
exclude_none?: boolean;
|
|
35
|
+
}): Record<string, unknown>;
|
|
36
|
+
}
|
|
37
|
+
export type FlowConfigDefinitionOptions = {
|
|
38
|
+
tracing?: boolean | null;
|
|
39
|
+
stream?: boolean;
|
|
40
|
+
memory?: unknown;
|
|
41
|
+
inputProvider?: unknown;
|
|
42
|
+
input_provider?: unknown;
|
|
43
|
+
suppressFlowEvents?: boolean;
|
|
44
|
+
suppress_flow_events?: boolean;
|
|
45
|
+
maxMethodCalls?: number;
|
|
46
|
+
max_method_calls?: number;
|
|
47
|
+
};
|
|
48
|
+
export declare class FlowConfigDefinition {
|
|
49
|
+
readonly tracing: boolean | null;
|
|
50
|
+
readonly stream: boolean;
|
|
51
|
+
readonly memory: unknown;
|
|
52
|
+
readonly inputProvider: unknown;
|
|
53
|
+
readonly input_provider: unknown;
|
|
54
|
+
readonly suppressFlowEvents: boolean;
|
|
55
|
+
readonly suppress_flow_events: boolean;
|
|
56
|
+
readonly maxMethodCalls: number;
|
|
57
|
+
readonly max_method_calls: number;
|
|
58
|
+
constructor(options?: FlowConfigDefinitionOptions);
|
|
59
|
+
toDict(excludeNone?: boolean): Record<string, unknown>;
|
|
60
|
+
to_dict(options?: {
|
|
61
|
+
exclude_none?: boolean;
|
|
62
|
+
}): Record<string, unknown>;
|
|
63
|
+
}
|
|
64
|
+
export type FlowPersistenceDefinitionOptions = {
|
|
65
|
+
enabled?: boolean;
|
|
66
|
+
verbose?: boolean;
|
|
67
|
+
persistence?: unknown;
|
|
68
|
+
};
|
|
69
|
+
export declare class FlowPersistenceDefinition {
|
|
70
|
+
readonly enabled: boolean;
|
|
71
|
+
readonly verbose: boolean;
|
|
72
|
+
readonly persistence: unknown;
|
|
73
|
+
constructor(options?: FlowPersistenceDefinitionOptions);
|
|
74
|
+
toDict(excludeNone?: boolean): Record<string, unknown>;
|
|
75
|
+
to_dict(options?: {
|
|
76
|
+
exclude_none?: boolean;
|
|
77
|
+
}): Record<string, unknown>;
|
|
78
|
+
}
|
|
79
|
+
export type FlowHumanFeedbackDefinitionOptions = {
|
|
80
|
+
message: string;
|
|
81
|
+
emit?: readonly string[] | null;
|
|
82
|
+
llm?: unknown;
|
|
83
|
+
defaultOutcome?: string | null;
|
|
84
|
+
default_outcome?: string | null;
|
|
85
|
+
metadata?: Record<string, unknown> | null;
|
|
86
|
+
provider?: unknown;
|
|
87
|
+
learn?: boolean;
|
|
88
|
+
learnSource?: string;
|
|
89
|
+
learn_source?: string;
|
|
90
|
+
learnStrict?: boolean;
|
|
91
|
+
learn_strict?: boolean;
|
|
92
|
+
};
|
|
93
|
+
export declare class FlowHumanFeedbackDefinition {
|
|
94
|
+
readonly message: string;
|
|
95
|
+
readonly emit: readonly string[] | null;
|
|
96
|
+
readonly llm: unknown;
|
|
97
|
+
readonly defaultOutcome: string | null;
|
|
98
|
+
readonly default_outcome: string | null;
|
|
99
|
+
readonly metadata: Record<string, unknown> | null;
|
|
100
|
+
readonly provider: unknown;
|
|
101
|
+
readonly learn: boolean;
|
|
102
|
+
readonly learnSource: string;
|
|
103
|
+
readonly learn_source: string;
|
|
104
|
+
readonly learnStrict: boolean;
|
|
105
|
+
readonly learn_strict: boolean;
|
|
106
|
+
constructor(options: FlowHumanFeedbackDefinitionOptions);
|
|
107
|
+
toDict(excludeNone?: boolean): Record<string, unknown>;
|
|
108
|
+
to_dict(options?: {
|
|
109
|
+
exclude_none?: boolean;
|
|
110
|
+
}): Record<string, unknown>;
|
|
111
|
+
}
|
|
112
|
+
export type FlowMethodDefinitionOptions = {
|
|
113
|
+
start?: boolean | FlowDefinitionCondition | null;
|
|
114
|
+
listen?: FlowDefinitionCondition | null;
|
|
115
|
+
router?: boolean;
|
|
116
|
+
emit?: readonly string[] | null;
|
|
117
|
+
humanFeedback?: FlowHumanFeedbackDefinition | FlowHumanFeedbackDefinitionOptions | null;
|
|
118
|
+
human_feedback?: FlowHumanFeedbackDefinition | FlowHumanFeedbackDefinitionOptions | null;
|
|
119
|
+
persist?: FlowPersistenceDefinition | FlowPersistenceDefinitionOptions | null;
|
|
120
|
+
};
|
|
121
|
+
export declare class FlowMethodDefinition {
|
|
122
|
+
readonly start: boolean | FlowDefinitionCondition | null;
|
|
123
|
+
readonly listen: FlowDefinitionCondition | null;
|
|
124
|
+
readonly router: boolean;
|
|
125
|
+
readonly emit: readonly string[] | null;
|
|
126
|
+
readonly humanFeedback: FlowHumanFeedbackDefinition | null;
|
|
127
|
+
readonly human_feedback: FlowHumanFeedbackDefinition | null;
|
|
128
|
+
readonly persist: FlowPersistenceDefinition | null;
|
|
129
|
+
constructor(options?: FlowMethodDefinitionOptions);
|
|
130
|
+
get isStart(): boolean;
|
|
131
|
+
get is_start(): boolean;
|
|
132
|
+
toDict(excludeNone?: boolean): Record<string, unknown>;
|
|
133
|
+
to_dict(options?: {
|
|
134
|
+
exclude_none?: boolean;
|
|
135
|
+
}): Record<string, unknown>;
|
|
136
|
+
}
|
|
137
|
+
export type FlowDefinitionOptions = {
|
|
138
|
+
schema?: string;
|
|
139
|
+
schema_?: string;
|
|
140
|
+
name: string;
|
|
141
|
+
description?: string | null;
|
|
142
|
+
state?: FlowStateDefinition | FlowStateDefinitionOptions | null;
|
|
143
|
+
config?: FlowConfigDefinition | FlowConfigDefinitionOptions;
|
|
144
|
+
persist?: FlowPersistenceDefinition | FlowPersistenceDefinitionOptions | null;
|
|
145
|
+
methods?: Record<string, FlowMethodDefinition | FlowMethodDefinitionOptions>;
|
|
146
|
+
diagnostics?: readonly (FlowDefinitionDiagnostic | FlowDefinitionDiagnosticOptions)[];
|
|
147
|
+
};
|
|
148
|
+
export declare class FlowDefinition {
|
|
149
|
+
readonly schema_: string;
|
|
150
|
+
readonly name: string;
|
|
151
|
+
readonly description: string | null;
|
|
152
|
+
readonly state: FlowStateDefinition | null;
|
|
153
|
+
readonly config: FlowConfigDefinition;
|
|
154
|
+
readonly persist: FlowPersistenceDefinition | null;
|
|
155
|
+
readonly methods: Record<string, FlowMethodDefinition>;
|
|
156
|
+
diagnostics: FlowDefinitionDiagnostic[];
|
|
157
|
+
constructor(options: FlowDefinitionOptions);
|
|
158
|
+
toDict(options?: {
|
|
159
|
+
excludeNone?: boolean;
|
|
160
|
+
exclude_none?: boolean;
|
|
161
|
+
}): Record<string, unknown>;
|
|
162
|
+
to_dict(options?: {
|
|
163
|
+
exclude_none?: boolean;
|
|
164
|
+
}): Record<string, unknown>;
|
|
165
|
+
toJson(options?: {
|
|
166
|
+
indent?: number | null;
|
|
167
|
+
excludeNone?: boolean;
|
|
168
|
+
exclude_none?: boolean;
|
|
169
|
+
}): string;
|
|
170
|
+
to_json(options?: {
|
|
171
|
+
indent?: number | null;
|
|
172
|
+
exclude_none?: boolean;
|
|
173
|
+
}): string;
|
|
174
|
+
toYaml(options?: {
|
|
175
|
+
excludeNone?: boolean;
|
|
176
|
+
exclude_none?: boolean;
|
|
177
|
+
}): string;
|
|
178
|
+
to_yaml(options?: {
|
|
179
|
+
exclude_none?: boolean;
|
|
180
|
+
}): string;
|
|
181
|
+
static fromDict(data: Record<string, unknown>): FlowDefinition;
|
|
182
|
+
static from_dict(data: Record<string, unknown>): FlowDefinition;
|
|
183
|
+
static fromJson(data: string): FlowDefinition;
|
|
184
|
+
static from_json(data: string): FlowDefinition;
|
|
185
|
+
static fromYaml(data: string): FlowDefinition;
|
|
186
|
+
static from_yaml(data: string): FlowDefinition;
|
|
187
|
+
static jsonSchema(): Record<string, unknown>;
|
|
188
|
+
static json_schema(): Record<string, unknown>;
|
|
189
|
+
validateContract(): FlowDefinitionDiagnostic[];
|
|
190
|
+
validate_contract(): FlowDefinitionDiagnostic[];
|
|
191
|
+
withDiagnostics(): this;
|
|
192
|
+
with_diagnostics(): this;
|
|
193
|
+
logDiagnostics(): void;
|
|
194
|
+
log_diagnostics(): void;
|
|
195
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import type { PendingFeedbackContext } from "./flow.js";
|
|
2
|
+
import type { DatabaseSync as DatabaseSyncType } from "node:sqlite";
|
|
3
|
+
export type PendingFeedbackRecord = {
|
|
4
|
+
state: Record<string, unknown>;
|
|
5
|
+
context: PendingFeedbackContext;
|
|
6
|
+
};
|
|
7
|
+
export type FlowPersistence = {
|
|
8
|
+
persistenceType?: string;
|
|
9
|
+
persistence_type?: string;
|
|
10
|
+
saveState?(flowId: string, methodName: string, state: unknown): void | Promise<void>;
|
|
11
|
+
save_state?(flowId: string, methodName: string, state: unknown): void | Promise<void>;
|
|
12
|
+
loadState?(flowId: string): Promise<Record<string, unknown> | null>;
|
|
13
|
+
load_state?(flowId: string): Promise<Record<string, unknown> | null>;
|
|
14
|
+
savePendingFeedback(flowId: string, context: PendingFeedbackContext, state: unknown): Promise<void>;
|
|
15
|
+
save_pending_feedback(flowId: string, context: PendingFeedbackContext, state: unknown): Promise<void>;
|
|
16
|
+
loadPendingFeedback(flowId: string): Promise<PendingFeedbackRecord | null>;
|
|
17
|
+
load_pending_feedback(flowId: string): Promise<PendingFeedbackRecord | null>;
|
|
18
|
+
clearPendingFeedback(flowId: string): Promise<void>;
|
|
19
|
+
clear_pending_feedback(flowId: string): Promise<void>;
|
|
20
|
+
};
|
|
21
|
+
export declare const FlowPersistence: Readonly<{
|
|
22
|
+
kind: "FlowPersistence";
|
|
23
|
+
}>;
|
|
24
|
+
export declare const LOG_MESSAGES: Readonly<{
|
|
25
|
+
SAVE_SKIPPED: "Flow persistence skipped.";
|
|
26
|
+
LOAD_SKIPPED: "Flow persistence load skipped.";
|
|
27
|
+
}>;
|
|
28
|
+
type PersistableFlowInstance = {
|
|
29
|
+
state?: unknown;
|
|
30
|
+
name?: string | null;
|
|
31
|
+
constructor: {
|
|
32
|
+
name?: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
type FlowClass = new (...args: any[]) => object;
|
|
36
|
+
export type PersistDecoratorOptions = {
|
|
37
|
+
persistence?: FlowPersistence | null;
|
|
38
|
+
verbose?: boolean;
|
|
39
|
+
};
|
|
40
|
+
type ClassDecoratorFactory = <TClass extends FlowClass>(value: TClass, context: ClassDecoratorContext<TClass>) => TClass | undefined;
|
|
41
|
+
type MethodDecoratorFactory = <This extends PersistableFlowInstance, Args extends unknown[], Return>(value: (this: This, ...args: Args) => Return, context: ClassMethodDecoratorContext<This, (this: This, ...args: Args) => Return>) => ((this: This, ...args: Args) => Return) | undefined;
|
|
42
|
+
export type PersistDecoratorMetadata = {
|
|
43
|
+
enabled: true;
|
|
44
|
+
verbose: boolean;
|
|
45
|
+
persistence: FlowPersistence | null;
|
|
46
|
+
};
|
|
47
|
+
export declare class JsonFlowPersistence implements FlowPersistence {
|
|
48
|
+
readonly location: string;
|
|
49
|
+
readonly persistenceType = "JsonFlowPersistence";
|
|
50
|
+
readonly persistence_type = "JsonFlowPersistence";
|
|
51
|
+
constructor(location?: string);
|
|
52
|
+
saveState(flowId: string, methodName: string, state: Record<string, unknown>): Promise<void>;
|
|
53
|
+
save_state(flowId: string, methodName: string, state: Record<string, unknown>): Promise<void>;
|
|
54
|
+
loadState(flowId: string): Promise<Record<string, unknown> | null>;
|
|
55
|
+
load_state(flowId: string): Promise<Record<string, unknown> | null>;
|
|
56
|
+
savePendingFeedback(flowId: string, context: PendingFeedbackContext, state: Record<string, unknown>): Promise<void>;
|
|
57
|
+
save_pending_feedback(flowId: string, context: PendingFeedbackContext, state: Record<string, unknown>): Promise<void>;
|
|
58
|
+
loadPendingFeedback(flowId: string): Promise<PendingFeedbackRecord | null>;
|
|
59
|
+
load_pending_feedback(flowId: string): Promise<PendingFeedbackRecord | null>;
|
|
60
|
+
clearPendingFeedback(flowId: string): Promise<void>;
|
|
61
|
+
clear_pending_feedback(flowId: string): Promise<void>;
|
|
62
|
+
private ensureDirectory;
|
|
63
|
+
private statePath;
|
|
64
|
+
private pendingPath;
|
|
65
|
+
}
|
|
66
|
+
export declare class SQLiteFlowPersistence implements FlowPersistence {
|
|
67
|
+
readonly persistenceType = "SQLiteFlowPersistence";
|
|
68
|
+
readonly persistence_type = "SQLiteFlowPersistence";
|
|
69
|
+
readonly dbPath: string;
|
|
70
|
+
readonly db_path: string;
|
|
71
|
+
constructor(dbPath?: string | null);
|
|
72
|
+
initDb(): void;
|
|
73
|
+
init_db(): void;
|
|
74
|
+
_setup(): this;
|
|
75
|
+
saveState(flowId: string, methodName: string, state: unknown): Promise<void>;
|
|
76
|
+
save_state(flowId: string, methodName: string, state: unknown): Promise<void>;
|
|
77
|
+
loadState(flowId: string): Promise<Record<string, unknown> | null>;
|
|
78
|
+
load_state(flowId: string): Promise<Record<string, unknown> | null>;
|
|
79
|
+
savePendingFeedback(flowId: string, context: PendingFeedbackContext, state: unknown): Promise<void>;
|
|
80
|
+
save_pending_feedback(flowId: string, context: PendingFeedbackContext, state: unknown): Promise<void>;
|
|
81
|
+
loadPendingFeedback(flowId: string): Promise<PendingFeedbackRecord | null>;
|
|
82
|
+
load_pending_feedback(flowId: string): Promise<PendingFeedbackRecord | null>;
|
|
83
|
+
clearPendingFeedback(flowId: string): Promise<void>;
|
|
84
|
+
clear_pending_feedback(flowId: string): Promise<void>;
|
|
85
|
+
static _to_state_dict(stateData: unknown): Record<string, unknown>;
|
|
86
|
+
_to_state_dict(stateData: unknown): Record<string, unknown>;
|
|
87
|
+
_save_state_sql(db: DatabaseSyncType, flowId: string, methodName: string, state: unknown): void;
|
|
88
|
+
private withDb;
|
|
89
|
+
}
|
|
90
|
+
export declare function persistState(flowInstance: PersistableFlowInstance, methodName: string, persistenceInstance: FlowPersistence, verbose?: boolean): Promise<void>;
|
|
91
|
+
export declare function persist(persistenceOrOptions?: FlowPersistence | PersistDecoratorOptions | null, verbose?: boolean): ClassDecoratorFactory & MethodDecoratorFactory;
|
|
92
|
+
export declare const PersistenceDecorator: {
|
|
93
|
+
persistState: typeof persistState;
|
|
94
|
+
};
|
|
95
|
+
export declare const PersistDecorator: {
|
|
96
|
+
persistState: typeof persistState;
|
|
97
|
+
};
|
|
98
|
+
export declare const persist_state: typeof persistState;
|
|
99
|
+
export declare function getPersistDecoratorMetadata(value: object): PersistDecoratorMetadata | null;
|
|
100
|
+
export declare function getMethodPersistDecoratorMetadata(value: unknown): PersistDecoratorMetadata | null;
|
|
101
|
+
export declare const SQLiteFlowPersistenceAlias: typeof SQLiteFlowPersistence;
|
|
102
|
+
export declare const SqliteFlowPersistence: typeof SQLiteFlowPersistence;
|
|
103
|
+
export declare const sqliteFlowPersistence: typeof SQLiteFlowPersistence;
|
|
104
|
+
export declare const sqlite_flow_persistence: typeof SQLiteFlowPersistence;
|
|
105
|
+
export declare function serializePendingFeedbackContext(context: PendingFeedbackContext): Record<string, unknown>;
|
|
106
|
+
export declare function deserializePendingFeedbackContext(value: Record<string, unknown>): PendingFeedbackContext;
|
|
107
|
+
export {};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export declare const CREWAI_ORANGE = "#FF5A50";
|
|
2
|
+
export declare const DARK_GRAY = "#333333";
|
|
3
|
+
export declare const WHITE = "#FFFFFF";
|
|
4
|
+
export declare const GRAY = "#666666";
|
|
5
|
+
export declare const BG_DARK = "#0d1117";
|
|
6
|
+
export declare const BG_CARD = "#161b22";
|
|
7
|
+
export declare const BORDER_SUBTLE = "#30363d";
|
|
8
|
+
export declare const TEXT_PRIMARY = "#e6edf3";
|
|
9
|
+
export declare const TEXT_SECONDARY = "#7d8590";
|
|
10
|
+
export declare class CSSExtension {
|
|
11
|
+
readonly tags: Set<string>;
|
|
12
|
+
parse(parser: ExtensionParserLike): ExtensionParseResult;
|
|
13
|
+
renderCss(href: string): string;
|
|
14
|
+
_render_css(href: string): string;
|
|
15
|
+
}
|
|
16
|
+
export declare class JSExtension {
|
|
17
|
+
readonly tags: Set<string>;
|
|
18
|
+
parse(parser: ExtensionParserLike): ExtensionParseResult;
|
|
19
|
+
renderJs(src: string): string;
|
|
20
|
+
_render_js(src: string): string;
|
|
21
|
+
}
|
|
22
|
+
export type ExtensionParserLike = {
|
|
23
|
+
stream: Iterator<{
|
|
24
|
+
lineno?: number;
|
|
25
|
+
}> | Iterable<{
|
|
26
|
+
lineno?: number;
|
|
27
|
+
}> | readonly {
|
|
28
|
+
lineno?: number;
|
|
29
|
+
}[];
|
|
30
|
+
parse_expression: () => unknown;
|
|
31
|
+
};
|
|
32
|
+
export type ExtensionParseResult = {
|
|
33
|
+
lineno: number;
|
|
34
|
+
method: "_render_css" | "_render_js";
|
|
35
|
+
args: readonly string[];
|
|
36
|
+
html: string;
|
|
37
|
+
};
|
|
38
|
+
export type FlowVisualizationNodeMetadata = {
|
|
39
|
+
type?: string;
|
|
40
|
+
condition_type?: string | null;
|
|
41
|
+
conditionType?: string | null;
|
|
42
|
+
trigger_methods?: readonly string[];
|
|
43
|
+
triggerMethods?: readonly string[];
|
|
44
|
+
router_paths?: readonly string[];
|
|
45
|
+
routerPaths?: readonly string[];
|
|
46
|
+
};
|
|
47
|
+
export declare const NodeMetadata: Readonly<{
|
|
48
|
+
kind: "NodeMetadata";
|
|
49
|
+
}>;
|
|
50
|
+
export type FlowVisualizationEdge = {
|
|
51
|
+
source: string;
|
|
52
|
+
target: string;
|
|
53
|
+
condition_type?: string | null;
|
|
54
|
+
conditionType?: string | null;
|
|
55
|
+
is_router_path?: boolean;
|
|
56
|
+
isRouterPath?: boolean;
|
|
57
|
+
router_path_label?: string | null;
|
|
58
|
+
routerPathLabel?: string | null;
|
|
59
|
+
};
|
|
60
|
+
export declare const StructureEdge: Readonly<{
|
|
61
|
+
kind: "StructureEdge";
|
|
62
|
+
}>;
|
|
63
|
+
export type FlowStructureLike = {
|
|
64
|
+
nodes?: Record<string, FlowVisualizationNodeMetadata>;
|
|
65
|
+
edges?: readonly FlowVisualizationEdge[];
|
|
66
|
+
start_methods?: readonly string[];
|
|
67
|
+
startMethods?: readonly string[];
|
|
68
|
+
};
|
|
69
|
+
export type NodePosition = {
|
|
70
|
+
level: number;
|
|
71
|
+
x: number;
|
|
72
|
+
y: number;
|
|
73
|
+
};
|
|
74
|
+
export declare function calculateNodePositions(dag: FlowStructureLike): Record<string, NodePosition>;
|
|
75
|
+
export declare const calculate_node_positions: typeof calculateNodePositions;
|
|
76
|
+
export declare function renderInteractive(dag: FlowStructureLike, filename?: string, show?: boolean): string;
|
|
77
|
+
export declare const render_interactive: typeof renderInteractive;
|