@lssm/bundle.contractspec-workspace 0.0.0-canary-20251217080011 → 1.41.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/dist/_virtual/rolldown_runtime.js +1 -22
- package/dist/adapters/ai.js +1 -82
- package/dist/adapters/factory.js +1 -36
- package/dist/adapters/fs.js +1 -118
- package/dist/adapters/git.js +1 -54
- package/dist/adapters/index.js +1 -7
- package/dist/adapters/logger.js +1 -80
- package/dist/adapters/watcher.js +1 -69
- package/dist/adapters/workspace.js +2 -190
- package/dist/ai/agents/claude-code-agent.js +9 -146
- package/dist/ai/agents/cursor-agent.js +17 -286
- package/dist/ai/agents/index.js +1 -5
- package/dist/ai/agents/openai-codex-agent.js +8 -140
- package/dist/ai/agents/orchestrator.js +1 -142
- package/dist/ai/agents/simple-agent.js +4 -80
- package/dist/ai/client.js +1 -162
- package/dist/ai/index.js +1 -27
- package/dist/ai/prompts/code-generation.js +13 -55
- package/dist/ai/prompts/index.js +1 -12
- package/dist/ai/prompts/spec-creation.js +20 -61
- package/dist/ai/providers.js +1 -40
- package/dist/formatters/index.js +1 -18
- package/dist/formatters/json.js +1 -71
- package/dist/formatters/sarif.js +1 -163
- package/dist/formatters/text.js +2 -208
- package/dist/index.js +1 -81
- package/dist/node_modules/@ai-sdk/anthropic/dist/index.js +1 -0
- package/dist/node_modules/@ai-sdk/openai/dist/index.js +11 -0
- package/dist/node_modules/@ai-sdk/provider/dist/index.js +3 -0
- package/dist/node_modules/@ai-sdk/provider-utils/dist/index.js +5 -0
- package/dist/node_modules/chalk/source/index.js +2 -0
- package/dist/node_modules/chalk/source/utilities.js +4 -0
- package/dist/node_modules/chalk/source/vendor/ansi-styles/index.js +1 -0
- package/dist/node_modules/chalk/source/vendor/supports-color/browser.js +1 -0
- package/dist/node_modules/cli-cursor/index.js +1 -0
- package/dist/node_modules/cli-spinners/index.js +1 -0
- package/dist/node_modules/cli-spinners/spinners.js +1 -0
- package/dist/node_modules/eventsource-parser/dist/index.js +5 -0
- package/dist/node_modules/eventsource-parser/dist/stream.js +1 -0
- package/dist/node_modules/get-east-asian-width/index.js +1 -0
- package/dist/node_modules/get-east-asian-width/lookup.js +1 -0
- package/dist/node_modules/is-interactive/index.js +1 -0
- package/dist/node_modules/is-unicode-supported/index.js +1 -0
- package/dist/node_modules/log-symbols/browser-symbols.js +1 -0
- package/dist/node_modules/mimic-function/index.js +1 -0
- package/dist/node_modules/onetime/index.js +1 -0
- package/dist/node_modules/ora/index.js +6 -0
- package/dist/node_modules/restore-cursor/index.js +1 -0
- package/dist/node_modules/signal-exit/dist/mjs/index.js +1 -0
- package/dist/node_modules/signal-exit/dist/mjs/signals.js +1 -0
- package/dist/node_modules/stdin-discarder/index.js +1 -0
- package/dist/node_modules/string-width/index.js +1 -0
- package/dist/node_modules/strip-ansi/index.js +1 -0
- package/dist/node_modules/strip-ansi/node_modules/ansi-regex/index.js +1 -0
- package/dist/services/agent-guide/adapters/claude-code.js +3 -144
- package/dist/services/agent-guide/adapters/cursor-cli.js +3 -135
- package/dist/services/agent-guide/adapters/generic-mcp.js +3 -159
- package/dist/services/agent-guide/adapters/index.js +1 -30
- package/dist/services/agent-guide/agent-guide-service.js +1 -148
- package/dist/services/agent-guide/index.js +1 -5
- package/dist/services/build.js +1 -140
- package/dist/services/ci-check/ci-check-service.js +1 -393
- package/dist/services/ci-check/index.js +1 -2
- package/dist/services/ci-check/types.js +1 -28
- package/dist/services/clean.js +1 -71
- package/dist/services/config.js +1 -76
- package/dist/services/deps.js +1 -62
- package/dist/services/diff.js +1 -33
- package/dist/services/doctor/checks/ai.js +2 -118
- package/dist/services/doctor/checks/cli.js +1 -146
- package/dist/services/doctor/checks/config.js +1 -170
- package/dist/services/doctor/checks/deps.js +1 -180
- package/dist/services/doctor/checks/index.js +1 -6
- package/dist/services/doctor/checks/mcp.js +1 -144
- package/dist/services/doctor/checks/workspace.js +1 -243
- package/dist/services/doctor/doctor-service.js +2 -115
- package/dist/services/doctor/index.js +1 -2
- package/dist/services/doctor/types.js +1 -26
- package/dist/services/implementation/discovery.js +2 -143
- package/dist/services/implementation/index.js +1 -2
- package/dist/services/implementation/resolver.js +1 -223
- package/dist/services/index.js +1 -53
- package/dist/services/integrity-diagram.js +6 -274
- package/dist/services/integrity.js +1 -272
- package/dist/services/list.js +1 -35
- package/dist/services/openapi/export-service.js +2 -51
- package/dist/services/openapi/import-service.js +1 -75
- package/dist/services/openapi/index.js +1 -4
- package/dist/services/openapi/sync-service.js +1 -121
- package/dist/services/openapi/validate-service.js +1 -130
- package/dist/services/regenerator.js +1 -23
- package/dist/services/registry.js +1 -73
- package/dist/services/setup/config-generators.js +26 -113
- package/dist/services/setup/file-merger.js +2 -60
- package/dist/services/setup/index.js +1 -4
- package/dist/services/setup/setup-service.js +1 -95
- package/dist/services/setup/targets/agents-md.js +1 -46
- package/dist/services/setup/targets/cli-config.js +1 -59
- package/dist/services/setup/targets/cursor-rules.js +1 -47
- package/dist/services/setup/targets/mcp-claude.js +1 -59
- package/dist/services/setup/targets/mcp-cursor.js +1 -58
- package/dist/services/setup/targets/vscode-settings.js +1 -62
- package/dist/services/setup/types.js +1 -26
- package/dist/services/sync.js +1 -62
- package/dist/services/test.js +1 -30
- package/dist/services/validate-implementation.js +1 -69
- package/dist/services/validate.js +1 -47
- package/dist/services/verification-cache/adapters/filesystem.js +1 -121
- package/dist/services/verification-cache/adapters/in-memory.js +1 -45
- package/dist/services/verification-cache/adapters/index.js +1 -3
- package/dist/services/verification-cache/adapters/workspace-state.js +1 -90
- package/dist/services/verification-cache/cache-service.js +1 -255
- package/dist/services/verification-cache/index.js +1 -6
- package/dist/services/verification-cache/types.js +1 -15
- package/dist/services/verify/ai-verifier.js +9 -336
- package/dist/services/verify/behavior-verifier.js +1 -185
- package/dist/services/verify/index.js +1 -4
- package/dist/services/verify/structure-verifier.js +2 -195
- package/dist/services/verify/verify-service.js +3 -203
- package/dist/services/watch.js +1 -31
- package/dist/services/workspace-info.js +2 -102
- package/dist/templates/app-config.template.js +28 -101
- package/dist/templates/data-view.template.js +27 -42
- package/dist/templates/event.template.js +14 -29
- package/dist/templates/experiment.template.js +51 -77
- package/dist/templates/handler.template.js +17 -53
- package/dist/templates/index.js +1 -36
- package/dist/templates/integration.template.js +50 -134
- package/dist/templates/knowledge.template.js +21 -62
- package/dist/templates/migration.template.js +26 -50
- package/dist/templates/operation.template.js +28 -44
- package/dist/templates/presentation.template.js +20 -46
- package/dist/templates/telemetry.template.js +53 -74
- package/dist/templates/workflow-runner.template.js +6 -12
- package/dist/templates/workflow.template.js +24 -51
- package/package.json +10 -16
- package/dist/adapters/ai.d.ts +0 -11
- package/dist/adapters/factory.d.ts +0 -28
- package/dist/adapters/fs.d.ts +0 -10
- package/dist/adapters/git.d.ts +0 -10
- package/dist/adapters/logger.d.ts +0 -17
- package/dist/adapters/watcher.d.ts +0 -10
- package/dist/adapters/workspace.d.ts +0 -93
- package/dist/ai/agents/claude-code-agent.d.ts +0 -21
- package/dist/ai/agents/cursor-agent.d.ts +0 -67
- package/dist/ai/agents/openai-codex-agent.d.ts +0 -21
- package/dist/ai/agents/orchestrator.d.ts +0 -49
- package/dist/ai/agents/simple-agent.d.ts +0 -16
- package/dist/ai/agents/types.d.ts +0 -35
- package/dist/ai/client.d.ts +0 -82
- package/dist/ai/index.d.ts +0 -16
- package/dist/ai/prompts/code-generation.d.ts +0 -25
- package/dist/ai/prompts/index.d.ts +0 -9
- package/dist/ai/prompts/spec-creation.d.ts +0 -28
- package/dist/ai/providers.d.ts +0 -28
- package/dist/formatters/index.d.ts +0 -10
- package/dist/formatters/json.d.ts +0 -88
- package/dist/formatters/sarif.d.ts +0 -100
- package/dist/formatters/text.d.ts +0 -34
- package/dist/index.d.ts +0 -66
- package/dist/libs/ai-providers/dist/factory.js +0 -154
- package/dist/libs/ai-providers/dist/index.js +0 -4
- package/dist/libs/ai-providers/dist/legacy.js +0 -72
- package/dist/libs/ai-providers/dist/models.js +0 -287
- package/dist/libs/ai-providers/dist/validation.js +0 -1
- package/dist/libs/contracts/dist/capabilities/openbanking.js +0 -88
- package/dist/libs/contracts/dist/client/index.js +0 -5
- package/dist/libs/contracts/dist/client/react/feature-render.js +0 -2
- package/dist/libs/contracts/dist/client/react/form-render.js +0 -4
- package/dist/libs/contracts/dist/client/react/index.js +0 -4
- package/dist/libs/contracts/dist/contract-registry/index.js +0 -1
- package/dist/libs/contracts/dist/contract-registry/schemas.js +0 -60
- package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/index.js +0 -29
- package/dist/libs/contracts/dist/docs/presentations.js +0 -71
- package/dist/libs/contracts/dist/docs/registry.js +0 -44
- package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -80
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -57
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -357
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -37
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +0 -20
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -48
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -79
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -84
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -45
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -67
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -40
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -69
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -47
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -62
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -155
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -20
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -101
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -20
- package/dist/libs/contracts/dist/events.js +0 -8
- package/dist/libs/contracts/dist/experiments/evaluator.js +0 -1
- package/dist/libs/contracts/dist/index.js +0 -72
- package/dist/libs/contracts/dist/install.js +0 -2
- package/dist/libs/contracts/dist/integrations/contracts.js +0 -377
- package/dist/libs/contracts/dist/integrations/index.js +0 -18
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +0 -228
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +0 -159
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +0 -3
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +0 -210
- package/dist/libs/contracts/dist/integrations/openbanking/models.js +0 -242
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +0 -13
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +0 -52
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +0 -75
- package/dist/libs/contracts/dist/integrations/providers/gmail.js +0 -87
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +0 -66
- package/dist/libs/contracts/dist/integrations/providers/index.js +0 -11
- package/dist/libs/contracts/dist/integrations/providers/mistral.js +0 -68
- package/dist/libs/contracts/dist/integrations/providers/postmark.js +0 -68
- package/dist/libs/contracts/dist/integrations/providers/powens.js +0 -116
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js +0 -73
- package/dist/libs/contracts/dist/integrations/providers/registry.js +0 -10
- package/dist/libs/contracts/dist/integrations/providers/stripe.js +0 -83
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +0 -61
- package/dist/libs/contracts/dist/jsonschema.js +0 -24
- package/dist/libs/contracts/dist/knowledge/contracts.js +0 -306
- package/dist/libs/contracts/dist/knowledge/index.js +0 -7
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +0 -34
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +0 -34
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +0 -38
- package/dist/libs/contracts/dist/knowledge/spaces/index.js +0 -6
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +0 -34
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +0 -37
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +0 -34
- package/dist/libs/contracts/dist/llm/exporters.js +0 -352
- package/dist/libs/contracts/dist/llm/index.js +0 -2
- package/dist/libs/contracts/dist/llm/prompts.js +0 -211
- package/dist/libs/contracts/dist/onboarding-base.js +0 -196
- package/dist/libs/contracts/dist/openapi.js +0 -75
- package/dist/libs/contracts/dist/ownership.js +0 -21
- package/dist/libs/contracts/dist/presentations.js +0 -1
- package/dist/libs/contracts/dist/presentations.v2.js +0 -11
- package/dist/libs/contracts/dist/prompt.js +0 -1
- package/dist/libs/contracts/dist/promptRegistry.js +0 -1
- package/dist/libs/contracts/dist/regenerator/index.js +0 -2
- package/dist/libs/contracts/dist/regenerator/service.js +0 -92
- package/dist/libs/contracts/dist/regenerator/utils.js +0 -51
- package/dist/libs/contracts/dist/registry.js +0 -208
- package/dist/libs/contracts/dist/resources.js +0 -1
- package/dist/libs/contracts/dist/schema/dist/EnumType.js +0 -2
- package/dist/libs/contracts/dist/schema/dist/FieldType.js +0 -49
- package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +0 -236
- package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +0 -34
- package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +0 -1
- package/dist/libs/contracts/dist/schema/dist/entity/index.js +0 -2
- package/dist/libs/contracts/dist/schema/dist/entity/types.js +0 -1
- package/dist/libs/contracts/dist/schema/dist/index.js +0 -6
- package/dist/libs/contracts/dist/server/graphql-pothos.js +0 -6
- package/dist/libs/contracts/dist/server/index.js +0 -8
- package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +0 -4
- package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +0 -2
- package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +0 -1
- package/dist/libs/contracts/dist/server/mcp/registerResources.js +0 -2
- package/dist/libs/contracts/dist/server/mcp/registerTools.js +0 -1
- package/dist/libs/contracts/dist/server/provider-mcp.js +0 -1
- package/dist/libs/contracts/dist/server/rest-elysia.js +0 -1
- package/dist/libs/contracts/dist/server/rest-express.js +0 -1
- package/dist/libs/contracts/dist/server/rest-generic.js +0 -1
- package/dist/libs/contracts/dist/server/rest-next-app.js +0 -1
- package/dist/libs/contracts/dist/server/rest-next-pages.js +0 -1
- package/dist/libs/contracts/dist/spec.js +0 -35
- package/dist/libs/contracts/dist/telemetry/index.js +0 -1
- package/dist/libs/contracts/dist/telemetry/tracker.js +0 -1
- package/dist/libs/contracts/dist/tests/index.js +0 -1
- package/dist/libs/contracts/dist/tests/runner.js +0 -150
- package/dist/libs/contracts/dist/workflow/index.js +0 -1
- package/dist/libs/contracts/dist/workflow/runner.js +0 -1
- package/dist/libs/contracts-transformers/dist/common/utils.js +0 -47
- package/dist/libs/contracts-transformers/dist/openapi/exporter.js +0 -1
- package/dist/libs/contracts-transformers/dist/openapi/importer.js +0 -255
- package/dist/libs/contracts-transformers/dist/openapi/index.js +0 -4
- package/dist/libs/contracts-transformers/dist/openapi/parser.js +0 -231
- package/dist/libs/contracts-transformers/dist/openapi/schema-converter.js +0 -201
- package/dist/modules/contractspec-workspace/dist/ai/code-generation.js +0 -137
- package/dist/modules/contractspec-workspace/dist/ai/spec-creation.js +0 -101
- package/dist/modules/contractspec-workspace/dist/analysis/deps/graph.js +0 -84
- package/dist/modules/contractspec-workspace/dist/analysis/deps/parse-imports.js +0 -30
- package/dist/modules/contractspec-workspace/dist/analysis/diff/semantic.js +0 -96
- package/dist/modules/contractspec-workspace/dist/analysis/feature-scan.js +0 -151
- package/dist/modules/contractspec-workspace/dist/analysis/spec-scan.js +0 -344
- package/dist/modules/contractspec-workspace/dist/analysis/validate/spec-structure.js +0 -122
- package/dist/modules/contractspec-workspace/dist/templates/app-config.js +0 -105
- package/dist/modules/contractspec-workspace/dist/templates/data-view.js +0 -68
- package/dist/modules/contractspec-workspace/dist/templates/event.js +0 -38
- package/dist/modules/contractspec-workspace/dist/templates/experiment.js +0 -87
- package/dist/modules/contractspec-workspace/dist/templates/handler.js +0 -95
- package/dist/modules/contractspec-workspace/dist/templates/integration-utils.js +0 -104
- package/dist/modules/contractspec-workspace/dist/templates/integration.js +0 -62
- package/dist/modules/contractspec-workspace/dist/templates/knowledge.js +0 -68
- package/dist/modules/contractspec-workspace/dist/templates/migration.js +0 -60
- package/dist/modules/contractspec-workspace/dist/templates/operation.js +0 -100
- package/dist/modules/contractspec-workspace/dist/templates/presentation.js +0 -78
- package/dist/modules/contractspec-workspace/dist/templates/telemetry.js +0 -89
- package/dist/modules/contractspec-workspace/dist/templates/utils.js +0 -38
- package/dist/modules/contractspec-workspace/dist/templates/workflow-runner.js +0 -48
- package/dist/modules/contractspec-workspace/dist/templates/workflow.js +0 -67
- package/dist/modules/contractspec-workspace/dist/types/generation-types.js +0 -20
- package/dist/ports/ai.d.ts +0 -58
- package/dist/ports/fs.d.ts +0 -80
- package/dist/ports/git.d.ts +0 -32
- package/dist/ports/logger.d.ts +0 -87
- package/dist/ports/watcher.d.ts +0 -51
- package/dist/services/agent-guide/adapters/claude-code.d.ts +0 -34
- package/dist/services/agent-guide/adapters/cursor-cli.d.ts +0 -38
- package/dist/services/agent-guide/adapters/generic-mcp.d.ts +0 -52
- package/dist/services/agent-guide/adapters/index.d.ts +0 -22
- package/dist/services/agent-guide/agent-guide-service.d.ts +0 -55
- package/dist/services/agent-guide/types.d.ts +0 -57
- package/dist/services/build.d.ts +0 -58
- package/dist/services/ci-check/ci-check-service.d.ts +0 -15
- package/dist/services/ci-check/types.d.ts +0 -142
- package/dist/services/clean.d.ts +0 -40
- package/dist/services/config.d.ts +0 -25
- package/dist/services/deps.d.ts +0 -52
- package/dist/services/diff.d.ts +0 -33
- package/dist/services/doctor/doctor-service.d.ts +0 -23
- package/dist/services/doctor/types.d.ts +0 -117
- package/dist/services/implementation/discovery.d.ts +0 -29
- package/dist/services/implementation/resolver.d.ts +0 -43
- package/dist/services/implementation/types.d.ts +0 -78
- package/dist/services/integrity-diagram.d.ts +0 -35
- package/dist/services/integrity.d.ts +0 -133
- package/dist/services/list.d.ts +0 -30
- package/dist/services/openapi/export-service.d.ts +0 -52
- package/dist/services/openapi/import-service.d.ts +0 -15
- package/dist/services/openapi/sync-service.d.ts +0 -18
- package/dist/services/openapi/types.d.ts +0 -184
- package/dist/services/openapi/validate-service.d.ts +0 -15
- package/dist/services/regenerator.d.ts +0 -17
- package/dist/services/registry.d.ts +0 -52
- package/dist/services/setup/config-generators.d.ts +0 -41
- package/dist/services/setup/file-merger.d.ts +0 -26
- package/dist/services/setup/setup-service.d.ts +0 -11
- package/dist/services/setup/types.d.ts +0 -84
- package/dist/services/sync.d.ts +0 -40
- package/dist/services/test.d.ts +0 -14
- package/dist/services/validate-implementation.d.ts +0 -31
- package/dist/services/validate.d.ts +0 -40
- package/dist/services/verification-cache/adapters/filesystem.d.ts +0 -45
- package/dist/services/verification-cache/adapters/in-memory.d.ts +0 -26
- package/dist/services/verification-cache/adapters/workspace-state.d.ts +0 -48
- package/dist/services/verification-cache/cache-service.d.ts +0 -69
- package/dist/services/verification-cache/types.d.ts +0 -123
- package/dist/services/verify/ai-verifier.d.ts +0 -24
- package/dist/services/verify/behavior-verifier.d.ts +0 -11
- package/dist/services/verify/structure-verifier.d.ts +0 -11
- package/dist/services/verify/types.d.ts +0 -136
- package/dist/services/verify/verify-service.d.ts +0 -59
- package/dist/services/watch.d.ts +0 -24
- package/dist/services/workspace-info.d.ts +0 -61
- package/dist/templates/app-config.template.d.ts +0 -6
- package/dist/templates/data-view.template.d.ts +0 -6
- package/dist/templates/event.template.d.ts +0 -10
- package/dist/templates/experiment.template.d.ts +0 -6
- package/dist/templates/handler.template.d.ts +0 -15
- package/dist/templates/index.d.ts +0 -20
- package/dist/templates/integration.template.d.ts +0 -6
- package/dist/templates/knowledge.template.d.ts +0 -6
- package/dist/templates/migration.template.d.ts +0 -6
- package/dist/templates/operation.template.d.ts +0 -10
- package/dist/templates/presentation.template.d.ts +0 -10
- package/dist/templates/telemetry.template.d.ts +0 -6
- package/dist/templates/workflow-runner.template.d.ts +0 -15
- package/dist/templates/workflow.template.d.ts +0 -6
- package/dist/types/config.d.ts +0 -33
- package/dist/types.d.ts +0 -323
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
import { DEFAULT_MODELS, getModelsForProvider } from "./models.js";
|
|
2
|
-
import { anthropic } from "@ai-sdk/anthropic";
|
|
3
|
-
import { openai } from "@ai-sdk/openai";
|
|
4
|
-
import { ollama } from "ollama-ai-provider";
|
|
5
|
-
import { google } from "@ai-sdk/google";
|
|
6
|
-
import { mistral } from "@ai-sdk/mistral";
|
|
7
|
-
|
|
8
|
-
//#region ../../libs/ai-providers/dist/factory.js
|
|
9
|
-
/**
|
|
10
|
-
* Base provider implementation
|
|
11
|
-
*/
|
|
12
|
-
var BaseProvider = class {
|
|
13
|
-
name;
|
|
14
|
-
model;
|
|
15
|
-
mode;
|
|
16
|
-
config;
|
|
17
|
-
cachedModel = null;
|
|
18
|
-
constructor(config) {
|
|
19
|
-
this.name = config.provider;
|
|
20
|
-
this.model = config.model ?? DEFAULT_MODELS[config.provider];
|
|
21
|
-
this.mode = this.determineMode(config);
|
|
22
|
-
this.config = config;
|
|
23
|
-
}
|
|
24
|
-
determineMode(config) {
|
|
25
|
-
if (config.provider === "ollama") return "local";
|
|
26
|
-
if (config.apiKey) return "byok";
|
|
27
|
-
return "managed";
|
|
28
|
-
}
|
|
29
|
-
getModel() {
|
|
30
|
-
if (!this.cachedModel) this.cachedModel = this.createModel();
|
|
31
|
-
return this.cachedModel;
|
|
32
|
-
}
|
|
33
|
-
createModel() {
|
|
34
|
-
const { apiKey, baseUrl, proxyUrl, organizationId } = this.config;
|
|
35
|
-
switch (this.name) {
|
|
36
|
-
case "ollama": {
|
|
37
|
-
const originalBaseUrl = process.env.OLLAMA_BASE_URL;
|
|
38
|
-
if (baseUrl && baseUrl !== "http://localhost:11434") process.env.OLLAMA_BASE_URL = baseUrl;
|
|
39
|
-
const ollamaModel = ollama(this.model);
|
|
40
|
-
if (originalBaseUrl !== void 0) process.env.OLLAMA_BASE_URL = originalBaseUrl;
|
|
41
|
-
else if (baseUrl && baseUrl !== "http://localhost:11434") delete process.env.OLLAMA_BASE_URL;
|
|
42
|
-
return ollamaModel;
|
|
43
|
-
}
|
|
44
|
-
case "openai":
|
|
45
|
-
if (this.mode === "managed") {
|
|
46
|
-
const originalBaseUrl = process.env.OPENAI_BASE_URL;
|
|
47
|
-
if (proxyUrl) process.env.OPENAI_BASE_URL = proxyUrl;
|
|
48
|
-
const model = openai(this.model);
|
|
49
|
-
if (originalBaseUrl !== void 0) process.env.OPENAI_BASE_URL = originalBaseUrl;
|
|
50
|
-
else if (proxyUrl) delete process.env.OPENAI_BASE_URL;
|
|
51
|
-
return model;
|
|
52
|
-
}
|
|
53
|
-
return openai(this.model);
|
|
54
|
-
case "anthropic":
|
|
55
|
-
if (this.mode === "managed") {
|
|
56
|
-
const originalBaseUrl = process.env.OPENAI_BASE_URL;
|
|
57
|
-
if (proxyUrl) process.env.OPENAI_BASE_URL = proxyUrl;
|
|
58
|
-
const model = openai(this.model);
|
|
59
|
-
if (originalBaseUrl !== void 0) process.env.OPENAI_BASE_URL = originalBaseUrl;
|
|
60
|
-
else if (proxyUrl) delete process.env.OPENAI_BASE_URL;
|
|
61
|
-
return model;
|
|
62
|
-
}
|
|
63
|
-
return anthropic(this.model);
|
|
64
|
-
case "mistral":
|
|
65
|
-
if (this.mode === "managed") {
|
|
66
|
-
const originalBaseUrl = process.env.OPENAI_BASE_URL;
|
|
67
|
-
if (proxyUrl) process.env.OPENAI_BASE_URL = proxyUrl;
|
|
68
|
-
const model = openai(this.model);
|
|
69
|
-
if (originalBaseUrl !== void 0) process.env.OPENAI_BASE_URL = originalBaseUrl;
|
|
70
|
-
else if (proxyUrl) delete process.env.OPENAI_BASE_URL;
|
|
71
|
-
return model;
|
|
72
|
-
}
|
|
73
|
-
return mistral(this.model);
|
|
74
|
-
case "gemini":
|
|
75
|
-
if (this.mode === "managed") {
|
|
76
|
-
const originalBaseUrl = process.env.OPENAI_BASE_URL;
|
|
77
|
-
if (proxyUrl) process.env.OPENAI_BASE_URL = proxyUrl;
|
|
78
|
-
const model = openai(this.model);
|
|
79
|
-
if (originalBaseUrl !== void 0) process.env.OPENAI_BASE_URL = originalBaseUrl;
|
|
80
|
-
else if (proxyUrl) delete process.env.OPENAI_BASE_URL;
|
|
81
|
-
return model;
|
|
82
|
-
}
|
|
83
|
-
return google(this.model);
|
|
84
|
-
default: throw new Error(`Unknown provider: ${this.name}`);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
async listModels() {
|
|
88
|
-
if (this.name === "ollama") return this.listOllamaModels();
|
|
89
|
-
return getModelsForProvider(this.name);
|
|
90
|
-
}
|
|
91
|
-
async listOllamaModels() {
|
|
92
|
-
try {
|
|
93
|
-
const baseUrl = this.config.baseUrl ?? "http://localhost:11434";
|
|
94
|
-
const response = await fetch(`${baseUrl}/api/tags`);
|
|
95
|
-
if (!response.ok) return getModelsForProvider("ollama");
|
|
96
|
-
return ((await response.json()).models ?? []).map((m) => ({
|
|
97
|
-
id: m.name,
|
|
98
|
-
name: m.name,
|
|
99
|
-
provider: "ollama",
|
|
100
|
-
contextWindow: 8e3,
|
|
101
|
-
capabilities: {
|
|
102
|
-
vision: false,
|
|
103
|
-
tools: false,
|
|
104
|
-
reasoning: false,
|
|
105
|
-
streaming: true
|
|
106
|
-
}
|
|
107
|
-
}));
|
|
108
|
-
} catch {
|
|
109
|
-
return getModelsForProvider("ollama");
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
async validate() {
|
|
113
|
-
if (this.name === "ollama") return this.validateOllama();
|
|
114
|
-
if (this.mode === "byok" && !this.config.apiKey) return {
|
|
115
|
-
valid: false,
|
|
116
|
-
error: `API key required for ${this.name}`
|
|
117
|
-
};
|
|
118
|
-
if (this.mode === "managed" && !this.config.proxyUrl && !this.config.organizationId) return {
|
|
119
|
-
valid: false,
|
|
120
|
-
error: "Managed mode requires proxyUrl or organizationId"
|
|
121
|
-
};
|
|
122
|
-
return { valid: true };
|
|
123
|
-
}
|
|
124
|
-
async validateOllama() {
|
|
125
|
-
try {
|
|
126
|
-
const baseUrl = this.config.baseUrl ?? "http://localhost:11434";
|
|
127
|
-
const response = await fetch(`${baseUrl}/api/tags`);
|
|
128
|
-
if (!response.ok) return {
|
|
129
|
-
valid: false,
|
|
130
|
-
error: `Ollama server returned ${response.status}`
|
|
131
|
-
};
|
|
132
|
-
const models = (await response.json()).models ?? [];
|
|
133
|
-
if (!models.some((m) => m.name === this.model)) return {
|
|
134
|
-
valid: false,
|
|
135
|
-
error: `Model "${this.model}" not found. Available: ${models.map((m) => m.name).join(", ")}`
|
|
136
|
-
};
|
|
137
|
-
return { valid: true };
|
|
138
|
-
} catch (error) {
|
|
139
|
-
return {
|
|
140
|
-
valid: false,
|
|
141
|
-
error: `Cannot connect to Ollama at ${this.config.baseUrl ?? "http://localhost:11434"}: ${error instanceof Error ? error.message : String(error)}`
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
};
|
|
146
|
-
/**
|
|
147
|
-
* Create a provider from configuration
|
|
148
|
-
*/
|
|
149
|
-
function createProvider(config) {
|
|
150
|
-
return new BaseProvider(config);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
//#endregion
|
|
154
|
-
export { createProvider };
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { getRecommendedModels } from "./models.js";
|
|
2
|
-
import { createProvider } from "./factory.js";
|
|
3
|
-
|
|
4
|
-
//#region ../../libs/ai-providers/dist/legacy.js
|
|
5
|
-
/**
|
|
6
|
-
* Map legacy provider names to new ones
|
|
7
|
-
*/
|
|
8
|
-
function mapLegacyProvider(legacy) {
|
|
9
|
-
switch (legacy) {
|
|
10
|
-
case "claude": return "anthropic";
|
|
11
|
-
case "custom": return "openai";
|
|
12
|
-
default: return legacy;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Get AI provider from legacy Config type
|
|
17
|
-
*
|
|
18
|
-
* @deprecated Use createProvider() instead
|
|
19
|
-
*/
|
|
20
|
-
function getAIProvider(config) {
|
|
21
|
-
const provider = mapLegacyProvider(config.aiProvider);
|
|
22
|
-
let apiKey;
|
|
23
|
-
switch (provider) {
|
|
24
|
-
case "openai":
|
|
25
|
-
apiKey = process.env.OPENAI_API_KEY;
|
|
26
|
-
break;
|
|
27
|
-
case "anthropic":
|
|
28
|
-
apiKey = process.env.ANTHROPIC_API_KEY;
|
|
29
|
-
break;
|
|
30
|
-
case "mistral":
|
|
31
|
-
apiKey = process.env.MISTRAL_API_KEY;
|
|
32
|
-
break;
|
|
33
|
-
case "gemini":
|
|
34
|
-
apiKey = process.env.GOOGLE_API_KEY ?? process.env.GEMINI_API_KEY;
|
|
35
|
-
break;
|
|
36
|
-
}
|
|
37
|
-
return createProvider({
|
|
38
|
-
provider,
|
|
39
|
-
model: config.aiModel,
|
|
40
|
-
apiKey,
|
|
41
|
-
baseUrl: config.customEndpoint
|
|
42
|
-
}).getModel();
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Validate provider from legacy Config type
|
|
46
|
-
*
|
|
47
|
-
* @deprecated Use validateProvider() from './validation' instead
|
|
48
|
-
*/
|
|
49
|
-
async function validateProvider(config) {
|
|
50
|
-
const provider = mapLegacyProvider(config.aiProvider);
|
|
51
|
-
if (provider === "ollama") return { success: true };
|
|
52
|
-
if (provider === "anthropic" && !process.env.ANTHROPIC_API_KEY) return {
|
|
53
|
-
success: false,
|
|
54
|
-
error: "ANTHROPIC_API_KEY environment variable not set"
|
|
55
|
-
};
|
|
56
|
-
if (provider === "openai" && !process.env.OPENAI_API_KEY) return {
|
|
57
|
-
success: false,
|
|
58
|
-
error: "OPENAI_API_KEY environment variable not set"
|
|
59
|
-
};
|
|
60
|
-
if (provider === "mistral" && !process.env.MISTRAL_API_KEY) return {
|
|
61
|
-
success: false,
|
|
62
|
-
error: "MISTRAL_API_KEY environment variable not set"
|
|
63
|
-
};
|
|
64
|
-
if (provider === "gemini" && !process.env.GOOGLE_API_KEY && !process.env.GEMINI_API_KEY) return {
|
|
65
|
-
success: false,
|
|
66
|
-
error: "GOOGLE_API_KEY or GEMINI_API_KEY environment variable not set"
|
|
67
|
-
};
|
|
68
|
-
return { success: true };
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
//#endregion
|
|
72
|
-
export { getAIProvider, validateProvider };
|
|
@@ -1,287 +0,0 @@
|
|
|
1
|
-
//#region ../../libs/ai-providers/dist/models.js
|
|
2
|
-
/**
|
|
3
|
-
* Default models per provider
|
|
4
|
-
*/
|
|
5
|
-
const DEFAULT_MODELS = {
|
|
6
|
-
ollama: "llama3.2",
|
|
7
|
-
openai: "gpt-4o",
|
|
8
|
-
anthropic: "claude-sonnet-4-20250514",
|
|
9
|
-
mistral: "mistral-large-latest",
|
|
10
|
-
gemini: "gemini-2.0-flash"
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* All recommended models with metadata
|
|
14
|
-
*/
|
|
15
|
-
const MODELS = [
|
|
16
|
-
{
|
|
17
|
-
id: "llama3.2",
|
|
18
|
-
name: "Llama 3.2",
|
|
19
|
-
provider: "ollama",
|
|
20
|
-
contextWindow: 128e3,
|
|
21
|
-
capabilities: {
|
|
22
|
-
vision: false,
|
|
23
|
-
tools: true,
|
|
24
|
-
reasoning: false,
|
|
25
|
-
streaming: true
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
id: "codellama",
|
|
30
|
-
name: "Code Llama",
|
|
31
|
-
provider: "ollama",
|
|
32
|
-
contextWindow: 16e3,
|
|
33
|
-
capabilities: {
|
|
34
|
-
vision: false,
|
|
35
|
-
tools: false,
|
|
36
|
-
reasoning: false,
|
|
37
|
-
streaming: true
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
id: "deepseek-coder",
|
|
42
|
-
name: "DeepSeek Coder",
|
|
43
|
-
provider: "ollama",
|
|
44
|
-
contextWindow: 16e3,
|
|
45
|
-
capabilities: {
|
|
46
|
-
vision: false,
|
|
47
|
-
tools: false,
|
|
48
|
-
reasoning: false,
|
|
49
|
-
streaming: true
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
id: "mistral",
|
|
54
|
-
name: "Mistral 7B",
|
|
55
|
-
provider: "ollama",
|
|
56
|
-
contextWindow: 32e3,
|
|
57
|
-
capabilities: {
|
|
58
|
-
vision: false,
|
|
59
|
-
tools: false,
|
|
60
|
-
reasoning: false,
|
|
61
|
-
streaming: true
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
id: "gpt-4o",
|
|
66
|
-
name: "GPT-4o",
|
|
67
|
-
provider: "openai",
|
|
68
|
-
contextWindow: 128e3,
|
|
69
|
-
capabilities: {
|
|
70
|
-
vision: true,
|
|
71
|
-
tools: true,
|
|
72
|
-
reasoning: false,
|
|
73
|
-
streaming: true
|
|
74
|
-
},
|
|
75
|
-
costPerMillion: {
|
|
76
|
-
input: 2.5,
|
|
77
|
-
output: 10
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
id: "gpt-4o-mini",
|
|
82
|
-
name: "GPT-4o Mini",
|
|
83
|
-
provider: "openai",
|
|
84
|
-
contextWindow: 128e3,
|
|
85
|
-
capabilities: {
|
|
86
|
-
vision: true,
|
|
87
|
-
tools: true,
|
|
88
|
-
reasoning: false,
|
|
89
|
-
streaming: true
|
|
90
|
-
},
|
|
91
|
-
costPerMillion: {
|
|
92
|
-
input: .15,
|
|
93
|
-
output: .6
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
id: "o1",
|
|
98
|
-
name: "o1",
|
|
99
|
-
provider: "openai",
|
|
100
|
-
contextWindow: 2e5,
|
|
101
|
-
capabilities: {
|
|
102
|
-
vision: true,
|
|
103
|
-
tools: true,
|
|
104
|
-
reasoning: true,
|
|
105
|
-
streaming: true
|
|
106
|
-
},
|
|
107
|
-
costPerMillion: {
|
|
108
|
-
input: 15,
|
|
109
|
-
output: 60
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
id: "o1-mini",
|
|
114
|
-
name: "o1 Mini",
|
|
115
|
-
provider: "openai",
|
|
116
|
-
contextWindow: 128e3,
|
|
117
|
-
capabilities: {
|
|
118
|
-
vision: false,
|
|
119
|
-
tools: true,
|
|
120
|
-
reasoning: true,
|
|
121
|
-
streaming: true
|
|
122
|
-
},
|
|
123
|
-
costPerMillion: {
|
|
124
|
-
input: 3,
|
|
125
|
-
output: 12
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
id: "claude-sonnet-4-20250514",
|
|
130
|
-
name: "Claude Sonnet 4",
|
|
131
|
-
provider: "anthropic",
|
|
132
|
-
contextWindow: 2e5,
|
|
133
|
-
capabilities: {
|
|
134
|
-
vision: true,
|
|
135
|
-
tools: true,
|
|
136
|
-
reasoning: true,
|
|
137
|
-
streaming: true
|
|
138
|
-
},
|
|
139
|
-
costPerMillion: {
|
|
140
|
-
input: 3,
|
|
141
|
-
output: 15
|
|
142
|
-
}
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
id: "claude-3-5-sonnet-20241022",
|
|
146
|
-
name: "Claude 3.5 Sonnet",
|
|
147
|
-
provider: "anthropic",
|
|
148
|
-
contextWindow: 2e5,
|
|
149
|
-
capabilities: {
|
|
150
|
-
vision: true,
|
|
151
|
-
tools: true,
|
|
152
|
-
reasoning: false,
|
|
153
|
-
streaming: true
|
|
154
|
-
},
|
|
155
|
-
costPerMillion: {
|
|
156
|
-
input: 3,
|
|
157
|
-
output: 15
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
id: "claude-3-5-haiku-20241022",
|
|
162
|
-
name: "Claude 3.5 Haiku",
|
|
163
|
-
provider: "anthropic",
|
|
164
|
-
contextWindow: 2e5,
|
|
165
|
-
capabilities: {
|
|
166
|
-
vision: true,
|
|
167
|
-
tools: true,
|
|
168
|
-
reasoning: false,
|
|
169
|
-
streaming: true
|
|
170
|
-
},
|
|
171
|
-
costPerMillion: {
|
|
172
|
-
input: .8,
|
|
173
|
-
output: 4
|
|
174
|
-
}
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
id: "mistral-large-latest",
|
|
178
|
-
name: "Mistral Large",
|
|
179
|
-
provider: "mistral",
|
|
180
|
-
contextWindow: 128e3,
|
|
181
|
-
capabilities: {
|
|
182
|
-
vision: false,
|
|
183
|
-
tools: true,
|
|
184
|
-
reasoning: false,
|
|
185
|
-
streaming: true
|
|
186
|
-
},
|
|
187
|
-
costPerMillion: {
|
|
188
|
-
input: 2,
|
|
189
|
-
output: 6
|
|
190
|
-
}
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
id: "codestral-latest",
|
|
194
|
-
name: "Codestral",
|
|
195
|
-
provider: "mistral",
|
|
196
|
-
contextWindow: 32e3,
|
|
197
|
-
capabilities: {
|
|
198
|
-
vision: false,
|
|
199
|
-
tools: true,
|
|
200
|
-
reasoning: false,
|
|
201
|
-
streaming: true
|
|
202
|
-
},
|
|
203
|
-
costPerMillion: {
|
|
204
|
-
input: .2,
|
|
205
|
-
output: .6
|
|
206
|
-
}
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
id: "mistral-small-latest",
|
|
210
|
-
name: "Mistral Small",
|
|
211
|
-
provider: "mistral",
|
|
212
|
-
contextWindow: 32e3,
|
|
213
|
-
capabilities: {
|
|
214
|
-
vision: false,
|
|
215
|
-
tools: true,
|
|
216
|
-
reasoning: false,
|
|
217
|
-
streaming: true
|
|
218
|
-
},
|
|
219
|
-
costPerMillion: {
|
|
220
|
-
input: .2,
|
|
221
|
-
output: .6
|
|
222
|
-
}
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
id: "gemini-2.0-flash",
|
|
226
|
-
name: "Gemini 2.0 Flash",
|
|
227
|
-
provider: "gemini",
|
|
228
|
-
contextWindow: 1e6,
|
|
229
|
-
capabilities: {
|
|
230
|
-
vision: true,
|
|
231
|
-
tools: true,
|
|
232
|
-
reasoning: false,
|
|
233
|
-
streaming: true
|
|
234
|
-
},
|
|
235
|
-
costPerMillion: {
|
|
236
|
-
input: .075,
|
|
237
|
-
output: .3
|
|
238
|
-
}
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
id: "gemini-2.5-pro-preview-06-05",
|
|
242
|
-
name: "Gemini 2.5 Pro",
|
|
243
|
-
provider: "gemini",
|
|
244
|
-
contextWindow: 1e6,
|
|
245
|
-
capabilities: {
|
|
246
|
-
vision: true,
|
|
247
|
-
tools: true,
|
|
248
|
-
reasoning: true,
|
|
249
|
-
streaming: true
|
|
250
|
-
},
|
|
251
|
-
costPerMillion: {
|
|
252
|
-
input: 1.25,
|
|
253
|
-
output: 10
|
|
254
|
-
}
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
id: "gemini-2.5-flash-preview-05-20",
|
|
258
|
-
name: "Gemini 2.5 Flash",
|
|
259
|
-
provider: "gemini",
|
|
260
|
-
contextWindow: 1e6,
|
|
261
|
-
capabilities: {
|
|
262
|
-
vision: true,
|
|
263
|
-
tools: true,
|
|
264
|
-
reasoning: true,
|
|
265
|
-
streaming: true
|
|
266
|
-
},
|
|
267
|
-
costPerMillion: {
|
|
268
|
-
input: .15,
|
|
269
|
-
output: .6
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
];
|
|
273
|
-
/**
|
|
274
|
-
* Get models for a specific provider
|
|
275
|
-
*/
|
|
276
|
-
function getModelsForProvider(provider) {
|
|
277
|
-
return MODELS.filter((m) => m.provider === provider);
|
|
278
|
-
}
|
|
279
|
-
/**
|
|
280
|
-
* Get recommended models for a provider (legacy format)
|
|
281
|
-
*/
|
|
282
|
-
function getRecommendedModels(provider) {
|
|
283
|
-
return getModelsForProvider(provider === "claude" ? "anthropic" : provider === "custom" ? "openai" : provider).map((m) => m.id);
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
//#endregion
|
|
287
|
-
export { DEFAULT_MODELS, MODELS, getModelsForProvider, getRecommendedModels };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./factory.js";
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { StabilityEnum } from "../ownership.js";
|
|
2
|
-
|
|
3
|
-
//#region ../../libs/contracts/dist/capabilities/openbanking.js
|
|
4
|
-
const OWNERS = ["platform.finance"];
|
|
5
|
-
const TAGS = ["open-banking", "finance"];
|
|
6
|
-
const openBankingAccountsReadCapability = {
|
|
7
|
-
meta: {
|
|
8
|
-
key: "openbanking.accounts.read",
|
|
9
|
-
version: 1,
|
|
10
|
-
kind: "integration",
|
|
11
|
-
title: "Open Banking Accounts (Read)",
|
|
12
|
-
description: "Provides read-only access to linked bank accounts, including account summaries and metadata.",
|
|
13
|
-
domain: "finance",
|
|
14
|
-
owners: [...OWNERS],
|
|
15
|
-
tags: [...TAGS],
|
|
16
|
-
stability: StabilityEnum.Experimental
|
|
17
|
-
},
|
|
18
|
-
provides: [
|
|
19
|
-
{
|
|
20
|
-
surface: "operation",
|
|
21
|
-
name: "openbanking.accounts.list",
|
|
22
|
-
version: 1,
|
|
23
|
-
description: "List bank accounts linked to a Powens open banking connection."
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
surface: "operation",
|
|
27
|
-
name: "openbanking.accounts.get",
|
|
28
|
-
version: 1,
|
|
29
|
-
description: "Retrieve the canonical bank account record for a specific account."
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
surface: "operation",
|
|
33
|
-
name: "openbanking.accounts.sync",
|
|
34
|
-
version: 1,
|
|
35
|
-
description: "Trigger a refresh of bank account metadata from the open banking provider."
|
|
36
|
-
}
|
|
37
|
-
]
|
|
38
|
-
};
|
|
39
|
-
const openBankingTransactionsReadCapability = {
|
|
40
|
-
meta: {
|
|
41
|
-
key: "openbanking.transactions.read",
|
|
42
|
-
version: 1,
|
|
43
|
-
kind: "integration",
|
|
44
|
-
title: "Open Banking Transactions (Read)",
|
|
45
|
-
description: "Enables retrieval of transaction history for linked bank accounts via open banking providers.",
|
|
46
|
-
domain: "finance",
|
|
47
|
-
owners: [...OWNERS],
|
|
48
|
-
tags: [...TAGS, "transactions"],
|
|
49
|
-
stability: StabilityEnum.Experimental
|
|
50
|
-
},
|
|
51
|
-
provides: [{
|
|
52
|
-
surface: "operation",
|
|
53
|
-
name: "openbanking.transactions.list",
|
|
54
|
-
version: 1,
|
|
55
|
-
description: "List transactions for a given bank account with optional date filtering."
|
|
56
|
-
}, {
|
|
57
|
-
surface: "operation",
|
|
58
|
-
name: "openbanking.transactions.sync",
|
|
59
|
-
version: 1,
|
|
60
|
-
description: "Synchronise transactions from the open banking provider into the canonical ledger."
|
|
61
|
-
}]
|
|
62
|
-
};
|
|
63
|
-
const openBankingBalancesReadCapability = {
|
|
64
|
-
meta: {
|
|
65
|
-
key: "openbanking.balances.read",
|
|
66
|
-
version: 1,
|
|
67
|
-
kind: "integration",
|
|
68
|
-
title: "Open Banking Balances (Read)",
|
|
69
|
-
description: "Allows querying of current and available balances for linked bank accounts via open banking providers.",
|
|
70
|
-
domain: "finance",
|
|
71
|
-
owners: [...OWNERS],
|
|
72
|
-
tags: [...TAGS, "balances"],
|
|
73
|
-
stability: StabilityEnum.Experimental
|
|
74
|
-
},
|
|
75
|
-
provides: [{
|
|
76
|
-
surface: "operation",
|
|
77
|
-
name: "openbanking.balances.get",
|
|
78
|
-
version: 1,
|
|
79
|
-
description: "Retrieve the latest known balances for a specified bank account."
|
|
80
|
-
}, {
|
|
81
|
-
surface: "operation",
|
|
82
|
-
name: "openbanking.balances.refresh",
|
|
83
|
-
version: 1,
|
|
84
|
-
description: "Force a balance refresh from the open banking provider."
|
|
85
|
-
}]
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
//#endregion
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { ContractRegistryFileSchema, ContractRegistryItemSchema, ContractRegistryItemTypeSchema } from "./schemas.js";
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { StabilityEnum } from "../ownership.js";
|
|
2
|
-
import z from "zod";
|
|
3
|
-
|
|
4
|
-
//#region ../../libs/contracts/dist/contract-registry/schemas.js
|
|
5
|
-
const ContractRegistryItemTypeSchema = z.enum([
|
|
6
|
-
"contractspec:operation",
|
|
7
|
-
"contractspec:event",
|
|
8
|
-
"contractspec:presentation",
|
|
9
|
-
"contractspec:form",
|
|
10
|
-
"contractspec:feature",
|
|
11
|
-
"contractspec:workflow",
|
|
12
|
-
"contractspec:template",
|
|
13
|
-
"contractspec:integration",
|
|
14
|
-
"contractspec:data-view",
|
|
15
|
-
"contractspec:migration",
|
|
16
|
-
"contractspec:telemetry",
|
|
17
|
-
"contractspec:experiment",
|
|
18
|
-
"contractspec:app-config",
|
|
19
|
-
"contractspec:knowledge"
|
|
20
|
-
]);
|
|
21
|
-
const ContractRegistryFileSchema = z.object({
|
|
22
|
-
path: z.string().min(1),
|
|
23
|
-
type: z.string().min(1),
|
|
24
|
-
content: z.string().optional()
|
|
25
|
-
});
|
|
26
|
-
const ContractRegistryItemSchema = z.object({
|
|
27
|
-
name: z.string().min(1),
|
|
28
|
-
type: ContractRegistryItemTypeSchema,
|
|
29
|
-
version: z.number().int().nonnegative(),
|
|
30
|
-
title: z.string().min(1),
|
|
31
|
-
description: z.string().min(1),
|
|
32
|
-
meta: z.object({
|
|
33
|
-
stability: z.enum([
|
|
34
|
-
StabilityEnum.Idea,
|
|
35
|
-
StabilityEnum.InCreation,
|
|
36
|
-
StabilityEnum.Experimental,
|
|
37
|
-
StabilityEnum.Beta,
|
|
38
|
-
StabilityEnum.Stable,
|
|
39
|
-
StabilityEnum.Deprecated
|
|
40
|
-
]),
|
|
41
|
-
owners: z.array(z.string().min(1)).default([]),
|
|
42
|
-
tags: z.array(z.string().min(1)).default([])
|
|
43
|
-
}),
|
|
44
|
-
dependencies: z.array(z.string().min(1)).optional(),
|
|
45
|
-
registryDependencies: z.array(z.string().min(1)).optional(),
|
|
46
|
-
files: z.array(ContractRegistryFileSchema).min(1),
|
|
47
|
-
schema: z.object({
|
|
48
|
-
input: z.unknown().optional(),
|
|
49
|
-
output: z.unknown().optional()
|
|
50
|
-
}).optional()
|
|
51
|
-
});
|
|
52
|
-
const ContractRegistryManifestSchema = z.object({
|
|
53
|
-
$schema: z.string().min(1).optional(),
|
|
54
|
-
name: z.string().min(1),
|
|
55
|
-
homepage: z.string().min(1).optional(),
|
|
56
|
-
items: z.array(ContractRegistryItemSchema)
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
//#endregion
|
|
60
|
-
export { ContractRegistryFileSchema, ContractRegistryItemSchema, ContractRegistryItemTypeSchema };
|