@useactor/core 0.1.0 → 0.2.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/dist/auth/google-auth.d.ts +75 -0
- package/dist/auth/google-auth.d.ts.map +1 -0
- package/dist/auth/google-auth.js +447 -0
- package/dist/auth/google-auth.js.map +1 -0
- package/dist/auth/oauth-callback-page.d.ts +4 -0
- package/dist/auth/oauth-callback-page.d.ts.map +1 -0
- package/dist/auth/oauth-callback-page.js +131 -0
- package/dist/auth/oauth-callback-page.js.map +1 -0
- package/dist/auth/openai-auth.d.ts +48 -0
- package/dist/auth/openai-auth.d.ts.map +1 -0
- package/dist/auth/openai-auth.js +350 -0
- package/dist/auth/openai-auth.js.map +1 -0
- package/dist/{artifacts.d.ts → events/artifacts.d.ts} +1 -1
- package/dist/events/artifacts.d.ts.map +1 -0
- package/dist/events/artifacts.js.map +1 -0
- package/dist/{events.d.ts → events/events.d.ts} +16 -2
- package/dist/events/events.d.ts.map +1 -0
- package/dist/{events.js → events/events.js} +3 -0
- package/dist/events/events.js.map +1 -0
- package/dist/{feedback.d.ts → events/feedback.d.ts} +1 -1
- package/dist/events/feedback.d.ts.map +1 -0
- package/dist/events/feedback.js.map +1 -0
- package/dist/{local-event-logger.d.ts → events/local-event-logger.d.ts} +1 -1
- package/dist/events/local-event-logger.d.ts.map +1 -0
- package/dist/{local-event-logger.js → events/local-event-logger.js} +11 -0
- package/dist/events/local-event-logger.js.map +1 -0
- package/dist/{local-event-schema.d.ts → events/local-event-schema.d.ts} +10 -3
- package/dist/events/local-event-schema.d.ts.map +1 -0
- package/dist/events/local-event-schema.js.map +1 -0
- package/dist/index.d.ts +59 -35
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +59 -35
- package/dist/index.js.map +1 -1
- package/dist/integrations/built-in-integrations.d.ts +2 -0
- package/dist/integrations/built-in-integrations.d.ts.map +1 -0
- package/dist/integrations/built-in-integrations.js +2 -0
- package/dist/integrations/built-in-integrations.js.map +1 -0
- package/dist/integrations/first-party-cli-integration.d.ts +2 -0
- package/dist/integrations/first-party-cli-integration.d.ts.map +1 -0
- package/dist/integrations/first-party-cli-integration.js +2 -0
- package/dist/integrations/first-party-cli-integration.js.map +1 -0
- package/dist/integrations/google-workspace-integration.d.ts +2 -0
- package/dist/integrations/google-workspace-integration.d.ts.map +1 -0
- package/dist/integrations/google-workspace-integration.js +2 -0
- package/dist/integrations/google-workspace-integration.js.map +1 -0
- package/dist/integrations/integrations.d.ts +2 -0
- package/dist/integrations/integrations.d.ts.map +1 -0
- package/dist/integrations/integrations.js +2 -0
- package/dist/integrations/integrations.js.map +1 -0
- package/dist/integrations/monoid-integration.d.ts +2 -0
- package/dist/integrations/monoid-integration.d.ts.map +1 -0
- package/dist/integrations/monoid-integration.js +2 -0
- package/dist/integrations/monoid-integration.js.map +1 -0
- package/dist/integrations/pilfer-integration.d.ts +2 -0
- package/dist/integrations/pilfer-integration.d.ts.map +1 -0
- package/dist/integrations/pilfer-integration.js +2 -0
- package/dist/integrations/pilfer-integration.js.map +1 -0
- package/dist/integrations/wyrdos-integration.d.ts +2 -0
- package/dist/integrations/wyrdos-integration.d.ts.map +1 -0
- package/dist/integrations/wyrdos-integration.js +2 -0
- package/dist/integrations/wyrdos-integration.js.map +1 -0
- package/dist/keybindings/shell-keybindings.d.ts +139 -0
- package/dist/keybindings/shell-keybindings.d.ts.map +1 -0
- package/dist/keybindings/shell-keybindings.js +453 -0
- package/dist/keybindings/shell-keybindings.js.map +1 -0
- package/dist/plugins/built-in-integrations.d.ts +3 -0
- package/dist/plugins/built-in-integrations.d.ts.map +1 -0
- package/dist/plugins/built-in-integrations.js +13 -0
- package/dist/plugins/built-in-integrations.js.map +1 -0
- package/dist/plugins/first-party-cli-integration.d.ts +62 -0
- package/dist/plugins/first-party-cli-integration.d.ts.map +1 -0
- package/dist/plugins/first-party-cli-integration.js +524 -0
- package/dist/plugins/first-party-cli-integration.js.map +1 -0
- package/dist/plugins/google-docs.d.ts +30 -0
- package/dist/plugins/google-docs.d.ts.map +1 -0
- package/dist/plugins/google-docs.js +487 -0
- package/dist/plugins/google-docs.js.map +1 -0
- package/dist/plugins/google-drive.d.ts +84 -0
- package/dist/plugins/google-drive.d.ts.map +1 -0
- package/dist/plugins/google-drive.js +307 -0
- package/dist/plugins/google-drive.js.map +1 -0
- package/dist/plugins/google-sheets.d.ts +122 -0
- package/dist/plugins/google-sheets.d.ts.map +1 -0
- package/dist/plugins/google-sheets.js +290 -0
- package/dist/plugins/google-sheets.js.map +1 -0
- package/dist/plugins/google-slides.d.ts +125 -0
- package/dist/plugins/google-slides.d.ts.map +1 -0
- package/dist/plugins/google-slides.js +285 -0
- package/dist/plugins/google-slides.js.map +1 -0
- package/dist/plugins/google-workspace-api.d.ts +16 -0
- package/dist/plugins/google-workspace-api.d.ts.map +1 -0
- package/dist/plugins/google-workspace-api.js +42 -0
- package/dist/plugins/google-workspace-api.js.map +1 -0
- package/dist/plugins/google-workspace-integration.d.ts +22 -0
- package/dist/plugins/google-workspace-integration.d.ts.map +1 -0
- package/dist/plugins/google-workspace-integration.js +1353 -0
- package/dist/plugins/google-workspace-integration.js.map +1 -0
- package/dist/plugins/google-workspace-oauth.d.ts +80 -0
- package/dist/plugins/google-workspace-oauth.d.ts.map +1 -0
- package/dist/plugins/google-workspace-oauth.js +187 -0
- package/dist/plugins/google-workspace-oauth.js.map +1 -0
- package/dist/plugins/monoid-integration.d.ts +11 -0
- package/dist/plugins/monoid-integration.d.ts.map +1 -0
- package/dist/plugins/monoid-integration.js +14 -0
- package/dist/plugins/monoid-integration.js.map +1 -0
- package/dist/plugins/pilfer-integration.d.ts +10 -0
- package/dist/plugins/pilfer-integration.d.ts.map +1 -0
- package/dist/plugins/pilfer-integration.js +13 -0
- package/dist/plugins/pilfer-integration.js.map +1 -0
- package/dist/plugins/plugins.d.ts +78 -0
- package/dist/plugins/plugins.d.ts.map +1 -0
- package/dist/plugins/plugins.js +81 -0
- package/dist/plugins/plugins.js.map +1 -0
- package/dist/plugins/wyrdos-integration.d.ts +11 -0
- package/dist/plugins/wyrdos-integration.d.ts.map +1 -0
- package/dist/plugins/wyrdos-integration.js +14 -0
- package/dist/plugins/wyrdos-integration.js.map +1 -0
- package/dist/{ai-sdk-provider.d.ts → providers/ai-sdk-provider.d.ts} +2 -2
- package/dist/providers/ai-sdk-provider.d.ts.map +1 -0
- package/dist/{ai-sdk-provider.js → providers/ai-sdk-provider.js} +132 -37
- package/dist/providers/ai-sdk-provider.js.map +1 -0
- package/dist/providers/api-key-providers.d.ts +25 -0
- package/dist/providers/api-key-providers.d.ts.map +1 -0
- package/dist/providers/api-key-providers.js +67 -0
- package/dist/providers/api-key-providers.js.map +1 -0
- package/dist/providers/definitions/anthropic-provider.d.ts +421 -0
- package/dist/providers/definitions/anthropic-provider.d.ts.map +1 -0
- package/dist/providers/definitions/anthropic-provider.js +204 -0
- package/dist/providers/definitions/anthropic-provider.js.map +1 -0
- package/dist/{codex-oauth-provider.d.ts → providers/definitions/codex-oauth-provider.d.ts} +2 -2
- package/dist/providers/definitions/codex-oauth-provider.d.ts.map +1 -0
- package/dist/{codex-oauth-provider.js → providers/definitions/codex-oauth-provider.js} +1 -1
- package/dist/providers/definitions/codex-oauth-provider.js.map +1 -0
- package/dist/providers/definitions/deepseek-provider.d.ts +25 -0
- package/dist/providers/definitions/deepseek-provider.d.ts.map +1 -0
- package/dist/providers/definitions/deepseek-provider.js +28 -0
- package/dist/providers/definitions/deepseek-provider.js.map +1 -0
- package/dist/providers/definitions/google-ai-oauth.d.ts +79 -0
- package/dist/providers/definitions/google-ai-oauth.d.ts.map +1 -0
- package/dist/providers/definitions/google-ai-oauth.js +177 -0
- package/dist/providers/definitions/google-ai-oauth.js.map +1 -0
- package/dist/providers/definitions/google-provider.d.ts +166 -0
- package/dist/providers/definitions/google-provider.d.ts.map +1 -0
- package/dist/providers/definitions/google-provider.js +93 -0
- package/dist/providers/definitions/google-provider.js.map +1 -0
- package/dist/providers/definitions/moonshot-provider.d.ts +28 -0
- package/dist/providers/definitions/moonshot-provider.d.ts.map +1 -0
- package/dist/providers/definitions/moonshot-provider.js +34 -0
- package/dist/providers/definitions/moonshot-provider.js.map +1 -0
- package/dist/{openai-oauth.d.ts → providers/definitions/openai-oauth.d.ts} +1 -1
- package/dist/providers/definitions/openai-oauth.d.ts.map +1 -0
- package/dist/providers/definitions/openai-oauth.js.map +1 -0
- package/dist/providers/definitions/openai-provider.d.ts +177 -0
- package/dist/providers/definitions/openai-provider.d.ts.map +1 -0
- package/dist/{model-catalog.js → providers/definitions/openai-provider.js} +33 -21
- package/dist/providers/definitions/openai-provider.js.map +1 -0
- package/dist/providers/definitions/perplexity-provider.d.ts +34 -0
- package/dist/providers/definitions/perplexity-provider.d.ts.map +1 -0
- package/dist/providers/definitions/perplexity-provider.js +46 -0
- package/dist/providers/definitions/perplexity-provider.js.map +1 -0
- package/dist/providers/definitions/xai-provider.d.ts +68 -0
- package/dist/providers/definitions/xai-provider.d.ts.map +1 -0
- package/dist/providers/definitions/xai-provider.js +102 -0
- package/dist/providers/definitions/xai-provider.js.map +1 -0
- package/dist/{mock-provider.d.ts → providers/mock-provider.d.ts} +1 -1
- package/dist/providers/mock-provider.d.ts.map +1 -0
- package/dist/providers/mock-provider.js.map +1 -0
- package/dist/{model-catalog.d.ts → providers/model-catalog.d.ts} +2 -2
- package/dist/providers/model-catalog.d.ts.map +1 -0
- package/dist/providers/model-catalog.js +31 -0
- package/dist/providers/model-catalog.js.map +1 -0
- package/dist/providers/provider-failures.d.ts +14 -0
- package/dist/providers/provider-failures.d.ts.map +1 -0
- package/dist/providers/provider-failures.js +146 -0
- package/dist/providers/provider-failures.js.map +1 -0
- package/dist/providers/provider-status.d.ts +24 -0
- package/dist/providers/provider-status.d.ts.map +1 -0
- package/dist/providers/provider-status.js +63 -0
- package/dist/providers/provider-status.js.map +1 -0
- package/dist/{providers.d.ts → providers/providers.d.ts} +1 -1
- package/dist/providers/providers.d.ts.map +1 -0
- package/dist/providers/providers.js.map +1 -0
- package/dist/{secrets.d.ts → providers/secrets.d.ts} +24 -0
- package/dist/providers/secrets.d.ts.map +1 -0
- package/dist/{secrets.js → providers/secrets.js} +82 -2
- package/dist/providers/secrets.js.map +1 -0
- package/dist/{app-runtime.d.ts → runtime/app-runtime.d.ts} +8 -7
- package/dist/runtime/app-runtime.d.ts.map +1 -0
- package/dist/{app-runtime.js → runtime/app-runtime.js} +58 -28
- package/dist/runtime/app-runtime.js.map +1 -0
- package/dist/runtime/in-memory-runtime.d.ts +15 -0
- package/dist/runtime/in-memory-runtime.d.ts.map +1 -0
- package/dist/{in-memory-runtime.js → runtime/in-memory-runtime.js} +135 -29
- package/dist/runtime/in-memory-runtime.js.map +1 -0
- package/dist/runtime/renderer-api.d.ts +123 -0
- package/dist/runtime/renderer-api.d.ts.map +1 -0
- package/dist/{renderer-api.js.map → runtime/renderer-api.js.map} +1 -1
- package/dist/{runtime-tool-execution.d.ts → runtime/runtime-tool-execution.d.ts} +8 -3
- package/dist/runtime/runtime-tool-execution.d.ts.map +1 -0
- package/dist/runtime/runtime-tool-execution.js +733 -0
- package/dist/runtime/runtime-tool-execution.js.map +1 -0
- package/dist/{runtime.d.ts → runtime/runtime.d.ts} +31 -4
- package/dist/runtime/runtime.d.ts.map +1 -0
- package/dist/{runtime.js → runtime/runtime.js} +24 -0
- package/dist/runtime/runtime.js.map +1 -0
- package/dist/{history.d.ts → sessions/history.d.ts} +3 -2
- package/dist/sessions/history.d.ts.map +1 -0
- package/dist/{history.js → sessions/history.js} +55 -1
- package/dist/sessions/history.js.map +1 -0
- package/dist/{session-actions.d.ts → sessions/session-actions.d.ts} +2 -2
- package/dist/sessions/session-actions.d.ts.map +1 -0
- package/dist/{session-actions.js → sessions/session-actions.js} +2 -2
- package/dist/sessions/session-actions.js.map +1 -0
- package/dist/{cli-defined-tools.d.ts → tools/cli-defined-tools.d.ts} +2 -2
- package/dist/tools/cli-defined-tools.d.ts.map +1 -0
- package/dist/tools/cli-defined-tools.js.map +1 -0
- package/dist/tools/document-tools.d.ts +92 -0
- package/dist/tools/document-tools.d.ts.map +1 -0
- package/dist/tools/document-tools.js +430 -0
- package/dist/tools/document-tools.js.map +1 -0
- package/dist/{local-tools.d.ts → tools/local-tools.d.ts} +25 -0
- package/dist/tools/local-tools.d.ts.map +1 -0
- package/dist/tools/local-tools.js +944 -0
- package/dist/tools/local-tools.js.map +1 -0
- package/dist/tools/mcp-server-config.d.ts.map +1 -0
- package/dist/tools/mcp-server-config.js.map +1 -0
- package/dist/tools/permission-grant-store.d.ts.map +1 -0
- package/dist/tools/permission-grant-store.js.map +1 -0
- package/dist/{permission-grants.d.ts → tools/permission-grants.d.ts} +1 -1
- package/dist/tools/permission-grants.d.ts.map +1 -0
- package/dist/{permission-grants.js → tools/permission-grants.js} +31 -1
- package/dist/tools/permission-grants.js.map +1 -0
- package/dist/tools/project-app-defaults-tool.d.ts +4 -0
- package/dist/tools/project-app-defaults-tool.d.ts.map +1 -0
- package/dist/tools/project-app-defaults-tool.js +135 -0
- package/dist/tools/project-app-defaults-tool.js.map +1 -0
- package/dist/{project-tool-registry.d.ts → tools/project-tool-registry.d.ts} +2 -2
- package/dist/tools/project-tool-registry.d.ts.map +1 -0
- package/dist/{project-tool-registry.js → tools/project-tool-registry.js} +47 -9
- package/dist/tools/project-tool-registry.js.map +1 -0
- package/dist/{question-requests.d.ts → tools/question-requests.d.ts} +2 -2
- package/dist/tools/question-requests.d.ts.map +1 -0
- package/dist/{question-requests.js → tools/question-requests.js} +3 -2
- package/dist/tools/question-requests.js.map +1 -0
- package/dist/tools/subagent-task-tool.d.ts +8 -0
- package/dist/tools/subagent-task-tool.d.ts.map +1 -0
- package/dist/tools/subagent-task-tool.js +38 -0
- package/dist/tools/subagent-task-tool.js.map +1 -0
- package/dist/{tool-requests.d.ts → tools/tool-requests.d.ts} +4 -3
- package/dist/tools/tool-requests.d.ts.map +1 -0
- package/dist/{tool-requests.js → tools/tool-requests.js} +15 -4
- package/dist/tools/tool-requests.js.map +1 -0
- package/dist/{tools.d.ts → tools/tools.d.ts} +7 -1
- package/dist/tools/tools.d.ts.map +1 -0
- package/dist/{tools.js → tools/tools.js} +21 -0
- package/dist/tools/tools.js.map +1 -0
- package/dist/tools/update-plan-tool.d.ts +14 -0
- package/dist/tools/update-plan-tool.d.ts.map +1 -0
- package/dist/tools/update-plan-tool.js +83 -0
- package/dist/tools/update-plan-tool.js.map +1 -0
- package/dist/{personas.d.ts → workspace/personas.d.ts} +42 -1
- package/dist/workspace/personas.d.ts.map +1 -0
- package/dist/workspace/personas.js +457 -0
- package/dist/workspace/personas.js.map +1 -0
- package/dist/{projects.d.ts → workspace/projects.d.ts} +35 -5
- package/dist/workspace/projects.d.ts.map +1 -0
- package/dist/{projects.js → workspace/projects.js} +111 -3
- package/dist/workspace/projects.js.map +1 -0
- package/dist/{prompt-context.d.ts → workspace/prompt-context.d.ts} +5 -2
- package/dist/workspace/prompt-context.d.ts.map +1 -0
- package/dist/workspace/prompt-context.js +406 -0
- package/dist/workspace/prompt-context.js.map +1 -0
- package/dist/workspace/proposed-plan.d.ts.map +1 -0
- package/dist/workspace/proposed-plan.js.map +1 -0
- package/dist/workspace/repository-instructions.d.ts +20 -0
- package/dist/workspace/repository-instructions.d.ts.map +1 -0
- package/dist/workspace/repository-instructions.js +111 -0
- package/dist/workspace/repository-instructions.js.map +1 -0
- package/dist/{skills.d.ts → workspace/skills.d.ts} +23 -2
- package/dist/workspace/skills.d.ts.map +1 -0
- package/dist/{skills.js → workspace/skills.js} +129 -5
- package/dist/workspace/skills.js.map +1 -0
- package/package.json +15 -2
- package/dist/ai-sdk-provider.d.ts.map +0 -1
- package/dist/ai-sdk-provider.js.map +0 -1
- package/dist/app-runtime.d.ts.map +0 -1
- package/dist/app-runtime.js.map +0 -1
- package/dist/artifacts.d.ts.map +0 -1
- package/dist/artifacts.js.map +0 -1
- package/dist/cli-defined-tools.d.ts.map +0 -1
- package/dist/cli-defined-tools.js.map +0 -1
- package/dist/codex-oauth-provider.d.ts.map +0 -1
- package/dist/codex-oauth-provider.js.map +0 -1
- package/dist/events.d.ts.map +0 -1
- package/dist/events.js.map +0 -1
- package/dist/feedback.d.ts.map +0 -1
- package/dist/feedback.js.map +0 -1
- package/dist/history.d.ts.map +0 -1
- package/dist/history.js.map +0 -1
- package/dist/in-memory-runtime.d.ts +0 -12
- package/dist/in-memory-runtime.d.ts.map +0 -1
- package/dist/in-memory-runtime.js.map +0 -1
- package/dist/integrations.d.ts +0 -37
- package/dist/integrations.d.ts.map +0 -1
- package/dist/integrations.js +0 -48
- package/dist/integrations.js.map +0 -1
- package/dist/local-event-logger.d.ts.map +0 -1
- package/dist/local-event-logger.js.map +0 -1
- package/dist/local-event-schema.d.ts.map +0 -1
- package/dist/local-event-schema.js.map +0 -1
- package/dist/local-tools.d.ts.map +0 -1
- package/dist/local-tools.js +0 -418
- package/dist/local-tools.js.map +0 -1
- package/dist/mcp-server-config.d.ts.map +0 -1
- package/dist/mcp-server-config.js.map +0 -1
- package/dist/mock-provider.d.ts.map +0 -1
- package/dist/mock-provider.js.map +0 -1
- package/dist/model-catalog.d.ts.map +0 -1
- package/dist/model-catalog.js.map +0 -1
- package/dist/monoid-integration.d.ts +0 -33
- package/dist/monoid-integration.d.ts.map +0 -1
- package/dist/monoid-integration.js +0 -184
- package/dist/monoid-integration.js.map +0 -1
- package/dist/openai-oauth.d.ts.map +0 -1
- package/dist/openai-oauth.js.map +0 -1
- package/dist/permission-grant-store.d.ts.map +0 -1
- package/dist/permission-grant-store.js.map +0 -1
- package/dist/permission-grants.d.ts.map +0 -1
- package/dist/permission-grants.js.map +0 -1
- package/dist/personas.d.ts.map +0 -1
- package/dist/personas.js +0 -137
- package/dist/personas.js.map +0 -1
- package/dist/project-tool-registry.d.ts.map +0 -1
- package/dist/project-tool-registry.js.map +0 -1
- package/dist/projects.d.ts.map +0 -1
- package/dist/projects.js.map +0 -1
- package/dist/prompt-context.d.ts.map +0 -1
- package/dist/prompt-context.js +0 -170
- package/dist/prompt-context.js.map +0 -1
- package/dist/proposed-plan.d.ts.map +0 -1
- package/dist/proposed-plan.js.map +0 -1
- package/dist/providers.d.ts.map +0 -1
- package/dist/providers.js.map +0 -1
- package/dist/question-requests.d.ts.map +0 -1
- package/dist/question-requests.js.map +0 -1
- package/dist/renderer-api.d.ts +0 -52
- package/dist/renderer-api.d.ts.map +0 -1
- package/dist/runtime-tool-execution.d.ts.map +0 -1
- package/dist/runtime-tool-execution.js +0 -245
- package/dist/runtime-tool-execution.js.map +0 -1
- package/dist/runtime.d.ts.map +0 -1
- package/dist/runtime.js.map +0 -1
- package/dist/secrets.d.ts.map +0 -1
- package/dist/secrets.js.map +0 -1
- package/dist/session-actions.d.ts.map +0 -1
- package/dist/session-actions.js.map +0 -1
- package/dist/skills.d.ts.map +0 -1
- package/dist/skills.js.map +0 -1
- package/dist/tool-requests.d.ts.map +0 -1
- package/dist/tool-requests.js.map +0 -1
- package/dist/tools.d.ts.map +0 -1
- package/dist/tools.js.map +0 -1
- package/dist/wyrdos-integration.d.ts +0 -32
- package/dist/wyrdos-integration.d.ts.map +0 -1
- package/dist/wyrdos-integration.js +0 -183
- package/dist/wyrdos-integration.js.map +0 -1
- /package/dist/{artifacts.js → events/artifacts.js} +0 -0
- /package/dist/{feedback.js → events/feedback.js} +0 -0
- /package/dist/{local-event-schema.js → events/local-event-schema.js} +0 -0
- /package/dist/{openai-oauth.js → providers/definitions/openai-oauth.js} +0 -0
- /package/dist/{mock-provider.js → providers/mock-provider.js} +0 -0
- /package/dist/{providers.js → providers/providers.js} +0 -0
- /package/dist/{renderer-api.js → runtime/renderer-api.js} +0 -0
- /package/dist/{cli-defined-tools.js → tools/cli-defined-tools.js} +0 -0
- /package/dist/{mcp-server-config.d.ts → tools/mcp-server-config.d.ts} +0 -0
- /package/dist/{mcp-server-config.js → tools/mcp-server-config.js} +0 -0
- /package/dist/{permission-grant-store.d.ts → tools/permission-grant-store.d.ts} +0 -0
- /package/dist/{permission-grant-store.js → tools/permission-grant-store.js} +0 -0
- /package/dist/{proposed-plan.d.ts → workspace/proposed-plan.d.ts} +0 -0
- /package/dist/{proposed-plan.js → workspace/proposed-plan.js} +0 -0
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
import { execFile } from "node:child_process";
|
|
2
|
-
import { promisify } from "node:util";
|
|
3
|
-
const execFileAsync = promisify(execFile);
|
|
4
|
-
export class IntegrationCliError extends Error {
|
|
5
|
-
code;
|
|
6
|
-
recoverable = true;
|
|
7
|
-
constructor(code, message) {
|
|
8
|
-
super(message);
|
|
9
|
-
this.code = code;
|
|
10
|
-
this.name = "IntegrationCliError";
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
function createNotWiredResult(toolId) {
|
|
14
|
-
return {
|
|
15
|
-
content: JSON.stringify({
|
|
16
|
-
ok: false,
|
|
17
|
-
code: "integration_not_wired",
|
|
18
|
-
toolId,
|
|
19
|
-
message: "WyrdOS CLI execution is not wired yet."
|
|
20
|
-
})
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
export function createWyrdosIntegrationSkeleton() {
|
|
24
|
-
const readInputSchema = {
|
|
25
|
-
type: "object",
|
|
26
|
-
additionalProperties: false,
|
|
27
|
-
properties: {
|
|
28
|
-
scope: { type: "string", enum: ["workspace", "container", "project"] },
|
|
29
|
-
ref: { type: "string" }
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
const writeInputSchema = {
|
|
33
|
-
type: "object",
|
|
34
|
-
additionalProperties: false,
|
|
35
|
-
required: ["args"],
|
|
36
|
-
properties: {
|
|
37
|
-
args: {
|
|
38
|
-
type: "array",
|
|
39
|
-
minItems: 1,
|
|
40
|
-
items: { type: "string" }
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
const tools = [
|
|
45
|
-
{
|
|
46
|
-
id: "wyrdos_context_read",
|
|
47
|
-
name: "WyrdOS context read",
|
|
48
|
-
description: "Read compact WyrdOS context for configured workspace/container/project refs.",
|
|
49
|
-
inputSchema: readInputSchema,
|
|
50
|
-
permissionPolicy: "never",
|
|
51
|
-
async executor(input) {
|
|
52
|
-
const params = normalizeReadInput(input);
|
|
53
|
-
const context = await runWyrdosContextRead(params);
|
|
54
|
-
return {
|
|
55
|
-
content: JSON.stringify({
|
|
56
|
-
scope: params.scope,
|
|
57
|
-
ref: params.ref,
|
|
58
|
-
context
|
|
59
|
-
})
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
id: "wyrdos_update",
|
|
65
|
-
name: "WyrdOS update",
|
|
66
|
-
description: "Execute an approval-gated WyrdOS CLI write action.",
|
|
67
|
-
inputSchema: writeInputSchema,
|
|
68
|
-
permissionPolicy: "on-request",
|
|
69
|
-
async executor(input) {
|
|
70
|
-
const args = normalizeWriteArgs(input);
|
|
71
|
-
const result = await runWyrdosUpdate(args);
|
|
72
|
-
return {
|
|
73
|
-
content: JSON.stringify(result)
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
];
|
|
78
|
-
return {
|
|
79
|
-
definition: {
|
|
80
|
-
id: "wyrdos",
|
|
81
|
-
kind: "wyrdos",
|
|
82
|
-
name: "WyrdOS",
|
|
83
|
-
description: "WyrdOS CLI-backed integration tools.",
|
|
84
|
-
tools: [
|
|
85
|
-
{
|
|
86
|
-
id: "wyrdos_context_read",
|
|
87
|
-
name: "WyrdOS context read",
|
|
88
|
-
description: "Read compact WyrdOS context.",
|
|
89
|
-
inputSchema: readInputSchema,
|
|
90
|
-
permissionPolicy: "never",
|
|
91
|
-
readOnly: true,
|
|
92
|
-
approvalRequired: false
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
id: "wyrdos_update",
|
|
96
|
-
name: "WyrdOS update",
|
|
97
|
-
description: "Approval-gated WyrdOS CLI write action.",
|
|
98
|
-
inputSchema: writeInputSchema,
|
|
99
|
-
permissionPolicy: "on-request",
|
|
100
|
-
readOnly: false,
|
|
101
|
-
approvalRequired: true
|
|
102
|
-
}
|
|
103
|
-
]
|
|
104
|
-
},
|
|
105
|
-
tools
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
export async function runWyrdosContextRead(input, options = {}) {
|
|
109
|
-
const exec = options.exec ?? execFileAsync;
|
|
110
|
-
const args = [
|
|
111
|
-
"context",
|
|
112
|
-
"get",
|
|
113
|
-
"--scope",
|
|
114
|
-
input.scope,
|
|
115
|
-
...(input.ref ? ["--ref", input.ref] : []),
|
|
116
|
-
"-o",
|
|
117
|
-
"json"
|
|
118
|
-
];
|
|
119
|
-
try {
|
|
120
|
-
const result = await exec("wyrdos", args, { timeout: 10_000, maxBuffer: options.maxBytes ?? 128_000 });
|
|
121
|
-
const parsed = JSON.parse(result.stdout);
|
|
122
|
-
if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) {
|
|
123
|
-
throw new IntegrationCliError("invalid_payload", "WyrdOS CLI returned non-object context payload.");
|
|
124
|
-
}
|
|
125
|
-
return parsed;
|
|
126
|
-
}
|
|
127
|
-
catch (error) {
|
|
128
|
-
if (error instanceof IntegrationCliError) {
|
|
129
|
-
throw error;
|
|
130
|
-
}
|
|
131
|
-
if (typeof error === "object" && error && "code" in error && error.code === "ENOENT") {
|
|
132
|
-
throw new IntegrationCliError("missing_cli", "WyrdOS CLI not found. Install and login before using this tool.");
|
|
133
|
-
}
|
|
134
|
-
if (error instanceof SyntaxError) {
|
|
135
|
-
throw new IntegrationCliError("invalid_payload", "WyrdOS CLI returned invalid JSON.");
|
|
136
|
-
}
|
|
137
|
-
throw new IntegrationCliError("cli_failed", "WyrdOS CLI context read failed.");
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
export async function runWyrdosUpdate(args, options = {}) {
|
|
141
|
-
const exec = options.exec ?? execFileAsync;
|
|
142
|
-
try {
|
|
143
|
-
const result = await exec("wyrdos", [...args], {
|
|
144
|
-
timeout: 10_000,
|
|
145
|
-
maxBuffer: options.maxBytes ?? 128_000
|
|
146
|
-
});
|
|
147
|
-
const summary = [result.stdout, result.stderr].filter(Boolean).join("\n").trim().slice(0, 2000);
|
|
148
|
-
return { ok: true, args, summary };
|
|
149
|
-
}
|
|
150
|
-
catch (error) {
|
|
151
|
-
if (typeof error === "object" && error && "code" in error && error.code === "ENOENT") {
|
|
152
|
-
throw new IntegrationCliError("missing_cli", "WyrdOS CLI not found. Install and login before using this tool.");
|
|
153
|
-
}
|
|
154
|
-
throw new IntegrationCliError("cli_failed", "WyrdOS CLI write execution failed.");
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
function normalizeReadInput(input) {
|
|
158
|
-
if (!input || typeof input !== "object" || Array.isArray(input)) {
|
|
159
|
-
return { scope: "project" };
|
|
160
|
-
}
|
|
161
|
-
const scopeValue = input.scope;
|
|
162
|
-
const refValue = input.ref;
|
|
163
|
-
const scope = scopeValue === "workspace" || scopeValue === "container" || scopeValue === "project"
|
|
164
|
-
? scopeValue
|
|
165
|
-
: "project";
|
|
166
|
-
const ref = typeof refValue === "string" && refValue.trim() ? refValue.trim() : undefined;
|
|
167
|
-
return { scope, ...(ref ? { ref } : {}) };
|
|
168
|
-
}
|
|
169
|
-
function normalizeWriteArgs(input) {
|
|
170
|
-
if (!input || typeof input !== "object" || Array.isArray(input)) {
|
|
171
|
-
throw new Error("WyrdOS update requires an object input.");
|
|
172
|
-
}
|
|
173
|
-
const argsValue = input.args;
|
|
174
|
-
if (!Array.isArray(argsValue) || argsValue.length === 0) {
|
|
175
|
-
throw new Error("WyrdOS update requires args array.");
|
|
176
|
-
}
|
|
177
|
-
const args = argsValue.map((value) => String(value).trim()).filter(Boolean);
|
|
178
|
-
if (args.length === 0) {
|
|
179
|
-
throw new Error("WyrdOS update requires at least one non-empty arg.");
|
|
180
|
-
}
|
|
181
|
-
return args;
|
|
182
|
-
}
|
|
183
|
-
//# sourceMappingURL=wyrdos-integration.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3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AAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;IACxD,CAAC;IACD,MAAM,IAAI,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC5E,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACtB,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;IACxE,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|