sparkecoder 0.1.18 → 0.1.19
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/{bash-CGAqW7HR.d.ts → bash-C43A-o5X.d.ts} +4 -4
- package/dist/cli.js +9 -1
- package/dist/cli.js.map +1 -1
- package/dist/db/index.d.ts +1 -1
- package/dist/{index-BzedNBK-.d.ts → index-H2ecHywx.d.ts} +6 -6
- package/dist/index.d.ts +5 -5
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/dist/{schema-CkrIadxa.d.ts → schema-J6qYlHtl.d.ts} +3 -3
- package/dist/server/index.js +9 -1
- 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/(main)/page_client-reference-manifest.js +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 +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 +1 -1
- package/web/.next/standalone/web/.next/server/chunks/ssr/[root-of-the-server]__be5e2967._.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/2110d26bc24ed542.js +1 -0
- package/web/.next/standalone/web/.next/static/static/chunks/2110d26bc24ed542.js +1 -0
- package/web/.next/standalone/web/src/components/api-init.tsx +4 -2
- package/web/.next/standalone/web/src/lib/config.ts +16 -35
- package/web/.next/static/chunks/2110d26bc24ed542.js +1 -0
- package/web/.next/standalone/web/.next/static/chunks/25a97bfee12ea1f6.js +0 -1
- package/web/.next/standalone/web/.next/static/static/chunks/25a97bfee12ea1f6.js +0 -1
- package/web/.next/static/chunks/25a97bfee12ea1f6.js +0 -1
- /package/web/.next/standalone/web/.next/static/{omR5ZCfnSKddq7WtwIK6Y → OYBQUnob6zQJhwpd-v7LQ}/_buildManifest.js +0 -0
- /package/web/.next/standalone/web/.next/static/{omR5ZCfnSKddq7WtwIK6Y → OYBQUnob6zQJhwpd-v7LQ}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/standalone/web/.next/static/{omR5ZCfnSKddq7WtwIK6Y → OYBQUnob6zQJhwpd-v7LQ}/_ssgManifest.js +0 -0
- /package/web/.next/standalone/web/.next/static/static/{omR5ZCfnSKddq7WtwIK6Y → OYBQUnob6zQJhwpd-v7LQ}/_buildManifest.js +0 -0
- /package/web/.next/standalone/web/.next/static/static/{omR5ZCfnSKddq7WtwIK6Y → OYBQUnob6zQJhwpd-v7LQ}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/standalone/web/.next/static/static/{omR5ZCfnSKddq7WtwIK6Y → OYBQUnob6zQJhwpd-v7LQ}/_ssgManifest.js +0 -0
- /package/web/.next/static/{omR5ZCfnSKddq7WtwIK6Y → OYBQUnob6zQJhwpd-v7LQ}/_buildManifest.js +0 -0
- /package/web/.next/static/{omR5ZCfnSKddq7WtwIK6Y → OYBQUnob6zQJhwpd-v7LQ}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{omR5ZCfnSKddq7WtwIK6Y → OYBQUnob6zQJhwpd-v7LQ}/_ssgManifest.js +0 -0
package/dist/db/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as drizzle_orm_better_sqlite3 from 'drizzle-orm/better-sqlite3';
|
|
2
2
|
import Database from 'better-sqlite3';
|
|
3
|
-
import { C as Checkpoint, F as FileBackup, s as schema, M as ModelMessage, a as Message, N as NewSession, S as Session, b as SessionConfig, L as LoadedSkill, c as NewTodoItem, T as TodoItem, d as NewToolExecution, e as ToolExecution, A as ActiveStream, f as NewTerminal, g as Terminal } from '../schema-
|
|
3
|
+
import { C as Checkpoint, F as FileBackup, s as schema, M as ModelMessage, a as Message, N as NewSession, S as Session, b as SessionConfig, L as LoadedSkill, c as NewTodoItem, T as TodoItem, d as NewToolExecution, e as ToolExecution, A as ActiveStream, f as NewTerminal, g as Terminal } from '../schema-J6qYlHtl.js';
|
|
4
4
|
import 'drizzle-orm/sqlite-core';
|
|
5
5
|
|
|
6
6
|
declare function initDatabase(dbPath: string): drizzle_orm_better_sqlite3.BetterSQLite3Database<typeof schema> & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ModelMessage, streamText } from 'ai';
|
|
2
|
-
import { S as Session, e as ToolExecution } from './schema-
|
|
2
|
+
import { S as Session, e as ToolExecution } from './schema-J6qYlHtl.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { B as BashToolProgress } from './bash-
|
|
4
|
+
import { B as BashToolProgress } from './bash-C43A-o5X.js';
|
|
5
5
|
|
|
6
6
|
declare const ToolApprovalConfigSchema: z.ZodObject<{
|
|
7
7
|
bash: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -99,7 +99,6 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
99
99
|
}>>;
|
|
100
100
|
databasePath: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
101
101
|
}, "strip", z.ZodTypeAny, {
|
|
102
|
-
defaultModel: string;
|
|
103
102
|
toolApprovals: {
|
|
104
103
|
bash: boolean;
|
|
105
104
|
write_file: boolean;
|
|
@@ -107,6 +106,7 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
107
106
|
load_skill: boolean;
|
|
108
107
|
todo: boolean;
|
|
109
108
|
};
|
|
109
|
+
defaultModel: string;
|
|
110
110
|
skills: {
|
|
111
111
|
directory: string;
|
|
112
112
|
additionalDirectories: string[];
|
|
@@ -122,11 +122,9 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
122
122
|
publicUrl?: string | undefined;
|
|
123
123
|
};
|
|
124
124
|
databasePath: string;
|
|
125
|
-
workingDirectory?: string | undefined;
|
|
126
125
|
approvalWebhook?: string | undefined;
|
|
127
|
-
}, {
|
|
128
126
|
workingDirectory?: string | undefined;
|
|
129
|
-
|
|
127
|
+
}, {
|
|
130
128
|
toolApprovals?: {
|
|
131
129
|
bash?: boolean | undefined;
|
|
132
130
|
write_file?: boolean | undefined;
|
|
@@ -135,6 +133,8 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
135
133
|
todo?: boolean | undefined;
|
|
136
134
|
} | undefined;
|
|
137
135
|
approvalWebhook?: string | undefined;
|
|
136
|
+
workingDirectory?: string | undefined;
|
|
137
|
+
defaultModel?: string | undefined;
|
|
138
138
|
skills?: {
|
|
139
139
|
directory?: string | undefined;
|
|
140
140
|
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-H2ecHywx.js';
|
|
2
|
+
export { A as Agent, a as AgentOptions, b as AgentRunOptions, c as AgentStreamResult, S as SparkcoderConfig, T as ToolApprovalConfig } from './index-H2ecHywx.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, b as SessionConfig, g as Terminal, T as TodoItem, e as ToolExecution } from './schema-
|
|
5
|
+
import { F as FileBackup, C as Checkpoint } from './schema-J6qYlHtl.js';
|
|
6
|
+
export { a as Message, M as ModelMessage, S as Session, b as SessionConfig, g as Terminal, T as TodoItem, e as ToolExecution } from './schema-J6qYlHtl.js';
|
|
7
7
|
export { createLoadSkillTool, createReadFileTool, createTodoTool, createTools, createWriteFileTool } from './tools/index.js';
|
|
8
|
-
export { c as createBashTool } from './bash-
|
|
8
|
+
export { c as createBashTool } from './bash-C43A-o5X.js';
|
|
9
9
|
import 'ai';
|
|
10
10
|
import 'zod';
|
|
11
11
|
import 'hono/types';
|
package/dist/index.js
CHANGED
|
@@ -5320,7 +5320,15 @@ function stopWebUI() {
|
|
|
5320
5320
|
}
|
|
5321
5321
|
async function createApp(options = {}) {
|
|
5322
5322
|
const app = new Hono5();
|
|
5323
|
-
app.use("*", cors(
|
|
5323
|
+
app.use("*", cors({
|
|
5324
|
+
origin: "*",
|
|
5325
|
+
// Allow all origins
|
|
5326
|
+
allowMethods: ["GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"],
|
|
5327
|
+
allowHeaders: ["Content-Type", "Authorization", "X-Requested-With"],
|
|
5328
|
+
exposeHeaders: ["X-Stream-Id", "x-stream-id"],
|
|
5329
|
+
maxAge: 86400
|
|
5330
|
+
// 24 hours
|
|
5331
|
+
}));
|
|
5324
5332
|
if (!options.quiet) {
|
|
5325
5333
|
app.use("*", logger());
|
|
5326
5334
|
}
|