@jait/gateway 0.1.0
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/bin/jait.mjs +144 -0
- package/dist/config.d.ts +24 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +73 -0
- package/dist/config.js.map +1 -0
- package/dist/db/connection.d.ts +37 -0
- package/dist/db/connection.d.ts.map +1 -0
- package/dist/db/connection.js +85 -0
- package/dist/db/connection.js.map +1 -0
- package/dist/db/index.d.ts +4 -0
- package/dist/db/index.d.ts.map +1 -0
- package/dist/db/index.js +4 -0
- package/dist/db/index.js.map +1 -0
- package/dist/db/migrations.d.ts +24 -0
- package/dist/db/migrations.d.ts.map +1 -0
- package/dist/db/migrations.js +312 -0
- package/dist/db/migrations.js.map +1 -0
- package/dist/db/schema.d.ts +2253 -0
- package/dist/db/schema.d.ts.map +1 -0
- package/dist/db/schema.js +195 -0
- package/dist/db/schema.js.map +1 -0
- package/dist/foundation.d.ts +26 -0
- package/dist/foundation.d.ts.map +1 -0
- package/dist/foundation.js +15 -0
- package/dist/foundation.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +413 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/uuidv7.d.ts +10 -0
- package/dist/lib/uuidv7.d.ts.map +1 -0
- package/dist/lib/uuidv7.js +33 -0
- package/dist/lib/uuidv7.js.map +1 -0
- package/dist/memory/contracts.d.ts +42 -0
- package/dist/memory/contracts.d.ts.map +1 -0
- package/dist/memory/contracts.js +2 -0
- package/dist/memory/contracts.js.map +1 -0
- package/dist/memory/embeddings.d.ts +4 -0
- package/dist/memory/embeddings.d.ts.map +1 -0
- package/dist/memory/embeddings.js +26 -0
- package/dist/memory/embeddings.js.map +1 -0
- package/dist/memory/service.d.ts +17 -0
- package/dist/memory/service.d.ts.map +1 -0
- package/dist/memory/service.js +82 -0
- package/dist/memory/service.js.map +1 -0
- package/dist/memory/sqlite-backend.d.ts +11 -0
- package/dist/memory/sqlite-backend.d.ts.map +1 -0
- package/dist/memory/sqlite-backend.js +68 -0
- package/dist/memory/sqlite-backend.js.map +1 -0
- package/dist/plugins/contracts.d.ts +11 -0
- package/dist/plugins/contracts.d.ts.map +1 -0
- package/dist/plugins/contracts.js +2 -0
- package/dist/plugins/contracts.js.map +1 -0
- package/dist/providers/claude-code-provider.d.ts +39 -0
- package/dist/providers/claude-code-provider.d.ts.map +1 -0
- package/dist/providers/claude-code-provider.js +322 -0
- package/dist/providers/claude-code-provider.js.map +1 -0
- package/dist/providers/codex-provider.d.ts +51 -0
- package/dist/providers/codex-provider.d.ts.map +1 -0
- package/dist/providers/codex-provider.js +826 -0
- package/dist/providers/codex-provider.js.map +1 -0
- package/dist/providers/contracts.d.ts +167 -0
- package/dist/providers/contracts.d.ts.map +1 -0
- package/dist/providers/contracts.js +13 -0
- package/dist/providers/contracts.js.map +1 -0
- package/dist/providers/index.d.ts +6 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/providers/index.js +5 -0
- package/dist/providers/index.js.map +1 -0
- package/dist/providers/jait-provider.d.ts +23 -0
- package/dist/providers/jait-provider.d.ts.map +1 -0
- package/dist/providers/jait-provider.js +67 -0
- package/dist/providers/jait-provider.js.map +1 -0
- package/dist/providers/registry.d.ts +39 -0
- package/dist/providers/registry.d.ts.map +1 -0
- package/dist/providers/registry.js +64 -0
- package/dist/providers/registry.js.map +1 -0
- package/dist/pty-broker-client.d.ts +46 -0
- package/dist/pty-broker-client.d.ts.map +1 -0
- package/dist/pty-broker-client.js +142 -0
- package/dist/pty-broker-client.js.map +1 -0
- package/dist/routes/auth.d.ts +6 -0
- package/dist/routes/auth.d.ts.map +1 -0
- package/dist/routes/auth.js +236 -0
- package/dist/routes/auth.js.map +1 -0
- package/dist/routes/chat.d.ts +32 -0
- package/dist/routes/chat.d.ts.map +1 -0
- package/dist/routes/chat.js +1503 -0
- package/dist/routes/chat.js.map +1 -0
- package/dist/routes/consent.d.ts +10 -0
- package/dist/routes/consent.d.ts.map +1 -0
- package/dist/routes/consent.js +127 -0
- package/dist/routes/consent.js.map +1 -0
- package/dist/routes/filesystem.d.ts +14 -0
- package/dist/routes/filesystem.d.ts.map +1 -0
- package/dist/routes/filesystem.js +152 -0
- package/dist/routes/filesystem.js.map +1 -0
- package/dist/routes/git.d.ts +17 -0
- package/dist/routes/git.d.ts.map +1 -0
- package/dist/routes/git.js +213 -0
- package/dist/routes/git.js.map +1 -0
- package/dist/routes/health.d.ts +7 -0
- package/dist/routes/health.d.ts.map +1 -0
- package/dist/routes/health.js +21 -0
- package/dist/routes/health.js.map +1 -0
- package/dist/routes/hooks.d.ts +9 -0
- package/dist/routes/hooks.d.ts.map +1 -0
- package/dist/routes/hooks.js +22 -0
- package/dist/routes/hooks.js.map +1 -0
- package/dist/routes/jobs.d.ts +5 -0
- package/dist/routes/jobs.d.ts.map +1 -0
- package/dist/routes/jobs.js +333 -0
- package/dist/routes/jobs.js.map +1 -0
- package/dist/routes/mcp-server.d.ts +23 -0
- package/dist/routes/mcp-server.d.ts.map +1 -0
- package/dist/routes/mcp-server.js +177 -0
- package/dist/routes/mcp-server.js.map +1 -0
- package/dist/routes/mobile.d.ts +12 -0
- package/dist/routes/mobile.d.ts.map +1 -0
- package/dist/routes/mobile.js +64 -0
- package/dist/routes/mobile.js.map +1 -0
- package/dist/routes/network.d.ts +3 -0
- package/dist/routes/network.d.ts.map +1 -0
- package/dist/routes/network.js +367 -0
- package/dist/routes/network.js.map +1 -0
- package/dist/routes/repositories.d.ts +18 -0
- package/dist/routes/repositories.d.ts.map +1 -0
- package/dist/routes/repositories.js +90 -0
- package/dist/routes/repositories.js.map +1 -0
- package/dist/routes/screen-share.d.ts +17 -0
- package/dist/routes/screen-share.d.ts.map +1 -0
- package/dist/routes/screen-share.js +92 -0
- package/dist/routes/screen-share.js.map +1 -0
- package/dist/routes/sessions.d.ts +18 -0
- package/dist/routes/sessions.d.ts.map +1 -0
- package/dist/routes/sessions.js +169 -0
- package/dist/routes/sessions.js.map +1 -0
- package/dist/routes/terminals.d.ts +15 -0
- package/dist/routes/terminals.d.ts.map +1 -0
- package/dist/routes/terminals.js +326 -0
- package/dist/routes/terminals.js.map +1 -0
- package/dist/routes/threads.d.ts +38 -0
- package/dist/routes/threads.d.ts.map +1 -0
- package/dist/routes/threads.js +488 -0
- package/dist/routes/threads.js.map +1 -0
- package/dist/routes/trust.d.ts +9 -0
- package/dist/routes/trust.d.ts.map +1 -0
- package/dist/routes/trust.js +25 -0
- package/dist/routes/trust.js.map +1 -0
- package/dist/routes/voice.d.ts +5 -0
- package/dist/routes/voice.d.ts.map +1 -0
- package/dist/routes/voice.js +37 -0
- package/dist/routes/voice.js.map +1 -0
- package/dist/routes/workspace.d.ts +13 -0
- package/dist/routes/workspace.d.ts.map +1 -0
- package/dist/routes/workspace.js +275 -0
- package/dist/routes/workspace.js.map +1 -0
- package/dist/scheduler/contracts.d.ts +15 -0
- package/dist/scheduler/contracts.d.ts.map +1 -0
- package/dist/scheduler/contracts.js +2 -0
- package/dist/scheduler/contracts.js.map +1 -0
- package/dist/scheduler/hooks.d.ts +20 -0
- package/dist/scheduler/hooks.d.ts.map +1 -0
- package/dist/scheduler/hooks.js +78 -0
- package/dist/scheduler/hooks.js.map +1 -0
- package/dist/scheduler/service.d.ts +65 -0
- package/dist/scheduler/service.d.ts.map +1 -0
- package/dist/scheduler/service.js +188 -0
- package/dist/scheduler/service.js.map +1 -0
- package/dist/security/consent-executor.d.ts +48 -0
- package/dist/security/consent-executor.d.ts.map +1 -0
- package/dist/security/consent-executor.js +158 -0
- package/dist/security/consent-executor.js.map +1 -0
- package/dist/security/consent-manager.d.ts +105 -0
- package/dist/security/consent-manager.d.ts.map +1 -0
- package/dist/security/consent-manager.js +227 -0
- package/dist/security/consent-manager.js.map +1 -0
- package/dist/security/contracts.d.ts +31 -0
- package/dist/security/contracts.d.ts.map +1 -0
- package/dist/security/contracts.js +2 -0
- package/dist/security/contracts.js.map +1 -0
- package/dist/security/http-auth.d.ts +10 -0
- package/dist/security/http-auth.d.ts.map +1 -0
- package/dist/security/http-auth.js +48 -0
- package/dist/security/http-auth.js.map +1 -0
- package/dist/security/index.d.ts +10 -0
- package/dist/security/index.d.ts.map +1 -0
- package/dist/security/index.js +9 -0
- package/dist/security/index.js.map +1 -0
- package/dist/security/path-guard.d.ts +40 -0
- package/dist/security/path-guard.d.ts.map +1 -0
- package/dist/security/path-guard.js +125 -0
- package/dist/security/path-guard.js.map +1 -0
- package/dist/security/sandbox-manager.d.ts +43 -0
- package/dist/security/sandbox-manager.d.ts.map +1 -0
- package/dist/security/sandbox-manager.js +110 -0
- package/dist/security/sandbox-manager.js.map +1 -0
- package/dist/security/ssrf-guard.d.ts +11 -0
- package/dist/security/ssrf-guard.d.ts.map +1 -0
- package/dist/security/ssrf-guard.js +59 -0
- package/dist/security/ssrf-guard.js.map +1 -0
- package/dist/security/tool-permissions.d.ts +61 -0
- package/dist/security/tool-permissions.d.ts.map +1 -0
- package/dist/security/tool-permissions.js +105 -0
- package/dist/security/tool-permissions.js.map +1 -0
- package/dist/security/tool-profiles.d.ts +23 -0
- package/dist/security/tool-profiles.d.ts.map +1 -0
- package/dist/security/tool-profiles.js +106 -0
- package/dist/security/tool-profiles.js.map +1 -0
- package/dist/security/trust-engine.d.ts +61 -0
- package/dist/security/trust-engine.d.ts.map +1 -0
- package/dist/security/trust-engine.js +192 -0
- package/dist/security/trust-engine.js.map +1 -0
- package/dist/server.d.ts +54 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +188 -0
- package/dist/server.js.map +1 -0
- package/dist/services/audit.d.ts +60 -0
- package/dist/services/audit.d.ts.map +1 -0
- package/dist/services/audit.js +58 -0
- package/dist/services/audit.js.map +1 -0
- package/dist/services/device-registry.d.ts +15 -0
- package/dist/services/device-registry.d.ts.map +1 -0
- package/dist/services/device-registry.js +32 -0
- package/dist/services/device-registry.js.map +1 -0
- package/dist/services/git.d.ts +168 -0
- package/dist/services/git.d.ts.map +1 -0
- package/dist/services/git.js +957 -0
- package/dist/services/git.js.map +1 -0
- package/dist/services/repositories.d.ts +32 -0
- package/dist/services/repositories.d.ts.map +1 -0
- package/dist/services/repositories.js +70 -0
- package/dist/services/repositories.js.map +1 -0
- package/dist/services/session-state.d.ts +20 -0
- package/dist/services/session-state.d.ts.map +1 -0
- package/dist/services/session-state.js +89 -0
- package/dist/services/session-state.js.map +1 -0
- package/dist/services/sessions.d.ts +68 -0
- package/dist/services/sessions.d.ts.map +1 -0
- package/dist/services/sessions.js +136 -0
- package/dist/services/sessions.js.map +1 -0
- package/dist/services/thread-title.d.ts +23 -0
- package/dist/services/thread-title.d.ts.map +1 -0
- package/dist/services/thread-title.js +141 -0
- package/dist/services/thread-title.js.map +1 -0
- package/dist/services/threads.d.ts +64 -0
- package/dist/services/threads.d.ts.map +1 -0
- package/dist/services/threads.js +202 -0
- package/dist/services/threads.js.map +1 -0
- package/dist/services/users.d.ts +39 -0
- package/dist/services/users.d.ts.map +1 -0
- package/dist/services/users.js +203 -0
- package/dist/services/users.js.map +1 -0
- package/dist/sessions/contracts.d.ts +14 -0
- package/dist/sessions/contracts.d.ts.map +1 -0
- package/dist/sessions/contracts.js +2 -0
- package/dist/sessions/contracts.js.map +1 -0
- package/dist/surfaces/browser.d.ts +65 -0
- package/dist/surfaces/browser.d.ts.map +1 -0
- package/dist/surfaces/browser.js +615 -0
- package/dist/surfaces/browser.js.map +1 -0
- package/dist/surfaces/contracts.d.ts +34 -0
- package/dist/surfaces/contracts.d.ts.map +1 -0
- package/dist/surfaces/contracts.js +2 -0
- package/dist/surfaces/contracts.js.map +1 -0
- package/dist/surfaces/filesystem.d.ts +76 -0
- package/dist/surfaces/filesystem.d.ts.map +1 -0
- package/dist/surfaces/filesystem.js +245 -0
- package/dist/surfaces/filesystem.js.map +1 -0
- package/dist/surfaces/index.d.ts +6 -0
- package/dist/surfaces/index.d.ts.map +1 -0
- package/dist/surfaces/index.js +5 -0
- package/dist/surfaces/index.js.map +1 -0
- package/dist/surfaces/registry.d.ts +24 -0
- package/dist/surfaces/registry.d.ts.map +1 -0
- package/dist/surfaces/registry.js +59 -0
- package/dist/surfaces/registry.js.map +1 -0
- package/dist/surfaces/terminal.d.ts +76 -0
- package/dist/surfaces/terminal.d.ts.map +1 -0
- package/dist/surfaces/terminal.js +271 -0
- package/dist/surfaces/terminal.js.map +1 -0
- package/dist/tools/agent-loop.d.ts +302 -0
- package/dist/tools/agent-loop.d.ts.map +1 -0
- package/dist/tools/agent-loop.js +918 -0
- package/dist/tools/agent-loop.js.map +1 -0
- package/dist/tools/agent-tools.d.ts +39 -0
- package/dist/tools/agent-tools.d.ts.map +1 -0
- package/dist/tools/agent-tools.js +263 -0
- package/dist/tools/agent-tools.js.map +1 -0
- package/dist/tools/browser-tools.d.ts +38 -0
- package/dist/tools/browser-tools.d.ts.map +1 -0
- package/dist/tools/browser-tools.js +725 -0
- package/dist/tools/browser-tools.js.map +1 -0
- package/dist/tools/chat-modes.d.ts +75 -0
- package/dist/tools/chat-modes.d.ts.map +1 -0
- package/dist/tools/chat-modes.js +228 -0
- package/dist/tools/chat-modes.js.map +1 -0
- package/dist/tools/contracts.d.ts +69 -0
- package/dist/tools/contracts.d.ts.map +1 -0
- package/dist/tools/contracts.js +2 -0
- package/dist/tools/contracts.js.map +1 -0
- package/dist/tools/core/agent.d.ts +31 -0
- package/dist/tools/core/agent.d.ts.map +1 -0
- package/dist/tools/core/agent.js +65 -0
- package/dist/tools/core/agent.js.map +1 -0
- package/dist/tools/core/edit.d.ts +30 -0
- package/dist/tools/core/edit.d.ts.map +1 -0
- package/dist/tools/core/edit.js +109 -0
- package/dist/tools/core/edit.js.map +1 -0
- package/dist/tools/core/execute.d.ts +36 -0
- package/dist/tools/core/execute.d.ts.map +1 -0
- package/dist/tools/core/execute.js +81 -0
- package/dist/tools/core/execute.js.map +1 -0
- package/dist/tools/core/get-fs.d.ts +32 -0
- package/dist/tools/core/get-fs.d.ts.map +1 -0
- package/dist/tools/core/get-fs.js +143 -0
- package/dist/tools/core/get-fs.js.map +1 -0
- package/dist/tools/core/index.d.ts +26 -0
- package/dist/tools/core/index.d.ts.map +1 -0
- package/dist/tools/core/index.js +26 -0
- package/dist/tools/core/index.js.map +1 -0
- package/dist/tools/core/jait.d.ts +60 -0
- package/dist/tools/core/jait.d.ts.map +1 -0
- package/dist/tools/core/jait.js +256 -0
- package/dist/tools/core/jait.js.map +1 -0
- package/dist/tools/core/read.d.ts +26 -0
- package/dist/tools/core/read.d.ts.map +1 -0
- package/dist/tools/core/read.js +118 -0
- package/dist/tools/core/read.js.map +1 -0
- package/dist/tools/core/search.d.ts +34 -0
- package/dist/tools/core/search.d.ts.map +1 -0
- package/dist/tools/core/search.js +187 -0
- package/dist/tools/core/search.js.map +1 -0
- package/dist/tools/core/todo.d.ts +38 -0
- package/dist/tools/core/todo.d.ts.map +1 -0
- package/dist/tools/core/todo.js +116 -0
- package/dist/tools/core/todo.js.map +1 -0
- package/dist/tools/core/web.d.ts +34 -0
- package/dist/tools/core/web.d.ts.map +1 -0
- package/dist/tools/core/web.js +120 -0
- package/dist/tools/core/web.js.map +1 -0
- package/dist/tools/cron-tools.d.ts +7 -0
- package/dist/tools/cron-tools.d.ts.map +1 -0
- package/dist/tools/cron-tools.js +116 -0
- package/dist/tools/cron-tools.js.map +1 -0
- package/dist/tools/file-tools.d.ts +32 -0
- package/dist/tools/file-tools.d.ts.map +1 -0
- package/dist/tools/file-tools.js +178 -0
- package/dist/tools/file-tools.js.map +1 -0
- package/dist/tools/gateway-tools.d.ts +15 -0
- package/dist/tools/gateway-tools.d.ts.map +1 -0
- package/dist/tools/gateway-tools.js +39 -0
- package/dist/tools/gateway-tools.js.map +1 -0
- package/dist/tools/index.d.ts +57 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +170 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/mcp-bridge.d.ts +111 -0
- package/dist/tools/mcp-bridge.d.ts.map +1 -0
- package/dist/tools/mcp-bridge.js +166 -0
- package/dist/tools/mcp-bridge.js.map +1 -0
- package/dist/tools/memory-tools.d.ts +19 -0
- package/dist/tools/memory-tools.d.ts.map +1 -0
- package/dist/tools/memory-tools.js +78 -0
- package/dist/tools/memory-tools.js.map +1 -0
- package/dist/tools/meta-tools.d.ts +25 -0
- package/dist/tools/meta-tools.d.ts.map +1 -0
- package/dist/tools/meta-tools.js +125 -0
- package/dist/tools/meta-tools.js.map +1 -0
- package/dist/tools/network-tools.d.ts +21 -0
- package/dist/tools/network-tools.d.ts.map +1 -0
- package/dist/tools/network-tools.js +189 -0
- package/dist/tools/network-tools.js.map +1 -0
- package/dist/tools/os-tools.d.ts +18 -0
- package/dist/tools/os-tools.d.ts.map +1 -0
- package/dist/tools/os-tools.js +210 -0
- package/dist/tools/os-tools.js.map +1 -0
- package/dist/tools/prompts/claude-prompt.d.ts +8 -0
- package/dist/tools/prompts/claude-prompt.d.ts.map +1 -0
- package/dist/tools/prompts/claude-prompt.js +228 -0
- package/dist/tools/prompts/claude-prompt.js.map +1 -0
- package/dist/tools/prompts/default-openai-prompt.d.ts +8 -0
- package/dist/tools/prompts/default-openai-prompt.d.ts.map +1 -0
- package/dist/tools/prompts/default-openai-prompt.js +67 -0
- package/dist/tools/prompts/default-openai-prompt.js.map +1 -0
- package/dist/tools/prompts/default-prompt.d.ts +7 -0
- package/dist/tools/prompts/default-prompt.d.ts.map +1 -0
- package/dist/tools/prompts/default-prompt.js +50 -0
- package/dist/tools/prompts/default-prompt.js.map +1 -0
- package/dist/tools/prompts/gemini-prompt.d.ts +8 -0
- package/dist/tools/prompts/gemini-prompt.d.ts.map +1 -0
- package/dist/tools/prompts/gemini-prompt.js +118 -0
- package/dist/tools/prompts/gemini-prompt.js.map +1 -0
- package/dist/tools/prompts/gpt5-codex-prompt.d.ts +8 -0
- package/dist/tools/prompts/gpt5-codex-prompt.d.ts.map +1 -0
- package/dist/tools/prompts/gpt5-codex-prompt.js +72 -0
- package/dist/tools/prompts/gpt5-codex-prompt.js.map +1 -0
- package/dist/tools/prompts/gpt5-prompt.d.ts +8 -0
- package/dist/tools/prompts/gpt5-prompt.d.ts.map +1 -0
- package/dist/tools/prompts/gpt5-prompt.js +177 -0
- package/dist/tools/prompts/gpt5-prompt.js.map +1 -0
- package/dist/tools/prompts/gpt51-prompt.d.ts +8 -0
- package/dist/tools/prompts/gpt51-prompt.d.ts.map +1 -0
- package/dist/tools/prompts/gpt51-prompt.js +178 -0
- package/dist/tools/prompts/gpt51-prompt.js.map +1 -0
- package/dist/tools/prompts/gpt52-prompt.d.ts +8 -0
- package/dist/tools/prompts/gpt52-prompt.d.ts.map +1 -0
- package/dist/tools/prompts/gpt52-prompt.js +198 -0
- package/dist/tools/prompts/gpt52-prompt.js.map +1 -0
- package/dist/tools/prompts/index.d.ts +22 -0
- package/dist/tools/prompts/index.d.ts.map +1 -0
- package/dist/tools/prompts/index.js +23 -0
- package/dist/tools/prompts/index.js.map +1 -0
- package/dist/tools/prompts/prompt-registry.d.ts +44 -0
- package/dist/tools/prompts/prompt-registry.d.ts.map +1 -0
- package/dist/tools/prompts/prompt-registry.js +60 -0
- package/dist/tools/prompts/prompt-registry.js.map +1 -0
- package/dist/tools/prompts/shared-sections.d.ts +28 -0
- package/dist/tools/prompts/shared-sections.d.ts.map +1 -0
- package/dist/tools/prompts/shared-sections.js +111 -0
- package/dist/tools/prompts/shared-sections.js.map +1 -0
- package/dist/tools/prompts/xai-prompt.d.ts +8 -0
- package/dist/tools/prompts/xai-prompt.d.ts.map +1 -0
- package/dist/tools/prompts/xai-prompt.js +68 -0
- package/dist/tools/prompts/xai-prompt.js.map +1 -0
- package/dist/tools/redeploy-tools.d.ts +30 -0
- package/dist/tools/redeploy-tools.d.ts.map +1 -0
- package/dist/tools/redeploy-tools.js +191 -0
- package/dist/tools/redeploy-tools.js.map +1 -0
- package/dist/tools/registry.d.ts +51 -0
- package/dist/tools/registry.d.ts.map +1 -0
- package/dist/tools/registry.js +148 -0
- package/dist/tools/registry.js.map +1 -0
- package/dist/tools/screen-share-tools.d.ts +31 -0
- package/dist/tools/screen-share-tools.d.ts.map +1 -0
- package/dist/tools/screen-share-tools.js +183 -0
- package/dist/tools/screen-share-tools.js.map +1 -0
- package/dist/tools/surface-tools.d.ts +23 -0
- package/dist/tools/surface-tools.d.ts.map +1 -0
- package/dist/tools/surface-tools.js +99 -0
- package/dist/tools/surface-tools.js.map +1 -0
- package/dist/tools/terminal-tools.d.ts +37 -0
- package/dist/tools/terminal-tools.d.ts.map +1 -0
- package/dist/tools/terminal-tools.js +448 -0
- package/dist/tools/terminal-tools.js.map +1 -0
- package/dist/tools/thread-tools.d.ts +61 -0
- package/dist/tools/thread-tools.d.ts.map +1 -0
- package/dist/tools/thread-tools.js +484 -0
- package/dist/tools/thread-tools.js.map +1 -0
- package/dist/tools/token-estimator.d.ts +55 -0
- package/dist/tools/token-estimator.d.ts.map +1 -0
- package/dist/tools/token-estimator.js +82 -0
- package/dist/tools/token-estimator.js.map +1 -0
- package/dist/tools/tool-names.d.ts +64 -0
- package/dist/tools/tool-names.d.ts.map +1 -0
- package/dist/tools/tool-names.js +76 -0
- package/dist/tools/tool-names.js.map +1 -0
- package/dist/tools/validate.d.ts +27 -0
- package/dist/tools/validate.d.ts.map +1 -0
- package/dist/tools/validate.js +99 -0
- package/dist/tools/validate.js.map +1 -0
- package/dist/tools/voice-tools.d.ts +8 -0
- package/dist/tools/voice-tools.d.ts.map +1 -0
- package/dist/tools/voice-tools.js +32 -0
- package/dist/tools/voice-tools.js.map +1 -0
- package/dist/voice/service.d.ts +42 -0
- package/dist/voice/service.d.ts.map +1 -0
- package/dist/voice/service.js +75 -0
- package/dist/voice/service.js.map +1 -0
- package/dist/ws.d.ts +90 -0
- package/dist/ws.d.ts.map +1 -0
- package/dist/ws.js +562 -0
- package/dist/ws.js.map +1 -0
- package/package.json +61 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BxB,CAAC;AAGF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAajC,CAAC;AAGF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAelC,CAAC;AAGF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBzB,CAAC"}
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Drizzle ORM schema for ~/.jait/data/jait.db
|
|
3
|
+
*
|
|
4
|
+
* Tables: sessions, audit_log, trust_levels, consent_log, consent_session_approvals
|
|
5
|
+
* All IDs are UUIDv7 (sortable by time). Single-operator — no users table.
|
|
6
|
+
*/
|
|
7
|
+
import { sqliteTable, text, integer, index } from "drizzle-orm/sqlite-core";
|
|
8
|
+
// ─── Sessions ────────────────────────────────────────────────────────
|
|
9
|
+
export const sessions = sqliteTable("sessions", {
|
|
10
|
+
id: text("id").primaryKey(), // UUIDv7
|
|
11
|
+
userId: text("user_id"),
|
|
12
|
+
name: text("name"),
|
|
13
|
+
workspacePath: text("workspace_path"),
|
|
14
|
+
createdAt: text("created_at").notNull(),
|
|
15
|
+
lastActiveAt: text("last_active_at").notNull(),
|
|
16
|
+
status: text("status").default("active"), // 'active' | 'archived' | 'deleted'
|
|
17
|
+
metadata: text("metadata"), // JSON
|
|
18
|
+
});
|
|
19
|
+
// ─── Users ───────────────────────────────────────────────────────────
|
|
20
|
+
export const users = sqliteTable("users", {
|
|
21
|
+
id: text("id").primaryKey(),
|
|
22
|
+
username: text("username").notNull().unique(),
|
|
23
|
+
passwordHash: text("password_hash").notNull(),
|
|
24
|
+
createdAt: text("created_at").notNull(),
|
|
25
|
+
updatedAt: text("updated_at").notNull(),
|
|
26
|
+
}, (table) => [
|
|
27
|
+
index("idx_users_username").on(table.username),
|
|
28
|
+
]);
|
|
29
|
+
// ─── User Settings ───────────────────────────────────────────────────
|
|
30
|
+
export const userSettings = sqliteTable("user_settings", {
|
|
31
|
+
userId: text("user_id").primaryKey(),
|
|
32
|
+
theme: text("theme").notNull().default("system"), // 'light' | 'dark' | 'system'
|
|
33
|
+
apiKeys: text("api_keys"), // JSON object
|
|
34
|
+
disabledTools: text("disabled_tools"), // JSON string[] of disabled tool names
|
|
35
|
+
sttProvider: text("stt_provider").notNull().default("simulated"), // 'simulated' | 'browser'
|
|
36
|
+
chatProvider: text("chat_provider").notNull().default("jait"), // 'jait' | 'codex' | 'claude-code'
|
|
37
|
+
updatedAt: text("updated_at").notNull(),
|
|
38
|
+
});
|
|
39
|
+
// ─── Audit Log ───────────────────────────────────────────────────────
|
|
40
|
+
export const auditLog = sqliteTable("audit_log", {
|
|
41
|
+
id: text("id").primaryKey(), // UUIDv7
|
|
42
|
+
timestamp: text("timestamp").notNull(), // ISO 8601
|
|
43
|
+
// Context
|
|
44
|
+
sessionId: text("session_id"),
|
|
45
|
+
surfaceType: text("surface_type"),
|
|
46
|
+
deviceId: text("device_id"),
|
|
47
|
+
// What
|
|
48
|
+
actionId: text("action_id").unique(),
|
|
49
|
+
actionType: text("action_type"), // 'tool_call', 'consent', 'message', etc.
|
|
50
|
+
toolName: text("tool_name"),
|
|
51
|
+
// Details (JSON strings)
|
|
52
|
+
inputs: text("inputs"),
|
|
53
|
+
outputs: text("outputs"),
|
|
54
|
+
sideEffects: text("side_effects"),
|
|
55
|
+
// Verification
|
|
56
|
+
signature: text("signature"),
|
|
57
|
+
parentActionId: text("parent_action_id"),
|
|
58
|
+
// Status
|
|
59
|
+
status: text("status"), // 'pending','approved','executed','failed','reverted'
|
|
60
|
+
consentMethod: text("consent_method"), // 'auto','confirm','voice'
|
|
61
|
+
}, (table) => [
|
|
62
|
+
index("idx_audit_action_id").on(table.actionId),
|
|
63
|
+
index("idx_audit_session").on(table.sessionId, table.timestamp),
|
|
64
|
+
index("idx_audit_surface").on(table.surfaceType, table.timestamp),
|
|
65
|
+
index("idx_audit_device").on(table.deviceId, table.timestamp),
|
|
66
|
+
]);
|
|
67
|
+
// ─── Trust Levels ────────────────────────────────────────────────────
|
|
68
|
+
export const trustLevels = sqliteTable("trust_levels", {
|
|
69
|
+
actionType: text("action_type").primaryKey(), // e.g. 'terminal.run'
|
|
70
|
+
approvedCount: integer("approved_count").default(0),
|
|
71
|
+
revertedCount: integer("reverted_count").default(0),
|
|
72
|
+
currentLevel: integer("current_level").default(0), // 0=observer,1=assisted,2=trusted,3=autopilot
|
|
73
|
+
});
|
|
74
|
+
// ─── Consent Log ─────────────────────────────────────────────────────
|
|
75
|
+
export const consentLog = sqliteTable("consent_log", {
|
|
76
|
+
id: text("id").primaryKey(),
|
|
77
|
+
actionId: text("action_id").notNull(),
|
|
78
|
+
toolName: text("tool_name").notNull(),
|
|
79
|
+
decision: text("decision").notNull(), // 'approved','rejected','timeout'
|
|
80
|
+
decidedAt: text("decided_at").notNull(),
|
|
81
|
+
decidedVia: text("decided_via"), // 'click','voice','auto'
|
|
82
|
+
});
|
|
83
|
+
// ─── Session-Level Consent Overrides ────────────────────────────────
|
|
84
|
+
export const consentSessionApprovals = sqliteTable("consent_session_approvals", {
|
|
85
|
+
sessionId: text("session_id").primaryKey(),
|
|
86
|
+
approveAll: integer("approve_all").notNull().default(1), // 1 = enabled
|
|
87
|
+
updatedAt: text("updated_at").notNull(),
|
|
88
|
+
});
|
|
89
|
+
// ─── Memories ───────────────────────────────────────────────────────
|
|
90
|
+
export const memories = sqliteTable("memories", {
|
|
91
|
+
id: text("id").primaryKey(),
|
|
92
|
+
scope: text("scope").notNull(),
|
|
93
|
+
content: text("content").notNull(),
|
|
94
|
+
sourceType: text("source_type").notNull(),
|
|
95
|
+
sourceId: text("source_id").notNull(),
|
|
96
|
+
sourceSurface: text("source_surface").notNull(),
|
|
97
|
+
embedding: text("embedding").notNull(),
|
|
98
|
+
createdAt: text("created_at").notNull(),
|
|
99
|
+
updatedAt: text("updated_at").notNull(),
|
|
100
|
+
expiresAt: text("expires_at"),
|
|
101
|
+
}, (table) => [
|
|
102
|
+
index("idx_memories_scope").on(table.scope, table.createdAt),
|
|
103
|
+
index("idx_memories_expires").on(table.expiresAt),
|
|
104
|
+
]);
|
|
105
|
+
// ─── Chat Messages ───────────────────────────────────────────────────
|
|
106
|
+
export const messages = sqliteTable("messages", {
|
|
107
|
+
id: text("id").primaryKey(),
|
|
108
|
+
sessionId: text("session_id").notNull(),
|
|
109
|
+
role: text("role").notNull(), // 'user' | 'assistant'
|
|
110
|
+
content: text("content").notNull(),
|
|
111
|
+
toolCalls: text("tool_calls"), // JSON array of executed tool calls (nullable)
|
|
112
|
+
segments: text("segments"), // JSON array of MessageSegment for interleaved rendering (nullable)
|
|
113
|
+
createdAt: text("created_at").notNull(),
|
|
114
|
+
}, (table) => [
|
|
115
|
+
index("idx_messages_session").on(table.sessionId, table.createdAt),
|
|
116
|
+
]);
|
|
117
|
+
// ─── Session State (per-session key-value UI/app state) ─────────────
|
|
118
|
+
export const sessionState = sqliteTable("session_state", {
|
|
119
|
+
sessionId: text("session_id").notNull(),
|
|
120
|
+
key: text("key").notNull(),
|
|
121
|
+
value: text("value"), // JSON-serialized
|
|
122
|
+
updatedAt: text("updated_at").notNull(),
|
|
123
|
+
}, (table) => [
|
|
124
|
+
index("idx_session_state_session").on(table.sessionId),
|
|
125
|
+
]);
|
|
126
|
+
// ─── Agent Threads ───────────────────────────────────────────────────
|
|
127
|
+
export const agentThreads = sqliteTable("agent_threads", {
|
|
128
|
+
id: text("id").primaryKey(), // UUIDv7
|
|
129
|
+
userId: text("user_id"),
|
|
130
|
+
sessionId: text("session_id"), // Links to the chat session
|
|
131
|
+
title: text("title").notNull(),
|
|
132
|
+
providerId: text("provider_id").notNull(), // "jait" | "codex" | "claude-code"
|
|
133
|
+
model: text("model"),
|
|
134
|
+
runtimeMode: text("runtime_mode").notNull().default("full-access"), // "full-access" | "supervised"
|
|
135
|
+
workingDirectory: text("working_directory"),
|
|
136
|
+
branch: text("branch"), // Git branch name
|
|
137
|
+
status: text("status").notNull().default("running"), // running | completed | error | interrupted
|
|
138
|
+
providerSessionId: text("provider_session_id"), // Active provider session ID
|
|
139
|
+
error: text("error"),
|
|
140
|
+
prUrl: text("pr_url"),
|
|
141
|
+
prNumber: integer("pr_number"),
|
|
142
|
+
prTitle: text("pr_title"),
|
|
143
|
+
prState: text("pr_state"), // open | closed | merged
|
|
144
|
+
createdAt: text("created_at").notNull(),
|
|
145
|
+
updatedAt: text("updated_at").notNull(),
|
|
146
|
+
completedAt: text("completed_at"),
|
|
147
|
+
}, (table) => [
|
|
148
|
+
index("idx_agent_threads_user").on(table.userId),
|
|
149
|
+
index("idx_agent_threads_session").on(table.sessionId),
|
|
150
|
+
index("idx_agent_threads_status").on(table.status),
|
|
151
|
+
index("idx_agent_threads_updated").on(table.updatedAt),
|
|
152
|
+
]);
|
|
153
|
+
// ─── Agent Thread Activities ─────────────────────────────────────────
|
|
154
|
+
export const agentThreadActivities = sqliteTable("agent_thread_activities", {
|
|
155
|
+
id: text("id").primaryKey(),
|
|
156
|
+
threadId: text("thread_id").notNull(),
|
|
157
|
+
kind: text("kind").notNull(), // "tool.start" | "tool.result" | "message" | "error" | "activity"
|
|
158
|
+
summary: text("summary").notNull(),
|
|
159
|
+
payload: text("payload"), // JSON
|
|
160
|
+
createdAt: text("created_at").notNull(),
|
|
161
|
+
}, (table) => [
|
|
162
|
+
index("idx_agent_thread_activities_thread").on(table.threadId, table.createdAt),
|
|
163
|
+
]);
|
|
164
|
+
// ─── Automation Repositories ─────────────────────────────────────────
|
|
165
|
+
export const automationRepositories = sqliteTable("automation_repositories", {
|
|
166
|
+
id: text("id").primaryKey(), // UUIDv7
|
|
167
|
+
userId: text("user_id"),
|
|
168
|
+
deviceId: text("device_id"), // which client device registered this repo
|
|
169
|
+
name: text("name").notNull(),
|
|
170
|
+
defaultBranch: text("default_branch").notNull().default("main"),
|
|
171
|
+
localPath: text("local_path").notNull(),
|
|
172
|
+
createdAt: text("created_at").notNull(),
|
|
173
|
+
updatedAt: text("updated_at").notNull(),
|
|
174
|
+
}, (table) => [
|
|
175
|
+
index("idx_automation_repos_user").on(table.userId),
|
|
176
|
+
]);
|
|
177
|
+
// ─── Scheduled Jobs ──────────────────────────────────────────────────
|
|
178
|
+
export const scheduledJobs = sqliteTable("scheduled_jobs", {
|
|
179
|
+
id: text("id").primaryKey(),
|
|
180
|
+
userId: text("user_id"),
|
|
181
|
+
name: text("name").notNull(),
|
|
182
|
+
cron: text("cron").notNull(),
|
|
183
|
+
toolName: text("tool_name").notNull(),
|
|
184
|
+
input: text("input"), // JSON object
|
|
185
|
+
sessionId: text("session_id"),
|
|
186
|
+
workspaceRoot: text("workspace_root"),
|
|
187
|
+
enabled: integer("enabled").notNull().default(1),
|
|
188
|
+
lastRunAt: text("last_run_at"),
|
|
189
|
+
createdAt: text("created_at").notNull(),
|
|
190
|
+
updatedAt: text("updated_at").notNull(),
|
|
191
|
+
}, (table) => [
|
|
192
|
+
index("idx_scheduled_jobs_enabled").on(table.enabled),
|
|
193
|
+
index("idx_scheduled_jobs_updated").on(table.updatedAt),
|
|
194
|
+
]);
|
|
195
|
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AAI,CAAC,gBAAgB,CAAC;IACrC,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAChD,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC;IAC9B,SAAS,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC,OAAO,EAAE;IACvC,SAAS,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC,OAAO,EAAE;CACxC,EACD,CAAC,KAAK,EAAE,EAAE,CAAC;IACT,KAAK,CAAC,4BAA4B,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC;IACrD,KAAK,CAAC,4BAA4B,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC;CACxD,CACF,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type { Surface, SurfaceFactory, SurfaceSnapshot, SurfaceState } from "./surfaces/contracts.js";
|
|
2
|
+
export { SurfaceRegistry } from "./surfaces/registry.js";
|
|
3
|
+
export { TerminalSurface, TerminalSurfaceFactory } from "./surfaces/terminal.js";
|
|
4
|
+
export { FileSystemSurface, FileSystemSurfaceFactory } from "./surfaces/filesystem.js";
|
|
5
|
+
export { PathGuard, PathTraversalError } from "./security/path-guard.js";
|
|
6
|
+
export { ConsentManager } from "./security/consent-manager.js";
|
|
7
|
+
export type { ConsentRequest as ConsentReq, ConsentDecision as ConsentDec, ConsentStatus, ConsentManagerOptions } from "./security/consent-manager.js";
|
|
8
|
+
export { TrustEngine } from "./security/trust-engine.js";
|
|
9
|
+
export type { TrustState } from "./security/trust-engine.js";
|
|
10
|
+
export { ConsentAwareExecutor } from "./security/consent-executor.js";
|
|
11
|
+
export type { ConsentAwareExecutorOptions, ExecuteOptions } from "./security/consent-executor.js";
|
|
12
|
+
export { requiresConsent, isCommandAllowed, isPathAllowedByPermission, matchGlob } from "./security/tool-permissions.js";
|
|
13
|
+
export type { ToolPermission, ConsentLevel, ToolPermissionConfig } from "./security/tool-permissions.js";
|
|
14
|
+
export { getProfile, listProfiles, extendProfile } from "./security/tool-profiles.js";
|
|
15
|
+
export type { ProfileName } from "./security/tool-profiles.js";
|
|
16
|
+
export type { ConsentDecision, ConsentRequest, AuditRecord, SecurityService, TrustLevel, } from "./security/contracts.js";
|
|
17
|
+
export type { ToolContext, ToolDefinition, ToolResult } from "./tools/contracts.js";
|
|
18
|
+
export { ToolRegistry } from "./tools/registry.js";
|
|
19
|
+
export { createToolRegistry } from "./tools/index.js";
|
|
20
|
+
export type { MemoryEntry, MemoryService, SaveMemoryInput, MemorySource, MemoryScope, MemoryBackend } from "./memory/contracts.js";
|
|
21
|
+
export { MemoryEngine } from "./memory/service.js";
|
|
22
|
+
export { SqliteMemoryBackend } from "./memory/sqlite-backend.js";
|
|
23
|
+
export type { ScheduledJob, SchedulerService } from "./scheduler/contracts.js";
|
|
24
|
+
export type { PluginContext, PluginModule } from "./plugins/contracts.js";
|
|
25
|
+
export type { SessionDescriptor, SessionRouter } from "./sessions/contracts.js";
|
|
26
|
+
//# sourceMappingURL=foundation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"foundation.d.ts","sourceRoot":"","sources":["../src/foundation.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACtG,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AACjF,OAAO,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAEvF,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAGzE,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,YAAY,EAAE,cAAc,IAAI,UAAU,EAAE,eAAe,IAAI,UAAU,EAAE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yBAAyB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { SurfaceRegistry } from "./surfaces/registry.js";
|
|
2
|
+
export { TerminalSurface, TerminalSurfaceFactory } from "./surfaces/terminal.js";
|
|
3
|
+
export { FileSystemSurface, FileSystemSurfaceFactory } from "./surfaces/filesystem.js";
|
|
4
|
+
export { PathGuard, PathTraversalError } from "./security/path-guard.js";
|
|
5
|
+
// Sprint 4 — Consent & Trust
|
|
6
|
+
export { ConsentManager } from "./security/consent-manager.js";
|
|
7
|
+
export { TrustEngine } from "./security/trust-engine.js";
|
|
8
|
+
export { ConsentAwareExecutor } from "./security/consent-executor.js";
|
|
9
|
+
export { requiresConsent, isCommandAllowed, isPathAllowedByPermission, matchGlob } from "./security/tool-permissions.js";
|
|
10
|
+
export { getProfile, listProfiles, extendProfile } from "./security/tool-profiles.js";
|
|
11
|
+
export { ToolRegistry } from "./tools/registry.js";
|
|
12
|
+
export { createToolRegistry } from "./tools/index.js";
|
|
13
|
+
export { MemoryEngine } from "./memory/service.js";
|
|
14
|
+
export { SqliteMemoryBackend } from "./memory/sqlite-backend.js";
|
|
15
|
+
//# sourceMappingURL=foundation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"foundation.js","sourceRoot":"","sources":["../src/foundation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AACjF,OAAO,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAEvF,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAEzE,6BAA6B;AAC7B,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAEtE,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAEzH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAYtF,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAGtD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AA8BA,iBAAe,IAAI,kBAyZlB;AAED,OAAO,EAAE,IAAI,EAAE,CAAC"}
|