sparkecoder 0.1.48 → 0.1.50
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 +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/agent/index.js.map +1 -1
- package/dist/cli.js +2 -2
- package/dist/cli.js.map +1 -1
- package/dist/{index-DJ5qNs1Z.d.ts → index-BNI9_SS4.d.ts} +5 -5
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/{search-BOYIUmDp.d.ts → search-D3Wtf7TJ.d.ts} +1 -1
- package/dist/server/index.js +2 -2
- package/dist/server/index.js.map +1 -1
- package/dist/tools/index.d.ts +2 -2
- package/dist/tools/index.js +1 -1
- package/dist/tools/index.js.map +1 -1
- 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/.next/static/{9l0nvP_hXh_bNsaosB1Ho → sELXjdsmK-kTBw9_gJL8G}/_buildManifest.js +0 -0
- /package/web/.next/standalone/web/.next/static/{9l0nvP_hXh_bNsaosB1Ho → sELXjdsmK-kTBw9_gJL8G}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/standalone/web/.next/static/{9l0nvP_hXh_bNsaosB1Ho → sELXjdsmK-kTBw9_gJL8G}/_ssgManifest.js +0 -0
- /package/web/.next/standalone/web/.next/static/static/{9l0nvP_hXh_bNsaosB1Ho → sELXjdsmK-kTBw9_gJL8G}/_buildManifest.js +0 -0
- /package/web/.next/standalone/web/.next/static/static/{9l0nvP_hXh_bNsaosB1Ho → sELXjdsmK-kTBw9_gJL8G}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/standalone/web/.next/static/static/{9l0nvP_hXh_bNsaosB1Ho → sELXjdsmK-kTBw9_gJL8G}/_ssgManifest.js +0 -0
- /package/web/.next/static/{9l0nvP_hXh_bNsaosB1Ho → sELXjdsmK-kTBw9_gJL8G}/_buildManifest.js +0 -0
- /package/web/.next/static/{9l0nvP_hXh_bNsaosB1Ho → sELXjdsmK-kTBw9_gJL8G}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{9l0nvP_hXh_bNsaosB1Ho → sELXjdsmK-kTBw9_gJL8G}/_ssgManifest.js +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ModelMessage, streamText } from 'ai';
|
|
2
2
|
import { S as Session, b as ToolExecution } from './schema-NcQknWCg.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-D3Wtf7TJ.js';
|
|
5
5
|
|
|
6
6
|
declare const ToolApprovalConfigSchema: z.ZodObject<{
|
|
7
7
|
bash: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -131,6 +131,7 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
131
131
|
exclude?: string[] | undefined;
|
|
132
132
|
}>>;
|
|
133
133
|
}, "strip", z.ZodTypeAny, {
|
|
134
|
+
defaultModel: string;
|
|
134
135
|
toolApprovals: {
|
|
135
136
|
bash: boolean;
|
|
136
137
|
write_file: boolean;
|
|
@@ -138,7 +139,6 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
138
139
|
load_skill: boolean;
|
|
139
140
|
todo: boolean;
|
|
140
141
|
};
|
|
141
|
-
defaultModel: string;
|
|
142
142
|
skills: {
|
|
143
143
|
directory: string;
|
|
144
144
|
additionalDirectories: string[];
|
|
@@ -154,8 +154,8 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
154
154
|
publicUrl?: string | undefined;
|
|
155
155
|
};
|
|
156
156
|
databasePath: string;
|
|
157
|
-
approvalWebhook?: string | undefined;
|
|
158
157
|
workingDirectory?: string | undefined;
|
|
158
|
+
approvalWebhook?: string | undefined;
|
|
159
159
|
remoteServer?: {
|
|
160
160
|
url?: string | undefined;
|
|
161
161
|
authKey?: string | undefined;
|
|
@@ -169,6 +169,8 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
169
169
|
namespace?: string | undefined;
|
|
170
170
|
} | undefined;
|
|
171
171
|
}, {
|
|
172
|
+
defaultModel?: string | undefined;
|
|
173
|
+
workingDirectory?: string | undefined;
|
|
172
174
|
toolApprovals?: {
|
|
173
175
|
bash?: boolean | undefined;
|
|
174
176
|
write_file?: boolean | undefined;
|
|
@@ -177,8 +179,6 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
177
179
|
todo?: boolean | undefined;
|
|
178
180
|
} | undefined;
|
|
179
181
|
approvalWebhook?: string | undefined;
|
|
180
|
-
defaultModel?: string | undefined;
|
|
181
|
-
workingDirectory?: string | undefined;
|
|
182
182
|
skills?: {
|
|
183
183
|
directory?: string | undefined;
|
|
184
184
|
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-BNI9_SS4.js';
|
|
2
|
+
export { A as Agent, a as AgentOptions, b as AgentRunOptions, c as AgentStreamResult, S as SparkcoderConfig, T as ToolApprovalConfig } from './index-BNI9_SS4.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
5
|
import { F as FileBackup, C as Checkpoint } from './schema-NcQknWCg.js';
|
|
6
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-NcQknWCg.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-D3Wtf7TJ.js';
|
|
9
9
|
import 'ai';
|
|
10
10
|
import 'zod';
|
|
11
11
|
import 'hono/types';
|
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ var init_types = __esm({
|
|
|
36
36
|
maxContextChars: z.number().optional().default(2e5)
|
|
37
37
|
});
|
|
38
38
|
VectorGatewayConfigSchema = z.object({
|
|
39
|
-
// Redis URL for Vector Gateway (or use
|
|
39
|
+
// Redis cluster nodes URL for Vector Gateway (or use REDIS_CLUSTER_NODES env var)
|
|
40
40
|
redisUrl: z.string().optional(),
|
|
41
41
|
// HTTP URL for database operations (or use VECTOR_HTTP_URL env var)
|
|
42
42
|
httpUrl: z.string().optional(),
|
|
@@ -968,7 +968,7 @@ function loadConfig(configPath, workingDirectory) {
|
|
|
968
968
|
resolvedDatabasePath = join(appDataDir, "sparkecoder.db");
|
|
969
969
|
}
|
|
970
970
|
const resolvedVectorGateway = {
|
|
971
|
-
redisUrl: process.env.
|
|
971
|
+
redisUrl: process.env.REDIS_CLUSTER_NODES || config.vectorGateway?.redisUrl || null,
|
|
972
972
|
httpUrl: process.env.VECTOR_HTTP_URL || config.vectorGateway?.httpUrl || null,
|
|
973
973
|
embeddingModel: process.env.VECTOR_EMBEDDING_MODEL || config.vectorGateway?.embeddingModel || "gemini-embedding-001",
|
|
974
974
|
namespace: config.vectorGateway?.namespace || null,
|