@nomix-ai/nomix-harness 0.2.3 → 0.2.5
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/cli/builtin-registry.d.ts +1 -1
- package/dist/cli/builtin-registry.js +10 -0
- package/dist/cli/profile-boot.d.ts +2 -2
- package/dist/kernel/acp/lib/index.js +1 -1
- package/dist/kernel/acp/lib/types/content.d.ts +1 -1
- package/dist/kernel/acp/lib/types/index.d.ts +2 -2
- package/dist/kernel/acp/lib/types/index.js +1 -1
- package/dist/kernel/acp/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/acp/package.json +1 -1
- package/dist/kernel/agent/lib/index.js +1 -1
- package/dist/kernel/agent/lib/types/dispatch.d.ts +1 -1
- package/dist/kernel/agent/lib/types/index.d.ts +1 -1
- package/dist/kernel/agent/lib/types/index.js +1 -1
- package/dist/kernel/agent/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/agent/lib/types/model-selection.d.ts +1 -1
- package/dist/kernel/agent/lib/types/runtime-types.d.ts +1 -1
- package/dist/kernel/agent/package.json +1 -1
- package/dist/kernel/agent-default-model/lib/index.js +2 -2
- package/dist/kernel/agent-default-model/lib/types/index.d.ts +2 -2
- package/dist/kernel/agent-default-model/lib/types/index.js +2 -2
- package/dist/kernel/agent-default-model/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/agent-default-model/package.json +1 -1
- package/dist/kernel/agent-instructions/lib/index.js +1 -1
- package/dist/kernel/agent-instructions/lib/types/config.d.ts +1 -1
- package/dist/kernel/agent-instructions/lib/types/config.js +1 -1
- package/dist/kernel/agent-instructions/lib/types/index.d.ts +1 -1
- package/dist/kernel/agent-instructions/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/agent-instructions/package.json +1 -1
- package/dist/kernel/agent-loop/lib/index.js +2 -2
- package/dist/kernel/agent-loop/lib/types/agent.d.ts +1 -1
- package/dist/kernel/agent-loop/lib/types/index.d.ts +2 -2
- package/dist/kernel/agent-loop/lib/types/index.js +2 -2
- package/dist/kernel/agent-loop/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/agent-loop/lib/types/runtime-context.d.ts +1 -1
- package/dist/kernel/agent-loop/lib/types/tool-calls.d.ts +1 -1
- package/dist/kernel/agent-loop/package.json +1 -1
- package/dist/kernel/agent-presets/lib/index.js +3 -3
- package/dist/kernel/agent-presets/lib/invariant.js +3 -3
- package/dist/kernel/agent-presets/lib/types/discovery.js +1 -1
- package/dist/kernel/agent-presets/lib/types/index.d.ts +2 -2
- package/dist/kernel/agent-presets/lib/types/index.js +2 -2
- package/dist/kernel/agent-presets/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/agent-presets/lib/types/mount.d.ts +2 -2
- package/dist/kernel/agent-presets/lib/types/mount.js +2 -2
- package/dist/kernel/agent-presets/package.json +1 -1
- package/dist/kernel/agent-tool-presentation/lib/index.js +1 -1
- package/dist/kernel/agent-tool-presentation/lib/types/index.d.ts +2 -2
- package/dist/kernel/agent-tool-presentation/lib/types/index.js +1 -1
- package/dist/kernel/agent-tool-presentation/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/agent-tool-presentation/package.json +1 -1
- package/dist/kernel/anonymous-user-id/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/anonymous-user-id/package.json +1 -1
- package/dist/kernel/api-gateway/lib/index.js +1 -1
- package/dist/kernel/api-gateway/lib/types/client/index.d.ts +1 -1
- package/dist/kernel/api-gateway/lib/types/client/index.js +1 -1
- package/dist/kernel/api-gateway/lib/types/index.d.ts +1 -1
- package/dist/kernel/api-gateway/lib/types/index.js +1 -1
- package/dist/kernel/api-gateway/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/api-gateway/package.json +1 -1
- package/dist/kernel/api-remotes/lib/types/agent-lookup.d.ts +1 -1
- package/dist/kernel/api-remotes/lib/types/client/index.d.ts +1 -1
- package/dist/kernel/api-remotes/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/api-remotes/package.json +1 -1
- package/dist/kernel/app-boot/lib/index.js +4 -4
- package/dist/kernel/app-boot/lib/types/index.d.ts +3 -3
- package/dist/kernel/app-boot/lib/types/index.js +4 -4
- package/dist/kernel/app-boot/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/app-boot/lib/types/profile.d.ts +2 -2
- package/dist/kernel/app-boot/lib/types/profile.js +2 -2
- package/dist/kernel/app-boot/package.json +1 -1
- package/dist/kernel/atomic-write/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/atomic-write/package.json +1 -1
- package/dist/kernel/attachment/lib/index.js +1 -1
- package/dist/kernel/attachment/lib/types/index.d.ts +1 -1
- package/dist/kernel/attachment/lib/types/index.js +1 -1
- package/dist/kernel/attachment/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/attachment/package.json +1 -1
- package/dist/kernel/attachment-local/lib/index.js +1 -1
- package/dist/kernel/attachment-local/lib/types/index.d.ts +2 -2
- package/dist/kernel/attachment-local/lib/types/index.js +1 -1
- package/dist/kernel/attachment-local/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/attachment-local/package.json +1 -1
- package/dist/kernel/base/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/base/package.json +1 -1
- package/dist/kernel/bash-local/lib/index.js +1 -1
- package/dist/kernel/bash-local/lib/types/index.d.ts +2 -2
- package/dist/kernel/bash-local/lib/types/index.js +1 -1
- package/dist/kernel/bash-local/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/bash-local/package.json +1 -1
- package/dist/kernel/bash-sandbox/lib/types/index.d.ts +1 -1
- package/dist/kernel/bash-sandbox/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/bash-sandbox/package.json +1 -1
- package/dist/kernel/brand/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/brand/package.json +1 -1
- package/dist/kernel/client-connection/lib/index.js +2 -2
- package/dist/kernel/client-connection/lib/types/client/index.d.ts +1 -1
- package/dist/kernel/client-connection/lib/types/index.d.ts +2 -2
- package/dist/kernel/client-connection/lib/types/index.js +1 -1
- package/dist/kernel/client-connection/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-connection/lib/types/rpc-host.d.ts +1 -1
- package/dist/kernel/client-connection/lib/types/rpc-host.js +1 -1
- package/dist/kernel/client-connection/package.json +1 -1
- package/dist/kernel/client-hmr/lib/index.js +1 -1
- package/dist/kernel/client-hmr/lib/types/client/index.d.ts +1 -1
- package/dist/kernel/client-hmr/lib/types/index.d.ts +2 -2
- package/dist/kernel/client-hmr/lib/types/index.js +1 -1
- package/dist/kernel/client-hmr/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-hmr/package.json +1 -1
- package/dist/kernel/client-locale/lib/client.js +1 -1
- package/dist/kernel/client-locale/lib/index.js +1 -1
- package/dist/kernel/client-locale/lib/types/client/index.d.ts +1 -1
- package/dist/kernel/client-locale/lib/types/index.d.ts +1 -1
- package/dist/kernel/client-locale/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-locale/lib/types/locale-settings.d.ts +1 -1
- package/dist/kernel/client-locale/lib/types/locale-settings.js +1 -1
- package/dist/kernel/client-locale/package.json +1 -1
- package/dist/kernel/client-modules/lib/index.js +1 -1
- package/dist/kernel/client-modules/lib/types/client/index.d.ts +1 -1
- package/dist/kernel/client-modules/lib/types/index.d.ts +2 -2
- package/dist/kernel/client-modules/lib/types/index.js +1 -1
- package/dist/kernel/client-modules/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-modules/package.json +1 -1
- package/dist/kernel/client-runtime/lib/types/client/agents/scope.d.ts +1 -1
- package/dist/kernel/client-runtime/lib/types/client/agents/scope.js +1 -1
- package/dist/kernel/client-runtime/lib/types/client/contract/sessions.d.ts +1 -1
- package/dist/kernel/client-runtime/lib/types/client/conversation/definition-registry.d.ts +1 -1
- package/dist/kernel/client-runtime/lib/types/client/conversation/definition-registry.js +1 -1
- package/dist/kernel/client-runtime/lib/types/client/conversation/event-registry.d.ts +1 -1
- package/dist/kernel/client-runtime/lib/types/client/conversation/view-registry.d.ts +1 -1
- package/dist/kernel/client-runtime/lib/types/client/index.d.ts +1 -1
- package/dist/kernel/client-runtime/lib/types/client/sessions/remotes.d.ts +1 -1
- package/dist/kernel/client-runtime/lib/types/client/sessions/service.d.ts +1 -1
- package/dist/kernel/client-runtime/lib/types/client/sessions/session.d.ts +1 -1
- package/dist/kernel/client-runtime/lib/types/client/slots.d.ts +2 -2
- package/dist/kernel/client-runtime/lib/types/client/slots.js +1 -1
- package/dist/kernel/client-runtime/lib/types/client/workspaces/service.d.ts +1 -1
- package/dist/kernel/client-runtime/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-runtime/package.json +1 -1
- package/dist/kernel/client-schema-form/lib/index.js +1 -1
- package/dist/kernel/client-schema-form/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-schema-form/lib/types/model.d.ts +1 -1
- package/dist/kernel/client-schema-form/lib/types/model.js +1 -1
- package/dist/kernel/client-schema-form/package.json +1 -1
- package/dist/kernel/client-ui-agent-preset/lib/client.js +36 -36
- package/dist/kernel/client-ui-agent-preset/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-ui-agent-preset/package.json +1 -1
- package/dist/kernel/client-ui-attachment/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-ui-attachment/package.json +1 -1
- package/dist/kernel/client-ui-commands/lib/client.js +7 -7
- package/dist/kernel/client-ui-commands/lib/types/client/service.d.ts +2 -2
- package/dist/kernel/client-ui-commands/lib/types/client/service.js +1 -1
- package/dist/kernel/client-ui-commands/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-ui-commands/package.json +1 -1
- package/dist/kernel/client-ui-conversation/lib/client.js +156 -156
- package/dist/kernel/client-ui-conversation/lib/index.js +1 -1
- package/dist/kernel/client-ui-conversation/lib/types/client/apply.d.ts +1 -1
- package/dist/kernel/client-ui-conversation/lib/types/client/chat/register-node-renderers.d.ts +1 -1
- package/dist/kernel/client-ui-conversation/lib/types/client/conversation-nodes/assistant.d.ts +1 -1
- package/dist/kernel/client-ui-conversation/lib/types/client/conversation-nodes/chat-snapshot-builder.d.ts +1 -1
- package/dist/kernel/client-ui-conversation/lib/types/client/conversation-nodes/command.d.ts +1 -1
- package/dist/kernel/client-ui-conversation/lib/types/client/conversation-nodes/compaction.d.ts +1 -1
- package/dist/kernel/client-ui-conversation/lib/types/client/conversation-nodes/fallback.d.ts +1 -1
- package/dist/kernel/client-ui-conversation/lib/types/client/conversation-nodes/inbox.d.ts +1 -1
- package/dist/kernel/client-ui-conversation/lib/types/client/conversation-nodes/message.d.ts +1 -1
- package/dist/kernel/client-ui-conversation/lib/types/client/conversation-nodes/register.d.ts +1 -1
- package/dist/kernel/client-ui-conversation/lib/types/client/conversation-nodes/retry.d.ts +1 -1
- package/dist/kernel/client-ui-conversation/lib/types/client/conversation-nodes/tool.d.ts +1 -1
- package/dist/kernel/client-ui-conversation/lib/types/client/conversation-nodes/turn-error.d.ts +1 -1
- package/dist/kernel/client-ui-conversation/lib/types/client/conversation-nodes/turn-max-tokens.d.ts +1 -1
- package/dist/kernel/client-ui-conversation/lib/types/client/conversation-nodes/turn-tail.d.ts +1 -1
- package/dist/kernel/client-ui-conversation/lib/types/client/queue/QueueDock.d.ts +1 -1
- package/dist/kernel/client-ui-conversation/lib/types/client/service.d.ts +2 -2
- package/dist/kernel/client-ui-conversation/lib/types/client/service.js +1 -1
- package/dist/kernel/client-ui-conversation/lib/types/client/skeleton/TodoPanel.d.ts +1 -1
- package/dist/kernel/client-ui-conversation/lib/types/index.d.ts +1 -1
- package/dist/kernel/client-ui-conversation/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-ui-conversation/lib/types/submission-settings.d.ts +1 -1
- package/dist/kernel/client-ui-conversation/lib/types/submission-settings.js +1 -1
- package/dist/kernel/client-ui-conversation/package.json +1 -1
- package/dist/kernel/client-ui-cordis/lib/client.js +48 -48
- package/dist/kernel/client-ui-cordis/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-ui-cordis/package.json +1 -1
- package/dist/kernel/client-ui-deliverables/lib/client.js +4 -4
- package/dist/kernel/client-ui-deliverables/lib/types/index.d.ts +1 -1
- package/dist/kernel/client-ui-deliverables/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-ui-deliverables/package.json +1 -1
- package/dist/kernel/client-ui-directory-picker-browse/lib/client.js +29 -29
- package/dist/kernel/client-ui-directory-picker-browse/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-ui-directory-picker-browse/package.json +1 -1
- package/dist/kernel/client-ui-directory-picker-native/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-ui-directory-picker-native/package.json +1 -1
- package/dist/kernel/client-ui-goal/lib/client.js +8 -8
- package/dist/kernel/client-ui-goal/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-ui-goal/package.json +1 -1
- package/dist/kernel/client-ui-input-trigger/lib/client.js +7 -7
- package/dist/kernel/client-ui-input-trigger/lib/types/client/service.d.ts +2 -2
- package/dist/kernel/client-ui-input-trigger/lib/types/client/service.js +1 -1
- package/dist/kernel/client-ui-input-trigger/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-ui-input-trigger/package.json +1 -1
- package/dist/kernel/client-ui-jobs/lib/client.js +8 -8
- package/dist/kernel/client-ui-jobs/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-ui-jobs/package.json +1 -1
- package/dist/kernel/client-ui-layout/lib/client.js +2 -2
- package/dist/kernel/client-ui-layout/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-ui-layout/package.json +1 -1
- package/dist/kernel/client-ui-message-feedback/lib/client.js +4 -4
- package/dist/kernel/client-ui-message-feedback/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-ui-message-feedback/package.json +1 -1
- package/dist/kernel/client-ui-model-selection/lib/client.js +16 -16
- package/dist/kernel/client-ui-model-selection/lib/types/client/service.d.ts +2 -2
- package/dist/kernel/client-ui-model-selection/lib/types/client/service.js +1 -1
- package/dist/kernel/client-ui-model-selection/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-ui-model-selection/package.json +1 -1
- package/dist/kernel/client-ui-permission-presets/lib/client.js +3 -3
- package/dist/kernel/client-ui-permission-presets/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-ui-permission-presets/package.json +1 -1
- package/dist/kernel/client-ui-plan/lib/client.js +2 -2
- package/dist/kernel/client-ui-plan/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-ui-plan/package.json +1 -1
- package/dist/kernel/client-ui-primitives/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-ui-primitives/package.json +1 -1
- package/dist/kernel/client-ui-settings/lib/types/client/settings-scope.d.ts +2 -2
- package/dist/kernel/client-ui-settings/lib/types/client/settings-scope.js +1 -1
- package/dist/kernel/client-ui-settings/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-ui-settings/package.json +1 -1
- package/dist/kernel/client-ui-settings-general/lib/client.js +16 -16
- package/dist/kernel/client-ui-settings-general/lib/index.js +1 -1
- package/dist/kernel/client-ui-settings-general/lib/types/index.d.ts +1 -1
- package/dist/kernel/client-ui-settings-general/lib/types/index.js +1 -1
- package/dist/kernel/client-ui-settings-general/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-ui-settings-general/package.json +1 -1
- package/dist/kernel/client-ui-settings-models/lib/client.js +55 -55
- package/dist/kernel/client-ui-settings-models/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-ui-settings-models/package.json +1 -1
- package/dist/kernel/client-ui-settings-plugin-inventory/lib/client.js +11 -11
- package/dist/kernel/client-ui-settings-plugin-inventory/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-ui-settings-plugin-inventory/package.json +1 -1
- package/dist/kernel/client-ui-settings-plugins/lib/client.js +21 -21
- package/dist/kernel/client-ui-settings-plugins/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-ui-settings-plugins/package.json +1 -1
- package/dist/kernel/client-ui-sidebar/lib/client.js +14 -14
- package/dist/kernel/client-ui-sidebar/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-ui-sidebar/package.json +1 -1
- package/dist/kernel/client-ui-skill/lib/client.js +12 -12
- package/dist/kernel/client-ui-skill/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-ui-skill/package.json +1 -1
- package/dist/kernel/client-ui-slots/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-ui-slots/package.json +1 -1
- package/dist/kernel/client-ui-subagent/lib/client.js +17 -17
- package/dist/kernel/client-ui-subagent/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-ui-subagent/package.json +1 -1
- package/dist/kernel/client-ui-theme/lib/client.js +3 -3
- package/dist/kernel/client-ui-theme/lib/index.js +1 -1
- package/dist/kernel/client-ui-theme/lib/types/client/index.d.ts +1 -1
- package/dist/kernel/client-ui-theme/lib/types/index.d.ts +1 -1
- package/dist/kernel/client-ui-theme/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-ui-theme/lib/types/theme-settings.d.ts +1 -1
- package/dist/kernel/client-ui-theme/lib/types/theme-settings.js +1 -1
- package/dist/kernel/client-ui-theme/package.json +1 -1
- package/dist/kernel/client-ui-tool/lib/client.js +37 -37
- package/dist/kernel/client-ui-tool/lib/types/client/tool/toolviews/ask-question-row.d.ts +1 -1
- package/dist/kernel/client-ui-tool/lib/types/client/tool/toolviews/bash-sample.d.ts +1 -1
- package/dist/kernel/client-ui-tool/lib/types/client/tool/toolviews/file-mutation-row.d.ts +1 -1
- package/dist/kernel/client-ui-tool/lib/types/client/tool/toolviews/read-row.d.ts +1 -1
- package/dist/kernel/client-ui-tool/lib/types/client/tool/toolviews/search-row.d.ts +1 -1
- package/dist/kernel/client-ui-tool/lib/types/client/tool/toolviews/todo-row.d.ts +1 -1
- package/dist/kernel/client-ui-tool/lib/types/client/tool/toolviews/web-row.d.ts +1 -1
- package/dist/kernel/client-ui-tool/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-ui-tool/package.json +1 -1
- package/dist/kernel/client-ui-trajectory/lib/client.js +149 -149
- package/dist/kernel/client-ui-trajectory/lib/types/client/index.d.ts +1 -1
- package/dist/kernel/client-ui-trajectory/lib/types/client/trajectory-assistant-definition.d.ts +1 -1
- package/dist/kernel/client-ui-trajectory/lib/types/client/trajectory-compaction-definition.d.ts +1 -1
- package/dist/kernel/client-ui-trajectory/lib/types/client/trajectory-message-definitions.d.ts +1 -1
- package/dist/kernel/client-ui-trajectory/lib/types/client/trajectory-request-header-definition.d.ts +1 -1
- package/dist/kernel/client-ui-trajectory/lib/types/client/trajectory-snapshot-builder.d.ts +1 -1
- package/dist/kernel/client-ui-trajectory/lib/types/client/trajectory-tool-definition.d.ts +1 -1
- package/dist/kernel/client-ui-trajectory/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-ui-trajectory/package.json +1 -1
- package/dist/kernel/client-ui-user-questions/lib/client.js +29 -29
- package/dist/kernel/client-ui-user-questions/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-ui-user-questions/package.json +1 -1
- package/dist/kernel/client-ui-workflow-run/lib/client.js +16 -16
- package/dist/kernel/client-ui-workflow-run/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-ui-workflow-run/package.json +1 -1
- package/dist/kernel/client-ui-workspace/lib/client.js +56 -56
- package/dist/kernel/client-ui-workspace/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-ui-workspace/package.json +1 -1
- package/dist/kernel/client-web/lib/index.js +3 -3
- package/dist/kernel/client-web/lib/types/app-shell.d.ts +1 -1
- package/dist/kernel/client-web/lib/types/app.d.ts +1 -1
- package/dist/kernel/client-web/lib/types/boot.js +2 -2
- package/dist/kernel/client-web/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-web/lib/types/loader-status.d.ts +1 -1
- package/dist/kernel/client-web/lib/types/seed.js +1 -1
- package/dist/kernel/client-web/package.json +1 -1
- package/dist/kernel/client-web-react/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/client-web-react/package.json +1 -1
- package/dist/kernel/cmdline/lib/types/index.d.ts +1 -1
- package/dist/kernel/cmdline/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/cmdline/package.json +1 -1
- package/dist/kernel/code-runtime/lib/index.js +1 -1
- package/dist/kernel/code-runtime/lib/types/index.d.ts +1 -1
- package/dist/kernel/code-runtime/lib/types/index.js +1 -1
- package/dist/kernel/code-runtime/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/code-runtime/package.json +1 -1
- package/dist/kernel/code-runtime-worker-thread/lib/index.js +1 -1
- package/dist/kernel/code-runtime-worker-thread/lib/types/index.d.ts +2 -2
- package/dist/kernel/code-runtime-worker-thread/lib/types/index.js +1 -1
- package/dist/kernel/code-runtime-worker-thread/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/code-runtime-worker-thread/package.json +1 -1
- package/dist/kernel/command-compact/lib/types/index.d.ts +1 -1
- package/dist/kernel/command-compact/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/command-compact/package.json +1 -1
- package/dist/kernel/command-feedback/lib/types/index.d.ts +1 -1
- package/dist/kernel/command-feedback/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/command-feedback/package.json +1 -1
- package/dist/kernel/command-goal/lib/types/index.d.ts +1 -1
- package/dist/kernel/command-goal/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/command-goal/package.json +1 -1
- package/dist/kernel/commands/lib/types/index.d.ts +1 -1
- package/dist/kernel/commands/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/commands/package.json +1 -1
- package/dist/kernel/compaction/lib/index.js +1 -1
- package/dist/kernel/compaction/lib/types/index.d.ts +1 -1
- package/dist/kernel/compaction/lib/types/index.js +1 -1
- package/dist/kernel/compaction/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/compaction/package.json +1 -1
- package/dist/kernel/compaction-basic/lib/index.js +1 -1
- package/dist/kernel/compaction-basic/lib/types/index.d.ts +2 -2
- package/dist/kernel/compaction-basic/lib/types/index.js +1 -1
- package/dist/kernel/compaction-basic/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/compaction-basic/lib/types/summarizer.d.ts +1 -1
- package/dist/kernel/compaction-basic/package.json +1 -1
- package/dist/kernel/compaction-tool-result-pruner/lib/index.js +2 -2
- package/dist/kernel/compaction-tool-result-pruner/lib/types/index.d.ts +2 -2
- package/dist/kernel/compaction-tool-result-pruner/lib/types/index.js +2 -2
- package/dist/kernel/compaction-tool-result-pruner/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/compaction-tool-result-pruner/package.json +1 -1
- package/dist/kernel/cordis/bin.js +16 -0
- package/dist/kernel/cordis/lib/index.js +1828 -0
- package/dist/kernel/cordis/lib/types/context.d.ts +101 -0
- package/dist/kernel/cordis/lib/types/context.js +99 -0
- package/dist/kernel/cordis/lib/types/events.d.ts +240 -0
- package/dist/kernel/cordis/lib/types/events.js +199 -0
- package/dist/kernel/cordis/lib/types/fiber.d.ts +202 -0
- package/dist/kernel/cordis/lib/types/fiber.js +660 -0
- package/dist/kernel/cordis/lib/types/index.d.ts +15 -0
- package/dist/kernel/cordis/lib/types/index.js +15 -0
- package/dist/kernel/cordis/lib/types/logger.d.ts +105 -0
- package/dist/kernel/cordis/lib/types/logger.js +185 -0
- package/dist/kernel/cordis/lib/types/reflect.d.ts +186 -0
- package/dist/kernel/cordis/lib/types/reflect.js +310 -0
- package/dist/kernel/cordis/lib/types/registry.d.ts +201 -0
- package/dist/kernel/cordis/lib/types/registry.js +218 -0
- package/dist/kernel/cordis/lib/types/service.d.ts +55 -0
- package/dist/kernel/cordis/lib/types/service.js +113 -0
- package/dist/kernel/cordis/lib/types/utils.d.ts +62 -0
- package/dist/kernel/cordis/lib/types/utils.js +271 -0
- package/dist/kernel/cordis/package.json +49 -0
- package/dist/kernel/cordis-client-runner/lib/types/client/guard.d.ts +1 -1
- package/dist/kernel/cordis-client-runner/lib/types/client/guard.js +1 -1
- package/dist/kernel/cordis-client-runner/lib/types/client/index.d.ts +1 -1
- package/dist/kernel/cordis-client-runner/lib/types/client/inspect-registry.d.ts +1 -1
- package/dist/kernel/cordis-client-runner/lib/types/client/providers.d.ts +1 -1
- package/dist/kernel/cordis-client-runner/lib/types/client/runtime.d.ts +2 -2
- package/dist/kernel/cordis-client-runner/lib/types/client/timer.d.ts +2 -2
- package/dist/kernel/cordis-client-runner/lib/types/client/timer.js +1 -1
- package/dist/kernel/cordis-client-runner/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/cordis-client-runner/package.json +1 -1
- package/dist/kernel/cordis-host-runner/lib/index.js +2 -2
- package/dist/kernel/cordis-host-runner/lib/types/guard.d.ts +2 -2
- package/dist/kernel/cordis-host-runner/lib/types/guard.js +1 -1
- package/dist/kernel/cordis-host-runner/lib/types/index.d.ts +3 -3
- package/dist/kernel/cordis-host-runner/lib/types/index.js +1 -1
- package/dist/kernel/cordis-host-runner/lib/types/inspect-registry.d.ts +2 -2
- package/dist/kernel/cordis-host-runner/lib/types/inspect-registry.js +1 -1
- package/dist/kernel/cordis-host-runner/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/cordis-host-runner/lib/types/lifecycle.d.ts +1 -1
- package/dist/kernel/cordis-host-runner/lib/types/registry.d.ts +1 -1
- package/dist/kernel/cordis-host-runner/package.json +1 -1
- package/dist/kernel/cordis-plugin-group/lib/index.js +5 -0
- package/dist/kernel/cordis-plugin-group/lib/types/index.d.ts +3 -0
- package/dist/kernel/cordis-plugin-group/lib/types/index.js +3 -0
- package/dist/kernel/cordis-plugin-group/package.json +34 -0
- package/dist/kernel/cordis-plugin-hmr/lib/index.js +452 -0
- package/dist/kernel/cordis-plugin-hmr/lib/types/error.d.ts +4 -0
- package/dist/kernel/cordis-plugin-hmr/lib/types/error.js +33 -0
- package/dist/kernel/cordis-plugin-hmr/lib/types/index.d.ts +87 -0
- package/dist/kernel/cordis-plugin-hmr/lib/types/index.js +525 -0
- package/dist/kernel/cordis-plugin-hmr/package.json +57 -0
- package/dist/kernel/cordis-plugin-include/lib/index.js +284 -0
- package/dist/kernel/cordis-plugin-include/lib/types/index.d.ts +99 -0
- package/dist/kernel/cordis-plugin-include/lib/types/index.js +331 -0
- package/dist/kernel/cordis-plugin-include/package.json +38 -0
- package/dist/kernel/cordis-plugin-loader/lib/index.js +744 -0
- package/dist/kernel/cordis-plugin-loader/lib/types/config/entry.d.ts +56 -0
- package/dist/kernel/cordis-plugin-loader/lib/types/config/entry.js +283 -0
- package/dist/kernel/cordis-plugin-loader/lib/types/config/group.d.ts +27 -0
- package/dist/kernel/cordis-plugin-loader/lib/types/config/group.js +139 -0
- package/dist/kernel/cordis-plugin-loader/lib/types/config/isolate.d.ts +35 -0
- package/dist/kernel/cordis-plugin-loader/lib/types/config/isolate.js +151 -0
- package/dist/kernel/cordis-plugin-loader/lib/types/config/tree.d.ts +38 -0
- package/dist/kernel/cordis-plugin-loader/lib/types/config/tree.js +169 -0
- package/dist/kernel/cordis-plugin-loader/lib/types/config/utils.d.ts +11 -0
- package/dist/kernel/cordis-plugin-loader/lib/types/config/utils.js +28 -0
- package/dist/kernel/cordis-plugin-loader/lib/types/index.d.ts +73 -0
- package/dist/kernel/cordis-plugin-loader/lib/types/index.js +154 -0
- package/dist/kernel/cordis-plugin-loader/lib/types/internal.d.ts +97 -0
- package/dist/kernel/cordis-plugin-loader/lib/types/internal.js +36 -0
- package/dist/kernel/cordis-plugin-loader/package.json +42 -0
- package/dist/kernel/cordis-plugin-logger-console/lib/browser.js +80 -0
- package/dist/kernel/cordis-plugin-logger-console/lib/index.js +95 -0
- package/dist/kernel/cordis-plugin-logger-console/lib/types/browser.d.ts +10 -0
- package/dist/kernel/cordis-plugin-logger-console/lib/types/browser.js +14 -0
- package/dist/kernel/cordis-plugin-logger-console/lib/types/index.d.ts +15 -0
- package/dist/kernel/cordis-plugin-logger-console/lib/types/index.js +23 -0
- package/dist/kernel/cordis-plugin-logger-console/lib/types/shared.d.ts +45 -0
- package/dist/kernel/cordis-plugin-logger-console/lib/types/shared.js +73 -0
- package/dist/kernel/cordis-plugin-logger-console/package.json +40 -0
- package/dist/kernel/cordis-plugin-timer/lib/index.js +152 -0
- package/dist/kernel/cordis-plugin-timer/lib/types/index.d.ts +30 -0
- package/dist/kernel/cordis-plugin-timer/lib/types/index.js +134 -0
- package/dist/kernel/cordis-plugin-timer/package.json +36 -0
- package/dist/kernel/cosmokit/lib/index.js +325 -0
- package/dist/kernel/cosmokit/lib/types/array.d.ts +15 -0
- package/dist/kernel/cosmokit/lib/types/array.js +37 -0
- package/dist/kernel/cosmokit/lib/types/index.d.ts +11 -0
- package/dist/kernel/cosmokit/lib/types/index.js +11 -0
- package/dist/kernel/cosmokit/lib/types/misc.d.ts +41 -0
- package/dist/kernel/cosmokit/lib/types/misc.js +50 -0
- package/dist/kernel/cosmokit/lib/types/string.d.ts +89 -0
- package/dist/kernel/cosmokit/lib/types/string.js +79 -0
- package/dist/kernel/cosmokit/lib/types/time.d.ts +19 -0
- package/dist/kernel/cosmokit/lib/types/time.js +101 -0
- package/dist/kernel/cosmokit/lib/types/types.d.ts +34 -0
- package/dist/kernel/cosmokit/lib/types/types.js +141 -0
- package/dist/kernel/cosmokit/package.json +30 -0
- package/dist/kernel/credentials/lib/index.js +1 -1
- package/dist/kernel/credentials/lib/types/index.d.ts +1 -1
- package/dist/kernel/credentials/lib/types/index.js +1 -1
- package/dist/kernel/credentials/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/credentials/package.json +1 -1
- package/dist/kernel/credentials-local/lib/index.js +2 -2
- package/dist/kernel/credentials-local/lib/types/index.d.ts +2 -2
- package/dist/kernel/credentials-local/lib/types/index.js +2 -2
- package/dist/kernel/credentials-local/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/credentials-local/package.json +1 -1
- package/dist/kernel/e2b/lib/index.js +2 -2
- package/dist/kernel/e2b/lib/types/index.d.ts +2 -2
- package/dist/kernel/e2b/lib/types/index.js +2 -2
- package/dist/kernel/e2b/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/e2b/package.json +1 -1
- package/dist/kernel/fs/lib/index.js +1 -1
- package/dist/kernel/fs/lib/types/index.d.ts +1 -1
- package/dist/kernel/fs/lib/types/index.js +1 -1
- package/dist/kernel/fs/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/fs/package.json +1 -1
- package/dist/kernel/fs-e2b/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/fs-e2b/package.json +1 -1
- package/dist/kernel/fs-local/lib/index.js +1 -1
- package/dist/kernel/fs-local/lib/types/index.d.ts +2 -2
- package/dist/kernel/fs-local/lib/types/index.js +1 -1
- package/dist/kernel/fs-local/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/fs-local/package.json +1 -1
- package/dist/kernel/fs-observation-policy/lib/types/index.d.ts +1 -1
- package/dist/kernel/fs-observation-policy/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/fs-observation-policy/package.json +1 -1
- package/dist/kernel/fs-sandbox/lib/types/index.d.ts +1 -1
- package/dist/kernel/fs-sandbox/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/fs-sandbox/package.json +1 -1
- package/dist/kernel/goal/lib/index.js +1 -1
- package/dist/kernel/goal/lib/types/index.d.ts +2 -2
- package/dist/kernel/goal/lib/types/index.js +1 -1
- package/dist/kernel/goal/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/goal/package.json +1 -1
- package/dist/kernel/goal-round-driver/lib/types/index.d.ts +1 -1
- package/dist/kernel/goal-round-driver/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/goal-round-driver/package.json +1 -1
- package/dist/kernel/headless/lib/index.js +1 -1
- package/dist/kernel/headless/lib/types/index.d.ts +2 -2
- package/dist/kernel/headless/lib/types/index.js +1 -1
- package/dist/kernel/headless/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/headless/lib/types/startup.d.ts +1 -1
- package/dist/kernel/headless/package.json +1 -1
- package/dist/kernel/home-paths/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/home-paths/package.json +1 -1
- package/dist/kernel/hook-protocol/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/hook-protocol/package.json +1 -1
- package/dist/kernel/hooks-claude-code/lib/index.js +1 -1
- package/dist/kernel/hooks-claude-code/lib/types/index.d.ts +2 -2
- package/dist/kernel/hooks-claude-code/lib/types/index.js +1 -1
- package/dist/kernel/hooks-claude-code/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/hooks-claude-code/package.json +1 -1
- package/dist/kernel/hooks-codex/lib/index.js +1 -1
- package/dist/kernel/hooks-codex/lib/types/index.d.ts +2 -2
- package/dist/kernel/hooks-codex/lib/types/index.js +1 -1
- package/dist/kernel/hooks-codex/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/hooks-codex/package.json +1 -1
- package/dist/kernel/host-apiproxy/lib/index.js +2 -2
- package/dist/kernel/host-apiproxy/lib/types/api-proxy.d.ts +1 -1
- package/dist/kernel/host-apiproxy/lib/types/index.d.ts +2 -2
- package/dist/kernel/host-apiproxy/lib/types/index.js +2 -2
- package/dist/kernel/host-apiproxy/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/host-apiproxy/lib/types/session-export.d.ts +1 -1
- package/dist/kernel/host-apiproxy/package.json +1 -1
- package/dist/kernel/host-directory-picker/lib/index.js +1 -1
- package/dist/kernel/host-directory-picker/lib/types/index.d.ts +1 -1
- package/dist/kernel/host-directory-picker/lib/types/index.js +1 -1
- package/dist/kernel/host-directory-picker/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/host-directory-picker/package.json +1 -1
- package/dist/kernel/host-directory-picker-auto/lib/types/index.d.ts +1 -1
- package/dist/kernel/host-directory-picker-auto/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/host-directory-picker-auto/package.json +1 -1
- package/dist/kernel/host-directory-picker-browse/lib/index.js +1 -1
- package/dist/kernel/host-directory-picker-browse/lib/types/index.d.ts +2 -2
- package/dist/kernel/host-directory-picker-browse/lib/types/index.js +1 -1
- package/dist/kernel/host-directory-picker-browse/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/host-directory-picker-browse/package.json +1 -1
- package/dist/kernel/host-directory-picker-native/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/host-directory-picker-native/package.json +1 -1
- package/dist/kernel/host-frontend-static/lib/index.js +1 -1
- package/dist/kernel/host-frontend-static/lib/types/index.d.ts +2 -2
- package/dist/kernel/host-frontend-static/lib/types/index.js +1 -1
- package/dist/kernel/host-frontend-static/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/host-frontend-static/package.json +1 -1
- package/dist/kernel/host-plugin-inventory/lib/types/index.d.ts +1 -1
- package/dist/kernel/host-plugin-inventory/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/host-plugin-inventory/package.json +1 -1
- package/dist/kernel/host-webserver/lib/index.js +2 -2
- package/dist/kernel/host-webserver/lib/types/index.d.ts +2 -2
- package/dist/kernel/host-webserver/lib/types/index.js +2 -2
- package/dist/kernel/host-webserver/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/host-webserver/package.json +1 -1
- package/dist/kernel/invariants/lib/index.js +2 -2
- package/dist/kernel/invariants/lib/types/index.d.ts +3 -3
- package/dist/kernel/invariants/lib/types/index.js +2 -2
- package/dist/kernel/invariants/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/invariants/package.json +1 -1
- package/dist/kernel/jobs/lib/index.js +1 -1
- package/dist/kernel/jobs/lib/types/index.d.ts +1 -1
- package/dist/kernel/jobs/lib/types/index.js +1 -1
- package/dist/kernel/jobs/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/jobs/package.json +1 -1
- package/dist/kernel/jobs-local/lib/index.js +1 -1
- package/dist/kernel/jobs-local/lib/types/index.d.ts +2 -2
- package/dist/kernel/jobs-local/lib/types/index.js +1 -1
- package/dist/kernel/jobs-local/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/jobs-local/package.json +1 -1
- package/dist/kernel/launch-environment/lib/types/index.d.ts +1 -1
- package/dist/kernel/launch-environment/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/launch-environment/package.json +1 -1
- package/dist/kernel/llm/lib/index.js +2 -2
- package/dist/kernel/llm/lib/types/index.d.ts +1 -1
- package/dist/kernel/llm/lib/types/index.js +1 -1
- package/dist/kernel/llm/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/llm/lib/types/retry-policy.d.ts +1 -1
- package/dist/kernel/llm/lib/types/retry-policy.js +1 -1
- package/dist/kernel/llm/package.json +1 -1
- package/dist/kernel/llm-deepseek/lib/index.js +1 -1
- package/dist/kernel/llm-deepseek/lib/types/index.d.ts +2 -2
- package/dist/kernel/llm-deepseek/lib/types/index.js +1 -1
- package/dist/kernel/llm-deepseek/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/llm-deepseek/package.json +1 -1
- package/dist/kernel/llm-pi-ai/lib/index.js +1 -1
- package/dist/kernel/llm-pi-ai/lib/types/config.d.ts +1 -1
- package/dist/kernel/llm-pi-ai/lib/types/config.js +1 -1
- package/dist/kernel/llm-pi-ai/lib/types/index.d.ts +1 -1
- package/dist/kernel/llm-pi-ai/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/llm-pi-ai/package.json +1 -1
- package/dist/kernel/llm-retry/lib/index.js +1 -1
- package/dist/kernel/llm-retry/lib/types/index.d.ts +2 -2
- package/dist/kernel/llm-retry/lib/types/index.js +1 -1
- package/dist/kernel/llm-retry/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/llm-retry/package.json +1 -1
- package/dist/kernel/lsp/lib/index.js +1 -1
- package/dist/kernel/lsp/lib/types/index.d.ts +1 -1
- package/dist/kernel/lsp/lib/types/index.js +1 -1
- package/dist/kernel/lsp/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/lsp/package.json +1 -1
- package/dist/kernel/lsp-stdio/lib/index.js +1 -1
- package/dist/kernel/lsp-stdio/lib/types/index.d.ts +2 -2
- package/dist/kernel/lsp-stdio/lib/types/index.js +1 -1
- package/dist/kernel/lsp-stdio/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/lsp-stdio/package.json +1 -1
- package/dist/kernel/manifest.json +11 -1
- package/dist/kernel/mcp-client/lib/index.js +1 -1
- package/dist/kernel/mcp-client/lib/types/connection.d.ts +1 -1
- package/dist/kernel/mcp-client/lib/types/index.d.ts +2 -2
- package/dist/kernel/mcp-client/lib/types/index.js +1 -1
- package/dist/kernel/mcp-client/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/mcp-client/lib/types/tools.d.ts +1 -1
- package/dist/kernel/mcp-client/package.json +1 -1
- package/dist/kernel/message-feedback/lib/index.js +2 -2
- package/dist/kernel/message-feedback/lib/types/index.d.ts +2 -2
- package/dist/kernel/message-feedback/lib/types/index.js +2 -2
- package/dist/kernel/message-feedback/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/message-feedback/package.json +1 -1
- package/dist/kernel/native-command/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/native-command/package.json +1 -1
- package/dist/kernel/node-addon-landlock-run/lib/index.d.ts +71 -0
- package/dist/kernel/node-addon-landlock-run/lib/index.js +101 -0
- package/dist/kernel/node-addon-landlock-run/package.json +39 -0
- package/dist/kernel/output-retention/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/output-retention/package.json +1 -1
- package/dist/kernel/permission-presets/lib/index.js +2 -2
- package/dist/kernel/permission-presets/lib/types/index.d.ts +2 -2
- package/dist/kernel/permission-presets/lib/types/index.js +2 -2
- package/dist/kernel/permission-presets/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/permission-presets/package.json +1 -1
- package/dist/kernel/persona/lib/index.js +1 -1
- package/dist/kernel/persona/lib/types/index.d.ts +2 -2
- package/dist/kernel/persona/lib/types/index.js +1 -1
- package/dist/kernel/persona/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/persona/package.json +1 -1
- package/dist/kernel/plan-mode/lib/index.js +1 -1
- package/dist/kernel/plan-mode/lib/types/index.d.ts +1 -1
- package/dist/kernel/plan-mode/lib/types/index.js +1 -1
- package/dist/kernel/plan-mode/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/plan-mode/package.json +1 -1
- package/dist/kernel/pwsh-local/lib/index.js +1 -1
- package/dist/kernel/pwsh-local/lib/types/index.d.ts +2 -2
- package/dist/kernel/pwsh-local/lib/types/index.js +1 -1
- package/dist/kernel/pwsh-local/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/pwsh-local/package.json +1 -1
- package/dist/kernel/pwsh-sandbox/lib/types/index.d.ts +1 -1
- package/dist/kernel/pwsh-sandbox/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/pwsh-sandbox/package.json +1 -1
- package/dist/kernel/repeat-tool-reminder/lib/index.js +2 -2
- package/dist/kernel/repeat-tool-reminder/lib/types/index.d.ts +2 -2
- package/dist/kernel/repeat-tool-reminder/lib/types/index.js +1 -1
- package/dist/kernel/repeat-tool-reminder/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/repeat-tool-reminder/package.json +1 -1
- package/dist/kernel/sandbox/lib/index.js +1 -1
- package/dist/kernel/sandbox/lib/types/index.d.ts +1 -1
- package/dist/kernel/sandbox/lib/types/index.js +1 -1
- package/dist/kernel/sandbox/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/sandbox/package.json +1 -1
- package/dist/kernel/sandbox-local/lib/index.js +7 -5
- package/dist/kernel/sandbox-local/lib/types/index.d.ts +5 -3
- package/dist/kernel/sandbox-local/lib/types/index.js +8 -5
- package/dist/kernel/sandbox-local/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/sandbox-local/lib/types/profiles.js +1 -1
- package/dist/kernel/sandbox-local/package.json +1 -1
- package/dist/kernel/sandbox-policy/lib/index.js +2 -2
- package/dist/kernel/sandbox-policy/lib/types/index.d.ts +2 -2
- package/dist/kernel/sandbox-policy/lib/types/index.js +2 -2
- package/dist/kernel/sandbox-policy/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/sandbox-policy/package.json +1 -1
- package/dist/kernel/sandbox-windows-acl/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/sandbox-windows-acl/package.json +1 -1
- package/dist/kernel/schedule/lib/types/index.d.ts +1 -1
- package/dist/kernel/schedule/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/schedule/lib/types/persistence.d.ts +1 -1
- package/dist/kernel/schedule/lib/types/runtime.d.ts +1 -1
- package/dist/kernel/schedule/lib/types/tools.d.ts +1 -1
- package/dist/kernel/schedule/package.json +1 -1
- package/dist/kernel/schemastery/lib/index.cjs +596 -0
- package/dist/kernel/schemastery/lib/index.mjs +596 -0
- package/dist/kernel/schemastery/lib/types/index.d.ts +200 -0
- package/dist/kernel/schemastery/lib/types/index.js +714 -0
- package/dist/kernel/schemastery/package.json +37 -0
- package/dist/kernel/scope/lib/index.js +1 -1
- package/dist/kernel/scope/lib/types/index.d.ts +1 -1
- package/dist/kernel/scope/lib/types/index.js +1 -1
- package/dist/kernel/scope/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/scope/lib/types/store.d.ts +1 -1
- package/dist/kernel/scope/package.json +1 -1
- package/dist/kernel/sdk-client/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/sdk-client/package.json +1 -1
- package/dist/kernel/sdk-jsonrpc-server/lib/index.js +1 -1
- package/dist/kernel/sdk-jsonrpc-server/lib/types/index.d.ts +2 -2
- package/dist/kernel/sdk-jsonrpc-server/lib/types/index.js +1 -1
- package/dist/kernel/sdk-jsonrpc-server/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/sdk-jsonrpc-server/lib/types/server.d.ts +1 -1
- package/dist/kernel/sdk-jsonrpc-server/package.json +1 -1
- package/dist/kernel/sdk-protocol/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/sdk-protocol/package.json +1 -1
- package/dist/kernel/session/lib/index.js +1 -1
- package/dist/kernel/session/lib/types/index.d.ts +1 -1
- package/dist/kernel/session/lib/types/index.js +1 -1
- package/dist/kernel/session/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/session/package.json +1 -1
- package/dist/kernel/session-checkpoint-policy/lib/types/index.d.ts +1 -1
- package/dist/kernel/session-checkpoint-policy/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/session-checkpoint-policy/package.json +1 -1
- package/dist/kernel/session-log-export/lib/types/index.d.ts +1 -1
- package/dist/kernel/session-log-export/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/session-log-export/package.json +1 -1
- package/dist/kernel/session-persistence/lib/index.js +1 -1
- package/dist/kernel/session-persistence/lib/types/coordinator.d.ts +1 -1
- package/dist/kernel/session-persistence/lib/types/index.d.ts +1 -1
- package/dist/kernel/session-persistence/lib/types/index.js +1 -1
- package/dist/kernel/session-persistence/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/session-persistence/package.json +1 -1
- package/dist/kernel/session-persistence-jsonl/lib/index.js +1 -1
- package/dist/kernel/session-persistence-jsonl/lib/types/index.d.ts +2 -2
- package/dist/kernel/session-persistence-jsonl/lib/types/index.js +1 -1
- package/dist/kernel/session-persistence-jsonl/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/session-persistence-jsonl/package.json +1 -1
- package/dist/kernel/session-persistence-sqlite/lib/index.js +1 -1
- package/dist/kernel/session-persistence-sqlite/lib/types/index.d.ts +2 -2
- package/dist/kernel/session-persistence-sqlite/lib/types/index.js +1 -1
- package/dist/kernel/session-persistence-sqlite/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/session-persistence-sqlite/package.json +1 -1
- package/dist/kernel/session-projection/lib/index.js +1 -1
- package/dist/kernel/session-projection/lib/types/index.d.ts +1 -1
- package/dist/kernel/session-projection/lib/types/index.js +1 -1
- package/dist/kernel/session-projection/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/session-projection/package.json +1 -1
- package/dist/kernel/session-projection-cache/lib/index.js +2 -2
- package/dist/kernel/session-projection-cache/lib/types/index.d.ts +2 -2
- package/dist/kernel/session-projection-cache/lib/types/index.js +2 -2
- package/dist/kernel/session-projection-cache/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/session-projection-cache/package.json +1 -1
- package/dist/kernel/session-query/lib/index.js +1 -1
- package/dist/kernel/session-query/lib/types/corpus.d.ts +1 -1
- package/dist/kernel/session-query/lib/types/index.d.ts +1 -1
- package/dist/kernel/session-query/lib/types/index.js +1 -1
- package/dist/kernel/session-query/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/session-query/package.json +1 -1
- package/dist/kernel/session-query-sqlite/lib/index.js +2 -2
- package/dist/kernel/session-query-sqlite/lib/types/index.d.ts +2 -2
- package/dist/kernel/session-query-sqlite/lib/types/index.js +2 -2
- package/dist/kernel/session-query-sqlite/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/session-query-sqlite/package.json +1 -1
- package/dist/kernel/session-reference/lib/index.js +2 -2
- package/dist/kernel/session-reference/lib/types/index.d.ts +2 -2
- package/dist/kernel/session-reference/lib/types/index.js +2 -2
- package/dist/kernel/session-reference/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/session-reference/package.json +1 -1
- package/dist/kernel/session-stats/lib/types/index.d.ts +1 -1
- package/dist/kernel/session-stats/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/session-stats/package.json +1 -1
- package/dist/kernel/session-telemetry/lib/index.js +1 -1
- package/dist/kernel/session-telemetry/lib/types/coordinator.d.ts +1 -1
- package/dist/kernel/session-telemetry/lib/types/index.d.ts +1 -1
- package/dist/kernel/session-telemetry/lib/types/index.js +1 -1
- package/dist/kernel/session-telemetry/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/session-telemetry/package.json +1 -1
- package/dist/kernel/session-telemetry-otel/lib/index.js +1 -1
- package/dist/kernel/session-telemetry-otel/lib/types/index.d.ts +2 -2
- package/dist/kernel/session-telemetry-otel/lib/types/index.js +1 -1
- package/dist/kernel/session-telemetry-otel/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/session-telemetry-otel/package.json +1 -1
- package/dist/kernel/session-title/lib/index.js +2 -2
- package/dist/kernel/session-title/lib/types/index.d.ts +2 -2
- package/dist/kernel/session-title/lib/types/index.js +2 -2
- package/dist/kernel/session-title/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/session-title/package.json +1 -1
- package/dist/kernel/session-title-all-prompts-llm/lib/index.js +1 -1
- package/dist/kernel/session-title-all-prompts-llm/lib/types/index.d.ts +2 -2
- package/dist/kernel/session-title-all-prompts-llm/lib/types/index.js +1 -1
- package/dist/kernel/session-title-all-prompts-llm/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/session-title-all-prompts-llm/package.json +1 -1
- package/dist/kernel/session-title-first-prompt-llm/lib/index.js +1 -1
- package/dist/kernel/session-title-first-prompt-llm/lib/types/index.d.ts +2 -2
- package/dist/kernel/session-title-first-prompt-llm/lib/types/index.js +1 -1
- package/dist/kernel/session-title-first-prompt-llm/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/session-title-first-prompt-llm/package.json +1 -1
- package/dist/kernel/session-title-llm/lib/index.js +1 -1
- package/dist/kernel/session-title-llm/lib/types/index.d.ts +2 -2
- package/dist/kernel/session-title-llm/lib/types/index.js +1 -1
- package/dist/kernel/session-title-llm/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/session-title-llm/package.json +1 -1
- package/dist/kernel/settings/lib/index.js +1 -1
- package/dist/kernel/settings/lib/invariant.js +1 -1
- package/dist/kernel/settings/lib/types/index.d.ts +2 -2
- package/dist/kernel/settings/lib/types/index.js +1 -1
- package/dist/kernel/settings/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/settings/lib/types/redact.d.ts +1 -1
- package/dist/kernel/settings/package.json +1 -1
- package/dist/kernel/settings-file/lib/index.js +2 -2
- package/dist/kernel/settings-file/lib/types/index.d.ts +2 -2
- package/dist/kernel/settings-file/lib/types/index.js +2 -2
- package/dist/kernel/settings-file/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/settings-file/package.json +1 -1
- package/dist/kernel/shell/lib/index.js +1 -1
- package/dist/kernel/shell/lib/types/index.d.ts +1 -1
- package/dist/kernel/shell/lib/types/index.js +1 -1
- package/dist/kernel/shell/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/shell/package.json +1 -1
- package/dist/kernel/shell-env/lib/index.js +2 -2
- package/dist/kernel/shell-env/lib/types/index.d.ts +2 -2
- package/dist/kernel/shell-env/lib/types/index.js +2 -2
- package/dist/kernel/shell-env/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/shell-env/package.json +1 -1
- package/dist/kernel/skill/lib/index.js +2 -2
- package/dist/kernel/skill/lib/types/index.d.ts +2 -2
- package/dist/kernel/skill/lib/types/index.js +2 -2
- package/dist/kernel/skill/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/skill/package.json +1 -1
- package/dist/kernel/skill-badge/lib/types/index.d.ts +1 -1
- package/dist/kernel/skill-badge/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/skill-badge/package.json +1 -1
- package/dist/kernel/skill-filesystem/lib/index.js +1 -1
- package/dist/kernel/skill-filesystem/lib/types/index.d.ts +2 -2
- package/dist/kernel/skill-filesystem/lib/types/index.js +1 -1
- package/dist/kernel/skill-filesystem/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/skill-filesystem/package.json +1 -1
- package/dist/kernel/spill/lib/index.js +1 -1
- package/dist/kernel/spill/lib/types/index.d.ts +1 -1
- package/dist/kernel/spill/lib/types/index.js +1 -1
- package/dist/kernel/spill/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/spill/package.json +1 -1
- package/dist/kernel/spill-local/lib/index.js +1 -1
- package/dist/kernel/spill-local/lib/types/index.d.ts +2 -2
- package/dist/kernel/spill-local/lib/types/index.js +1 -1
- package/dist/kernel/spill-local/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/spill-local/package.json +1 -1
- package/dist/kernel/spill-policy/lib/index.js +1 -1
- package/dist/kernel/spill-policy/lib/types/index.d.ts +2 -2
- package/dist/kernel/spill-policy/lib/types/index.js +1 -1
- package/dist/kernel/spill-policy/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/spill-policy/package.json +1 -1
- package/dist/kernel/storage/lib/index.js +1 -1
- package/dist/kernel/storage/lib/types/index.d.ts +1 -1
- package/dist/kernel/storage/lib/types/index.js +1 -1
- package/dist/kernel/storage/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/storage/package.json +1 -1
- package/dist/kernel/storage-domain/lib/index.js +1 -1
- package/dist/kernel/storage-domain/lib/types/domain.d.ts +1 -1
- package/dist/kernel/storage-domain/lib/types/index.d.ts +2 -2
- package/dist/kernel/storage-domain/lib/types/index.js +1 -1
- package/dist/kernel/storage-domain/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/storage-domain/package.json +1 -1
- package/dist/kernel/storage-json/lib/index.js +1 -1
- package/dist/kernel/storage-json/lib/types/index.d.ts +2 -2
- package/dist/kernel/storage-json/lib/types/index.js +1 -1
- package/dist/kernel/storage-json/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/storage-json/package.json +1 -1
- package/dist/kernel/storage-sqlite/lib/index.js +1 -1
- package/dist/kernel/storage-sqlite/lib/types/index.d.ts +2 -2
- package/dist/kernel/storage-sqlite/lib/types/index.js +1 -1
- package/dist/kernel/storage-sqlite/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/storage-sqlite/package.json +1 -1
- package/dist/kernel/subagent/lib/index.js +1 -1
- package/dist/kernel/subagent/lib/types/activation-setup-registry.d.ts +1 -1
- package/dist/kernel/subagent/lib/types/child-agent.d.ts +1 -1
- package/dist/kernel/subagent/lib/types/continuation.d.ts +1 -1
- package/dist/kernel/subagent/lib/types/index.d.ts +1 -1
- package/dist/kernel/subagent/lib/types/index.js +1 -1
- package/dist/kernel/subagent/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/subagent/lib/types/lifecycle.d.ts +1 -1
- package/dist/kernel/subagent/lib/types/list-children.d.ts +1 -1
- package/dist/kernel/subagent/package.json +1 -1
- package/dist/kernel/subagent-acp/lib/index.js +1 -1
- package/dist/kernel/subagent-acp/lib/types/index.d.ts +2 -2
- package/dist/kernel/subagent-acp/lib/types/index.js +1 -1
- package/dist/kernel/subagent-acp/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/subagent-acp/package.json +1 -1
- package/dist/kernel/subagent-claude-code/lib/index.js +1 -1
- package/dist/kernel/subagent-claude-code/lib/types/index.d.ts +2 -2
- package/dist/kernel/subagent-claude-code/lib/types/index.js +1 -1
- package/dist/kernel/subagent-claude-code/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/subagent-claude-code/package.json +1 -1
- package/dist/kernel/subagent-codex/lib/index.js +1 -1
- package/dist/kernel/subagent-codex/lib/types/index.d.ts +2 -2
- package/dist/kernel/subagent-codex/lib/types/index.js +1 -1
- package/dist/kernel/subagent-codex/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/subagent-codex/package.json +1 -1
- package/dist/kernel/subagent-fork-in-process/lib/index.js +1 -1
- package/dist/kernel/subagent-fork-in-process/lib/types/index.d.ts +2 -2
- package/dist/kernel/subagent-fork-in-process/lib/types/index.js +1 -1
- package/dist/kernel/subagent-fork-in-process/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/subagent-fork-in-process/package.json +1 -1
- package/dist/kernel/subagent-in-process-driver/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/subagent-in-process-driver/lib/types/structured.d.ts +1 -1
- package/dist/kernel/subagent-in-process-driver/package.json +1 -1
- package/dist/kernel/subagent-nomix-sdk/lib/index.js +1 -1
- package/dist/kernel/subagent-nomix-sdk/lib/types/index.d.ts +2 -2
- package/dist/kernel/subagent-nomix-sdk/lib/types/index.js +1 -1
- package/dist/kernel/subagent-nomix-sdk/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/subagent-nomix-sdk/package.json +1 -1
- package/dist/kernel/subagent-spawn-in-process/lib/index.js +1 -1
- package/dist/kernel/subagent-spawn-in-process/lib/types/index.d.ts +2 -2
- package/dist/kernel/subagent-spawn-in-process/lib/types/index.js +1 -1
- package/dist/kernel/subagent-spawn-in-process/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/subagent-spawn-in-process/package.json +1 -1
- package/dist/kernel/subprocess/lib/index.js +1 -1
- package/dist/kernel/subprocess/lib/types/index.d.ts +1 -1
- package/dist/kernel/subprocess/lib/types/index.js +1 -1
- package/dist/kernel/subprocess/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/subprocess/package.json +1 -1
- package/dist/kernel/subprocess-e2b/lib/index.js +1 -1
- package/dist/kernel/subprocess-e2b/lib/types/index.d.ts +2 -2
- package/dist/kernel/subprocess-e2b/lib/types/index.js +1 -1
- package/dist/kernel/subprocess-e2b/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/subprocess-e2b/package.json +1 -1
- package/dist/kernel/subprocess-local/lib/types/index.d.ts +1 -1
- package/dist/kernel/subprocess-local/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/subprocess-local/package.json +1 -1
- package/dist/kernel/system-prompt/lib/index.js +2 -2
- package/dist/kernel/system-prompt/lib/types/index.d.ts +2 -2
- package/dist/kernel/system-prompt/lib/types/index.js +2 -2
- package/dist/kernel/system-prompt/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/system-prompt/package.json +1 -1
- package/dist/kernel/terminal/lib/index.js +1 -1
- package/dist/kernel/terminal/lib/types/index.d.ts +1 -1
- package/dist/kernel/terminal/lib/types/index.js +1 -1
- package/dist/kernel/terminal/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/terminal/package.json +1 -1
- package/dist/kernel/terminal-bash/lib/index.js +1 -1
- package/dist/kernel/terminal-bash/lib/types/config.d.ts +1 -1
- package/dist/kernel/terminal-bash/lib/types/config.js +1 -1
- package/dist/kernel/terminal-bash/lib/types/index.d.ts +1 -1
- package/dist/kernel/terminal-bash/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/terminal-bash/package.json +1 -1
- package/dist/kernel/time-context/lib/index.js +2 -2
- package/dist/kernel/time-context/lib/invariant.js +2 -2
- package/dist/kernel/time-context/lib/types/index.d.ts +2 -2
- package/dist/kernel/time-context/lib/types/index.js +1 -1
- package/dist/kernel/time-context/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/time-context/package.json +1 -1
- package/dist/kernel/timeout/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/timeout/package.json +1 -1
- package/dist/kernel/tmux-context/lib/index.js +2 -2
- package/dist/kernel/tmux-context/lib/types/index.d.ts +2 -2
- package/dist/kernel/tmux-context/lib/types/index.js +1 -1
- package/dist/kernel/tmux-context/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/tmux-context/package.json +1 -1
- package/dist/kernel/token-meter/lib/index.js +2 -2
- package/dist/kernel/token-meter/lib/types/index.d.ts +2 -2
- package/dist/kernel/token-meter/lib/types/index.js +2 -2
- package/dist/kernel/token-meter/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/token-meter/package.json +1 -1
- package/dist/kernel/tool-ask-user/lib/types/index.d.ts +1 -1
- package/dist/kernel/tool-ask-user/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/tool-ask-user/package.json +1 -1
- package/dist/kernel/tool-bash/lib/index.js +1 -1
- package/dist/kernel/tool-bash/lib/types/index.d.ts +2 -2
- package/dist/kernel/tool-bash/lib/types/index.js +1 -1
- package/dist/kernel/tool-bash/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/tool-bash/package.json +1 -1
- package/dist/kernel/tool-bash-persistent/lib/index.js +1 -1
- package/dist/kernel/tool-bash-persistent/lib/types/index.d.ts +2 -2
- package/dist/kernel/tool-bash-persistent/lib/types/index.js +1 -1
- package/dist/kernel/tool-bash-persistent/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/tool-bash-persistent/package.json +1 -1
- package/dist/kernel/tool-call-timeout-policy/lib/types/index.d.ts +1 -1
- package/dist/kernel/tool-call-timeout-policy/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/tool-call-timeout-policy/package.json +1 -1
- package/dist/kernel/tool-cordis/lib/types/fiber-state.d.ts +1 -1
- package/dist/kernel/tool-cordis/lib/types/index.d.ts +1 -1
- package/dist/kernel/tool-cordis/lib/types/inspect.d.ts +1 -1
- package/dist/kernel/tool-cordis/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/tool-cordis/lib/types/providers.d.ts +1 -1
- package/dist/kernel/tool-cordis/package.json +1 -1
- package/dist/kernel/tool-fs/lib/index.js +1 -1
- package/dist/kernel/tool-fs/lib/types/edit.d.ts +1 -1
- package/dist/kernel/tool-fs/lib/types/index.d.ts +2 -2
- package/dist/kernel/tool-fs/lib/types/index.js +1 -1
- package/dist/kernel/tool-fs/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/tool-fs/lib/types/read-image.d.ts +1 -1
- package/dist/kernel/tool-fs/lib/types/read-target.d.ts +1 -1
- package/dist/kernel/tool-fs/lib/types/read.d.ts +1 -1
- package/dist/kernel/tool-fs/lib/types/sandbox.d.ts +1 -1
- package/dist/kernel/tool-fs/lib/types/write.d.ts +1 -1
- package/dist/kernel/tool-fs/package.json +1 -1
- package/dist/kernel/tool-fs-search/lib/index.js +1 -1
- package/dist/kernel/tool-fs-search/lib/types/direct-call.d.ts +1 -1
- package/dist/kernel/tool-fs-search/lib/types/glob.d.ts +1 -1
- package/dist/kernel/tool-fs-search/lib/types/grep.d.ts +1 -1
- package/dist/kernel/tool-fs-search/lib/types/index.d.ts +2 -2
- package/dist/kernel/tool-fs-search/lib/types/index.js +1 -1
- package/dist/kernel/tool-fs-search/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/tool-fs-search/lib/types/search-core.d.ts +1 -1
- package/dist/kernel/tool-fs-search/package.json +1 -1
- package/dist/kernel/tool-goal/lib/index.js +1 -1
- package/dist/kernel/tool-goal/lib/types/authority.d.ts +1 -1
- package/dist/kernel/tool-goal/lib/types/index.d.ts +2 -2
- package/dist/kernel/tool-goal/lib/types/index.js +1 -1
- package/dist/kernel/tool-goal/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/tool-goal/package.json +1 -1
- package/dist/kernel/tool-jobs/lib/index.js +1 -1
- package/dist/kernel/tool-jobs/lib/types/index.d.ts +2 -2
- package/dist/kernel/tool-jobs/lib/types/index.js +1 -1
- package/dist/kernel/tool-jobs/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/tool-jobs/package.json +1 -1
- package/dist/kernel/tool-lsp/lib/index.js +1 -1
- package/dist/kernel/tool-lsp/lib/types/index.d.ts +2 -2
- package/dist/kernel/tool-lsp/lib/types/index.js +1 -1
- package/dist/kernel/tool-lsp/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/tool-lsp/package.json +1 -1
- package/dist/kernel/tool-pwsh/lib/index.js +1 -1
- package/dist/kernel/tool-pwsh/lib/types/index.d.ts +2 -2
- package/dist/kernel/tool-pwsh/lib/types/index.js +1 -1
- package/dist/kernel/tool-pwsh/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/tool-pwsh/package.json +1 -1
- package/dist/kernel/tool-ralph/lib/index.js +1 -1
- package/dist/kernel/tool-ralph/lib/types/index.d.ts +2 -2
- package/dist/kernel/tool-ralph/lib/types/index.js +1 -1
- package/dist/kernel/tool-ralph/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/tool-ralph/package.json +1 -1
- package/dist/kernel/tool-session-query/lib/index.js +1 -1
- package/dist/kernel/tool-session-query/lib/types/index.d.ts +2 -2
- package/dist/kernel/tool-session-query/lib/types/index.js +1 -1
- package/dist/kernel/tool-session-query/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/tool-session-query/lib/types/operations.d.ts +1 -1
- package/dist/kernel/tool-session-query/lib/types/service-boundary.d.ts +1 -1
- package/dist/kernel/tool-session-query/lib/types/workspace-access.d.ts +1 -1
- package/dist/kernel/tool-session-query/package.json +1 -1
- package/dist/kernel/tool-skill/lib/index.js +1 -1
- package/dist/kernel/tool-skill/lib/types/index.d.ts +2 -2
- package/dist/kernel/tool-skill/lib/types/index.js +1 -1
- package/dist/kernel/tool-skill/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/tool-skill/package.json +1 -1
- package/dist/kernel/tool-str-replace-editor/lib/index.js +1 -1
- package/dist/kernel/tool-str-replace-editor/lib/types/index.d.ts +2 -2
- package/dist/kernel/tool-str-replace-editor/lib/types/index.js +1 -1
- package/dist/kernel/tool-str-replace-editor/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/tool-str-replace-editor/package.json +1 -1
- package/dist/kernel/tool-subagent/lib/index.js +1 -1
- package/dist/kernel/tool-subagent/lib/types/index.d.ts +2 -2
- package/dist/kernel/tool-subagent/lib/types/index.js +1 -1
- package/dist/kernel/tool-subagent/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/tool-subagent/package.json +1 -1
- package/dist/kernel/tool-subagent-control/lib/types/index.d.ts +1 -1
- package/dist/kernel/tool-subagent-control/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/tool-subagent-control/lib/types/list-agents.d.ts +1 -1
- package/dist/kernel/tool-subagent-control/package.json +1 -1
- package/dist/kernel/tool-subagent-report/lib/index.js +1 -1
- package/dist/kernel/tool-subagent-report/lib/types/index.d.ts +2 -2
- package/dist/kernel/tool-subagent-report/lib/types/index.js +1 -1
- package/dist/kernel/tool-subagent-report/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/tool-subagent-report/package.json +1 -1
- package/dist/kernel/tool-terminal/lib/index.js +1 -1
- package/dist/kernel/tool-terminal/lib/types/index.d.ts +2 -2
- package/dist/kernel/tool-terminal/lib/types/index.js +1 -1
- package/dist/kernel/tool-terminal/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/tool-terminal/package.json +1 -1
- package/dist/kernel/tool-todo/lib/index.js +1 -1
- package/dist/kernel/tool-todo/lib/types/index.d.ts +2 -2
- package/dist/kernel/tool-todo/lib/types/index.js +1 -1
- package/dist/kernel/tool-todo/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/tool-todo/package.json +1 -1
- package/dist/kernel/tool-web/lib/index.js +1 -1
- package/dist/kernel/tool-web/lib/types/fetch.d.ts +1 -1
- package/dist/kernel/tool-web/lib/types/index.d.ts +2 -2
- package/dist/kernel/tool-web/lib/types/index.js +1 -1
- package/dist/kernel/tool-web/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/tool-web/lib/types/search.d.ts +1 -1
- package/dist/kernel/tool-web/package.json +1 -1
- package/dist/kernel/tool-workflow/lib/index.js +1 -1
- package/dist/kernel/tool-workflow/lib/types/index.d.ts +2 -2
- package/dist/kernel/tool-workflow/lib/types/index.js +1 -1
- package/dist/kernel/tool-workflow/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/tool-workflow/package.json +1 -1
- package/dist/kernel/tools/lib/index.js +2 -2
- package/dist/kernel/tools/lib/types/index.d.ts +2 -2
- package/dist/kernel/tools/lib/types/index.js +2 -2
- package/dist/kernel/tools/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/tools/package.json +1 -1
- package/dist/kernel/typert-generator/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/typert-generator/package.json +1 -1
- package/dist/kernel/typert-loader/lib/index.js +1 -1
- package/dist/kernel/typert-loader/lib/types/index.d.ts +2 -2
- package/dist/kernel/typert-loader/lib/types/index.js +1 -1
- package/dist/kernel/typert-loader/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/typert-loader/package.json +1 -1
- package/dist/kernel/typert-protocol/lib/index.js +1 -1
- package/dist/kernel/typert-protocol/lib/types/index.d.ts +1 -1
- package/dist/kernel/typert-protocol/lib/types/index.js +1 -1
- package/dist/kernel/typert-protocol/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/typert-protocol/lib/types/types.d.ts +1 -1
- package/dist/kernel/typert-protocol/package.json +1 -1
- package/dist/kernel/typert-registry/lib/index.js +1 -1
- package/dist/kernel/typert-registry/lib/types/client/index.d.ts +1 -1
- package/dist/kernel/typert-registry/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/typert-registry/lib/types/service.d.ts +1 -1
- package/dist/kernel/typert-registry/lib/types/service.js +1 -1
- package/dist/kernel/typert-registry/package.json +1 -1
- package/dist/kernel/user-approval/lib/index.js +2 -2
- package/dist/kernel/user-approval/lib/invariant.js +2 -2
- package/dist/kernel/user-approval/lib/types/index.d.ts +2 -2
- package/dist/kernel/user-approval/lib/types/index.js +2 -2
- package/dist/kernel/user-approval/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/user-approval/package.json +1 -1
- package/dist/kernel/user-questions/lib/index.js +1 -1
- package/dist/kernel/user-questions/lib/types/index.d.ts +1 -1
- package/dist/kernel/user-questions/lib/types/index.js +1 -1
- package/dist/kernel/user-questions/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/user-questions/package.json +1 -1
- package/dist/kernel/web/lib/index.js +2 -2
- package/dist/kernel/web/lib/types/index.d.ts +2 -2
- package/dist/kernel/web/lib/types/index.js +2 -2
- package/dist/kernel/web/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/web/package.json +1 -1
- package/dist/kernel/web-app/lib/index.js +1 -1
- package/dist/kernel/web-app/lib/types/index.d.ts +2 -2
- package/dist/kernel/web-app/lib/types/index.js +1 -1
- package/dist/kernel/web-app/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/web-app/lib/types/startup.d.ts +1 -1
- package/dist/kernel/web-app/package.json +1 -1
- package/dist/kernel/web-fetch-http/lib/index.js +1 -1
- package/dist/kernel/web-fetch-http/lib/types/index.d.ts +2 -2
- package/dist/kernel/web-fetch-http/lib/types/index.js +1 -1
- package/dist/kernel/web-fetch-http/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/web-fetch-http/package.json +1 -1
- package/dist/kernel/web-frontend/package.json +1 -1
- package/dist/kernel/web-search-deepseek/lib/index.js +1 -1
- package/dist/kernel/web-search-deepseek/lib/types/index.d.ts +2 -2
- package/dist/kernel/web-search-deepseek/lib/types/index.js +1 -1
- package/dist/kernel/web-search-deepseek/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/web-search-deepseek/package.json +1 -1
- package/dist/kernel/web-search-exa/lib/index.js +1 -1
- package/dist/kernel/web-search-exa/lib/types/index.d.ts +2 -2
- package/dist/kernel/web-search-exa/lib/types/index.js +1 -1
- package/dist/kernel/web-search-exa/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/web-search-exa/package.json +1 -1
- package/dist/kernel/web-search-perplexity/lib/index.js +1 -1
- package/dist/kernel/web-search-perplexity/lib/types/index.d.ts +2 -2
- package/dist/kernel/web-search-perplexity/lib/types/index.js +1 -1
- package/dist/kernel/web-search-perplexity/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/web-search-perplexity/package.json +1 -1
- package/dist/kernel/workflow/lib/index.js +1 -1
- package/dist/kernel/workflow/lib/types/index.d.ts +1 -1
- package/dist/kernel/workflow/lib/types/index.js +1 -1
- package/dist/kernel/workflow/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/workflow/package.json +1 -1
- package/dist/kernel/workflow-worker-thread/lib/index.js +1 -1
- package/dist/kernel/workflow-worker-thread/lib/types/host.d.ts +1 -1
- package/dist/kernel/workflow-worker-thread/lib/types/index.d.ts +2 -2
- package/dist/kernel/workflow-worker-thread/lib/types/index.js +1 -1
- package/dist/kernel/workflow-worker-thread/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/workflow-worker-thread/package.json +1 -1
- package/dist/kernel/workspace/lib/index.js +1 -1
- package/dist/kernel/workspace/lib/invariant.js +1 -1
- package/dist/kernel/workspace/lib/types/index.d.ts +1 -1
- package/dist/kernel/workspace/lib/types/index.js +1 -1
- package/dist/kernel/workspace/lib/types/invariant.d.ts +1 -1
- package/dist/kernel/workspace/package.json +1 -1
- package/dist/licenses/landlock-run.LICENSE +28 -0
- package/dist/native/landlock-run/linux-arm64/landlock-run +0 -0
- package/dist/native/landlock-run/linux-x64/landlock-run +0 -0
- package/package.json +7 -12
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
import { defineProperty, isNullable } from '../../../cosmokit/lib/index.js';
|
|
2
|
+
import { getTraceable, symbols, withProps } from "./utils.js";
|
|
3
|
+
function enhanceError(error) {
|
|
4
|
+
const lines = error.stack.split('\n');
|
|
5
|
+
lines.splice(0, 2, `Error: ${error.message}`);
|
|
6
|
+
error.stack = lines.join('\n');
|
|
7
|
+
return error;
|
|
8
|
+
}
|
|
9
|
+
const RESERVED_WORDS = ['prototype', 'then'];
|
|
10
|
+
// - is a symbol
|
|
11
|
+
// - is a reserved word (prototype, then)
|
|
12
|
+
// - is a number string (0, 1, 2, ...)
|
|
13
|
+
// - starts with `_`
|
|
14
|
+
function isSpecialProperty(prop) {
|
|
15
|
+
return typeof prop === 'symbol'
|
|
16
|
+
|| RESERVED_WORDS.includes(prop)
|
|
17
|
+
|| parseInt(prop).toString() === prop
|
|
18
|
+
|| prop.startsWith('_');
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Reflection and service-resolution layer installed as `ctx.reflect`.
|
|
22
|
+
*
|
|
23
|
+
* This service powers the context proxy, service registration, accessors, and
|
|
24
|
+
* the mixins that expose core service methods directly on `ctx`.
|
|
25
|
+
*/
|
|
26
|
+
export class ReflectService {
|
|
27
|
+
ctx;
|
|
28
|
+
/** Proxy traps implementing service resolution for every context object. */
|
|
29
|
+
static handler = {
|
|
30
|
+
get: (target, prop, ctx) => {
|
|
31
|
+
if (isSpecialProperty(prop)) {
|
|
32
|
+
return Reflect.get(target, prop, ctx);
|
|
33
|
+
}
|
|
34
|
+
if (Reflect.has(target, prop)) {
|
|
35
|
+
return getTraceable(ctx, Reflect.get(target, prop, ctx));
|
|
36
|
+
}
|
|
37
|
+
const error = new Error(`cannot get property "${prop}" without inject`);
|
|
38
|
+
try {
|
|
39
|
+
const def = target.reflect.props[prop];
|
|
40
|
+
if (def?.type === 'accessor') {
|
|
41
|
+
return def.get.call(ctx, ctx[symbols.receiver], error);
|
|
42
|
+
}
|
|
43
|
+
if (!ctx.fiber.runtime)
|
|
44
|
+
return ctx.reflect.get(prop, false);
|
|
45
|
+
return ctx.events.waterfall('internal/get', ctx, prop, error, () => {
|
|
46
|
+
const key = target[symbols.isolate][prop];
|
|
47
|
+
let fiber = (ctx[symbols.shadow] ?? ctx).fiber;
|
|
48
|
+
while (true) {
|
|
49
|
+
const impl = fiber.store?.[prop];
|
|
50
|
+
if (impl)
|
|
51
|
+
return getTraceable(ctx, impl.value);
|
|
52
|
+
if (prop in fiber.inject) {
|
|
53
|
+
error.message = `cannot get required service "${prop}" in inactive context`;
|
|
54
|
+
throw error;
|
|
55
|
+
}
|
|
56
|
+
if (!fiber.runtime)
|
|
57
|
+
throw error;
|
|
58
|
+
if (fiber.parent[symbols.isolate][prop] !== key)
|
|
59
|
+
throw error;
|
|
60
|
+
fiber = fiber.parent.fiber;
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
catch (e) {
|
|
65
|
+
throw e === error ? enhanceError(e) : e;
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
set: (target, prop, value, ctx) => {
|
|
69
|
+
if (isSpecialProperty(prop)) {
|
|
70
|
+
return Reflect.set(target, prop, value, ctx);
|
|
71
|
+
}
|
|
72
|
+
const error = new Error(`cannot set property "${prop}" without provide`);
|
|
73
|
+
const def = target.reflect.props[prop];
|
|
74
|
+
if (!def) {
|
|
75
|
+
if (!ctx.fiber.runtime)
|
|
76
|
+
return Reflect.set(target, prop, value, ctx);
|
|
77
|
+
throw enhanceError(error);
|
|
78
|
+
}
|
|
79
|
+
try {
|
|
80
|
+
if (def.type === 'accessor') {
|
|
81
|
+
if (!def.set)
|
|
82
|
+
return false;
|
|
83
|
+
return def.set.call(ctx, value, ctx[symbols.receiver], error);
|
|
84
|
+
}
|
|
85
|
+
return ctx.events.waterfall('internal/set', ctx, prop, value, error, () => {
|
|
86
|
+
return ctx.reflect.set(prop, value, error);
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
catch (e) {
|
|
90
|
+
throw e === error ? enhanceError(e) : e;
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
has: (target, prop) => {
|
|
94
|
+
if (isSpecialProperty(prop)) {
|
|
95
|
+
return Reflect.has(target, prop);
|
|
96
|
+
}
|
|
97
|
+
if (Reflect.has(target, prop))
|
|
98
|
+
return true;
|
|
99
|
+
return !!target.reflect.props[prop];
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
/** Service implementations, keyed by isolation label. */
|
|
103
|
+
store = Object.create(null);
|
|
104
|
+
/** Declared context properties (services and accessors), by name. */
|
|
105
|
+
props = Object.create(null);
|
|
106
|
+
constructor(ctx) {
|
|
107
|
+
this.ctx = ctx;
|
|
108
|
+
defineProperty(this, symbols.tracker, {
|
|
109
|
+
property: 'ctx',
|
|
110
|
+
noShadow: true,
|
|
111
|
+
});
|
|
112
|
+
this.mixin('reflect', ['get', 'set', 'provide', 'accessor', 'mixin']);
|
|
113
|
+
this.mixin('fiber', ['runtime', 'effect']);
|
|
114
|
+
this.mixin('registry', ['inject', 'plugin']);
|
|
115
|
+
this.mixin('events', ['on', 'once', 'parallel', 'emit', 'serial', 'bail', 'waterfall']);
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Read a service from the store without the inject requirement.
|
|
119
|
+
*
|
|
120
|
+
* @param name — the service name.
|
|
121
|
+
* @param strict — when `true`, only return implementations whose providing
|
|
122
|
+
* fiber is currently active.
|
|
123
|
+
* @returns the service value, or `undefined` when not (yet) provided.
|
|
124
|
+
*/
|
|
125
|
+
get(name, strict = true) {
|
|
126
|
+
return getTraceable(this.ctx, this._getImpl(name, strict)?.value);
|
|
127
|
+
}
|
|
128
|
+
_getImpl(name, strict = true) {
|
|
129
|
+
const key = this.ctx[symbols.isolate][name];
|
|
130
|
+
const impl = key && this.store[key];
|
|
131
|
+
if (!impl)
|
|
132
|
+
return;
|
|
133
|
+
if (strict && impl.fiber.state !== 2 /* FiberState.ACTIVE */)
|
|
134
|
+
return;
|
|
135
|
+
return impl;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Overwrite a provided service's value.
|
|
139
|
+
*
|
|
140
|
+
* @param name — the service name.
|
|
141
|
+
* @param value — the new service value.
|
|
142
|
+
* @param error — carrier for the caller stack in diagnostics.
|
|
143
|
+
* @returns `true` on success.
|
|
144
|
+
* @throws when `name` was never provided, or was provided by another fiber.
|
|
145
|
+
*/
|
|
146
|
+
set(name, value, error) {
|
|
147
|
+
const key = this.ctx[symbols.isolate][name];
|
|
148
|
+
const impl = this.store[key];
|
|
149
|
+
if (!impl) {
|
|
150
|
+
throw new Error(`cannot set property "${name}" without provide`);
|
|
151
|
+
}
|
|
152
|
+
if (impl.fiber !== this.ctx.fiber) {
|
|
153
|
+
throw new Error(`cannot set property "${name}" in multiple fibers`);
|
|
154
|
+
}
|
|
155
|
+
impl.value = value;
|
|
156
|
+
return true;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Register a service implementation owned by the current fiber.
|
|
160
|
+
*
|
|
161
|
+
* See the `ctx.provide()` overload above for the full contract.
|
|
162
|
+
*
|
|
163
|
+
* @param name — the service name.
|
|
164
|
+
* @param value — the service value.
|
|
165
|
+
* @param check — optional availability predicate for dependents.
|
|
166
|
+
* @returns a disposer that unregisters the service.
|
|
167
|
+
*/
|
|
168
|
+
provide(name, value, check) {
|
|
169
|
+
return this.ctx.fiber.effect(() => {
|
|
170
|
+
if (!this.props[name]) {
|
|
171
|
+
this.props[name] ??= { type: 'service' };
|
|
172
|
+
}
|
|
173
|
+
else if (this.props[name].type !== 'service') {
|
|
174
|
+
throw new Error(`property "${name}" is already declared as ${this.props[name].type}`);
|
|
175
|
+
}
|
|
176
|
+
this.props[name] = { type: 'service' };
|
|
177
|
+
this.ctx.root[symbols.isolate][name] ??= Symbol(name);
|
|
178
|
+
const key = this.ctx[symbols.isolate][name];
|
|
179
|
+
const impl = { name, value, fiber: this.ctx.fiber, check };
|
|
180
|
+
if (this.store[key]) {
|
|
181
|
+
throw new Error(`service "${name}" has been registered at <${this.store[key].fiber.name}>`);
|
|
182
|
+
}
|
|
183
|
+
this.store[key] = impl;
|
|
184
|
+
this.ctx.fiber.store[name] = impl;
|
|
185
|
+
if (this.ctx.fiber.state === 2 /* FiberState.ACTIVE */) {
|
|
186
|
+
this.notify([name]);
|
|
187
|
+
}
|
|
188
|
+
return async () => {
|
|
189
|
+
delete this.store[key];
|
|
190
|
+
const fibers = this.notify([name]);
|
|
191
|
+
await Promise.allSettled(fibers.map(fiber => fiber.await()));
|
|
192
|
+
// ensure self access before dependencies cleanup
|
|
193
|
+
delete this.ctx.fiber.store[name];
|
|
194
|
+
};
|
|
195
|
+
}, `ctx.provide(${JSON.stringify(name)})`);
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Re-evaluate every fiber that requires one of the given services.
|
|
199
|
+
*
|
|
200
|
+
* @param names — the service names that changed.
|
|
201
|
+
* @param filter — restricts notification to matching isolation scopes.
|
|
202
|
+
* @returns the fibers whose dependency state was refreshed.
|
|
203
|
+
*/
|
|
204
|
+
notify(names, filter = (ctx, name) => ctx[symbols.isolate][name] === this.ctx[symbols.isolate][name]) {
|
|
205
|
+
const fibers = [];
|
|
206
|
+
for (const runtime of this.ctx.registry.values()) {
|
|
207
|
+
for (const fiber of runtime.fibers) {
|
|
208
|
+
let hasUpdate = false;
|
|
209
|
+
for (const name of names) {
|
|
210
|
+
if (!(name in fiber.inject))
|
|
211
|
+
continue;
|
|
212
|
+
if (!filter(fiber.ctx, name))
|
|
213
|
+
continue;
|
|
214
|
+
hasUpdate = true;
|
|
215
|
+
fiber._checkImpl(name);
|
|
216
|
+
}
|
|
217
|
+
if (!hasUpdate)
|
|
218
|
+
continue;
|
|
219
|
+
fiber._refresh();
|
|
220
|
+
fibers.push(fiber);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
for (const name of names) {
|
|
224
|
+
const self = Object.create(this.ctx);
|
|
225
|
+
self[symbols.filter] = (target) => filter(target, name);
|
|
226
|
+
this.ctx.events.emit(self, 'internal/service', name, this._getImpl(name, false)?.value);
|
|
227
|
+
}
|
|
228
|
+
return fibers;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Define a computed context property backed by get/set hooks.
|
|
232
|
+
*
|
|
233
|
+
* @param name — the context property name.
|
|
234
|
+
* @param options — the `get` hook and optional `set` hook.
|
|
235
|
+
* @returns a disposer that removes the accessor.
|
|
236
|
+
*/
|
|
237
|
+
accessor(name, options) {
|
|
238
|
+
return this.ctx.fiber.effect(() => {
|
|
239
|
+
if (name in this.props) {
|
|
240
|
+
throw new Error(`property "${name}" is already declared as ${this.props[name].type}`);
|
|
241
|
+
}
|
|
242
|
+
this.props[name] = { type: 'accessor', ...options };
|
|
243
|
+
return () => delete this.props[name];
|
|
244
|
+
}, `ctx.accessor(${JSON.stringify(name)})`);
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Expose selected members of a service directly on `ctx`.
|
|
248
|
+
*
|
|
249
|
+
* See the `ctx.mixin()` overload above for the full contract.
|
|
250
|
+
*
|
|
251
|
+
* @param source — a context property name or a source object.
|
|
252
|
+
* @param mixins — keys to forward, or a source-key → ctx-key map.
|
|
253
|
+
* @returns a disposer that removes all created accessors.
|
|
254
|
+
*/
|
|
255
|
+
mixin(source, mixins) {
|
|
256
|
+
const self = this;
|
|
257
|
+
return this.ctx.fiber.effect(function* () {
|
|
258
|
+
const entries = Array.isArray(mixins) ? mixins.map(key => [key, key]) : Object.entries(mixins);
|
|
259
|
+
const getTarget = (ctx, error) => {
|
|
260
|
+
// TODO enhance error message
|
|
261
|
+
return ctx[source];
|
|
262
|
+
};
|
|
263
|
+
for (const [key, value] of entries) {
|
|
264
|
+
yield self.accessor(value, {
|
|
265
|
+
get(receiver, error) {
|
|
266
|
+
const service = getTarget(this, error);
|
|
267
|
+
if (isNullable(service))
|
|
268
|
+
return service;
|
|
269
|
+
const mixin = receiver ? withProps(receiver, service) : service;
|
|
270
|
+
const value = Reflect.get(service, key, mixin);
|
|
271
|
+
if (typeof value !== 'function')
|
|
272
|
+
return value;
|
|
273
|
+
return value.bind(mixin ?? service);
|
|
274
|
+
},
|
|
275
|
+
set(value, receiver, error) {
|
|
276
|
+
const service = getTarget(this, error);
|
|
277
|
+
const mixin = receiver ? withProps(receiver, service) : service;
|
|
278
|
+
return Reflect.set(service, key, value, mixin);
|
|
279
|
+
},
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
}, `ctx.mixin(${JSON.stringify(source)})`);
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* Attach this context's tracing wrapper to a value.
|
|
286
|
+
*
|
|
287
|
+
* @param value — the value to wrap.
|
|
288
|
+
* @returns the traceable wrapper (or the value itself when not applicable).
|
|
289
|
+
*/
|
|
290
|
+
trace(value) {
|
|
291
|
+
return getTraceable(this.ctx, value);
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Wrap a callback so calls trace `this` and arguments to this context.
|
|
295
|
+
*
|
|
296
|
+
* @param callback — the function to wrap.
|
|
297
|
+
* @returns a proxy delegating to `callback` with traced values.
|
|
298
|
+
*/
|
|
299
|
+
bind(callback) {
|
|
300
|
+
return new Proxy(callback, {
|
|
301
|
+
apply: (target, thisArg, args) => {
|
|
302
|
+
return Reflect.apply(target, this.trace(thisArg), args.map(arg => this.trace(arg)));
|
|
303
|
+
},
|
|
304
|
+
construct: (target, args, newTarget) => {
|
|
305
|
+
return Reflect.construct(target, args.map(arg => this.trace(arg)), newTarget);
|
|
306
|
+
},
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
//# sourceMappingURL=reflect.js.map
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import type { Dict } from '../../../cosmokit/lib/index.js';
|
|
2
|
+
import type { StandardSchemaV1 } from '@standard-schema/spec';
|
|
3
|
+
import { Context } from './context.ts';
|
|
4
|
+
import { Fiber } from './fiber.ts';
|
|
5
|
+
import { DisposableList, symbols } from './utils.ts';
|
|
6
|
+
/**
|
|
7
|
+
* Service dependency declaration accepted by plugins and the `@Inject`
|
|
8
|
+
* decorator.
|
|
9
|
+
*
|
|
10
|
+
* Array form requests services without intercept config. Object form maps each
|
|
11
|
+
* service name to optional intercept config for the plugin context.
|
|
12
|
+
*/
|
|
13
|
+
export type Inject<M = Dict> = (keyof M)[] | {
|
|
14
|
+
[K in keyof M]?: M[K];
|
|
15
|
+
};
|
|
16
|
+
/** Context keys that correspond to services with typed intercept config. */
|
|
17
|
+
export type InjectKey = keyof {
|
|
18
|
+
[K in keyof Context & string as Context[K] extends {
|
|
19
|
+
[symbols.config]: any;
|
|
20
|
+
} ? K : never]: any;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Decorator for declaring service dependencies on classes or class methods.
|
|
24
|
+
*
|
|
25
|
+
* On classes it contributes to the plugin's static `inject` map. On methods it
|
|
26
|
+
* delays the method call until the declared services are available.
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* @param name — the required service name.
|
|
30
|
+
* @param config — optional intercept config applied for that service.
|
|
31
|
+
* @returns the class or method decorator.
|
|
32
|
+
*/
|
|
33
|
+
export declare function Inject<K extends InjectKey>(name: K, config?: Context[K] extends {
|
|
34
|
+
[symbols.config]: infer T;
|
|
35
|
+
} ? T : never): (value: any, decorator: ClassDecoratorContext<any> | ClassMethodDecoratorContext<any>) => void;
|
|
36
|
+
/** Utilities for normalizing plugin dependency declarations. */
|
|
37
|
+
export declare namespace Inject {
|
|
38
|
+
/**
|
|
39
|
+
* Convert array/object/class-inherited inject metadata into a plain map.
|
|
40
|
+
*
|
|
41
|
+
* @param inject — the declaration to normalize; `null`/`undefined` add nothing.
|
|
42
|
+
* @param result — the map to fill (service name → intercept config or `null`).
|
|
43
|
+
* @returns `result`.
|
|
44
|
+
*/
|
|
45
|
+
function resolve(inject: Inject | null | undefined, result?: Dict): Dict;
|
|
46
|
+
}
|
|
47
|
+
/** Supported plugin entrypoint shapes. */
|
|
48
|
+
export type Plugin<T = any> = Plugin.Function<T> | Plugin.Constructor<T> | Plugin.Object<T>;
|
|
49
|
+
/** Types associated with plugin entrypoints and runtime records. */
|
|
50
|
+
export declare namespace Plugin {
|
|
51
|
+
/** Shared metadata understood by the plugin registry and related tooling. */
|
|
52
|
+
interface Base<T = any> {
|
|
53
|
+
/** Display name used for fiber diagnostics and logger names. */
|
|
54
|
+
name?: string;
|
|
55
|
+
/** Standard-schema validator applied to config before the plugin starts. */
|
|
56
|
+
Config?: StandardSchemaV1<any, T>;
|
|
57
|
+
/** Services the plugin requires; it only loads while all are available. */
|
|
58
|
+
inject?: Inject;
|
|
59
|
+
/** Service name(s) the plugin provides (read by `Service` and by loaders). */
|
|
60
|
+
provide?: string | string[];
|
|
61
|
+
/** Service names whose intercept config the plugin declares it consumes. */
|
|
62
|
+
intercept?: Dict<boolean>;
|
|
63
|
+
}
|
|
64
|
+
interface Transform<S, T> {
|
|
65
|
+
/** Marks the transform object as a schema/config transform. */
|
|
66
|
+
schema?: true;
|
|
67
|
+
/** Convert user-facing config to runtime config. */
|
|
68
|
+
Config: (config: S) => T;
|
|
69
|
+
}
|
|
70
|
+
/** Function plugin called with `(ctx, config)`. */
|
|
71
|
+
interface Function<T = any> extends Base<T> {
|
|
72
|
+
(ctx: Context, config: T): any;
|
|
73
|
+
}
|
|
74
|
+
/** Class plugin constructed with `(ctx, config)`. */
|
|
75
|
+
interface Constructor<T = any> extends Base<T> {
|
|
76
|
+
new (ctx: Context, config: T): any;
|
|
77
|
+
}
|
|
78
|
+
/** Object plugin with an `apply(ctx, config)` method. */
|
|
79
|
+
interface Object<T = any> extends Base<T> {
|
|
80
|
+
apply(ctx: Context, config: T): any;
|
|
81
|
+
}
|
|
82
|
+
/** Mutable registry record shared by all fibers of one plugin callback. */
|
|
83
|
+
interface Runtime {
|
|
84
|
+
/** Display name copied from the first registered plugin shape. */
|
|
85
|
+
name?: string;
|
|
86
|
+
/** Every live fiber of this plugin (one per `ctx.plugin()` call). */
|
|
87
|
+
fibers: DisposableList<Fiber>;
|
|
88
|
+
/** The executable entrypoint all fibers share (registry identity key). */
|
|
89
|
+
callback: globalThis.Function;
|
|
90
|
+
/** Standard-schema validator applied to each fiber's config. */
|
|
91
|
+
Config?: StandardSchemaV1;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
type Spread<T> = undefined extends T ? [config?: T] : [config: T];
|
|
95
|
+
type GetPluginParameters<P> = P extends (ctx: Context, ...args: infer R) => any ? R : P extends new (ctx: Context, ...args: infer R) => any ? R : P extends {
|
|
96
|
+
apply(ctx: Context, ...args: infer R): any;
|
|
97
|
+
} ? R : never;
|
|
98
|
+
type GetPluginConfig<P> = P extends Plugin.Transform<infer S, any> ? S : GetPluginParameters<P>[0];
|
|
99
|
+
declare module './context.ts' {
|
|
100
|
+
interface Context {
|
|
101
|
+
/**
|
|
102
|
+
* Run a callback once the requested services are available.
|
|
103
|
+
*
|
|
104
|
+
* Shorthand for `ctx.plugin({ inject, apply: callback })`: the callback
|
|
105
|
+
* is unloaded and re-run whenever a required service changes.
|
|
106
|
+
*
|
|
107
|
+
* @param deps — required services, as an array or a name → config map.
|
|
108
|
+
* @param callback — plugin body called with `(ctx, config)`.
|
|
109
|
+
* @returns the fiber; awaiting it settles once loading finished.
|
|
110
|
+
*/
|
|
111
|
+
inject(deps: Inject, callback: Plugin.Function<void>): Fiber & PromiseLike<Fiber>;
|
|
112
|
+
/**
|
|
113
|
+
* Load a plugin in the current context.
|
|
114
|
+
*
|
|
115
|
+
* @param plugin — a function, class, or `{ apply }` object plugin.
|
|
116
|
+
* @param args — the plugin config, validated against its `Config` schema.
|
|
117
|
+
* @returns the fiber; awaiting it settles once loading finished
|
|
118
|
+
* (rejecting on config or startup errors).
|
|
119
|
+
*/
|
|
120
|
+
plugin<P extends Plugin>(plugin: P, ...args: Spread<GetPluginConfig<P>>): Fiber & PromiseLike<Fiber>;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Plugin registry installed as `ctx.registry` and mixed into every context.
|
|
125
|
+
*
|
|
126
|
+
* It normalizes plugin shapes, tracks plugin runtimes, starts fibers, and
|
|
127
|
+
* exposes map-like inspection over active plugin callbacks.
|
|
128
|
+
*/
|
|
129
|
+
export declare class RegistryService {
|
|
130
|
+
ctx: Context;
|
|
131
|
+
private _counter;
|
|
132
|
+
private _internal;
|
|
133
|
+
constructor(ctx: Context);
|
|
134
|
+
/** Allocate the next fiber uid (increments on every read). */
|
|
135
|
+
get counter(): number;
|
|
136
|
+
/** Number of registered plugin runtimes. */
|
|
137
|
+
get size(): number;
|
|
138
|
+
/**
|
|
139
|
+
* Resolve a supported plugin shape to its executable callback.
|
|
140
|
+
*
|
|
141
|
+
* @param plugin — a function, class, or `{ apply }` object plugin.
|
|
142
|
+
* @returns the callback identifying the plugin, or `undefined` if invalid.
|
|
143
|
+
*/
|
|
144
|
+
resolve(plugin: Plugin): Function | undefined;
|
|
145
|
+
/**
|
|
146
|
+
* Look up the runtime record for a plugin.
|
|
147
|
+
*
|
|
148
|
+
* @param plugin — any supported plugin shape.
|
|
149
|
+
* @returns the runtime, or `undefined` when the plugin is not registered.
|
|
150
|
+
*/
|
|
151
|
+
get(plugin: Plugin): Plugin.Runtime | undefined;
|
|
152
|
+
/**
|
|
153
|
+
* Check whether a plugin has a registered runtime.
|
|
154
|
+
*
|
|
155
|
+
* @param plugin — any supported plugin shape.
|
|
156
|
+
* @returns `true` when at least one fiber of the plugin exists.
|
|
157
|
+
*/
|
|
158
|
+
has(plugin: Plugin): boolean;
|
|
159
|
+
/**
|
|
160
|
+
* Dispose every running fiber for a plugin and remove its runtime record.
|
|
161
|
+
*
|
|
162
|
+
* @param plugin — any supported plugin shape.
|
|
163
|
+
* @returns the removed runtime, or `undefined` when none was registered.
|
|
164
|
+
*/
|
|
165
|
+
delete(plugin: Plugin): Plugin.Runtime | undefined;
|
|
166
|
+
/** Iterate the registered plugin callbacks. */
|
|
167
|
+
keys(): MapIterator<Function>;
|
|
168
|
+
/** Iterate the registered plugin runtimes. */
|
|
169
|
+
values(): MapIterator<Plugin.Runtime>;
|
|
170
|
+
/** Iterate `[callback, runtime]` pairs. */
|
|
171
|
+
entries(): MapIterator<[Function, Plugin.Runtime]>;
|
|
172
|
+
/**
|
|
173
|
+
* Visit every registered runtime.
|
|
174
|
+
*
|
|
175
|
+
* @param callback — receives each runtime and its identifying callback.
|
|
176
|
+
*/
|
|
177
|
+
forEach(callback: (value: Plugin.Runtime, key: Function) => void): void;
|
|
178
|
+
/**
|
|
179
|
+
* Start a callback once the requested dependencies are available.
|
|
180
|
+
*
|
|
181
|
+
* @param inject — required services, as an array or a name → config map.
|
|
182
|
+
* @param callback — plugin body called with `(ctx, config)`.
|
|
183
|
+
* @returns the fiber; awaiting it settles once loading finished.
|
|
184
|
+
*/
|
|
185
|
+
inject(inject: Inject, callback: Plugin.Function<void>): Fiber & PromiseLike<Fiber>;
|
|
186
|
+
/**
|
|
187
|
+
* Start a plugin in the current context and return its fiber.
|
|
188
|
+
*
|
|
189
|
+
* Creates (or reuses) the plugin's runtime record, then starts a new fiber
|
|
190
|
+
* under the current context. Throws if `plugin` is not a supported shape or
|
|
191
|
+
* if the current fiber is already disposed.
|
|
192
|
+
*
|
|
193
|
+
* @param plugin — a function, class, or `{ apply }` object plugin.
|
|
194
|
+
* @param config — the plugin config, validated against its `Config` schema.
|
|
195
|
+
* @param getOuterStack — captures the caller stack for effect diagnostics.
|
|
196
|
+
* @returns the fiber; awaiting it settles once loading finished.
|
|
197
|
+
*/
|
|
198
|
+
plugin(plugin: Plugin, config?: any, getOuterStack?: () => string[]): Fiber & PromiseLike<Fiber>;
|
|
199
|
+
}
|
|
200
|
+
export {};
|
|
201
|
+
//# sourceMappingURL=registry.d.ts.map
|