sparkecoder 0.1.3 → 0.1.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/README.md +2 -2
- package/dist/agent/index.d.ts +3 -2
- package/dist/agent/index.js +653 -574
- package/dist/agent/index.js.map +1 -1
- package/dist/bash-CGAqW7HR.d.ts +80 -0
- package/dist/cli.js +2912 -1374
- package/dist/cli.js.map +1 -1
- package/dist/db/index.d.ts +16 -3
- package/dist/db/index.js +68 -13
- package/dist/db/index.js.map +1 -1
- package/dist/{index-BxpkHy7X.d.ts → index-DkR9Ln_7.d.ts} +18 -2
- package/dist/index.d.ts +117 -79
- package/dist/index.js +2402 -1242
- package/dist/index.js.map +1 -1
- package/dist/{schema-EPbMMFza.d.ts → schema-cUDLVN-b.d.ts} +127 -5
- package/dist/server/index.d.ts +9 -2
- package/dist/server/index.js +2390 -1245
- package/dist/server/index.js.map +1 -1
- package/dist/tools/index.d.ts +4 -138
- package/dist/tools/index.js +483 -558
- package/dist/tools/index.js.map +1 -1
- package/package.json +4 -2
|
@@ -85,7 +85,7 @@ declare const sessions: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
85
85
|
tableName: "sessions";
|
|
86
86
|
dataType: "string";
|
|
87
87
|
columnType: "SQLiteText";
|
|
88
|
-
data: "
|
|
88
|
+
data: "error" | "active" | "waiting" | "completed";
|
|
89
89
|
driverParam: string;
|
|
90
90
|
notNull: true;
|
|
91
91
|
hasDefault: true;
|
|
@@ -391,7 +391,7 @@ declare const toolExecutions: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
391
391
|
tableName: "tool_executions";
|
|
392
392
|
dataType: "string";
|
|
393
393
|
columnType: "SQLiteText";
|
|
394
|
-
data: "
|
|
394
|
+
data: "error" | "completed" | "pending" | "approved" | "rejected";
|
|
395
395
|
driverParam: string;
|
|
396
396
|
notNull: true;
|
|
397
397
|
hasDefault: true;
|
|
@@ -901,6 +901,123 @@ declare const terminals: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
901
901
|
};
|
|
902
902
|
dialect: "sqlite";
|
|
903
903
|
}>;
|
|
904
|
+
declare const activeStreams: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
905
|
+
name: "active_streams";
|
|
906
|
+
schema: undefined;
|
|
907
|
+
columns: {
|
|
908
|
+
id: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
909
|
+
name: "id";
|
|
910
|
+
tableName: "active_streams";
|
|
911
|
+
dataType: "string";
|
|
912
|
+
columnType: "SQLiteText";
|
|
913
|
+
data: string;
|
|
914
|
+
driverParam: string;
|
|
915
|
+
notNull: true;
|
|
916
|
+
hasDefault: false;
|
|
917
|
+
isPrimaryKey: true;
|
|
918
|
+
isAutoincrement: false;
|
|
919
|
+
hasRuntimeDefault: false;
|
|
920
|
+
enumValues: [string, ...string[]];
|
|
921
|
+
baseColumn: never;
|
|
922
|
+
identity: undefined;
|
|
923
|
+
generated: undefined;
|
|
924
|
+
}, {}, {
|
|
925
|
+
length: number | undefined;
|
|
926
|
+
}>;
|
|
927
|
+
sessionId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
928
|
+
name: "session_id";
|
|
929
|
+
tableName: "active_streams";
|
|
930
|
+
dataType: "string";
|
|
931
|
+
columnType: "SQLiteText";
|
|
932
|
+
data: string;
|
|
933
|
+
driverParam: string;
|
|
934
|
+
notNull: true;
|
|
935
|
+
hasDefault: false;
|
|
936
|
+
isPrimaryKey: false;
|
|
937
|
+
isAutoincrement: false;
|
|
938
|
+
hasRuntimeDefault: false;
|
|
939
|
+
enumValues: [string, ...string[]];
|
|
940
|
+
baseColumn: never;
|
|
941
|
+
identity: undefined;
|
|
942
|
+
generated: undefined;
|
|
943
|
+
}, {}, {
|
|
944
|
+
length: number | undefined;
|
|
945
|
+
}>;
|
|
946
|
+
streamId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
947
|
+
name: "stream_id";
|
|
948
|
+
tableName: "active_streams";
|
|
949
|
+
dataType: "string";
|
|
950
|
+
columnType: "SQLiteText";
|
|
951
|
+
data: string;
|
|
952
|
+
driverParam: string;
|
|
953
|
+
notNull: true;
|
|
954
|
+
hasDefault: false;
|
|
955
|
+
isPrimaryKey: false;
|
|
956
|
+
isAutoincrement: false;
|
|
957
|
+
hasRuntimeDefault: false;
|
|
958
|
+
enumValues: [string, ...string[]];
|
|
959
|
+
baseColumn: never;
|
|
960
|
+
identity: undefined;
|
|
961
|
+
generated: undefined;
|
|
962
|
+
}, {}, {
|
|
963
|
+
length: number | undefined;
|
|
964
|
+
}>;
|
|
965
|
+
status: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
966
|
+
name: "status";
|
|
967
|
+
tableName: "active_streams";
|
|
968
|
+
dataType: "string";
|
|
969
|
+
columnType: "SQLiteText";
|
|
970
|
+
data: "error" | "active" | "finished";
|
|
971
|
+
driverParam: string;
|
|
972
|
+
notNull: true;
|
|
973
|
+
hasDefault: true;
|
|
974
|
+
isPrimaryKey: false;
|
|
975
|
+
isAutoincrement: false;
|
|
976
|
+
hasRuntimeDefault: false;
|
|
977
|
+
enumValues: ["active", "finished", "error"];
|
|
978
|
+
baseColumn: never;
|
|
979
|
+
identity: undefined;
|
|
980
|
+
generated: undefined;
|
|
981
|
+
}, {}, {
|
|
982
|
+
length: number | undefined;
|
|
983
|
+
}>;
|
|
984
|
+
createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
985
|
+
name: "created_at";
|
|
986
|
+
tableName: "active_streams";
|
|
987
|
+
dataType: "date";
|
|
988
|
+
columnType: "SQLiteTimestamp";
|
|
989
|
+
data: Date;
|
|
990
|
+
driverParam: number;
|
|
991
|
+
notNull: true;
|
|
992
|
+
hasDefault: true;
|
|
993
|
+
isPrimaryKey: false;
|
|
994
|
+
isAutoincrement: false;
|
|
995
|
+
hasRuntimeDefault: true;
|
|
996
|
+
enumValues: undefined;
|
|
997
|
+
baseColumn: never;
|
|
998
|
+
identity: undefined;
|
|
999
|
+
generated: undefined;
|
|
1000
|
+
}, {}, {}>;
|
|
1001
|
+
finishedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1002
|
+
name: "finished_at";
|
|
1003
|
+
tableName: "active_streams";
|
|
1004
|
+
dataType: "date";
|
|
1005
|
+
columnType: "SQLiteTimestamp";
|
|
1006
|
+
data: Date;
|
|
1007
|
+
driverParam: number;
|
|
1008
|
+
notNull: false;
|
|
1009
|
+
hasDefault: false;
|
|
1010
|
+
isPrimaryKey: false;
|
|
1011
|
+
isAutoincrement: false;
|
|
1012
|
+
hasRuntimeDefault: false;
|
|
1013
|
+
enumValues: undefined;
|
|
1014
|
+
baseColumn: never;
|
|
1015
|
+
identity: undefined;
|
|
1016
|
+
generated: undefined;
|
|
1017
|
+
}, {}, {}>;
|
|
1018
|
+
};
|
|
1019
|
+
dialect: "sqlite";
|
|
1020
|
+
}>;
|
|
904
1021
|
interface SessionConfig {
|
|
905
1022
|
toolApprovals?: Record<string, boolean>;
|
|
906
1023
|
approvalWebhook?: string;
|
|
@@ -925,7 +1042,7 @@ interface ToolModelMessage {
|
|
|
925
1042
|
content: ToolResultPart[];
|
|
926
1043
|
}
|
|
927
1044
|
interface AssistantContentPart {
|
|
928
|
-
type: 'text' | 'tool-call';
|
|
1045
|
+
type: 'text' | 'tool-call' | 'reasoning';
|
|
929
1046
|
text?: string;
|
|
930
1047
|
toolCallId?: string;
|
|
931
1048
|
toolName?: string;
|
|
@@ -948,12 +1065,16 @@ type NewTodoItem = typeof todoItems.$inferInsert;
|
|
|
948
1065
|
type LoadedSkill = typeof loadedSkills.$inferSelect;
|
|
949
1066
|
type Terminal = typeof terminals.$inferSelect;
|
|
950
1067
|
type NewTerminal = typeof terminals.$inferInsert;
|
|
1068
|
+
type ActiveStream = typeof activeStreams.$inferSelect;
|
|
1069
|
+
type NewActiveStream = typeof activeStreams.$inferInsert;
|
|
951
1070
|
|
|
1071
|
+
type schema_ActiveStream = ActiveStream;
|
|
952
1072
|
type schema_AssistantContentPart = AssistantContentPart;
|
|
953
1073
|
type schema_AssistantModelMessage = AssistantModelMessage;
|
|
954
1074
|
type schema_LoadedSkill = LoadedSkill;
|
|
955
1075
|
type schema_Message = Message;
|
|
956
1076
|
type schema_ModelMessage = ModelMessage;
|
|
1077
|
+
type schema_NewActiveStream = NewActiveStream;
|
|
957
1078
|
type schema_NewMessage = NewMessage;
|
|
958
1079
|
type schema_NewSession = NewSession;
|
|
959
1080
|
type schema_NewTerminal = NewTerminal;
|
|
@@ -968,6 +1089,7 @@ type schema_ToolExecution = ToolExecution;
|
|
|
968
1089
|
type schema_ToolModelMessage = ToolModelMessage;
|
|
969
1090
|
type schema_ToolResultPart = ToolResultPart;
|
|
970
1091
|
type schema_UserModelMessage = UserModelMessage;
|
|
1092
|
+
declare const schema_activeStreams: typeof activeStreams;
|
|
971
1093
|
declare const schema_loadedSkills: typeof loadedSkills;
|
|
972
1094
|
declare const schema_messages: typeof messages;
|
|
973
1095
|
declare const schema_sessions: typeof sessions;
|
|
@@ -975,7 +1097,7 @@ declare const schema_terminals: typeof terminals;
|
|
|
975
1097
|
declare const schema_todoItems: typeof todoItems;
|
|
976
1098
|
declare const schema_toolExecutions: typeof toolExecutions;
|
|
977
1099
|
declare namespace schema {
|
|
978
|
-
export { type schema_AssistantContentPart as AssistantContentPart, type schema_AssistantModelMessage as AssistantModelMessage, type schema_LoadedSkill as LoadedSkill, type schema_Message as Message, type schema_ModelMessage as ModelMessage, type schema_NewMessage as NewMessage, type schema_NewSession as NewSession, type schema_NewTerminal as NewTerminal, type schema_NewTodoItem as NewTodoItem, type schema_NewToolExecution as NewToolExecution, type schema_Session as Session, type schema_SessionConfig as SessionConfig, type schema_SystemModelMessage as SystemModelMessage, type schema_Terminal as Terminal, type schema_TodoItem as TodoItem, type schema_ToolExecution as ToolExecution, type schema_ToolModelMessage as ToolModelMessage, type schema_ToolResultPart as ToolResultPart, type schema_UserModelMessage as UserModelMessage, schema_loadedSkills as loadedSkills, schema_messages as messages, schema_sessions as sessions, schema_terminals as terminals, schema_todoItems as todoItems, schema_toolExecutions as toolExecutions };
|
|
1100
|
+
export { type schema_ActiveStream as ActiveStream, type schema_AssistantContentPart as AssistantContentPart, type schema_AssistantModelMessage as AssistantModelMessage, type schema_LoadedSkill as LoadedSkill, type schema_Message as Message, type schema_ModelMessage as ModelMessage, type schema_NewActiveStream as NewActiveStream, type schema_NewMessage as NewMessage, type schema_NewSession as NewSession, type schema_NewTerminal as NewTerminal, type schema_NewTodoItem as NewTodoItem, type schema_NewToolExecution as NewToolExecution, type schema_Session as Session, type schema_SessionConfig as SessionConfig, type schema_SystemModelMessage as SystemModelMessage, type schema_Terminal as Terminal, type schema_TodoItem as TodoItem, type schema_ToolExecution as ToolExecution, type schema_ToolModelMessage as ToolModelMessage, type schema_ToolResultPart as ToolResultPart, type schema_UserModelMessage as UserModelMessage, schema_activeStreams as activeStreams, schema_loadedSkills as loadedSkills, schema_messages as messages, schema_sessions as sessions, schema_terminals as terminals, schema_todoItems as todoItems, schema_toolExecutions as toolExecutions };
|
|
979
1101
|
}
|
|
980
1102
|
|
|
981
|
-
export { type LoadedSkill as L, type ModelMessage as M, type NewSession as N, type Session as S, type
|
|
1103
|
+
export { type ActiveStream as A, type LoadedSkill as L, type ModelMessage as M, type NewSession as N, type Session as S, type TodoItem as T, type Message as a, type SessionConfig as b, type NewTodoItem as c, type NewToolExecution as d, type ToolExecution as e, type NewTerminal as f, type Terminal as g, schema as s };
|
package/dist/server/index.d.ts
CHANGED
|
@@ -6,13 +6,20 @@ interface ServerOptions {
|
|
|
6
6
|
host?: string;
|
|
7
7
|
workingDirectory?: string;
|
|
8
8
|
configPath?: string;
|
|
9
|
+
quiet?: boolean;
|
|
10
|
+
webUI?: boolean;
|
|
11
|
+
webPort?: number;
|
|
9
12
|
}
|
|
10
|
-
declare function
|
|
13
|
+
declare function stopWebUI(): void;
|
|
14
|
+
declare function createApp(options?: {
|
|
15
|
+
quiet?: boolean;
|
|
16
|
+
}): Promise<Hono<hono_types.BlankEnv, hono_types.BlankSchema, "/">>;
|
|
11
17
|
declare function startServer(options?: ServerOptions): Promise<{
|
|
12
18
|
app: Hono<hono_types.BlankEnv, hono_types.BlankSchema, "/">;
|
|
13
19
|
port: number;
|
|
14
20
|
host: string;
|
|
21
|
+
webPort: number | undefined;
|
|
15
22
|
}>;
|
|
16
23
|
declare function stopServer(): void;
|
|
17
24
|
|
|
18
|
-
export { type ServerOptions, createApp, startServer, stopServer };
|
|
25
|
+
export { type ServerOptions, createApp, startServer, stopServer, stopWebUI };
|