@soederpop/luca 0.1.1 → 0.1.3
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/CLAUDE.md +2 -0
- package/assistants/codingAssistant/hooks.ts +3 -0
- package/assistants/inkbot/CORE.md +69 -0
- package/assistants/inkbot/hooks.ts +14 -0
- package/assistants/inkbot/tools.ts +47 -0
- package/commands/inkbot.ts +353 -0
- package/dist/agi/container.server.d.ts +63 -0
- package/dist/agi/container.server.d.ts.map +1 -0
- package/dist/agi/endpoints/ask.d.ts +20 -0
- package/dist/agi/endpoints/ask.d.ts.map +1 -0
- package/dist/agi/endpoints/conversations/[id].d.ts +27 -0
- package/dist/agi/endpoints/conversations/[id].d.ts.map +1 -0
- package/dist/agi/endpoints/conversations.d.ts +18 -0
- package/dist/agi/endpoints/conversations.d.ts.map +1 -0
- package/dist/agi/endpoints/experts.d.ts +8 -0
- package/dist/agi/endpoints/experts.d.ts.map +1 -0
- package/dist/agi/feature.d.ts +9 -0
- package/dist/agi/feature.d.ts.map +1 -0
- package/dist/agi/features/assistant.d.ts +509 -0
- package/dist/agi/features/assistant.d.ts.map +1 -0
- package/dist/agi/features/assistants-manager.d.ts +236 -0
- package/dist/agi/features/assistants-manager.d.ts.map +1 -0
- package/dist/agi/features/autonomous-assistant.d.ts +281 -0
- package/dist/agi/features/autonomous-assistant.d.ts.map +1 -0
- package/dist/agi/features/browser-use.d.ts +479 -0
- package/dist/agi/features/browser-use.d.ts.map +1 -0
- package/dist/agi/features/claude-code.d.ts +824 -0
- package/dist/agi/features/claude-code.d.ts.map +1 -0
- package/dist/agi/features/conversation-history.d.ts +245 -0
- package/dist/agi/features/conversation-history.d.ts.map +1 -0
- package/dist/agi/features/conversation.d.ts +464 -0
- package/dist/agi/features/conversation.d.ts.map +1 -0
- package/dist/agi/features/docs-reader.d.ts +72 -0
- package/dist/agi/features/docs-reader.d.ts.map +1 -0
- package/dist/agi/features/file-tools.d.ts +110 -0
- package/dist/agi/features/file-tools.d.ts.map +1 -0
- package/dist/agi/features/luca-coder.d.ts +323 -0
- package/dist/agi/features/luca-coder.d.ts.map +1 -0
- package/dist/agi/features/openai-codex.d.ts +381 -0
- package/dist/agi/features/openai-codex.d.ts.map +1 -0
- package/dist/agi/features/openapi.d.ts +200 -0
- package/dist/agi/features/openapi.d.ts.map +1 -0
- package/dist/agi/features/skills-library.d.ts +167 -0
- package/dist/agi/features/skills-library.d.ts.map +1 -0
- package/dist/agi/index.d.ts +5 -0
- package/dist/agi/index.d.ts.map +1 -0
- package/dist/agi/lib/interceptor-chain.d.ts +44 -0
- package/dist/agi/lib/interceptor-chain.d.ts.map +1 -0
- package/dist/agi/lib/token-counter.d.ts +13 -0
- package/dist/agi/lib/token-counter.d.ts.map +1 -0
- package/dist/bootstrap/generated.d.ts +5 -0
- package/dist/bootstrap/generated.d.ts.map +1 -0
- package/dist/browser.d.ts +12 -0
- package/dist/browser.d.ts.map +1 -0
- package/dist/bus.d.ts +29 -0
- package/dist/bus.d.ts.map +1 -0
- package/dist/cli/build-info.d.ts +4 -0
- package/dist/cli/build-info.d.ts.map +1 -0
- package/dist/cli/cli.d.ts +3 -0
- package/dist/cli/cli.d.ts.map +1 -0
- package/dist/client.d.ts +60 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/clients/civitai/index.d.ts +472 -0
- package/dist/clients/civitai/index.d.ts.map +1 -0
- package/dist/clients/client-template.d.ts +30 -0
- package/dist/clients/client-template.d.ts.map +1 -0
- package/dist/clients/comfyui/index.d.ts +281 -0
- package/dist/clients/comfyui/index.d.ts.map +1 -0
- package/dist/clients/elevenlabs/index.d.ts +197 -0
- package/dist/clients/elevenlabs/index.d.ts.map +1 -0
- package/dist/clients/graph.d.ts +64 -0
- package/dist/clients/graph.d.ts.map +1 -0
- package/dist/clients/openai/index.d.ts +247 -0
- package/dist/clients/openai/index.d.ts.map +1 -0
- package/dist/clients/rest.d.ts +92 -0
- package/dist/clients/rest.d.ts.map +1 -0
- package/dist/clients/supabase/index.d.ts +176 -0
- package/dist/clients/supabase/index.d.ts.map +1 -0
- package/dist/clients/websocket.d.ts +127 -0
- package/dist/clients/websocket.d.ts.map +1 -0
- package/dist/command.d.ts +163 -0
- package/dist/command.d.ts.map +1 -0
- package/dist/commands/bootstrap.d.ts +20 -0
- package/dist/commands/bootstrap.d.ts.map +1 -0
- package/dist/commands/chat.d.ts +37 -0
- package/dist/commands/chat.d.ts.map +1 -0
- package/dist/commands/code.d.ts +28 -0
- package/dist/commands/code.d.ts.map +1 -0
- package/dist/commands/console.d.ts +22 -0
- package/dist/commands/console.d.ts.map +1 -0
- package/dist/commands/describe.d.ts +50 -0
- package/dist/commands/describe.d.ts.map +1 -0
- package/dist/commands/eval.d.ts +23 -0
- package/dist/commands/eval.d.ts.map +1 -0
- package/dist/commands/help.d.ts +25 -0
- package/dist/commands/help.d.ts.map +1 -0
- package/dist/commands/index.d.ts +18 -0
- package/dist/commands/index.d.ts.map +1 -0
- package/dist/commands/introspect.d.ts +24 -0
- package/dist/commands/introspect.d.ts.map +1 -0
- package/dist/commands/mcp.d.ts +35 -0
- package/dist/commands/mcp.d.ts.map +1 -0
- package/dist/commands/prompt.d.ts +38 -0
- package/dist/commands/prompt.d.ts.map +1 -0
- package/dist/commands/run.d.ts +24 -0
- package/dist/commands/run.d.ts.map +1 -0
- package/dist/commands/sandbox-mcp.d.ts +34 -0
- package/dist/commands/sandbox-mcp.d.ts.map +1 -0
- package/dist/commands/save-api-docs.d.ts +21 -0
- package/dist/commands/save-api-docs.d.ts.map +1 -0
- package/dist/commands/scaffold.d.ts +24 -0
- package/dist/commands/scaffold.d.ts.map +1 -0
- package/dist/commands/select.d.ts +22 -0
- package/dist/commands/select.d.ts.map +1 -0
- package/dist/commands/serve.d.ts +29 -0
- package/dist/commands/serve.d.ts.map +1 -0
- package/dist/container-describer.d.ts +144 -0
- package/dist/container-describer.d.ts.map +1 -0
- package/dist/container.d.ts +451 -0
- package/dist/container.d.ts.map +1 -0
- package/dist/endpoint.d.ts +113 -0
- package/dist/endpoint.d.ts.map +1 -0
- package/dist/feature.d.ts +47 -0
- package/dist/feature.d.ts.map +1 -0
- package/dist/graft.d.ts +29 -0
- package/dist/graft.d.ts.map +1 -0
- package/dist/hash-object.d.ts +8 -0
- package/dist/hash-object.d.ts.map +1 -0
- package/dist/helper.d.ts +209 -0
- package/dist/helper.d.ts.map +1 -0
- package/dist/introspection/generated.node.d.ts +44623 -0
- package/dist/introspection/generated.node.d.ts.map +1 -0
- package/dist/introspection/generated.web.d.ts +1412 -0
- package/dist/introspection/generated.web.d.ts.map +1 -0
- package/dist/introspection/index.d.ts +156 -0
- package/dist/introspection/index.d.ts.map +1 -0
- package/dist/introspection/scan.d.ts +147 -0
- package/dist/introspection/scan.d.ts.map +1 -0
- package/dist/node/container.d.ts +256 -0
- package/dist/node/container.d.ts.map +1 -0
- package/dist/node/feature.d.ts +9 -0
- package/dist/node/feature.d.ts.map +1 -0
- package/dist/node/features/container-link.d.ts +213 -0
- package/dist/node/features/container-link.d.ts.map +1 -0
- package/dist/node/features/content-db.d.ts +354 -0
- package/dist/node/features/content-db.d.ts.map +1 -0
- package/dist/node/features/disk-cache.d.ts +236 -0
- package/dist/node/features/disk-cache.d.ts.map +1 -0
- package/dist/node/features/dns.d.ts +511 -0
- package/dist/node/features/dns.d.ts.map +1 -0
- package/dist/node/features/docker.d.ts +485 -0
- package/dist/node/features/docker.d.ts.map +1 -0
- package/dist/node/features/downloader.d.ts +73 -0
- package/dist/node/features/downloader.d.ts.map +1 -0
- package/dist/node/features/figlet-fonts.d.ts +4 -0
- package/dist/node/features/figlet-fonts.d.ts.map +1 -0
- package/dist/node/features/file-manager.d.ts +177 -0
- package/dist/node/features/file-manager.d.ts.map +1 -0
- package/dist/node/features/fs.d.ts +635 -0
- package/dist/node/features/fs.d.ts.map +1 -0
- package/dist/node/features/git.d.ts +329 -0
- package/dist/node/features/git.d.ts.map +1 -0
- package/dist/node/features/google-auth.d.ts +200 -0
- package/dist/node/features/google-auth.d.ts.map +1 -0
- package/dist/node/features/google-calendar.d.ts +194 -0
- package/dist/node/features/google-calendar.d.ts.map +1 -0
- package/dist/node/features/google-docs.d.ts +138 -0
- package/dist/node/features/google-docs.d.ts.map +1 -0
- package/dist/node/features/google-drive.d.ts +202 -0
- package/dist/node/features/google-drive.d.ts.map +1 -0
- package/dist/node/features/google-mail.d.ts +221 -0
- package/dist/node/features/google-mail.d.ts.map +1 -0
- package/dist/node/features/google-sheets.d.ts +157 -0
- package/dist/node/features/google-sheets.d.ts.map +1 -0
- package/dist/node/features/grep.d.ts +207 -0
- package/dist/node/features/grep.d.ts.map +1 -0
- package/dist/node/features/helpers.d.ts +236 -0
- package/dist/node/features/helpers.d.ts.map +1 -0
- package/dist/node/features/ink.d.ts +332 -0
- package/dist/node/features/ink.d.ts.map +1 -0
- package/dist/node/features/ipc-socket.d.ts +298 -0
- package/dist/node/features/ipc-socket.d.ts.map +1 -0
- package/dist/node/features/json-tree.d.ts +140 -0
- package/dist/node/features/json-tree.d.ts.map +1 -0
- package/dist/node/features/networking.d.ts +373 -0
- package/dist/node/features/networking.d.ts.map +1 -0
- package/dist/node/features/nlp.d.ts +125 -0
- package/dist/node/features/nlp.d.ts.map +1 -0
- package/dist/node/features/opener.d.ts +93 -0
- package/dist/node/features/opener.d.ts.map +1 -0
- package/dist/node/features/os.d.ts +168 -0
- package/dist/node/features/os.d.ts.map +1 -0
- package/dist/node/features/package-finder.d.ts +419 -0
- package/dist/node/features/package-finder.d.ts.map +1 -0
- package/dist/node/features/postgres.d.ts +173 -0
- package/dist/node/features/postgres.d.ts.map +1 -0
- package/dist/node/features/proc.d.ts +285 -0
- package/dist/node/features/proc.d.ts.map +1 -0
- package/dist/node/features/process-manager.d.ts +427 -0
- package/dist/node/features/process-manager.d.ts.map +1 -0
- package/dist/node/features/python.d.ts +477 -0
- package/dist/node/features/python.d.ts.map +1 -0
- package/dist/node/features/redis.d.ts +247 -0
- package/dist/node/features/redis.d.ts.map +1 -0
- package/dist/node/features/repl.d.ts +84 -0
- package/dist/node/features/repl.d.ts.map +1 -0
- package/dist/node/features/runpod.d.ts +527 -0
- package/dist/node/features/runpod.d.ts.map +1 -0
- package/dist/node/features/secure-shell.d.ts +145 -0
- package/dist/node/features/secure-shell.d.ts.map +1 -0
- package/dist/node/features/semantic-search.d.ts +207 -0
- package/dist/node/features/semantic-search.d.ts.map +1 -0
- package/dist/node/features/sqlite.d.ts +180 -0
- package/dist/node/features/sqlite.d.ts.map +1 -0
- package/dist/node/features/telegram.d.ts +173 -0
- package/dist/node/features/telegram.d.ts.map +1 -0
- package/dist/node/features/transpiler.d.ts +51 -0
- package/dist/node/features/transpiler.d.ts.map +1 -0
- package/dist/node/features/tts.d.ts +108 -0
- package/dist/node/features/tts.d.ts.map +1 -0
- package/dist/node/features/ui.d.ts +562 -0
- package/dist/node/features/ui.d.ts.map +1 -0
- package/dist/node/features/vault.d.ts +90 -0
- package/dist/node/features/vault.d.ts.map +1 -0
- package/dist/node/features/vm.d.ts +285 -0
- package/dist/node/features/vm.d.ts.map +1 -0
- package/dist/node/features/yaml-tree.d.ts +118 -0
- package/dist/node/features/yaml-tree.d.ts.map +1 -0
- package/dist/node/features/yaml.d.ts +127 -0
- package/dist/node/features/yaml.d.ts.map +1 -0
- package/dist/node.d.ts +67 -0
- package/dist/node.d.ts.map +1 -0
- package/dist/python/generated.d.ts +2 -0
- package/dist/python/generated.d.ts.map +1 -0
- package/dist/react/index.d.ts +36 -0
- package/dist/react/index.d.ts.map +1 -0
- package/dist/registry.d.ts +97 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/scaffolds/generated.d.ts +13 -0
- package/dist/scaffolds/generated.d.ts.map +1 -0
- package/dist/scaffolds/template.d.ts +11 -0
- package/dist/scaffolds/template.d.ts.map +1 -0
- package/dist/schemas/base.d.ts +254 -0
- package/dist/schemas/base.d.ts.map +1 -0
- package/dist/selector.d.ts +130 -0
- package/dist/selector.d.ts.map +1 -0
- package/dist/server.d.ts +89 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/servers/express.d.ts +104 -0
- package/dist/servers/express.d.ts.map +1 -0
- package/dist/servers/mcp.d.ts +201 -0
- package/dist/servers/mcp.d.ts.map +1 -0
- package/dist/servers/socket.d.ts +121 -0
- package/dist/servers/socket.d.ts.map +1 -0
- package/dist/state.d.ts +24 -0
- package/dist/state.d.ts.map +1 -0
- package/dist/web/clients/socket.d.ts +37 -0
- package/dist/web/clients/socket.d.ts.map +1 -0
- package/dist/web/container.d.ts +55 -0
- package/dist/web/container.d.ts.map +1 -0
- package/dist/web/extension.d.ts +4 -0
- package/dist/web/extension.d.ts.map +1 -0
- package/dist/web/feature.d.ts +8 -0
- package/dist/web/feature.d.ts.map +1 -0
- package/dist/web/features/asset-loader.d.ts +35 -0
- package/dist/web/features/asset-loader.d.ts.map +1 -0
- package/dist/web/features/container-link.d.ts +167 -0
- package/dist/web/features/container-link.d.ts.map +1 -0
- package/dist/web/features/esbuild.d.ts +51 -0
- package/dist/web/features/esbuild.d.ts.map +1 -0
- package/dist/web/features/helpers.d.ts +140 -0
- package/dist/web/features/helpers.d.ts.map +1 -0
- package/dist/web/features/network.d.ts +69 -0
- package/dist/web/features/network.d.ts.map +1 -0
- package/dist/web/features/speech.d.ts +71 -0
- package/dist/web/features/speech.d.ts.map +1 -0
- package/dist/web/features/vault.d.ts +62 -0
- package/dist/web/features/vault.d.ts.map +1 -0
- package/dist/web/features/vm.d.ts +48 -0
- package/dist/web/features/vm.d.ts.map +1 -0
- package/dist/web/features/voice-recognition.d.ts +96 -0
- package/dist/web/features/voice-recognition.d.ts.map +1 -0
- package/dist/web/shims/isomorphic-vm.d.ts +22 -0
- package/dist/web/shims/isomorphic-vm.d.ts.map +1 -0
- package/docs/apis/features/agi/assistant.md +1 -0
- package/docs/apis/features/agi/assistants-manager.md +62 -2
- package/docs/apis/features/agi/auto-assistant.md +11 -109
- package/docs/apis/features/agi/claude-code.md +138 -0
- package/docs/apis/features/agi/conversation.md +60 -31
- package/docs/apis/features/agi/luca-coder.md +407 -0
- package/docs/apis/features/agi/openapi.md +2 -2
- package/docs/apis/features/agi/skills-library.md +12 -0
- package/docs/apis/features/node/python.md +81 -11
- package/docs/apis/features/node/transpiler.md +74 -0
- package/docs/apis/features/web/esbuild.md +0 -6
- package/docs/apis/servers/mcp.md +2 -2
- package/docs/examples/entity.md +124 -0
- package/package.json +73 -21
- package/scripts/test-assistant-hooks.ts +13 -0
- package/src/agi/feature.ts +13 -0
- package/src/agi/features/assistant.ts +36 -25
- package/src/agi/features/assistants-manager.ts +70 -5
- package/src/agi/features/autonomous-assistant.ts +1 -5
- package/src/agi/features/browser-use.ts +2 -2
- package/src/agi/features/claude-code.ts +165 -1
- package/src/agi/features/conversation-history.ts +2 -6
- package/src/agi/features/conversation.ts +95 -3
- package/src/agi/features/docs-reader.ts +2 -1
- package/src/agi/features/file-tools.ts +2 -2
- package/src/agi/features/luca-coder.ts +1 -5
- package/src/agi/features/openai-codex.ts +1 -1
- package/src/agi/features/openapi.ts +3 -3
- package/src/agi/features/skills-library.ts +90 -2
- package/src/agi/lib/interceptor-chain.ts +10 -0
- package/src/agi/lib/token-counter.ts +1 -1
- package/src/bootstrap/generated.ts +126 -1
- package/src/bus.ts +27 -5
- package/src/cli/build-info.ts +2 -2
- package/src/client.ts +2 -2
- package/src/clients/elevenlabs/index.ts +5 -0
- package/src/commands/bootstrap.ts +2 -1
- package/src/commands/chat.ts +1 -0
- package/src/commands/code.ts +4 -2
- package/src/commands/prompt.ts +34 -34
- package/src/commands/sandbox-mcp.ts +69 -163
- package/src/commands/save-api-docs.ts +10 -8
- package/src/commands/select.ts +8 -3
- package/src/container-describer.ts +70 -84
- package/src/container.ts +93 -3
- package/src/endpoint.ts +1 -1
- package/src/entity.ts +173 -0
- package/src/feature.ts +3 -3
- package/src/helper.ts +8 -4
- package/src/introspection/generated.agi.ts +1403 -929
- package/src/introspection/generated.node.ts +127 -33
- package/src/introspection/generated.web.ts +95 -3
- package/src/introspection/scan.ts +1 -1
- package/src/node/container.ts +1 -1
- package/src/node/features/content-db.ts +3 -3
- package/src/node/features/file-manager.ts +10 -9
- package/src/node/features/git.ts +5 -5
- package/src/node/features/helpers.ts +1 -1
- package/src/node/features/json-tree.ts +1 -1
- package/src/node/features/os.ts +3 -3
- package/src/node/features/package-finder.ts +1 -1
- package/src/node/features/process-manager.ts +1 -1
- package/src/node/features/python.ts +3 -3
- package/src/node/features/redis.ts +1 -1
- package/src/node/features/repl.ts +2 -2
- package/src/node/features/transpiler.ts +34 -9
- package/src/node/features/ui.ts +1 -1
- package/src/node/features/vm.ts +6 -5
- package/src/node/features/yaml-tree.ts +1 -1
- package/src/node.ts +1 -0
- package/src/python/generated.ts +1 -1
- package/src/scaffolds/generated.ts +1 -1
- package/src/selector.ts +74 -4
- package/src/server.ts +2 -2
- package/src/servers/mcp.ts +6 -6
- package/src/web/features/helpers.ts +1 -1
- package/src/web/features/network.ts +1 -0
- package/test/assistant.test.ts +72 -0
- package/test/conversation.test.ts +220 -0
- package/test/vm-loadmodule.test.ts +213 -0
- package/tsconfig.build.json +12 -0
- package/tsconfig.json +1 -1
- package/scripts/examples/telegram-ink-ui.ts +0 -302
- package/scripts/examples/using-openai-codex.ts +0 -23
- package/scripts/examples/vm-loading-esm-modules.ts +0 -16
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { Helper } from './helper.js';
|
|
2
|
+
import type { Container, ContainerContext } from './container.js';
|
|
3
|
+
import { Registry } from './registry.js';
|
|
4
|
+
import { CommandStateSchema, CommandOptionsSchema, type DispatchSource, type CommandRunResult } from './schemas/base.js';
|
|
5
|
+
import { z } from 'zod';
|
|
6
|
+
export type { DispatchSource, CommandRunResult };
|
|
7
|
+
export type CommandState = z.infer<typeof CommandStateSchema>;
|
|
8
|
+
export type CommandOptions = z.infer<typeof CommandOptionsSchema>;
|
|
9
|
+
export interface AvailableCommands {
|
|
10
|
+
}
|
|
11
|
+
export type CommandFactory = <T extends keyof AvailableCommands>(key: T, options?: ConstructorParameters<AvailableCommands[T]>[0]) => NonNullable<InstanceType<AvailableCommands[T]>>;
|
|
12
|
+
export interface CommandsInterface {
|
|
13
|
+
commands: CommandsRegistry;
|
|
14
|
+
command: CommandFactory;
|
|
15
|
+
}
|
|
16
|
+
export type CommandHandler<T = any> = (options: T, context: ContainerContext) => Promise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* Type helper for module-augmentation of AvailableCommands when using the
|
|
19
|
+
* SimpleCommand (module-based) pattern instead of a full class.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```typescript
|
|
23
|
+
* declare module '@soederpop/luca' {
|
|
24
|
+
* interface AvailableCommands {
|
|
25
|
+
* serve: SimpleCommand<typeof argsSchema>
|
|
26
|
+
* }
|
|
27
|
+
* }
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export type SimpleCommand<Schema extends z.ZodType = z.ZodType> = typeof Command & {
|
|
31
|
+
argsSchema: Schema;
|
|
32
|
+
positionals: string[];
|
|
33
|
+
};
|
|
34
|
+
export declare class Command<T extends CommandState = CommandState, K extends CommandOptions = CommandOptions> extends Helper<T, K> {
|
|
35
|
+
static shortcut: string;
|
|
36
|
+
static description: string;
|
|
37
|
+
static stateSchema: z.ZodObject<{
|
|
38
|
+
running: z.ZodDefault<z.ZodBoolean>;
|
|
39
|
+
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
}, z.core.$loose>;
|
|
41
|
+
static optionsSchema: z.ZodObject<{
|
|
42
|
+
name: z.ZodOptional<z.ZodString>;
|
|
43
|
+
_cacheKey: z.ZodOptional<z.ZodString>;
|
|
44
|
+
_: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
45
|
+
dispatchSource: z.ZodDefault<z.ZodEnum<{
|
|
46
|
+
cli: "cli";
|
|
47
|
+
headless: "headless";
|
|
48
|
+
mcp: "mcp";
|
|
49
|
+
rpc: "rpc";
|
|
50
|
+
}>>;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
static eventsSchema: z.ZodObject<{
|
|
53
|
+
stateChange: z.ZodTuple<[z.ZodAny], null>;
|
|
54
|
+
started: z.ZodTuple<[], null>;
|
|
55
|
+
completed: z.ZodTuple<[z.ZodNumber], null>;
|
|
56
|
+
failed: z.ZodTuple<[z.ZodAny], null>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
static commandDescription: string;
|
|
59
|
+
static argsSchema: z.ZodType;
|
|
60
|
+
static positionals: string[];
|
|
61
|
+
/** Self-register a Command subclass from a static initialization block. */
|
|
62
|
+
static register: (SubClass: typeof Command, id?: string) => typeof Command;
|
|
63
|
+
get initialState(): T;
|
|
64
|
+
/**
|
|
65
|
+
* Parse raw CLI argv against this command's argsSchema.
|
|
66
|
+
* Kept for backward compatibility with built-in commands.
|
|
67
|
+
*/
|
|
68
|
+
parseArgs(): any;
|
|
69
|
+
/**
|
|
70
|
+
* The user-defined command payload. Override this in class-based commands,
|
|
71
|
+
* or export a `run` function in module-based commands.
|
|
72
|
+
*
|
|
73
|
+
* Receives clean, named args (positionals already mapped) and the container context.
|
|
74
|
+
*/
|
|
75
|
+
run(_args: any, _context: ContainerContext): Promise<void>;
|
|
76
|
+
/**
|
|
77
|
+
* Internal dispatch normalizer. Maps positionals for CLI, passes through named
|
|
78
|
+
* args for headless, validates via argsSchema, captures output when headless.
|
|
79
|
+
*
|
|
80
|
+
* @param rawInput - Named args object. When omitted, reads from container.argv.
|
|
81
|
+
* @param source - Override the dispatch source. Defaults to constructor option.
|
|
82
|
+
*/
|
|
83
|
+
execute(rawInput?: Record<string, any>, source?: DispatchSource): Promise<CommandRunResult | void>;
|
|
84
|
+
/**
|
|
85
|
+
* The public entry point for dispatching a command.
|
|
86
|
+
* Called by the CLI and other dispatch surfaces.
|
|
87
|
+
*/
|
|
88
|
+
dispatch(rawInput?: Record<string, any>, source?: DispatchSource): Promise<CommandRunResult | void>;
|
|
89
|
+
/**
|
|
90
|
+
* Map CLI positional args to named fields based on the command's positionals declaration.
|
|
91
|
+
* For non-CLI dispatch, args are already named — pass through.
|
|
92
|
+
*/
|
|
93
|
+
private _normalizeInput;
|
|
94
|
+
/**
|
|
95
|
+
* Check whether a Zod schema expects an array type for a given field.
|
|
96
|
+
* Unwraps ZodObject → ZodOptional/ZodDefault/ZodNullable → ZodArray.
|
|
97
|
+
*/
|
|
98
|
+
private _schemaExpectsArray;
|
|
99
|
+
/**
|
|
100
|
+
* Run the command with stdout/stderr capture for headless dispatch.
|
|
101
|
+
* Returns a CommandRunResult with captured output.
|
|
102
|
+
*
|
|
103
|
+
* NOTE: Uses global console mutation — not safe for concurrent headless dispatches.
|
|
104
|
+
* A future iteration should pass a logger through context instead.
|
|
105
|
+
*/
|
|
106
|
+
private _runCaptured;
|
|
107
|
+
static attach(container: Container<any> & CommandsInterface): Container<any, any> & CommandsInterface;
|
|
108
|
+
}
|
|
109
|
+
export declare class CommandsRegistry extends Registry<Command<any>> {
|
|
110
|
+
scope: string;
|
|
111
|
+
baseClass: any;
|
|
112
|
+
/**
|
|
113
|
+
* Convert all registered commands into a `{ schemas, handlers }` object
|
|
114
|
+
* compatible with `assistant.use()`.
|
|
115
|
+
*
|
|
116
|
+
* Each command becomes a tool whose parameters come from the command's
|
|
117
|
+
* `argsSchema` (with internal CLI fields stripped) and whose handler
|
|
118
|
+
* dispatches the command headlessly, returning `{ exitCode, stdout, stderr }`.
|
|
119
|
+
*
|
|
120
|
+
* @param container - The container used to instantiate and dispatch commands
|
|
121
|
+
* @param options - Optional filter/transform options
|
|
122
|
+
* @param options.include - Only include these command names (default: all)
|
|
123
|
+
* @param options.exclude - Exclude these command names (default: none)
|
|
124
|
+
* @param options.prefix - Prefix tool names (e.g. 'luca_' → 'luca_eval')
|
|
125
|
+
*/
|
|
126
|
+
toTools(container: Container<any> & CommandsInterface, options?: {
|
|
127
|
+
include?: string[];
|
|
128
|
+
exclude?: string[];
|
|
129
|
+
prefix?: string;
|
|
130
|
+
}): {
|
|
131
|
+
schemas: Record<string, z.ZodType>;
|
|
132
|
+
handlers: Record<string, Function>;
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* Internal: register a command from a handler function.
|
|
136
|
+
* Used by built-in commands. External commands should use the module export pattern.
|
|
137
|
+
*/
|
|
138
|
+
registerHandler<T = any>(name: string, opts: {
|
|
139
|
+
description?: string;
|
|
140
|
+
argsSchema?: z.ZodType;
|
|
141
|
+
handler: CommandHandler<T>;
|
|
142
|
+
}): new (options: any, context: ContainerContext) => Command<any, {
|
|
143
|
+
_: string[];
|
|
144
|
+
dispatchSource: "cli" | "headless" | "mcp" | "rpc";
|
|
145
|
+
name?: string | undefined;
|
|
146
|
+
_cacheKey?: string | undefined;
|
|
147
|
+
}>;
|
|
148
|
+
/**
|
|
149
|
+
* Discover and register commands from a directory.
|
|
150
|
+
* Detection order:
|
|
151
|
+
* 1. Default export is a class extending Command → register directly
|
|
152
|
+
* 2. Module exports a `run` function → graft as SimpleCommand
|
|
153
|
+
* 3. Module exports a `handler` function → legacy graft
|
|
154
|
+
*/
|
|
155
|
+
discover(options: {
|
|
156
|
+
directory: string;
|
|
157
|
+
}): Promise<void>;
|
|
158
|
+
}
|
|
159
|
+
export declare const commands: CommandsRegistry;
|
|
160
|
+
export declare const helperCache: Map<any, any>;
|
|
161
|
+
export { graftModule, isNativeHelperClass } from './graft.js';
|
|
162
|
+
export default Command;
|
|
163
|
+
//# sourceMappingURL=command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare module '../command.js' {
|
|
3
|
+
interface AvailableCommands {
|
|
4
|
+
bootstrap: ReturnType<typeof commands.registerHandler>;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
export declare const argsSchema: z.ZodObject<{
|
|
8
|
+
name: z.ZodOptional<z.ZodString>;
|
|
9
|
+
_cacheKey: z.ZodOptional<z.ZodString>;
|
|
10
|
+
_: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
11
|
+
dispatchSource: z.ZodDefault<z.ZodEnum<{
|
|
12
|
+
cli: "cli";
|
|
13
|
+
headless: "headless";
|
|
14
|
+
mcp: "mcp";
|
|
15
|
+
rpc: "rpc";
|
|
16
|
+
}>>;
|
|
17
|
+
output: z.ZodDefault<z.ZodString>;
|
|
18
|
+
'update-skill': z.ZodDefault<z.ZodBoolean>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
//# sourceMappingURL=bootstrap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../../src/commands/bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAOvB,OAAO,QAAQ,eAAe,CAAC;IAC9B,UAAU,iBAAiB;QAC1B,SAAS,EAAE,UAAU,CAAC,OAAO,QAAQ,CAAC,eAAe,CAAC,CAAA;KACtD;CACD;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;iBAGrB,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { ContainerContext } from '../container';
|
|
3
|
+
declare module '../command.js' {
|
|
4
|
+
interface AvailableCommands {
|
|
5
|
+
chat: ReturnType<typeof commands.registerHandler>;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export declare const argsSchema: z.ZodObject<{
|
|
9
|
+
name: z.ZodOptional<z.ZodString>;
|
|
10
|
+
_cacheKey: z.ZodOptional<z.ZodString>;
|
|
11
|
+
_: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
12
|
+
dispatchSource: z.ZodDefault<z.ZodEnum<{
|
|
13
|
+
cli: "cli";
|
|
14
|
+
headless: "headless";
|
|
15
|
+
mcp: "mcp";
|
|
16
|
+
rpc: "rpc";
|
|
17
|
+
}>>;
|
|
18
|
+
model: z.ZodOptional<z.ZodString>;
|
|
19
|
+
local: z.ZodDefault<z.ZodBoolean>;
|
|
20
|
+
resume: z.ZodOptional<z.ZodString>;
|
|
21
|
+
list: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
historyMode: z.ZodOptional<z.ZodEnum<{
|
|
23
|
+
session: "session";
|
|
24
|
+
lifecycle: "lifecycle";
|
|
25
|
+
daily: "daily";
|
|
26
|
+
persistent: "persistent";
|
|
27
|
+
}>>;
|
|
28
|
+
offRecord: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
+
clear: z.ZodOptional<z.ZodBoolean>;
|
|
30
|
+
prependPrompt: z.ZodOptional<z.ZodString>;
|
|
31
|
+
appendPrompt: z.ZodOptional<z.ZodString>;
|
|
32
|
+
use: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
33
|
+
forbidTool: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
34
|
+
allowTool: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
export default function chat(options: z.infer<typeof argsSchema>, context: ContainerContext): Promise<void>;
|
|
37
|
+
//# sourceMappingURL=chat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../src/commands/chat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAEpD,OAAO,QAAQ,eAAe,CAAC;IAC9B,UAAU,iBAAiB;QAC1B,IAAI,EAAE,UAAU,CAAC,OAAO,QAAQ,CAAC,eAAe,CAAC,CAAA;KACjD;CACD;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAarB,CAAA;AAEF,wBAA8B,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,EAAE,OAAO,EAAE,gBAAgB,iBAiRhG"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { ContainerContext } from '../container.js';
|
|
3
|
+
import type { AGIFeatures } from '../agi/container.server.js';
|
|
4
|
+
declare module '../command.js' {
|
|
5
|
+
interface AvailableCommands {
|
|
6
|
+
code: ReturnType<typeof commands.registerHandler>;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export declare const argsSchema: z.ZodObject<{
|
|
10
|
+
name: z.ZodOptional<z.ZodString>;
|
|
11
|
+
_cacheKey: z.ZodOptional<z.ZodString>;
|
|
12
|
+
_: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
13
|
+
dispatchSource: z.ZodDefault<z.ZodEnum<{
|
|
14
|
+
cli: "cli";
|
|
15
|
+
headless: "headless";
|
|
16
|
+
mcp: "mcp";
|
|
17
|
+
rpc: "rpc";
|
|
18
|
+
}>>;
|
|
19
|
+
model: z.ZodOptional<z.ZodString>;
|
|
20
|
+
local: z.ZodDefault<z.ZodBoolean>;
|
|
21
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
22
|
+
allowAll: z.ZodDefault<z.ZodBoolean>;
|
|
23
|
+
denyWrites: z.ZodDefault<z.ZodBoolean>;
|
|
24
|
+
skills: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
export declare const positionals: string[];
|
|
27
|
+
export default function code(options: z.infer<typeof argsSchema>, context: ContainerContext<AGIFeatures>): Promise<void>;
|
|
28
|
+
//# sourceMappingURL=code.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code.d.ts","sourceRoot":"","sources":["../../src/commands/code.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AACvD,OAAO,KAAK,EAAgB,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAE3E,OAAO,QAAQ,eAAe,CAAC;IAC9B,UAAU,iBAAiB;QAC1B,IAAI,EAAE,UAAU,CAAC,OAAO,QAAQ,CAAC,eAAe,CAAC,CAAA;KACjD;CACD;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;iBAOrB,CAAA;AAEF,eAAO,MAAM,WAAW,UAAa,CAAA;AAErC,wBAA8B,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,EAAE,OAAO,EAAE,gBAAgB,CAAC,WAAW,CAAC,iBAkV7G"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { ContainerContext } from '../container.js';
|
|
3
|
+
declare module '../command.js' {
|
|
4
|
+
interface AvailableCommands {
|
|
5
|
+
console: ReturnType<typeof commands.registerHandler>;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export declare const argsSchema: z.ZodObject<{
|
|
9
|
+
name: z.ZodOptional<z.ZodString>;
|
|
10
|
+
_cacheKey: z.ZodOptional<z.ZodString>;
|
|
11
|
+
_: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
12
|
+
dispatchSource: z.ZodDefault<z.ZodEnum<{
|
|
13
|
+
cli: "cli";
|
|
14
|
+
headless: "headless";
|
|
15
|
+
mcp: "mcp";
|
|
16
|
+
rpc: "rpc";
|
|
17
|
+
}>>;
|
|
18
|
+
enable: z.ZodOptional<z.ZodString>;
|
|
19
|
+
eval: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export default function lucaConsole(options: z.infer<typeof argsSchema>, context: ContainerContext): Promise<void>;
|
|
22
|
+
//# sourceMappingURL=console.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"console.d.ts","sourceRoot":"","sources":["../../src/commands/console.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAEvD,OAAO,QAAQ,eAAe,CAAC;IAC9B,UAAU,iBAAiB;QAC1B,OAAO,EAAE,UAAU,CAAC,OAAO,QAAQ,CAAC,eAAe,CAAC,CAAA;KACpD;CACD;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;iBAGrB,CAAA;AAoFF,wBAA8B,WAAW,CAAC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,EAAE,OAAO,EAAE,gBAAgB,iBAoFvG"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { ContainerContext } from '../container.js';
|
|
3
|
+
declare module '../command.js' {
|
|
4
|
+
interface AvailableCommands {
|
|
5
|
+
describe: ReturnType<typeof commands.registerHandler>;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export declare const argsSchema: z.ZodObject<{
|
|
9
|
+
name: z.ZodOptional<z.ZodString>;
|
|
10
|
+
_cacheKey: z.ZodOptional<z.ZodString>;
|
|
11
|
+
_: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
12
|
+
dispatchSource: z.ZodDefault<z.ZodEnum<{
|
|
13
|
+
cli: "cli";
|
|
14
|
+
headless: "headless";
|
|
15
|
+
mcp: "mcp";
|
|
16
|
+
rpc: "rpc";
|
|
17
|
+
}>>;
|
|
18
|
+
json: z.ZodDefault<z.ZodBoolean>;
|
|
19
|
+
typescript: z.ZodDefault<z.ZodBoolean>;
|
|
20
|
+
ts: z.ZodDefault<z.ZodBoolean>;
|
|
21
|
+
pretty: z.ZodDefault<z.ZodBoolean>;
|
|
22
|
+
title: z.ZodDefault<z.ZodBoolean>;
|
|
23
|
+
description: z.ZodDefault<z.ZodBoolean>;
|
|
24
|
+
usage: z.ZodDefault<z.ZodBoolean>;
|
|
25
|
+
methods: z.ZodDefault<z.ZodBoolean>;
|
|
26
|
+
getters: z.ZodDefault<z.ZodBoolean>;
|
|
27
|
+
events: z.ZodDefault<z.ZodBoolean>;
|
|
28
|
+
state: z.ZodDefault<z.ZodBoolean>;
|
|
29
|
+
options: z.ZodDefault<z.ZodBoolean>;
|
|
30
|
+
'env-vars': z.ZodDefault<z.ZodBoolean>;
|
|
31
|
+
envvars: z.ZodDefault<z.ZodBoolean>;
|
|
32
|
+
examples: z.ZodDefault<z.ZodBoolean>;
|
|
33
|
+
'only-methods': z.ZodDefault<z.ZodBoolean>;
|
|
34
|
+
'only-getters': z.ZodDefault<z.ZodBoolean>;
|
|
35
|
+
'only-events': z.ZodDefault<z.ZodBoolean>;
|
|
36
|
+
'only-state': z.ZodDefault<z.ZodBoolean>;
|
|
37
|
+
'only-options': z.ZodDefault<z.ZodBoolean>;
|
|
38
|
+
'only-env-vars': z.ZodDefault<z.ZodBoolean>;
|
|
39
|
+
'only-envvars': z.ZodDefault<z.ZodBoolean>;
|
|
40
|
+
'only-examples': z.ZodDefault<z.ZodBoolean>;
|
|
41
|
+
platform: z.ZodDefault<z.ZodEnum<{
|
|
42
|
+
server: "server";
|
|
43
|
+
all: "all";
|
|
44
|
+
browser: "browser";
|
|
45
|
+
node: "node";
|
|
46
|
+
web: "web";
|
|
47
|
+
}>>;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
export default function describe(options: z.infer<typeof argsSchema>, context: ContainerContext): Promise<void>;
|
|
50
|
+
//# sourceMappingURL=describe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"describe.d.ts","sourceRoot":"","sources":["../../src/commands/describe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAQvD,OAAO,QAAQ,eAAe,CAAC;IAC9B,UAAU,iBAAiB;QAC1B,QAAQ,EAAE,UAAU,CAAC,OAAO,QAAQ,CAAC,eAAe,CAAC,CAAA;KACrD;CACD;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2BrB,CAAA;AAuFF,wBAA8B,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,EAAE,OAAO,EAAE,gBAAgB,iBAgDpG"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { ContainerContext } from '../container.js';
|
|
3
|
+
declare module '../command.js' {
|
|
4
|
+
interface AvailableCommands {
|
|
5
|
+
eval: ReturnType<typeof commands.registerHandler>;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export declare const argsSchema: z.ZodObject<{
|
|
9
|
+
name: z.ZodOptional<z.ZodString>;
|
|
10
|
+
_cacheKey: z.ZodOptional<z.ZodString>;
|
|
11
|
+
_: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
12
|
+
dispatchSource: z.ZodDefault<z.ZodEnum<{
|
|
13
|
+
cli: "cli";
|
|
14
|
+
headless: "headless";
|
|
15
|
+
mcp: "mcp";
|
|
16
|
+
rpc: "rpc";
|
|
17
|
+
}>>;
|
|
18
|
+
json: z.ZodDefault<z.ZodBoolean>;
|
|
19
|
+
enable: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export default function evalCommand(options: z.infer<typeof argsSchema>, context: ContainerContext): Promise<void>;
|
|
22
|
+
export declare function displayResult(value: any): void;
|
|
23
|
+
//# sourceMappingURL=eval.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eval.d.ts","sourceRoot":"","sources":["../../src/commands/eval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAEvD,OAAO,QAAQ,eAAe,CAAC;IAC9B,UAAU,iBAAiB;QAC1B,IAAI,EAAE,UAAU,CAAC,OAAO,QAAQ,CAAC,eAAe,CAAC,CAAA;KACjD;CACD;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;iBAGrB,CAAA;AAEF,wBAA8B,WAAW,CAAC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,EAAE,OAAO,EAAE,gBAAgB,iBAyCvG;AAID,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,QAoDvC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { ContainerContext } from '../container.js';
|
|
3
|
+
declare module '../command.js' {
|
|
4
|
+
interface AvailableCommands {
|
|
5
|
+
help: ReturnType<typeof commands.registerHandler>;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export declare const argsSchema: z.ZodObject<{
|
|
9
|
+
name: z.ZodOptional<z.ZodString>;
|
|
10
|
+
_cacheKey: z.ZodOptional<z.ZodString>;
|
|
11
|
+
_: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
12
|
+
dispatchSource: z.ZodDefault<z.ZodEnum<{
|
|
13
|
+
cli: "cli";
|
|
14
|
+
headless: "headless";
|
|
15
|
+
mcp: "mcp";
|
|
16
|
+
rpc: "rpc";
|
|
17
|
+
}>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
/**
|
|
20
|
+
* Format CLI-oriented help text for a single command.
|
|
21
|
+
* Exported so other commands (like describe) can reuse it.
|
|
22
|
+
*/
|
|
23
|
+
export declare function formatCommandHelp(name: string, Cmd: any, colors: any): string;
|
|
24
|
+
export default function help(_options: z.infer<typeof argsSchema>, context: ContainerContext): Promise<void>;
|
|
25
|
+
//# sourceMappingURL=help.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../../src/commands/help.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAEvD,OAAO,QAAQ,eAAe,CAAC;IAC9B,UAAU,iBAAiB;QAC1B,IAAI,EAAE,UAAU,CAAC,OAAO,QAAQ,CAAC,eAAe,CAAC,CAAA;KACjD;CACD;AAED,eAAO,MAAM,UAAU;;;;;;;;;;iBAAkC,CAAA;AA+CzD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,GAAG,MAAM,CAoD7E;AAiCD,wBAA8B,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,EAAE,OAAO,EAAE,gBAAgB,iBAsFjG"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { Command, commands, CommandsRegistry, type AvailableCommands, type CommandsInterface, type CommandHandler, type CommandState, type CommandOptions } from '../command.js';
|
|
2
|
+
import './run.js';
|
|
3
|
+
import './console.js';
|
|
4
|
+
import './serve.js';
|
|
5
|
+
import './chat.js';
|
|
6
|
+
import './prompt.js';
|
|
7
|
+
import './mcp.js';
|
|
8
|
+
import './sandbox-mcp.js';
|
|
9
|
+
import './describe.js';
|
|
10
|
+
import './eval.js';
|
|
11
|
+
import './help.js';
|
|
12
|
+
import './scaffold.js';
|
|
13
|
+
import './introspect.js';
|
|
14
|
+
import './save-api-docs.js';
|
|
15
|
+
import './bootstrap.js';
|
|
16
|
+
import './select.js';
|
|
17
|
+
import './code.js';
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,KAAK,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,KAAK,cAAc,EAAE,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,eAAe,CAAA;AAGhL,OAAO,UAAU,CAAA;AACjB,OAAO,cAAc,CAAA;AACrB,OAAO,YAAY,CAAA;AACnB,OAAO,WAAW,CAAA;AAClB,OAAO,aAAa,CAAA;AACpB,OAAO,UAAU,CAAA;AACjB,OAAO,kBAAkB,CAAA;AACzB,OAAO,eAAe,CAAA;AACtB,OAAO,WAAW,CAAA;AAClB,OAAO,WAAW,CAAA;AAClB,OAAO,eAAe,CAAA;AACtB,OAAO,iBAAiB,CAAA;AACxB,OAAO,oBAAoB,CAAA;AAC3B,OAAO,gBAAgB,CAAA;AACvB,OAAO,aAAa,CAAA;AACpB,OAAO,WAAW,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import '../introspection/scan.js';
|
|
3
|
+
declare module '../command.js' {
|
|
4
|
+
interface AvailableCommands {
|
|
5
|
+
introspect: ReturnType<typeof commands.registerHandler>;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export declare const argsSchema: z.ZodObject<{
|
|
9
|
+
name: z.ZodOptional<z.ZodString>;
|
|
10
|
+
_cacheKey: z.ZodOptional<z.ZodString>;
|
|
11
|
+
_: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
12
|
+
dispatchSource: z.ZodDefault<z.ZodEnum<{
|
|
13
|
+
cli: "cli";
|
|
14
|
+
headless: "headless";
|
|
15
|
+
mcp: "mcp";
|
|
16
|
+
rpc: "rpc";
|
|
17
|
+
}>>;
|
|
18
|
+
src: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
19
|
+
output: z.ZodOptional<z.ZodString>;
|
|
20
|
+
'dry-run': z.ZodDefault<z.ZodBoolean>;
|
|
21
|
+
'include-private': z.ZodDefault<z.ZodBoolean>;
|
|
22
|
+
lint: z.ZodDefault<z.ZodBoolean>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
//# sourceMappingURL=introspect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"introspect.d.ts","sourceRoot":"","sources":["../../src/commands/introspect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,OAAO,0BAA0B,CAAA;AAEjC,OAAO,QAAQ,eAAe,CAAC;IAC9B,UAAU,iBAAiB;QAC1B,UAAU,EAAE,UAAU,CAAC,OAAO,QAAQ,CAAC,eAAe,CAAC,CAAA;KACvD;CACD;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;iBAMrB,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { ContainerContext } from '../container.js';
|
|
3
|
+
declare module '../command.js' {
|
|
4
|
+
interface AvailableCommands {
|
|
5
|
+
mcp: ReturnType<typeof commands.registerHandler>;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export declare const argsSchema: z.ZodObject<{
|
|
9
|
+
_cacheKey: z.ZodOptional<z.ZodString>;
|
|
10
|
+
_: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
11
|
+
dispatchSource: z.ZodDefault<z.ZodEnum<{
|
|
12
|
+
cli: "cli";
|
|
13
|
+
headless: "headless";
|
|
14
|
+
mcp: "mcp";
|
|
15
|
+
rpc: "rpc";
|
|
16
|
+
}>>;
|
|
17
|
+
transport: z.ZodDefault<z.ZodEnum<{
|
|
18
|
+
stdio: "stdio";
|
|
19
|
+
http: "http";
|
|
20
|
+
}>>;
|
|
21
|
+
port: z.ZodDefault<z.ZodNumber>;
|
|
22
|
+
name: z.ZodOptional<z.ZodString>;
|
|
23
|
+
version: z.ZodOptional<z.ZodString>;
|
|
24
|
+
mcpCompat: z.ZodOptional<z.ZodEnum<{
|
|
25
|
+
standard: "standard";
|
|
26
|
+
codex: "codex";
|
|
27
|
+
}>>;
|
|
28
|
+
stdioCompat: z.ZodOptional<z.ZodEnum<{
|
|
29
|
+
standard: "standard";
|
|
30
|
+
codex: "codex";
|
|
31
|
+
auto: "auto";
|
|
32
|
+
}>>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
export default function mcp(options: z.infer<typeof argsSchema>, context: ContainerContext): Promise<void>;
|
|
35
|
+
//# sourceMappingURL=mcp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../src/commands/mcp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAGvD,OAAO,QAAQ,eAAe,CAAC;IAC9B,UAAU,iBAAiB;QAC1B,GAAG,EAAE,UAAU,CAAC,OAAO,QAAQ,CAAC,eAAe,CAAC,CAAA;KAChD;CACD;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;iBASrB,CAAA;AAEF,wBAA8B,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,EAAE,OAAO,EAAE,gBAAgB,iBAkC/F"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { ContainerContext } from '../container.js';
|
|
3
|
+
declare module '../command.js' {
|
|
4
|
+
interface AvailableCommands {
|
|
5
|
+
prompt: ReturnType<typeof commands.registerHandler>;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export declare const argsSchema: z.ZodObject<{
|
|
9
|
+
name: z.ZodOptional<z.ZodString>;
|
|
10
|
+
_cacheKey: z.ZodOptional<z.ZodString>;
|
|
11
|
+
_: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
12
|
+
dispatchSource: z.ZodDefault<z.ZodEnum<{
|
|
13
|
+
cli: "cli";
|
|
14
|
+
headless: "headless";
|
|
15
|
+
mcp: "mcp";
|
|
16
|
+
rpc: "rpc";
|
|
17
|
+
}>>;
|
|
18
|
+
model: z.ZodOptional<z.ZodString>;
|
|
19
|
+
'include-frontmatter': z.ZodDefault<z.ZodBoolean>;
|
|
20
|
+
'skip-eval': z.ZodDefault<z.ZodBoolean>;
|
|
21
|
+
'permission-mode': z.ZodDefault<z.ZodEnum<{
|
|
22
|
+
default: "default";
|
|
23
|
+
acceptEdits: "acceptEdits";
|
|
24
|
+
bypassPermissions: "bypassPermissions";
|
|
25
|
+
plan: "plan";
|
|
26
|
+
}>>;
|
|
27
|
+
'in-folder': z.ZodOptional<z.ZodString>;
|
|
28
|
+
'out-file': z.ZodOptional<z.ZodString>;
|
|
29
|
+
'include-output': z.ZodDefault<z.ZodBoolean>;
|
|
30
|
+
'inputs-file': z.ZodOptional<z.ZodString>;
|
|
31
|
+
parallel: z.ZodDefault<z.ZodBoolean>;
|
|
32
|
+
'exclude-sections': z.ZodOptional<z.ZodString>;
|
|
33
|
+
chrome: z.ZodDefault<z.ZodBoolean>;
|
|
34
|
+
'dry-run': z.ZodDefault<z.ZodBoolean>;
|
|
35
|
+
local: z.ZodDefault<z.ZodBoolean>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
export default function prompt(options: z.infer<typeof argsSchema>, context: ContainerContext): Promise<void>;
|
|
38
|
+
//# sourceMappingURL=prompt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../../src/commands/prompt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAEvD,OAAO,QAAQ,eAAe,CAAC;IAC9B,UAAU,iBAAiB;QAC1B,MAAM,EAAE,UAAU,CAAC,OAAO,QAAQ,CAAC,eAAe,CAAC,CAAA;KACnD;CACD;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAcrB,CAAA;AAqzBF,wBAA8B,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,EAAE,OAAO,EAAE,gBAAgB,iBAgIlG"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { ContainerContext } from '../container.js';
|
|
3
|
+
declare module '../command.js' {
|
|
4
|
+
interface AvailableCommands {
|
|
5
|
+
run: ReturnType<typeof commands.registerHandler>;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export declare const argsSchema: z.ZodObject<{
|
|
9
|
+
name: z.ZodOptional<z.ZodString>;
|
|
10
|
+
_cacheKey: z.ZodOptional<z.ZodString>;
|
|
11
|
+
_: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
12
|
+
dispatchSource: z.ZodDefault<z.ZodEnum<{
|
|
13
|
+
cli: "cli";
|
|
14
|
+
headless: "headless";
|
|
15
|
+
mcp: "mcp";
|
|
16
|
+
rpc: "rpc";
|
|
17
|
+
}>>;
|
|
18
|
+
safe: z.ZodDefault<z.ZodBoolean>;
|
|
19
|
+
console: z.ZodDefault<z.ZodBoolean>;
|
|
20
|
+
onlySections: z.ZodOptional<z.ZodString>;
|
|
21
|
+
dontInjectContext: z.ZodDefault<z.ZodBoolean>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export default function run(options: z.infer<typeof argsSchema>, context: ContainerContext): Promise<void>;
|
|
24
|
+
//# sourceMappingURL=run.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/commands/run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAEvD,OAAO,QAAQ,eAAe,CAAC;IAC9B,UAAU,iBAAiB;QAC1B,GAAG,EAAE,UAAU,CAAC,OAAO,QAAQ,CAAC,eAAe,CAAC,CAAA;KAChD;CACD;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;iBAKrB,CAAA;AA+MF,wBAA8B,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,EAAE,OAAO,EAAE,gBAAgB,iBAgD/F"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { ContainerContext } from '../container.js';
|
|
3
|
+
declare module '../command.js' {
|
|
4
|
+
interface AvailableCommands {
|
|
5
|
+
'sandbox-mcp': ReturnType<typeof commands.registerHandler>;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export declare const argsSchema: z.ZodObject<{
|
|
9
|
+
name: z.ZodOptional<z.ZodString>;
|
|
10
|
+
_cacheKey: z.ZodOptional<z.ZodString>;
|
|
11
|
+
_: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
12
|
+
dispatchSource: z.ZodDefault<z.ZodEnum<{
|
|
13
|
+
cli: "cli";
|
|
14
|
+
headless: "headless";
|
|
15
|
+
mcp: "mcp";
|
|
16
|
+
rpc: "rpc";
|
|
17
|
+
}>>;
|
|
18
|
+
transport: z.ZodDefault<z.ZodEnum<{
|
|
19
|
+
stdio: "stdio";
|
|
20
|
+
http: "http";
|
|
21
|
+
}>>;
|
|
22
|
+
port: z.ZodDefault<z.ZodNumber>;
|
|
23
|
+
mcpCompat: z.ZodOptional<z.ZodEnum<{
|
|
24
|
+
standard: "standard";
|
|
25
|
+
codex: "codex";
|
|
26
|
+
}>>;
|
|
27
|
+
stdioCompat: z.ZodOptional<z.ZodEnum<{
|
|
28
|
+
standard: "standard";
|
|
29
|
+
codex: "codex";
|
|
30
|
+
auto: "auto";
|
|
31
|
+
}>>;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
export default function mcpSandbox(options: z.infer<typeof argsSchema>, context: ContainerContext): Promise<void>;
|
|
34
|
+
//# sourceMappingURL=sandbox-mcp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sandbox-mcp.d.ts","sourceRoot":"","sources":["../../src/commands/sandbox-mcp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAKvD,OAAO,QAAQ,eAAe,CAAC;IAC9B,UAAU,iBAAiB;QAC1B,aAAa,EAAE,UAAU,CAAC,OAAO,QAAQ,CAAC,eAAe,CAAC,CAAA;KAC1D;CACD;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;iBAOrB,CAAA;AAEF,wBAA8B,UAAU,CAAC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,EAAE,OAAO,EAAE,gBAAgB,iBAuZtG"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { ContainerContext } from '../container.js';
|
|
3
|
+
declare module '../command.js' {
|
|
4
|
+
interface AvailableCommands {
|
|
5
|
+
introspect: ReturnType<typeof commands.registerHandler>;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export declare const argsSchema: z.ZodObject<{
|
|
9
|
+
name: z.ZodOptional<z.ZodString>;
|
|
10
|
+
_cacheKey: z.ZodOptional<z.ZodString>;
|
|
11
|
+
_: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
12
|
+
dispatchSource: z.ZodDefault<z.ZodEnum<{
|
|
13
|
+
cli: "cli";
|
|
14
|
+
headless: "headless";
|
|
15
|
+
mcp: "mcp";
|
|
16
|
+
rpc: "rpc";
|
|
17
|
+
}>>;
|
|
18
|
+
outputPath: z.ZodDefault<z.ZodString>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export declare function apiDocs(options: z.infer<typeof argsSchema>, context: ContainerContext): Promise<void>;
|
|
21
|
+
//# sourceMappingURL=save-api-docs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"save-api-docs.d.ts","sourceRoot":"","sources":["../../src/commands/save-api-docs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAEvD,OAAO,QAAQ,eAAe,CAAC;IAC9B,UAAU,iBAAiB;QAC1B,UAAU,EAAE,UAAU,CAAC,OAAO,QAAQ,CAAC,eAAe,CAAC,CAAA;KACvD;CACD;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;iBAErB,CAAA;AAEF,wBAAsB,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,EAAE,OAAO,EAAE,gBAAgB,iBA2B3F"}
|