sparkecoder 0.1.95 → 0.1.97
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/agent/index.d.ts +3 -3
- package/dist/cli.js +2 -0
- package/dist/cli.js.map +1 -1
- package/dist/db/index.d.ts +2 -2
- package/dist/{index-C7Kkn5vq.d.ts → index-BvIissiB.d.ts} +29 -29
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/{schema-D7BJyHLl.d.ts → schema-CohdIL13.d.ts} +3 -3
- package/dist/{search-CVVfuBPZ.d.ts → search-CCffrVJE.d.ts} +4 -4
- package/dist/server/index.js +2 -0
- package/dist/server/index.js.map +1 -1
- package/dist/tools/index.d.ts +3 -3
- package/package.json +1 -1
- package/web/.next/BUILD_ID +1 -1
- package/web/.next/standalone/web/.next/BUILD_ID +1 -1
- package/web/.next/standalone/web/.next/build-manifest.json +2 -2
- package/web/.next/standalone/web/.next/prerender-manifest.json +3 -3
- package/web/.next/standalone/web/.next/server/app/_global-error.html +2 -2
- package/web/.next/standalone/web/.next/server/app/_global-error.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_not-found.html +1 -1
- package/web/.next/standalone/web/.next/server/app/_not-found.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/installation.html +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/installation.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_full.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_index.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_tree.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/docs/installation/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/docs/installation.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/docs.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/skills.html +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/skills.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_full.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_index.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_tree.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/docs/skills/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/docs/skills.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/docs.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/tools.html +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/tools.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_full.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_index.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_tree.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/docs/tools/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/docs/tools.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/docs.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs.html +2 -2
- package/web/.next/standalone/web/.next/server/app/docs.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs.segments/_full.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs.segments/_index.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs.segments/_tree.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs.segments/docs/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs.segments/docs.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/index.html +1 -1
- package/web/.next/standalone/web/.next/server/app/index.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/index.segments/!KG1haW4p/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/index.segments/!KG1haW4p.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/index.segments/_full.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/index.segments/_index.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/pages/404.html +1 -1
- package/web/.next/standalone/web/.next/server/pages/500.html +2 -2
- package/web/.next/standalone/web/.next/server/server-reference-manifest.js +1 -1
- package/web/.next/standalone/web/.next/server/server-reference-manifest.json +1 -1
- package/web/.next/standalone/web/package-lock.json +16 -16
- /package/web/.next/standalone/web/.next/static/{l9xM7mBxJ_uNaRmV2eECi → -npGTmVDA-oK8ZjRdKQf5}/_buildManifest.js +0 -0
- /package/web/.next/standalone/web/.next/static/{l9xM7mBxJ_uNaRmV2eECi → -npGTmVDA-oK8ZjRdKQf5}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/standalone/web/.next/static/{l9xM7mBxJ_uNaRmV2eECi → -npGTmVDA-oK8ZjRdKQf5}/_ssgManifest.js +0 -0
- /package/web/.next/standalone/web/.next/static/static/{l9xM7mBxJ_uNaRmV2eECi → -npGTmVDA-oK8ZjRdKQf5}/_buildManifest.js +0 -0
- /package/web/.next/standalone/web/.next/static/static/{l9xM7mBxJ_uNaRmV2eECi → -npGTmVDA-oK8ZjRdKQf5}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/standalone/web/.next/static/static/{l9xM7mBxJ_uNaRmV2eECi → -npGTmVDA-oK8ZjRdKQf5}/_ssgManifest.js +0 -0
- /package/web/.next/static/{l9xM7mBxJ_uNaRmV2eECi → -npGTmVDA-oK8ZjRdKQf5}/_buildManifest.js +0 -0
- /package/web/.next/static/{l9xM7mBxJ_uNaRmV2eECi → -npGTmVDA-oK8ZjRdKQf5}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{l9xM7mBxJ_uNaRmV2eECi → -npGTmVDA-oK8ZjRdKQf5}/_ssgManifest.js +0 -0
package/dist/db/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as Checkpoint, F as FileBackup, M as ModelMessage, a as Message, S as Session, L as LoadedSkill, T as TodoItem, b as ToolExecution, A as ActiveStream, I as IndexStatusRecord, c as IndexedChunk, d as SubagentExecution, e as SubagentStep, f as Terminal } from '../schema-
|
|
2
|
-
export { N as NewActiveStream, g as NewCheckpoint, h as NewFileBackup, i as NewIndexStatusRecord, j as NewIndexedChunk, k as NewMessage, l as NewSession, m as NewSubagentExecution, n as NewTerminal, o as NewTodoItem, p as NewToolExecution, q as SessionConfig, r as TaskConfig, U as UserContentPart, s as UserFilePart, t as UserImagePart, u as UserModelMessage, v as UserTextPart } from '../schema-
|
|
1
|
+
import { C as Checkpoint, F as FileBackup, M as ModelMessage, a as Message, S as Session, L as LoadedSkill, T as TodoItem, b as ToolExecution, A as ActiveStream, I as IndexStatusRecord, c as IndexedChunk, d as SubagentExecution, e as SubagentStep, f as Terminal } from '../schema-CohdIL13.js';
|
|
2
|
+
export { N as NewActiveStream, g as NewCheckpoint, h as NewFileBackup, i as NewIndexStatusRecord, j as NewIndexedChunk, k as NewMessage, l as NewSession, m as NewSubagentExecution, n as NewTerminal, o as NewTodoItem, p as NewToolExecution, q as SessionConfig, r as TaskConfig, U as UserContentPart, s as UserFilePart, t as UserImagePart, u as UserModelMessage, v as UserTextPart } from '../schema-CohdIL13.js';
|
|
3
3
|
import 'drizzle-orm/sqlite-core';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ModelMessage, streamText } from 'ai';
|
|
2
|
-
import { S as Session, b as ToolExecution, r as TaskConfig } from './schema-
|
|
2
|
+
import { S as Session, b as ToolExecution, r as TaskConfig } from './schema-CohdIL13.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { B as BashToolProgress, W as WriteFileProgress, S as SearchToolProgress } from './search-
|
|
4
|
+
import { B as BashToolProgress, W as WriteFileProgress, S as SearchToolProgress } from './search-CCffrVJE.js';
|
|
5
5
|
|
|
6
6
|
declare const ToolApprovalConfigSchema: z.ZodObject<{
|
|
7
7
|
bash: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -38,25 +38,25 @@ declare const SessionConfigSchema: z.ZodObject<{
|
|
|
38
38
|
iterations: z.ZodOptional<z.ZodNumber>;
|
|
39
39
|
parentTaskId: z.ZodOptional<z.ZodString>;
|
|
40
40
|
}, "strip", z.ZodTypeAny, {
|
|
41
|
-
status: "
|
|
42
|
-
enabled: boolean;
|
|
41
|
+
status: "completed" | "failed" | "running";
|
|
43
42
|
outputSchema: Record<string, unknown>;
|
|
44
|
-
|
|
43
|
+
enabled: boolean;
|
|
44
|
+
error?: string | undefined;
|
|
45
45
|
maxIterations?: number | undefined;
|
|
46
|
+
webhookUrl?: string | undefined;
|
|
47
|
+
parentTaskId?: string | undefined;
|
|
46
48
|
result?: unknown;
|
|
47
|
-
error?: string | undefined;
|
|
48
49
|
iterations?: number | undefined;
|
|
49
|
-
parentTaskId?: string | undefined;
|
|
50
50
|
}, {
|
|
51
|
-
status: "
|
|
52
|
-
enabled: boolean;
|
|
51
|
+
status: "completed" | "failed" | "running";
|
|
53
52
|
outputSchema: Record<string, unknown>;
|
|
54
|
-
|
|
53
|
+
enabled: boolean;
|
|
54
|
+
error?: string | undefined;
|
|
55
55
|
maxIterations?: number | undefined;
|
|
56
|
+
webhookUrl?: string | undefined;
|
|
57
|
+
parentTaskId?: string | undefined;
|
|
56
58
|
result?: unknown;
|
|
57
|
-
error?: string | undefined;
|
|
58
59
|
iterations?: number | undefined;
|
|
59
|
-
parentTaskId?: string | undefined;
|
|
60
60
|
}>>;
|
|
61
61
|
computerUseEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
62
62
|
computerUseDisplayWidth: z.ZodOptional<z.ZodNumber>;
|
|
@@ -65,37 +65,37 @@ declare const SessionConfigSchema: z.ZodObject<{
|
|
|
65
65
|
maxContextChars: number;
|
|
66
66
|
toolApprovals?: Record<string, boolean> | undefined;
|
|
67
67
|
approvalWebhook?: string | undefined;
|
|
68
|
-
skillsDirectory?: string | undefined;
|
|
69
68
|
task?: {
|
|
70
|
-
status: "
|
|
71
|
-
enabled: boolean;
|
|
69
|
+
status: "completed" | "failed" | "running";
|
|
72
70
|
outputSchema: Record<string, unknown>;
|
|
73
|
-
|
|
71
|
+
enabled: boolean;
|
|
72
|
+
error?: string | undefined;
|
|
74
73
|
maxIterations?: number | undefined;
|
|
74
|
+
webhookUrl?: string | undefined;
|
|
75
|
+
parentTaskId?: string | undefined;
|
|
75
76
|
result?: unknown;
|
|
76
|
-
error?: string | undefined;
|
|
77
77
|
iterations?: number | undefined;
|
|
78
|
-
parentTaskId?: string | undefined;
|
|
79
78
|
} | undefined;
|
|
79
|
+
skillsDirectory?: string | undefined;
|
|
80
80
|
computerUseEnabled?: boolean | undefined;
|
|
81
81
|
computerUseDisplayWidth?: number | undefined;
|
|
82
82
|
computerUseDisplayHeight?: number | undefined;
|
|
83
83
|
}, {
|
|
84
84
|
toolApprovals?: Record<string, boolean> | undefined;
|
|
85
85
|
approvalWebhook?: string | undefined;
|
|
86
|
-
skillsDirectory?: string | undefined;
|
|
87
|
-
maxContextChars?: number | undefined;
|
|
88
86
|
task?: {
|
|
89
|
-
status: "
|
|
90
|
-
enabled: boolean;
|
|
87
|
+
status: "completed" | "failed" | "running";
|
|
91
88
|
outputSchema: Record<string, unknown>;
|
|
92
|
-
|
|
89
|
+
enabled: boolean;
|
|
90
|
+
error?: string | undefined;
|
|
93
91
|
maxIterations?: number | undefined;
|
|
92
|
+
webhookUrl?: string | undefined;
|
|
93
|
+
parentTaskId?: string | undefined;
|
|
94
94
|
result?: unknown;
|
|
95
|
-
error?: string | undefined;
|
|
96
95
|
iterations?: number | undefined;
|
|
97
|
-
parentTaskId?: string | undefined;
|
|
98
96
|
} | undefined;
|
|
97
|
+
skillsDirectory?: string | undefined;
|
|
98
|
+
maxContextChars?: number | undefined;
|
|
99
99
|
computerUseEnabled?: boolean | undefined;
|
|
100
100
|
computerUseDisplayWidth?: number | undefined;
|
|
101
101
|
computerUseDisplayHeight?: number | undefined;
|
|
@@ -193,6 +193,7 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
193
193
|
exclude?: string[] | undefined;
|
|
194
194
|
}>>;
|
|
195
195
|
}, "strip", z.ZodTypeAny, {
|
|
196
|
+
defaultModel: string;
|
|
196
197
|
toolApprovals: {
|
|
197
198
|
bash: boolean;
|
|
198
199
|
write_file: boolean;
|
|
@@ -200,7 +201,6 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
200
201
|
load_skill: boolean;
|
|
201
202
|
todo: boolean;
|
|
202
203
|
};
|
|
203
|
-
defaultModel: string;
|
|
204
204
|
skills: {
|
|
205
205
|
directory: string;
|
|
206
206
|
additionalDirectories: string[];
|
|
@@ -216,8 +216,8 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
216
216
|
publicUrl?: string | undefined;
|
|
217
217
|
};
|
|
218
218
|
databasePath: string;
|
|
219
|
-
approvalWebhook?: string | undefined;
|
|
220
219
|
workingDirectory?: string | undefined;
|
|
220
|
+
approvalWebhook?: string | undefined;
|
|
221
221
|
remoteServer?: {
|
|
222
222
|
url?: string | undefined;
|
|
223
223
|
authKey?: string | undefined;
|
|
@@ -231,6 +231,8 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
231
231
|
namespace?: string | undefined;
|
|
232
232
|
} | undefined;
|
|
233
233
|
}, {
|
|
234
|
+
defaultModel?: string | undefined;
|
|
235
|
+
workingDirectory?: string | undefined;
|
|
234
236
|
toolApprovals?: {
|
|
235
237
|
bash?: boolean | undefined;
|
|
236
238
|
write_file?: boolean | undefined;
|
|
@@ -239,8 +241,6 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
239
241
|
todo?: boolean | undefined;
|
|
240
242
|
} | undefined;
|
|
241
243
|
approvalWebhook?: string | undefined;
|
|
242
|
-
workingDirectory?: string | undefined;
|
|
243
|
-
defaultModel?: string | undefined;
|
|
244
244
|
skills?: {
|
|
245
245
|
directory?: string | undefined;
|
|
246
246
|
additionalDirectories?: string[] | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { R as ResolvedConfig } from './index-
|
|
2
|
-
export { A as Agent, a as AgentOptions, b as AgentRunOptions, c as AgentStreamResult, S as SparkcoderConfig, T as ToolApprovalConfig } from './index-
|
|
1
|
+
import { R as ResolvedConfig } from './index-BvIissiB.js';
|
|
2
|
+
export { A as Agent, a as AgentOptions, b as AgentRunOptions, c as AgentStreamResult, S as SparkcoderConfig, T as ToolApprovalConfig } from './index-BvIissiB.js';
|
|
3
3
|
export { ServerOptions, createApp, startServer, stopServer } from './server/index.js';
|
|
4
4
|
export { checkpointQueries, closeDatabase, fileBackupQueries, getDb, initDatabase, messageQueries, sessionQueries, skillQueries, todoQueries, toolExecutionQueries } from './db/index.js';
|
|
5
|
-
import { F as FileBackup, C as Checkpoint } from './schema-
|
|
6
|
-
export { a as Message, M as ModelMessage, S as Session, q as SessionConfig, f as Terminal, T as TodoItem, b as ToolExecution } from './schema-
|
|
5
|
+
import { F as FileBackup, C as Checkpoint } from './schema-CohdIL13.js';
|
|
6
|
+
export { a as Message, M as ModelMessage, S as Session, q as SessionConfig, f as Terminal, T as TodoItem, b as ToolExecution } from './schema-CohdIL13.js';
|
|
7
7
|
export { createLoadSkillTool, createReadFileTool, createTodoTool, createTools } from './tools/index.js';
|
|
8
|
-
export { c as createBashTool, a as createWriteFileTool } from './search-
|
|
8
|
+
export { c as createBashTool, a as createWriteFileTool } from './search-CCffrVJE.js';
|
|
9
9
|
import 'ai';
|
|
10
10
|
import 'zod';
|
|
11
11
|
import 'hono/types';
|
package/dist/index.js
CHANGED
|
@@ -12743,6 +12743,8 @@ async function startServer(options = {}) {
|
|
|
12743
12743
|
if (!options.quiet) console.log("\u{1F4E1} Registering with remote server...");
|
|
12744
12744
|
authKey3 = await ensureRemoteAuthKey(config.resolvedRemoteServer.url);
|
|
12745
12745
|
if (!options.quiet) console.log("\u2713 Registered with remote server");
|
|
12746
|
+
config.resolvedRemoteServer.authKey = authKey3;
|
|
12747
|
+
config.resolvedRemoteServer.isConfigured = true;
|
|
12746
12748
|
}
|
|
12747
12749
|
initDatabase({ url: config.resolvedRemoteServer.url, authKey: authKey3 });
|
|
12748
12750
|
if (!options.quiet) console.log(`\u{1F4E1} Using remote database: ${config.resolvedRemoteServer.url}`);
|