@syrin/cli 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +15 -0
- package/README.md +302 -0
- package/dist/cli/commands/analyse.d.ts +16 -0
- package/dist/cli/commands/analyse.js +61 -0
- package/dist/cli/commands/dev.d.ts +23 -0
- package/dist/cli/commands/dev.js +419 -0
- package/dist/cli/commands/doctor.d.ts +10 -0
- package/dist/cli/commands/doctor.js +195 -0
- package/dist/cli/commands/index.d.ts +12 -0
- package/dist/cli/commands/index.js +12 -0
- package/dist/cli/commands/init.d.ts +16 -0
- package/dist/cli/commands/init.js +90 -0
- package/dist/cli/commands/list.d.ts +15 -0
- package/dist/cli/commands/list.js +50 -0
- package/dist/cli/commands/rollback.d.ts +12 -0
- package/dist/cli/commands/rollback.js +101 -0
- package/dist/cli/commands/test.d.ts +31 -0
- package/dist/cli/commands/test.js +88 -0
- package/dist/cli/commands/update.d.ts +9 -0
- package/dist/cli/commands/update.js +76 -0
- package/dist/cli/index.d.ts +13 -0
- package/dist/cli/index.js +342 -0
- package/dist/cli/prompts/index.d.ts +5 -0
- package/dist/cli/prompts/index.js +5 -0
- package/dist/cli/prompts/init-prompt.d.ts +17 -0
- package/dist/cli/prompts/init-prompt.js +263 -0
- package/dist/cli/utils/command-error-handler.d.ts +14 -0
- package/dist/cli/utils/command-error-handler.js +35 -0
- package/dist/cli/utils/common-types.d.ts +24 -0
- package/dist/cli/utils/common-types.js +6 -0
- package/dist/cli/utils/connection-handler.d.ts +37 -0
- package/dist/cli/utils/connection-handler.js +90 -0
- package/dist/cli/utils/index.d.ts +11 -0
- package/dist/cli/utils/index.js +11 -0
- package/dist/cli/utils/option-parsers.d.ts +41 -0
- package/dist/cli/utils/option-parsers.js +92 -0
- package/dist/cli/utils/output-utils.d.ts +12 -0
- package/dist/cli/utils/output-utils.js +21 -0
- package/dist/cli/utils/transport-resolver.d.ts +33 -0
- package/dist/cli/utils/transport-resolver.js +82 -0
- package/dist/cli/utils/version-banner.d.ts +10 -0
- package/dist/cli/utils/version-banner.js +26 -0
- package/dist/config/env-checker.d.ts +37 -0
- package/dist/config/env-checker.js +136 -0
- package/dist/config/generator.d.ts +19 -0
- package/dist/config/generator.js +196 -0
- package/dist/config/index.d.ts +9 -0
- package/dist/config/index.js +9 -0
- package/dist/config/loader.d.ts +19 -0
- package/dist/config/loader.js +57 -0
- package/dist/config/schema.d.ts +42 -0
- package/dist/config/schema.js +181 -0
- package/dist/config/syrin.template.yaml +127 -0
- package/dist/config/types.d.ts +87 -0
- package/dist/config/types.js +6 -0
- package/dist/constants/app.d.ts +9 -0
- package/dist/constants/app.js +9 -0
- package/dist/constants/commands.d.ts +43 -0
- package/dist/constants/commands.js +43 -0
- package/dist/constants/defaults.d.ts +18 -0
- package/dist/constants/defaults.js +18 -0
- package/dist/constants/env-vars.d.ts +11 -0
- package/dist/constants/env-vars.js +11 -0
- package/dist/constants/icons.d.ts +23 -0
- package/dist/constants/icons.js +23 -0
- package/dist/constants/index.d.ts +17 -0
- package/dist/constants/index.js +17 -0
- package/dist/constants/labels.d.ts +38 -0
- package/dist/constants/labels.js +42 -0
- package/dist/constants/links.d.ts +10 -0
- package/dist/constants/links.js +11 -0
- package/dist/constants/list.d.ts +10 -0
- package/dist/constants/list.js +9 -0
- package/dist/constants/llm.d.ts +26 -0
- package/dist/constants/llm.js +25 -0
- package/dist/constants/messages.d.ts +107 -0
- package/dist/constants/messages.js +138 -0
- package/dist/constants/paths.d.ts +29 -0
- package/dist/constants/paths.js +29 -0
- package/dist/constants/transport.d.ts +9 -0
- package/dist/constants/transport.js +8 -0
- package/dist/events/emitter.d.ts +64 -0
- package/dist/events/emitter.js +142 -0
- package/dist/events/event-type.d.ts +66 -0
- package/dist/events/event-type.js +81 -0
- package/dist/events/payloads/diagnostics.d.ts +24 -0
- package/dist/events/payloads/diagnostics.js +5 -0
- package/dist/events/payloads/index.d.ts +15 -0
- package/dist/events/payloads/index.js +6 -0
- package/dist/events/payloads/llm.d.ts +58 -0
- package/dist/events/payloads/llm.js +6 -0
- package/dist/events/payloads/registry.d.ts +28 -0
- package/dist/events/payloads/registry.js +5 -0
- package/dist/events/payloads/session.d.ts +32 -0
- package/dist/events/payloads/session.js +5 -0
- package/dist/events/payloads/testing.d.ts +17 -0
- package/dist/events/payloads/testing.js +5 -0
- package/dist/events/payloads/tool.d.ts +29 -0
- package/dist/events/payloads/tool.js +5 -0
- package/dist/events/payloads/transport.d.ts +30 -0
- package/dist/events/payloads/transport.js +5 -0
- package/dist/events/payloads/validation.d.ts +37 -0
- package/dist/events/payloads/validation.js +5 -0
- package/dist/events/payloads/workflow.d.ts +45 -0
- package/dist/events/payloads/workflow.js +5 -0
- package/dist/events/store/file-store.d.ts +37 -0
- package/dist/events/store/file-store.js +113 -0
- package/dist/events/store/index.d.ts +7 -0
- package/dist/events/store/index.js +6 -0
- package/dist/events/store/memory-store.d.ts +26 -0
- package/dist/events/store/memory-store.js +39 -0
- package/dist/events/store.d.ts +11 -0
- package/dist/events/store.js +2 -0
- package/dist/events/types.d.ts +14 -0
- package/dist/events/types.js +2 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +30 -0
- package/dist/presentation/analysis-ui.d.ts +24 -0
- package/dist/presentation/analysis-ui.js +158 -0
- package/dist/presentation/dev/chat-ui-types.d.ts +68 -0
- package/dist/presentation/dev/chat-ui-types.js +5 -0
- package/dist/presentation/dev/chat-ui.d.ts +61 -0
- package/dist/presentation/dev/chat-ui.js +714 -0
- package/dist/presentation/dev/components/assistant-message.d.ts +19 -0
- package/dist/presentation/dev/components/assistant-message.js +36 -0
- package/dist/presentation/dev/components/header.d.ts +16 -0
- package/dist/presentation/dev/components/header.js +22 -0
- package/dist/presentation/dev/components/index.d.ts +13 -0
- package/dist/presentation/dev/components/index.js +13 -0
- package/dist/presentation/dev/components/input-panel.d.ts +22 -0
- package/dist/presentation/dev/components/input-panel.js +43 -0
- package/dist/presentation/dev/components/message-component.d.ts +16 -0
- package/dist/presentation/dev/components/message-component.js +51 -0
- package/dist/presentation/dev/components/messages-list.d.ts +24 -0
- package/dist/presentation/dev/components/messages-list.js +48 -0
- package/dist/presentation/dev/components/system-message.d.ts +16 -0
- package/dist/presentation/dev/components/system-message.js +26 -0
- package/dist/presentation/dev/components/user-message.d.ts +21 -0
- package/dist/presentation/dev/components/user-message.js +35 -0
- package/dist/presentation/dev/components/welcome-banner.d.ts +24 -0
- package/dist/presentation/dev/components/welcome-banner.js +146 -0
- package/dist/presentation/dev/goodbye-messages.d.ts +31 -0
- package/dist/presentation/dev/goodbye-messages.js +100 -0
- package/dist/presentation/dev/index.d.ts +5 -0
- package/dist/presentation/dev/index.js +5 -0
- package/dist/presentation/dev/text-wrapper.d.ts +30 -0
- package/dist/presentation/dev/text-wrapper.js +74 -0
- package/dist/presentation/dev-ui.d.ts +33 -0
- package/dist/presentation/dev-ui.js +246 -0
- package/dist/presentation/doctor-ui.d.ts +40 -0
- package/dist/presentation/doctor-ui.js +157 -0
- package/dist/presentation/init-ui.d.ts +14 -0
- package/dist/presentation/init-ui.js +41 -0
- package/dist/presentation/list-ui.d.ts +44 -0
- package/dist/presentation/list-ui.js +139 -0
- package/dist/presentation/test-ui.d.ts +49 -0
- package/dist/presentation/test-ui.js +358 -0
- package/dist/runtime/analysis/analyser.d.ts +14 -0
- package/dist/runtime/analysis/analyser.js +88 -0
- package/dist/runtime/analysis/dependencies.d.ts +10 -0
- package/dist/runtime/analysis/dependencies.js +140 -0
- package/dist/runtime/analysis/index.d.ts +10 -0
- package/dist/runtime/analysis/index.js +10 -0
- package/dist/runtime/analysis/indexer.d.ts +10 -0
- package/dist/runtime/analysis/indexer.js +62 -0
- package/dist/runtime/analysis/loader.d.ts +15 -0
- package/dist/runtime/analysis/loader.js +47 -0
- package/dist/runtime/analysis/normalizer.d.ts +14 -0
- package/dist/runtime/analysis/normalizer.js +184 -0
- package/dist/runtime/analysis/rules/__test-helpers__.d.ts +18 -0
- package/dist/runtime/analysis/rules/__test-helpers__.js +40 -0
- package/dist/runtime/analysis/rules/base.d.ts +38 -0
- package/dist/runtime/analysis/rules/base.js +23 -0
- package/dist/runtime/analysis/rules/error-codes.d.ts +64 -0
- package/dist/runtime/analysis/rules/error-codes.js +73 -0
- package/dist/runtime/analysis/rules/errors/e000-tool-not-found.d.ts +35 -0
- package/dist/runtime/analysis/rules/errors/e000-tool-not-found.js +32 -0
- package/dist/runtime/analysis/rules/errors/e001-missing-output-schema.d.ts +22 -0
- package/dist/runtime/analysis/rules/errors/e001-missing-output-schema.js +30 -0
- package/dist/runtime/analysis/rules/errors/e002-underspecified-input.d.ts +24 -0
- package/dist/runtime/analysis/rules/errors/e002-underspecified-input.js +52 -0
- package/dist/runtime/analysis/rules/errors/e003-type-mismatch.d.ts +23 -0
- package/dist/runtime/analysis/rules/errors/e003-type-mismatch.js +73 -0
- package/dist/runtime/analysis/rules/errors/e004-free-text-propagation.d.ts +23 -0
- package/dist/runtime/analysis/rules/errors/e004-free-text-propagation.js +47 -0
- package/dist/runtime/analysis/rules/errors/e005-tool-ambiguity.d.ts +25 -0
- package/dist/runtime/analysis/rules/errors/e005-tool-ambiguity.js +73 -0
- package/dist/runtime/analysis/rules/errors/e006-param-not-in-description.d.ts +22 -0
- package/dist/runtime/analysis/rules/errors/e006-param-not-in-description.js +57 -0
- package/dist/runtime/analysis/rules/errors/e007-output-not-guaranteed.d.ts +23 -0
- package/dist/runtime/analysis/rules/errors/e007-output-not-guaranteed.js +56 -0
- package/dist/runtime/analysis/rules/errors/e008-circular-dependency.d.ts +22 -0
- package/dist/runtime/analysis/rules/errors/e008-circular-dependency.js +84 -0
- package/dist/runtime/analysis/rules/errors/e009-implicit-user-input.d.ts +23 -0
- package/dist/runtime/analysis/rules/errors/e009-implicit-user-input.js +89 -0
- package/dist/runtime/analysis/rules/errors/e010-non-serializable.d.ts +25 -0
- package/dist/runtime/analysis/rules/errors/e010-non-serializable.js +46 -0
- package/dist/runtime/analysis/rules/errors/e011-missing-tool-description.d.ts +24 -0
- package/dist/runtime/analysis/rules/errors/e011-missing-tool-description.js +33 -0
- package/dist/runtime/analysis/rules/errors/e012-side-effect-detected.d.ts +39 -0
- package/dist/runtime/analysis/rules/errors/e012-side-effect-detected.js +40 -0
- package/dist/runtime/analysis/rules/errors/e013-non-deterministic-output.d.ts +37 -0
- package/dist/runtime/analysis/rules/errors/e013-non-deterministic-output.js +34 -0
- package/dist/runtime/analysis/rules/errors/e013-output-explosion.d.ts +39 -0
- package/dist/runtime/analysis/rules/errors/e013-output-explosion.js +36 -0
- package/dist/runtime/analysis/rules/errors/e014-hidden-dependency.d.ts +42 -0
- package/dist/runtime/analysis/rules/errors/e014-hidden-dependency.js +46 -0
- package/dist/runtime/analysis/rules/errors/e014-output-explosion.d.ts +39 -0
- package/dist/runtime/analysis/rules/errors/e014-output-explosion.js +36 -0
- package/dist/runtime/analysis/rules/errors/e015-hidden-dependency.d.ts +42 -0
- package/dist/runtime/analysis/rules/errors/e015-hidden-dependency.js +46 -0
- package/dist/runtime/analysis/rules/errors/e015-unbounded-execution.d.ts +44 -0
- package/dist/runtime/analysis/rules/errors/e015-unbounded-execution.js +66 -0
- package/dist/runtime/analysis/rules/errors/e016-output-validation-failed.d.ts +43 -0
- package/dist/runtime/analysis/rules/errors/e016-output-validation-failed.js +42 -0
- package/dist/runtime/analysis/rules/errors/e016-unbounded-execution.d.ts +44 -0
- package/dist/runtime/analysis/rules/errors/e016-unbounded-execution.js +66 -0
- package/dist/runtime/analysis/rules/errors/e017-input-validation-failed.d.ts +57 -0
- package/dist/runtime/analysis/rules/errors/e017-input-validation-failed.js +80 -0
- package/dist/runtime/analysis/rules/errors/e017-output-validation-failed.d.ts +43 -0
- package/dist/runtime/analysis/rules/errors/e017-output-validation-failed.js +42 -0
- package/dist/runtime/analysis/rules/errors/e018-input-validation-failed.d.ts +57 -0
- package/dist/runtime/analysis/rules/errors/e018-input-validation-failed.js +80 -0
- package/dist/runtime/analysis/rules/errors/e018-tool-execution-failed.d.ts +38 -0
- package/dist/runtime/analysis/rules/errors/e018-tool-execution-failed.js +37 -0
- package/dist/runtime/analysis/rules/errors/e019-tool-execution-failed.d.ts +38 -0
- package/dist/runtime/analysis/rules/errors/e019-tool-execution-failed.js +37 -0
- package/dist/runtime/analysis/rules/errors/e019-unexpected-test-result.d.ts +65 -0
- package/dist/runtime/analysis/rules/errors/e019-unexpected-test-result.js +109 -0
- package/dist/runtime/analysis/rules/errors/e020-unexpected-test-result.d.ts +65 -0
- package/dist/runtime/analysis/rules/errors/e020-unexpected-test-result.js +109 -0
- package/dist/runtime/analysis/rules/errors/e100-missing-output-schema.d.ts +22 -0
- package/dist/runtime/analysis/rules/errors/e100-missing-output-schema.js +30 -0
- package/dist/runtime/analysis/rules/errors/e101-missing-tool-description.d.ts +24 -0
- package/dist/runtime/analysis/rules/errors/e101-missing-tool-description.js +33 -0
- package/dist/runtime/analysis/rules/errors/e102-underspecified-input.d.ts +24 -0
- package/dist/runtime/analysis/rules/errors/e102-underspecified-input.js +52 -0
- package/dist/runtime/analysis/rules/errors/e103-type-mismatch.d.ts +23 -0
- package/dist/runtime/analysis/rules/errors/e103-type-mismatch.js +72 -0
- package/dist/runtime/analysis/rules/errors/e104-param-not-in-description.d.ts +22 -0
- package/dist/runtime/analysis/rules/errors/e104-param-not-in-description.js +57 -0
- package/dist/runtime/analysis/rules/errors/e105-free-text-propagation.d.ts +23 -0
- package/dist/runtime/analysis/rules/errors/e105-free-text-propagation.js +47 -0
- package/dist/runtime/analysis/rules/errors/e106-output-not-guaranteed.d.ts +23 -0
- package/dist/runtime/analysis/rules/errors/e106-output-not-guaranteed.js +58 -0
- package/dist/runtime/analysis/rules/errors/e107-circular-dependency.d.ts +22 -0
- package/dist/runtime/analysis/rules/errors/e107-circular-dependency.js +84 -0
- package/dist/runtime/analysis/rules/errors/e108-implicit-user-input.d.ts +23 -0
- package/dist/runtime/analysis/rules/errors/e108-implicit-user-input.js +94 -0
- package/dist/runtime/analysis/rules/errors/e109-non-serializable.d.ts +25 -0
- package/dist/runtime/analysis/rules/errors/e109-non-serializable.js +44 -0
- package/dist/runtime/analysis/rules/errors/e110-tool-ambiguity.d.ts +25 -0
- package/dist/runtime/analysis/rules/errors/e110-tool-ambiguity.js +73 -0
- package/dist/runtime/analysis/rules/errors/e200-input-validation-failed.d.ts +57 -0
- package/dist/runtime/analysis/rules/errors/e200-input-validation-failed.js +71 -0
- package/dist/runtime/analysis/rules/errors/e300-output-validation-failed.d.ts +43 -0
- package/dist/runtime/analysis/rules/errors/e300-output-validation-failed.js +44 -0
- package/dist/runtime/analysis/rules/errors/e301-output-explosion.d.ts +39 -0
- package/dist/runtime/analysis/rules/errors/e301-output-explosion.js +36 -0
- package/dist/runtime/analysis/rules/errors/e400-tool-execution-failed.d.ts +38 -0
- package/dist/runtime/analysis/rules/errors/e400-tool-execution-failed.js +37 -0
- package/dist/runtime/analysis/rules/errors/e403-unbounded-execution.d.ts +44 -0
- package/dist/runtime/analysis/rules/errors/e403-unbounded-execution.js +66 -0
- package/dist/runtime/analysis/rules/errors/e500-side-effect-detected.d.ts +39 -0
- package/dist/runtime/analysis/rules/errors/e500-side-effect-detected.js +40 -0
- package/dist/runtime/analysis/rules/errors/e501-hidden-dependency.d.ts +47 -0
- package/dist/runtime/analysis/rules/errors/e501-hidden-dependency.js +46 -0
- package/dist/runtime/analysis/rules/errors/e600-unexpected-test-result.d.ts +65 -0
- package/dist/runtime/analysis/rules/errors/e600-unexpected-test-result.js +109 -0
- package/dist/runtime/analysis/rules/index.d.ts +18 -0
- package/dist/runtime/analysis/rules/index.js +94 -0
- package/dist/runtime/analysis/rules/warnings/w001-implicit-dependency.d.ts +22 -0
- package/dist/runtime/analysis/rules/warnings/w001-implicit-dependency.js +39 -0
- package/dist/runtime/analysis/rules/warnings/w002-free-text-without-normalization.d.ts +24 -0
- package/dist/runtime/analysis/rules/warnings/w002-free-text-without-normalization.js +40 -0
- package/dist/runtime/analysis/rules/warnings/w003-missing-examples.d.ts +22 -0
- package/dist/runtime/analysis/rules/warnings/w003-missing-examples.js +84 -0
- package/dist/runtime/analysis/rules/warnings/w004-overloaded-responsibility.d.ts +23 -0
- package/dist/runtime/analysis/rules/warnings/w004-overloaded-responsibility.js +96 -0
- package/dist/runtime/analysis/rules/warnings/w005-generic-description.d.ts +53 -0
- package/dist/runtime/analysis/rules/warnings/w005-generic-description.js +108 -0
- package/dist/runtime/analysis/rules/warnings/w006-optional-as-required.d.ts +22 -0
- package/dist/runtime/analysis/rules/warnings/w006-optional-as-required.js +44 -0
- package/dist/runtime/analysis/rules/warnings/w007-broad-output-schema.d.ts +23 -0
- package/dist/runtime/analysis/rules/warnings/w007-broad-output-schema.js +37 -0
- package/dist/runtime/analysis/rules/warnings/w008-multiple-entry-points.d.ts +22 -0
- package/dist/runtime/analysis/rules/warnings/w008-multiple-entry-points.js +97 -0
- package/dist/runtime/analysis/rules/warnings/w009-hidden-side-effects.d.ts +23 -0
- package/dist/runtime/analysis/rules/warnings/w009-hidden-side-effects.js +88 -0
- package/dist/runtime/analysis/rules/warnings/w010-output-not-reusable.d.ts +22 -0
- package/dist/runtime/analysis/rules/warnings/w010-output-not-reusable.js +81 -0
- package/dist/runtime/analysis/rules/warnings/w021-weak-schema.d.ts +40 -0
- package/dist/runtime/analysis/rules/warnings/w021-weak-schema.js +32 -0
- package/dist/runtime/analysis/rules/warnings/w022-high-entropy-output.d.ts +39 -0
- package/dist/runtime/analysis/rules/warnings/w022-high-entropy-output.js +36 -0
- package/dist/runtime/analysis/rules/warnings/w023-unstable-defaults.d.ts +38 -0
- package/dist/runtime/analysis/rules/warnings/w023-unstable-defaults.js +36 -0
- package/dist/runtime/analysis/rules/warnings/w100-implicit-dependency.d.ts +22 -0
- package/dist/runtime/analysis/rules/warnings/w100-implicit-dependency.js +89 -0
- package/dist/runtime/analysis/rules/warnings/w101-free-text-without-normalization.d.ts +24 -0
- package/dist/runtime/analysis/rules/warnings/w101-free-text-without-normalization.js +40 -0
- package/dist/runtime/analysis/rules/warnings/w102-missing-examples.d.ts +22 -0
- package/dist/runtime/analysis/rules/warnings/w102-missing-examples.js +76 -0
- package/dist/runtime/analysis/rules/warnings/w103-overloaded-responsibility.d.ts +23 -0
- package/dist/runtime/analysis/rules/warnings/w103-overloaded-responsibility.js +91 -0
- package/dist/runtime/analysis/rules/warnings/w104-generic-description.d.ts +53 -0
- package/dist/runtime/analysis/rules/warnings/w104-generic-description.js +108 -0
- package/dist/runtime/analysis/rules/warnings/w105-optional-as-required.d.ts +22 -0
- package/dist/runtime/analysis/rules/warnings/w105-optional-as-required.js +45 -0
- package/dist/runtime/analysis/rules/warnings/w106-broad-output-schema.d.ts +23 -0
- package/dist/runtime/analysis/rules/warnings/w106-broad-output-schema.js +37 -0
- package/dist/runtime/analysis/rules/warnings/w107-multiple-entry-points.d.ts +22 -0
- package/dist/runtime/analysis/rules/warnings/w107-multiple-entry-points.js +97 -0
- package/dist/runtime/analysis/rules/warnings/w108-hidden-side-effects.d.ts +23 -0
- package/dist/runtime/analysis/rules/warnings/w108-hidden-side-effects.js +94 -0
- package/dist/runtime/analysis/rules/warnings/w109-output-not-reusable.d.ts +22 -0
- package/dist/runtime/analysis/rules/warnings/w109-output-not-reusable.js +63 -0
- package/dist/runtime/analysis/rules/warnings/w110-weak-schema.d.ts +40 -0
- package/dist/runtime/analysis/rules/warnings/w110-weak-schema.js +32 -0
- package/dist/runtime/analysis/rules/warnings/w300-high-entropy-output.d.ts +39 -0
- package/dist/runtime/analysis/rules/warnings/w300-high-entropy-output.js +47 -0
- package/dist/runtime/analysis/rules/warnings/w301-unstable-defaults.d.ts +38 -0
- package/dist/runtime/analysis/rules/warnings/w301-unstable-defaults.js +36 -0
- package/dist/runtime/analysis/strict-mode.d.ts +21 -0
- package/dist/runtime/analysis/strict-mode.js +44 -0
- package/dist/runtime/analysis/types.d.ts +133 -0
- package/dist/runtime/analysis/types.js +6 -0
- package/dist/runtime/analysis/utils.d.ts +19 -0
- package/dist/runtime/analysis/utils.js +21 -0
- package/dist/runtime/dev/data-manager.d.ts +55 -0
- package/dist/runtime/dev/data-manager.js +87 -0
- package/dist/runtime/dev/event-mapper.d.ts +100 -0
- package/dist/runtime/dev/event-mapper.js +400 -0
- package/dist/runtime/dev/formatter.d.ts +94 -0
- package/dist/runtime/dev/formatter.js +236 -0
- package/dist/runtime/dev/index.d.ts +9 -0
- package/dist/runtime/dev/index.js +9 -0
- package/dist/runtime/dev/repl.d.ts +114 -0
- package/dist/runtime/dev/repl.js +310 -0
- package/dist/runtime/dev/session.d.ts +86 -0
- package/dist/runtime/dev/session.js +447 -0
- package/dist/runtime/dev/stack-trace.d.ts +77 -0
- package/dist/runtime/dev/stack-trace.js +286 -0
- package/dist/runtime/dev/types.d.ts +54 -0
- package/dist/runtime/dev/types.js +5 -0
- package/dist/runtime/llm/claude.d.ts +27 -0
- package/dist/runtime/llm/claude.js +150 -0
- package/dist/runtime/llm/factory.d.ts +30 -0
- package/dist/runtime/llm/factory.js +78 -0
- package/dist/runtime/llm/index.d.ts +10 -0
- package/dist/runtime/llm/index.js +10 -0
- package/dist/runtime/llm/ollama.d.ts +45 -0
- package/dist/runtime/llm/ollama.js +449 -0
- package/dist/runtime/llm/openai.d.ts +27 -0
- package/dist/runtime/llm/openai.js +170 -0
- package/dist/runtime/llm/provider.d.ts +32 -0
- package/dist/runtime/llm/provider.js +6 -0
- package/dist/runtime/llm/types.d.ts +55 -0
- package/dist/runtime/llm/types.js +6 -0
- package/dist/runtime/mcp/client/base.d.ts +40 -0
- package/dist/runtime/mcp/client/base.js +157 -0
- package/dist/runtime/mcp/client/manager.d.ts +91 -0
- package/dist/runtime/mcp/client/manager.js +248 -0
- package/dist/runtime/mcp/client/process.d.ts +31 -0
- package/dist/runtime/mcp/client/process.js +82 -0
- package/dist/runtime/mcp/connection.d.ts +63 -0
- package/dist/runtime/mcp/connection.js +449 -0
- package/dist/runtime/mcp/index.d.ts +9 -0
- package/dist/runtime/mcp/index.js +9 -0
- package/dist/runtime/mcp/list.d.ts +50 -0
- package/dist/runtime/mcp/list.js +65 -0
- package/dist/runtime/mcp/stdio-transport.d.ts +23 -0
- package/dist/runtime/mcp/stdio-transport.js +71 -0
- package/dist/runtime/mcp/types.d.ts +85 -0
- package/dist/runtime/mcp/types.js +6 -0
- package/dist/runtime/sandbox/executor.d.ts +102 -0
- package/dist/runtime/sandbox/executor.js +537 -0
- package/dist/runtime/sandbox/index.d.ts +9 -0
- package/dist/runtime/sandbox/index.js +9 -0
- package/dist/runtime/sandbox/io-monitor.d.ts +78 -0
- package/dist/runtime/sandbox/io-monitor.js +98 -0
- package/dist/runtime/sandbox/time-parser.d.ts +19 -0
- package/dist/runtime/sandbox/time-parser.js +67 -0
- package/dist/runtime/sandbox/types.d.ts +58 -0
- package/dist/runtime/sandbox/types.js +23 -0
- package/dist/runtime/test/behavior-observer.d.ts +61 -0
- package/dist/runtime/test/behavior-observer.js +140 -0
- package/dist/runtime/test/contract-loader.d.ts +41 -0
- package/dist/runtime/test/contract-loader.js +158 -0
- package/dist/runtime/test/contract-schema.d.ts +46 -0
- package/dist/runtime/test/contract-schema.js +107 -0
- package/dist/runtime/test/contract-types.d.ts +106 -0
- package/dist/runtime/test/contract-types.js +6 -0
- package/dist/runtime/test/dependency-tracker.d.ts +66 -0
- package/dist/runtime/test/dependency-tracker.js +80 -0
- package/dist/runtime/test/formatters.d.ts +18 -0
- package/dist/runtime/test/formatters.js +172 -0
- package/dist/runtime/test/index.d.ts +12 -0
- package/dist/runtime/test/index.js +13 -0
- package/dist/runtime/test/input-generator.d.ts +33 -0
- package/dist/runtime/test/input-generator.js +498 -0
- package/dist/runtime/test/mcp-root-detector.d.ts +31 -0
- package/dist/runtime/test/mcp-root-detector.js +105 -0
- package/dist/runtime/test/orchestrator.d.ts +131 -0
- package/dist/runtime/test/orchestrator.js +738 -0
- package/dist/runtime/test/output-validator.d.ts +44 -0
- package/dist/runtime/test/output-validator.js +262 -0
- package/dist/runtime/test/retry-tester.d.ts +44 -0
- package/dist/runtime/test/retry-tester.js +103 -0
- package/dist/runtime/test/runner.d.ts +28 -0
- package/dist/runtime/test/runner.js +55 -0
- package/dist/runtime/test/synthetic-input-generator.d.ts +11 -0
- package/dist/runtime/test/synthetic-input-generator.js +154 -0
- package/dist/runtime/test/test-runner.d.ts +28 -0
- package/dist/runtime/test/test-runner.js +55 -0
- package/dist/types/factories.d.ts +16 -0
- package/dist/types/factories.js +43 -0
- package/dist/types/ids.d.ts +16 -0
- package/dist/types/ids.js +2 -0
- package/dist/types/opaque.d.ts +4 -0
- package/dist/types/opaque.js +2 -0
- package/dist/utils/errors.d.ts +92 -0
- package/dist/utils/errors.js +97 -0
- package/dist/utils/gitignore.d.ts +11 -0
- package/dist/utils/gitignore.js +59 -0
- package/dist/utils/json-file-saver.d.ts +17 -0
- package/dist/utils/json-file-saver.js +81 -0
- package/dist/utils/json-formatter.d.ts +63 -0
- package/dist/utils/json-formatter.js +344 -0
- package/dist/utils/logger.d.ts +184 -0
- package/dist/utils/logger.js +330 -0
- package/dist/utils/package-manager.d.ts +30 -0
- package/dist/utils/package-manager.js +157 -0
- package/dist/utils/version-checker.d.ts +47 -0
- package/dist/utils/version-checker.js +167 -0
- package/dist/utils/version-display.d.ts +10 -0
- package/dist/utils/version-display.js +20 -0
- package/package.json +106 -0
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interactive REPL (Read-Eval-Print Loop) for Dev Mode.
|
|
3
|
+
* Provides command-line interface with history, autocomplete, and navigation.
|
|
4
|
+
*/
|
|
5
|
+
import * as readline from 'readline';
|
|
6
|
+
import * as fs from 'fs';
|
|
7
|
+
import * as path from 'path';
|
|
8
|
+
import { log } from '../../utils/logger.js';
|
|
9
|
+
/**
|
|
10
|
+
* REPL special commands.
|
|
11
|
+
*/
|
|
12
|
+
export var REPLCommand;
|
|
13
|
+
(function (REPLCommand) {
|
|
14
|
+
REPLCommand["EXIT"] = "/exit";
|
|
15
|
+
REPLCommand["QUIT"] = "/quit";
|
|
16
|
+
REPLCommand["CLEAR"] = "/clear";
|
|
17
|
+
REPLCommand["HELP"] = "/help";
|
|
18
|
+
REPLCommand["HISTORY"] = "/history";
|
|
19
|
+
REPLCommand["TOOLS"] = "/tools";
|
|
20
|
+
})(REPLCommand || (REPLCommand = {}));
|
|
21
|
+
/**
|
|
22
|
+
* Interactive REPL implementation.
|
|
23
|
+
*/
|
|
24
|
+
export class InteractiveREPL {
|
|
25
|
+
options;
|
|
26
|
+
eventEmitter;
|
|
27
|
+
rl;
|
|
28
|
+
history = [];
|
|
29
|
+
historyIndex = -1;
|
|
30
|
+
currentInput = '';
|
|
31
|
+
maxHistorySize;
|
|
32
|
+
constructor(options = {}, eventEmitter) {
|
|
33
|
+
this.options = options;
|
|
34
|
+
this.eventEmitter = eventEmitter;
|
|
35
|
+
this.maxHistorySize = options.maxHistorySize || 1000;
|
|
36
|
+
this.loadHistory();
|
|
37
|
+
// Create readline interface
|
|
38
|
+
this.rl = readline.createInterface({
|
|
39
|
+
input: process.stdin,
|
|
40
|
+
output: process.stdout,
|
|
41
|
+
prompt: options.prompt || 'User > ',
|
|
42
|
+
completer: this.completer.bind(this),
|
|
43
|
+
});
|
|
44
|
+
// Set up event handlers
|
|
45
|
+
this.setupEventHandlers();
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Start the REPL.
|
|
49
|
+
* @param onInput - Callback for user input
|
|
50
|
+
* @param onClose - Callback for REPL close (can be async)
|
|
51
|
+
*/
|
|
52
|
+
start(onInput, onClose) {
|
|
53
|
+
this.rl.prompt();
|
|
54
|
+
this.rl.on('line', (line) => {
|
|
55
|
+
void (async () => {
|
|
56
|
+
const trimmed = line.trim();
|
|
57
|
+
// Handle empty input
|
|
58
|
+
if (!trimmed) {
|
|
59
|
+
this.rl.prompt();
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
// Handle special commands
|
|
63
|
+
if (trimmed.startsWith('/')) {
|
|
64
|
+
await this.handleSpecialCommand(trimmed, onInput);
|
|
65
|
+
this.rl.prompt();
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
// Add to history
|
|
69
|
+
this.addToHistory(trimmed);
|
|
70
|
+
this.historyIndex = -1;
|
|
71
|
+
this.currentInput = '';
|
|
72
|
+
// Process input
|
|
73
|
+
try {
|
|
74
|
+
await onInput(trimmed);
|
|
75
|
+
}
|
|
76
|
+
catch (error) {
|
|
77
|
+
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
78
|
+
log.blank();
|
|
79
|
+
log.error(`Error: ${errorMessage}`);
|
|
80
|
+
log.blank();
|
|
81
|
+
}
|
|
82
|
+
this.rl.prompt();
|
|
83
|
+
})();
|
|
84
|
+
});
|
|
85
|
+
this.rl.on('close', () => {
|
|
86
|
+
this.saveHistory();
|
|
87
|
+
// Wait for cleanup before exiting
|
|
88
|
+
void (async () => {
|
|
89
|
+
if (onClose) {
|
|
90
|
+
await onClose();
|
|
91
|
+
}
|
|
92
|
+
log.blank();
|
|
93
|
+
log.plain('Goodbye!');
|
|
94
|
+
process.exit(0);
|
|
95
|
+
})();
|
|
96
|
+
});
|
|
97
|
+
// Note: SIGINT handling is done by the parent (dev.ts)
|
|
98
|
+
// We don't handle it here to allow proper cleanup
|
|
99
|
+
// Load history into readline (for arrow key navigation)
|
|
100
|
+
this.loadHistoryIntoReadline();
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Load history into readline for arrow key navigation.
|
|
104
|
+
*/
|
|
105
|
+
loadHistoryIntoReadline() {
|
|
106
|
+
// readline automatically handles history with arrow keys
|
|
107
|
+
// We can add our history to it
|
|
108
|
+
if (this.rl && 'history' in this.rl) {
|
|
109
|
+
const rlHistory = this.rl.history;
|
|
110
|
+
rlHistory.push(...this.history);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Stop the REPL.
|
|
115
|
+
*/
|
|
116
|
+
stop() {
|
|
117
|
+
this.saveHistory();
|
|
118
|
+
this.rl.close();
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Set a new prompt.
|
|
122
|
+
*/
|
|
123
|
+
setPrompt(prompt) {
|
|
124
|
+
this.rl.setPrompt(prompt);
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Write output to the console.
|
|
128
|
+
*/
|
|
129
|
+
write(message) {
|
|
130
|
+
process.stdout.write(message);
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Write a line to the console.
|
|
134
|
+
*/
|
|
135
|
+
writeLine(message) {
|
|
136
|
+
log.plain(message);
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Clear the current line.
|
|
140
|
+
*/
|
|
141
|
+
clearLine() {
|
|
142
|
+
readline.clearLine(process.stdout, 0);
|
|
143
|
+
readline.cursorTo(process.stdout, 0);
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Get history.
|
|
147
|
+
*/
|
|
148
|
+
getHistory() {
|
|
149
|
+
return [...this.history];
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Clear history.
|
|
153
|
+
*/
|
|
154
|
+
clearHistory() {
|
|
155
|
+
this.history = [];
|
|
156
|
+
this.historyIndex = -1;
|
|
157
|
+
if (this.options.saveHistory && this.options.historyFile) {
|
|
158
|
+
try {
|
|
159
|
+
fs.unlinkSync(this.options.historyFile);
|
|
160
|
+
}
|
|
161
|
+
catch {
|
|
162
|
+
// Ignore errors
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Setup event handlers for history navigation.
|
|
168
|
+
* Note: readline handles arrow keys automatically, but we can enhance it.
|
|
169
|
+
*/
|
|
170
|
+
setupEventHandlers() {
|
|
171
|
+
// The readline interface handles arrow keys automatically
|
|
172
|
+
// We just need to track the current input for restoration
|
|
173
|
+
this.rl.on('line', () => {
|
|
174
|
+
this.currentInput = '';
|
|
175
|
+
this.historyIndex = -1;
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Handle special REPL commands.
|
|
180
|
+
*/
|
|
181
|
+
async handleSpecialCommand(command, onInput) {
|
|
182
|
+
const parts = command.split(/\s+/);
|
|
183
|
+
const cmd = parts[0]?.toLowerCase();
|
|
184
|
+
switch (cmd) {
|
|
185
|
+
case REPLCommand.EXIT:
|
|
186
|
+
case REPLCommand.QUIT:
|
|
187
|
+
this.stop();
|
|
188
|
+
break;
|
|
189
|
+
case REPLCommand.CLEAR:
|
|
190
|
+
// Clear console (ANSI escape code)
|
|
191
|
+
process.stdout.write('\x1B[2J\x1B[0f');
|
|
192
|
+
break;
|
|
193
|
+
case REPLCommand.HELP:
|
|
194
|
+
this.showHelp();
|
|
195
|
+
break;
|
|
196
|
+
case REPLCommand.HISTORY:
|
|
197
|
+
this.showHistory();
|
|
198
|
+
break;
|
|
199
|
+
case REPLCommand.TOOLS:
|
|
200
|
+
// This will be handled by the dev session
|
|
201
|
+
await onInput(command);
|
|
202
|
+
break;
|
|
203
|
+
default:
|
|
204
|
+
log.plain(`Unknown command: ${cmd}. Type /help for available commands.`);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Show help message.
|
|
209
|
+
*/
|
|
210
|
+
showHelp() {
|
|
211
|
+
log.blank();
|
|
212
|
+
log.plain('Available commands:');
|
|
213
|
+
log.plain(' /exit, /quit - Exit dev mode');
|
|
214
|
+
log.plain(' /clear - Clear the console');
|
|
215
|
+
log.plain(' /help - Show this help message');
|
|
216
|
+
log.plain(' /history - Show command history');
|
|
217
|
+
log.plain(' /tools - List available tools');
|
|
218
|
+
log.blank();
|
|
219
|
+
log.plain('Navigation:');
|
|
220
|
+
log.plain(' ↑/↓ Arrow keys - Navigate command history');
|
|
221
|
+
log.plain(' Ctrl+C - Interrupt (use /exit to quit)');
|
|
222
|
+
log.blank();
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Show command history.
|
|
226
|
+
*/
|
|
227
|
+
showHistory() {
|
|
228
|
+
if (this.history.length === 0) {
|
|
229
|
+
log.plain('No history yet.');
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
log.blank();
|
|
233
|
+
log.plain('Command History:');
|
|
234
|
+
const recentHistory = this.history.slice(-20); // Show last 20
|
|
235
|
+
recentHistory.forEach((cmd, index) => {
|
|
236
|
+
log.plain(` ${index + 1}. ${cmd}`);
|
|
237
|
+
});
|
|
238
|
+
log.blank();
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* Add input to history.
|
|
242
|
+
*/
|
|
243
|
+
addToHistory(input) {
|
|
244
|
+
// Don't add empty lines or duplicates of the last command
|
|
245
|
+
if (!input ||
|
|
246
|
+
(this.history.length > 0 &&
|
|
247
|
+
this.history[this.history.length - 1] === input)) {
|
|
248
|
+
return;
|
|
249
|
+
}
|
|
250
|
+
this.history.push(input);
|
|
251
|
+
// Limit history size
|
|
252
|
+
if (this.history.length > this.maxHistorySize) {
|
|
253
|
+
this.history.shift();
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Load history from file.
|
|
258
|
+
*/
|
|
259
|
+
loadHistory() {
|
|
260
|
+
if (!this.options.saveHistory || !this.options.historyFile) {
|
|
261
|
+
return;
|
|
262
|
+
}
|
|
263
|
+
try {
|
|
264
|
+
if (fs.existsSync(this.options.historyFile)) {
|
|
265
|
+
const content = fs.readFileSync(this.options.historyFile, 'utf-8');
|
|
266
|
+
this.history = content
|
|
267
|
+
.split('\n')
|
|
268
|
+
.filter(line => line.trim())
|
|
269
|
+
.slice(-this.maxHistorySize); // Only keep last N entries
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
catch {
|
|
273
|
+
// Ignore errors loading history
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* Save history to file.
|
|
278
|
+
*/
|
|
279
|
+
saveHistory() {
|
|
280
|
+
if (!this.options.saveHistory || !this.options.historyFile) {
|
|
281
|
+
return;
|
|
282
|
+
}
|
|
283
|
+
try {
|
|
284
|
+
const dir = path.dirname(this.options.historyFile);
|
|
285
|
+
if (!fs.existsSync(dir)) {
|
|
286
|
+
fs.mkdirSync(dir, { recursive: true });
|
|
287
|
+
}
|
|
288
|
+
fs.writeFileSync(this.options.historyFile, this.history.join('\n') + '\n', 'utf-8');
|
|
289
|
+
}
|
|
290
|
+
catch {
|
|
291
|
+
// Ignore errors saving history
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* Completer function for tab completion.
|
|
296
|
+
*/
|
|
297
|
+
completer(line) {
|
|
298
|
+
const completions = [
|
|
299
|
+
'/exit',
|
|
300
|
+
'/quit',
|
|
301
|
+
'/clear',
|
|
302
|
+
'/help',
|
|
303
|
+
'/history',
|
|
304
|
+
'/tools',
|
|
305
|
+
];
|
|
306
|
+
const hits = completions.filter(c => c.startsWith(line));
|
|
307
|
+
return [hits.length ? hits : completions, line];
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
//# sourceMappingURL=repl.js.map
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dev Mode Session.
|
|
3
|
+
* Orchestrates LLM-MCP interactions with event emission.
|
|
4
|
+
*/
|
|
5
|
+
import type { DevSessionConfig, DevSessionState, ToolCallInfo } from './types.js';
|
|
6
|
+
import type { ToolDefinition } from '../../runtime/llm/types.js';
|
|
7
|
+
import { DataManager } from './data-manager.js';
|
|
8
|
+
/**
|
|
9
|
+
* Dev Mode Session implementation.
|
|
10
|
+
*/
|
|
11
|
+
export declare class DevSession {
|
|
12
|
+
private readonly config;
|
|
13
|
+
private state;
|
|
14
|
+
private availableTools;
|
|
15
|
+
private currentPromptId;
|
|
16
|
+
private dataManager;
|
|
17
|
+
private readonly MAX_HISTORY_LENGTH;
|
|
18
|
+
private readonly MAX_MESSAGE_SIZE;
|
|
19
|
+
constructor(config: DevSessionConfig);
|
|
20
|
+
/**
|
|
21
|
+
* Initialize the session.
|
|
22
|
+
* Loads available tools and emits session started event.
|
|
23
|
+
*/
|
|
24
|
+
initialize(): Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* Add user message to conversation history without processing.
|
|
27
|
+
* Useful for special commands that don't need LLM processing.
|
|
28
|
+
*/
|
|
29
|
+
addUserMessageToHistory(userInput: string): void;
|
|
30
|
+
/**
|
|
31
|
+
* Process user input.
|
|
32
|
+
* This is the main entry point for handling user messages.
|
|
33
|
+
*/
|
|
34
|
+
processUserInput(userInput: string): Promise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* Process the conversation.
|
|
37
|
+
* Handles LLM calls and tool execution in a loop until final response.
|
|
38
|
+
*/
|
|
39
|
+
private processConversation;
|
|
40
|
+
/**
|
|
41
|
+
* Build LLM context from conversation history and available tools.
|
|
42
|
+
* Truncates history to prevent context from growing too large.
|
|
43
|
+
*/
|
|
44
|
+
private buildLLMContext;
|
|
45
|
+
/**
|
|
46
|
+
* Process tool calls from LLM.
|
|
47
|
+
*/
|
|
48
|
+
private processToolCalls;
|
|
49
|
+
/**
|
|
50
|
+
* Validate a tool call.
|
|
51
|
+
*/
|
|
52
|
+
private validateToolCall;
|
|
53
|
+
/**
|
|
54
|
+
* Build prompt after tool execution.
|
|
55
|
+
*/
|
|
56
|
+
private buildPostToolPrompt;
|
|
57
|
+
/**
|
|
58
|
+
* Get session state.
|
|
59
|
+
*/
|
|
60
|
+
getState(): DevSessionState;
|
|
61
|
+
/**
|
|
62
|
+
* Get available tools.
|
|
63
|
+
*/
|
|
64
|
+
getAvailableTools(): ToolDefinition[];
|
|
65
|
+
/**
|
|
66
|
+
* Complete the session.
|
|
67
|
+
*/
|
|
68
|
+
complete(): Promise<void>;
|
|
69
|
+
/**
|
|
70
|
+
* Halt the session due to error.
|
|
71
|
+
*/
|
|
72
|
+
halt(reason: string, errorCode?: string): Promise<void>;
|
|
73
|
+
/**
|
|
74
|
+
* Clear conversation history.
|
|
75
|
+
*/
|
|
76
|
+
clearHistory(): void;
|
|
77
|
+
/**
|
|
78
|
+
* Get tool result (loads from file if large data was externalized).
|
|
79
|
+
*/
|
|
80
|
+
getToolResult(toolCallInfo: ToolCallInfo): unknown;
|
|
81
|
+
/**
|
|
82
|
+
* Get the data manager instance.
|
|
83
|
+
*/
|
|
84
|
+
getDataManager(): DataManager;
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=session.d.ts.map
|