sparkecoder 0.1.130 → 0.1.132
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/README.md +3 -3
- package/dist/agent/index.d.ts +3 -3
- package/dist/agent/index.js +1480 -638
- package/dist/agent/index.js.map +1 -1
- package/dist/cli.js +2281 -808
- package/dist/cli.js.map +1 -1
- package/dist/db/index.d.ts +2 -2
- package/dist/db/index.js.map +1 -1
- package/dist/{index-Bcz0aCAR.d.ts → index-BM99kjgq.d.ts} +177 -103
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2215 -780
- package/dist/index.js.map +1 -1
- package/dist/{schema-BWbWmfDQ.d.ts → schema-Dz-wABVY.d.ts} +27 -4
- package/dist/{search-DOzC4ojH.d.ts → search-CVVfuBPZ.d.ts} +4 -4
- package/dist/server/index.js +2215 -780
- package/dist/server/index.js.map +1 -1
- package/dist/skills/default/build-context-and-solve-issue.md +74 -0
- package/dist/skills/default/doublecheck.md +95 -0
- package/dist/tools/index.d.ts +3 -3
- package/dist/tools/index.js +11 -2
- package/dist/tools/index.js.map +1 -1
- package/package.json +1 -1
- package/src/skills/default/build-context-and-solve-issue.md +74 -0
- package/src/skills/default/doublecheck.md +95 -0
- 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)/agents/page/next-font-manifest.json +1 -1
- package/web/.next/standalone/web/.next/server/app/(main)/agents/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/web/.next/server/app/(main)/page/next-font-manifest.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/next-font-manifest.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/(main)/settings/page/next-font-manifest.json +1 -1
- package/web/.next/standalone/web/.next/server/app/(main)/settings/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/next-font-manifest.json +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 +3 -3
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_full.segment.rsc +3 -3
- 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 +3 -3
- 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/agents.html +1 -1
- package/web/.next/standalone/web/.next/server/app/agents.rsc +6 -6
- package/web/.next/standalone/web/.next/server/app/agents.segments/!KG1haW4p/agents/__PAGE__.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/agents.segments/!KG1haW4p/agents.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/agents.segments/!KG1haW4p.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/agents.segments/_full.segment.rsc +6 -6
- package/web/.next/standalone/web/.next/server/app/agents.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/agents.segments/_index.segment.rsc +3 -3
- package/web/.next/standalone/web/.next/server/app/agents.segments/_tree.segment.rsc +3 -3
- package/web/.next/standalone/web/.next/server/app/api/config/route.js.nft.json +1 -1
- package/web/.next/standalone/web/.next/server/app/api/health/route.js.nft.json +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/installation/page/next-font-manifest.json +1 -1
- 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 +4 -4
- package/web/.next/standalone/web/.next/server/app/docs/installation.rsc +6 -6
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_full.segment.rsc +6 -6
- 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 +3 -3
- 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 +20 -21
- 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 +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/page/next-font-manifest.json +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/next-font-manifest.json +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 +4 -4
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_full.segment.rsc +4 -4
- 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 +3 -3
- 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 +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/tools/page/next-font-manifest.json +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 +4 -4
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_full.segment.rsc +4 -4
- 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 +3 -3
- 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 +2 -2
- 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 +2 -2
- package/web/.next/standalone/web/.next/server/app/docs.html +3 -3
- package/web/.next/standalone/web/.next/server/app/docs.rsc +5 -5
- package/web/.next/standalone/web/.next/server/app/docs.segments/_full.segment.rsc +5 -5
- 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 +3 -3
- 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 +3 -3
- package/web/.next/standalone/web/.next/server/app/docs.segments/docs.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/index.html +1 -1
- package/web/.next/standalone/web/.next/server/app/index.rsc +6 -6
- 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 +6 -6
- 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 +3 -3
- package/web/.next/standalone/web/.next/server/app/index.segments/_tree.segment.rsc +3 -3
- package/web/.next/standalone/web/.next/server/app/settings.html +1 -1
- package/web/.next/standalone/web/.next/server/app/settings.rsc +6 -6
- package/web/.next/standalone/web/.next/server/app/settings.segments/!KG1haW4p/settings/__PAGE__.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/settings.segments/!KG1haW4p/settings.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/settings.segments/!KG1haW4p.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/settings.segments/_full.segment.rsc +6 -6
- package/web/.next/standalone/web/.next/server/app/settings.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/settings.segments/_index.segment.rsc +3 -3
- package/web/.next/standalone/web/.next/server/app/settings.segments/_tree.segment.rsc +3 -3
- package/web/.next/standalone/web/.next/server/chunks/[root-of-the-server]__36edac7c._.js +1 -1
- package/web/.next/standalone/web/.next/server/chunks/ssr/[root-of-the-server]__397fadd4._.js +1 -1
- package/web/.next/standalone/web/.next/server/chunks/ssr/[root-of-the-server]__70cecda8._.js +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/chunks/ssr/web_src_app_(main)_layout_tsx_453f6492._.js +1 -1
- package/web/.next/standalone/web/.next/server/chunks/ssr/web_src_app_(main)_page_tsx_5ac4794b._.js +1 -1
- package/web/.next/standalone/web/.next/server/chunks/ssr/web_src_app_(main)_settings_page_tsx_eb320e07._.js +2 -2
- package/web/.next/standalone/web/.next/server/next-font-manifest.js +1 -1
- package/web/.next/standalone/web/.next/server/next-font-manifest.json +9 -9
- 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/185f69f6478ba713.js +1 -0
- package/web/.next/standalone/web/.next/static/chunks/20ca4e35e9bb3e94.js +3 -0
- package/web/.next/standalone/web/.next/static/chunks/{a7d5d0791c8c6223.css → 34d933785a17edf3.css} +1 -1
- package/web/.next/standalone/web/.next/static/chunks/7549a5b7c7f6786e.js +1 -0
- package/web/.next/standalone/web/.next/static/{static/chunks/c5dd884b71007965.js → chunks/a839c83078c56476.js} +1 -1
- package/web/.next/standalone/web/.next/static/media/4fa387ec64143e14-s.3b336396.woff2 +0 -0
- package/web/.next/standalone/web/.next/static/media/5ce348bf30bf5439-s.56c1f21e.woff2 +0 -0
- package/web/.next/standalone/web/.next/static/media/6306c77e7c8268e4-s.e3369375.woff2 +0 -0
- package/web/.next/standalone/web/.next/static/media/797e433ab948586e-s.p.29207c2f.woff2 +0 -0
- package/web/.next/standalone/web/.next/static/media/7d817b4c03b0c5f1-s.a40b9a8b.woff2 +0 -0
- package/web/.next/standalone/web/.next/static/media/bbc41e54d2fcbd21-s.fe42ddf4.woff2 +0 -0
- package/web/.next/standalone/web/.next/static/static/chunks/185f69f6478ba713.js +1 -0
- package/web/.next/standalone/web/.next/static/static/chunks/20ca4e35e9bb3e94.js +3 -0
- package/web/.next/standalone/web/.next/static/static/chunks/{a7d5d0791c8c6223.css → 34d933785a17edf3.css} +1 -1
- package/web/.next/standalone/web/.next/static/static/chunks/7549a5b7c7f6786e.js +1 -0
- package/web/.next/{static/chunks/c5dd884b71007965.js → standalone/web/.next/static/static/chunks/a839c83078c56476.js} +1 -1
- package/web/.next/standalone/web/.next/static/static/media/4fa387ec64143e14-s.3b336396.woff2 +0 -0
- package/web/.next/standalone/web/.next/static/static/media/5ce348bf30bf5439-s.56c1f21e.woff2 +0 -0
- package/web/.next/standalone/web/.next/static/static/media/6306c77e7c8268e4-s.e3369375.woff2 +0 -0
- package/web/.next/standalone/web/.next/static/static/media/797e433ab948586e-s.p.29207c2f.woff2 +0 -0
- package/web/.next/standalone/web/.next/static/static/media/7d817b4c03b0c5f1-s.a40b9a8b.woff2 +0 -0
- package/web/.next/standalone/web/.next/static/static/media/bbc41e54d2fcbd21-s.fe42ddf4.woff2 +0 -0
- package/web/.next/standalone/web/package-lock.json +21 -21
- package/web/.next/standalone/web/runtime-config.json +2 -1
- package/web/.next/standalone/web/src/app/(main)/page.tsx +2 -2
- package/web/.next/standalone/web/src/app/(main)/settings/page.tsx +111 -11
- package/web/.next/standalone/web/src/app/__sfapi/[...path]/route.ts +96 -0
- package/web/.next/standalone/web/src/app/api/config/route.ts +5 -12
- package/web/.next/standalone/web/src/app/docs/installation/page.mdx +2 -2
- package/web/.next/standalone/web/src/app/docs/page.mdx +1 -1
- package/web/.next/standalone/web/src/components/sessions-sidebar.tsx +1 -1
- package/web/.next/standalone/web/src/lib/config.ts +26 -16
- package/web/.next/static/chunks/185f69f6478ba713.js +1 -0
- package/web/.next/static/chunks/20ca4e35e9bb3e94.js +3 -0
- package/web/.next/static/chunks/{a7d5d0791c8c6223.css → 34d933785a17edf3.css} +1 -1
- package/web/.next/static/chunks/7549a5b7c7f6786e.js +1 -0
- package/web/.next/{standalone/web/.next/static/chunks/c5dd884b71007965.js → static/chunks/a839c83078c56476.js} +1 -1
- package/web/.next/static/media/4fa387ec64143e14-s.3b336396.woff2 +0 -0
- package/web/.next/static/media/5ce348bf30bf5439-s.56c1f21e.woff2 +0 -0
- package/web/.next/static/media/6306c77e7c8268e4-s.e3369375.woff2 +0 -0
- package/web/.next/static/media/797e433ab948586e-s.p.29207c2f.woff2 +0 -0
- package/web/.next/static/media/7d817b4c03b0c5f1-s.a40b9a8b.woff2 +0 -0
- package/web/.next/static/media/bbc41e54d2fcbd21-s.fe42ddf4.woff2 +0 -0
- package/web/.next/standalone/web/.next/static/chunks/9b88f148788e4504.js +0 -3
- package/web/.next/standalone/web/.next/static/chunks/b203b9aa975135d3.js +0 -1
- package/web/.next/standalone/web/.next/static/chunks/ea89ca7892d8c557.js +0 -1
- package/web/.next/standalone/web/.next/static/media/4fa387ec64143e14-s.c36e1862.woff2 +0 -0
- package/web/.next/standalone/web/.next/static/media/5ce348bf30bf5439-s.ebceb24d.woff2 +0 -0
- package/web/.next/standalone/web/.next/static/media/6306c77e7c8268e4-s.ff4a2084.woff2 +0 -0
- package/web/.next/standalone/web/.next/static/media/797e433ab948586e-s.p.479bea2b.woff2 +0 -0
- package/web/.next/standalone/web/.next/static/media/7d817b4c03b0c5f1-s.f377b9c4.woff2 +0 -0
- package/web/.next/standalone/web/.next/static/media/bbc41e54d2fcbd21-s.d1207556.woff2 +0 -0
- package/web/.next/standalone/web/.next/static/static/chunks/9b88f148788e4504.js +0 -3
- package/web/.next/standalone/web/.next/static/static/chunks/b203b9aa975135d3.js +0 -1
- package/web/.next/standalone/web/.next/static/static/chunks/ea89ca7892d8c557.js +0 -1
- package/web/.next/standalone/web/.next/static/static/media/4fa387ec64143e14-s.c36e1862.woff2 +0 -0
- package/web/.next/standalone/web/.next/static/static/media/5ce348bf30bf5439-s.ebceb24d.woff2 +0 -0
- package/web/.next/standalone/web/.next/static/static/media/6306c77e7c8268e4-s.ff4a2084.woff2 +0 -0
- package/web/.next/standalone/web/.next/static/static/media/797e433ab948586e-s.p.479bea2b.woff2 +0 -0
- package/web/.next/standalone/web/.next/static/static/media/7d817b4c03b0c5f1-s.f377b9c4.woff2 +0 -0
- package/web/.next/standalone/web/.next/static/static/media/bbc41e54d2fcbd21-s.d1207556.woff2 +0 -0
- package/web/.next/static/chunks/9b88f148788e4504.js +0 -3
- package/web/.next/static/chunks/b203b9aa975135d3.js +0 -1
- package/web/.next/static/chunks/ea89ca7892d8c557.js +0 -1
- package/web/.next/static/media/4fa387ec64143e14-s.c36e1862.woff2 +0 -0
- package/web/.next/static/media/5ce348bf30bf5439-s.ebceb24d.woff2 +0 -0
- package/web/.next/static/media/6306c77e7c8268e4-s.ff4a2084.woff2 +0 -0
- package/web/.next/static/media/797e433ab948586e-s.p.479bea2b.woff2 +0 -0
- package/web/.next/static/media/7d817b4c03b0c5f1-s.f377b9c4.woff2 +0 -0
- package/web/.next/static/media/bbc41e54d2fcbd21-s.d1207556.woff2 +0 -0
- /package/web/.next/standalone/web/.next/static/{2mUQ8I-TCRE5uOBFhIWag → WaAcu3X3K00MDvfn1ik7H}/_buildManifest.js +0 -0
- /package/web/.next/standalone/web/.next/static/{2mUQ8I-TCRE5uOBFhIWag → WaAcu3X3K00MDvfn1ik7H}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/standalone/web/.next/static/{2mUQ8I-TCRE5uOBFhIWag → WaAcu3X3K00MDvfn1ik7H}/_ssgManifest.js +0 -0
- /package/web/.next/standalone/web/.next/static/static/{2mUQ8I-TCRE5uOBFhIWag → WaAcu3X3K00MDvfn1ik7H}/_buildManifest.js +0 -0
- /package/web/.next/standalone/web/.next/static/static/{2mUQ8I-TCRE5uOBFhIWag → WaAcu3X3K00MDvfn1ik7H}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/standalone/web/.next/static/static/{2mUQ8I-TCRE5uOBFhIWag → WaAcu3X3K00MDvfn1ik7H}/_ssgManifest.js +0 -0
- /package/web/.next/static/{2mUQ8I-TCRE5uOBFhIWag → WaAcu3X3K00MDvfn1ik7H}/_buildManifest.js +0 -0
- /package/web/.next/static/{2mUQ8I-TCRE5uOBFhIWag → WaAcu3X3K00MDvfn1ik7H}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{2mUQ8I-TCRE5uOBFhIWag → WaAcu3X3K00MDvfn1ik7H}/_ssgManifest.js +0 -0
|
@@ -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-Dz-wABVY.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-CVVfuBPZ.js';
|
|
5
5
|
|
|
6
6
|
declare const ToolApprovalConfigSchema: z.ZodObject<{
|
|
7
7
|
bash: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -22,6 +22,7 @@ declare const ToolApprovalConfigSchema: z.ZodObject<{
|
|
|
22
22
|
load_skill?: boolean | undefined;
|
|
23
23
|
todo?: boolean | undefined;
|
|
24
24
|
}>;
|
|
25
|
+
type SkillLoadType = 'always' | 'on_demand' | 'glob_matched';
|
|
25
26
|
declare const SessionConfigSchema: z.ZodObject<{
|
|
26
27
|
toolApprovals: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
27
28
|
approvalWebhook: z.ZodOptional<z.ZodString>;
|
|
@@ -38,25 +39,25 @@ declare const SessionConfigSchema: z.ZodObject<{
|
|
|
38
39
|
iterations: z.ZodOptional<z.ZodNumber>;
|
|
39
40
|
parentTaskId: z.ZodOptional<z.ZodString>;
|
|
40
41
|
}, "strip", z.ZodTypeAny, {
|
|
41
|
-
status: "
|
|
42
|
+
status: "running" | "completed" | "failed";
|
|
42
43
|
enabled: boolean;
|
|
43
44
|
outputSchema: Record<string, unknown>;
|
|
44
|
-
error?: string | undefined;
|
|
45
|
-
maxIterations?: number | undefined;
|
|
46
45
|
webhookUrl?: string | undefined;
|
|
47
|
-
|
|
46
|
+
maxIterations?: number | undefined;
|
|
48
47
|
result?: unknown;
|
|
48
|
+
error?: string | undefined;
|
|
49
49
|
iterations?: number | undefined;
|
|
50
|
+
parentTaskId?: string | undefined;
|
|
50
51
|
}, {
|
|
51
|
-
status: "
|
|
52
|
+
status: "running" | "completed" | "failed";
|
|
52
53
|
enabled: boolean;
|
|
53
54
|
outputSchema: Record<string, unknown>;
|
|
54
|
-
error?: string | undefined;
|
|
55
|
-
maxIterations?: number | undefined;
|
|
56
55
|
webhookUrl?: string | undefined;
|
|
57
|
-
|
|
56
|
+
maxIterations?: number | undefined;
|
|
58
57
|
result?: unknown;
|
|
58
|
+
error?: string | undefined;
|
|
59
59
|
iterations?: number | undefined;
|
|
60
|
+
parentTaskId?: string | undefined;
|
|
60
61
|
}>>;
|
|
61
62
|
role: z.ZodOptional<z.ZodEnum<["orchestrator", "worker", "chat"]>>;
|
|
62
63
|
personality: z.ZodOptional<z.ZodString>;
|
|
@@ -84,20 +85,20 @@ declare const SessionConfigSchema: z.ZodObject<{
|
|
|
84
85
|
lastFiredAt: z.ZodOptional<z.ZodString>;
|
|
85
86
|
createdAt: z.ZodString;
|
|
86
87
|
}, "strip", z.ZodTypeAny, {
|
|
88
|
+
enabled: boolean;
|
|
87
89
|
id: string;
|
|
88
90
|
name: string;
|
|
89
|
-
enabled: boolean;
|
|
90
|
-
createdAt: string;
|
|
91
|
-
prompt: string;
|
|
92
91
|
cron: string;
|
|
92
|
+
prompt: string;
|
|
93
|
+
createdAt: string;
|
|
93
94
|
replyChannel?: string | undefined;
|
|
94
95
|
lastFiredAt?: string | undefined;
|
|
95
96
|
}, {
|
|
96
97
|
id: string;
|
|
97
98
|
name: string;
|
|
98
|
-
createdAt: string;
|
|
99
|
-
prompt: string;
|
|
100
99
|
cron: string;
|
|
100
|
+
prompt: string;
|
|
101
|
+
createdAt: string;
|
|
101
102
|
enabled?: boolean | undefined;
|
|
102
103
|
replyChannel?: string | undefined;
|
|
103
104
|
lastFiredAt?: string | undefined;
|
|
@@ -112,19 +113,19 @@ declare const SessionConfigSchema: z.ZodObject<{
|
|
|
112
113
|
lastHitAt: z.ZodOptional<z.ZodString>;
|
|
113
114
|
createdAt: z.ZodString;
|
|
114
115
|
}, "strip", z.ZodTypeAny, {
|
|
115
|
-
token: string;
|
|
116
116
|
id: string;
|
|
117
117
|
name: string;
|
|
118
118
|
createdAt: string;
|
|
119
|
+
token: string;
|
|
119
120
|
wake: "now" | "next";
|
|
120
121
|
hitCount: number;
|
|
121
122
|
template?: string | undefined;
|
|
122
123
|
lastHitAt?: string | undefined;
|
|
123
124
|
}, {
|
|
124
|
-
token: string;
|
|
125
125
|
id: string;
|
|
126
126
|
name: string;
|
|
127
127
|
createdAt: string;
|
|
128
|
+
token: string;
|
|
128
129
|
wake?: "now" | "next" | undefined;
|
|
129
130
|
template?: string | undefined;
|
|
130
131
|
hitCount?: number | undefined;
|
|
@@ -134,90 +135,90 @@ declare const SessionConfigSchema: z.ZodObject<{
|
|
|
134
135
|
maxContextChars: number;
|
|
135
136
|
toolApprovals?: Record<string, boolean> | undefined;
|
|
136
137
|
approvalWebhook?: string | undefined;
|
|
137
|
-
|
|
138
|
-
token: string;
|
|
139
|
-
id: string;
|
|
140
|
-
name: string;
|
|
141
|
-
createdAt: string;
|
|
142
|
-
wake: "now" | "next";
|
|
143
|
-
hitCount: number;
|
|
144
|
-
template?: string | undefined;
|
|
145
|
-
lastHitAt?: string | undefined;
|
|
146
|
-
}[] | undefined;
|
|
147
|
-
slack?: {
|
|
148
|
-
channel?: string | undefined;
|
|
149
|
-
threadTs?: string | undefined;
|
|
150
|
-
teamId?: string | undefined;
|
|
151
|
-
} | undefined;
|
|
138
|
+
skillsDirectory?: string | undefined;
|
|
152
139
|
task?: {
|
|
153
|
-
status: "
|
|
140
|
+
status: "running" | "completed" | "failed";
|
|
154
141
|
enabled: boolean;
|
|
155
142
|
outputSchema: Record<string, unknown>;
|
|
156
|
-
error?: string | undefined;
|
|
157
|
-
maxIterations?: number | undefined;
|
|
158
143
|
webhookUrl?: string | undefined;
|
|
159
|
-
|
|
144
|
+
maxIterations?: number | undefined;
|
|
160
145
|
result?: unknown;
|
|
146
|
+
error?: string | undefined;
|
|
161
147
|
iterations?: number | undefined;
|
|
148
|
+
parentTaskId?: string | undefined;
|
|
162
149
|
} | undefined;
|
|
163
|
-
skillsDirectory?: string | undefined;
|
|
164
150
|
role?: "orchestrator" | "worker" | "chat" | undefined;
|
|
165
151
|
personality?: string | undefined;
|
|
166
152
|
orchestratorSessionId?: string | undefined;
|
|
153
|
+
slack?: {
|
|
154
|
+
channel?: string | undefined;
|
|
155
|
+
threadTs?: string | undefined;
|
|
156
|
+
teamId?: string | undefined;
|
|
157
|
+
} | undefined;
|
|
167
158
|
schedules?: {
|
|
159
|
+
enabled: boolean;
|
|
168
160
|
id: string;
|
|
169
161
|
name: string;
|
|
170
|
-
enabled: boolean;
|
|
171
|
-
createdAt: string;
|
|
172
|
-
prompt: string;
|
|
173
162
|
cron: string;
|
|
163
|
+
prompt: string;
|
|
164
|
+
createdAt: string;
|
|
174
165
|
replyChannel?: string | undefined;
|
|
175
166
|
lastFiredAt?: string | undefined;
|
|
176
167
|
}[] | undefined;
|
|
177
|
-
}, {
|
|
178
|
-
toolApprovals?: Record<string, boolean> | undefined;
|
|
179
|
-
approvalWebhook?: string | undefined;
|
|
180
168
|
webhooks?: {
|
|
181
|
-
token: string;
|
|
182
169
|
id: string;
|
|
183
170
|
name: string;
|
|
184
171
|
createdAt: string;
|
|
185
|
-
|
|
172
|
+
token: string;
|
|
173
|
+
wake: "now" | "next";
|
|
174
|
+
hitCount: number;
|
|
186
175
|
template?: string | undefined;
|
|
187
|
-
hitCount?: number | undefined;
|
|
188
176
|
lastHitAt?: string | undefined;
|
|
189
177
|
}[] | undefined;
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
178
|
+
}, {
|
|
179
|
+
toolApprovals?: Record<string, boolean> | undefined;
|
|
180
|
+
approvalWebhook?: string | undefined;
|
|
181
|
+
skillsDirectory?: string | undefined;
|
|
182
|
+
maxContextChars?: number | undefined;
|
|
195
183
|
task?: {
|
|
196
|
-
status: "
|
|
184
|
+
status: "running" | "completed" | "failed";
|
|
197
185
|
enabled: boolean;
|
|
198
186
|
outputSchema: Record<string, unknown>;
|
|
199
|
-
error?: string | undefined;
|
|
200
|
-
maxIterations?: number | undefined;
|
|
201
187
|
webhookUrl?: string | undefined;
|
|
202
|
-
|
|
188
|
+
maxIterations?: number | undefined;
|
|
203
189
|
result?: unknown;
|
|
190
|
+
error?: string | undefined;
|
|
204
191
|
iterations?: number | undefined;
|
|
192
|
+
parentTaskId?: string | undefined;
|
|
205
193
|
} | undefined;
|
|
206
|
-
skillsDirectory?: string | undefined;
|
|
207
|
-
maxContextChars?: number | undefined;
|
|
208
194
|
role?: "orchestrator" | "worker" | "chat" | undefined;
|
|
209
195
|
personality?: string | undefined;
|
|
210
196
|
orchestratorSessionId?: string | undefined;
|
|
197
|
+
slack?: {
|
|
198
|
+
channel?: string | undefined;
|
|
199
|
+
threadTs?: string | undefined;
|
|
200
|
+
teamId?: string | undefined;
|
|
201
|
+
} | undefined;
|
|
211
202
|
schedules?: {
|
|
212
203
|
id: string;
|
|
213
204
|
name: string;
|
|
214
|
-
createdAt: string;
|
|
215
|
-
prompt: string;
|
|
216
205
|
cron: string;
|
|
206
|
+
prompt: string;
|
|
207
|
+
createdAt: string;
|
|
217
208
|
enabled?: boolean | undefined;
|
|
218
209
|
replyChannel?: string | undefined;
|
|
219
210
|
lastFiredAt?: string | undefined;
|
|
220
211
|
}[] | undefined;
|
|
212
|
+
webhooks?: {
|
|
213
|
+
id: string;
|
|
214
|
+
name: string;
|
|
215
|
+
createdAt: string;
|
|
216
|
+
token: string;
|
|
217
|
+
wake?: "now" | "next" | undefined;
|
|
218
|
+
template?: string | undefined;
|
|
219
|
+
hitCount?: number | undefined;
|
|
220
|
+
lastHitAt?: string | undefined;
|
|
221
|
+
}[] | undefined;
|
|
221
222
|
}>;
|
|
222
223
|
declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
223
224
|
defaultModel: z.ZodDefault<z.ZodString>;
|
|
@@ -285,6 +286,16 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
285
286
|
}, {
|
|
286
287
|
token?: string | undefined;
|
|
287
288
|
}>>;
|
|
289
|
+
autoUpdate: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
290
|
+
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
291
|
+
intervalHours: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
292
|
+
}, "strip", z.ZodTypeAny, {
|
|
293
|
+
enabled: boolean;
|
|
294
|
+
intervalHours: number;
|
|
295
|
+
}, {
|
|
296
|
+
enabled?: boolean | undefined;
|
|
297
|
+
intervalHours?: number | undefined;
|
|
298
|
+
}>>>;
|
|
288
299
|
databasePath: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
289
300
|
remoteServer: z.ZodOptional<z.ZodObject<{
|
|
290
301
|
url: z.ZodOptional<z.ZodString>;
|
|
@@ -383,15 +394,15 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
383
394
|
expiresAt?: string | undefined;
|
|
384
395
|
}>>;
|
|
385
396
|
}, "strip", z.ZodTypeAny, {
|
|
397
|
+
enabled: boolean;
|
|
386
398
|
id: string;
|
|
387
399
|
name: string;
|
|
388
|
-
transport: "http" | "sse" | "stdio";
|
|
389
|
-
enabled: boolean;
|
|
390
400
|
createdAt: string;
|
|
401
|
+
transport: "http" | "sse" | "stdio";
|
|
402
|
+
args?: string[] | undefined;
|
|
391
403
|
url?: string | undefined;
|
|
392
404
|
headers?: Record<string, string> | undefined;
|
|
393
405
|
command?: string | undefined;
|
|
394
|
-
args?: string[] | undefined;
|
|
395
406
|
oauth?: {
|
|
396
407
|
authorizationUrl?: string | undefined;
|
|
397
408
|
tokenUrl?: string | undefined;
|
|
@@ -404,13 +415,13 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
404
415
|
}, {
|
|
405
416
|
id: string;
|
|
406
417
|
name: string;
|
|
407
|
-
transport: "http" | "sse" | "stdio";
|
|
408
418
|
createdAt: string;
|
|
419
|
+
transport: "http" | "sse" | "stdio";
|
|
420
|
+
enabled?: boolean | undefined;
|
|
421
|
+
args?: string[] | undefined;
|
|
409
422
|
url?: string | undefined;
|
|
410
423
|
headers?: Record<string, string> | undefined;
|
|
411
424
|
command?: string | undefined;
|
|
412
|
-
args?: string[] | undefined;
|
|
413
|
-
enabled?: boolean | undefined;
|
|
414
425
|
oauth?: {
|
|
415
426
|
authorizationUrl?: string | undefined;
|
|
416
427
|
tokenUrl?: string | undefined;
|
|
@@ -423,15 +434,15 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
423
434
|
}>, "many">>>>;
|
|
424
435
|
}, "strip", z.ZodTypeAny, {
|
|
425
436
|
servers?: {
|
|
437
|
+
enabled: boolean;
|
|
426
438
|
id: string;
|
|
427
439
|
name: string;
|
|
428
|
-
transport: "http" | "sse" | "stdio";
|
|
429
|
-
enabled: boolean;
|
|
430
440
|
createdAt: string;
|
|
441
|
+
transport: "http" | "sse" | "stdio";
|
|
442
|
+
args?: string[] | undefined;
|
|
431
443
|
url?: string | undefined;
|
|
432
444
|
headers?: Record<string, string> | undefined;
|
|
433
445
|
command?: string | undefined;
|
|
434
|
-
args?: string[] | undefined;
|
|
435
446
|
oauth?: {
|
|
436
447
|
authorizationUrl?: string | undefined;
|
|
437
448
|
tokenUrl?: string | undefined;
|
|
@@ -446,13 +457,13 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
446
457
|
servers?: {
|
|
447
458
|
id: string;
|
|
448
459
|
name: string;
|
|
449
|
-
transport: "http" | "sse" | "stdio";
|
|
450
460
|
createdAt: string;
|
|
461
|
+
transport: "http" | "sse" | "stdio";
|
|
462
|
+
enabled?: boolean | undefined;
|
|
463
|
+
args?: string[] | undefined;
|
|
451
464
|
url?: string | undefined;
|
|
452
465
|
headers?: Record<string, string> | undefined;
|
|
453
466
|
command?: string | undefined;
|
|
454
|
-
args?: string[] | undefined;
|
|
455
|
-
enabled?: boolean | undefined;
|
|
456
467
|
oauth?: {
|
|
457
468
|
authorizationUrl?: string | undefined;
|
|
458
469
|
tokenUrl?: string | undefined;
|
|
@@ -495,7 +506,6 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
495
506
|
allowedEmails?: string[] | undefined;
|
|
496
507
|
}>>;
|
|
497
508
|
}, "strip", z.ZodTypeAny, {
|
|
498
|
-
defaultModel: string;
|
|
499
509
|
toolApprovals: {
|
|
500
510
|
bash: boolean;
|
|
501
511
|
write_file: boolean;
|
|
@@ -503,6 +513,7 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
503
513
|
load_skill: boolean;
|
|
504
514
|
todo: boolean;
|
|
505
515
|
};
|
|
516
|
+
defaultModel: string;
|
|
506
517
|
skills: {
|
|
507
518
|
directory: string;
|
|
508
519
|
additionalDirectories: string[];
|
|
@@ -517,12 +528,26 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
517
528
|
host: string;
|
|
518
529
|
publicUrl?: string | undefined;
|
|
519
530
|
};
|
|
531
|
+
autoUpdate: {
|
|
532
|
+
enabled: boolean;
|
|
533
|
+
intervalHours: number;
|
|
534
|
+
};
|
|
520
535
|
databasePath: string;
|
|
521
|
-
workingDirectory?: string | undefined;
|
|
522
536
|
approvalWebhook?: string | undefined;
|
|
537
|
+
slack?: {
|
|
538
|
+
botToken?: string | undefined;
|
|
539
|
+
signingSecret?: string | undefined;
|
|
540
|
+
defaultOrchestratorName?: string | undefined;
|
|
541
|
+
allowedUsers?: string[] | undefined;
|
|
542
|
+
allowedChannels?: string[] | undefined;
|
|
543
|
+
allowDmsFromAnyone?: boolean | undefined;
|
|
544
|
+
deniedReplyEnabled?: boolean | undefined;
|
|
545
|
+
deniedReplyTemplate?: string | undefined;
|
|
546
|
+
} | undefined;
|
|
523
547
|
webhooks?: {
|
|
524
548
|
token?: string | undefined;
|
|
525
549
|
} | undefined;
|
|
550
|
+
workingDirectory?: string | undefined;
|
|
526
551
|
remoteServer?: {
|
|
527
552
|
url?: string | undefined;
|
|
528
553
|
authKey?: string | undefined;
|
|
@@ -535,27 +560,17 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
535
560
|
httpUrl?: string | undefined;
|
|
536
561
|
namespace?: string | undefined;
|
|
537
562
|
} | undefined;
|
|
538
|
-
slack?: {
|
|
539
|
-
botToken?: string | undefined;
|
|
540
|
-
signingSecret?: string | undefined;
|
|
541
|
-
defaultOrchestratorName?: string | undefined;
|
|
542
|
-
allowedUsers?: string[] | undefined;
|
|
543
|
-
allowedChannels?: string[] | undefined;
|
|
544
|
-
allowDmsFromAnyone?: boolean | undefined;
|
|
545
|
-
deniedReplyEnabled?: boolean | undefined;
|
|
546
|
-
deniedReplyTemplate?: string | undefined;
|
|
547
|
-
} | undefined;
|
|
548
563
|
mcp?: {
|
|
549
564
|
servers?: {
|
|
565
|
+
enabled: boolean;
|
|
550
566
|
id: string;
|
|
551
567
|
name: string;
|
|
552
|
-
transport: "http" | "sse" | "stdio";
|
|
553
|
-
enabled: boolean;
|
|
554
568
|
createdAt: string;
|
|
569
|
+
transport: "http" | "sse" | "stdio";
|
|
570
|
+
args?: string[] | undefined;
|
|
555
571
|
url?: string | undefined;
|
|
556
572
|
headers?: Record<string, string> | undefined;
|
|
557
573
|
command?: string | undefined;
|
|
558
|
-
args?: string[] | undefined;
|
|
559
574
|
oauth?: {
|
|
560
575
|
authorizationUrl?: string | undefined;
|
|
561
576
|
tokenUrl?: string | undefined;
|
|
@@ -576,8 +591,6 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
576
591
|
allowedEmails?: string[] | undefined;
|
|
577
592
|
} | undefined;
|
|
578
593
|
}, {
|
|
579
|
-
defaultModel?: string | undefined;
|
|
580
|
-
workingDirectory?: string | undefined;
|
|
581
594
|
toolApprovals?: {
|
|
582
595
|
bash?: boolean | undefined;
|
|
583
596
|
write_file?: boolean | undefined;
|
|
@@ -586,6 +599,21 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
586
599
|
todo?: boolean | undefined;
|
|
587
600
|
} | undefined;
|
|
588
601
|
approvalWebhook?: string | undefined;
|
|
602
|
+
slack?: {
|
|
603
|
+
botToken?: string | undefined;
|
|
604
|
+
signingSecret?: string | undefined;
|
|
605
|
+
defaultOrchestratorName?: string | undefined;
|
|
606
|
+
allowedUsers?: string[] | undefined;
|
|
607
|
+
allowedChannels?: string[] | undefined;
|
|
608
|
+
allowDmsFromAnyone?: boolean | undefined;
|
|
609
|
+
deniedReplyEnabled?: boolean | undefined;
|
|
610
|
+
deniedReplyTemplate?: string | undefined;
|
|
611
|
+
} | undefined;
|
|
612
|
+
webhooks?: {
|
|
613
|
+
token?: string | undefined;
|
|
614
|
+
} | undefined;
|
|
615
|
+
workingDirectory?: string | undefined;
|
|
616
|
+
defaultModel?: string | undefined;
|
|
589
617
|
skills?: {
|
|
590
618
|
directory?: string | undefined;
|
|
591
619
|
additionalDirectories?: string[] | undefined;
|
|
@@ -600,8 +628,9 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
600
628
|
host?: string | undefined;
|
|
601
629
|
publicUrl?: string | undefined;
|
|
602
630
|
} | undefined;
|
|
603
|
-
|
|
604
|
-
|
|
631
|
+
autoUpdate?: {
|
|
632
|
+
enabled?: boolean | undefined;
|
|
633
|
+
intervalHours?: number | undefined;
|
|
605
634
|
} | undefined;
|
|
606
635
|
databasePath?: string | undefined;
|
|
607
636
|
remoteServer?: {
|
|
@@ -616,27 +645,17 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
616
645
|
include?: string[] | undefined;
|
|
617
646
|
exclude?: string[] | undefined;
|
|
618
647
|
} | undefined;
|
|
619
|
-
slack?: {
|
|
620
|
-
botToken?: string | undefined;
|
|
621
|
-
signingSecret?: string | undefined;
|
|
622
|
-
defaultOrchestratorName?: string | undefined;
|
|
623
|
-
allowedUsers?: string[] | undefined;
|
|
624
|
-
allowedChannels?: string[] | undefined;
|
|
625
|
-
allowDmsFromAnyone?: boolean | undefined;
|
|
626
|
-
deniedReplyEnabled?: boolean | undefined;
|
|
627
|
-
deniedReplyTemplate?: string | undefined;
|
|
628
|
-
} | undefined;
|
|
629
648
|
mcp?: {
|
|
630
649
|
servers?: {
|
|
631
650
|
id: string;
|
|
632
651
|
name: string;
|
|
633
|
-
transport: "http" | "sse" | "stdio";
|
|
634
652
|
createdAt: string;
|
|
653
|
+
transport: "http" | "sse" | "stdio";
|
|
654
|
+
enabled?: boolean | undefined;
|
|
655
|
+
args?: string[] | undefined;
|
|
635
656
|
url?: string | undefined;
|
|
636
657
|
headers?: Record<string, string> | undefined;
|
|
637
658
|
command?: string | undefined;
|
|
638
|
-
args?: string[] | undefined;
|
|
639
|
-
enabled?: boolean | undefined;
|
|
640
659
|
oauth?: {
|
|
641
660
|
authorizationUrl?: string | undefined;
|
|
642
661
|
tokenUrl?: string | undefined;
|
|
@@ -699,6 +718,52 @@ interface ResolvedConfig extends Omit<SparkcoderConfig, 'server'> {
|
|
|
699
718
|
resolvedRemoteServer: ResolvedRemoteServerConfig;
|
|
700
719
|
}
|
|
701
720
|
|
|
721
|
+
type TaskMcpTransport = 'http' | 'sse' | 'stdio';
|
|
722
|
+
interface TaskMcpServerInput {
|
|
723
|
+
/** Tool prefix + display name. Sanitized to a safe identifier. */
|
|
724
|
+
name: string;
|
|
725
|
+
transport: TaskMcpTransport;
|
|
726
|
+
/** http/sse transports */
|
|
727
|
+
url?: string;
|
|
728
|
+
/** Auth / custom headers for http/sse (e.g. { Authorization: "Bearer ..." }). */
|
|
729
|
+
headers?: Record<string, string>;
|
|
730
|
+
/** stdio transport */
|
|
731
|
+
command?: string;
|
|
732
|
+
args?: string[];
|
|
733
|
+
/** Environment variables for the stdio child process. */
|
|
734
|
+
env?: Record<string, string>;
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
interface Skill {
|
|
738
|
+
name: string;
|
|
739
|
+
description: string;
|
|
740
|
+
filePath: string;
|
|
741
|
+
content?: string;
|
|
742
|
+
alwaysApply: boolean;
|
|
743
|
+
globs: string[];
|
|
744
|
+
loadType: SkillLoadType;
|
|
745
|
+
priority: number;
|
|
746
|
+
sourceDir: string;
|
|
747
|
+
platforms: string[];
|
|
748
|
+
contextBudgetTokens?: number;
|
|
749
|
+
}
|
|
750
|
+
interface SkillWithContent extends Skill {
|
|
751
|
+
content: string;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
interface TaskSkillInput {
|
|
755
|
+
/** Skill name (used for load_skill lookups and display). */
|
|
756
|
+
name: string;
|
|
757
|
+
/** One-line description shown in the available-skills list. */
|
|
758
|
+
description?: string;
|
|
759
|
+
/** The full markdown body of the skill. */
|
|
760
|
+
content: string;
|
|
761
|
+
/** When true the skill content is injected into the system prompt up-front. */
|
|
762
|
+
alwaysApply?: boolean;
|
|
763
|
+
/** Optional glob patterns for auto-loading against active files. */
|
|
764
|
+
globs?: string[];
|
|
765
|
+
}
|
|
766
|
+
|
|
702
767
|
interface ContextManagerOptions {
|
|
703
768
|
sessionId: string;
|
|
704
769
|
modelId: string;
|
|
@@ -783,6 +848,11 @@ declare function buildSystemPrompt(options: {
|
|
|
783
848
|
discoveredSkills?: DiscoveredSkills;
|
|
784
849
|
activeFiles?: string[];
|
|
785
850
|
customInstructions?: string;
|
|
851
|
+
/** Task-scoped skills supplied via the tasks API (this run only). */
|
|
852
|
+
taskScopedSkills?: {
|
|
853
|
+
always: SkillWithContent[];
|
|
854
|
+
onDemand: Skill[];
|
|
855
|
+
};
|
|
786
856
|
}): Promise<string>;
|
|
787
857
|
/**
|
|
788
858
|
* Build an addendum for the system prompt when running in task mode.
|
|
@@ -908,6 +978,10 @@ declare class Agent {
|
|
|
908
978
|
}) => void;
|
|
909
979
|
onToolProgress?: AgentRunOptions['onToolProgress'];
|
|
910
980
|
onStepFinish?: AgentRunOptions['onStepFinish'];
|
|
981
|
+
/** Task-scoped MCP servers (with auth/headers) — connected for this run only. */
|
|
982
|
+
mcpServers?: TaskMcpServerInput[];
|
|
983
|
+
/** Task-scoped skills (inline knowledge docs) — available for this run only. */
|
|
984
|
+
skills?: TaskSkillInput[];
|
|
911
985
|
}): Promise<{
|
|
912
986
|
status: 'completed' | 'failed';
|
|
913
987
|
result?: unknown;
|
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-BM99kjgq.js';
|
|
2
|
+
export { A as Agent, a as AgentOptions, b as AgentRunOptions, c as AgentStreamResult, S as SparkcoderConfig, T as ToolApprovalConfig } from './index-BM99kjgq.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-Dz-wABVY.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-Dz-wABVY.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-CVVfuBPZ.js';
|
|
9
9
|
import 'ai';
|
|
10
10
|
import 'zod';
|
|
11
11
|
import 'hono/types';
|