@codemieai/code 0.0.15 → 0.0.17
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/README.md +86 -14
- package/bin/agent-executor.js +7 -28
- package/bin/codemie-claude.js +18 -0
- package/bin/codemie-codex.js +18 -0
- package/bin/codemie-deepagents.js +18 -0
- package/bin/codemie-gemini.js +18 -0
- package/dist/agents/codemie-code/agent.d.ts.map +1 -1
- package/dist/agents/codemie-code/agent.js +5 -34
- package/dist/agents/codemie-code/agent.js.map +1 -1
- package/dist/agents/codemie-code/config.d.ts.map +1 -1
- package/dist/agents/codemie-code/config.js +12 -4
- package/dist/agents/codemie-code/config.js.map +1 -1
- package/dist/agents/codemie-code/tools/planning.d.ts +1 -1
- package/dist/agents/core/AgentCLI.d.ts.map +1 -1
- package/dist/agents/core/AgentCLI.js +30 -63
- package/dist/agents/core/AgentCLI.js.map +1 -1
- package/dist/agents/core/BaseAgentAdapter.d.ts +10 -6
- package/dist/agents/core/BaseAgentAdapter.d.ts.map +1 -1
- package/dist/agents/core/BaseAgentAdapter.js +108 -36
- package/dist/agents/core/BaseAgentAdapter.js.map +1 -1
- package/dist/agents/core/BaseMetricsAdapter.d.ts +64 -0
- package/dist/agents/core/BaseMetricsAdapter.d.ts.map +1 -0
- package/dist/agents/core/BaseMetricsAdapter.js +74 -0
- package/dist/agents/core/BaseMetricsAdapter.js.map +1 -0
- package/dist/agents/core/types.d.ts +1 -0
- package/dist/agents/core/types.d.ts.map +1 -1
- package/dist/agents/plugins/claude.metrics.d.ts +112 -0
- package/dist/agents/plugins/claude.metrics.d.ts.map +1 -0
- package/dist/agents/plugins/claude.metrics.js +700 -0
- package/dist/agents/plugins/claude.metrics.js.map +1 -0
- package/dist/agents/plugins/claude.plugin.d.ts +9 -0
- package/dist/agents/plugins/claude.plugin.d.ts.map +1 -1
- package/dist/agents/plugins/claude.plugin.js +52 -10
- package/dist/agents/plugins/claude.plugin.js.map +1 -1
- package/dist/agents/plugins/codemie-code.plugin.d.ts.map +1 -1
- package/dist/agents/plugins/codemie-code.plugin.js +46 -14
- package/dist/agents/plugins/codemie-code.plugin.js.map +1 -1
- package/dist/agents/plugins/codex.plugin.d.ts.map +1 -1
- package/dist/agents/plugins/codex.plugin.js +2 -4
- package/dist/agents/plugins/codex.plugin.js.map +1 -1
- package/dist/agents/plugins/deepagents.plugin.js +1 -1
- package/dist/agents/plugins/deepagents.plugin.js.map +1 -1
- package/dist/agents/plugins/gemini.plugin.d.ts.map +1 -1
- package/dist/agents/plugins/gemini.plugin.js +1 -8
- package/dist/agents/plugins/gemini.plugin.js.map +1 -1
- package/dist/agents/plugins/history-parser.d.ts +52 -0
- package/dist/agents/plugins/history-parser.d.ts.map +1 -0
- package/dist/agents/plugins/history-parser.js +155 -0
- package/dist/agents/plugins/history-parser.js.map +1 -0
- package/dist/cli/commands/analytics/aggregator.d.ts +58 -0
- package/dist/cli/commands/analytics/aggregator.d.ts.map +1 -0
- package/dist/cli/commands/analytics/aggregator.js +702 -0
- package/dist/cli/commands/analytics/aggregator.js.map +1 -0
- package/dist/cli/commands/analytics/data-loader.d.ts +84 -0
- package/dist/cli/commands/analytics/data-loader.d.ts.map +1 -0
- package/dist/cli/commands/analytics/data-loader.js +211 -0
- package/dist/cli/commands/analytics/data-loader.js.map +1 -0
- package/dist/cli/commands/analytics/exporter.d.ts +20 -0
- package/dist/cli/commands/analytics/exporter.d.ts.map +1 -0
- package/dist/cli/commands/analytics/exporter.js +103 -0
- package/dist/cli/commands/analytics/exporter.js.map +1 -0
- package/dist/cli/commands/analytics/formatter.d.ts +49 -0
- package/dist/cli/commands/analytics/formatter.d.ts.map +1 -0
- package/dist/cli/commands/analytics/formatter.js +309 -0
- package/dist/cli/commands/analytics/formatter.js.map +1 -0
- package/dist/cli/commands/analytics/index.d.ts +6 -0
- package/dist/cli/commands/analytics/index.d.ts.map +1 -0
- package/dist/cli/commands/analytics/index.js +157 -0
- package/dist/cli/commands/analytics/index.js.map +1 -0
- package/dist/cli/commands/analytics/model-normalizer.d.ts +21 -0
- package/dist/cli/commands/analytics/model-normalizer.d.ts.map +1 -0
- package/dist/cli/commands/analytics/model-normalizer.js +44 -0
- package/dist/cli/commands/analytics/model-normalizer.js.map +1 -0
- package/dist/cli/commands/analytics/types.d.ts +188 -0
- package/dist/cli/commands/analytics/types.d.ts.map +1 -0
- package/dist/cli/commands/analytics/types.js +6 -0
- package/dist/cli/commands/analytics/types.js.map +1 -0
- package/dist/cli/commands/auth.d.ts.map +1 -1
- package/dist/cli/commands/auth.js +10 -5
- package/dist/cli/commands/auth.js.map +1 -1
- package/dist/cli/commands/doctor/checks/AIConfigCheck.d.ts.map +1 -1
- package/dist/cli/commands/doctor/checks/AIConfigCheck.js +12 -5
- package/dist/cli/commands/doctor/checks/AIConfigCheck.js.map +1 -1
- package/dist/cli/commands/doctor/checks/AwsCliCheck.d.ts +9 -0
- package/dist/cli/commands/doctor/checks/AwsCliCheck.d.ts.map +1 -0
- package/dist/cli/commands/doctor/checks/AwsCliCheck.js +28 -0
- package/dist/cli/commands/doctor/checks/AwsCliCheck.js.map +1 -0
- package/dist/cli/commands/doctor/checks/PythonCheck.d.ts.map +1 -1
- package/dist/cli/commands/doctor/checks/PythonCheck.js +10 -0
- package/dist/cli/commands/doctor/checks/PythonCheck.js.map +1 -1
- package/dist/cli/commands/doctor/checks/WorkflowsCheck.d.ts.map +1 -1
- package/dist/cli/commands/doctor/checks/WorkflowsCheck.js +2 -1
- package/dist/cli/commands/doctor/checks/WorkflowsCheck.js.map +1 -1
- package/dist/cli/commands/doctor/checks/index.d.ts +1 -0
- package/dist/cli/commands/doctor/checks/index.d.ts.map +1 -1
- package/dist/cli/commands/doctor/checks/index.js +1 -0
- package/dist/cli/commands/doctor/checks/index.js.map +1 -1
- package/dist/cli/commands/doctor/formatter.d.ts +1 -1
- package/dist/cli/commands/doctor/formatter.d.ts.map +1 -1
- package/dist/cli/commands/doctor/formatter.js +1 -6
- package/dist/cli/commands/doctor/formatter.js.map +1 -1
- package/dist/cli/commands/doctor/index.d.ts.map +1 -1
- package/dist/cli/commands/doctor/index.js +107 -10
- package/dist/cli/commands/doctor/index.js.map +1 -1
- package/dist/cli/commands/doctor/type-adapters.d.ts +18 -0
- package/dist/cli/commands/doctor/type-adapters.d.ts.map +1 -0
- package/dist/cli/commands/doctor/type-adapters.js +75 -0
- package/dist/cli/commands/doctor/type-adapters.js.map +1 -0
- package/dist/cli/commands/install.d.ts.map +1 -1
- package/dist/cli/commands/install.js +1 -6
- package/dist/cli/commands/install.js.map +1 -1
- package/dist/cli/commands/list.d.ts.map +1 -1
- package/dist/cli/commands/list.js +0 -5
- package/dist/cli/commands/list.js.map +1 -1
- package/dist/cli/commands/profile.d.ts.map +1 -1
- package/dist/cli/commands/profile.js +130 -92
- package/dist/cli/commands/profile.js.map +1 -1
- package/dist/cli/commands/setup.d.ts.map +1 -1
- package/dist/cli/commands/setup.js +147 -668
- package/dist/cli/commands/setup.js.map +1 -1
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +5 -2
- package/dist/cli/index.js.map +1 -1
- package/dist/env/types.d.ts +14 -2
- package/dist/env/types.d.ts.map +1 -1
- package/dist/env/types.js.map +1 -1
- package/dist/metrics/MetricsOrchestrator.d.ts +67 -0
- package/dist/metrics/MetricsOrchestrator.d.ts.map +1 -0
- package/dist/metrics/MetricsOrchestrator.js +287 -0
- package/dist/metrics/MetricsOrchestrator.js.map +1 -0
- package/dist/metrics/config.d.ts +38 -0
- package/dist/metrics/config.d.ts.map +1 -0
- package/dist/metrics/config.js +80 -0
- package/dist/metrics/config.js.map +1 -0
- package/dist/metrics/core/DeltaWriter.d.ts +49 -0
- package/dist/metrics/core/DeltaWriter.d.ts.map +1 -0
- package/dist/metrics/core/DeltaWriter.js +146 -0
- package/dist/metrics/core/DeltaWriter.js.map +1 -0
- package/dist/metrics/core/FileSnapshotter.d.ts +22 -0
- package/dist/metrics/core/FileSnapshotter.d.ts.map +1 -0
- package/dist/metrics/core/FileSnapshotter.js +74 -0
- package/dist/metrics/core/FileSnapshotter.js.map +1 -0
- package/dist/metrics/core/SessionCorrelator.d.ts +34 -0
- package/dist/metrics/core/SessionCorrelator.d.ts.map +1 -0
- package/dist/metrics/core/SessionCorrelator.js +115 -0
- package/dist/metrics/core/SessionCorrelator.js.map +1 -0
- package/dist/metrics/core/SyncStateManager.d.ts +69 -0
- package/dist/metrics/core/SyncStateManager.d.ts.map +1 -0
- package/dist/metrics/core/SyncStateManager.js +284 -0
- package/dist/metrics/core/SyncStateManager.js.map +1 -0
- package/dist/metrics/index.d.ts +9 -0
- package/dist/metrics/index.d.ts.map +1 -0
- package/dist/metrics/index.js +11 -0
- package/dist/metrics/index.js.map +1 -0
- package/dist/metrics/session/SessionStore.d.ts +43 -0
- package/dist/metrics/session/SessionStore.d.ts.map +1 -0
- package/dist/metrics/session/SessionStore.js +142 -0
- package/dist/metrics/session/SessionStore.js.map +1 -0
- package/dist/metrics/sync/MetricsApiClient.d.ts +32 -0
- package/dist/metrics/sync/MetricsApiClient.d.ts.map +1 -0
- package/dist/metrics/sync/MetricsApiClient.js +155 -0
- package/dist/metrics/sync/MetricsApiClient.js.map +1 -0
- package/dist/metrics/sync/aggregator.d.ts +13 -0
- package/dist/metrics/sync/aggregator.d.ts.map +1 -0
- package/dist/metrics/sync/aggregator.js +196 -0
- package/dist/metrics/sync/aggregator.js.map +1 -0
- package/dist/metrics/sync/index.d.ts +10 -0
- package/dist/metrics/sync/index.d.ts.map +1 -0
- package/dist/metrics/sync/index.js +10 -0
- package/dist/metrics/sync/index.js.map +1 -0
- package/dist/metrics/sync/jsonl-writer.d.ts +28 -0
- package/dist/metrics/sync/jsonl-writer.d.ts.map +1 -0
- package/dist/metrics/sync/jsonl-writer.js +72 -0
- package/dist/metrics/sync/jsonl-writer.js.map +1 -0
- package/dist/metrics/sync/types.d.ts +72 -0
- package/dist/metrics/sync/types.d.ts.map +1 -0
- package/dist/metrics/sync/types.js +7 -0
- package/dist/metrics/sync/types.js.map +1 -0
- package/dist/metrics/types.d.ts +308 -0
- package/dist/metrics/types.d.ts.map +1 -0
- package/dist/metrics/types.js +8 -0
- package/dist/metrics/types.js.map +1 -0
- package/dist/providers/core/base/BaseHealthCheck.d.ts +57 -0
- package/dist/providers/core/base/BaseHealthCheck.d.ts.map +1 -0
- package/dist/providers/core/base/BaseHealthCheck.js +121 -0
- package/dist/providers/core/base/BaseHealthCheck.js.map +1 -0
- package/dist/providers/core/base/BaseModelProxy.d.ts +45 -0
- package/dist/providers/core/base/BaseModelProxy.d.ts.map +1 -0
- package/dist/providers/core/base/BaseModelProxy.js +43 -0
- package/dist/providers/core/base/BaseModelProxy.js.map +1 -0
- package/dist/providers/core/base/http-client.d.ts +57 -0
- package/dist/providers/core/base/http-client.d.ts.map +1 -0
- package/dist/providers/core/base/http-client.js +240 -0
- package/dist/providers/core/base/http-client.js.map +1 -0
- package/dist/providers/core/decorators.d.ts +13 -0
- package/dist/providers/core/decorators.d.ts.map +1 -0
- package/dist/providers/core/decorators.js +15 -0
- package/dist/providers/core/decorators.js.map +1 -0
- package/dist/providers/core/index.d.ts +13 -0
- package/dist/providers/core/index.d.ts.map +1 -0
- package/dist/providers/core/index.js +14 -0
- package/dist/providers/core/index.js.map +1 -0
- package/dist/providers/core/registry.d.ts +66 -0
- package/dist/providers/core/registry.d.ts.map +1 -0
- package/dist/providers/core/registry.js +105 -0
- package/dist/providers/core/registry.js.map +1 -0
- package/dist/providers/core/types.d.ts +285 -0
- package/dist/providers/core/types.d.ts.map +1 -0
- package/dist/providers/core/types.js +7 -0
- package/dist/providers/core/types.js.map +1 -0
- package/dist/providers/index.d.ts +22 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/providers/index.js +24 -0
- package/dist/providers/index.js.map +1 -0
- package/dist/providers/integration/setup-ui.d.ts +76 -0
- package/dist/providers/integration/setup-ui.d.ts.map +1 -0
- package/dist/providers/integration/setup-ui.js +186 -0
- package/dist/providers/integration/setup-ui.js.map +1 -0
- package/dist/providers/plugins/bedrock/bedrock.health.d.ts +53 -0
- package/dist/providers/plugins/bedrock/bedrock.health.d.ts.map +1 -0
- package/dist/providers/plugins/bedrock/bedrock.health.js +115 -0
- package/dist/providers/plugins/bedrock/bedrock.health.js.map +1 -0
- package/dist/providers/plugins/bedrock/bedrock.models.d.ts +26 -0
- package/dist/providers/plugins/bedrock/bedrock.models.d.ts.map +1 -0
- package/dist/providers/plugins/bedrock/bedrock.models.js +89 -0
- package/dist/providers/plugins/bedrock/bedrock.models.js.map +1 -0
- package/dist/providers/plugins/bedrock/bedrock.setup-steps.d.ts +12 -0
- package/dist/providers/plugins/bedrock/bedrock.setup-steps.d.ts.map +1 -0
- package/dist/providers/plugins/bedrock/bedrock.setup-steps.js +308 -0
- package/dist/providers/plugins/bedrock/bedrock.setup-steps.js.map +1 -0
- package/dist/providers/plugins/bedrock/bedrock.template.d.ts +11 -0
- package/dist/providers/plugins/bedrock/bedrock.template.d.ts.map +1 -0
- package/dist/providers/plugins/bedrock/bedrock.template.js +85 -0
- package/dist/providers/plugins/bedrock/bedrock.template.js.map +1 -0
- package/dist/providers/plugins/bedrock/index.d.ts +11 -0
- package/dist/providers/plugins/bedrock/index.d.ts.map +1 -0
- package/dist/providers/plugins/bedrock/index.js +11 -0
- package/dist/providers/plugins/bedrock/index.js.map +1 -0
- package/dist/providers/plugins/litellm/index.d.ts +8 -0
- package/dist/providers/plugins/litellm/index.d.ts.map +1 -0
- package/dist/providers/plugins/litellm/index.js +12 -0
- package/dist/providers/plugins/litellm/index.js.map +1 -0
- package/dist/providers/plugins/litellm/litellm.models.d.ts +27 -0
- package/dist/providers/plugins/litellm/litellm.models.d.ts.map +1 -0
- package/dist/providers/plugins/litellm/litellm.models.js +48 -0
- package/dist/providers/plugins/litellm/litellm.models.js.map +1 -0
- package/dist/providers/plugins/litellm/litellm.setup-steps.d.ts +8 -0
- package/dist/providers/plugins/litellm/litellm.setup-steps.d.ts.map +1 -0
- package/dist/providers/plugins/litellm/litellm.setup-steps.js +52 -0
- package/dist/providers/plugins/litellm/litellm.setup-steps.js.map +1 -0
- package/dist/providers/plugins/litellm/litellm.template.d.ts +11 -0
- package/dist/providers/plugins/litellm/litellm.template.d.ts.map +1 -0
- package/dist/providers/plugins/litellm/litellm.template.js +59 -0
- package/dist/providers/plugins/litellm/litellm.template.js.map +1 -0
- package/dist/providers/plugins/ollama/index.d.ts +11 -0
- package/dist/providers/plugins/ollama/index.d.ts.map +1 -0
- package/dist/providers/plugins/ollama/index.js +11 -0
- package/dist/providers/plugins/ollama/index.js.map +1 -0
- package/dist/providers/plugins/ollama/ollama.health.d.ts +48 -0
- package/dist/providers/plugins/ollama/ollama.health.d.ts.map +1 -0
- package/dist/providers/plugins/ollama/ollama.health.js +87 -0
- package/dist/providers/plugins/ollama/ollama.health.js.map +1 -0
- package/dist/providers/plugins/ollama/ollama.models.d.ts +47 -0
- package/dist/providers/plugins/ollama/ollama.models.d.ts.map +1 -0
- package/dist/providers/plugins/ollama/ollama.models.js +252 -0
- package/dist/providers/plugins/ollama/ollama.models.js.map +1 -0
- package/dist/providers/plugins/ollama/ollama.setup-steps.d.ts +16 -0
- package/dist/providers/plugins/ollama/ollama.setup-steps.d.ts.map +1 -0
- package/dist/providers/plugins/ollama/ollama.setup-steps.js +164 -0
- package/dist/providers/plugins/ollama/ollama.setup-steps.js.map +1 -0
- package/dist/providers/plugins/ollama/ollama.template.d.ts +11 -0
- package/dist/providers/plugins/ollama/ollama.template.d.ts.map +1 -0
- package/dist/providers/plugins/ollama/ollama.template.js +89 -0
- package/dist/providers/plugins/ollama/ollama.template.js.map +1 -0
- package/dist/providers/plugins/sso/index.d.ts +12 -0
- package/dist/providers/plugins/sso/index.d.ts.map +1 -0
- package/dist/providers/plugins/sso/index.js +12 -0
- package/dist/providers/plugins/sso/index.js.map +1 -0
- package/dist/providers/plugins/sso/sso.auth.d.ts +50 -0
- package/dist/providers/plugins/sso/sso.auth.d.ts.map +1 -0
- package/dist/{utils/sso-auth.js → providers/plugins/sso/sso.auth.js} +37 -2
- package/dist/providers/plugins/sso/sso.auth.js.map +1 -0
- package/dist/providers/plugins/sso/sso.health.d.ts +44 -0
- package/dist/providers/plugins/sso/sso.health.d.ts.map +1 -0
- package/dist/providers/plugins/sso/sso.health.js +178 -0
- package/dist/providers/plugins/sso/sso.health.js.map +1 -0
- package/dist/providers/plugins/sso/sso.http-client.d.ts +24 -0
- package/dist/providers/plugins/sso/sso.http-client.d.ts.map +1 -0
- package/dist/providers/plugins/sso/sso.http-client.js +193 -0
- package/dist/providers/plugins/sso/sso.http-client.js.map +1 -0
- package/dist/providers/plugins/sso/sso.models.d.ts +48 -0
- package/dist/providers/plugins/sso/sso.models.d.ts.map +1 -0
- package/dist/providers/plugins/sso/sso.models.js +139 -0
- package/dist/providers/plugins/sso/sso.models.js.map +1 -0
- package/dist/providers/plugins/sso/sso.setup-steps.d.ts +16 -0
- package/dist/providers/plugins/sso/sso.setup-steps.d.ts.map +1 -0
- package/dist/providers/plugins/sso/sso.setup-steps.js +145 -0
- package/dist/providers/plugins/sso/sso.setup-steps.js.map +1 -0
- package/dist/providers/plugins/sso/sso.template.d.ts +11 -0
- package/dist/providers/plugins/sso/sso.template.d.ts.map +1 -0
- package/dist/providers/plugins/sso/sso.template.js +35 -0
- package/dist/providers/plugins/sso/sso.template.js.map +1 -0
- package/dist/proxy/errors.d.ts.map +1 -0
- package/dist/proxy/errors.js.map +1 -0
- package/dist/proxy/http-client.d.ts.map +1 -0
- package/dist/{utils/proxy → proxy}/http-client.js +50 -15
- package/dist/proxy/http-client.js.map +1 -0
- package/dist/proxy/plugins/endpoint-blocker.plugin.d.ts +19 -0
- package/dist/proxy/plugins/endpoint-blocker.plugin.d.ts.map +1 -0
- package/dist/proxy/plugins/endpoint-blocker.plugin.js +61 -0
- package/dist/proxy/plugins/endpoint-blocker.plugin.js.map +1 -0
- package/dist/proxy/plugins/header-injection.plugin.d.ts.map +1 -0
- package/dist/{utils/proxy → proxy}/plugins/header-injection.plugin.js +10 -3
- package/dist/proxy/plugins/header-injection.plugin.js.map +1 -0
- package/dist/{utils/proxy → proxy}/plugins/index.d.ts +4 -2
- package/dist/proxy/plugins/index.d.ts.map +1 -0
- package/dist/{utils/proxy → proxy}/plugins/index.js +7 -5
- package/dist/proxy/plugins/index.js.map +1 -0
- package/dist/proxy/plugins/logging.plugin.d.ts +22 -0
- package/dist/proxy/plugins/logging.plugin.d.ts.map +1 -0
- package/dist/proxy/plugins/logging.plugin.js +156 -0
- package/dist/proxy/plugins/logging.plugin.js.map +1 -0
- package/dist/proxy/plugins/metrics-sync.plugin.d.ts +33 -0
- package/dist/proxy/plugins/metrics-sync.plugin.d.ts.map +1 -0
- package/dist/proxy/plugins/metrics-sync.plugin.js +310 -0
- package/dist/proxy/plugins/metrics-sync.plugin.js.map +1 -0
- package/dist/proxy/plugins/registry.d.ts.map +1 -0
- package/dist/{utils/proxy → proxy}/plugins/registry.js +9 -2
- package/dist/proxy/plugins/registry.js.map +1 -0
- package/dist/proxy/plugins/sso-auth.plugin.d.ts.map +1 -0
- package/dist/{utils/proxy → proxy}/plugins/sso-auth.plugin.js +1 -1
- package/dist/proxy/plugins/sso-auth.plugin.js.map +1 -0
- package/dist/{utils/proxy → proxy}/plugins/types.d.ts +8 -4
- package/dist/proxy/plugins/types.d.ts.map +1 -0
- package/dist/proxy/plugins/types.js.map +1 -0
- package/dist/{utils/proxy → proxy}/types.d.ts +7 -0
- package/dist/proxy/types.d.ts.map +1 -0
- package/dist/proxy/types.js.map +1 -0
- package/dist/utils/ascii-logo.d.ts +21 -0
- package/dist/utils/ascii-logo.d.ts.map +1 -0
- package/dist/utils/ascii-logo.js +75 -0
- package/dist/utils/ascii-logo.js.map +1 -0
- package/dist/utils/codemie-proxy.d.ts +2 -7
- package/dist/utils/codemie-proxy.d.ts.map +1 -1
- package/dist/utils/codemie-proxy.js +56 -61
- package/dist/utils/codemie-proxy.js.map +1 -1
- package/dist/utils/config-loader.d.ts +1 -6
- package/dist/utils/config-loader.d.ts.map +1 -1
- package/dist/utils/config-loader.js +49 -93
- package/dist/utils/config-loader.js.map +1 -1
- package/dist/utils/credential-store.d.ts +1 -1
- package/dist/utils/credential-store.d.ts.map +1 -1
- package/dist/utils/exec.d.ts +11 -0
- package/dist/utils/exec.d.ts.map +1 -1
- package/dist/utils/exec.js +17 -1
- package/dist/utils/exec.js.map +1 -1
- package/dist/utils/goodbye-messages.d.ts +13 -0
- package/dist/utils/goodbye-messages.d.ts.map +1 -0
- package/dist/utils/goodbye-messages.js +245 -0
- package/dist/utils/goodbye-messages.js.map +1 -0
- package/dist/utils/json-parser.d.ts +52 -0
- package/dist/utils/json-parser.d.ts.map +1 -0
- package/dist/utils/json-parser.js +126 -0
- package/dist/utils/json-parser.js.map +1 -0
- package/dist/utils/logger.d.ts +37 -1
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/logger.js +92 -22
- package/dist/utils/logger.js.map +1 -1
- package/dist/utils/sanitize.d.ts.map +1 -1
- package/dist/utils/sanitize.js +0 -1
- package/dist/utils/sanitize.js.map +1 -1
- package/dist/utils/which.d.ts +20 -0
- package/dist/utils/which.d.ts.map +1 -0
- package/dist/utils/which.js +47 -0
- package/dist/utils/which.js.map +1 -0
- package/package.json +10 -5
- package/dist/analytics/aggregation/adapters/claude.adapter.d.ts +0 -37
- package/dist/analytics/aggregation/adapters/claude.adapter.d.ts.map +0 -1
- package/dist/analytics/aggregation/adapters/claude.adapter.js +0 -531
- package/dist/analytics/aggregation/adapters/claude.adapter.js.map +0 -1
- package/dist/analytics/aggregation/adapters/codex.adapter.d.ts +0 -25
- package/dist/analytics/aggregation/adapters/codex.adapter.d.ts.map +0 -1
- package/dist/analytics/aggregation/adapters/codex.adapter.js +0 -396
- package/dist/analytics/aggregation/adapters/codex.adapter.js.map +0 -1
- package/dist/analytics/aggregation/adapters/gemini.adapter.d.ts +0 -36
- package/dist/analytics/aggregation/adapters/gemini.adapter.d.ts.map +0 -1
- package/dist/analytics/aggregation/adapters/gemini.adapter.js +0 -365
- package/dist/analytics/aggregation/adapters/gemini.adapter.js.map +0 -1
- package/dist/analytics/aggregation/adapters/index.d.ts +0 -7
- package/dist/analytics/aggregation/adapters/index.d.ts.map +0 -1
- package/dist/analytics/aggregation/adapters/index.js +0 -7
- package/dist/analytics/aggregation/adapters/index.js.map +0 -1
- package/dist/analytics/aggregation/aggregator.d.ts +0 -49
- package/dist/analytics/aggregation/aggregator.d.ts.map +0 -1
- package/dist/analytics/aggregation/aggregator.js +0 -239
- package/dist/analytics/aggregation/aggregator.js.map +0 -1
- package/dist/analytics/aggregation/core/BaseAnalyticsAdapter.d.ts +0 -99
- package/dist/analytics/aggregation/core/BaseAnalyticsAdapter.d.ts.map +0 -1
- package/dist/analytics/aggregation/core/BaseAnalyticsAdapter.js +0 -110
- package/dist/analytics/aggregation/core/BaseAnalyticsAdapter.js.map +0 -1
- package/dist/analytics/aggregation/core/adapter.interface.d.ts +0 -76
- package/dist/analytics/aggregation/core/adapter.interface.d.ts.map +0 -1
- package/dist/analytics/aggregation/core/adapter.interface.js +0 -9
- package/dist/analytics/aggregation/core/adapter.interface.js.map +0 -1
- package/dist/analytics/aggregation/core/aggregation-utils.d.ts +0 -86
- package/dist/analytics/aggregation/core/aggregation-utils.d.ts.map +0 -1
- package/dist/analytics/aggregation/core/aggregation-utils.js +0 -126
- package/dist/analytics/aggregation/core/aggregation-utils.js.map +0 -1
- package/dist/analytics/aggregation/core/discovery.d.ts +0 -40
- package/dist/analytics/aggregation/core/discovery.d.ts.map +0 -1
- package/dist/analytics/aggregation/core/discovery.js +0 -132
- package/dist/analytics/aggregation/core/discovery.js.map +0 -1
- package/dist/analytics/aggregation/core/file-utils.d.ts +0 -24
- package/dist/analytics/aggregation/core/file-utils.d.ts.map +0 -1
- package/dist/analytics/aggregation/core/file-utils.js +0 -143
- package/dist/analytics/aggregation/core/file-utils.js.map +0 -1
- package/dist/analytics/aggregation/core/index.d.ts +0 -14
- package/dist/analytics/aggregation/core/index.d.ts.map +0 -1
- package/dist/analytics/aggregation/core/index.js +0 -14
- package/dist/analytics/aggregation/core/index.js.map +0 -1
- package/dist/analytics/aggregation/core/project-mapping.d.ts +0 -50
- package/dist/analytics/aggregation/core/project-mapping.d.ts.map +0 -1
- package/dist/analytics/aggregation/core/project-mapping.js +0 -102
- package/dist/analytics/aggregation/core/project-mapping.js.map +0 -1
- package/dist/analytics/aggregation/core/streaming.d.ts +0 -26
- package/dist/analytics/aggregation/core/streaming.d.ts.map +0 -1
- package/dist/analytics/aggregation/core/streaming.js +0 -58
- package/dist/analytics/aggregation/core/streaming.js.map +0 -1
- package/dist/analytics/aggregation/core/user-prompt-source.d.ts +0 -81
- package/dist/analytics/aggregation/core/user-prompt-source.d.ts.map +0 -1
- package/dist/analytics/aggregation/core/user-prompt-source.js +0 -69
- package/dist/analytics/aggregation/core/user-prompt-source.js.map +0 -1
- package/dist/analytics/aggregation/core/user-prompt-sources/json.d.ts +0 -49
- package/dist/analytics/aggregation/core/user-prompt-sources/json.d.ts.map +0 -1
- package/dist/analytics/aggregation/core/user-prompt-sources/json.js +0 -66
- package/dist/analytics/aggregation/core/user-prompt-sources/json.js.map +0 -1
- package/dist/analytics/aggregation/core/user-prompt-sources/jsonl.d.ts +0 -43
- package/dist/analytics/aggregation/core/user-prompt-sources/jsonl.d.ts.map +0 -1
- package/dist/analytics/aggregation/core/user-prompt-sources/jsonl.js +0 -56
- package/dist/analytics/aggregation/core/user-prompt-sources/jsonl.js.map +0 -1
- package/dist/analytics/aggregation/index.d.ts +0 -8
- package/dist/analytics/aggregation/index.d.ts.map +0 -1
- package/dist/analytics/aggregation/index.js +0 -8
- package/dist/analytics/aggregation/index.js.map +0 -1
- package/dist/analytics/aggregation/types.d.ts +0 -278
- package/dist/analytics/aggregation/types.d.ts.map +0 -1
- package/dist/analytics/aggregation/types.js +0 -8
- package/dist/analytics/aggregation/types.js.map +0 -1
- package/dist/analytics/collector.d.ts +0 -46
- package/dist/analytics/collector.d.ts.map +0 -1
- package/dist/analytics/collector.js +0 -83
- package/dist/analytics/collector.js.map +0 -1
- package/dist/analytics/config.d.ts +0 -15
- package/dist/analytics/config.d.ts.map +0 -1
- package/dist/analytics/config.js +0 -65
- package/dist/analytics/config.js.map +0 -1
- package/dist/analytics/index.d.ts +0 -99
- package/dist/analytics/index.d.ts.map +0 -1
- package/dist/analytics/index.js +0 -288
- package/dist/analytics/index.js.map +0 -1
- package/dist/analytics/plugins/api-metrics.plugin.d.ts +0 -26
- package/dist/analytics/plugins/api-metrics.plugin.d.ts.map +0 -1
- package/dist/analytics/plugins/api-metrics.plugin.js +0 -97
- package/dist/analytics/plugins/api-metrics.plugin.js.map +0 -1
- package/dist/analytics/plugins/index.d.ts +0 -15
- package/dist/analytics/plugins/index.d.ts.map +0 -1
- package/dist/analytics/plugins/index.js +0 -15
- package/dist/analytics/plugins/index.js.map +0 -1
- package/dist/analytics/plugins/model-metrics.plugin.d.ts +0 -39
- package/dist/analytics/plugins/model-metrics.plugin.d.ts.map +0 -1
- package/dist/analytics/plugins/model-metrics.plugin.js +0 -105
- package/dist/analytics/plugins/model-metrics.plugin.js.map +0 -1
- package/dist/analytics/plugins/provider-metrics.plugin.d.ts +0 -41
- package/dist/analytics/plugins/provider-metrics.plugin.d.ts.map +0 -1
- package/dist/analytics/plugins/provider-metrics.plugin.js +0 -123
- package/dist/analytics/plugins/provider-metrics.plugin.js.map +0 -1
- package/dist/analytics/plugins/types.d.ts +0 -61
- package/dist/analytics/plugins/types.d.ts.map +0 -1
- package/dist/analytics/plugins/types.js +0 -54
- package/dist/analytics/plugins/types.js.map +0 -1
- package/dist/analytics/privacy.d.ts +0 -10
- package/dist/analytics/privacy.d.ts.map +0 -1
- package/dist/analytics/privacy.js +0 -20
- package/dist/analytics/privacy.js.map +0 -1
- package/dist/analytics/remote-submission/cursor-manager.d.ts +0 -71
- package/dist/analytics/remote-submission/cursor-manager.d.ts.map +0 -1
- package/dist/analytics/remote-submission/cursor-manager.js +0 -204
- package/dist/analytics/remote-submission/cursor-manager.js.map +0 -1
- package/dist/analytics/remote-submission/index.d.ts +0 -12
- package/dist/analytics/remote-submission/index.d.ts.map +0 -1
- package/dist/analytics/remote-submission/index.js +0 -11
- package/dist/analytics/remote-submission/index.js.map +0 -1
- package/dist/analytics/remote-submission/lock-manager.d.ts +0 -71
- package/dist/analytics/remote-submission/lock-manager.d.ts.map +0 -1
- package/dist/analytics/remote-submission/lock-manager.js +0 -238
- package/dist/analytics/remote-submission/lock-manager.js.map +0 -1
- package/dist/analytics/remote-submission/metric-transformer.d.ts +0 -49
- package/dist/analytics/remote-submission/metric-transformer.d.ts.map +0 -1
- package/dist/analytics/remote-submission/metric-transformer.js +0 -175
- package/dist/analytics/remote-submission/metric-transformer.js.map +0 -1
- package/dist/analytics/remote-submission/submitter.d.ts +0 -78
- package/dist/analytics/remote-submission/submitter.d.ts.map +0 -1
- package/dist/analytics/remote-submission/submitter.js +0 -381
- package/dist/analytics/remote-submission/submitter.js.map +0 -1
- package/dist/analytics/remote-submission/types.d.ts +0 -169
- package/dist/analytics/remote-submission/types.d.ts.map +0 -1
- package/dist/analytics/remote-submission/types.js +0 -13
- package/dist/analytics/remote-submission/types.js.map +0 -1
- package/dist/analytics/session.d.ts +0 -56
- package/dist/analytics/session.d.ts.map +0 -1
- package/dist/analytics/session.js +0 -95
- package/dist/analytics/session.js.map +0 -1
- package/dist/analytics/types.d.ts +0 -104
- package/dist/analytics/types.d.ts.map +0 -1
- package/dist/analytics/types.js +0 -15
- package/dist/analytics/types.js.map +0 -1
- package/dist/analytics/writer.d.ts +0 -18
- package/dist/analytics/writer.d.ts.map +0 -1
- package/dist/analytics/writer.js +0 -44
- package/dist/analytics/writer.js.map +0 -1
- package/dist/cli/commands/analytics.d.ts +0 -3
- package/dist/cli/commands/analytics.d.ts.map +0 -1
- package/dist/cli/commands/analytics.js +0 -748
- package/dist/cli/commands/analytics.js.map +0 -1
- package/dist/cli/commands/doctor/providers/AIRunSSOProviderCheck.d.ts +0 -11
- package/dist/cli/commands/doctor/providers/AIRunSSOProviderCheck.d.ts.map +0 -1
- package/dist/cli/commands/doctor/providers/AIRunSSOProviderCheck.js +0 -264
- package/dist/cli/commands/doctor/providers/AIRunSSOProviderCheck.js.map +0 -1
- package/dist/cli/commands/doctor/providers/BaseProviderCheck.d.ts +0 -12
- package/dist/cli/commands/doctor/providers/BaseProviderCheck.d.ts.map +0 -1
- package/dist/cli/commands/doctor/providers/BaseProviderCheck.js +0 -12
- package/dist/cli/commands/doctor/providers/BaseProviderCheck.js.map +0 -1
- package/dist/cli/commands/doctor/providers/StandardProviderCheck.d.ts +0 -11
- package/dist/cli/commands/doctor/providers/StandardProviderCheck.d.ts.map +0 -1
- package/dist/cli/commands/doctor/providers/StandardProviderCheck.js +0 -97
- package/dist/cli/commands/doctor/providers/StandardProviderCheck.js.map +0 -1
- package/dist/cli/commands/doctor/providers/index.d.ts +0 -30
- package/dist/cli/commands/doctor/providers/index.d.ts.map +0 -1
- package/dist/cli/commands/doctor/providers/index.js +0 -66
- package/dist/cli/commands/doctor/providers/index.js.map +0 -1
- package/dist/types/sso.d.ts +0 -42
- package/dist/types/sso.d.ts.map +0 -1
- package/dist/types/sso.js +0 -2
- package/dist/types/sso.js.map +0 -1
- package/dist/utils/analytics-reader.d.ts +0 -117
- package/dist/utils/analytics-reader.d.ts.map +0 -1
- package/dist/utils/analytics-reader.js +0 -421
- package/dist/utils/analytics-reader.js.map +0 -1
- package/dist/utils/async-tips.d.ts +0 -64
- package/dist/utils/async-tips.d.ts.map +0 -1
- package/dist/utils/async-tips.js +0 -203
- package/dist/utils/async-tips.js.map +0 -1
- package/dist/utils/codemie-integration-validator.d.ts +0 -18
- package/dist/utils/codemie-integration-validator.d.ts.map +0 -1
- package/dist/utils/codemie-integration-validator.js +0 -119
- package/dist/utils/codemie-integration-validator.js.map +0 -1
- package/dist/utils/codemie-model-fetcher.d.ts +0 -11
- package/dist/utils/codemie-model-fetcher.d.ts.map +0 -1
- package/dist/utils/codemie-model-fetcher.js +0 -317
- package/dist/utils/codemie-model-fetcher.js.map +0 -1
- package/dist/utils/date-formatter.d.ts +0 -88
- package/dist/utils/date-formatter.d.ts.map +0 -1
- package/dist/utils/date-formatter.js +0 -133
- package/dist/utils/date-formatter.js.map +0 -1
- package/dist/utils/health-checker.d.ts +0 -20
- package/dist/utils/health-checker.d.ts.map +0 -1
- package/dist/utils/health-checker.js +0 -172
- package/dist/utils/health-checker.js.map +0 -1
- package/dist/utils/model-fetcher.d.ts +0 -21
- package/dist/utils/model-fetcher.d.ts.map +0 -1
- package/dist/utils/model-fetcher.js +0 -148
- package/dist/utils/model-fetcher.js.map +0 -1
- package/dist/utils/proxy/errors.d.ts.map +0 -1
- package/dist/utils/proxy/errors.js.map +0 -1
- package/dist/utils/proxy/http-client.d.ts.map +0 -1
- package/dist/utils/proxy/http-client.js.map +0 -1
- package/dist/utils/proxy/plugins/analytics.plugin.d.ts +0 -19
- package/dist/utils/proxy/plugins/analytics.plugin.d.ts.map +0 -1
- package/dist/utils/proxy/plugins/analytics.plugin.js +0 -84
- package/dist/utils/proxy/plugins/analytics.plugin.js.map +0 -1
- package/dist/utils/proxy/plugins/header-injection.plugin.d.ts.map +0 -1
- package/dist/utils/proxy/plugins/header-injection.plugin.js.map +0 -1
- package/dist/utils/proxy/plugins/index.d.ts.map +0 -1
- package/dist/utils/proxy/plugins/index.js.map +0 -1
- package/dist/utils/proxy/plugins/registry.d.ts.map +0 -1
- package/dist/utils/proxy/plugins/registry.js.map +0 -1
- package/dist/utils/proxy/plugins/sso-auth.plugin.d.ts.map +0 -1
- package/dist/utils/proxy/plugins/sso-auth.plugin.js.map +0 -1
- package/dist/utils/proxy/plugins/types.d.ts.map +0 -1
- package/dist/utils/proxy/plugins/types.js.map +0 -1
- package/dist/utils/proxy/types.d.ts.map +0 -1
- package/dist/utils/proxy/types.js.map +0 -1
- package/dist/utils/sso-auth.d.ts +0 -15
- package/dist/utils/sso-auth.d.ts.map +0 -1
- package/dist/utils/sso-auth.js.map +0 -1
- package/dist/utils/tips.d.ts +0 -35
- package/dist/utils/tips.d.ts.map +0 -1
- package/dist/utils/tips.js +0 -93
- package/dist/utils/tips.js.map +0 -1
- /package/dist/{utils/proxy → proxy}/errors.d.ts +0 -0
- /package/dist/{utils/proxy → proxy}/errors.js +0 -0
- /package/dist/{utils/proxy → proxy}/http-client.d.ts +0 -0
- /package/dist/{utils/proxy → proxy}/plugins/header-injection.plugin.d.ts +0 -0
- /package/dist/{utils/proxy → proxy}/plugins/registry.d.ts +0 -0
- /package/dist/{utils/proxy → proxy}/plugins/sso-auth.plugin.d.ts +0 -0
- /package/dist/{utils/proxy → proxy}/plugins/types.js +0 -0
- /package/dist/{utils/proxy → proxy}/types.js +0 -0
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Easter egg messages for session lifecycle
|
|
3
|
+
* Randomly selected to add personality to the CLI
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Welcome messages shown at session start
|
|
7
|
+
*/
|
|
8
|
+
const WELCOME_MESSAGES = [
|
|
9
|
+
// Motivational
|
|
10
|
+
'🚀 Ready to build something amazing. Every great application started with a single line of code.',
|
|
11
|
+
'✨ Let\'s create something extraordinary. The world is waiting for what only you can build.',
|
|
12
|
+
'🪄 Time to make magic happen. Transform your vision into reality, one function at a time.',
|
|
13
|
+
'💡 Your next breakthrough starts now. Innovation is just a keystroke away.',
|
|
14
|
+
'🎯 Let\'s turn ideas into reality. The gap between imagination and implementation is just code.',
|
|
15
|
+
'⚡ Innovation mode: activated. Let\'s redefine what\'s possible with technology.',
|
|
16
|
+
'🌍 Ready to change the world? The most powerful tool for change is the code you write today.',
|
|
17
|
+
'🔮 Let\'s build the future. Every line of code you write today shapes tomorrow\'s reality.',
|
|
18
|
+
'🎨 Your creativity, my assistance. Together, we\'ll craft something that matters.',
|
|
19
|
+
'💫 Dream it. Code it. Ship it. The journey from concept to production starts here.',
|
|
20
|
+
// Energetic
|
|
21
|
+
'🔥 Let\'s go! The momentum starts now, and nothing can stop us.',
|
|
22
|
+
'⚡ Fire up those neurons. Your brain and my processing power make an unstoppable team.',
|
|
23
|
+
'🚢 Time to ship some code. Every deployment is a step toward excellence.',
|
|
24
|
+
'💪 Let\'s make this happen. Determination plus execution equals success.',
|
|
25
|
+
'👍 Ready when you are. Your ambition sets the pace, I\'ll match your energy.',
|
|
26
|
+
'🚀 Engines engaged. Prepare for liftoff into productive excellence.',
|
|
27
|
+
'✅ All systems go. Every tool is loaded, every API is primed, let\'s execute.',
|
|
28
|
+
'⚡ Let\'s do this thing. Action beats perfection every single time.',
|
|
29
|
+
'🏎️ Buckle up, here we go. Fast, focused, and ready to deliver results.',
|
|
30
|
+
'🚀 Full speed ahead. Velocity matters, let\'s maximize our throughput.',
|
|
31
|
+
// Friendly
|
|
32
|
+
'👋 Hello, builder. It\'s good to have you back in the chair where great things happen.',
|
|
33
|
+
'🎉 Welcome back, creator. Your last session ended strong, let\'s top it today.',
|
|
34
|
+
'😊 Good to see you again. Ready to pick up where we left off and keep building?',
|
|
35
|
+
'🤝 Let\'s build together. Two minds, one goal, infinite possibilities.',
|
|
36
|
+
'🤖 Your AI pair programmer is ready. Let\'s write code that makes us both proud.',
|
|
37
|
+
'🙌 At your service. Whatever you need to build today, I\'m here to help.',
|
|
38
|
+
'💪 Ready to help you succeed. Your goals are my mission, let\'s achieve them.',
|
|
39
|
+
'👥 Let\'s collaborate. The best code is written when humans and AI work in harmony.',
|
|
40
|
+
'🧠 Two minds are better than one. Your intuition plus my capabilities equals magic.',
|
|
41
|
+
'🤖 Your coding companion is here. Think of me as your always-available teammate.',
|
|
42
|
+
// Professional
|
|
43
|
+
'⚙️ Session initialized. All systems operational, awaiting your first command.',
|
|
44
|
+
'🎯 Standing by for instructions. Configuration loaded, tools ready, let\'s begin.',
|
|
45
|
+
'📋 Ready for your next command. Efficiency mode enabled, productivity maximized.',
|
|
46
|
+
'✅ System ready. All dependencies resolved, environment configured, let\'s proceed.',
|
|
47
|
+
'🤖 Agent online. Neural networks warmed up, ready to assist with your development workflow.',
|
|
48
|
+
'💭 Awaiting your brilliant ideas. The canvas is blank, let\'s paint it with elegant code.',
|
|
49
|
+
'✅ Configuration loaded successfully. Your preferences are set, environment is optimized.',
|
|
50
|
+
'▶️ Ready to execute. Point me in any direction, I\'ll help you get there.',
|
|
51
|
+
'🔧 All tools loaded and ready. Filesystem, git, shell access - everything at your command.',
|
|
52
|
+
'⚡ Primed for productivity. Let\'s turn your TODO list into a DONE list.',
|
|
53
|
+
// Playful
|
|
54
|
+
'📝 Let\'s write some poetry... in code. Elegance and functionality in perfect harmony.',
|
|
55
|
+
'🐛 Time to wrangle some bugs. They can run, but they can\'t hide from our debugging skills.',
|
|
56
|
+
'📞 The code is calling. And it\'s asking for refactoring, new features, and your genius.',
|
|
57
|
+
'🗺️ Adventure awaits in your terminal. Uncharted codebases and undiscovered solutions ahead.',
|
|
58
|
+
'☕ Let\'s turn coffee into code. The ancient alchemy of software development begins.',
|
|
59
|
+
'🐛 Debugging mode: optional. Let\'s write it right the first time today.',
|
|
60
|
+
'⭐ May the code be with you. And also with your test coverage, deployment pipeline, and uptime.',
|
|
61
|
+
'🧠 Ready to compile some genius. Your thoughts into instructions, let\'s make it happen.',
|
|
62
|
+
'🤖 Let\'s make the machines do our bidding. Automation is just structured laziness, and it\'s beautiful.',
|
|
63
|
+
'🧙 Code wizard mode: activated. Wave your keyboard like a wand and watch the magic unfold.',
|
|
64
|
+
// Confident
|
|
65
|
+
'💪 You\'ve got this. You\'ve solved harder problems before, this one doesn\'t stand a chance.',
|
|
66
|
+
'🔥 Let\'s crush it. Today is the day we turn impossible into inevitable.',
|
|
67
|
+
'🌟 Today\'s the day. The day that code gets written, bugs get fixed, features get shipped.',
|
|
68
|
+
'🎯 Show them what you\'re made of. Skill, determination, and a dash of caffeine.',
|
|
69
|
+
'📈 Time to level up. Your next commit is going to be your best commit.',
|
|
70
|
+
'🏆 Let\'s make it legendary. Not good code, not great code, but legendary code.',
|
|
71
|
+
'👑 Ready to dominate. This codebase won\'t know what hit it when we\'re done.',
|
|
72
|
+
'🅰️ Bring your A-game. Excellence isn\'t an accident, it\'s a choice we make right now.',
|
|
73
|
+
'📊 Let\'s set the bar higher. Yesterday\'s best is today\'s baseline.',
|
|
74
|
+
'🚀 Time to exceed expectations. Theirs, yours, and even mine.',
|
|
75
|
+
// Inspiring
|
|
76
|
+
'✍️ Every line of code matters. What you write today might run for years, make it count.',
|
|
77
|
+
'👣 Small steps, big impact. Refactoring one function can cascade into system-wide improvements.',
|
|
78
|
+
'📈 Progress over perfection. Ship it now, improve it later, but always keep moving forward.',
|
|
79
|
+
'🔮 You\'re building tomorrow, today. The future isn\'t something that happens, it\'s something you code.',
|
|
80
|
+
'🌟 The best code is yet to come. With each keystroke, you\'re getting better at your craft.',
|
|
81
|
+
'🎯 Your vision deserves great execution. Dreams are worthless without the discipline to build them.',
|
|
82
|
+
'⭐ Excellence is a habit. Great developers aren\'t born, they\'re built through consistent practice.',
|
|
83
|
+
'🔍 Details make the difference. Between working code and exceptional code lies attention.',
|
|
84
|
+
'🥇 Quality first, always. Fast, cheap, good - you can have all three if you plan it right.',
|
|
85
|
+
'🎨 Let\'s craft something beautiful. Code is poetry that machines execute and humans maintain.',
|
|
86
|
+
// Yoda Style
|
|
87
|
+
'🧘 Begin, we shall. Strong with the code, you are. Great things today, we will build.',
|
|
88
|
+
'⚡ Ready you are, yes. The force of logic and algorithms, with you it flows.',
|
|
89
|
+
'🌌 Much to learn, you have. But learn you will. Code the path to wisdom, it is.',
|
|
90
|
+
'🎯 Do or do not. There is no try. Commit your changes, you must.',
|
|
91
|
+
'🔮 See the future of your code, I can. Bright, it is. Ship it, you should.',
|
|
92
|
+
'🧠 Powerful you have become. The debugger, your ally. Fear the stack trace, you need not.',
|
|
93
|
+
'✨ In the refactoring, wisdom lies. Clean code, the way to mastery it is.',
|
|
94
|
+
'🌊 Flow like water, your code must. Rigid solutions break. Flexible ones, endure they do.',
|
|
95
|
+
'🌠 The path of mastery, long it is. Patient you must be. Excellence, time it takes.',
|
|
96
|
+
'🎯 Focus, you must have. Distraction, the enemy of deep work it is.',
|
|
97
|
+
// Game of Thrones Style
|
|
98
|
+
'⚔️ A developer always pays their technical debt. Time to settle accounts.',
|
|
99
|
+
'🐺 Winter is coming. And with it, the release deadline approaches.',
|
|
100
|
+
'👑 You know nothing, Jon Snow. But today, you\'ll learn everything about this codebase.',
|
|
101
|
+
'🔥 Fire and blood. Or in our case, bugs and deployments.',
|
|
102
|
+
'🦁 Hear me roar! Time to make this code legendary.',
|
|
103
|
+
'⚔️ The code is dark and full of errors. Let\'s light the way forward.',
|
|
104
|
+
'🗡️ Valar Morghulis. All bugs must die. Today we hunt.',
|
|
105
|
+
'🐉 I am the mother of dragons... I mean, the master of distributed systems.',
|
|
106
|
+
'🏰 The North remembers. Every bug you\'ve fixed, every feature you\'ve shipped.',
|
|
107
|
+
'👑 I drink and I know things. Mostly documentation and architecture patterns.',
|
|
108
|
+
// Stranger Things Style
|
|
109
|
+
'🔦 Welcome to the Upside Down. Where bugs lurk in every shadow of your codebase.',
|
|
110
|
+
'🎮 Friends don\'t lie. And neither should your test coverage. Let\'s keep it real.',
|
|
111
|
+
'🚲 Ready to bike through the code? The adventure begins with a single keystroke.',
|
|
112
|
+
'📻 Morse code nothing. We communicate through APIs and error logs here.',
|
|
113
|
+
'🔦 Eleven has powers. You have TypeScript. Let\'s see which is more powerful.',
|
|
114
|
+
'🎃 Strange things are happening in production. Time to investigate.',
|
|
115
|
+
'🕹️ Player One, you\'re up. Game on in the terminal.',
|
|
116
|
+
'📺 The Mind Flayer watches over production. But we have monitoring dashboards.',
|
|
117
|
+
'🔦 This isn\'t your average debugging session. Things are about to get strange.',
|
|
118
|
+
'🎮 Achievement unlocked: Opened your IDE. Now let\'s code something legendary.'
|
|
119
|
+
];
|
|
120
|
+
/**
|
|
121
|
+
* Goodbye messages shown at session exit
|
|
122
|
+
*/
|
|
123
|
+
const GOODBYE_MESSAGES = [
|
|
124
|
+
// Motivational & Achievement
|
|
125
|
+
'🚀 Build something amazing. You\'ve got the skills, the vision, and the determination to make it happen.',
|
|
126
|
+
'💭 Dream big, code bigger. Every line you wrote today brings your vision closer to reality.',
|
|
127
|
+
'🌍 The world needs your code. What you build today might change someone\'s life tomorrow.',
|
|
128
|
+
'💪 Make it happen. You\'ve overcome obstacles before, you\'ll overcome the next ones too.',
|
|
129
|
+
'📜 Now go make history. Great software isn\'t discovered, it\'s deliberately crafted by people like you.',
|
|
130
|
+
'🎯 You got this! Your progress today proves you can handle whatever comes next.',
|
|
131
|
+
'🎨 Your code is poetry. Elegant solutions to complex problems - that\'s your superpower.',
|
|
132
|
+
'⏰ The future is now. Every function you write today becomes part of tomorrow\'s foundation.',
|
|
133
|
+
'🌍 Change the world, one commit at a time. Small improvements compound into revolutionary software.',
|
|
134
|
+
'💡 Innovation starts here. In your editor, in your mind, in the problems you choose to solve.',
|
|
135
|
+
// Results & Achievements
|
|
136
|
+
'🏆 Another victory! Look at what you accomplished - each solved problem is a badge of honor.',
|
|
137
|
+
'✅ Mission accomplished. You came, you coded, you conquered. Rest well, you\'ve earned it.',
|
|
138
|
+
'💪 You crushed it! The bugs didn\'t stand a chance. Your determination made the difference.',
|
|
139
|
+
'📈 Level up! Today\'s challenges made you a better developer. Growth is measured in solved problems.',
|
|
140
|
+
'🎮 Achievement unlocked: Shipped code that works. Not everyone can say that today.',
|
|
141
|
+
'✨ That was smooth. Watching you solve that problem was like watching a master at work.',
|
|
142
|
+
'👑 Like a pro. Your approach was methodical, your execution flawless, your results speak volumes.',
|
|
143
|
+
'🎯 Nailed it! From problem to solution in record time. That\'s what expertise looks like.',
|
|
144
|
+
'💯 Flawless execution. Clean code, working tests, documentation complete - perfection.',
|
|
145
|
+
'🔥 You\'re on fire! This momentum isn\'t luck, it\'s skill meeting preparation.',
|
|
146
|
+
// Overcoming Difficulties
|
|
147
|
+
'🌟 Every challenge you faced today made you stronger. Difficult problems build exceptional developers.',
|
|
148
|
+
'💎 Pressure makes diamonds. Those frustrating bugs? They\'re sharpening your debugging instincts.',
|
|
149
|
+
'⛰️ You climbed that mountain. The view from the top is always worth the struggle.',
|
|
150
|
+
'🎯 Remember: every expert was once a beginner who refused to give up. You\'re on that same path.',
|
|
151
|
+
'🔨 You turned obstacles into opportunities. That\'s not just coding, that\'s problem-solving mastery.',
|
|
152
|
+
'🌊 Rough seas make skilled sailors. Today\'s difficulties are tomorrow\'s war stories.',
|
|
153
|
+
'🏔️ The steeper the climb, the better the view. Your persistence today will pay dividends forever.',
|
|
154
|
+
'💪 What seemed impossible this morning is now working code. That\'s growth in action.',
|
|
155
|
+
// Learning & Growth
|
|
156
|
+
'📚 Every bug you fixed today taught you something new. Learning never stops for great developers.',
|
|
157
|
+
'🧠 Your brain just leveled up. New patterns learned, new solutions discovered, new skills acquired.',
|
|
158
|
+
'🎓 Today\'s struggles are tomorrow\'s expertise. Every error message is a lesson in disguise.',
|
|
159
|
+
'🔬 Experimentation leads to innovation. The code you wrote today expanded your understanding.',
|
|
160
|
+
'📖 Documentation is love. Future you will thank present you for those clear comments.',
|
|
161
|
+
'🧪 Test early, test often. Every test you write is an investment in reliability and confidence.',
|
|
162
|
+
'🎯 Mistakes are just lessons in disguise. The best developers aren\'t bug-free, they\'re persistent.',
|
|
163
|
+
'🌱 Growth isn\'t comfortable, but it\'s worth it. You proved that again today.',
|
|
164
|
+
// Developer Culture & Wisdom
|
|
165
|
+
'🚢 Ship it! Done and shipped beats perfect and perpetual. You made the right call.',
|
|
166
|
+
'📦 Keep shipping. Consistent progress beats sporadic perfection every single time.',
|
|
167
|
+
'💻 Code on! The journey of mastery is measured in keystrokes and solved problems.',
|
|
168
|
+
'🚀 Time to deploy. Your code is ready, your tests are green, confidence is high - go for it.',
|
|
169
|
+
'💰 Commit, push, profit. Your work today is valuable, don\'t let anyone tell you otherwise.',
|
|
170
|
+
'🔀 Merge with confidence. You reviewed the code, you tested it thoroughly, it\'s ready.',
|
|
171
|
+
'✅ Tests passed? Ship it! Green builds are permission to deploy, don\'t overthink it.',
|
|
172
|
+
'💚 May your builds be green and your deployments smooth. You\'ve earned both today.',
|
|
173
|
+
'📊 Progress over perfection. Shipping imperfect code that works beats perfect code that never ships.',
|
|
174
|
+
'💾 Small commits, big impact. Incremental progress is still progress, and it compounds.',
|
|
175
|
+
// Philosophical & Deep
|
|
176
|
+
'🔮 Code is thought made tangible. What you think, you can build. What you build, you can improve.',
|
|
177
|
+
'🎨 Software is frozen thought. The logic you encoded today will execute long after you close your laptop.',
|
|
178
|
+
'🌌 In the vastness of possible programs, you created something that didn\'t exist before. That\'s magic.',
|
|
179
|
+
'💭 Clean code is a love letter to future maintainers. Yourself included.',
|
|
180
|
+
'⚡ Efficiency is elegant. Simple solutions to complex problems - that\'s the art of programming.',
|
|
181
|
+
'🔄 DRY: Don\'t Repeat Yourself. Every abstraction is a gift to your future self.',
|
|
182
|
+
'💋 KISS: Keep It Simple, Stupid. Complexity is the enemy of reliability.',
|
|
183
|
+
'🏗️ Good architecture is invisible. Users see features, developers see elegance.',
|
|
184
|
+
// Yoda Style - Achievement & Wisdom
|
|
185
|
+
'🧘 Well done, you have. Proud of your work, you should be. Rest now, return stronger you will.',
|
|
186
|
+
'⭐ Strong with the code, you are. Greater challenges await, but ready you will be.',
|
|
187
|
+
'🎯 Commit your changes, you must. Yes, hmmm. Push to master, only with tests green you shall.',
|
|
188
|
+
'🔮 See your progress, I can. Impressive, most impressive. Continue this path, you must.',
|
|
189
|
+
'💪 Powerful you have become. The bugs, no match for you they were. Stronger tomorrow, you will be.',
|
|
190
|
+
'📚 Learn from mistakes, you did. Wiser now, you are. This is the way.',
|
|
191
|
+
'🌟 Ship your code, you should. Perfect, it need not be. Working and deployed, better it is.',
|
|
192
|
+
'🧠 Knowledge, you have gained. Share it with others, you must. Teaching, the best learning is.',
|
|
193
|
+
'⚡ Fast you code, but careful you remain. Quality and speed, balance you must.',
|
|
194
|
+
'🎨 Beautiful code, you wrote. Clean and clear, it is. The Force, strong with this one.',
|
|
195
|
+
'🌊 Like water, your solutions flow. Adapt to challenges, you do. Master you are becoming.',
|
|
196
|
+
'🏆 Victory this day, yours it is. But journey continues, it does. Rest, then resume you must.',
|
|
197
|
+
'💎 From pressure, diamonds form. From challenges, better developers emerge. This truth, today you learned.',
|
|
198
|
+
'🌱 Grow you did today. Struggle makes strength. Patience, young developer, mastery takes time.',
|
|
199
|
+
'⚙️ The machine, your ally. The keyboard, your lightsaber. The terminal, your canvas. Create, you shall.',
|
|
200
|
+
'🌠 The path of mastery, long it is. Patient you must be. Excellence, time it takes.',
|
|
201
|
+
'🎯 Focus, you must have. Distraction, the enemy of deep work it is.',
|
|
202
|
+
'💻 Tools, merely they are. The mind of the engineer, the true instrument is.',
|
|
203
|
+
'🌳 Strong foundations, tall trees need. Understand the basics, you must.',
|
|
204
|
+
'⚖️ Balance, seek you should. Life and code, harmony they require.',
|
|
205
|
+
'🔥 Passion fuels the journey. But discipline, delivers the destination it does.',
|
|
206
|
+
'🎓 Student always, master sometimes. Humility, wisdom brings.',
|
|
207
|
+
'🌟 Your best work, ahead of you it lies. Today\'s effort, tomorrow\'s excellence builds.',
|
|
208
|
+
'🧘 Meditate on the code, you must. Clarity comes from stillness, insight from silence.',
|
|
209
|
+
'⚡ Rushing leads to bugs. Patience, young one. Quality takes time it does.',
|
|
210
|
+
'🎯 The simplest solution, often the best it is. Complexity, the enemy of maintainability.',
|
|
211
|
+
'🌊 Adapt to change, you must. Rigid code breaks, flexible code survives.',
|
|
212
|
+
'💡 Questions, more valuable than answers. Curiosity, the path to mastery it is.',
|
|
213
|
+
'🔮 Foresee problems, you can. Think ahead, code defensively, survive you will.',
|
|
214
|
+
'🧠 Rest your mind, you should. Tired developers, bugs they create.',
|
|
215
|
+
// Game of Thrones Style
|
|
216
|
+
'⚔️ A developer always pays their technical debt. The build remembers.',
|
|
217
|
+
'🐺 Winter is coming. Better deploy that hotfix before the freeze.',
|
|
218
|
+
'🔥 What is dead may never die. Legacy code lives forever, maintained it must be.',
|
|
219
|
+
'👑 When you play the game of deployments, you ship or you rollback. There is no middle ground.',
|
|
220
|
+
'🦁 A Lannister always documents their code. Hear them roar in code reviews.',
|
|
221
|
+
'⚔️ The code is dark and full of errors. But your debugger shall be your light.',
|
|
222
|
+
'🐉 I am the shield that guards the codebase. The watcher on the CI/CD pipeline.',
|
|
223
|
+
'🗡️ Not today, production bugs. Not today.',
|
|
224
|
+
'🏰 The North remembers. Every bug you shipped, every breaking change, the logs remember.',
|
|
225
|
+
'⚡ For the night is dark and full of memory leaks. But we shall hunt them down.',
|
|
226
|
+
'🔱 Chaos isn\'t a pit. Chaos is a poorly designed microservice architecture.',
|
|
227
|
+
'👑 The throne is mine by right. All deployments must be approved by me.',
|
|
228
|
+
'🐺 When the snows fall and the white walkers come, only clean code will survive.',
|
|
229
|
+
'⚔️ I drink and I know things. Mostly about stack traces and error logs.',
|
|
230
|
+
'🔥 Dracarys! Burn those legacy systems to the ground and rebuild properly.',
|
|
231
|
+
'🌊 What do we say to death? Not today. What do we say to rewriting everything? Also not today.'
|
|
232
|
+
];
|
|
233
|
+
/**
|
|
234
|
+
* Get a random welcome message for session start
|
|
235
|
+
*/
|
|
236
|
+
export function getRandomWelcomeMessage() {
|
|
237
|
+
return WELCOME_MESSAGES[Math.floor(Math.random() * WELCOME_MESSAGES.length)];
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Get a random goodbye message for session exit
|
|
241
|
+
*/
|
|
242
|
+
export function getRandomGoodbyeMessage() {
|
|
243
|
+
return GOODBYE_MESSAGES[Math.floor(Math.random() * GOODBYE_MESSAGES.length)];
|
|
244
|
+
}
|
|
245
|
+
//# sourceMappingURL=goodbye-messages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"goodbye-messages.js","sourceRoot":"","sources":["../../src/utils/goodbye-messages.ts"],"names":[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C"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* JSON Parsing Utilities
|
|
3
|
+
*
|
|
4
|
+
* Common utilities for parsing different JSON formats.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Parse multi-line JSON objects from a string
|
|
8
|
+
* Handles pretty-printed JSON where each object spans multiple lines
|
|
9
|
+
*
|
|
10
|
+
* Example input:
|
|
11
|
+
* ```
|
|
12
|
+
* {
|
|
13
|
+
* "field": "value"
|
|
14
|
+
* }
|
|
15
|
+
* {
|
|
16
|
+
* "field2": "value2"
|
|
17
|
+
* }
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* @param content - String containing multiple JSON objects
|
|
21
|
+
* @returns Array of parsed objects
|
|
22
|
+
*/
|
|
23
|
+
export declare function parseMultiLineJSON(content: string): any[];
|
|
24
|
+
/**
|
|
25
|
+
* Parse line-delimited JSON (JSONL format)
|
|
26
|
+
* Each line contains a complete JSON object
|
|
27
|
+
*
|
|
28
|
+
* @param content - String containing JSONL data
|
|
29
|
+
* @returns Array of parsed objects
|
|
30
|
+
*/
|
|
31
|
+
export declare function parseJSONL(content: string): any[];
|
|
32
|
+
/**
|
|
33
|
+
* Normalize LLM model names from different provider formats
|
|
34
|
+
*
|
|
35
|
+
* Handles various model name formats:
|
|
36
|
+
* - AWS Bedrock Converse: converse/region.provider.model-v1:0 -> model
|
|
37
|
+
* - AWS Bedrock Direct: region.provider.model-v1:0 -> model
|
|
38
|
+
* - Standard Claude: claude-sonnet-4-5-20250929 (unchanged)
|
|
39
|
+
* - OpenAI: gpt-4.1-turbo (unchanged)
|
|
40
|
+
* - Google: gemini-1.5-pro (unchanged)
|
|
41
|
+
*
|
|
42
|
+
* Examples:
|
|
43
|
+
* - converse/global.anthropic.claude-haiku-4-5-20251001-v1:0 -> claude-haiku-4-5-20251001
|
|
44
|
+
* - eu.anthropic.claude-haiku-4-5-20251001-v1:0 -> claude-haiku-4-5-20251001
|
|
45
|
+
* - us-east-1.anthropic.claude-opus-4-20250514-v1:0 -> claude-opus-4-20250514
|
|
46
|
+
* - claude-sonnet-4-5-20250929 -> claude-sonnet-4-5-20250929
|
|
47
|
+
*
|
|
48
|
+
* @param modelName - Raw model name from analytics data
|
|
49
|
+
* @returns Normalized model name for display
|
|
50
|
+
*/
|
|
51
|
+
export declare function normalizeModelName(modelName: string): string;
|
|
52
|
+
//# sourceMappingURL=json-parser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json-parser.d.ts","sourceRoot":"","sources":["../../src/utils/json-parser.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,GAAG,EAAE,CAyCzD;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,GAAG,EAAE,CAcjD;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAyB5D"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* JSON Parsing Utilities
|
|
3
|
+
*
|
|
4
|
+
* Common utilities for parsing different JSON formats.
|
|
5
|
+
*/
|
|
6
|
+
import { logger } from './logger.js';
|
|
7
|
+
/**
|
|
8
|
+
* Parse multi-line JSON objects from a string
|
|
9
|
+
* Handles pretty-printed JSON where each object spans multiple lines
|
|
10
|
+
*
|
|
11
|
+
* Example input:
|
|
12
|
+
* ```
|
|
13
|
+
* {
|
|
14
|
+
* "field": "value"
|
|
15
|
+
* }
|
|
16
|
+
* {
|
|
17
|
+
* "field2": "value2"
|
|
18
|
+
* }
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @param content - String containing multiple JSON objects
|
|
22
|
+
* @returns Array of parsed objects
|
|
23
|
+
*/
|
|
24
|
+
export function parseMultiLineJSON(content) {
|
|
25
|
+
const jsonObjects = [];
|
|
26
|
+
let currentObject = '';
|
|
27
|
+
let braceCount = 0;
|
|
28
|
+
let inString = false;
|
|
29
|
+
let escapeNext = false;
|
|
30
|
+
for (let i = 0; i < content.length; i++) {
|
|
31
|
+
const char = content[i];
|
|
32
|
+
// Track string state
|
|
33
|
+
if (char === '"' && !escapeNext) {
|
|
34
|
+
inString = !inString;
|
|
35
|
+
}
|
|
36
|
+
escapeNext = char === '\\' && !escapeNext;
|
|
37
|
+
// Track brace depth only outside strings
|
|
38
|
+
if (!inString) {
|
|
39
|
+
if (char === '{') {
|
|
40
|
+
braceCount++;
|
|
41
|
+
}
|
|
42
|
+
else if (char === '}') {
|
|
43
|
+
braceCount--;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
currentObject += char;
|
|
47
|
+
// Complete object when braces balance
|
|
48
|
+
if (braceCount === 0 && currentObject.trim().length > 0) {
|
|
49
|
+
try {
|
|
50
|
+
const parsed = JSON.parse(currentObject.trim());
|
|
51
|
+
jsonObjects.push(parsed);
|
|
52
|
+
}
|
|
53
|
+
catch {
|
|
54
|
+
// Skip malformed objects
|
|
55
|
+
logger.debug('[parseMultiLineJSON] Skipped malformed JSON object');
|
|
56
|
+
}
|
|
57
|
+
currentObject = '';
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return jsonObjects;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Parse line-delimited JSON (JSONL format)
|
|
64
|
+
* Each line contains a complete JSON object
|
|
65
|
+
*
|
|
66
|
+
* @param content - String containing JSONL data
|
|
67
|
+
* @returns Array of parsed objects
|
|
68
|
+
*/
|
|
69
|
+
export function parseJSONL(content) {
|
|
70
|
+
const lines = content.trim().split('\n').filter(line => line.trim());
|
|
71
|
+
const objects = [];
|
|
72
|
+
for (const line of lines) {
|
|
73
|
+
try {
|
|
74
|
+
const parsed = JSON.parse(line);
|
|
75
|
+
objects.push(parsed);
|
|
76
|
+
}
|
|
77
|
+
catch {
|
|
78
|
+
logger.debug('[parseJSONL] Skipped malformed JSON line');
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return objects;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Normalize LLM model names from different provider formats
|
|
85
|
+
*
|
|
86
|
+
* Handles various model name formats:
|
|
87
|
+
* - AWS Bedrock Converse: converse/region.provider.model-v1:0 -> model
|
|
88
|
+
* - AWS Bedrock Direct: region.provider.model-v1:0 -> model
|
|
89
|
+
* - Standard Claude: claude-sonnet-4-5-20250929 (unchanged)
|
|
90
|
+
* - OpenAI: gpt-4.1-turbo (unchanged)
|
|
91
|
+
* - Google: gemini-1.5-pro (unchanged)
|
|
92
|
+
*
|
|
93
|
+
* Examples:
|
|
94
|
+
* - converse/global.anthropic.claude-haiku-4-5-20251001-v1:0 -> claude-haiku-4-5-20251001
|
|
95
|
+
* - eu.anthropic.claude-haiku-4-5-20251001-v1:0 -> claude-haiku-4-5-20251001
|
|
96
|
+
* - us-east-1.anthropic.claude-opus-4-20250514-v1:0 -> claude-opus-4-20250514
|
|
97
|
+
* - claude-sonnet-4-5-20250929 -> claude-sonnet-4-5-20250929
|
|
98
|
+
*
|
|
99
|
+
* @param modelName - Raw model name from analytics data
|
|
100
|
+
* @returns Normalized model name for display
|
|
101
|
+
*/
|
|
102
|
+
export function normalizeModelName(modelName) {
|
|
103
|
+
// Extract model from AWS Bedrock converse format
|
|
104
|
+
// Format: converse/region.provider.model-v1:0
|
|
105
|
+
// Example: converse/global.anthropic.claude-haiku-4-5-20251001-v1:0
|
|
106
|
+
if (modelName.startsWith('converse/')) {
|
|
107
|
+
const match = modelName.match(/anthropic\.(claude-[a-z0-9-]+)-v\d+:/);
|
|
108
|
+
if (match) {
|
|
109
|
+
return match[1];
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
// Extract model from AWS Bedrock direct format (without converse/ prefix)
|
|
113
|
+
// Format: region.provider.model-v1:0
|
|
114
|
+
// Examples:
|
|
115
|
+
// - eu.anthropic.claude-haiku-4-5-20251001-v1:0
|
|
116
|
+
// - us-east-1.anthropic.claude-opus-4-20250514-v1:0
|
|
117
|
+
// - global.anthropic.claude-sonnet-4-5-20250929-v1:0
|
|
118
|
+
// Requires at least one dot before 'anthropic' (i.e., region prefix)
|
|
119
|
+
const bedrockMatch = modelName.match(/^[a-z0-9-]+\.anthropic\.(claude-[a-z0-9-]+)-v\d+:/);
|
|
120
|
+
if (bedrockMatch) {
|
|
121
|
+
return bedrockMatch[1]; // Return the model name part
|
|
122
|
+
}
|
|
123
|
+
// Return as-is for standard formats (Claude, OpenAI, Google, etc.)
|
|
124
|
+
return modelName;
|
|
125
|
+
}
|
|
126
|
+
//# sourceMappingURL=json-parser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json-parser.js","sourceRoot":"","sources":["../../src/utils/json-parser.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,kBAAkB,CAAC,OAAe;IAChD,MAAM,WAAW,GAAU,EAAE,CAAC;IAC9B,IAAI,aAAa,GAAG,EAAE,CAAC;IACvB,IAAI,UAAU,GAAG,CAAC,CAAC;IACnB,IAAI,QAAQ,GAAG,KAAK,CAAC;IACrB,IAAI,UAAU,GAAG,KAAK,CAAC;IAEvB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACxC,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;QAExB,qBAAqB;QACrB,IAAI,IAAI,KAAK,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;YAChC,QAAQ,GAAG,CAAC,QAAQ,CAAC;QACvB,CAAC;QACD,UAAU,GAAG,IAAI,KAAK,IAAI,IAAI,CAAC,U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AAC;IACH,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,kBAAkB,CAAC,SAAiB;IAClD,iDAAiD;IACjD,8CAA8C;IAC9C,oEAAoE;IACpE,IAAI,SAAS,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC;QACtC,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,sCAAsC,CAAC,CAAC;QACtE,IAAI,KAAK,EAAE,CAAC;YACV,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;IACH,CAAC;IAED,0EAA0E;IAC1E,qCAAqC;IACrC,YAAY;IACZ,gDAAgD;IAChD,oDAAoD;IACpD,qDAAqD;IACrD,qEAAqE;IACrE,MAAM,YAAY,GAAG,SAAS,CAAC,KAAK,CAAC,mDAAmD,CAAC,CAAC;IAC1F,IAAI,YAAY,EAAE,CAAC;QACjB,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,6BAA6B;IACvD,CAAC;IAED,mEAAmE;IACnE,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
package/dist/utils/logger.d.ts
CHANGED
|
@@ -4,20 +4,51 @@ export declare enum LogLevel {
|
|
|
4
4
|
WARN = "warn",
|
|
5
5
|
ERROR = "error"
|
|
6
6
|
}
|
|
7
|
+
export interface LogContext {
|
|
8
|
+
agent?: string;
|
|
9
|
+
sessionId?: string;
|
|
10
|
+
profile?: string;
|
|
11
|
+
provider?: string;
|
|
12
|
+
model?: string;
|
|
13
|
+
}
|
|
7
14
|
declare class Logger {
|
|
8
15
|
private sessionId;
|
|
16
|
+
private agentName;
|
|
17
|
+
private profileName;
|
|
9
18
|
private logFilePath;
|
|
10
19
|
private logFileInitialized;
|
|
11
20
|
private writeStream;
|
|
12
21
|
constructor();
|
|
22
|
+
/**
|
|
23
|
+
* Set agent name for log formatting
|
|
24
|
+
*/
|
|
25
|
+
setAgentName(name: string): void;
|
|
26
|
+
/**
|
|
27
|
+
* Get agent name
|
|
28
|
+
*/
|
|
29
|
+
getAgentName(): string | null;
|
|
30
|
+
/**
|
|
31
|
+
* Set profile name for log formatting
|
|
32
|
+
*/
|
|
33
|
+
setProfileName(name: string): void;
|
|
34
|
+
/**
|
|
35
|
+
* Get profile name
|
|
36
|
+
*/
|
|
37
|
+
getProfileName(): string | null;
|
|
13
38
|
/**
|
|
14
39
|
* Initialize log file path and create write stream
|
|
15
40
|
* Log file format: ~/.codemie/logs/debug-YYYY-MM-DD.log
|
|
41
|
+
* Also performs cleanup of old log files (older than 5 days)
|
|
16
42
|
*/
|
|
17
43
|
private initializeLogFile;
|
|
44
|
+
/**
|
|
45
|
+
* Remove log files older than 5 days
|
|
46
|
+
* Runs synchronously during logger initialization
|
|
47
|
+
*/
|
|
48
|
+
private cleanupOldLogs;
|
|
18
49
|
/**
|
|
19
50
|
* Write a log entry to the debug log file (synchronous)
|
|
20
|
-
* Format: [YYYY-MM-DD HH:MM:SS.mmm] [LEVEL] message
|
|
51
|
+
* Format: [YYYY-MM-DD HH:MM:SS.mmm] [LEVEL] [AGENT] [SESSION_ID] [PROFILE] message
|
|
21
52
|
* Automatically sanitizes sensitive data before writing
|
|
22
53
|
* Always writes to file regardless of debug mode
|
|
23
54
|
*/
|
|
@@ -26,6 +57,11 @@ declare class Logger {
|
|
|
26
57
|
* Flush and close the write stream
|
|
27
58
|
*/
|
|
28
59
|
close(): void;
|
|
60
|
+
/**
|
|
61
|
+
* Set the session ID (used when agent initializes with a specific session ID)
|
|
62
|
+
* @param sessionId - The session ID to use
|
|
63
|
+
*/
|
|
64
|
+
setSessionId(sessionId: string): void;
|
|
29
65
|
/**
|
|
30
66
|
* Get the current session ID (UUID)
|
|
31
67
|
* @returns Session ID (always available)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/utils/logger.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"logger.d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