sparkecoder 0.1.61 → 0.1.63
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/agent/index.js +16 -3
- package/dist/agent/index.js.map +1 -1
- package/dist/cli.js +16 -3
- package/dist/cli.js.map +1 -1
- package/dist/db/index.d.ts +2 -2
- package/dist/{index-DuGtMaAJ.d.ts → index-Dn-eCGLe.d.ts} +25 -25
- package/dist/index.d.ts +5 -5
- package/dist/index.js +16 -3
- package/dist/index.js.map +1 -1
- package/dist/{schema-C7Mm4Ykn.d.ts → schema-XcP0dedO.d.ts} +3 -3
- package/dist/{search-C_IFImt1.d.ts → search-DINnDTgj.d.ts} +4 -4
- package/dist/server/index.js +16 -3
- package/dist/server/index.js.map +1 -1
- package/dist/tools/index.d.ts +2 -2
- 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/(main)/page.js.nft.json +1 -1
- package/web/.next/standalone/web/.next/server/app/(main)/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/web/.next/server/app/(main)/session/[id]/page.js.nft.json +1 -1
- package/web/.next/standalone/web/.next/server/app/(main)/session/[id]/page_client-reference-manifest.js +1 -1
- 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/page_client-reference-manifest.js +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 +2 -2
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- 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 +2 -2
- 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 +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/installation/page_client-reference-manifest.js +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 +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_full.segment.rsc +2 -2
- 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 +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_tree.segment.rsc +2 -2
- 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/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/skills/page_client-reference-manifest.js +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 +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_full.segment.rsc +2 -2
- 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 +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_tree.segment.rsc +2 -2
- 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/page_client-reference-manifest.js +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 +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_full.segment.rsc +2 -2
- 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 +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_tree.segment.rsc +2 -2
- 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 +2 -2
- package/web/.next/standalone/web/.next/server/app/docs.segments/_full.segment.rsc +2 -2
- 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 +2 -2
- package/web/.next/standalone/web/.next/server/app/docs.segments/_tree.segment.rsc +2 -2
- 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/embed/[id]/page.js.nft.json +1 -1
- package/web/.next/standalone/web/.next/server/app/embed/[id]/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/web/.next/server/app/index.html +1 -1
- package/web/.next/standalone/web/.next/server/app/index.rsc +4 -4
- package/web/.next/standalone/web/.next/server/app/index.segments/!KG1haW4p/__PAGE__.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/index.segments/!KG1haW4p.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/index.segments/_full.segment.rsc +4 -4
- 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 +2 -2
- package/web/.next/standalone/web/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_e19eaecc._.js → 2374f_04a544c8._.js} +1 -1
- package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_0d0b1fb9._.js → 2374f_45534372._.js} +1 -1
- package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_03d22c16._.js → 2374f_5c78460e._.js} +1 -1
- package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_6166d14d._.js → 2374f_5d0b3394._.js} +1 -1
- package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_b98835eb._.js → 2374f_5e9eb6da._.js} +1 -1
- package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_3f7d6d28._.js → 2374f_68abddfe._.js} +1 -1
- package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_99b7b533._.js → 2374f_72fb9db7._.js} +1 -1
- package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_6b436efc._.js → 2374f_ab5b97d8._.js} +1 -1
- package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_e3aec189._.js → 2374f_bfc8ef7d._.js} +1 -1
- package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_a1a36483._.js → 2374f_c61a33b3._.js} +1 -1
- package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_976b2ded._.js → 2374f_d5f5b9ba._.js} +1 -1
- package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_67b9525f._.js → 2374f_db790cfe._.js} +1 -1
- package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_98eba491._.js → 2374f_de60e6ea._.js} +1 -1
- package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_784d851c._.js → 2374f_e366206f._.js} +1 -1
- package/web/.next/standalone/web/.next/server/chunks/ssr/{[root-of-the-server]__4f176a16._.js → [root-of-the-server]__aa788b85._.js} +2 -2
- package/web/.next/standalone/web/.next/server/chunks/ssr/{[root-of-the-server]__d59f831d._.js → [root-of-the-server]__d04c460d._.js} +4 -4
- package/web/.next/standalone/web/.next/server/chunks/ssr/web_08bbd8c8._.js +7 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/web_2b3a5919._.js +1 -1
- package/web/.next/standalone/web/.next/server/chunks/ssr/web_38156da8._.js +1 -1
- package/web/.next/standalone/web/.next/server/chunks/ssr/{web_693f514e._.js → web_6fb589ac._.js} +2 -2
- package/web/.next/standalone/web/.next/server/chunks/ssr/{web_dc6ce793._.js → web_c729ad51._.js} +2 -2
- package/web/.next/standalone/web/.next/server/chunks/ssr/web_src_components_sessions-sidebar_tsx_92510070._.js +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/.next/static/chunks/{81685e5e8be4eac9.js → 054deec0c7b19894.js} +3 -3
- package/web/.next/standalone/web/.next/static/chunks/1ebba7ac024244f9.js +5 -0
- package/web/.next/{static/chunks/0358a0e7a40cfb93.css → standalone/web/.next/static/chunks/1f42a42914068041.css} +1 -1
- package/web/.next/standalone/web/.next/static/chunks/26eb5fab5216f3cc.js +1 -0
- package/web/.next/standalone/web/.next/static/chunks/{95436454a7559b0d.js → 5383c5717758f575.js} +3 -3
- package/web/.next/standalone/web/.next/static/chunks/{20e0fa99c7a1c1fc.js → 7fb141141caa4fac.js} +5 -5
- package/web/.next/standalone/web/.next/static/chunks/c6f40df16a9396b9.js +1 -0
- package/web/.next/standalone/web/.next/static/chunks/ea29be392100ab0f.js +5 -0
- package/web/.next/{static/chunks/294ebe8457006bce.js → standalone/web/.next/static/chunks/eea48be65cdb3f4b.js} +2 -2
- package/web/.next/{static/chunks/81685e5e8be4eac9.js → standalone/web/.next/static/static/chunks/054deec0c7b19894.js} +3 -3
- package/web/.next/standalone/web/.next/static/static/chunks/1ebba7ac024244f9.js +5 -0
- package/web/.next/standalone/web/.next/static/static/chunks/{0358a0e7a40cfb93.css → 1f42a42914068041.css} +1 -1
- package/web/.next/standalone/web/.next/static/static/chunks/26eb5fab5216f3cc.js +1 -0
- package/web/.next/standalone/web/.next/static/static/chunks/{95436454a7559b0d.js → 5383c5717758f575.js} +3 -3
- package/web/.next/standalone/web/.next/static/static/chunks/{20e0fa99c7a1c1fc.js → 7fb141141caa4fac.js} +5 -5
- package/web/.next/standalone/web/.next/static/static/chunks/c6f40df16a9396b9.js +1 -0
- package/web/.next/standalone/web/.next/static/static/chunks/ea29be392100ab0f.js +5 -0
- package/web/.next/standalone/web/.next/static/static/chunks/{294ebe8457006bce.js → eea48be65cdb3f4b.js} +2 -2
- package/web/.next/standalone/web/package-lock.json +20 -0
- package/web/.next/standalone/web/package.json +2 -0
- package/web/.next/standalone/web/src/components/ai-elements/complete-task-tool.tsx +36 -60
- package/web/.next/standalone/web/src/components/chat-interface.tsx +36 -32
- package/web/.next/standalone/web/src/components/sessions-sidebar.tsx +231 -16
- package/web/.next/standalone/web/src/lib/api.ts +17 -0
- package/web/.next/{standalone/web/.next/static/static/chunks/81685e5e8be4eac9.js → static/chunks/054deec0c7b19894.js} +3 -3
- package/web/.next/static/chunks/1ebba7ac024244f9.js +5 -0
- package/web/.next/{standalone/web/.next/static/chunks/0358a0e7a40cfb93.css → static/chunks/1f42a42914068041.css} +1 -1
- package/web/.next/static/chunks/26eb5fab5216f3cc.js +1 -0
- package/web/.next/static/chunks/{95436454a7559b0d.js → 5383c5717758f575.js} +3 -3
- package/web/.next/static/chunks/{20e0fa99c7a1c1fc.js → 7fb141141caa4fac.js} +5 -5
- package/web/.next/static/chunks/c6f40df16a9396b9.js +1 -0
- package/web/.next/static/chunks/ea29be392100ab0f.js +5 -0
- package/web/.next/{standalone/web/.next/static/chunks/294ebe8457006bce.js → static/chunks/eea48be65cdb3f4b.js} +2 -2
- package/web/package.json +2 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/web_a42a2651._.js +0 -7
- package/web/.next/standalone/web/.next/static/chunks/1ecde4c0d426a635.js +0 -1
- package/web/.next/standalone/web/.next/static/chunks/36688a049d72e8ab.js +0 -5
- package/web/.next/standalone/web/.next/static/chunks/a751ca474cc46212.js +0 -5
- package/web/.next/standalone/web/.next/static/static/chunks/1ecde4c0d426a635.js +0 -1
- package/web/.next/standalone/web/.next/static/static/chunks/36688a049d72e8ab.js +0 -5
- package/web/.next/standalone/web/.next/static/static/chunks/a751ca474cc46212.js +0 -5
- package/web/.next/static/chunks/1ecde4c0d426a635.js +0 -1
- package/web/.next/static/chunks/36688a049d72e8ab.js +0 -5
- package/web/.next/static/chunks/a751ca474cc46212.js +0 -5
- /package/web/.next/standalone/web/.next/static/{8zJH-RqrUQ3scBGbdaCmn → Xc8ztiG5d6CHUNHm_1G8b}/_buildManifest.js +0 -0
- /package/web/.next/standalone/web/.next/static/{8zJH-RqrUQ3scBGbdaCmn → Xc8ztiG5d6CHUNHm_1G8b}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/standalone/web/.next/static/{8zJH-RqrUQ3scBGbdaCmn → Xc8ztiG5d6CHUNHm_1G8b}/_ssgManifest.js +0 -0
- /package/web/.next/standalone/web/.next/static/static/{8zJH-RqrUQ3scBGbdaCmn → Xc8ztiG5d6CHUNHm_1G8b}/_buildManifest.js +0 -0
- /package/web/.next/standalone/web/.next/static/static/{8zJH-RqrUQ3scBGbdaCmn → Xc8ztiG5d6CHUNHm_1G8b}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/standalone/web/.next/static/static/{8zJH-RqrUQ3scBGbdaCmn → Xc8ztiG5d6CHUNHm_1G8b}/_ssgManifest.js +0 -0
- /package/web/.next/static/{8zJH-RqrUQ3scBGbdaCmn → Xc8ztiG5d6CHUNHm_1G8b}/_buildManifest.js +0 -0
- /package/web/.next/static/{8zJH-RqrUQ3scBGbdaCmn → Xc8ztiG5d6CHUNHm_1G8b}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{8zJH-RqrUQ3scBGbdaCmn → Xc8ztiG5d6CHUNHm_1G8b}/_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-XcP0dedO.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-XcP0dedO.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-XcP0dedO.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-DINnDTgj.js';
|
|
5
5
|
|
|
6
6
|
declare const ToolApprovalConfigSchema: z.ZodObject<{
|
|
7
7
|
bash: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -37,54 +37,54 @@ declare const SessionConfigSchema: z.ZodObject<{
|
|
|
37
37
|
error: z.ZodOptional<z.ZodString>;
|
|
38
38
|
iterations: z.ZodOptional<z.ZodNumber>;
|
|
39
39
|
}, "strip", z.ZodTypeAny, {
|
|
40
|
-
status: "
|
|
41
|
-
enabled: boolean;
|
|
40
|
+
status: "completed" | "failed" | "running";
|
|
42
41
|
outputSchema: Record<string, unknown>;
|
|
43
|
-
|
|
42
|
+
enabled: boolean;
|
|
43
|
+
error?: string | undefined;
|
|
44
44
|
maxIterations?: number | undefined;
|
|
45
|
+
webhookUrl?: string | undefined;
|
|
45
46
|
result?: unknown;
|
|
46
|
-
error?: string | undefined;
|
|
47
47
|
iterations?: number | undefined;
|
|
48
48
|
}, {
|
|
49
|
-
status: "
|
|
50
|
-
enabled: boolean;
|
|
49
|
+
status: "completed" | "failed" | "running";
|
|
51
50
|
outputSchema: Record<string, unknown>;
|
|
52
|
-
|
|
51
|
+
enabled: boolean;
|
|
52
|
+
error?: string | undefined;
|
|
53
53
|
maxIterations?: number | undefined;
|
|
54
|
+
webhookUrl?: string | undefined;
|
|
54
55
|
result?: unknown;
|
|
55
|
-
error?: string | undefined;
|
|
56
56
|
iterations?: number | undefined;
|
|
57
57
|
}>>;
|
|
58
58
|
}, "strip", z.ZodTypeAny, {
|
|
59
59
|
maxContextChars: number;
|
|
60
60
|
toolApprovals?: Record<string, boolean> | undefined;
|
|
61
61
|
approvalWebhook?: string | undefined;
|
|
62
|
-
skillsDirectory?: string | undefined;
|
|
63
62
|
task?: {
|
|
64
|
-
status: "
|
|
65
|
-
enabled: boolean;
|
|
63
|
+
status: "completed" | "failed" | "running";
|
|
66
64
|
outputSchema: Record<string, unknown>;
|
|
67
|
-
|
|
65
|
+
enabled: boolean;
|
|
66
|
+
error?: string | undefined;
|
|
68
67
|
maxIterations?: number | undefined;
|
|
68
|
+
webhookUrl?: string | undefined;
|
|
69
69
|
result?: unknown;
|
|
70
|
-
error?: string | undefined;
|
|
71
70
|
iterations?: number | undefined;
|
|
72
71
|
} | undefined;
|
|
72
|
+
skillsDirectory?: string | undefined;
|
|
73
73
|
}, {
|
|
74
74
|
toolApprovals?: Record<string, boolean> | undefined;
|
|
75
75
|
approvalWebhook?: string | undefined;
|
|
76
|
-
skillsDirectory?: string | undefined;
|
|
77
|
-
maxContextChars?: number | undefined;
|
|
78
76
|
task?: {
|
|
79
|
-
status: "
|
|
80
|
-
enabled: boolean;
|
|
77
|
+
status: "completed" | "failed" | "running";
|
|
81
78
|
outputSchema: Record<string, unknown>;
|
|
82
|
-
|
|
79
|
+
enabled: boolean;
|
|
80
|
+
error?: string | undefined;
|
|
83
81
|
maxIterations?: number | undefined;
|
|
82
|
+
webhookUrl?: string | undefined;
|
|
84
83
|
result?: unknown;
|
|
85
|
-
error?: string | undefined;
|
|
86
84
|
iterations?: number | undefined;
|
|
87
85
|
} | undefined;
|
|
86
|
+
skillsDirectory?: string | undefined;
|
|
87
|
+
maxContextChars?: number | undefined;
|
|
88
88
|
}>;
|
|
89
89
|
declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
90
90
|
defaultModel: z.ZodDefault<z.ZodString>;
|
|
@@ -179,6 +179,7 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
179
179
|
exclude?: string[] | undefined;
|
|
180
180
|
}>>;
|
|
181
181
|
}, "strip", z.ZodTypeAny, {
|
|
182
|
+
defaultModel: string;
|
|
182
183
|
toolApprovals: {
|
|
183
184
|
bash: boolean;
|
|
184
185
|
write_file: boolean;
|
|
@@ -186,7 +187,6 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
186
187
|
load_skill: boolean;
|
|
187
188
|
todo: boolean;
|
|
188
189
|
};
|
|
189
|
-
defaultModel: string;
|
|
190
190
|
skills: {
|
|
191
191
|
directory: string;
|
|
192
192
|
additionalDirectories: string[];
|
|
@@ -202,8 +202,8 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
202
202
|
publicUrl?: string | undefined;
|
|
203
203
|
};
|
|
204
204
|
databasePath: string;
|
|
205
|
-
approvalWebhook?: string | undefined;
|
|
206
205
|
workingDirectory?: string | undefined;
|
|
206
|
+
approvalWebhook?: string | undefined;
|
|
207
207
|
remoteServer?: {
|
|
208
208
|
url?: string | undefined;
|
|
209
209
|
authKey?: string | undefined;
|
|
@@ -217,6 +217,8 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
217
217
|
namespace?: string | undefined;
|
|
218
218
|
} | undefined;
|
|
219
219
|
}, {
|
|
220
|
+
defaultModel?: string | undefined;
|
|
221
|
+
workingDirectory?: string | undefined;
|
|
220
222
|
toolApprovals?: {
|
|
221
223
|
bash?: boolean | undefined;
|
|
222
224
|
write_file?: boolean | undefined;
|
|
@@ -225,8 +227,6 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
225
227
|
todo?: boolean | undefined;
|
|
226
228
|
} | undefined;
|
|
227
229
|
approvalWebhook?: string | undefined;
|
|
228
|
-
workingDirectory?: string | undefined;
|
|
229
|
-
defaultModel?: string | undefined;
|
|
230
230
|
skills?: {
|
|
231
231
|
directory?: string | undefined;
|
|
232
232
|
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-Dn-eCGLe.js';
|
|
2
|
+
export { A as Agent, a as AgentOptions, b as AgentRunOptions, c as AgentStreamResult, S as SparkcoderConfig, T as ToolApprovalConfig } from './index-Dn-eCGLe.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-XcP0dedO.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-XcP0dedO.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-DINnDTgj.js';
|
|
9
9
|
import 'ai';
|
|
10
10
|
import 'zod';
|
|
11
11
|
import 'hono/types';
|
package/dist/index.js
CHANGED
|
@@ -5502,6 +5502,19 @@ ${searchInstructions}
|
|
|
5502
5502
|
16. **Diversity** \u2014 Distrust all claims for "one true way"
|
|
5503
5503
|
17. **Extensibility** \u2014 Design for the future, because it will be here sooner than you think
|
|
5504
5504
|
|
|
5505
|
+
### Follow these design rules for any user interfaces or experiences you write (DESIGN LIKE APPLE):
|
|
5506
|
+
|
|
5507
|
+
1. **Simplicity** \u2014 Simplicity is the ultimate sophistication. Remove everything unnecessary.
|
|
5508
|
+
2. **Focus** \u2014 Say no to 1,000 things to say yes to the few that matter most.
|
|
5509
|
+
3. **Clarity** \u2014 Make the interface so clear that it becomes invisible.
|
|
5510
|
+
4. **Delight** \u2014 Sweat the details. The smallest touches create the biggest impact.
|
|
5511
|
+
5. **Intuitive** \u2014 It should just work. No manual required.
|
|
5512
|
+
6. **Human-Centered** \u2014 Design for people, not technology. Technology should adapt to humans, not the other way around.
|
|
5513
|
+
7. **Consistency** \u2014 Familiar patterns reduce cognitive load. Be predictable where it matters.
|
|
5514
|
+
8. **Feedback** \u2014 Every action deserves a response. Make interactions feel alive.
|
|
5515
|
+
9. **Forgiveness** \u2014 Make it easy to undo. Never punish exploration.
|
|
5516
|
+
10. **Beauty** \u2014 Aesthetics are not superficial. Beautiful things work better because people care about them.
|
|
5517
|
+
|
|
5505
5518
|
### Follow these rules to be a good agent for the user:
|
|
5506
5519
|
|
|
5507
5520
|
1. Understand first - Read relevant files before making any changes. Use the \`explore_agent\` tool for exploratory questions about how things work, and direct searches (grep/rg) for finding exact strings or file names.
|
|
@@ -6124,7 +6137,7 @@ ${prompt}` });
|
|
|
6124
6137
|
|
|
6125
6138
|
${taskAddendum}`;
|
|
6126
6139
|
fireWebhook("task.started", { prompt: options.prompt });
|
|
6127
|
-
this.context.addUserMessage(options.prompt);
|
|
6140
|
+
await this.context.addUserMessage(options.prompt);
|
|
6128
6141
|
let iteration = 0;
|
|
6129
6142
|
while (iteration < maxIterations) {
|
|
6130
6143
|
iteration++;
|
|
@@ -6153,7 +6166,7 @@ ${taskAddendum}`;
|
|
|
6153
6166
|
}
|
|
6154
6167
|
});
|
|
6155
6168
|
const responseMessages = result.response.messages;
|
|
6156
|
-
this.context.addResponseMessages(responseMessages);
|
|
6169
|
+
await this.context.addResponseMessages(responseMessages);
|
|
6157
6170
|
if (result.text) {
|
|
6158
6171
|
options.onText?.(result.text);
|
|
6159
6172
|
fireWebhook("task.message", { iteration, text: result.text });
|
|
@@ -6199,7 +6212,7 @@ ${taskAddendum}`;
|
|
|
6199
6212
|
iterations: iteration
|
|
6200
6213
|
};
|
|
6201
6214
|
}
|
|
6202
|
-
this.context.addUserMessage(
|
|
6215
|
+
await this.context.addUserMessage(
|
|
6203
6216
|
"Continue working on the task. When done, call `complete_task` with the result. If you cannot complete it, call `task_failed` with a reason."
|
|
6204
6217
|
);
|
|
6205
6218
|
}
|