sqlew 4.3.0 → 5.0.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/CHANGELOG.md +95 -0
- package/LICENSE +1 -1
- package/NOTICE +2 -2
- package/README.md +338 -269
- package/assets/claude-md-snippets/plan-mode-integration.md +104 -48
- package/assets/claude-md-snippets/queue-monitoring.md +84 -0
- package/dist/backend/backend-factory.d.ts +67 -0
- package/dist/backend/backend-factory.d.ts.map +1 -0
- package/dist/backend/backend-factory.js +171 -0
- package/dist/backend/backend-factory.js.map +1 -0
- package/dist/backend/index.d.ts +12 -0
- package/dist/backend/index.d.ts.map +1 -0
- package/dist/backend/index.js +13 -0
- package/dist/backend/index.js.map +1 -0
- package/dist/backend/inference.d.ts +38 -0
- package/dist/backend/inference.d.ts.map +1 -0
- package/dist/backend/inference.js +76 -0
- package/dist/backend/inference.js.map +1 -0
- package/dist/backend/local-backend.d.ts +40 -0
- package/dist/backend/local-backend.d.ts.map +1 -0
- package/dist/backend/local-backend.js +410 -0
- package/dist/backend/local-backend.js.map +1 -0
- package/dist/backend/transforming-backend.d.ts +47 -0
- package/dist/backend/transforming-backend.d.ts.map +1 -0
- package/dist/backend/transforming-backend.js +80 -0
- package/dist/backend/transforming-backend.js.map +1 -0
- package/dist/backend/types.d.ts +58 -0
- package/dist/backend/types.d.ts.map +1 -0
- package/dist/backend/types.js +7 -0
- package/dist/backend/types.js.map +1 -0
- package/dist/cli/db-dump.js +45 -45
- package/dist/cli/db-dump.js.map +1 -1
- package/dist/cli/db-export.js +30 -30
- package/dist/cli/db-export.js.map +1 -1
- package/dist/cli/db-import.d.ts.map +1 -1
- package/dist/cli/db-import.js +32 -33
- package/dist/cli/db-import.js.map +1 -1
- package/dist/cli/hooks/check-completion.d.ts +1 -0
- package/dist/cli/hooks/check-completion.d.ts.map +1 -1
- package/dist/cli/hooks/check-completion.js +15 -26
- package/dist/cli/hooks/check-completion.js.map +1 -1
- package/dist/cli/hooks/mark-done.d.ts +1 -0
- package/dist/cli/hooks/mark-done.d.ts.map +1 -1
- package/dist/cli/hooks/mark-done.js +12 -17
- package/dist/cli/hooks/mark-done.js.map +1 -1
- package/dist/cli/hooks/on-enter-plan.js +2 -2
- package/dist/cli/hooks/on-enter-plan.js.map +1 -1
- package/dist/cli/hooks/on-session-start.d.ts +23 -0
- package/dist/cli/hooks/on-session-start.d.ts.map +1 -0
- package/dist/cli/hooks/on-session-start.js +70 -0
- package/dist/cli/hooks/on-session-start.js.map +1 -0
- package/dist/cli/hooks/on-stop.js +5 -5
- package/dist/cli/hooks/on-stop.js.map +1 -1
- package/dist/cli/hooks/{plan-toml-parser.d.ts → plan-parser.d.ts} +1 -1
- package/dist/cli/hooks/plan-parser.d.ts.map +1 -0
- package/dist/cli/hooks/{plan-toml-parser.js → plan-parser.js} +1 -1
- package/dist/cli/hooks/plan-parser.js.map +1 -0
- package/dist/cli/hooks/plan-pattern-extractor.d.ts.map +1 -1
- package/dist/cli/hooks/plan-pattern-extractor.js +6 -3
- package/dist/cli/hooks/plan-pattern-extractor.js.map +1 -1
- package/dist/cli/hooks/plan-processor.js +1 -1
- package/dist/cli/hooks/plan-processor.js.map +1 -1
- package/dist/cli/hooks/stdin-parser.d.ts +4 -0
- package/dist/cli/hooks/stdin-parser.d.ts.map +1 -1
- package/dist/cli/hooks/stdin-parser.js.map +1 -1
- package/dist/cli/hooks/suggest.js +2 -2
- package/dist/cli/hooks/suggest.js.map +1 -1
- package/dist/cli/hooks/track-plan.d.ts.map +1 -1
- package/dist/cli/hooks/track-plan.js +24 -18
- package/dist/cli/hooks/track-plan.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +108 -108
- package/dist/cli.js.map +1 -1
- package/dist/config/cloud-config-loader.d.ts +107 -0
- package/dist/config/cloud-config-loader.d.ts.map +1 -0
- package/dist/config/cloud-config-loader.js +273 -0
- package/dist/config/cloud-config-loader.js.map +1 -0
- package/dist/config/global-config.d.ts +10 -10
- package/dist/config/global-config.d.ts.map +1 -1
- package/dist/config/global-config.js +12 -12
- package/dist/config/global-config.js.map +1 -1
- package/dist/config/loader.d.ts.map +1 -1
- package/dist/config/loader.js +5 -1
- package/dist/config/loader.js.map +1 -1
- package/dist/config/minimal-generator.d.ts.map +1 -1
- package/dist/config/minimal-generator.js +22 -72
- package/dist/config/minimal-generator.js.map +1 -1
- package/dist/config/types.d.ts +59 -1
- package/dist/config/types.d.ts.map +1 -1
- package/dist/config/types.js +14 -0
- package/dist/config/types.js.map +1 -1
- package/dist/constants.d.ts +1 -29
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +1 -38
- package/dist/constants.js.map +1 -1
- package/dist/database/initialization/cleanup.d.ts.map +1 -1
- package/dist/database/initialization/cleanup.js +0 -13
- package/dist/database/initialization/cleanup.js.map +1 -1
- package/dist/database/initialization/init.d.ts.map +1 -1
- package/dist/database/initialization/init.js +0 -9
- package/dist/database/initialization/init.js.map +1 -1
- package/dist/database/initialization/schema-version.d.ts +4 -4
- package/dist/database/initialization/schema-version.js +9 -9
- package/dist/database/initialization/schema-version.js.map +1 -1
- package/dist/database/migrations/v4/20260107000000_v5_drop_task_file_tables.d.ts +36 -0
- package/dist/database/migrations/v4/20260107000000_v5_drop_task_file_tables.d.ts.map +1 -0
- package/dist/database/migrations/v4/20260107000000_v5_drop_task_file_tables.js +135 -0
- package/dist/database/migrations/v4/20260107000000_v5_drop_task_file_tables.js.map +1 -0
- package/dist/database/migrations/v4/20260107000001_v5_drop_legacy_tables.d.ts +20 -0
- package/dist/database/migrations/v4/20260107000001_v5_drop_legacy_tables.d.ts.map +1 -0
- package/dist/database/migrations/v4/20260107000001_v5_drop_legacy_tables.js +168 -0
- package/dist/database/migrations/v4/20260107000001_v5_drop_legacy_tables.js.map +1 -0
- package/dist/database/migrations/v4/20260108000000_v5_rename_to_m_t_prefix.d.ts +23 -0
- package/dist/database/migrations/v4/20260108000000_v5_rename_to_m_t_prefix.d.ts.map +1 -0
- package/dist/database/migrations/v4/20260108000000_v5_rename_to_m_t_prefix.js +570 -0
- package/dist/database/migrations/v4/20260108000000_v5_rename_to_m_t_prefix.js.map +1 -0
- package/dist/database/migrations/v4/20260109000000_v5_drop_help_tables.d.ts +29 -0
- package/dist/database/migrations/v4/20260109000000_v5_drop_help_tables.d.ts.map +1 -0
- package/dist/database/migrations/v4/20260109000000_v5_drop_help_tables.js +80 -0
- package/dist/database/migrations/v4/20260109000000_v5_drop_help_tables.js.map +1 -0
- package/dist/database/operations/inserts.js +11 -11
- package/dist/database/operations/inserts.js.map +1 -1
- package/dist/database/operations/queries.js +9 -9
- package/dist/database/operations/queries.js.map +1 -1
- package/dist/formatters/adr-formatter.d.ts +22 -0
- package/dist/formatters/adr-formatter.d.ts.map +1 -0
- package/dist/formatters/adr-formatter.js +127 -0
- package/dist/formatters/adr-formatter.js.map +1 -0
- package/dist/formatters/confluence-formatter.d.ts +26 -0
- package/dist/formatters/confluence-formatter.d.ts.map +1 -0
- package/dist/formatters/confluence-formatter.js +129 -0
- package/dist/formatters/confluence-formatter.js.map +1 -0
- package/dist/formatters/index.d.ts +34 -0
- package/dist/formatters/index.d.ts.map +1 -0
- package/dist/formatters/index.js +57 -0
- package/dist/formatters/index.js.map +1 -0
- package/dist/formatters/markdown-formatter.d.ts +16 -0
- package/dist/formatters/markdown-formatter.d.ts.map +1 -0
- package/dist/formatters/markdown-formatter.js +110 -0
- package/dist/formatters/markdown-formatter.js.map +1 -0
- package/dist/formatters/notion-formatter.d.ts +29 -0
- package/dist/formatters/notion-formatter.d.ts.map +1 -0
- package/dist/formatters/notion-formatter.js +177 -0
- package/dist/formatters/notion-formatter.js.map +1 -0
- package/dist/formatters/types.d.ts +31 -0
- package/dist/formatters/types.d.ts.map +1 -0
- package/dist/formatters/types.js +6 -0
- package/dist/formatters/types.js.map +1 -0
- package/dist/help-data/_schema.toml +21 -0
- package/dist/help-data/constraint.toml +259 -0
- package/dist/help-data/decision.toml +833 -0
- package/dist/help-data/example.toml +177 -0
- package/dist/help-data/help.toml +246 -0
- package/dist/help-data/queue.toml +134 -0
- package/dist/help-data/suggest.toml +219 -0
- package/dist/help-data/use-cases/_categories.toml +22 -0
- package/dist/help-data/use-cases/constraint-basic.toml +34 -0
- package/dist/help-data/use-cases/cross-tool-workflow.toml +50 -0
- package/dist/help-data/use-cases/decision-intelligence-duplicate.toml +35 -0
- package/dist/help-data/use-cases/decision-intelligence-related.toml +35 -0
- package/dist/help-data/use-cases/decision-tracking-basic.toml +42 -0
- package/dist/help-data/use-cases/decision-tracking-versions.toml +42 -0
- package/dist/help-data/use_case.toml +147 -0
- package/dist/help-loader.d.ts +194 -0
- package/dist/help-loader.d.ts.map +1 -0
- package/dist/help-loader.js +419 -0
- package/dist/help-loader.js.map +1 -0
- package/dist/index.js +15 -10
- package/dist/index.js.map +1 -1
- package/dist/init-rules.d.ts +42 -0
- package/dist/init-rules.d.ts.map +1 -0
- package/dist/init-rules.js +217 -0
- package/dist/init-rules.js.map +1 -0
- package/dist/schema.d.ts +4 -6
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +28 -45
- package/dist/schema.js.map +1 -1
- package/dist/server/setup.d.ts +0 -10
- package/dist/server/setup.d.ts.map +1 -1
- package/dist/server/setup.js +97 -89
- package/dist/server/setup.js.map +1 -1
- package/dist/server/shutdown.d.ts +1 -1
- package/dist/server/shutdown.d.ts.map +1 -1
- package/dist/server/shutdown.js +1 -16
- package/dist/server/shutdown.js.map +1 -1
- package/dist/server/tool-handlers.d.ts +15 -0
- package/dist/server/tool-handlers.d.ts.map +1 -1
- package/dist/server/tool-handlers.js +47 -462
- package/dist/server/tool-handlers.js.map +1 -1
- package/dist/server/tool-registry.d.ts.map +1 -1
- package/dist/server/tool-registry.js +50 -62
- package/dist/server/tool-registry.js.map +1 -1
- package/dist/tests/backend/backend-factory.test.d.ts +7 -0
- package/dist/tests/backend/backend-factory.test.d.ts.map +1 -0
- package/dist/tests/backend/backend-factory.test.js +157 -0
- package/dist/tests/backend/backend-factory.test.js.map +1 -0
- package/dist/tests/backend/inference.test.d.ts +7 -0
- package/dist/tests/backend/inference.test.d.ts.map +1 -0
- package/dist/tests/backend/inference.test.js +142 -0
- package/dist/tests/backend/inference.test.js.map +1 -0
- package/dist/tests/database/multi-project/multi-project.test.js +9 -70
- package/dist/tests/database/multi-project/multi-project.test.js.map +1 -1
- package/dist/tests/database/sql-dump/table-ordering.test.js +14 -14
- package/dist/tests/database/sql-dump/table-ordering.test.js.map +1 -1
- package/dist/tests/docker/cross-database.test.js +32 -32
- package/dist/tests/docker/cross-database.test.js.map +1 -1
- package/dist/tests/docker/dump-import.test.js +55 -55
- package/dist/tests/docker/dump-import.test.js.map +1 -1
- package/dist/tests/docker/fk-constraints.test.js +3 -3
- package/dist/tests/docker/indexes.test.js +34 -34
- package/dist/tests/docker/integration.test.js +33 -33
- package/dist/tests/docker/multi-project-migration.test.js +47 -47
- package/dist/tests/docker/multi-project-migration.test.js.map +1 -1
- package/dist/tests/docker/native/constraint-operations.test.js +49 -49
- package/dist/tests/docker/native/constraint-operations.test.js.map +1 -1
- package/dist/tests/docker/native/db-init.d.ts +3 -1
- package/dist/tests/docker/native/db-init.d.ts.map +1 -1
- package/dist/tests/docker/native/db-init.js +14 -12
- package/dist/tests/docker/native/db-init.js.map +1 -1
- package/dist/tests/docker/native/decision-operations.test.js +91 -91
- package/dist/tests/docker/native/decision-operations.test.js.map +1 -1
- package/dist/tests/docker/native/help-system.test.d.ts +2 -2
- package/dist/tests/docker/native/help-system.test.js +113 -138
- package/dist/tests/docker/native/help-system.test.js.map +1 -1
- package/dist/tests/docker/native/suggest-tool.test.d.ts +2 -2
- package/dist/tests/docker/native/suggest-tool.test.js +35 -35
- package/dist/tests/docker/native/suggest-tool.test.js.map +1 -1
- package/dist/tests/docker/native/test-harness.d.ts +6 -12
- package/dist/tests/docker/native/test-harness.d.ts.map +1 -1
- package/dist/tests/docker/native/test-harness.js +74 -156
- package/dist/tests/docker/native/test-harness.js.map +1 -1
- package/dist/tests/docker/schema-migration.test.js +6 -6
- package/dist/tests/feature/decision/batch-validation-comprehensive.test.d.ts +3 -7
- package/dist/tests/feature/decision/batch-validation-comprehensive.test.d.ts.map +1 -1
- package/dist/tests/feature/decision/batch-validation-comprehensive.test.js +7 -318
- package/dist/tests/feature/decision/batch-validation-comprehensive.test.js.map +1 -1
- package/dist/tests/feature/help/help-system.test.d.ts +6 -6
- package/dist/tests/feature/help/help-system.test.js +166 -124
- package/dist/tests/feature/help/help-system.test.js.map +1 -1
- package/dist/tests/integration/auto-trigger-suggestions.test.js +22 -22
- package/dist/tests/integration/auto-trigger-suggestions.test.js.map +1 -1
- package/dist/tests/integration/decision-intelligence-e2e.test.js +23 -22
- package/dist/tests/integration/decision-intelligence-e2e.test.js.map +1 -1
- package/dist/tests/integration/e2e-workflow1-debug.test.js +3 -3
- package/dist/tests/integration/e2e-workflow1-debug.test.js.map +1 -1
- package/dist/tests/integration/hybrid-similarity-detection.test.js +25 -25
- package/dist/tests/integration/hybrid-similarity-detection.test.js.map +1 -1
- package/dist/tests/integration/suggest-simple.test.js +18 -0
- package/dist/tests/integration/suggest-simple.test.js.map +1 -1
- package/dist/tests/migrations/test-all-versions.js +212 -212
- package/dist/tests/migrations/test-all-versions.js.map +1 -1
- package/dist/tests/migrations/v4/v4-fresh-install.test.js +29 -29
- package/dist/tests/migrations/v4/v4-fresh-install.test.js.map +1 -1
- package/dist/tests/migrations/v4/v4-migrate-data.test.js +20 -20
- package/dist/tests/migrations/v4/v4-migrate-data.test.js.map +1 -1
- package/dist/tests/test-v4-native-rdbms.js +20 -20
- package/dist/tests/test-v4-native-rdbms.js.map +1 -1
- package/dist/tests/unit/config/cloud-config-loader.test.d.ts +2 -0
- package/dist/tests/unit/config/cloud-config-loader.test.d.ts.map +1 -0
- package/dist/tests/unit/config/cloud-config-loader.test.js +103 -0
- package/dist/tests/unit/config/cloud-config-loader.test.js.map +1 -0
- package/dist/tests/unit/config/{plan-toml-cache.test.d.ts → plan-cache.test.d.ts} +1 -1
- package/dist/tests/unit/config/plan-cache.test.d.ts.map +1 -0
- package/dist/tests/unit/config/{plan-toml-cache.test.js → plan-cache.test.js} +32 -32
- package/dist/tests/unit/config/plan-cache.test.js.map +1 -0
- package/dist/tests/unit/hooks/{plan-toml-parser.test.d.ts → plan-parser.test.d.ts} +1 -1
- package/dist/tests/unit/hooks/plan-parser.test.d.ts.map +1 -0
- package/dist/tests/unit/hooks/{plan-toml-parser.test.js → plan-parser.test.js} +179 -179
- package/dist/tests/unit/hooks/plan-parser.test.js.map +1 -0
- package/dist/tests/unit/server/tool-handlers.test.d.ts +7 -0
- package/dist/tests/unit/server/tool-handlers.test.d.ts.map +1 -0
- package/dist/tests/unit/server/tool-handlers.test.js +76 -0
- package/dist/tests/unit/server/tool-handlers.test.js.map +1 -0
- package/dist/tests/unit/utils/config-loader.test.js +17 -17
- package/dist/tests/unit/utils/connection-hash.test.d.ts +2 -0
- package/dist/tests/unit/utils/connection-hash.test.d.ts.map +1 -0
- package/dist/tests/unit/utils/connection-hash.test.js +57 -0
- package/dist/tests/unit/utils/connection-hash.test.js.map +1 -0
- package/dist/tests/unit/utils/environment-detector.test.d.ts +2 -0
- package/dist/tests/unit/utils/environment-detector.test.d.ts.map +1 -0
- package/dist/tests/unit/utils/environment-detector.test.js +43 -0
- package/dist/tests/unit/utils/environment-detector.test.js.map +1 -0
- package/dist/tests/unit/utils/path-utils.test.d.ts +2 -0
- package/dist/tests/unit/utils/path-utils.test.d.ts.map +1 -0
- package/dist/tests/unit/utils/path-utils.test.js +72 -0
- package/dist/tests/unit/utils/path-utils.test.js.map +1 -0
- package/dist/tests/unit/utils/project-detector.test.js +14 -13
- package/dist/tests/unit/utils/project-detector.test.js.map +1 -1
- package/dist/tests/unit/validation/parameter-validation.test.d.ts +2 -1
- package/dist/tests/unit/validation/parameter-validation.test.d.ts.map +1 -1
- package/dist/tests/unit/validation/parameter-validation.test.js +5 -133
- package/dist/tests/unit/validation/parameter-validation.test.js.map +1 -1
- package/dist/tests/unit/validation/policy-validation.test.js +15 -15
- package/dist/tests/unit/validation/policy-validation.test.js.map +1 -1
- package/dist/tests/utils/db-schema.js +48 -48
- package/dist/tests/utils/db-seeding.js +11 -11
- package/dist/tests/utils/db-seeding.js.map +1 -1
- package/dist/tests/utils/json-export-import.test.d.ts +6 -0
- package/dist/tests/utils/json-export-import.test.d.ts.map +1 -0
- package/dist/tests/utils/json-export-import.test.js +474 -0
- package/dist/tests/utils/json-export-import.test.js.map +1 -0
- package/dist/tests/utils/test-helpers.js +59 -59
- package/dist/tests/utils/test-helpers.js.map +1 -1
- package/dist/tools/constraints/actions/activate.d.ts +2 -2
- package/dist/tools/constraints/actions/activate.d.ts.map +1 -1
- package/dist/tools/constraints/actions/activate.js +12 -12
- package/dist/tools/constraints/actions/activate.js.map +1 -1
- package/dist/tools/constraints/actions/add.js +3 -3
- package/dist/tools/constraints/actions/add.js.map +1 -1
- package/dist/tools/constraints/actions/deactivate.js +6 -6
- package/dist/tools/constraints/actions/deactivate.js.map +1 -1
- package/dist/tools/constraints/actions/get.d.ts +2 -2
- package/dist/tools/constraints/actions/get.js +9 -9
- package/dist/tools/constraints/actions/get.js.map +1 -1
- package/dist/tools/constraints/actions/suggest-pending.js +2 -2
- package/dist/tools/constraints/actions/suggest-pending.js.map +1 -1
- package/dist/tools/constraints/index.d.ts +1 -1
- package/dist/tools/constraints/index.d.ts.map +1 -1
- package/dist/tools/constraints/index.js +1 -1
- package/dist/tools/constraints/index.js.map +1 -1
- package/dist/tools/context/actions/create-policy.js +3 -3
- package/dist/tools/context/actions/create-policy.js.map +1 -1
- package/dist/tools/context/actions/create-template.js +2 -2
- package/dist/tools/context/actions/create-template.js.map +1 -1
- package/dist/tools/context/actions/export.d.ts +35 -0
- package/dist/tools/context/actions/export.d.ts.map +1 -0
- package/dist/tools/context/actions/export.js +93 -0
- package/dist/tools/context/actions/export.js.map +1 -0
- package/dist/tools/context/actions/hard-delete.js +11 -11
- package/dist/tools/context/actions/hard-delete.js.map +1 -1
- package/dist/tools/context/actions/has-updates.d.ts +1 -1
- package/dist/tools/context/actions/has-updates.d.ts.map +1 -1
- package/dist/tools/context/actions/has-updates.js +5 -17
- package/dist/tools/context/actions/has-updates.js.map +1 -1
- package/dist/tools/context/actions/list-policies.js +1 -1
- package/dist/tools/context/actions/list-policies.js.map +1 -1
- package/dist/tools/context/actions/list-templates.js +2 -2
- package/dist/tools/context/actions/list-templates.js.map +1 -1
- package/dist/tools/context/actions/list.js +1 -1
- package/dist/tools/context/actions/list.js.map +1 -1
- package/dist/tools/context/actions/search-layer.js +8 -8
- package/dist/tools/context/actions/search-layer.js.map +1 -1
- package/dist/tools/context/actions/set-from-policy.js +1 -1
- package/dist/tools/context/actions/set-from-policy.js.map +1 -1
- package/dist/tools/context/actions/set-from-template.js +2 -2
- package/dist/tools/context/actions/set-from-template.js.map +1 -1
- package/dist/tools/context/actions/versions.js +3 -3
- package/dist/tools/context/actions/versions.js.map +1 -1
- package/dist/tools/context/index.d.ts +1 -0
- package/dist/tools/context/index.d.ts.map +1 -1
- package/dist/tools/context/index.js +2 -0
- package/dist/tools/context/index.js.map +1 -1
- package/dist/tools/context/internal/queries.d.ts.map +1 -1
- package/dist/tools/context/internal/queries.js +54 -43
- package/dist/tools/context/internal/queries.js.map +1 -1
- package/dist/tools/context/types.d.ts +1 -1
- package/dist/tools/context/types.d.ts.map +1 -1
- package/dist/tools/example/actions/get.d.ts +8 -3
- package/dist/tools/example/actions/get.d.ts.map +1 -1
- package/dist/tools/example/actions/get.js +29 -30
- package/dist/tools/example/actions/get.js.map +1 -1
- package/dist/tools/example/actions/list-all.d.ts +8 -2
- package/dist/tools/example/actions/list-all.d.ts.map +1 -1
- package/dist/tools/example/actions/list-all.js +37 -29
- package/dist/tools/example/actions/list-all.js.map +1 -1
- package/dist/tools/example/actions/search.d.ts +8 -3
- package/dist/tools/example/actions/search.d.ts.map +1 -1
- package/dist/tools/example/actions/search.js +29 -43
- package/dist/tools/example/actions/search.js.map +1 -1
- package/dist/tools/help/actions/batch-guide.js +5 -5
- package/dist/tools/help/actions/batch-guide.js.map +1 -1
- package/dist/tools/help/actions/query-action.d.ts +7 -3
- package/dist/tools/help/actions/query-action.d.ts.map +1 -1
- package/dist/tools/help/actions/query-action.js +35 -6
- package/dist/tools/help/actions/query-action.js.map +1 -1
- package/dist/tools/help/actions/query-params.d.ts +5 -3
- package/dist/tools/help/actions/query-params.d.ts.map +1 -1
- package/dist/tools/help/actions/query-params.js +28 -6
- package/dist/tools/help/actions/query-params.js.map +1 -1
- package/dist/tools/help/actions/query-tool.d.ts +5 -3
- package/dist/tools/help/actions/query-tool.d.ts.map +1 -1
- package/dist/tools/help/actions/query-tool.js +23 -6
- package/dist/tools/help/actions/query-tool.js.map +1 -1
- package/dist/tools/help/actions/workflow-hints.d.ts +5 -3
- package/dist/tools/help/actions/workflow-hints.d.ts.map +1 -1
- package/dist/tools/help/actions/workflow-hints.js +21 -6
- package/dist/tools/help/actions/workflow-hints.js.map +1 -1
- package/dist/tools/queue/actions/clear.d.ts +19 -0
- package/dist/tools/queue/actions/clear.d.ts.map +1 -0
- package/dist/tools/queue/actions/clear.js +79 -0
- package/dist/tools/queue/actions/clear.js.map +1 -0
- package/dist/tools/queue/actions/list.d.ts +16 -0
- package/dist/tools/queue/actions/list.d.ts.map +1 -0
- package/dist/tools/queue/actions/list.js +95 -0
- package/dist/tools/queue/actions/list.js.map +1 -0
- package/dist/tools/queue/actions/remove.d.ts +19 -0
- package/dist/tools/queue/actions/remove.d.ts.map +1 -0
- package/dist/tools/queue/actions/remove.js +81 -0
- package/dist/tools/queue/actions/remove.js.map +1 -0
- package/dist/tools/queue/index.d.ts +13 -0
- package/dist/tools/queue/index.d.ts.map +1 -0
- package/dist/tools/queue/index.js +13 -0
- package/dist/tools/queue/index.js.map +1 -0
- package/dist/tools/queue/types.d.ts +87 -0
- package/dist/tools/queue/types.d.ts.map +1 -0
- package/dist/tools/queue/types.js +9 -0
- package/dist/tools/queue/types.js.map +1 -0
- package/dist/tools/suggest/actions/by-context.d.ts.map +1 -1
- package/dist/tools/suggest/actions/by-context.js +7 -15
- package/dist/tools/suggest/actions/by-context.js.map +1 -1
- package/dist/tools/suggest/actions/by-key.d.ts.map +1 -1
- package/dist/tools/suggest/actions/by-key.js +7 -15
- package/dist/tools/suggest/actions/by-key.js.map +1 -1
- package/dist/tools/suggest/actions/by-tags.d.ts +2 -2
- package/dist/tools/suggest/actions/by-tags.d.ts.map +1 -1
- package/dist/tools/suggest/actions/by-tags.js +8 -18
- package/dist/tools/suggest/actions/by-tags.js.map +1 -1
- package/dist/tools/suggest/actions/constraint-by-context.d.ts +1 -1
- package/dist/tools/suggest/actions/constraint-by-context.d.ts.map +1 -1
- package/dist/tools/suggest/actions/constraint-by-context.js +9 -16
- package/dist/tools/suggest/actions/constraint-by-context.js.map +1 -1
- package/dist/tools/suggest/actions/constraint-by-tags.d.ts +1 -1
- package/dist/tools/suggest/actions/constraint-by-tags.d.ts.map +1 -1
- package/dist/tools/suggest/actions/constraint-by-tags.js +11 -17
- package/dist/tools/suggest/actions/constraint-by-tags.js.map +1 -1
- package/dist/tools/suggest/actions/constraint-by-text.d.ts +1 -1
- package/dist/tools/suggest/actions/constraint-by-text.d.ts.map +1 -1
- package/dist/tools/suggest/actions/constraint-by-text.js +6 -15
- package/dist/tools/suggest/actions/constraint-by-text.js.map +1 -1
- package/dist/tools/suggest/internal/constraint-queries.d.ts +4 -4
- package/dist/tools/suggest/internal/constraint-queries.js +14 -14
- package/dist/tools/suggest/internal/constraint-queries.js.map +1 -1
- package/dist/tools/suggest/internal/queries.d.ts +4 -4
- package/dist/tools/suggest/internal/queries.js +25 -25
- package/dist/tools/suggest/internal/queries.js.map +1 -1
- package/dist/tools/use_case/actions/get.d.ts +5 -3
- package/dist/tools/use_case/actions/get.d.ts.map +1 -1
- package/dist/tools/use_case/actions/get.js +20 -6
- package/dist/tools/use_case/actions/get.js.map +1 -1
- package/dist/tools/use_case/actions/list-all.d.ts +5 -3
- package/dist/tools/use_case/actions/list-all.d.ts.map +1 -1
- package/dist/tools/use_case/actions/list-all.js +36 -6
- package/dist/tools/use_case/actions/list-all.js.map +1 -1
- package/dist/tools/use_case/actions/search.d.ts +6 -3
- package/dist/tools/use_case/actions/search.d.ts.map +1 -1
- package/dist/tools/use_case/actions/search.js +37 -67
- package/dist/tools/use_case/actions/search.js.map +1 -1
- package/dist/tools/use_case/help/example.js +17 -17
- package/dist/tools/use_case/help/example.js.map +1 -1
- package/dist/types.d.ts +81 -380
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +0 -10
- package/dist/types.js.map +1 -1
- package/dist/utils/action-specs/constraint-specs.js +6 -6
- package/dist/utils/action-specs/constraint-specs.js.map +1 -1
- package/dist/utils/action-specs/index.d.ts +0 -2
- package/dist/utils/action-specs/index.d.ts.map +1 -1
- package/dist/utils/action-specs/index.js +0 -6
- package/dist/utils/action-specs/index.js.map +1 -1
- package/dist/utils/batch-validation.d.ts +1 -1
- package/dist/utils/batch-validation.js +3 -3
- package/dist/utils/batch-validation.js.map +1 -1
- package/dist/utils/case-insensitive-validator.d.ts +2 -2
- package/dist/utils/case-insensitive-validator.js +2 -2
- package/dist/utils/connection-hash.d.ts +37 -0
- package/dist/utils/connection-hash.d.ts.map +1 -0
- package/dist/utils/connection-hash.js +55 -0
- package/dist/utils/connection-hash.js.map +1 -0
- package/dist/utils/db-aggregations.js +16 -16
- package/dist/utils/db-aggregations.js.map +1 -1
- package/dist/utils/enum-converter.d.ts +0 -21
- package/dist/utils/enum-converter.d.ts.map +1 -1
- package/dist/utils/enum-converter.js +1 -23
- package/dist/utils/enum-converter.js.map +1 -1
- package/dist/utils/environment-detector.d.ts +30 -0
- package/dist/utils/environment-detector.d.ts.map +1 -0
- package/dist/utils/environment-detector.js +86 -0
- package/dist/utils/environment-detector.js.map +1 -0
- package/dist/utils/example-filter.d.ts +34 -0
- package/dist/utils/example-filter.d.ts.map +1 -0
- package/dist/utils/example-filter.js +45 -0
- package/dist/utils/example-filter.js.map +1 -0
- package/dist/utils/exporter/export.d.ts +2 -16
- package/dist/utils/exporter/export.d.ts.map +1 -1
- package/dist/utils/exporter/export.js +49 -130
- package/dist/utils/exporter/export.js.map +1 -1
- package/dist/utils/hook-queue.d.ts +60 -0
- package/dist/utils/hook-queue.d.ts.map +1 -1
- package/dist/utils/hook-queue.js +114 -11
- package/dist/utils/hook-queue.js.map +1 -1
- package/dist/utils/importer/import.d.ts.map +1 -1
- package/dist/utils/importer/import.js +33 -188
- package/dist/utils/importer/import.js.map +1 -1
- package/dist/utils/importer/master-tables.d.ts +2 -1
- package/dist/utils/importer/master-tables.d.ts.map +1 -1
- package/dist/utils/importer/master-tables.js +35 -81
- package/dist/utils/importer/master-tables.js.map +1 -1
- package/dist/utils/param-normalizer.d.ts +0 -1
- package/dist/utils/param-normalizer.d.ts.map +1 -1
- package/dist/utils/param-normalizer.js +1 -3
- package/dist/utils/param-normalizer.js.map +1 -1
- package/dist/utils/path-utils.d.ts +46 -0
- package/dist/utils/path-utils.d.ts.map +1 -0
- package/dist/utils/path-utils.js +74 -0
- package/dist/utils/path-utils.js.map +1 -0
- package/dist/utils/policy-validator.js +1 -1
- package/dist/utils/policy-validator.js.map +1 -1
- package/dist/utils/project-context.d.ts +23 -0
- package/dist/utils/project-context.d.ts.map +1 -1
- package/dist/utils/project-context.js +45 -3
- package/dist/utils/project-context.js.map +1 -1
- package/dist/utils/project-root.d.ts +2 -2
- package/dist/utils/project-root.js +2 -2
- package/dist/utils/sql-dump/core/index-export.js +7 -7
- package/dist/utils/sql-dump/schema/indexes.js +24 -24
- package/dist/utils/sql-dump/schema/tables.js +44 -44
- package/dist/utils/suggest-helpers.d.ts +82 -0
- package/dist/utils/suggest-helpers.d.ts.map +1 -0
- package/dist/utils/suggest-helpers.js +93 -0
- package/dist/utils/suggest-helpers.js.map +1 -0
- package/dist/utils/token-logging.js +6 -6
- package/dist/utils/token-logging.js.map +1 -1
- package/dist/utils/validators.js +1 -1
- package/dist/utils/validators.js.map +1 -1
- package/dist/utils/view-queries.d.ts +0 -8
- package/dist/utils/view-queries.d.ts.map +1 -1
- package/dist/utils/view-queries.js +29 -84
- package/dist/utils/view-queries.js.map +1 -1
- package/dist/watcher/index.d.ts +1 -4
- package/dist/watcher/index.d.ts.map +1 -1
- package/dist/watcher/index.js +1 -3
- package/dist/watcher/index.js.map +1 -1
- package/dist/watcher/queue-watcher.d.ts +10 -3
- package/dist/watcher/queue-watcher.d.ts.map +1 -1
- package/dist/watcher/queue-watcher.js +24 -21
- package/dist/watcher/queue-watcher.js.map +1 -1
- package/docs/CONFIGURATION.md +14 -14
- package/docs/DATABASE_AUTH.md +1 -1
- package/docs/HOOKS_GUIDE.md +30 -50
- package/docs/HOW_TO_UNINSTALL.md +199 -0
- package/docs/MIGRATION_CLEANUP_GUIDE.md +212 -0
- package/docs/MIGRATION_TO_SAAS.md +176 -0
- package/docs/SLASH_COMMANDS.md +1 -1
- package/docs/cli/DATABASE_MIGRATION.md +13 -13
- package/docs/cli/DATA_EXPORT_IMPORT.md +71 -69
- package/package.json +10 -8
- package/saas-connector/LICENSE +190 -0
- package/saas-connector/README.md +122 -0
- package/saas-connector/dist/auth/auth-manager.d.ts +6 -0
- package/saas-connector/dist/auth/auth-manager.d.ts.map +1 -0
- package/saas-connector/dist/auth/auth-manager.js +39 -0
- package/saas-connector/dist/auth/auth-manager.js.map +7 -0
- package/saas-connector/dist/backend/saas-backend.d.ts +20 -0
- package/saas-connector/dist/backend/saas-backend.d.ts.map +1 -0
- package/saas-connector/dist/backend/saas-backend.js +104 -0
- package/saas-connector/dist/backend/saas-backend.js.map +7 -0
- package/saas-connector/dist/client/http-client.d.ts +33 -0
- package/saas-connector/dist/client/http-client.d.ts.map +1 -0
- package/saas-connector/dist/client/http-client.js +226 -0
- package/saas-connector/dist/client/http-client.js.map +7 -0
- package/saas-connector/dist/client/types.d.ts +62 -0
- package/saas-connector/dist/client/types.d.ts.map +1 -0
- package/saas-connector/dist/client/types.js +17 -0
- package/saas-connector/dist/client/types.js.map +7 -0
- package/saas-connector/dist/config/constants.d.ts +14 -0
- package/saas-connector/dist/config/constants.d.ts.map +1 -0
- package/saas-connector/dist/config/constants.js +68 -0
- package/saas-connector/dist/config/constants.js.map +7 -0
- package/saas-connector/dist/errors/api-error.d.ts +26 -0
- package/saas-connector/dist/errors/api-error.d.ts.map +1 -0
- package/saas-connector/dist/errors/api-error.js +62 -0
- package/saas-connector/dist/errors/api-error.js.map +7 -0
- package/saas-connector/dist/index.d.ts +18 -0
- package/saas-connector/dist/index.d.ts.map +1 -0
- package/saas-connector/dist/index.js +51 -0
- package/saas-connector/dist/index.js.map +7 -0
- package/saas-connector/package-lock.json +518 -0
- package/saas-connector/package.json +34 -0
- package/scripts/copy-help-data.js +19 -0
- package/assets/config.example.toml +0 -282
- package/assets/kanban-style.png +0 -0
- package/assets/kanban-visualizer.png +0 -0
- package/assets/sample-agents/README.md +0 -36
- package/assets/sample-agents/sqlew-architect.md +0 -321
- package/assets/sample-agents/sqlew-researcher.md +0 -292
- package/assets/sample-agents/sqlew-scrum-master.md +0 -286
- package/assets/sample-commands/README.md +0 -56
- package/assets/sample-commands/sqlew.md +0 -144
- package/assets/sample-skills/sqlew-decision-format/SKILL.md +0 -73
- package/assets/sample-skills/sqlew-plan-guidance/SKILL.md +0 -62
- package/assets/schema.sql +0 -564
- package/dist/cli/hooks/init-hooks.d.ts +0 -35
- package/dist/cli/hooks/init-hooks.d.ts.map +0 -1
- package/dist/cli/hooks/init-hooks.js +0 -517
- package/dist/cli/hooks/init-hooks.js.map +0 -1
- package/dist/cli/hooks/plan-toml-parser.d.ts.map +0 -1
- package/dist/cli/hooks/plan-toml-parser.js.map +0 -1
- package/dist/init-agents.d.ts +0 -7
- package/dist/init-agents.d.ts.map +0 -1
- package/dist/init-agents.js +0 -206
- package/dist/init-agents.js.map +0 -1
- package/dist/init-commands.d.ts +0 -10
- package/dist/init-commands.d.ts.map +0 -1
- package/dist/init-commands.js +0 -46
- package/dist/init-commands.js.map +0 -1
- package/dist/init-skills.d.ts +0 -25
- package/dist/init-skills.d.ts.map +0 -1
- package/dist/init-skills.js +0 -160
- package/dist/init-skills.js.map +0 -1
- package/dist/sync-agents.d.ts +0 -13
- package/dist/sync-agents.d.ts.map +0 -1
- package/dist/sync-agents.js +0 -157
- package/dist/sync-agents.js.map +0 -1
- package/dist/sync-commands.d.ts +0 -13
- package/dist/sync-commands.d.ts.map +0 -1
- package/dist/sync-commands.js +0 -150
- package/dist/sync-commands.js.map +0 -1
- package/dist/sync-gitignore.d.ts +0 -13
- package/dist/sync-gitignore.d.ts.map +0 -1
- package/dist/sync-gitignore.js +0 -60
- package/dist/sync-gitignore.js.map +0 -1
- package/dist/tests/docker/native/task-operations.test.d.ts +0 -16
- package/dist/tests/docker/native/task-operations.test.d.ts.map +0 -1
- package/dist/tests/docker/native/task-operations.test.js +0 -800
- package/dist/tests/docker/native/task-operations.test.js.map +0 -1
- package/dist/tests/feature/decision/batch-validation-integration.test.d.ts +0 -6
- package/dist/tests/feature/decision/batch-validation-integration.test.d.ts.map +0 -1
- package/dist/tests/feature/decision/batch-validation-integration.test.js +0 -193
- package/dist/tests/feature/decision/batch-validation-integration.test.js.map +0 -1
- package/dist/tests/feature/task/auto-pruning-decision-link.test.d.ts +0 -6
- package/dist/tests/feature/task/auto-pruning-decision-link.test.d.ts.map +0 -1
- package/dist/tests/feature/task/auto-pruning-decision-link.test.js +0 -281
- package/dist/tests/feature/task/auto-pruning-decision-link.test.js.map +0 -1
- package/dist/tests/feature/task/auto-pruning-partial.test.d.ts +0 -6
- package/dist/tests/feature/task/auto-pruning-partial.test.d.ts.map +0 -1
- package/dist/tests/feature/task/auto-pruning-partial.test.js +0 -305
- package/dist/tests/feature/task/auto-pruning-partial.test.js.map +0 -1
- package/dist/tests/feature/task/auto-pruning-persistence.test.d.ts +0 -6
- package/dist/tests/feature/task/auto-pruning-persistence.test.d.ts.map +0 -1
- package/dist/tests/feature/task/auto-pruning-persistence.test.js +0 -267
- package/dist/tests/feature/task/auto-pruning-persistence.test.js.map +0 -1
- package/dist/tests/feature/task/auto-pruning-safety.test.d.ts +0 -12
- package/dist/tests/feature/task/auto-pruning-safety.test.d.ts.map +0 -1
- package/dist/tests/feature/task/auto-pruning-safety.test.js +0 -224
- package/dist/tests/feature/task/auto-pruning-safety.test.js.map +0 -1
- package/dist/tests/feature/task/dependencies.test.d.ts +0 -7
- package/dist/tests/feature/task/dependencies.test.d.ts.map +0 -1
- package/dist/tests/feature/task/dependencies.test.js +0 -656
- package/dist/tests/feature/task/dependencies.test.js.map +0 -1
- package/dist/tests/feature/task/file-actions-integration.test.d.ts +0 -10
- package/dist/tests/feature/task/file-actions-integration.test.d.ts.map +0 -1
- package/dist/tests/feature/task/file-actions-integration.test.js +0 -162
- package/dist/tests/feature/task/file-actions-integration.test.js.map +0 -1
- package/dist/tests/feature/task/file-actions-validation.test.d.ts +0 -6
- package/dist/tests/feature/task/file-actions-validation.test.d.ts.map +0 -1
- package/dist/tests/feature/task/file-actions-validation.test.js +0 -228
- package/dist/tests/feature/task/file-actions-validation.test.js.map +0 -1
- package/dist/tests/feature/task/link-file-backward-compat.test.d.ts +0 -6
- package/dist/tests/feature/task/link-file-backward-compat.test.d.ts.map +0 -1
- package/dist/tests/feature/task/link-file-backward-compat.test.js +0 -280
- package/dist/tests/feature/task/link-file-backward-compat.test.js.map +0 -1
- package/dist/tests/feature/task/watch-files-action.test.d.ts +0 -8
- package/dist/tests/feature/task/watch-files-action.test.d.ts.map +0 -1
- package/dist/tests/feature/task/watch-files-action.test.js +0 -402
- package/dist/tests/feature/task/watch-files-action.test.js.map +0 -1
- package/dist/tests/feature/task/watch-files-parameter.test.d.ts +0 -8
- package/dist/tests/feature/task/watch-files-parameter.test.d.ts.map +0 -1
- package/dist/tests/feature/task/watch-files-parameter.test.js +0 -283
- package/dist/tests/feature/task/watch-files-parameter.test.js.map +0 -1
- package/dist/tests/integration/all-features.standalone.d.ts +0 -7
- package/dist/tests/integration/all-features.standalone.d.ts.map +0 -1
- package/dist/tests/integration/all-features.standalone.js +0 -417
- package/dist/tests/integration/all-features.standalone.js.map +0 -1
- package/dist/tests/unit/config/plan-toml-cache.test.d.ts.map +0 -1
- package/dist/tests/unit/config/plan-toml-cache.test.js.map +0 -1
- package/dist/tests/unit/hooks/plan-toml-parser.test.d.ts.map +0 -1
- package/dist/tests/unit/hooks/plan-toml-parser.test.js.map +0 -1
- package/dist/tools/files/actions/check-lock.d.ts +0 -16
- package/dist/tools/files/actions/check-lock.d.ts.map +0 -1
- package/dist/tools/files/actions/check-lock.js +0 -74
- package/dist/tools/files/actions/check-lock.js.map +0 -1
- package/dist/tools/files/actions/get.d.ts +0 -16
- package/dist/tools/files/actions/get.d.ts.map +0 -1
- package/dist/tools/files/actions/get.js +0 -85
- package/dist/tools/files/actions/get.js.map +0 -1
- package/dist/tools/files/actions/record-batch.d.ts +0 -18
- package/dist/tools/files/actions/record-batch.d.ts.map +0 -1
- package/dist/tools/files/actions/record-batch.js +0 -119
- package/dist/tools/files/actions/record-batch.js.map +0 -1
- package/dist/tools/files/actions/record.d.ts +0 -16
- package/dist/tools/files/actions/record.d.ts.map +0 -1
- package/dist/tools/files/actions/record.js +0 -43
- package/dist/tools/files/actions/record.js.map +0 -1
- package/dist/tools/files/actions/sqlite-flush.d.ts +0 -27
- package/dist/tools/files/actions/sqlite-flush.d.ts.map +0 -1
- package/dist/tools/files/actions/sqlite-flush.js +0 -66
- package/dist/tools/files/actions/sqlite-flush.js.map +0 -1
- package/dist/tools/files/help/example.d.ts +0 -5
- package/dist/tools/files/help/example.d.ts.map +0 -1
- package/dist/tools/files/help/example.js +0 -98
- package/dist/tools/files/help/example.js.map +0 -1
- package/dist/tools/files/help/help.d.ts +0 -5
- package/dist/tools/files/help/help.d.ts.map +0 -1
- package/dist/tools/files/help/help.js +0 -24
- package/dist/tools/files/help/help.js.map +0 -1
- package/dist/tools/files/index.d.ts +0 -14
- package/dist/tools/files/index.d.ts.map +0 -1
- package/dist/tools/files/index.js +0 -15
- package/dist/tools/files/index.js.map +0 -1
- package/dist/tools/files/internal/queries.d.ts +0 -18
- package/dist/tools/files/internal/queries.d.ts.map +0 -1
- package/dist/tools/files/internal/queries.js +0 -54
- package/dist/tools/files/internal/queries.js.map +0 -1
- package/dist/tools/files/internal/validation.d.ts +0 -18
- package/dist/tools/files/internal/validation.d.ts.map +0 -1
- package/dist/tools/files/internal/validation.js +0 -39
- package/dist/tools/files/internal/validation.js.map +0 -1
- package/dist/tools/files/types.d.ts +0 -6
- package/dist/tools/files/types.d.ts.map +0 -1
- package/dist/tools/files/types.js +0 -6
- package/dist/tools/files/types.js.map +0 -1
- package/dist/tools/help-queries.d.ts +0 -130
- package/dist/tools/help-queries.d.ts.map +0 -1
- package/dist/tools/help-queries.js +0 -411
- package/dist/tools/help-queries.js.map +0 -1
- package/dist/tools/tasks/actions/add-dependency.d.ts +0 -12
- package/dist/tools/tasks/actions/add-dependency.d.ts.map +0 -1
- package/dist/tools/tasks/actions/add-dependency.js +0 -129
- package/dist/tools/tasks/actions/add-dependency.js.map +0 -1
- package/dist/tools/tasks/actions/archive.d.ts +0 -11
- package/dist/tools/tasks/actions/archive.d.ts.map +0 -1
- package/dist/tools/tasks/actions/archive.js +0 -58
- package/dist/tools/tasks/actions/archive.js.map +0 -1
- package/dist/tools/tasks/actions/create-batch.d.ts +0 -19
- package/dist/tools/tasks/actions/create-batch.d.ts.map +0 -1
- package/dist/tools/tasks/actions/create-batch.js +0 -103
- package/dist/tools/tasks/actions/create-batch.js.map +0 -1
- package/dist/tools/tasks/actions/create.d.ts +0 -16
- package/dist/tools/tasks/actions/create.d.ts.map +0 -1
- package/dist/tools/tasks/actions/create.js +0 -163
- package/dist/tools/tasks/actions/create.js.map +0 -1
- package/dist/tools/tasks/actions/get-dependencies.d.ts +0 -12
- package/dist/tools/tasks/actions/get-dependencies.d.ts.map +0 -1
- package/dist/tools/tasks/actions/get-dependencies.js +0 -41
- package/dist/tools/tasks/actions/get-dependencies.js.map +0 -1
- package/dist/tools/tasks/actions/get-pruned-files.d.ts +0 -13
- package/dist/tools/tasks/actions/get-pruned-files.d.ts.map +0 -1
- package/dist/tools/tasks/actions/get-pruned-files.js +0 -45
- package/dist/tools/tasks/actions/get-pruned-files.js.map +0 -1
- package/dist/tools/tasks/actions/get.d.ts +0 -12
- package/dist/tools/tasks/actions/get.d.ts.map +0 -1
- package/dist/tools/tasks/actions/get.js +0 -84
- package/dist/tools/tasks/actions/get.js.map +0 -1
- package/dist/tools/tasks/actions/link-pruned-file.d.ts +0 -14
- package/dist/tools/tasks/actions/link-pruned-file.d.ts.map +0 -1
- package/dist/tools/tasks/actions/link-pruned-file.js +0 -68
- package/dist/tools/tasks/actions/link-pruned-file.js.map +0 -1
- package/dist/tools/tasks/actions/link.d.ts +0 -14
- package/dist/tools/tasks/actions/link.d.ts.map +0 -1
- package/dist/tools/tasks/actions/link.js +0 -120
- package/dist/tools/tasks/actions/link.js.map +0 -1
- package/dist/tools/tasks/actions/list.d.ts +0 -17
- package/dist/tools/tasks/actions/list.d.ts.map +0 -1
- package/dist/tools/tasks/actions/list.js +0 -100
- package/dist/tools/tasks/actions/list.js.map +0 -1
- package/dist/tools/tasks/actions/move.d.ts +0 -13
- package/dist/tools/tasks/actions/move.d.ts.map +0 -1
- package/dist/tools/tasks/actions/move.js +0 -91
- package/dist/tools/tasks/actions/move.js.map +0 -1
- package/dist/tools/tasks/actions/remove-dependency.d.ts +0 -12
- package/dist/tools/tasks/actions/remove-dependency.d.ts.map +0 -1
- package/dist/tools/tasks/actions/remove-dependency.js +0 -36
- package/dist/tools/tasks/actions/remove-dependency.js.map +0 -1
- package/dist/tools/tasks/actions/update.d.ts +0 -10
- package/dist/tools/tasks/actions/update.d.ts.map +0 -1
- package/dist/tools/tasks/actions/update.js +0 -183
- package/dist/tools/tasks/actions/update.js.map +0 -1
- package/dist/tools/tasks/actions/watch-files.d.ts +0 -14
- package/dist/tools/tasks/actions/watch-files.d.ts.map +0 -1
- package/dist/tools/tasks/actions/watch-files.js +0 -127
- package/dist/tools/tasks/actions/watch-files.js.map +0 -1
- package/dist/tools/tasks/help/example.d.ts +0 -8
- package/dist/tools/tasks/help/example.d.ts.map +0 -1
- package/dist/tools/tasks/help/example.js +0 -225
- package/dist/tools/tasks/help/example.js.map +0 -1
- package/dist/tools/tasks/help/help.d.ts +0 -8
- package/dist/tools/tasks/help/help.d.ts.map +0 -1
- package/dist/tools/tasks/help/help.js +0 -307
- package/dist/tools/tasks/help/help.js.map +0 -1
- package/dist/tools/tasks/help/use-case.d.ts +0 -11
- package/dist/tools/tasks/help/use-case.d.ts.map +0 -1
- package/dist/tools/tasks/help/use-case.js +0 -767
- package/dist/tools/tasks/help/use-case.js.map +0 -1
- package/dist/tools/tasks/index.d.ts +0 -28
- package/dist/tools/tasks/index.d.ts.map +0 -1
- package/dist/tools/tasks/index.js +0 -33
- package/dist/tools/tasks/index.js.map +0 -1
- package/dist/tools/tasks/internal/state-machine.d.ts +0 -16
- package/dist/tools/tasks/internal/state-machine.d.ts.map +0 -1
- package/dist/tools/tasks/internal/state-machine.js +0 -36
- package/dist/tools/tasks/internal/state-machine.js.map +0 -1
- package/dist/tools/tasks/internal/task-queries.d.ts +0 -12
- package/dist/tools/tasks/internal/task-queries.d.ts.map +0 -1
- package/dist/tools/tasks/internal/task-queries.js +0 -53
- package/dist/tools/tasks/internal/task-queries.js.map +0 -1
- package/dist/tools/tasks/internal/validation.d.ts +0 -47
- package/dist/tools/tasks/internal/validation.d.ts.map +0 -1
- package/dist/tools/tasks/internal/validation.js +0 -261
- package/dist/tools/tasks/internal/validation.js.map +0 -1
- package/dist/tools/tasks/types.d.ts +0 -80
- package/dist/tools/tasks/types.d.ts.map +0 -1
- package/dist/tools/tasks/types.js +0 -68
- package/dist/tools/tasks/types.js.map +0 -1
- package/dist/tools/tasks/watcher/status.d.ts +0 -9
- package/dist/tools/tasks/watcher/status.d.ts.map +0 -1
- package/dist/tools/tasks/watcher/status.js +0 -130
- package/dist/tools/tasks/watcher/status.js.map +0 -1
- package/dist/tools/tasks.d.ts +0 -16
- package/dist/tools/tasks.d.ts.map +0 -1
- package/dist/tools/tasks.js +0 -17
- package/dist/tools/tasks.js.map +0 -1
- package/dist/utils/action-specs/file-specs.d.ts +0 -9
- package/dist/utils/action-specs/file-specs.d.ts.map +0 -1
- package/dist/utils/action-specs/file-specs.js +0 -54
- package/dist/utils/action-specs/file-specs.js.map +0 -1
- package/dist/utils/action-specs/task-specs.d.ts +0 -9
- package/dist/utils/action-specs/task-specs.d.ts.map +0 -1
- package/dist/utils/action-specs/task-specs.js +0 -143
- package/dist/utils/action-specs/task-specs.js.map +0 -1
- package/dist/utils/cleanup.d.ts +0 -69
- package/dist/utils/cleanup.d.ts.map +0 -1
- package/dist/utils/cleanup.js +0 -102
- package/dist/utils/cleanup.js.map +0 -1
- package/dist/utils/file-pruning.d.ts +0 -93
- package/dist/utils/file-pruning.d.ts.map +0 -1
- package/dist/utils/file-pruning.js +0 -194
- package/dist/utils/file-pruning.js.map +0 -1
- package/dist/utils/importer/topological-sort.d.ts +0 -61
- package/dist/utils/importer/topological-sort.d.ts.map +0 -1
- package/dist/utils/importer/topological-sort.js +0 -143
- package/dist/utils/importer/topological-sort.js.map +0 -1
- package/dist/utils/retention.d.ts +0 -65
- package/dist/utils/retention.d.ts.map +0 -1
- package/dist/utils/retention.js +0 -156
- package/dist/utils/retention.js.map +0 -1
- package/dist/utils/task-stale-detection.d.ts +0 -98
- package/dist/utils/task-stale-detection.d.ts.map +0 -1
- package/dist/utils/task-stale-detection.js +0 -479
- package/dist/utils/task-stale-detection.js.map +0 -1
- package/dist/watcher/file-watcher.d.ts +0 -131
- package/dist/watcher/file-watcher.d.ts.map +0 -1
- package/dist/watcher/file-watcher.js +0 -730
- package/dist/watcher/file-watcher.js.map +0 -1
- package/dist/watcher/test-executor.d.ts +0 -23
- package/dist/watcher/test-executor.d.ts.map +0 -1
- package/dist/watcher/test-executor.js +0 -226
- package/dist/watcher/test-executor.js.map +0 -1
- package/docs/TASK_SYSTEM_DEPRECATED.md +0 -88
package/dist/init-agents.js
DELETED
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* CLI tool to initialize sqlew specialized agents
|
|
4
|
-
* Usage: npx mcp-sqlew init-agents [--path <custom-path>]
|
|
5
|
-
*/
|
|
6
|
-
import * as fs from 'fs';
|
|
7
|
-
import * as path from 'path';
|
|
8
|
-
import { fileURLToPath } from 'url';
|
|
9
|
-
import { createMinimalConfigIfNotExists } from './config/minimal-generator.js';
|
|
10
|
-
import { loadConfigFile } from './config/loader.js';
|
|
11
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
12
|
-
const __dirname = path.dirname(__filename);
|
|
13
|
-
function parseArgs() {
|
|
14
|
-
const args = process.argv.slice(2);
|
|
15
|
-
const options = {};
|
|
16
|
-
for (let i = 0; i < args.length; i++) {
|
|
17
|
-
switch (args[i]) {
|
|
18
|
-
case '--path':
|
|
19
|
-
options.targetPath = args[++i];
|
|
20
|
-
break;
|
|
21
|
-
case '--project':
|
|
22
|
-
case '--local':
|
|
23
|
-
options.projectLocal = true;
|
|
24
|
-
break;
|
|
25
|
-
case '--help':
|
|
26
|
-
case '-h':
|
|
27
|
-
printHelp();
|
|
28
|
-
process.exit(0);
|
|
29
|
-
break;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
return options;
|
|
33
|
-
}
|
|
34
|
-
function printHelp() {
|
|
35
|
-
console.log(`
|
|
36
|
-
mcp-sqlew init-agents - Initialize specialized agents for mcp-sqlew
|
|
37
|
-
|
|
38
|
-
USAGE:
|
|
39
|
-
npx mcp-sqlew init-agents [OPTIONS]
|
|
40
|
-
|
|
41
|
-
OPTIONS:
|
|
42
|
-
--path <path> Custom target directory (default: ~/.claude/agents)
|
|
43
|
-
--project, --local Install to current project (.claude/agents)
|
|
44
|
-
--help, -h Show this help message
|
|
45
|
-
|
|
46
|
-
EXAMPLES:
|
|
47
|
-
# Install to global Claude Code agents directory
|
|
48
|
-
npx mcp-sqlew init-agents
|
|
49
|
-
|
|
50
|
-
# Install to current project
|
|
51
|
-
npx mcp-sqlew init-agents --project
|
|
52
|
-
|
|
53
|
-
# Install to custom location
|
|
54
|
-
npx mcp-sqlew init-agents --path /path/to/agents
|
|
55
|
-
|
|
56
|
-
AGENT FILES:
|
|
57
|
-
- sqlew-scrum-master.md Multi-agent coordination, task management
|
|
58
|
-
- sqlew-researcher.md Query decisions, analyze patterns
|
|
59
|
-
- sqlew-architect.md Document decisions, enforce constraints
|
|
60
|
-
- QUICK_START.md Usage guide with examples
|
|
61
|
-
- README.md Overview and best practices
|
|
62
|
-
`);
|
|
63
|
-
}
|
|
64
|
-
function getDefaultTargetPath() {
|
|
65
|
-
const home = process.env.HOME || process.env.USERPROFILE;
|
|
66
|
-
if (!home) {
|
|
67
|
-
throw new Error('Could not determine home directory');
|
|
68
|
-
}
|
|
69
|
-
return path.join(home, '.claude', 'agents');
|
|
70
|
-
}
|
|
71
|
-
function getSourcePath() {
|
|
72
|
-
// When running from npm package: node_modules/mcp-sqlew/dist/init-agents.js
|
|
73
|
-
// Source files are in: node_modules/mcp-sqlew/assets/sample-agents/
|
|
74
|
-
const distDir = __dirname; // .../dist
|
|
75
|
-
const packageRoot = path.dirname(distDir); // .../mcp-sqlew
|
|
76
|
-
return path.join(packageRoot, 'assets', 'sample-agents');
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Ensure config.toml exists, create if missing
|
|
80
|
-
*/
|
|
81
|
-
function ensureConfigExists() {
|
|
82
|
-
const projectRoot = process.cwd();
|
|
83
|
-
const created = createMinimalConfigIfNotExists(projectRoot);
|
|
84
|
-
if (created) {
|
|
85
|
-
console.log('✓ Created: .sqlew/config.toml (minimal defaults)');
|
|
86
|
-
console.log(' Edit [agents] section to customize agent selection\n');
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Get list of agent files to install based on config
|
|
91
|
-
*/
|
|
92
|
-
function getAgentsToInstall() {
|
|
93
|
-
const config = loadConfigFile();
|
|
94
|
-
const agentConfig = config.agents || {};
|
|
95
|
-
const files = [];
|
|
96
|
-
const installed = [];
|
|
97
|
-
// Add agents based on config (default: true)
|
|
98
|
-
if (agentConfig.scrum_master !== false) {
|
|
99
|
-
files.push('sqlew-scrum-master.md');
|
|
100
|
-
installed.push('Scrum Master (12KB)');
|
|
101
|
-
}
|
|
102
|
-
if (agentConfig.researcher !== false) {
|
|
103
|
-
files.push('sqlew-researcher.md');
|
|
104
|
-
installed.push('Researcher (14KB)');
|
|
105
|
-
}
|
|
106
|
-
if (agentConfig.architect !== false) {
|
|
107
|
-
files.push('sqlew-architect.md');
|
|
108
|
-
installed.push('Architect (20KB)');
|
|
109
|
-
}
|
|
110
|
-
// No longer installing README/QUICK_START to agent directories
|
|
111
|
-
const summary = installed.length > 0 ? installed.join(', ') : 'None';
|
|
112
|
-
return { files, summary };
|
|
113
|
-
}
|
|
114
|
-
function copyAgentFiles(sourcePath, targetPath, filesToCopy) {
|
|
115
|
-
// Ensure target directory exists
|
|
116
|
-
if (!fs.existsSync(targetPath)) {
|
|
117
|
-
fs.mkdirSync(targetPath, { recursive: true });
|
|
118
|
-
console.log(`✓ Created directory: ${targetPath}`);
|
|
119
|
-
}
|
|
120
|
-
// Copy only specified files
|
|
121
|
-
const copiedFiles = [];
|
|
122
|
-
for (const file of filesToCopy) {
|
|
123
|
-
const sourceFile = path.join(sourcePath, file);
|
|
124
|
-
const targetFile = path.join(targetPath, file);
|
|
125
|
-
// Skip if source file doesn't exist
|
|
126
|
-
if (!fs.existsSync(sourceFile)) {
|
|
127
|
-
console.warn(`⚠ Skipping missing file: ${file}`);
|
|
128
|
-
continue;
|
|
129
|
-
}
|
|
130
|
-
// Copy file
|
|
131
|
-
fs.copyFileSync(sourceFile, targetFile);
|
|
132
|
-
copiedFiles.push(file);
|
|
133
|
-
}
|
|
134
|
-
console.log(`\n✓ Copied ${copiedFiles.length} files to: ${targetPath}\n`);
|
|
135
|
-
// List copied files
|
|
136
|
-
console.log('Files installed:');
|
|
137
|
-
copiedFiles.forEach(file => {
|
|
138
|
-
console.log(` • ${file}`);
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
function main() {
|
|
142
|
-
try {
|
|
143
|
-
console.log('mcp-sqlew Agent Installer\n');
|
|
144
|
-
// STEP 1: Ensure minimal config.toml exists
|
|
145
|
-
ensureConfigExists();
|
|
146
|
-
// STEP 2: Parse arguments
|
|
147
|
-
const options = parseArgs();
|
|
148
|
-
// STEP 3: Get agents to install based on config
|
|
149
|
-
const { files, summary } = getAgentsToInstall();
|
|
150
|
-
if (files.length === 0) {
|
|
151
|
-
console.log('⚠ No agents enabled in .sqlew/config.toml\n');
|
|
152
|
-
console.log('To enable agents, edit .sqlew/config.toml:');
|
|
153
|
-
console.log('[agents]');
|
|
154
|
-
console.log('scrum_master = true');
|
|
155
|
-
console.log('researcher = true');
|
|
156
|
-
console.log('architect = true\n');
|
|
157
|
-
process.exit(1);
|
|
158
|
-
}
|
|
159
|
-
console.log(`Installing agents: ${summary}\n`);
|
|
160
|
-
// STEP 4: Determine target path
|
|
161
|
-
let targetPath;
|
|
162
|
-
if (options.targetPath) {
|
|
163
|
-
targetPath = path.resolve(options.targetPath);
|
|
164
|
-
}
|
|
165
|
-
else if (options.projectLocal) {
|
|
166
|
-
targetPath = path.join(process.cwd(), '.claude', 'agents');
|
|
167
|
-
}
|
|
168
|
-
else {
|
|
169
|
-
targetPath = getDefaultTargetPath();
|
|
170
|
-
}
|
|
171
|
-
// STEP 5: Get source path
|
|
172
|
-
const sourcePath = getSourcePath();
|
|
173
|
-
// Verify source exists
|
|
174
|
-
if (!fs.existsSync(sourcePath)) {
|
|
175
|
-
throw new Error(`Source directory not found: ${sourcePath}\nThis may indicate an installation issue.`);
|
|
176
|
-
}
|
|
177
|
-
console.log(`Source: ${sourcePath}`);
|
|
178
|
-
console.log(`Target: ${targetPath}\n`);
|
|
179
|
-
// STEP 6: Copy selected files
|
|
180
|
-
copyAgentFiles(sourcePath, targetPath, files);
|
|
181
|
-
// STEP 7: Success message
|
|
182
|
-
console.log(`\n✓ Installation complete!\n`);
|
|
183
|
-
console.log('NEXT STEPS:');
|
|
184
|
-
console.log(' 1. Restart Claude Code (if running)');
|
|
185
|
-
console.log(' 2. Use agents with @ prefix:');
|
|
186
|
-
if (files.includes('sqlew-scrum-master.md')) {
|
|
187
|
-
console.log(' @sqlew-scrum-master "Plan the sprint"');
|
|
188
|
-
}
|
|
189
|
-
if (files.includes('sqlew-researcher.md')) {
|
|
190
|
-
console.log(' @sqlew-researcher "Query past decisions"');
|
|
191
|
-
}
|
|
192
|
-
if (files.includes('sqlew-architect.md')) {
|
|
193
|
-
console.log(' @sqlew-architect "Document architecture"');
|
|
194
|
-
}
|
|
195
|
-
console.log('\n 3. Customize agent selection:');
|
|
196
|
-
console.log(' Edit .sqlew/config.toml → [agents] section');
|
|
197
|
-
console.log(' Disable unused agents to reduce token consumption\n');
|
|
198
|
-
console.log('For more info: https://github.com/sin5ddd/mcp-sqlew\n');
|
|
199
|
-
}
|
|
200
|
-
catch (error) {
|
|
201
|
-
console.error(`\n❌ Error: ${error instanceof Error ? error.message : String(error)}\n`);
|
|
202
|
-
process.exit(1);
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
main();
|
|
206
|
-
//# sourceMappingURL=init-agents.js.map
|
package/dist/init-agents.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"init-agents.js","sourceRoot":"","sources":["../src/init-agents.ts"],"names":[],"mappings":";AAEA;;;GAGG;AAEH,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,8BAA8B,E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C;QACjD,OAAO,CAAC,GAAG,CAAC,iDAAiD,CAAC,CAAC;QAC/D,OAAO,CAAC,GAAG,CAAC,0DAA0D,CAAC,CAAC;QACxE,OAAO,CAAC,GAAG,CAAC,uDAAuD,CAAC,CAAC;IAEvE,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,cAAc,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACxF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC"}
|
package/dist/init-commands.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* CLI tool for sqlew slash commands
|
|
4
|
-
* @deprecated v4.1.0 - Slash commands replaced by Plan Mode Integration
|
|
5
|
-
*
|
|
6
|
-
* This command now only displays deprecation notice.
|
|
7
|
-
* sqlew tools are automatically recommended during Plan mode.
|
|
8
|
-
*/
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=init-commands.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"init-commands.d.ts","sourceRoot":"","sources":["../src/init-commands.ts"],"names":[],"mappings":";AAEA;;;;;;GAMG"}
|
package/dist/init-commands.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* CLI tool for sqlew slash commands
|
|
4
|
-
* @deprecated v4.1.0 - Slash commands replaced by Plan Mode Integration
|
|
5
|
-
*
|
|
6
|
-
* This command now only displays deprecation notice.
|
|
7
|
-
* sqlew tools are automatically recommended during Plan mode.
|
|
8
|
-
*/
|
|
9
|
-
function printHelp() {
|
|
10
|
-
console.log(`
|
|
11
|
-
mcp-sqlew init-commands - Initialize slash commands for mcp-sqlew
|
|
12
|
-
|
|
13
|
-
NOTE: As of v4.1.0, slash commands have been replaced by:
|
|
14
|
-
1. Plan Mode Integration (auto-added to CLAUDE.md on server startup)
|
|
15
|
-
2. Skills (.claude/skills/sqw-plan-guidance/)
|
|
16
|
-
|
|
17
|
-
The sqlew MCP tools are automatically recommended when Plan mode is active.
|
|
18
|
-
No manual command installation is required.
|
|
19
|
-
|
|
20
|
-
For more information, see:
|
|
21
|
-
- .claude/skills/sqw-plan-guidance/SKILL.md
|
|
22
|
-
- CLAUDE.md (Plan Mode Integration section)
|
|
23
|
-
`);
|
|
24
|
-
}
|
|
25
|
-
function main() {
|
|
26
|
-
const args = process.argv.slice(2);
|
|
27
|
-
if (args.includes('--help') || args.includes('-h')) {
|
|
28
|
-
printHelp();
|
|
29
|
-
process.exit(0);
|
|
30
|
-
}
|
|
31
|
-
console.log('mcp-sqlew init-commands\n');
|
|
32
|
-
console.log('⚠ DEPRECATED: Slash commands have been replaced in v4.1.0\n');
|
|
33
|
-
console.log('The sqlew MCP tools are now automatically recommended when Plan mode is active.');
|
|
34
|
-
console.log('No manual command installation is required.\n');
|
|
35
|
-
console.log('NEW APPROACH:');
|
|
36
|
-
console.log(' 1. Plan Mode Integration');
|
|
37
|
-
console.log(' - Automatically added to CLAUDE.md on server startup');
|
|
38
|
-
console.log(' - sqlew tools are recommended during plan mode phases\n');
|
|
39
|
-
console.log(' 2. Skills Reference');
|
|
40
|
-
console.log(' - .claude/skills/sqw-plan-guidance/SKILL.md');
|
|
41
|
-
console.log(' - Auto-installed on first server startup\n');
|
|
42
|
-
console.log('For more information, run: npx sqlew init-commands --help\n');
|
|
43
|
-
}
|
|
44
|
-
main();
|
|
45
|
-
export {};
|
|
46
|
-
//# sourceMappingURL=init-commands.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"init-commands.js","sourceRoot":"","sources":["../src/init-commands.ts"],"names":[],"mappings":";AAEA;;;;;;GAMG;AAEH,SAAS,SAAS;IAChB,OAAO,CAAC,GAAG,CAAC;;;;;;;;;;;;;CAab,CAAC,CAAC;AACH,CAAC;AAED,SAAS,IAAI;IACX,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAEnC,IAAI,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;QACnD,SAAS,EAAE,CAAC;QACZ,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAC;IACzC,OAAO,CAAC,GAAG,CAAC,6DAA6D,CAAC,CAAC;IAC3E,OAAO,CAAC,GAAG,CAAC,iFAAiF,CAAC,CAAC;IAC/F,OAAO,CAAC,GAAG,CAAC,+CAA+C,CAAC,CAAC;IAC7D,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;IAC7B,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;IAC1C,OAAO,CAAC,GAAG,CAAC,2DAA2D,CAAC,CAAC;IACzE,OAAO,CAAC,GAAG,CAAC,8DAA8D,CAAC,CAAC;IAC5E,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;IACrC,OAAO,CAAC,GAAG,CAAC,kDAAkD,CAAC,CAAC;IAChE,OAAO,CAAC,GAAG,CAAC,iDAAiD,CAAC,CAAC;IAC/D,OAAO,CAAC,GAAG,CAAC,6DAA6D,CAAC,CAAC;AAC7E,CAAC;AAED,IAAI,EAAE,CAAC"}
|
package/dist/init-skills.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Auto-initialize sqlew skills, CLAUDE.md integration, and hooks on server startup
|
|
3
|
-
* Copies skills from assets if not present, appends to CLAUDE.md if section missing,
|
|
4
|
-
* and sets up Claude Code hooks in settings.local.json (first time only)
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Initialize skills in project's .claude/skills directory
|
|
8
|
-
* Only copies if skill directory doesn't exist
|
|
9
|
-
*/
|
|
10
|
-
export declare function initializeSkills(projectRoot: string): void;
|
|
11
|
-
/**
|
|
12
|
-
* Append Plan Mode Integration section to CLAUDE.md if not present
|
|
13
|
-
*/
|
|
14
|
-
export declare function initializeClaudeMd(projectRoot: string): void;
|
|
15
|
-
/**
|
|
16
|
-
* Initialize all sqlew integrations (skills + CLAUDE.md + hooks + gitignore)
|
|
17
|
-
* Called during server startup
|
|
18
|
-
*/
|
|
19
|
-
export declare function initializeSqlewIntegrations(projectRoot: string): void;
|
|
20
|
-
/**
|
|
21
|
-
* Initialize .gitignore with sqlew auto-generated file entries
|
|
22
|
-
* Only adds entries if not already present
|
|
23
|
-
*/
|
|
24
|
-
export declare function initializeGitignore(projectRoot: string): void;
|
|
25
|
-
//# sourceMappingURL=init-skills.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"init-skills.d.ts","sourceRoot":"","sources":["../src/init-skills.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAoBH;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAuC1D;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAoC5D;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAiBrE;AAeD;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAmC7D"}
|
package/dist/init-skills.js
DELETED
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Auto-initialize sqlew skills, CLAUDE.md integration, and hooks on server startup
|
|
3
|
-
* Copies skills from assets if not present, appends to CLAUDE.md if section missing,
|
|
4
|
-
* and sets up Claude Code hooks in settings.local.json (first time only)
|
|
5
|
-
*/
|
|
6
|
-
import * as fs from 'fs';
|
|
7
|
-
import * as path from 'path';
|
|
8
|
-
import { fileURLToPath } from 'url';
|
|
9
|
-
import { debugLog } from './utils/debug-logger.js';
|
|
10
|
-
import { autoInitializeHooks } from './cli/hooks/init-hooks.js';
|
|
11
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
12
|
-
const __dirname = path.dirname(__filename);
|
|
13
|
-
/**
|
|
14
|
-
* Get path to assets directory (relative to dist/)
|
|
15
|
-
*/
|
|
16
|
-
function getAssetsPath() {
|
|
17
|
-
const distDir = __dirname; // .../dist
|
|
18
|
-
const packageRoot = path.dirname(distDir); // .../mcp-sqlew
|
|
19
|
-
return path.join(packageRoot, 'assets');
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Initialize skills in project's .claude/skills directory
|
|
23
|
-
* Only copies if skill directory doesn't exist
|
|
24
|
-
*/
|
|
25
|
-
export function initializeSkills(projectRoot) {
|
|
26
|
-
const skillsSourceDir = path.join(getAssetsPath(), 'sample-skills');
|
|
27
|
-
const skillsTargetDir = path.join(projectRoot, '.claude', 'skills');
|
|
28
|
-
// Check if source exists
|
|
29
|
-
if (!fs.existsSync(skillsSourceDir)) {
|
|
30
|
-
debugLog('WARN', 'Skills source directory not found', { skillsSourceDir });
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
// Get list of skill directories to copy
|
|
34
|
-
const skillDirs = fs.readdirSync(skillsSourceDir, { withFileTypes: true })
|
|
35
|
-
.filter(dirent => dirent.isDirectory())
|
|
36
|
-
.map(dirent => dirent.name);
|
|
37
|
-
for (const skillName of skillDirs) {
|
|
38
|
-
const sourceSkillDir = path.join(skillsSourceDir, skillName);
|
|
39
|
-
const targetSkillDir = path.join(skillsTargetDir, skillName);
|
|
40
|
-
// Only copy if target doesn't exist
|
|
41
|
-
if (!fs.existsSync(targetSkillDir)) {
|
|
42
|
-
try {
|
|
43
|
-
// Create target directory
|
|
44
|
-
fs.mkdirSync(targetSkillDir, { recursive: true });
|
|
45
|
-
// Copy all files in skill directory
|
|
46
|
-
const files = fs.readdirSync(sourceSkillDir);
|
|
47
|
-
for (const file of files) {
|
|
48
|
-
const sourceFile = path.join(sourceSkillDir, file);
|
|
49
|
-
const targetFile = path.join(targetSkillDir, file);
|
|
50
|
-
fs.copyFileSync(sourceFile, targetFile);
|
|
51
|
-
}
|
|
52
|
-
debugLog('INFO', `Skill initialized: ${skillName}`, { targetSkillDir });
|
|
53
|
-
}
|
|
54
|
-
catch (error) {
|
|
55
|
-
debugLog('WARN', `Failed to initialize skill: ${skillName}`, { error });
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Append Plan Mode Integration section to CLAUDE.md if not present
|
|
62
|
-
*/
|
|
63
|
-
export function initializeClaudeMd(projectRoot) {
|
|
64
|
-
const claudeMdPath = path.join(projectRoot, 'CLAUDE.md');
|
|
65
|
-
const snippetPath = path.join(getAssetsPath(), 'claude-md-snippets', 'plan-mode-integration.md');
|
|
66
|
-
// Check if snippet source exists
|
|
67
|
-
if (!fs.existsSync(snippetPath)) {
|
|
68
|
-
debugLog('WARN', 'CLAUDE.md snippet not found', { snippetPath });
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
|
-
// Check if CLAUDE.md exists
|
|
72
|
-
if (!fs.existsSync(claudeMdPath)) {
|
|
73
|
-
debugLog('INFO', 'CLAUDE.md not found, skipping integration', { claudeMdPath });
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
// Read current CLAUDE.md content
|
|
77
|
-
const currentContent = fs.readFileSync(claudeMdPath, 'utf-8');
|
|
78
|
-
// Check if Plan Mode Integration section already exists
|
|
79
|
-
if (currentContent.includes('## Plan Mode Integration')) {
|
|
80
|
-
debugLog('DEBUG', 'Plan Mode Integration section already present in CLAUDE.md');
|
|
81
|
-
return;
|
|
82
|
-
}
|
|
83
|
-
// Read snippet content
|
|
84
|
-
const snippetContent = fs.readFileSync(snippetPath, 'utf-8');
|
|
85
|
-
// Append snippet to CLAUDE.md
|
|
86
|
-
try {
|
|
87
|
-
const newContent = currentContent.trimEnd() + '\n\n' + snippetContent;
|
|
88
|
-
fs.writeFileSync(claudeMdPath, newContent, 'utf-8');
|
|
89
|
-
debugLog('INFO', 'Plan Mode Integration section added to CLAUDE.md', { claudeMdPath });
|
|
90
|
-
}
|
|
91
|
-
catch (error) {
|
|
92
|
-
debugLog('WARN', 'Failed to update CLAUDE.md', { error });
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Initialize all sqlew integrations (skills + CLAUDE.md + hooks + gitignore)
|
|
97
|
-
* Called during server startup
|
|
98
|
-
*/
|
|
99
|
-
export function initializeSqlewIntegrations(projectRoot) {
|
|
100
|
-
debugLog('DEBUG', 'Initializing sqlew integrations', { projectRoot });
|
|
101
|
-
// Initialize skills
|
|
102
|
-
initializeSkills(projectRoot);
|
|
103
|
-
// Initialize CLAUDE.md integration
|
|
104
|
-
initializeClaudeMd(projectRoot);
|
|
105
|
-
// Initialize Claude Code hooks (first time only)
|
|
106
|
-
const hooksInitialized = autoInitializeHooks(projectRoot);
|
|
107
|
-
if (hooksInitialized) {
|
|
108
|
-
debugLog('INFO', 'Claude Code hooks auto-initialized', { projectRoot });
|
|
109
|
-
}
|
|
110
|
-
// Initialize .gitignore entries for auto-generated files
|
|
111
|
-
initializeGitignore(projectRoot);
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* Files/directories auto-generated by sqlew that should be gitignored
|
|
115
|
-
* These are installed per-project and shouldn't be committed
|
|
116
|
-
*/
|
|
117
|
-
const SQLEW_GITIGNORE_ENTRIES = [
|
|
118
|
-
'.claude/skills/sqlew-decision-format/',
|
|
119
|
-
'.claude/skills/sqlew-plan-guidance/',
|
|
120
|
-
'.claude/commands/sqlew.md',
|
|
121
|
-
];
|
|
122
|
-
/** Marker comment for sqlew section in gitignore */
|
|
123
|
-
const SQLEW_GITIGNORE_MARKER = '# sqlew auto-generated files';
|
|
124
|
-
/**
|
|
125
|
-
* Initialize .gitignore with sqlew auto-generated file entries
|
|
126
|
-
* Only adds entries if not already present
|
|
127
|
-
*/
|
|
128
|
-
export function initializeGitignore(projectRoot) {
|
|
129
|
-
const gitignorePath = path.join(projectRoot, '.gitignore');
|
|
130
|
-
// Check if .gitignore exists
|
|
131
|
-
if (!fs.existsSync(gitignorePath)) {
|
|
132
|
-
debugLog('DEBUG', '.gitignore not found, skipping gitignore update', { projectRoot });
|
|
133
|
-
return;
|
|
134
|
-
}
|
|
135
|
-
// Read current .gitignore content
|
|
136
|
-
let content = fs.readFileSync(gitignorePath, 'utf-8');
|
|
137
|
-
// Check if sqlew section already exists
|
|
138
|
-
if (content.includes(SQLEW_GITIGNORE_MARKER)) {
|
|
139
|
-
debugLog('DEBUG', 'sqlew gitignore section already present');
|
|
140
|
-
return;
|
|
141
|
-
}
|
|
142
|
-
// Build section to add
|
|
143
|
-
const sectionLines = [
|
|
144
|
-
'',
|
|
145
|
-
SQLEW_GITIGNORE_MARKER,
|
|
146
|
-
...SQLEW_GITIGNORE_ENTRIES,
|
|
147
|
-
];
|
|
148
|
-
// Append to .gitignore
|
|
149
|
-
try {
|
|
150
|
-
const newContent = content.trimEnd() + '\n' + sectionLines.join('\n') + '\n';
|
|
151
|
-
fs.writeFileSync(gitignorePath, newContent, 'utf-8');
|
|
152
|
-
debugLog('INFO', 'Added sqlew entries to .gitignore', {
|
|
153
|
-
entries: SQLEW_GITIGNORE_ENTRIES.length
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
catch (error) {
|
|
157
|
-
debugLog('WARN', 'Failed to update .gitignore', { error });
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
//# sourceMappingURL=init-skills.js.map
|
package/dist/init-skills.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"init-skills.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X,CAAC;IAEC,uBAAuB;IACvB,MAAM,YAAY,GAAG;QACnB,EAAE;QACF,sBAAsB;QACtB,GAAG,uBAAuB;KAC3B,CAAC;IAEF,uBAAuB;IACvB,IAAI,CAAC;QACH,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,EAAE,GAAG,IAAI,GAAG,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;QAC7E,EAAE,CAAC,aAAa,CAAC,aAAa,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;QACrD,QAAQ,CAAC,MAAM,EAAE,mCAAmC,EAAE;YACpD,OAAO,EAAE,uBAAuB,CAAC,MAAM;SACxC,CAAC,CAAC;IACL,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,QAAQ,CAAC,MAAM,EAAE,6BAA6B,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IAC/D,CAAC;AACD,CAAC"}
|
package/dist/sync-agents.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Agent synchronization module
|
|
3
|
-
* Syncs specialized agents with config.toml on startup
|
|
4
|
-
* - Copies enabled agents (if missing)
|
|
5
|
-
* - Deletes disabled agents (if present)
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Synchronize agents with config.toml
|
|
9
|
-
* - Copy enabled agents if missing
|
|
10
|
-
* - Delete disabled agents if present
|
|
11
|
-
*/
|
|
12
|
-
export declare function syncAgentsWithConfig(): void;
|
|
13
|
-
//# sourceMappingURL=sync-agents.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sync-agents.d.ts","sourceRoot":"","sources":["../src/sync-agents.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAuFH;;;;GAIG;AACH,wBAAgB,oBAAoB,IAAI,IAAI,CAkF3C"}
|
package/dist/sync-agents.js
DELETED
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Agent synchronization module
|
|
3
|
-
* Syncs specialized agents with config.toml on startup
|
|
4
|
-
* - Copies enabled agents (if missing)
|
|
5
|
-
* - Deletes disabled agents (if present)
|
|
6
|
-
*/
|
|
7
|
-
import * as fs from 'fs';
|
|
8
|
-
import * as path from 'path';
|
|
9
|
-
import { fileURLToPath } from 'url';
|
|
10
|
-
import { createMinimalConfigIfNotExists } from './config/minimal-generator.js';
|
|
11
|
-
import { loadConfigFile, DEFAULT_CONFIG_PATH } from './config/loader.js';
|
|
12
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
13
|
-
const __dirname = path.dirname(__filename);
|
|
14
|
-
/**
|
|
15
|
-
* Check if we're in a git worktree with parent config
|
|
16
|
-
* If so, we should not create local .sqlew/config.toml
|
|
17
|
-
*/
|
|
18
|
-
function hasParentConfig() {
|
|
19
|
-
const cwd = process.cwd();
|
|
20
|
-
const gitPath = path.join(cwd, '.git');
|
|
21
|
-
// Check if .git is a file (worktree) or doesn't exist
|
|
22
|
-
try {
|
|
23
|
-
const stat = fs.statSync(gitPath);
|
|
24
|
-
if (!stat.isFile()) {
|
|
25
|
-
return false; // Regular git repo, not a worktree
|
|
26
|
-
}
|
|
27
|
-
// Read .git file to find main repo
|
|
28
|
-
const gitContent = fs.readFileSync(gitPath, 'utf-8').trim();
|
|
29
|
-
const match = gitContent.match(/^gitdir:\s*(.+)$/);
|
|
30
|
-
if (!match) {
|
|
31
|
-
return false;
|
|
32
|
-
}
|
|
33
|
-
// Parse worktree gitdir path to find main repo
|
|
34
|
-
// Example: gitdir: C:/repo/.git/worktrees/branch-name
|
|
35
|
-
const gitdirPath = match[1];
|
|
36
|
-
const worktreesIndex = gitdirPath.lastIndexOf('/worktrees/');
|
|
37
|
-
if (worktreesIndex === -1) {
|
|
38
|
-
// Windows path fallback
|
|
39
|
-
const winIndex = gitdirPath.lastIndexOf('\\worktrees\\');
|
|
40
|
-
if (winIndex === -1) {
|
|
41
|
-
return false;
|
|
42
|
-
}
|
|
43
|
-
const mainGitDir = gitdirPath.substring(0, winIndex);
|
|
44
|
-
const mainRepoRoot = path.dirname(mainGitDir);
|
|
45
|
-
const mainConfigPath = path.join(mainRepoRoot, DEFAULT_CONFIG_PATH);
|
|
46
|
-
return fs.existsSync(mainConfigPath);
|
|
47
|
-
}
|
|
48
|
-
const mainGitDir = gitdirPath.substring(0, worktreesIndex);
|
|
49
|
-
const mainRepoRoot = path.dirname(mainGitDir);
|
|
50
|
-
const mainConfigPath = path.join(mainRepoRoot, DEFAULT_CONFIG_PATH);
|
|
51
|
-
return fs.existsSync(mainConfigPath);
|
|
52
|
-
}
|
|
53
|
-
catch {
|
|
54
|
-
return false;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
const AGENTS = [
|
|
58
|
-
{ filename: 'sqlew-scrum-master.md', configKey: 'scrum_master', displayName: 'Scrum Master' },
|
|
59
|
-
{ filename: 'sqlew-researcher.md', configKey: 'researcher', displayName: 'Researcher' },
|
|
60
|
-
{ filename: 'sqlew-architect.md', configKey: 'architect', displayName: 'Architect' },
|
|
61
|
-
];
|
|
62
|
-
/**
|
|
63
|
-
* Get source path for agent files
|
|
64
|
-
*/
|
|
65
|
-
function getSourcePath() {
|
|
66
|
-
const distDir = __dirname; // .../dist
|
|
67
|
-
const packageRoot = path.dirname(distDir); // .../mcp-sqlew
|
|
68
|
-
return path.join(packageRoot, 'assets', 'sample-agents');
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Get target path for agents (project-local .claude/agents)
|
|
72
|
-
*/
|
|
73
|
-
function getTargetPath() {
|
|
74
|
-
const projectRoot = process.cwd();
|
|
75
|
-
return path.join(projectRoot, '.claude', 'agents');
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Synchronize agents with config.toml
|
|
79
|
-
* - Copy enabled agents if missing
|
|
80
|
-
* - Delete disabled agents if present
|
|
81
|
-
*/
|
|
82
|
-
export function syncAgentsWithConfig() {
|
|
83
|
-
try {
|
|
84
|
-
// Ensure minimal config.toml exists (skip if using parent config in worktree)
|
|
85
|
-
const projectRoot = process.cwd();
|
|
86
|
-
if (!hasParentConfig()) {
|
|
87
|
-
createMinimalConfigIfNotExists(projectRoot);
|
|
88
|
-
}
|
|
89
|
-
// Load config
|
|
90
|
-
const config = loadConfigFile();
|
|
91
|
-
const agentConfig = config.agents || {};
|
|
92
|
-
const sourcePath = getSourcePath();
|
|
93
|
-
const targetPath = getTargetPath();
|
|
94
|
-
// Verify source directory exists
|
|
95
|
-
if (!fs.existsSync(sourcePath)) {
|
|
96
|
-
console.error(`⚠ Agent source directory not found: ${sourcePath}`);
|
|
97
|
-
return;
|
|
98
|
-
}
|
|
99
|
-
// Ensure target directory exists
|
|
100
|
-
if (!fs.existsSync(targetPath)) {
|
|
101
|
-
fs.mkdirSync(targetPath, { recursive: true });
|
|
102
|
-
}
|
|
103
|
-
const copied = [];
|
|
104
|
-
const deleted = [];
|
|
105
|
-
const skipped = [];
|
|
106
|
-
// Process each agent
|
|
107
|
-
for (const agent of AGENTS) {
|
|
108
|
-
const sourceFile = path.join(sourcePath, agent.filename);
|
|
109
|
-
const targetFile = path.join(targetPath, agent.filename);
|
|
110
|
-
// Check if agent is enabled in config (default: true)
|
|
111
|
-
const isEnabled = agentConfig[agent.configKey] !== false;
|
|
112
|
-
if (isEnabled) {
|
|
113
|
-
// Agent enabled: ensure file exists
|
|
114
|
-
if (!fs.existsSync(targetFile)) {
|
|
115
|
-
// File missing, copy it
|
|
116
|
-
if (fs.existsSync(sourceFile)) {
|
|
117
|
-
fs.copyFileSync(sourceFile, targetFile);
|
|
118
|
-
copied.push(agent.displayName);
|
|
119
|
-
}
|
|
120
|
-
else {
|
|
121
|
-
console.error(`⚠ Source file not found: ${sourceFile}`);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
else {
|
|
125
|
-
// File already exists, skip
|
|
126
|
-
skipped.push(agent.displayName);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
else {
|
|
130
|
-
// Agent disabled: ensure file doesn't exist
|
|
131
|
-
if (fs.existsSync(targetFile)) {
|
|
132
|
-
// File exists, delete it
|
|
133
|
-
fs.unlinkSync(targetFile);
|
|
134
|
-
deleted.push(agent.displayName);
|
|
135
|
-
}
|
|
136
|
-
// else: file doesn't exist, nothing to do
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
// Report changes
|
|
140
|
-
if (copied.length > 0) {
|
|
141
|
-
console.log(`✓ Installed agents: ${copied.join(', ')}`);
|
|
142
|
-
console.log(` Location: ${targetPath}`);
|
|
143
|
-
}
|
|
144
|
-
if (deleted.length > 0) {
|
|
145
|
-
console.log(`✓ Removed agents: ${deleted.join(', ')}`);
|
|
146
|
-
}
|
|
147
|
-
// Show usage hint if any agents were copied
|
|
148
|
-
if (copied.length > 0) {
|
|
149
|
-
console.log(` Use agents with @ prefix: @sqlew-scrum-master, @sqlew-researcher, @sqlew-architect`);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
catch (error) {
|
|
153
|
-
// Don't fail startup if sync fails
|
|
154
|
-
console.error(`⚠ Failed to sync agents: ${error instanceof Error ? error.message : String(error)}`);
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
//# sourceMappingURL=sync-agents.js.map
|