mu-harness 0.16.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/core/src/agent.d.ts +39 -0
- package/esm/core/src/agent.js +96 -0
- package/esm/core/src/index.d.ts +4 -0
- package/esm/core/src/index.js +2 -0
- package/esm/core/src/types.d.ts +59 -0
- package/esm/core/src/types.js +3 -0
- package/esm/harness/npm/src/_dnt.polyfills.d.ts +11 -0
- package/esm/harness/npm/src/_dnt.polyfills.js +15 -0
- package/esm/harness/npm/src/agents/index.d.ts +4 -0
- package/esm/harness/npm/src/agents/index.js +3 -0
- package/esm/harness/npm/src/agents/loader.d.ts +2 -0
- package/esm/harness/npm/src/agents/loader.js +24 -0
- package/esm/harness/npm/src/agents/parser.d.ts +2 -0
- package/esm/harness/npm/src/agents/parser.js +20 -0
- package/esm/harness/npm/src/agents/registry.d.ts +6 -0
- package/esm/harness/npm/src/agents/registry.js +31 -0
- package/esm/harness/npm/src/agents/types.d.ts +8 -0
- package/esm/harness/npm/src/agents/types.js +1 -0
- package/esm/harness/npm/src/channels/channel.d.ts +7 -0
- package/esm/harness/npm/src/channels/channel.js +25 -0
- package/esm/harness/npm/src/channels/index.d.ts +3 -0
- package/esm/harness/npm/src/channels/index.js +2 -0
- package/esm/harness/npm/src/channels/manager.d.ts +6 -0
- package/esm/harness/npm/src/channels/manager.js +28 -0
- package/esm/harness/npm/src/channels/types.d.ts +30 -0
- package/esm/harness/npm/src/channels/types.js +1 -0
- package/esm/harness/npm/src/commands/defaults.d.ts +9 -0
- package/esm/harness/npm/src/commands/defaults.js +53 -0
- package/esm/harness/npm/src/commands/index.d.ts +3 -0
- package/esm/harness/npm/src/commands/index.js +2 -0
- package/esm/harness/npm/src/commands/registry.d.ts +2 -0
- package/esm/harness/npm/src/commands/registry.js +59 -0
- package/esm/harness/npm/src/commands/types.d.ts +23 -0
- package/esm/harness/npm/src/commands/types.js +1 -0
- package/esm/harness/npm/src/common/frontmatter.d.ts +6 -0
- package/esm/harness/npm/src/common/frontmatter.js +18 -0
- package/esm/harness/npm/src/common/index.d.ts +2 -0
- package/esm/harness/npm/src/common/index.js +2 -0
- package/esm/harness/npm/src/common/utils.d.ts +5 -0
- package/esm/harness/npm/src/common/utils.js +13 -0
- package/esm/harness/npm/src/config/index.d.ts +2 -0
- package/esm/harness/npm/src/config/index.js +1 -0
- package/esm/harness/npm/src/config/resolve.d.ts +2 -0
- package/esm/harness/npm/src/config/resolve.js +10 -0
- package/esm/harness/npm/src/config/types.d.ts +15 -0
- package/esm/harness/npm/src/config/types.js +1 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_chars.d.ts +32 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_chars.js +48 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_dumper_state.d.ts +105 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_dumper_state.js +638 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_loader_state.d.ts +63 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_loader_state.js +1371 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_schema.d.ts +43 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_schema.js +117 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/binary.d.ts +2 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/binary.js +103 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/bool.d.ts +2 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/bool.js +32 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/float.d.ts +2 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/float.js +96 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/int.d.ts +2 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/int.js +159 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/map.d.ts +2 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/map.js +14 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/merge.d.ts +2 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/merge.js +10 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/nil.d.ts +2 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/nil.js +22 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/omap.d.ts +2 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/omap.js +29 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/pairs.d.ts +2 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/pairs.js +19 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/regexp.d.ts +2 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/regexp.js +30 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/seq.d.ts +2 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/seq.js +10 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/set.d.ts +2 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/set.js +14 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/str.d.ts +2 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/str.js +9 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/timestamp.d.ts +2 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/timestamp.js +81 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/undefined.d.ts +2 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/undefined.js +20 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type.d.ts +31 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type.js +6 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_utils.d.ts +3 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_utils.js +13 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/mod.d.ts +49 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/mod.js +52 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/parse.d.ts +75 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/parse.js +91 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/stringify.d.ts +99 -0
- package/esm/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/stringify.js +33 -0
- package/esm/harness/npm/src/harness/create.d.ts +2 -0
- package/esm/harness/npm/src/harness/create.js +139 -0
- package/esm/harness/npm/src/harness/index.d.ts +3 -0
- package/esm/harness/npm/src/harness/index.js +2 -0
- package/esm/harness/npm/src/harness/models.d.ts +16 -0
- package/esm/harness/npm/src/harness/models.js +30 -0
- package/esm/harness/npm/src/harness/types.d.ts +35 -0
- package/esm/harness/npm/src/harness/types.js +1 -0
- package/esm/harness/npm/src/hooks/index.d.ts +3 -0
- package/esm/harness/npm/src/hooks/index.js +2 -0
- package/esm/harness/npm/src/hooks/merge-hooks.d.ts +2 -0
- package/esm/harness/npm/src/hooks/merge-hooks.js +42 -0
- package/esm/harness/npm/src/hooks/types.d.ts +20 -0
- package/esm/harness/npm/src/hooks/types.js +1 -0
- package/esm/harness/npm/src/hooks/with-hooks.d.ts +3 -0
- package/esm/harness/npm/src/hooks/with-hooks.js +12 -0
- package/esm/harness/npm/src/index.d.ts +15 -0
- package/esm/harness/npm/src/index.js +15 -0
- package/esm/harness/npm/src/permissions/allow-list.d.ts +4 -0
- package/esm/harness/npm/src/permissions/allow-list.js +8 -0
- package/esm/harness/npm/src/permissions/approval.d.ts +17 -0
- package/esm/harness/npm/src/permissions/approval.js +13 -0
- package/esm/harness/npm/src/permissions/glob.d.ts +1 -0
- package/esm/harness/npm/src/permissions/glob.js +2 -0
- package/esm/harness/npm/src/permissions/index.d.ts +3 -0
- package/esm/harness/npm/src/permissions/index.js +3 -0
- package/esm/harness/npm/src/plugin/define.d.ts +2 -0
- package/esm/harness/npm/src/plugin/define.js +1 -0
- package/esm/harness/npm/src/plugin/import-ts.d.ts +1 -0
- package/esm/harness/npm/src/plugin/import-ts.js +85 -0
- package/esm/harness/npm/src/plugin/index.d.ts +5 -0
- package/esm/harness/npm/src/plugin/index.js +4 -0
- package/esm/harness/npm/src/plugin/resolve.d.ts +13 -0
- package/esm/harness/npm/src/plugin/resolve.js +17 -0
- package/esm/harness/npm/src/plugin/store.d.ts +8 -0
- package/esm/harness/npm/src/plugin/store.js +26 -0
- package/esm/harness/npm/src/plugin/types.d.ts +11 -0
- package/esm/harness/npm/src/plugin/types.js +1 -0
- package/esm/harness/npm/src/scheduler/command.d.ts +3 -0
- package/esm/harness/npm/src/scheduler/command.js +19 -0
- package/esm/harness/npm/src/scheduler/engine/index.d.ts +3 -0
- package/esm/harness/npm/src/scheduler/engine/index.js +2 -0
- package/esm/harness/npm/src/scheduler/engine/scheduler.d.ts +12 -0
- package/esm/harness/npm/src/scheduler/engine/scheduler.js +65 -0
- package/esm/harness/npm/src/scheduler/engine/store.d.ts +4 -0
- package/esm/harness/npm/src/scheduler/engine/store.js +55 -0
- package/esm/harness/npm/src/scheduler/engine/types.d.ts +37 -0
- package/esm/harness/npm/src/scheduler/engine/types.js +1 -0
- package/esm/harness/npm/src/scheduler/index.d.ts +4 -0
- package/esm/harness/npm/src/scheduler/index.js +3 -0
- package/esm/harness/npm/src/scheduler/tool.d.ts +8 -0
- package/esm/harness/npm/src/scheduler/tool.js +49 -0
- package/esm/harness/npm/src/session/agent-session.d.ts +15 -0
- package/esm/harness/npm/src/session/agent-session.js +82 -0
- package/esm/harness/npm/src/session/catalog.d.ts +24 -0
- package/esm/harness/npm/src/session/catalog.js +55 -0
- package/esm/harness/npm/src/session/index.d.ts +7 -0
- package/esm/harness/npm/src/session/index.js +6 -0
- package/esm/harness/npm/src/session/manager.d.ts +39 -0
- package/esm/harness/npm/src/session/manager.js +62 -0
- package/esm/harness/npm/src/session/persist.d.ts +3 -0
- package/esm/harness/npm/src/session/persist.js +21 -0
- package/esm/harness/npm/src/session/store.d.ts +13 -0
- package/esm/harness/npm/src/session/store.js +24 -0
- package/esm/harness/npm/src/session/title.d.ts +9 -0
- package/esm/harness/npm/src/session/title.js +24 -0
- package/esm/harness/npm/src/session/types.d.ts +17 -0
- package/esm/harness/npm/src/session/types.js +1 -0
- package/esm/harness/npm/src/skills/index.d.ts +7 -0
- package/esm/harness/npm/src/skills/index.js +6 -0
- package/esm/harness/npm/src/skills/loader.d.ts +2 -0
- package/esm/harness/npm/src/skills/loader.js +26 -0
- package/esm/harness/npm/src/skills/parser.d.ts +2 -0
- package/esm/harness/npm/src/skills/parser.js +10 -0
- package/esm/harness/npm/src/skills/registry.d.ts +8 -0
- package/esm/harness/npm/src/skills/registry.js +16 -0
- package/esm/harness/npm/src/skills/run.d.ts +14 -0
- package/esm/harness/npm/src/skills/run.js +45 -0
- package/esm/harness/npm/src/skills/tool.d.ts +3 -0
- package/esm/harness/npm/src/skills/tool.js +31 -0
- package/esm/harness/npm/src/skills/types.d.ts +6 -0
- package/esm/harness/npm/src/skills/types.js +1 -0
- package/esm/harness/npm/src/skills/writer.d.ts +7 -0
- package/esm/harness/npm/src/skills/writer.js +43 -0
- package/esm/harness/npm/src/subAgents/index.d.ts +4 -0
- package/esm/harness/npm/src/subAgents/index.js +3 -0
- package/esm/harness/npm/src/subAgents/registry.d.ts +2 -0
- package/esm/harness/npm/src/subAgents/registry.js +18 -0
- package/esm/harness/npm/src/subAgents/runner.d.ts +15 -0
- package/esm/harness/npm/src/subAgents/runner.js +33 -0
- package/esm/harness/npm/src/subAgents/tool.d.ts +6 -0
- package/esm/harness/npm/src/subAgents/tool.js +30 -0
- package/esm/harness/npm/src/subAgents/types.d.ts +18 -0
- package/esm/harness/npm/src/subAgents/types.js +1 -0
- package/esm/harness/npm/src/tui/channel.d.ts +3 -0
- package/esm/harness/npm/src/tui/channel.js +53 -0
- package/esm/harness/npm/src/tui/components/composer.d.ts +3 -0
- package/esm/harness/npm/src/tui/components/composer.js +13 -0
- package/esm/harness/npm/src/tui/components/header.d.ts +3 -0
- package/esm/harness/npm/src/tui/components/header.js +1 -0
- package/esm/harness/npm/src/tui/components/index.d.ts +5 -0
- package/esm/harness/npm/src/tui/components/index.js +5 -0
- package/esm/harness/npm/src/tui/components/message.d.ts +6 -0
- package/esm/harness/npm/src/tui/components/message.js +26 -0
- package/esm/harness/npm/src/tui/components/status.d.ts +3 -0
- package/esm/harness/npm/src/tui/components/status.js +8 -0
- package/esm/harness/npm/src/tui/components/transcript.d.ts +4 -0
- package/esm/harness/npm/src/tui/components/transcript.js +4 -0
- package/esm/harness/npm/src/tui/index.d.ts +7 -0
- package/esm/harness/npm/src/tui/index.js +10 -0
- package/esm/harness/npm/src/tui/kit.d.ts +15 -0
- package/esm/harness/npm/src/tui/kit.js +7 -0
- package/esm/harness/npm/src/tui/types.d.ts +38 -0
- package/esm/harness/npm/src/tui/types.js +1 -0
- package/esm/package.json +3 -0
- package/esm/tui/src/capabilities.d.ts +72 -0
- package/esm/tui/src/capabilities.js +90 -0
- package/esm/tui/src/components/command-palette.d.ts +24 -0
- package/esm/tui/src/components/command-palette.js +60 -0
- package/esm/tui/src/components/editor.d.ts +26 -0
- package/esm/tui/src/components/editor.js +111 -0
- package/esm/tui/src/components/scroll-view.d.ts +14 -0
- package/esm/tui/src/components/scroll-view.js +45 -0
- package/esm/tui/src/components/select-list.d.ts +24 -0
- package/esm/tui/src/components/select-list.js +69 -0
- package/esm/tui/src/events.d.ts +56 -0
- package/esm/tui/src/events.js +6 -0
- package/esm/tui/src/index.d.ts +17 -0
- package/esm/tui/src/index.js +13 -0
- package/esm/tui/src/inputRouter.d.ts +28 -0
- package/esm/tui/src/inputRouter.js +122 -0
- package/esm/tui/src/keybinds.d.ts +13 -0
- package/esm/tui/src/keybinds.js +15 -0
- package/esm/tui/src/keyboard.d.ts +2 -0
- package/esm/tui/src/keyboard.js +305 -0
- package/esm/tui/src/layout/ansi.d.ts +3 -0
- package/esm/tui/src/layout/ansi.js +323 -0
- package/esm/tui/src/layout/cell.d.ts +24 -0
- package/esm/tui/src/layout/cell.js +46 -0
- package/esm/tui/src/layout/cellbuffer.d.ts +29 -0
- package/esm/tui/src/layout/cellbuffer.js +306 -0
- package/esm/tui/src/layout/color.d.ts +22 -0
- package/esm/tui/src/layout/color.js +163 -0
- package/esm/tui/src/layout/insets.d.ts +8 -0
- package/esm/tui/src/layout/insets.js +55 -0
- package/esm/tui/src/layout/types.d.ts +33 -0
- package/esm/tui/src/layout/types.js +8 -0
- package/esm/tui/src/parser.d.ts +18 -0
- package/esm/tui/src/parser.js +136 -0
- package/esm/tui/src/renderer.d.ts +32 -0
- package/esm/tui/src/renderer.js +168 -0
- package/esm/tui/src/surface.d.ts +27 -0
- package/esm/tui/src/surface.js +110 -0
- package/esm/tui/src/terminal.d.ts +48 -0
- package/esm/tui/src/terminal.js +255 -0
- package/esm/tui/src/tui.d.ts +60 -0
- package/esm/tui/src/tui.js +194 -0
- package/esm/tui/src/types/terminal.d.ts +20 -0
- package/esm/tui/src/types/terminal.js +1 -0
- package/esm/tui/src/utils.d.ts +6 -0
- package/esm/tui/src/utils.js +292 -0
- package/esm/tui/src/views.d.ts +35 -0
- package/esm/tui/src/views.js +112 -0
- package/package.json +23 -0
- package/script/core/src/agent.d.ts +39 -0
- package/script/core/src/agent.js +101 -0
- package/script/core/src/index.d.ts +4 -0
- package/script/core/src/index.js +10 -0
- package/script/core/src/types.d.ts +59 -0
- package/script/core/src/types.js +9 -0
- package/script/harness/npm/src/_dnt.polyfills.d.ts +11 -0
- package/script/harness/npm/src/_dnt.polyfills.js +16 -0
- package/script/harness/npm/src/agents/index.d.ts +4 -0
- package/script/harness/npm/src/agents/index.js +9 -0
- package/script/harness/npm/src/agents/loader.d.ts +2 -0
- package/script/harness/npm/src/agents/loader.js +28 -0
- package/script/harness/npm/src/agents/parser.d.ts +2 -0
- package/script/harness/npm/src/agents/parser.js +24 -0
- package/script/harness/npm/src/agents/registry.d.ts +6 -0
- package/script/harness/npm/src/agents/registry.js +35 -0
- package/script/harness/npm/src/agents/types.d.ts +8 -0
- package/script/harness/npm/src/agents/types.js +2 -0
- package/script/harness/npm/src/channels/channel.d.ts +7 -0
- package/script/harness/npm/src/channels/channel.js +29 -0
- package/script/harness/npm/src/channels/index.d.ts +3 -0
- package/script/harness/npm/src/channels/index.js +7 -0
- package/script/harness/npm/src/channels/manager.d.ts +6 -0
- package/script/harness/npm/src/channels/manager.js +32 -0
- package/script/harness/npm/src/channels/types.d.ts +30 -0
- package/script/harness/npm/src/channels/types.js +2 -0
- package/script/harness/npm/src/commands/defaults.d.ts +9 -0
- package/script/harness/npm/src/commands/defaults.js +61 -0
- package/script/harness/npm/src/commands/index.d.ts +3 -0
- package/script/harness/npm/src/commands/index.js +11 -0
- package/script/harness/npm/src/commands/registry.d.ts +2 -0
- package/script/harness/npm/src/commands/registry.js +63 -0
- package/script/harness/npm/src/commands/types.d.ts +23 -0
- package/script/harness/npm/src/commands/types.js +2 -0
- package/script/harness/npm/src/common/frontmatter.d.ts +6 -0
- package/script/harness/npm/src/common/frontmatter.js +23 -0
- package/script/harness/npm/src/common/index.d.ts +2 -0
- package/script/harness/npm/src/common/index.js +8 -0
- package/script/harness/npm/src/common/utils.d.ts +5 -0
- package/script/harness/npm/src/common/utils.js +17 -0
- package/script/harness/npm/src/config/index.d.ts +2 -0
- package/script/harness/npm/src/config/index.js +5 -0
- package/script/harness/npm/src/config/resolve.d.ts +2 -0
- package/script/harness/npm/src/config/resolve.js +14 -0
- package/script/harness/npm/src/config/types.d.ts +15 -0
- package/script/harness/npm/src/config/types.js +2 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_chars.d.ts +32 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_chars.js +55 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_dumper_state.d.ts +105 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_dumper_state.js +642 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_loader_state.d.ts +63 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_loader_state.js +1375 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_schema.d.ts +43 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_schema.js +121 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/binary.d.ts +2 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/binary.js +106 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/bool.d.ts +2 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/bool.js +35 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/float.d.ts +2 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/float.js +99 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/int.d.ts +2 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/int.js +162 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/map.d.ts +2 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/map.js +17 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/merge.d.ts +2 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/merge.js +13 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/nil.d.ts +2 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/nil.js +25 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/omap.d.ts +2 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/omap.js +32 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/pairs.d.ts +2 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/pairs.js +22 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/regexp.d.ts +2 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/regexp.js +33 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/seq.d.ts +2 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/seq.js +13 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/set.d.ts +2 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/set.js +17 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/str.d.ts +2 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/str.js +12 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/timestamp.d.ts +2 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/timestamp.js +84 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/undefined.d.ts +2 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type/undefined.js +23 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type.d.ts +31 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_type.js +7 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_utils.d.ts +3 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/_utils.js +18 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/mod.d.ts +49 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/mod.js +68 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/parse.d.ts +75 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/parse.js +95 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/stringify.d.ts +99 -0
- package/script/harness/npm/src/deps/jsr.io/@std/yaml/1.1.0/stringify.js +36 -0
- package/script/harness/npm/src/harness/create.d.ts +2 -0
- package/script/harness/npm/src/harness/create.js +146 -0
- package/script/harness/npm/src/harness/index.d.ts +3 -0
- package/script/harness/npm/src/harness/index.js +7 -0
- package/script/harness/npm/src/harness/models.d.ts +16 -0
- package/script/harness/npm/src/harness/models.js +34 -0
- package/script/harness/npm/src/harness/types.d.ts +35 -0
- package/script/harness/npm/src/harness/types.js +2 -0
- package/script/harness/npm/src/hooks/index.d.ts +3 -0
- package/script/harness/npm/src/hooks/index.js +7 -0
- package/script/harness/npm/src/hooks/merge-hooks.d.ts +2 -0
- package/script/harness/npm/src/hooks/merge-hooks.js +46 -0
- package/script/harness/npm/src/hooks/types.d.ts +20 -0
- package/script/harness/npm/src/hooks/types.js +2 -0
- package/script/harness/npm/src/hooks/with-hooks.d.ts +3 -0
- package/script/harness/npm/src/hooks/with-hooks.js +16 -0
- package/script/harness/npm/src/index.d.ts +15 -0
- package/script/harness/npm/src/index.js +31 -0
- package/script/harness/npm/src/permissions/allow-list.d.ts +4 -0
- package/script/harness/npm/src/permissions/allow-list.js +13 -0
- package/script/harness/npm/src/permissions/approval.d.ts +17 -0
- package/script/harness/npm/src/permissions/approval.js +17 -0
- package/script/harness/npm/src/permissions/glob.d.ts +1 -0
- package/script/harness/npm/src/permissions/glob.js +6 -0
- package/script/harness/npm/src/permissions/index.d.ts +3 -0
- package/script/harness/npm/src/permissions/index.js +10 -0
- package/script/harness/npm/src/plugin/define.d.ts +2 -0
- package/script/harness/npm/src/plugin/define.js +5 -0
- package/script/harness/npm/src/plugin/import-ts.d.ts +1 -0
- package/script/harness/npm/src/plugin/import-ts.js +122 -0
- package/script/harness/npm/src/plugin/index.d.ts +5 -0
- package/script/harness/npm/src/plugin/index.js +11 -0
- package/script/harness/npm/src/plugin/resolve.d.ts +13 -0
- package/script/harness/npm/src/plugin/resolve.js +21 -0
- package/script/harness/npm/src/plugin/store.d.ts +8 -0
- package/script/harness/npm/src/plugin/store.js +30 -0
- package/script/harness/npm/src/plugin/types.d.ts +11 -0
- package/script/harness/npm/src/plugin/types.js +2 -0
- package/script/harness/npm/src/scheduler/command.d.ts +3 -0
- package/script/harness/npm/src/scheduler/command.js +23 -0
- package/script/harness/npm/src/scheduler/engine/index.d.ts +3 -0
- package/script/harness/npm/src/scheduler/engine/index.js +7 -0
- package/script/harness/npm/src/scheduler/engine/scheduler.d.ts +12 -0
- package/script/harness/npm/src/scheduler/engine/scheduler.js +69 -0
- package/script/harness/npm/src/scheduler/engine/store.d.ts +4 -0
- package/script/harness/npm/src/scheduler/engine/store.js +59 -0
- package/script/harness/npm/src/scheduler/engine/types.d.ts +37 -0
- package/script/harness/npm/src/scheduler/engine/types.js +2 -0
- package/script/harness/npm/src/scheduler/index.d.ts +4 -0
- package/script/harness/npm/src/scheduler/index.js +10 -0
- package/script/harness/npm/src/scheduler/tool.d.ts +8 -0
- package/script/harness/npm/src/scheduler/tool.js +53 -0
- package/script/harness/npm/src/session/agent-session.d.ts +15 -0
- package/script/harness/npm/src/session/agent-session.js +86 -0
- package/script/harness/npm/src/session/catalog.d.ts +24 -0
- package/script/harness/npm/src/session/catalog.js +59 -0
- package/script/harness/npm/src/session/index.d.ts +7 -0
- package/script/harness/npm/src/session/index.js +17 -0
- package/script/harness/npm/src/session/manager.d.ts +39 -0
- package/script/harness/npm/src/session/manager.js +66 -0
- package/script/harness/npm/src/session/persist.d.ts +3 -0
- package/script/harness/npm/src/session/persist.js +25 -0
- package/script/harness/npm/src/session/store.d.ts +13 -0
- package/script/harness/npm/src/session/store.js +28 -0
- package/script/harness/npm/src/session/title.d.ts +9 -0
- package/script/harness/npm/src/session/title.js +30 -0
- package/script/harness/npm/src/session/types.d.ts +17 -0
- package/script/harness/npm/src/session/types.js +2 -0
- package/script/harness/npm/src/skills/index.d.ts +7 -0
- package/script/harness/npm/src/skills/index.js +16 -0
- package/script/harness/npm/src/skills/loader.d.ts +2 -0
- package/script/harness/npm/src/skills/loader.js +30 -0
- package/script/harness/npm/src/skills/parser.d.ts +2 -0
- package/script/harness/npm/src/skills/parser.js +14 -0
- package/script/harness/npm/src/skills/registry.d.ts +8 -0
- package/script/harness/npm/src/skills/registry.js +20 -0
- package/script/harness/npm/src/skills/run.d.ts +14 -0
- package/script/harness/npm/src/skills/run.js +50 -0
- package/script/harness/npm/src/skills/tool.d.ts +3 -0
- package/script/harness/npm/src/skills/tool.js +35 -0
- package/script/harness/npm/src/skills/types.d.ts +6 -0
- package/script/harness/npm/src/skills/types.js +2 -0
- package/script/harness/npm/src/skills/writer.d.ts +7 -0
- package/script/harness/npm/src/skills/writer.js +47 -0
- package/script/harness/npm/src/subAgents/index.d.ts +4 -0
- package/script/harness/npm/src/subAgents/index.js +9 -0
- package/script/harness/npm/src/subAgents/registry.d.ts +2 -0
- package/script/harness/npm/src/subAgents/registry.js +22 -0
- package/script/harness/npm/src/subAgents/runner.d.ts +15 -0
- package/script/harness/npm/src/subAgents/runner.js +37 -0
- package/script/harness/npm/src/subAgents/tool.d.ts +6 -0
- package/script/harness/npm/src/subAgents/tool.js +34 -0
- package/script/harness/npm/src/subAgents/types.d.ts +18 -0
- package/script/harness/npm/src/subAgents/types.js +2 -0
- package/script/harness/npm/src/tui/channel.d.ts +3 -0
- package/script/harness/npm/src/tui/channel.js +57 -0
- package/script/harness/npm/src/tui/components/composer.d.ts +3 -0
- package/script/harness/npm/src/tui/components/composer.js +17 -0
- package/script/harness/npm/src/tui/components/header.d.ts +3 -0
- package/script/harness/npm/src/tui/components/header.js +5 -0
- package/script/harness/npm/src/tui/components/index.d.ts +5 -0
- package/script/harness/npm/src/tui/components/index.js +16 -0
- package/script/harness/npm/src/tui/components/message.d.ts +6 -0
- package/script/harness/npm/src/tui/components/message.js +32 -0
- package/script/harness/npm/src/tui/components/status.d.ts +3 -0
- package/script/harness/npm/src/tui/components/status.js +12 -0
- package/script/harness/npm/src/tui/components/transcript.d.ts +4 -0
- package/script/harness/npm/src/tui/components/transcript.js +9 -0
- package/script/harness/npm/src/tui/index.d.ts +7 -0
- package/script/harness/npm/src/tui/index.js +29 -0
- package/script/harness/npm/src/tui/kit.d.ts +15 -0
- package/script/harness/npm/src/tui/kit.js +10 -0
- package/script/harness/npm/src/tui/types.d.ts +38 -0
- package/script/harness/npm/src/tui/types.js +2 -0
- package/script/package.json +3 -0
- package/script/tui/src/capabilities.d.ts +72 -0
- package/script/tui/src/capabilities.js +98 -0
- package/script/tui/src/components/command-palette.d.ts +24 -0
- package/script/tui/src/components/command-palette.js +65 -0
- package/script/tui/src/components/editor.d.ts +26 -0
- package/script/tui/src/components/editor.js +116 -0
- package/script/tui/src/components/scroll-view.d.ts +14 -0
- package/script/tui/src/components/scroll-view.js +50 -0
- package/script/tui/src/components/select-list.d.ts +24 -0
- package/script/tui/src/components/select-list.js +74 -0
- package/script/tui/src/events.d.ts +56 -0
- package/script/tui/src/events.js +9 -0
- package/script/tui/src/index.d.ts +17 -0
- package/script/tui/src/index.js +46 -0
- package/script/tui/src/inputRouter.d.ts +28 -0
- package/script/tui/src/inputRouter.js +126 -0
- package/script/tui/src/keybinds.d.ts +13 -0
- package/script/tui/src/keybinds.js +18 -0
- package/script/tui/src/keyboard.d.ts +2 -0
- package/script/tui/src/keyboard.js +308 -0
- package/script/tui/src/layout/ansi.d.ts +3 -0
- package/script/tui/src/layout/ansi.js +327 -0
- package/script/tui/src/layout/cell.d.ts +24 -0
- package/script/tui/src/layout/cell.js +54 -0
- package/script/tui/src/layout/cellbuffer.d.ts +29 -0
- package/script/tui/src/layout/cellbuffer.js +321 -0
- package/script/tui/src/layout/color.d.ts +22 -0
- package/script/tui/src/layout/color.js +174 -0
- package/script/tui/src/layout/insets.d.ts +8 -0
- package/script/tui/src/layout/insets.js +64 -0
- package/script/tui/src/layout/types.d.ts +33 -0
- package/script/tui/src/layout/types.js +11 -0
- package/script/tui/src/parser.d.ts +18 -0
- package/script/tui/src/parser.js +140 -0
- package/script/tui/src/renderer.d.ts +32 -0
- package/script/tui/src/renderer.js +175 -0
- package/script/tui/src/surface.d.ts +27 -0
- package/script/tui/src/surface.js +115 -0
- package/script/tui/src/terminal.d.ts +48 -0
- package/script/tui/src/terminal.js +262 -0
- package/script/tui/src/tui.d.ts +60 -0
- package/script/tui/src/tui.js +198 -0
- package/script/tui/src/types/terminal.d.ts +20 -0
- package/script/tui/src/types/terminal.js +2 -0
- package/script/tui/src/utils.d.ts +6 -0
- package/script/tui/src/utils.js +300 -0
- package/script/tui/src/views.d.ts +35 -0
- package/script/tui/src/views.js +123 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { type SchemaType } from "./_schema.js";
|
|
2
|
+
import type { StyleVariant } from "./_type.js";
|
|
3
|
+
export type { SchemaType, StyleVariant };
|
|
4
|
+
/** Options for {@linkcode stringify}. */
|
|
5
|
+
export type StringifyOptions = {
|
|
6
|
+
/**
|
|
7
|
+
* Indentation width to use (in spaces).
|
|
8
|
+
*
|
|
9
|
+
* @default {2}
|
|
10
|
+
*/
|
|
11
|
+
indent?: number;
|
|
12
|
+
/**
|
|
13
|
+
* When true, adds an indentation level to array elements.
|
|
14
|
+
*
|
|
15
|
+
* @default {true}
|
|
16
|
+
*/
|
|
17
|
+
arrayIndent?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Do not throw on invalid types (like function in the safe schema) and skip
|
|
20
|
+
* pairs and single values with such types.
|
|
21
|
+
*
|
|
22
|
+
* @default {false}
|
|
23
|
+
*/
|
|
24
|
+
skipInvalid?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Specifies level of nesting, when to switch from block to flow style for
|
|
27
|
+
* collections. `-1` means block style everywhere.
|
|
28
|
+
*
|
|
29
|
+
* @default {-1}
|
|
30
|
+
*/
|
|
31
|
+
flowLevel?: number;
|
|
32
|
+
/** Each tag may have own set of styles. - "tag" => "style" map. */
|
|
33
|
+
styles?: Record<string, StyleVariant>;
|
|
34
|
+
/**
|
|
35
|
+
* Name of the schema to use.
|
|
36
|
+
*
|
|
37
|
+
* @default {"default"}
|
|
38
|
+
*/
|
|
39
|
+
schema?: SchemaType;
|
|
40
|
+
/**
|
|
41
|
+
* If true, sort keys when dumping YAML in ascending, ASCII character order.
|
|
42
|
+
* If a function, use the function to sort the keys.
|
|
43
|
+
* If a function is specified, the function must return a negative value
|
|
44
|
+
* if first argument is less than second argument, zero if they're equal
|
|
45
|
+
* and a positive value otherwise.
|
|
46
|
+
*
|
|
47
|
+
* @default {false}
|
|
48
|
+
*/
|
|
49
|
+
sortKeys?: boolean | ((a: string, b: string, depth: number) => number);
|
|
50
|
+
/**
|
|
51
|
+
* Set max line width.
|
|
52
|
+
*
|
|
53
|
+
* @default {80}
|
|
54
|
+
*/
|
|
55
|
+
lineWidth?: number;
|
|
56
|
+
/**
|
|
57
|
+
* If false, don't convert duplicate objects into references.
|
|
58
|
+
*
|
|
59
|
+
* @default {true}
|
|
60
|
+
*/
|
|
61
|
+
useAnchors?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* If false don't try to be compatible with older yaml versions.
|
|
64
|
+
* Currently: don't quote "yes", "no" and so on,
|
|
65
|
+
* as required for YAML 1.1.
|
|
66
|
+
*
|
|
67
|
+
* @default {true}
|
|
68
|
+
*/
|
|
69
|
+
compatMode?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* If true flow sequences will be condensed, omitting the
|
|
72
|
+
* space between `key: value` or `a, b`. Eg. `'[a,b]'` or `{a:{b:c}}`.
|
|
73
|
+
* Can be useful when using yaml for pretty URL query params
|
|
74
|
+
* as spaces are %-encoded.
|
|
75
|
+
*
|
|
76
|
+
* @default {false}
|
|
77
|
+
*/
|
|
78
|
+
condenseFlow?: boolean;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* Converts a JavaScript object or value to a YAML document string.
|
|
82
|
+
*
|
|
83
|
+
* @example Usage
|
|
84
|
+
* ```ts
|
|
85
|
+
* import { stringify } from "@std/yaml/stringify";
|
|
86
|
+
* import { assertEquals } from "@std/assert";
|
|
87
|
+
*
|
|
88
|
+
* const data = { id: 1, name: "Alice" };
|
|
89
|
+
* const yaml = stringify(data);
|
|
90
|
+
*
|
|
91
|
+
* assertEquals(yaml, "id: 1\nname: Alice\n");
|
|
92
|
+
* ```
|
|
93
|
+
*
|
|
94
|
+
* @throws {TypeError} If `data` contains invalid types.
|
|
95
|
+
* @param data The data to serialize.
|
|
96
|
+
* @param options The options for serialization.
|
|
97
|
+
* @returns A YAML string.
|
|
98
|
+
*/
|
|
99
|
+
export declare function stringify(data: unknown, options?: StringifyOptions): string;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Ported from js-yaml v3.13.1:
|
|
3
|
+
// https://github.com/nodeca/js-yaml/commit/665aadda42349dcae869f12040d9b10ef18d12da
|
|
4
|
+
// Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license.
|
|
5
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
6
|
+
// This module is browser compatible.
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.stringify = stringify;
|
|
9
|
+
const _dumper_state_js_1 = require("./_dumper_state.js");
|
|
10
|
+
const _schema_js_1 = require("./_schema.js");
|
|
11
|
+
/**
|
|
12
|
+
* Converts a JavaScript object or value to a YAML document string.
|
|
13
|
+
*
|
|
14
|
+
* @example Usage
|
|
15
|
+
* ```ts
|
|
16
|
+
* import { stringify } from "@std/yaml/stringify";
|
|
17
|
+
* import { assertEquals } from "@std/assert";
|
|
18
|
+
*
|
|
19
|
+
* const data = { id: 1, name: "Alice" };
|
|
20
|
+
* const yaml = stringify(data);
|
|
21
|
+
*
|
|
22
|
+
* assertEquals(yaml, "id: 1\nname: Alice\n");
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @throws {TypeError} If `data` contains invalid types.
|
|
26
|
+
* @param data The data to serialize.
|
|
27
|
+
* @param options The options for serialization.
|
|
28
|
+
* @returns A YAML string.
|
|
29
|
+
*/
|
|
30
|
+
function stringify(data, options = {}) {
|
|
31
|
+
const state = new _dumper_state_js_1.DumperState({
|
|
32
|
+
...options,
|
|
33
|
+
schema: _schema_js_1.SCHEMA_MAP.get(options.schema),
|
|
34
|
+
});
|
|
35
|
+
return state.stringify(data);
|
|
36
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.createHarness = void 0;
|
|
7
|
+
const node_path_1 = require("node:path");
|
|
8
|
+
const node_process_1 = __importDefault(require("node:process"));
|
|
9
|
+
const index_js_1 = require("../agents/index.js");
|
|
10
|
+
const index_js_2 = require("../commands/index.js");
|
|
11
|
+
const index_js_3 = require("../config/index.js");
|
|
12
|
+
const index_js_4 = require("../hooks/index.js");
|
|
13
|
+
const index_js_5 = require("../permissions/index.js");
|
|
14
|
+
const index_js_6 = require("../plugin/index.js");
|
|
15
|
+
const index_js_7 = require("../scheduler/index.js");
|
|
16
|
+
const index_js_8 = require("../session/index.js");
|
|
17
|
+
const index_js_9 = require("../skills/index.js");
|
|
18
|
+
const index_js_10 = require("../subAgents/index.js");
|
|
19
|
+
const models_js_1 = require("./models.js");
|
|
20
|
+
const TITLE_AGENT = {
|
|
21
|
+
name: 'title',
|
|
22
|
+
description: 'Generates a concise session title from the first user message.',
|
|
23
|
+
prompt: 'Generate a concise title (3 to 6 words) for the conversation based on the user message. Reply with ONLY the title — no quotes, no trailing punctuation, no explanation.',
|
|
24
|
+
tools: [],
|
|
25
|
+
};
|
|
26
|
+
const createHarness = async (options) => {
|
|
27
|
+
const { hostName, xdg, providers, model, agents: hostAgents = [], skills: hostSkills = [], title, titleModel, scheduler: enableScheduler = false, ...sessionDefaults } = options;
|
|
28
|
+
const cwd = options.cwd ?? node_process_1.default.cwd();
|
|
29
|
+
const config = (0, index_js_3.createHarnessConfig)({ hostName, xdg });
|
|
30
|
+
const models = (0, models_js_1.createModelRegistry)({ providers, default: model });
|
|
31
|
+
const plugins = (0, index_js_6.createPluginStore)({ dir: (0, node_path_1.join)(config.configDir, 'plugins') });
|
|
32
|
+
const newId = () => crypto.randomUUID();
|
|
33
|
+
const pluginAgents = (sessionDefaults.plugins ?? []).flatMap((plugin) => plugin.agents ?? []);
|
|
34
|
+
const diskAgents = await (0, index_js_1.loadAgents)((0, node_path_1.join)(config.configDir, 'agents'));
|
|
35
|
+
const agents = (0, index_js_1.createAgentRegistry)([...hostAgents, ...pluginAgents, ...diskAgents]);
|
|
36
|
+
const skillsDir = (0, node_path_1.join)(config.configDir, 'skills');
|
|
37
|
+
const cwdSkillsDir = (0, node_path_1.join)(cwd, 'skills');
|
|
38
|
+
const pluginSkills = (sessionDefaults.plugins ?? []).flatMap((plugin) => plugin.skills ?? []);
|
|
39
|
+
const cwdSkills = await (0, index_js_9.loadSkills)(cwdSkillsDir);
|
|
40
|
+
const diskSkills = await (0, index_js_9.loadSkills)(skillsDir);
|
|
41
|
+
const skills = (0, index_js_9.createSkillRegistry)([...hostSkills, ...pluginSkills, ...cwdSkills, ...diskSkills]);
|
|
42
|
+
const skillTools = [
|
|
43
|
+
(0, index_js_9.createSkillTool)(skills),
|
|
44
|
+
(0, index_js_9.createSkillWriterTool)({ dirs: { local: cwdSkillsDir, config: skillsDir }, registry: skills }),
|
|
45
|
+
];
|
|
46
|
+
const tasks = enableScheduler ? (0, index_js_7.createTaskStore)({ dir: (0, node_path_1.join)(config.configDir, 'tasks') }) : undefined;
|
|
47
|
+
let schedulerTools = [];
|
|
48
|
+
const runs = (0, index_js_10.createSubAgentRegistry)();
|
|
49
|
+
const store = (0, index_js_8.createSessionStore)({ dir: (0, node_path_1.join)(config.dataDir, 'sessions') });
|
|
50
|
+
const sessionTools = (extra = []) => [...(sessionDefaults.tools ?? []), ...extra, ...skillTools, ...schedulerTools];
|
|
51
|
+
const persona = (agent, opts) => (0, index_js_8.createAgentSession)({
|
|
52
|
+
tools: opts.tools,
|
|
53
|
+
plugins: sessionDefaults.plugins,
|
|
54
|
+
system: agent.prompt,
|
|
55
|
+
hooks: opts.hooks ?? (0, index_js_5.allowList)(agent.tools),
|
|
56
|
+
...models.resolve(opts.model ?? agent.model),
|
|
57
|
+
id: newId(),
|
|
58
|
+
});
|
|
59
|
+
const spawn = (agent) => (0, index_js_8.persistTo)(store, persona(agent, {
|
|
60
|
+
tools: sessionTools(),
|
|
61
|
+
hooks: (0, index_js_4.mergeHooks)([sessionDefaults.hooks, (0, index_js_5.allowList)(agent.tools)]),
|
|
62
|
+
}));
|
|
63
|
+
const scheduler = enableScheduler && tasks
|
|
64
|
+
? (0, index_js_7.createScheduler)({
|
|
65
|
+
store: tasks,
|
|
66
|
+
run: async (task) => {
|
|
67
|
+
try {
|
|
68
|
+
if (!task.agent)
|
|
69
|
+
throw new Error('scheduled task is missing an agent');
|
|
70
|
+
const output = await (0, index_js_9.runSkill)({ skills, agents, spawn, runs, parentId: task.id }, {
|
|
71
|
+
skill: task.skill,
|
|
72
|
+
task: task.prompt,
|
|
73
|
+
agent: task.agent,
|
|
74
|
+
});
|
|
75
|
+
return { ok: true, output };
|
|
76
|
+
}
|
|
77
|
+
catch (error) {
|
|
78
|
+
return { ok: false, error: error instanceof Error ? error.message : String(error) };
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
})
|
|
82
|
+
: undefined;
|
|
83
|
+
if (tasks && scheduler) {
|
|
84
|
+
schedulerTools = [
|
|
85
|
+
(0, index_js_9.createRunSkillTool)({ skills, agents, spawn, runs }),
|
|
86
|
+
(0, index_js_7.createScheduleTaskTool)({ store: tasks, skills, onChange: () => scheduler.reload() }),
|
|
87
|
+
];
|
|
88
|
+
}
|
|
89
|
+
const titleSpawn = (agent) => persona(agent, { model: titleModel });
|
|
90
|
+
const catalog = (0, index_js_8.createSessionCatalog)({ file: (0, node_path_1.join)(config.dataDir, 'sessions.db') });
|
|
91
|
+
runs.subscribe((run) => catalog.record(run.runId, { cwd, parentId: run.parentId }));
|
|
92
|
+
const sessions = (0, index_js_8.createSessionManager)({
|
|
93
|
+
store,
|
|
94
|
+
catalog,
|
|
95
|
+
newId,
|
|
96
|
+
cwd,
|
|
97
|
+
title: title === false ? undefined : ({ id, text }) => {
|
|
98
|
+
void (0, index_js_8.runTitler)({
|
|
99
|
+
id,
|
|
100
|
+
text,
|
|
101
|
+
setTitle: (sid, value) => catalog.setTitle(sid, value),
|
|
102
|
+
generate: (input) => (0, index_js_10.runSubAgent)(TITLE_AGENT, input, { spawn: titleSpawn }).then((result) => result.text),
|
|
103
|
+
});
|
|
104
|
+
},
|
|
105
|
+
revive: ({ id, model: ref, messages }) => (0, index_js_8.createAgentSession)({
|
|
106
|
+
...sessionDefaults,
|
|
107
|
+
tools: sessionTools([(0, index_js_10.createSubAgentTool)({ registry: agents, spawn, runs, parentId: id })]),
|
|
108
|
+
...models.resolve(ref),
|
|
109
|
+
id,
|
|
110
|
+
messages,
|
|
111
|
+
}),
|
|
112
|
+
});
|
|
113
|
+
const commands = (0, index_js_2.createCommandRegistry)([
|
|
114
|
+
(0, index_js_2.createAgentsCommand)(agents),
|
|
115
|
+
(0, index_js_2.createSkillsCommand)(skills),
|
|
116
|
+
(0, index_js_2.createSessionsCommand)(sessions),
|
|
117
|
+
...(tasks ? [(0, index_js_7.createTasksCommand)(tasks)] : []),
|
|
118
|
+
]);
|
|
119
|
+
commands.register((0, index_js_2.createHelpCommand)(() => commands.list()));
|
|
120
|
+
if (scheduler)
|
|
121
|
+
await scheduler.start();
|
|
122
|
+
return {
|
|
123
|
+
config,
|
|
124
|
+
models,
|
|
125
|
+
plugins,
|
|
126
|
+
sessions,
|
|
127
|
+
agents,
|
|
128
|
+
skills,
|
|
129
|
+
subAgents: runs,
|
|
130
|
+
dispatchSubAgent: async (agent, task, parentId) => {
|
|
131
|
+
const def = agents.get(agent);
|
|
132
|
+
if (!def)
|
|
133
|
+
throw new Error(`unknown sub-agent "${agent}"`);
|
|
134
|
+
return await (0, index_js_10.runSubAgent)(def, task, { spawn, runs, parentId });
|
|
135
|
+
},
|
|
136
|
+
scheduler,
|
|
137
|
+
tasks,
|
|
138
|
+
commands,
|
|
139
|
+
cwd,
|
|
140
|
+
close: () => {
|
|
141
|
+
scheduler?.stop();
|
|
142
|
+
catalog.close();
|
|
143
|
+
},
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
exports.createHarness = createHarness;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createModelRegistry = exports.createHarness = void 0;
|
|
4
|
+
var create_js_1 = require("./create.js");
|
|
5
|
+
Object.defineProperty(exports, "createHarness", { enumerable: true, get: function () { return create_js_1.createHarness; } });
|
|
6
|
+
var models_js_1 = require("./models.js");
|
|
7
|
+
Object.defineProperty(exports, "createModelRegistry", { enumerable: true, get: function () { return models_js_1.createModelRegistry; } });
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Provider } from 'mu-core';
|
|
2
|
+
export interface ModelRegistryOptions {
|
|
3
|
+
providers: Record<string, Provider>;
|
|
4
|
+
default: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ResolvedModel {
|
|
7
|
+
provider: Provider;
|
|
8
|
+
model: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ModelRegistry {
|
|
11
|
+
readonly selected: string;
|
|
12
|
+
readonly providers: string[];
|
|
13
|
+
select(ref: string): void;
|
|
14
|
+
resolve(ref?: string): ResolvedModel;
|
|
15
|
+
}
|
|
16
|
+
export declare const createModelRegistry: (options: ModelRegistryOptions) => ModelRegistry;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createModelRegistry = void 0;
|
|
4
|
+
const createModelRegistry = (options) => {
|
|
5
|
+
const { providers } = options;
|
|
6
|
+
let selected = options.default;
|
|
7
|
+
const resolve = (ref) => {
|
|
8
|
+
const value = ref ?? selected;
|
|
9
|
+
const slash = value.indexOf('/');
|
|
10
|
+
if (slash <= 0 || slash === value.length - 1) {
|
|
11
|
+
throw new Error(`ModelRegistry: model must be "provider/model", got "${value}"`);
|
|
12
|
+
}
|
|
13
|
+
const name = value.slice(0, slash);
|
|
14
|
+
const provider = providers[name];
|
|
15
|
+
if (!provider)
|
|
16
|
+
throw new Error(`ModelRegistry: unknown provider "${name}"`);
|
|
17
|
+
return { provider, model: value.slice(slash + 1) };
|
|
18
|
+
};
|
|
19
|
+
resolve(selected);
|
|
20
|
+
return {
|
|
21
|
+
get selected() {
|
|
22
|
+
return selected;
|
|
23
|
+
},
|
|
24
|
+
get providers() {
|
|
25
|
+
return Object.keys(providers);
|
|
26
|
+
},
|
|
27
|
+
select: (ref) => {
|
|
28
|
+
resolve(ref);
|
|
29
|
+
selected = ref;
|
|
30
|
+
},
|
|
31
|
+
resolve,
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
exports.createModelRegistry = createModelRegistry;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { Provider } from 'mu-core';
|
|
2
|
+
import type { Agent, AgentRegistry } from '../agents/index.js';
|
|
3
|
+
import type { CommandRegistry } from '../commands/index.js';
|
|
4
|
+
import type { HarnessConfig, HarnessConfigOptions } from '../config/index.js';
|
|
5
|
+
import type { PluginStore } from '../plugin/index.js';
|
|
6
|
+
import type { Scheduler, TaskStore } from '../scheduler/index.js';
|
|
7
|
+
import type { AgentSessionConfig, SessionManager } from '../session/index.js';
|
|
8
|
+
import type { Skill, SkillRegistry } from '../skills/index.js';
|
|
9
|
+
import type { SubAgentRegistry, SubAgentResult } from '../subAgents/index.js';
|
|
10
|
+
import type { ModelRegistry } from './models.js';
|
|
11
|
+
export type HarnessOptions = HarnessConfigOptions & Omit<AgentSessionConfig, 'provider' | 'model' | 'id' | 'messages'> & {
|
|
12
|
+
providers: Record<string, Provider>;
|
|
13
|
+
model: string;
|
|
14
|
+
agents?: Agent[];
|
|
15
|
+
skills?: Skill[];
|
|
16
|
+
title?: boolean;
|
|
17
|
+
titleModel?: string;
|
|
18
|
+
cwd?: string;
|
|
19
|
+
scheduler?: boolean;
|
|
20
|
+
};
|
|
21
|
+
export interface Harness {
|
|
22
|
+
readonly config: HarnessConfig;
|
|
23
|
+
readonly models: ModelRegistry;
|
|
24
|
+
readonly plugins: PluginStore;
|
|
25
|
+
readonly sessions: SessionManager;
|
|
26
|
+
readonly agents: AgentRegistry;
|
|
27
|
+
readonly skills: SkillRegistry;
|
|
28
|
+
readonly subAgents: SubAgentRegistry;
|
|
29
|
+
dispatchSubAgent(agent: string, task: string, parentId: string): Promise<SubAgentResult>;
|
|
30
|
+
readonly commands: CommandRegistry;
|
|
31
|
+
readonly scheduler?: Scheduler;
|
|
32
|
+
readonly tasks?: TaskStore;
|
|
33
|
+
readonly cwd: string;
|
|
34
|
+
close(): void;
|
|
35
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mergeHooks = exports.withHooks = void 0;
|
|
4
|
+
var with_hooks_js_1 = require("./with-hooks.js");
|
|
5
|
+
Object.defineProperty(exports, "withHooks", { enumerable: true, get: function () { return with_hooks_js_1.withHooks; } });
|
|
6
|
+
var merge_hooks_js_1 = require("./merge-hooks.js");
|
|
7
|
+
Object.defineProperty(exports, "mergeHooks", { enumerable: true, get: function () { return merge_hooks_js_1.mergeHooks; } });
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mergeHooks = void 0;
|
|
4
|
+
const mergeHooks = (list) => {
|
|
5
|
+
const hooks = list.filter((h) => h !== undefined);
|
|
6
|
+
const merged = {};
|
|
7
|
+
if (hooks.some((h) => h.sessionStart)) {
|
|
8
|
+
merged.sessionStart = async () => {
|
|
9
|
+
for (const h of hooks)
|
|
10
|
+
await h.sessionStart?.();
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
if (hooks.some((h) => h.prepareRequest)) {
|
|
14
|
+
merged.prepareRequest = async (req) => {
|
|
15
|
+
let current = req;
|
|
16
|
+
for (const h of hooks) {
|
|
17
|
+
const next = await h.prepareRequest?.(current);
|
|
18
|
+
if (next)
|
|
19
|
+
current = { system: next.system ?? current.system, tools: next.tools ?? current.tools };
|
|
20
|
+
}
|
|
21
|
+
return current;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
if (hooks.some((h) => h.beforeToolCall)) {
|
|
25
|
+
merged.beforeToolCall = async (call) => {
|
|
26
|
+
for (const h of hooks) {
|
|
27
|
+
const blocked = await h.beforeToolCall?.(call);
|
|
28
|
+
if (blocked)
|
|
29
|
+
return blocked;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
if (hooks.some((h) => h.afterToolCall)) {
|
|
34
|
+
merged.afterToolCall = async (call) => {
|
|
35
|
+
let result = call.result;
|
|
36
|
+
for (const h of hooks) {
|
|
37
|
+
const next = await h.afterToolCall?.({ name: call.name, result });
|
|
38
|
+
if (next)
|
|
39
|
+
result = next;
|
|
40
|
+
}
|
|
41
|
+
return result;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
return merged;
|
|
45
|
+
};
|
|
46
|
+
exports.mergeHooks = mergeHooks;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ContentPart, Tool } from 'mu-core';
|
|
2
|
+
export interface PreparedRequest {
|
|
3
|
+
system?: string;
|
|
4
|
+
tools?: Tool[];
|
|
5
|
+
}
|
|
6
|
+
export interface AgentSessionHooks {
|
|
7
|
+
sessionStart?(): void | Promise<void>;
|
|
8
|
+
prepareRequest?(req: {
|
|
9
|
+
system: string;
|
|
10
|
+
tools: Tool[];
|
|
11
|
+
}): PreparedRequest | void | Promise<PreparedRequest | void>;
|
|
12
|
+
beforeToolCall?(call: {
|
|
13
|
+
name: string;
|
|
14
|
+
input: unknown;
|
|
15
|
+
}): void | ContentPart[] | Promise<void | ContentPart[]>;
|
|
16
|
+
afterToolCall?(call: {
|
|
17
|
+
name: string;
|
|
18
|
+
result: ContentPart[];
|
|
19
|
+
}): void | ContentPart[] | Promise<void | ContentPart[]>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.withHooks = void 0;
|
|
4
|
+
const withHooks = (tool, hooks) => {
|
|
5
|
+
if (!hooks.beforeToolCall && !hooks.afterToolCall)
|
|
6
|
+
return tool;
|
|
7
|
+
const run = async (input, ctx) => {
|
|
8
|
+
const blocked = await hooks.beforeToolCall?.({ name: tool.name, input });
|
|
9
|
+
if (blocked)
|
|
10
|
+
return blocked;
|
|
11
|
+
const result = await tool.run(input, ctx);
|
|
12
|
+
return (await hooks.afterToolCall?.({ name: tool.name, result })) ?? result;
|
|
13
|
+
};
|
|
14
|
+
return Object.assign(Object.create(tool), { run });
|
|
15
|
+
};
|
|
16
|
+
exports.withHooks = withHooks;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "./_dnt.polyfills.js";
|
|
2
|
+
export * from './agents/index.js';
|
|
3
|
+
export * from './channels/index.js';
|
|
4
|
+
export * from './commands/index.js';
|
|
5
|
+
export * from './common/index.js';
|
|
6
|
+
export * from './config/index.js';
|
|
7
|
+
export * from './harness/index.js';
|
|
8
|
+
export * from './hooks/index.js';
|
|
9
|
+
export * from './permissions/index.js';
|
|
10
|
+
export * from './plugin/index.js';
|
|
11
|
+
export * from './scheduler/index.js';
|
|
12
|
+
export * from './session/index.js';
|
|
13
|
+
export * from './skills/index.js';
|
|
14
|
+
export * from './subAgents/index.js';
|
|
15
|
+
export * from './tui/index.js';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
require("./_dnt.polyfills.js");
|
|
18
|
+
__exportStar(require("./agents/index.js"), exports);
|
|
19
|
+
__exportStar(require("./channels/index.js"), exports);
|
|
20
|
+
__exportStar(require("./commands/index.js"), exports);
|
|
21
|
+
__exportStar(require("./common/index.js"), exports);
|
|
22
|
+
__exportStar(require("./config/index.js"), exports);
|
|
23
|
+
__exportStar(require("./harness/index.js"), exports);
|
|
24
|
+
__exportStar(require("./hooks/index.js"), exports);
|
|
25
|
+
__exportStar(require("./permissions/index.js"), exports);
|
|
26
|
+
__exportStar(require("./plugin/index.js"), exports);
|
|
27
|
+
__exportStar(require("./scheduler/index.js"), exports);
|
|
28
|
+
__exportStar(require("./session/index.js"), exports);
|
|
29
|
+
__exportStar(require("./skills/index.js"), exports);
|
|
30
|
+
__exportStar(require("./subAgents/index.js"), exports);
|
|
31
|
+
__exportStar(require("./tui/index.js"), exports);
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Tool } from 'mu-core';
|
|
2
|
+
import type { AgentSessionHooks } from '../hooks/index.js';
|
|
3
|
+
export declare const filterTools: (pool: Tool[], allow: string[] | undefined) => Tool[];
|
|
4
|
+
export declare const allowList: (names: string[] | undefined) => AgentSessionHooks;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.allowList = exports.filterTools = void 0;
|
|
4
|
+
const glob_js_1 = require("./glob.js");
|
|
5
|
+
const filterTools = (pool, allow) => {
|
|
6
|
+
const patterns = allow ?? [];
|
|
7
|
+
return pool.filter((tool) => (0, glob_js_1.matchesAnyGlob)(tool.name, patterns));
|
|
8
|
+
};
|
|
9
|
+
exports.filterTools = filterTools;
|
|
10
|
+
const allowList = (names) => ({
|
|
11
|
+
prepareRequest: ({ tools }) => ({ tools: (0, exports.filterTools)(tools, names) }),
|
|
12
|
+
});
|
|
13
|
+
exports.allowList = allowList;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ContentPart } from 'mu-core';
|
|
2
|
+
import type { AgentSessionHooks } from '../hooks/index.js';
|
|
3
|
+
export interface ApprovalCall {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
input: unknown;
|
|
7
|
+
}
|
|
8
|
+
export interface RequireApprovalOptions {
|
|
9
|
+
needsApproval(call: {
|
|
10
|
+
name: string;
|
|
11
|
+
input: unknown;
|
|
12
|
+
}): boolean;
|
|
13
|
+
prompt(call: ApprovalCall): boolean | Promise<boolean>;
|
|
14
|
+
onDeny?(call: ApprovalCall): ContentPart[];
|
|
15
|
+
newId?(): string;
|
|
16
|
+
}
|
|
17
|
+
export declare const requireApproval: (options: RequireApprovalOptions) => AgentSessionHooks;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.requireApproval = void 0;
|
|
4
|
+
const requireApproval = (options) => {
|
|
5
|
+
const newId = options.newId ?? (() => crypto.randomUUID());
|
|
6
|
+
return {
|
|
7
|
+
beforeToolCall: async ({ name, input }) => {
|
|
8
|
+
if (!options.needsApproval({ name, input }))
|
|
9
|
+
return;
|
|
10
|
+
const call = { id: newId(), name, input };
|
|
11
|
+
if (await options.prompt(call))
|
|
12
|
+
return;
|
|
13
|
+
return options.onDeny?.(call) ?? [{ type: 'text', text: `Denied: ${call.name}` }];
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
exports.requireApproval = requireApproval;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const matchesAnyGlob: (value: string, patterns: string[]) => boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.matchesAnyGlob = void 0;
|
|
4
|
+
const node_path_1 = require("node:path");
|
|
5
|
+
const matchesAnyGlob = (value, patterns) => patterns.some((pattern) => (0, node_path_1.matchesGlob)(value, pattern));
|
|
6
|
+
exports.matchesAnyGlob = matchesAnyGlob;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.matchesAnyGlob = exports.requireApproval = exports.filterTools = exports.allowList = void 0;
|
|
4
|
+
var allow_list_js_1 = require("./allow-list.js");
|
|
5
|
+
Object.defineProperty(exports, "allowList", { enumerable: true, get: function () { return allow_list_js_1.allowList; } });
|
|
6
|
+
Object.defineProperty(exports, "filterTools", { enumerable: true, get: function () { return allow_list_js_1.filterTools; } });
|
|
7
|
+
var approval_js_1 = require("./approval.js");
|
|
8
|
+
Object.defineProperty(exports, "requireApproval", { enumerable: true, get: function () { return approval_js_1.requireApproval; } });
|
|
9
|
+
var glob_js_1 = require("./glob.js");
|
|
10
|
+
Object.defineProperty(exports, "matchesAnyGlob", { enumerable: true, get: function () { return glob_js_1.matchesAnyGlob; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const importModule: (spec: string) => Promise<Record<string, unknown>>;
|