sparkecoder 0.1.76 → 0.1.77
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 +9 -3
- package/dist/agent/index.js.map +1 -1
- package/dist/cli.js +20 -8
- package/dist/cli.js.map +1 -1
- package/dist/db/index.d.ts +2 -2
- package/dist/{index-DRscBFFX.d.ts → index-DT1l57s0.d.ts} +25 -25
- package/dist/index.d.ts +5 -5
- package/dist/index.js +20 -8
- package/dist/index.js.map +1 -1
- package/dist/{schema-C7Mm4Ykn.d.ts → schema-XcP0dedO.d.ts} +3 -3
- package/dist/{search-CVVfuBPZ.d.ts → search-CCffrVJE.d.ts} +4 -4
- package/dist/server/index.js +20 -8
- 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 +3 -3
- /package/web/.next/standalone/web/.next/static/{nZpzcWd5nqIPZFd3PiefU → jEMyQksXLQ60IvC0f9PYc}/_buildManifest.js +0 -0
- /package/web/.next/standalone/web/.next/static/{nZpzcWd5nqIPZFd3PiefU → jEMyQksXLQ60IvC0f9PYc}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/standalone/web/.next/static/{nZpzcWd5nqIPZFd3PiefU → jEMyQksXLQ60IvC0f9PYc}/_ssgManifest.js +0 -0
- /package/web/.next/standalone/web/.next/static/static/{nZpzcWd5nqIPZFd3PiefU → jEMyQksXLQ60IvC0f9PYc}/_buildManifest.js +0 -0
- /package/web/.next/standalone/web/.next/static/static/{nZpzcWd5nqIPZFd3PiefU → jEMyQksXLQ60IvC0f9PYc}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/standalone/web/.next/static/static/{nZpzcWd5nqIPZFd3PiefU → jEMyQksXLQ60IvC0f9PYc}/_ssgManifest.js +0 -0
- /package/web/.next/static/{nZpzcWd5nqIPZFd3PiefU → jEMyQksXLQ60IvC0f9PYc}/_buildManifest.js +0 -0
- /package/web/.next/static/{nZpzcWd5nqIPZFd3PiefU → jEMyQksXLQ60IvC0f9PYc}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{nZpzcWd5nqIPZFd3PiefU → jEMyQksXLQ60IvC0f9PYc}/_ssgManifest.js +0 -0
|
@@ -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" | "completed" | "active" | "waiting";
|
|
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;
|
|
@@ -814,7 +814,7 @@ declare const terminals: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
814
814
|
tableName: "terminals";
|
|
815
815
|
dataType: "string";
|
|
816
816
|
columnType: "SQLiteText";
|
|
817
|
-
data: "
|
|
817
|
+
data: "error" | "running" | "stopped";
|
|
818
818
|
driverParam: string;
|
|
819
819
|
notNull: true;
|
|
820
820
|
hasDefault: true;
|
|
@@ -15,12 +15,12 @@ interface BashToolOptions {
|
|
|
15
15
|
}
|
|
16
16
|
declare function createBashTool(options: BashToolOptions): ai.Tool<{
|
|
17
17
|
background: boolean;
|
|
18
|
-
id?: string | undefined;
|
|
19
18
|
input?: string | undefined;
|
|
19
|
+
id?: string | undefined;
|
|
20
20
|
command?: string | undefined;
|
|
21
21
|
kill?: boolean | undefined;
|
|
22
22
|
tail?: number | undefined;
|
|
23
|
-
key?: "Enter" | "Escape" | "Up" | "Down" | "Left" | "Right" | "Tab" | "C-c" | "C-d" | "
|
|
23
|
+
key?: "y" | "Enter" | "Escape" | "Up" | "Down" | "Left" | "Right" | "Tab" | "C-c" | "C-d" | "n" | undefined;
|
|
24
24
|
}, {
|
|
25
25
|
success: boolean;
|
|
26
26
|
id: string;
|
|
@@ -66,7 +66,7 @@ declare function createBashTool(options: BashToolOptions): ai.Tool<{
|
|
|
66
66
|
id: string;
|
|
67
67
|
output: string;
|
|
68
68
|
exitCode: number;
|
|
69
|
-
status: "
|
|
69
|
+
status: "error" | "completed" | "running" | "stopped";
|
|
70
70
|
message?: undefined;
|
|
71
71
|
error?: undefined;
|
|
72
72
|
} | {
|
|
@@ -218,8 +218,8 @@ interface SearchToolOptions {
|
|
|
218
218
|
* Progress is streamed back to the UI so users can see exploration happening.
|
|
219
219
|
*/
|
|
220
220
|
declare function createSearchTool(options: SearchToolOptions): ai.Tool<{
|
|
221
|
-
query: string;
|
|
222
221
|
context: string;
|
|
222
|
+
query: string;
|
|
223
223
|
}, {
|
|
224
224
|
success: boolean;
|
|
225
225
|
error: string;
|
package/dist/server/index.js
CHANGED
|
@@ -6841,6 +6841,13 @@ function truncateWriteFileInput(input) {
|
|
|
6841
6841
|
return out;
|
|
6842
6842
|
}
|
|
6843
6843
|
var approvalResolvers = /* @__PURE__ */ new Map();
|
|
6844
|
+
function stripDataUrlPrefix(data) {
|
|
6845
|
+
const commaIdx = data.indexOf(",");
|
|
6846
|
+
if (commaIdx !== -1 && data.startsWith("data:")) {
|
|
6847
|
+
return data.slice(commaIdx + 1);
|
|
6848
|
+
}
|
|
6849
|
+
return data;
|
|
6850
|
+
}
|
|
6844
6851
|
var Agent = class _Agent {
|
|
6845
6852
|
session;
|
|
6846
6853
|
context;
|
|
@@ -6941,8 +6948,7 @@ ${prompt}` });
|
|
|
6941
6948
|
if (attachment.type === "image") {
|
|
6942
6949
|
contentParts.push({
|
|
6943
6950
|
type: "image",
|
|
6944
|
-
image: attachment.data,
|
|
6945
|
-
// base64 data URL or raw base64
|
|
6951
|
+
image: stripDataUrlPrefix(attachment.data),
|
|
6946
6952
|
mediaType: attachment.mediaType,
|
|
6947
6953
|
filename: attachment.filename,
|
|
6948
6954
|
savedPath: attachment.savedPath
|
|
@@ -6950,7 +6956,7 @@ ${prompt}` });
|
|
|
6950
6956
|
} else {
|
|
6951
6957
|
contentParts.push({
|
|
6952
6958
|
type: "file",
|
|
6953
|
-
data: attachment.data,
|
|
6959
|
+
data: stripDataUrlPrefix(attachment.data),
|
|
6954
6960
|
mediaType: attachment.mediaType || "application/octet-stream",
|
|
6955
6961
|
filename: attachment.filename,
|
|
6956
6962
|
savedPath: attachment.savedPath
|
|
@@ -8627,6 +8633,13 @@ async function saveAttachmentToDisk(sessionId, attachment, index) {
|
|
|
8627
8633
|
writeFileSync4(filePath, buffer);
|
|
8628
8634
|
return filePath;
|
|
8629
8635
|
}
|
|
8636
|
+
function stripDataUrlPrefix2(data) {
|
|
8637
|
+
const commaIdx = data.indexOf(",");
|
|
8638
|
+
if (commaIdx !== -1 && data.startsWith("data:")) {
|
|
8639
|
+
return data.slice(commaIdx + 1);
|
|
8640
|
+
}
|
|
8641
|
+
return data;
|
|
8642
|
+
}
|
|
8630
8643
|
function getExtensionFromMediaType(mediaType, type) {
|
|
8631
8644
|
if (!mediaType) {
|
|
8632
8645
|
return type === "image" ? ".png" : ".bin";
|
|
@@ -8718,7 +8731,7 @@ ${prompt}` });
|
|
|
8718
8731
|
if (attachment.type === "image") {
|
|
8719
8732
|
contentParts.push({
|
|
8720
8733
|
type: "image",
|
|
8721
|
-
image: attachment.data,
|
|
8734
|
+
image: stripDataUrlPrefix2(attachment.data),
|
|
8722
8735
|
mediaType: attachment.mediaType,
|
|
8723
8736
|
filename: attachment.filename,
|
|
8724
8737
|
savedPath: attachment.savedPath
|
|
@@ -8726,7 +8739,7 @@ ${prompt}` });
|
|
|
8726
8739
|
} else {
|
|
8727
8740
|
contentParts.push({
|
|
8728
8741
|
type: "file",
|
|
8729
|
-
data: attachment.data,
|
|
8742
|
+
data: stripDataUrlPrefix2(attachment.data),
|
|
8730
8743
|
mediaType: attachment.mediaType || "application/octet-stream",
|
|
8731
8744
|
filename: attachment.filename,
|
|
8732
8745
|
savedPath: attachment.savedPath
|
|
@@ -9013,8 +9026,7 @@ ${prompt}` });
|
|
|
9013
9026
|
if (attachment.type === "image") {
|
|
9014
9027
|
contentParts.push({
|
|
9015
9028
|
type: "image",
|
|
9016
|
-
image: attachment.data,
|
|
9017
|
-
// base64 data URL or raw base64
|
|
9029
|
+
image: stripDataUrlPrefix2(attachment.data),
|
|
9018
9030
|
mediaType: attachment.mediaType,
|
|
9019
9031
|
filename: attachment.filename,
|
|
9020
9032
|
savedPath: attachment.savedPath
|
|
@@ -9022,7 +9034,7 @@ ${prompt}` });
|
|
|
9022
9034
|
} else {
|
|
9023
9035
|
contentParts.push({
|
|
9024
9036
|
type: "file",
|
|
9025
|
-
data: attachment.data,
|
|
9037
|
+
data: stripDataUrlPrefix2(attachment.data),
|
|
9026
9038
|
mediaType: attachment.mediaType || "application/octet-stream",
|
|
9027
9039
|
filename: attachment.filename,
|
|
9028
9040
|
savedPath: attachment.savedPath
|