@lssm/lib.contracts 0.0.0-canary-20251220030446 → 0.0.0-canary-20251221114240
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 +4 -4
- package/dist/app-config/contracts.d.ts +60 -60
- package/dist/app-config/contracts.js +1 -1
- package/dist/app-config/events.d.ts +27 -27
- package/dist/app-config/lifecycle-contracts.d.ts +10 -10
- package/dist/app-config/lifecycle-contracts.js +1 -1
- package/dist/docs/tech/contracts/README.docblock.js +2 -2
- package/dist/docs/tech/contracts/openapi-export.docblock.js +6 -6
- package/dist/docs/tech/contracts/ops-to-presentation-linking.docblock.js +2 -2
- package/dist/docs/tech/contracts/tests.docblock.js +2 -2
- package/dist/experiments/spec-resolver.d.ts +2 -2
- package/dist/features.d.ts +5 -5
- package/dist/index.d.ts +6 -4
- package/dist/index.js +5 -3
- package/dist/install.d.ts +16 -16
- package/dist/integrations/contracts.d.ts +9 -9
- package/dist/integrations/contracts.js +1 -1
- package/dist/integrations/openbanking/contracts/accounts.d.ts +73 -73
- package/dist/integrations/openbanking/contracts/accounts.js +1 -1
- package/dist/integrations/openbanking/contracts/balances.d.ts +40 -40
- package/dist/integrations/openbanking/contracts/balances.js +1 -1
- package/dist/integrations/openbanking/contracts/index.d.ts +2 -2
- package/dist/integrations/openbanking/contracts/transactions.d.ts +54 -54
- package/dist/integrations/openbanking/contracts/transactions.js +1 -1
- package/dist/jsonschema.d.ts +5 -5
- package/dist/knowledge/contracts.d.ts +9 -9
- package/dist/knowledge/contracts.js +1 -1
- package/dist/llm/exporters.d.ts +8 -8
- package/dist/llm/exporters.js +1 -1
- package/dist/llm/prompts.d.ts +7 -7
- package/dist/llm/types.d.ts +3 -3
- package/dist/markdown.d.ts +3 -3
- package/dist/markdown.js +1 -1
- package/dist/onboarding-base.d.ts +32 -32
- package/dist/onboarding-base.js +1 -1
- package/dist/openapi.d.ts +2 -2
- package/dist/{spec.d.ts → operation.d.ts} +12 -12
- package/dist/{spec.js → operation.js} +1 -1
- package/dist/policy/docs/policy.docblock.js +1 -1
- package/dist/presentations.d.ts +3 -3
- package/dist/registry.d.ts +13 -14
- package/dist/registry.js +5 -5
- package/dist/server/graphql-pothos.d.ts +6 -6
- package/dist/server/graphql-pothos.js +4 -4
- package/dist/server/mcp/createMcpServer.d.ts +3 -3
- package/dist/server/mcp/createMcpServer.js +1 -1
- package/dist/server/mcp/registerTools.d.ts +2 -2
- package/dist/server/rest-elysia.d.ts +2 -2
- package/dist/server/rest-express.d.ts +2 -2
- package/dist/server/rest-generic.d.ts +3 -3
- package/dist/server/rest-generic.js +1 -1
- package/dist/server/rest-next-app.d.ts +4 -4
- package/dist/server/rest-next-app.js +2 -2
- package/dist/server/rest-next-mcp.d.ts +2 -2
- package/dist/server/rest-next-pages.d.ts +2 -2
- package/dist/telemetry/docs/telemetry.docblock.js +1 -1
- package/dist/tests/runner.d.ts +2 -2
- package/dist/types/all.d.ts +2 -2
- package/dist/workflow/validation.d.ts +2 -2
- package/dist/workspace-config/contractsrc-schema.d.ts +188 -0
- package/dist/workspace-config/contractsrc-schema.js +114 -0
- package/dist/workspace-config/index.d.ts +2 -0
- package/dist/workspace-config/index.js +3 -0
- package/package.json +13 -11
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { HandlerCtx } from "../types.js";
|
|
2
|
-
import {
|
|
2
|
+
import { OperationSpecRegistry } from "../registry.js";
|
|
3
3
|
|
|
4
4
|
//#region src/server/rest-next-mcp.d.ts
|
|
5
|
-
declare function makeNextMcpServerFromRegistry(reg:
|
|
5
|
+
declare function makeNextMcpServerFromRegistry(reg: OperationSpecRegistry, ctxFactory: () => HandlerCtx): {
|
|
6
6
|
GET: (request: Request) => Promise<Response>;
|
|
7
7
|
POST: (request: Request) => Promise<Response>;
|
|
8
8
|
DELETE: (request: Request) => Promise<Response>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HandlerCtx } from "../types.js";
|
|
2
|
-
import {
|
|
2
|
+
import { OperationSpecRegistry } from "../registry.js";
|
|
3
3
|
import { RestOptions } from "./rest-generic.js";
|
|
4
4
|
import { NextApiRequest, NextApiResponse } from "next";
|
|
5
5
|
|
|
6
6
|
//#region src/server/rest-next-pages.d.ts
|
|
7
|
-
declare function makeNextPagesHandler(reg:
|
|
7
|
+
declare function makeNextPagesHandler(reg: OperationSpecRegistry, ctxFactory: (req: NextApiRequest) => HandlerCtx, options?: RestOptions): (req: NextApiRequest, res: NextApiResponse) => Promise<void>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { makeNextPagesHandler };
|
|
@@ -14,7 +14,7 @@ const tech_contracts_telemetry_DocBlocks = [{
|
|
|
14
14
|
"contracts",
|
|
15
15
|
"telemetry"
|
|
16
16
|
],
|
|
17
|
-
body: "## TelemetrySpec\n\nTelemetry specs describe product analytics in a durable, type-safe way. They reference existing `EventSpec`s (same name/version) but layer on privacy classification, retention, sampling, and anomaly detection so instrumentation stays compliant and observable.\n\n- **File location**: `packages/libs/contracts/src/telemetry/spec.ts`\n- **Runtime tracker**: `packages/libs/contracts/src/telemetry/tracker.ts`\n- **Anomaly monitor**: `packages/libs/contracts/src/telemetry/anomaly.ts`\n\n### Core concepts\n\n```ts\nexport interface TelemetrySpec {\n meta: TelemetryMeta;\n events: TelemetryEventDef[];\n config?: TelemetryConfig;\n}\n```\n\n- `meta`: ownership + identifiers (`name`, `version`, `domain`)\n- `events`: per-event semantics, property definitions, privacy level, retention, sampling, anomaly rules\n- `config`: defaults and provider configuration\n- `TelemetryRegistry`: registers specs, resolves latest version, finds event definitions by name/version\n\n### An example\n\n```ts\nexport const SigilTelemetry: TelemetrySpec = {\n meta: {\n name: 'sigil.telemetry',\n version: 1,\n title: 'Sigil telemetry',\n description: 'Core Sigil product telemetry',\n domain: 'sigil',\n owners: ['@team.analytics'],\n tags: ['telemetry'],\n stability: StabilityEnum.Experimental,\n },\n config: {\n defaultRetentionDays: 30,\n defaultSamplingRate: 1,\n providers: [\n { type: 'posthog', config: { projectApiKey: process.env.POSTHOG_KEY } },\n ],\n },\n events: [\n {\n name: 'sigil.telemetry.workflow_step',\n version: 1,\n semantics: {\n what: 'Workflow step executed',\n who: 'Actor executing the workflow',\n },\n privacy: 'internal',\n properties: {\n workflow: { type: 'string', required: true },\n step: { type: 'string', required: true },\n durationMs: { type: 'number' },\n userId: { type: 'string', pii: true, redact: true },\n },\n anomalyDetection: {\n enabled: true,\n minimumSample: 10,\n thresholds: [\n { metric: 'durationMs', max: 1500 },\n ],\n actions: ['alert', 'trigger_regen'],\n },\n },\n ],\n};\n```\n\n### Tracking events at runtime\n\n`TelemetryTracker` performs sampling, PII redaction, provider dispatch, and anomaly detection.\n\n```ts\nconst tracker = new TelemetryTracker({\n registry: telemetryRegistry,\n providers: [\n {\n id: 'posthog',\n async send(dispatch) {\n posthog.capture({\n event: dispatch.name,\n properties: dispatch.properties,\n distinctId: dispatch.context.userId ?? dispatch.context.sessionId,\n });\n },\n },\n ],\n anomalyMonitor: new TelemetryAnomalyMonitor({\n onAnomaly(event) {\n console.warn('Telemetry anomaly detected', event);\n },\n }),\n});\n\nawait tracker.track('sigil.telemetry.workflow_step', 1, {\n workflow: 'onboarding',\n step: 'verify_email',\n durationMs: 2100,\n userId: 'user-123',\n});\n```\n\n- Sampling obeys the event-specific rate (fallback to spec defaults)\n- Properties flagged with `pii` or `redact` are masked before dispatch\n- Anomaly monitor evaluates thresholds and triggers actions (e.g., log, alert, regeneration)\n\n### Spec integration\n\n- `ContractSpec.telemetry` allows operations to emit success/failure events automatically\n- `
|
|
17
|
+
body: "## TelemetrySpec\n\nTelemetry specs describe product analytics in a durable, type-safe way. They reference existing `EventSpec`s (same name/version) but layer on privacy classification, retention, sampling, and anomaly detection so instrumentation stays compliant and observable.\n\n- **File location**: `packages/libs/contracts/src/telemetry/spec.ts`\n- **Runtime tracker**: `packages/libs/contracts/src/telemetry/tracker.ts`\n- **Anomaly monitor**: `packages/libs/contracts/src/telemetry/anomaly.ts`\n\n### Core concepts\n\n```ts\nexport interface TelemetrySpec {\n meta: TelemetryMeta;\n events: TelemetryEventDef[];\n config?: TelemetryConfig;\n}\n```\n\n- `meta`: ownership + identifiers (`name`, `version`, `domain`)\n- `events`: per-event semantics, property definitions, privacy level, retention, sampling, anomaly rules\n- `config`: defaults and provider configuration\n- `TelemetryRegistry`: registers specs, resolves latest version, finds event definitions by name/version\n\n### An example\n\n```ts\nexport const SigilTelemetry: TelemetrySpec = {\n meta: {\n name: 'sigil.telemetry',\n version: 1,\n title: 'Sigil telemetry',\n description: 'Core Sigil product telemetry',\n domain: 'sigil',\n owners: ['@team.analytics'],\n tags: ['telemetry'],\n stability: StabilityEnum.Experimental,\n },\n config: {\n defaultRetentionDays: 30,\n defaultSamplingRate: 1,\n providers: [\n { type: 'posthog', config: { projectApiKey: process.env.POSTHOG_KEY } },\n ],\n },\n events: [\n {\n name: 'sigil.telemetry.workflow_step',\n version: 1,\n semantics: {\n what: 'Workflow step executed',\n who: 'Actor executing the workflow',\n },\n privacy: 'internal',\n properties: {\n workflow: { type: 'string', required: true },\n step: { type: 'string', required: true },\n durationMs: { type: 'number' },\n userId: { type: 'string', pii: true, redact: true },\n },\n anomalyDetection: {\n enabled: true,\n minimumSample: 10,\n thresholds: [\n { metric: 'durationMs', max: 1500 },\n ],\n actions: ['alert', 'trigger_regen'],\n },\n },\n ],\n};\n```\n\n### Tracking events at runtime\n\n`TelemetryTracker` performs sampling, PII redaction, provider dispatch, and anomaly detection.\n\n```ts\nconst tracker = new TelemetryTracker({\n registry: telemetryRegistry,\n providers: [\n {\n id: 'posthog',\n async send(dispatch) {\n posthog.capture({\n event: dispatch.name,\n properties: dispatch.properties,\n distinctId: dispatch.context.userId ?? dispatch.context.sessionId,\n });\n },\n },\n ],\n anomalyMonitor: new TelemetryAnomalyMonitor({\n onAnomaly(event) {\n console.warn('Telemetry anomaly detected', event);\n },\n }),\n});\n\nawait tracker.track('sigil.telemetry.workflow_step', 1, {\n workflow: 'onboarding',\n step: 'verify_email',\n durationMs: 2100,\n userId: 'user-123',\n});\n```\n\n- Sampling obeys the event-specific rate (fallback to spec defaults)\n- Properties flagged with `pii` or `redact` are masked before dispatch\n- Anomaly monitor evaluates thresholds and triggers actions (e.g., log, alert, regeneration)\n\n### Spec integration\n\n- `ContractSpec.telemetry` allows operations to emit success/failure events automatically\n- `OperationSpecRegistry.execute()` uses the tracker when `ctx.telemetry` is provided\n- `WorkflowRunner` (Phase 4 follow-up) will emit telemetry during step transitions\n- `TelemetrySpec` events should reuse `EventSpec` names/versions to keep analytics/contract parity\n\n### CLI workflow\n\n```\ncontracts-cli create telemetry\n```\n\n- Interactive wizard prompts for meta, providers, events, properties, retention, anomaly rules\n- Output: `*.telemetry.ts` file using `TelemetrySpec`\n\n### Best practices\n\n- Prefer `internal` privacy for non-PII; mark PII properties explicitly with `pii` + `redact`\n- Keep sampling ≥0.05 except for high-volume events\n- Configure anomaly detection on key metrics (duration, error count, conversion)\n- Check telemetry into source control alongside contracts; regenerate via CLI when specs change\n\n### Next steps\n\n- Phase 5: Regenerator monitors telemetry anomalies to propose spec improvements\n- Phase 6: Studio surfaces telemetry controls per tenant via `TenantAppConfig`\n\n"
|
|
18
18
|
}];
|
|
19
19
|
registerDocBlocks(tech_contracts_telemetry_DocBlocks);
|
|
20
20
|
|
package/dist/tests/runner.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Assertion, TestScenario, TestSpec } from "./spec.js";
|
|
2
2
|
import { HandlerCtx } from "../types.js";
|
|
3
|
-
import {
|
|
3
|
+
import { OperationSpecRegistry } from "../registry.js";
|
|
4
4
|
import "../index.js";
|
|
5
5
|
|
|
6
6
|
//#region src/tests/runner.d.ts
|
|
@@ -22,7 +22,7 @@ interface TestRunResult {
|
|
|
22
22
|
failed: number;
|
|
23
23
|
}
|
|
24
24
|
interface TestRunnerConfig {
|
|
25
|
-
registry:
|
|
25
|
+
registry: OperationSpecRegistry;
|
|
26
26
|
createContext?: () => HandlerCtx | Promise<HandlerCtx>;
|
|
27
27
|
beforeEach?: (scenario: TestScenario) => void | Promise<void>;
|
|
28
28
|
afterEach?: (scenario: TestScenario, result: ScenarioRunResult) => void | Promise<void>;
|
package/dist/types/all.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { EventEnvelope, EventKey, EventSpec, defineEvent, eventKey } from "../ev
|
|
|
5
5
|
import { ResourceMeta, ResourceRefDescriptor, ResourceRegistry, ResourceTemplateSpec, defineResourceTemplate, isResourceRef, resourceRef } from "../resources.js";
|
|
6
6
|
import { AttributeMatcher, ConsentDefinition, FieldPolicyRule, PIIPolicy, PolicyCondition, PolicyEffect, PolicyMeta, PolicyOPAConfig, PolicyRef, PolicyRegistry, PolicyRule, PolicySpec, RateLimitDefinition, RelationshipDefinition, RelationshipMatcher, ResourceMatcher, SubjectMatcher, makePolicyKey } from "../policy/spec.js";
|
|
7
7
|
import { Action, Assertion, CoverageRequirement, ExpectErrorAssertion, ExpectEventsAssertion, ExpectOutputAssertion, ExpectedEvent, Fixture, OperationTargetRef, TestRegistry, TestScenario, TestSpec, TestSpecMeta, TestSpecRef, TestTarget, WorkflowTargetRef, makeTestKey } from "../tests/spec.js";
|
|
8
|
-
import {
|
|
8
|
+
import { AnyOperationSpec, EmitDecl, EmitDeclInline, EmitDeclRef, ImplementationRef, ImplementationType, OpKind, OperationSpec, TelemetryTrigger, defineCommand, defineQuery, isEmitDeclRef } from "../operation.js";
|
|
9
9
|
import { TelemetryAnomalyAction, TelemetryAnomalyDetectionConfig, TelemetryAnomalyThreshold, TelemetryConfig, TelemetryEventDef, TelemetryMeta, TelemetryPrivacyLevel, TelemetryPropertyDef, TelemetryProviderConfig, TelemetryRegistry, TelemetryRetentionConfig, TelemetrySamplingConfig, TelemetrySpec, makeTelemetryKey } from "../telemetry/spec.js";
|
|
10
10
|
import { TelemetryAnomalyEvent, TelemetryAnomalyMonitor, TelemetryAnomalyMonitorOptions } from "../telemetry/anomaly.js";
|
|
11
11
|
import { RuntimeTelemetryProvider, TelemetryDispatch, TelemetryEventContext, TelemetryTracker, TelemetryTrackerOptions } from "../telemetry/tracker.js";
|
|
@@ -57,4 +57,4 @@ import { VectorIndexConfig, VectorIndexer } from "../knowledge/ingestion/vector-
|
|
|
57
57
|
import { StorageIngestionAdapter } from "../knowledge/ingestion/storage-adapter.js";
|
|
58
58
|
import { KnowledgeAnswer, KnowledgeQueryConfig, KnowledgeQueryService } from "../knowledge/query/service.js";
|
|
59
59
|
import { KnowledgeAccessContext, KnowledgeAccessGuard, KnowledgeAccessGuardOptions, KnowledgeAccessResult } from "../knowledge/runtime.js";
|
|
60
|
-
export { Action, ActionExecutionResult, Actor, AllocationStrategy,
|
|
60
|
+
export { Action, ActionExecutionResult, Actor, AllocationStrategy, AnyOperationSpec, AppBlueprintMeta, AppBlueprintRegistry, AppBlueprintSpec, AppComposition, AppCompositionDeps, AppIntegrationBinding, AppIntegrationSlot, AppKnowledgeBinding, AppRouteConfig, AppThemeBinding, ArrayFieldSpec, Assertion, AssertionResult, AttributeMatcher, BaseFieldSpec, BehaviorSignal, BehaviorSignalEnvelope, BehaviorSignalProvider, BlueprintTranslationCatalog, BlueprintUpdater, BrandingAssetRef, BrandingDefaults, CapabilityKind, CapabilityMeta, CapabilityRef, CapabilityRegistry, CapabilityRequirement, CapabilitySpec, CapabilitySurface, CapabilitySurfaceRef, Channel, CheckboxFieldSpec, CompensationStep, CompensationStrategy, ComponentMap, ComponentVariantDefinition, ComponentVariantSpec, ComposeOptions, ConnectionStatus, ConsentDefinition, ConstraintDecl, ConstraintHandler, CoverageRequirement, CreateTenantConfigDraftCommand, DataMigrationStep, DataPresentation, DataViewAction, DataViewBaseConfig, DataViewConfig, DataViewDetailConfig, DataViewField, DataViewFieldFormat, DataViewFilter, DataViewGridConfig, DataViewKind, DataViewListConfig, DataViewMeta, DataViewRegistry, DataViewSections, DataViewSource, DataViewSpec, DataViewStates, DataViewTableColumn, DataViewTableConfig, DecisionContext, DocumentFragment, DocumentProcessor, EmbeddingService, EmitDecl, EmitDeclInline, EmitDeclRef, EnhanceFields, ErrorSignal, ErrorSignalEnvelope, ErrorSignalProvider, EventEnvelope, EventKey, EventPublisher, EventRef, EventSpec, ExecutionStatus, ExecutorProposalSink, ExecutorResultPayload, ExecutorSinkLogger, ExecutorSinkOptions, ExpectErrorAssertion, ExpectEventsAssertion, ExpectOutputAssertion, ExpectedEvent, ExperimentMeta, ExperimentOverride, ExperimentOverrideType, ExperimentRef, ExperimentRegistry, ExperimentSpec, ExperimentVariant, ExpressionContext, FeatureFlagState, FeatureModuleMeta, FeatureModuleSpec, FeatureRef, FeatureRegistry, FieldLevelDecision, FieldPolicyRule, FieldSpec, Fixture, FormAction, FormOption, FormRef, FormRegistry, FormSpec, FormValuesFor, GetResolvedBrandingQuery, GetTenantConfigVersionQuery, GroupFieldSpec, GuardCondition, GuardConditionKind, HandlerCtx, ImplementationRef, ImplementationType, IntegrationByokSetup, IntegrationCallContext, IntegrationCallError, IntegrationCallGuard, IntegrationCallGuardOptions, IntegrationCallResult, IntegrationCapabilityMapping, IntegrationCategory, IntegrationConfigSchema, IntegrationConnection, IntegrationConnectionHealth, IntegrationConnectionMeta, IntegrationContext, IntegrationHealthCheck, IntegrationInvocationStatus, IntegrationMeta, IntegrationOwnershipMode, IntegrationSecretSchema, IntegrationSpec, IntegrationSpecRegistry, IntegrationTelemetryEmitter, IntegrationTelemetryEvent, IntegrationTraceMetadata, IntegrationUsageMetrics, KnowledgeAccessContext, KnowledgeAccessGuard, KnowledgeAccessGuardOptions, KnowledgeAccessPolicy, KnowledgeAccessResult, KnowledgeAnswer, KnowledgeCategory, KnowledgeIndexingConfig, KnowledgeQueryConfig, KnowledgeQueryService, KnowledgeRetentionPolicy, KnowledgeSourceConfig, KnowledgeSourceMeta, KnowledgeSourceType, KnowledgeSpaceMeta, KnowledgeSpaceRegistry, KnowledgeSpaceSpec, ListTenantConfigVersionsQuery, Locale, MarkdownPresentation, MessageKey, MetricAggregation, MigrationCheck, MigrationExecutor, MigrationMeta, MigrationPlan, MigrationRegistry, MigrationSpec, MigrationStep, MigrationStepBase, MigrationStepKind, MissingReference, OpKind, OpRef, OperationSpec, OperationTargetRef, OptionsSource, Owner, OwnerShipMeta, Owners, OwnersEnum, PIIPolicy, PlatformTranslationCatalog, PolicyCondition, PolicyDecider, PolicyDeciderInput, PolicyDecision, PolicyEffect, PolicyEngine, PolicyMeta, PolicyOPAConfig, PolicyRef, PolicyRegistry, PolicyRule, PolicySpec, Predicate, PredicateOp, PresentationContent, PresentationDescriptorV2, PresentationKind, PresentationMeta, PresentationPolicy, PresentationRef, PresentationRegistry, PresentationRenderer, PresentationSource, PresentationSourceBlocknotejs, PresentationSourceComponentReact, PresentationSpec, PresentationTarget, PresentationV2Meta, PresentationValidator, PromoteTenantConfigToPreviewCommand, ProposalAction, ProposalBlocker, ProposalConfidence, ProposalExecutionResult, ProposalExecutor, ProposalExecutorDeps, ProposalExecutorOptions, ProposalSink, ProposalTarget, PublishTenantConfigCommand, RadioFieldSpec, RateLimitDefinition, RateLimiter, RawDocument, ReactRenderDescriptor, RegenerationContext, RegenerationRule, RegenerationTrigger, RegeneratorOptions, RegeneratorService, RegeneratorSignal, RelationshipDefinition, RelationshipMatcher, RenderContext, ResolveAppConfigDeps, ResolveMessageQuery, ResolvedAppConfig, ResolvedBranding, ResolvedIntegration, ResolvedKnowledge, ResolvedTranslation, ResourceContext, ResourceMatcher, ResourceMeta, ResourceRefDescriptor, ResourceRegistry, ResourceTemplateSpec, RetryPolicy, RollbackTenantConfigCommand, RunMigrationsAction, RunTestsAction, RuntimeTelemetryProvider, SLA, ScenarioRunResult, SchemaMigrationStep, SelectFieldSpec, SignalAdapters, SpecChangeProposal, SpecPointer, Stability, StabilityEnum, StateStore, Step, StepAction, StepExecution, StepType, StorageIngestionAdapter, SubjectContext, SubjectMatcher, SubjectRelationship, SuccessMetric, SwitchFieldSpec, Tag, Tags, TagsEnum, TargetingRule, TelemetryAnomalyAction, TelemetryAnomalyDetectionConfig, TelemetryAnomalyEvent, TelemetryAnomalyMonitor, TelemetryAnomalyMonitorOptions, TelemetryAnomalyThreshold, TelemetryBinding, TelemetryConfig, TelemetryDispatch, TelemetryEventContext, TelemetryEventDef, TelemetryMeta, TelemetryPrivacyLevel, TelemetryPropertyDef, TelemetryProviderConfig, TelemetryRegistry, TelemetryRetentionConfig, TelemetrySamplingConfig, TelemetrySignal, TelemetrySignalEnvelope, TelemetrySignalProvider, TelemetrySpec, TelemetryTracker, TelemetryTrackerOptions, TelemetryTrigger, TenantAppConfig, TenantAppConfigMeta, TenantBrandingAsset, TenantBrandingConfig, TenantConfigUpdater, TenantRouteOverride, TenantSpecOverride, TestExecutor, TestRegistry, TestRunResult, TestRunner, TestRunnerConfig, TestScenario, TestSpec, TestSpecMeta, TestSpecRef, TestTarget, TextFieldSpec, TextareaFieldSpec, ThemeMeta, ThemeOverride, ThemeRef, ThemeRegistry, ThemeScope, ThemeSpec, ThemeToken, ThemeTokens, TransformEngine, Transition, TranslationCatalogMeta, TranslationCatalogPointer, TranslationEntry, TranslationResolver, TriggerRegenerationAction, TypedOptionsSource, TypedPredicate, TypedWhenClause, UpdateBlueprintAction, UpdateBlueprintTranslationCatalogCommand, UpdateTenantBrandingCommand, UpdateTenantConfigAction, UpdateTenantTranslationOverridesCommand, ValidateWorkflowSpecOptions, ValidationContext, ValidationIssue, ValidationMigrationStep, ValidationResult, ValidationSeverity, VectorIndexConfig, VectorIndexer, VerifyCustomDomainCommand, WebComponentPresentation, WhenClause, WorkflowDefinition, WorkflowMeta, WorkflowRegistry, WorkflowSpec, WorkflowState, WorkflowStateFilters, WorkflowStatus, WorkflowTargetRef, WorkflowValidationError, WorkflowValidationIssue, WorkflowValidationLevel, appConfigContracts, assertWorkflowSpecValid, behaviorToEnvelope, buildZodWithRelations, capabilityKey, composeAppConfig, connectionStatusLabel, createDefaultTransformEngine, dataViewKey, defaultGqlField, defaultMcpTool, defaultRestPath, defineCapability, defineCommand, defineEvent, defineFormSpec, defineQuery, defineResourceTemplate, emailThreadsKnowledgeSpace, ensureConnectionReady, errorToEnvelope, evalPredicate, evaluateExpression, eventKey, financialDocsKnowledgeSpace, financialOverviewKnowledgeSpace, installFeature, isEmitDeclRef, isResourceRef, jsonSchemaForPresentation, jsonSchemaForSpec, lifecycleContracts, makeAppBlueprintKey, makeExperimentKey, makeIntegrationSpecKey, makeKnowledgeSpaceKey, makePolicyKey, makeTelemetryKey, makeTestKey, makeThemeRef, productCanonKnowledgeSpace, registerAppConfigContracts, registerAppConfigLifecycleContracts, registerBasicValidation, registerDefaultReactRenderer, registerEmailThreadsKnowledgeSpace, registerFinancialDocsKnowledgeSpace, registerFinancialOverviewKnowledgeSpace, registerProductCanonKnowledgeSpace, registerReactToMarkdownRenderer, registerSupportFaqKnowledgeSpace, registerUploadedDocsKnowledgeSpace, resolveAppConfig, resourceRef, supportFaqKnowledgeSpace, telemetryToEnvelope, toV2FromV1, uploadedDocsKnowledgeSpace, validateBlueprint, validateConfig, validateFeatureTargetsV2, validateResolvedConfig, validateTenantConfig, validateWorkflowSpec };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WorkflowSpec } from "./spec.js";
|
|
2
|
-
import {
|
|
2
|
+
import { OperationSpecRegistry } from "../registry.js";
|
|
3
3
|
import { FormRegistry } from "../forms.js";
|
|
4
4
|
|
|
5
5
|
//#region src/workflow/validation.d.ts
|
|
@@ -10,7 +10,7 @@ interface WorkflowValidationIssue {
|
|
|
10
10
|
context?: Record<string, unknown>;
|
|
11
11
|
}
|
|
12
12
|
interface ValidateWorkflowSpecOptions {
|
|
13
|
-
operations?:
|
|
13
|
+
operations?: OperationSpecRegistry;
|
|
14
14
|
forms?: FormRegistry;
|
|
15
15
|
}
|
|
16
16
|
declare class WorkflowValidationError extends Error {
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import * as z$1 from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/workspace-config/contractsrc-schema.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* OpenAPI source configuration for import/sync/validate operations.
|
|
7
|
+
*/
|
|
8
|
+
declare const OpenApiSourceConfigSchema: z$1.ZodObject<{
|
|
9
|
+
name: z$1.ZodString;
|
|
10
|
+
url: z$1.ZodOptional<z$1.ZodURL>;
|
|
11
|
+
file: z$1.ZodOptional<z$1.ZodString>;
|
|
12
|
+
syncMode: z$1.ZodDefault<z$1.ZodEnum<{
|
|
13
|
+
import: "import";
|
|
14
|
+
sync: "sync";
|
|
15
|
+
validate: "validate";
|
|
16
|
+
}>>;
|
|
17
|
+
tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
18
|
+
exclude: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
19
|
+
include: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
20
|
+
prefix: z$1.ZodOptional<z$1.ZodString>;
|
|
21
|
+
defaultStability: z$1.ZodOptional<z$1.ZodEnum<{
|
|
22
|
+
experimental: "experimental";
|
|
23
|
+
beta: "beta";
|
|
24
|
+
stable: "stable";
|
|
25
|
+
deprecated: "deprecated";
|
|
26
|
+
}>>;
|
|
27
|
+
defaultAuth: z$1.ZodOptional<z$1.ZodEnum<{
|
|
28
|
+
user: "user";
|
|
29
|
+
anonymous: "anonymous";
|
|
30
|
+
admin: "admin";
|
|
31
|
+
}>>;
|
|
32
|
+
defaultOwners: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
33
|
+
}, z$1.core.$strip>;
|
|
34
|
+
declare const OpenApiExportConfigSchema: z$1.ZodObject<{
|
|
35
|
+
outputPath: z$1.ZodDefault<z$1.ZodString>;
|
|
36
|
+
format: z$1.ZodDefault<z$1.ZodEnum<{
|
|
37
|
+
json: "json";
|
|
38
|
+
yaml: "yaml";
|
|
39
|
+
}>>;
|
|
40
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
41
|
+
version: z$1.ZodOptional<z$1.ZodString>;
|
|
42
|
+
description: z$1.ZodOptional<z$1.ZodString>;
|
|
43
|
+
servers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
44
|
+
url: z$1.ZodString;
|
|
45
|
+
description: z$1.ZodOptional<z$1.ZodString>;
|
|
46
|
+
}, z$1.core.$strip>>>;
|
|
47
|
+
}, z$1.core.$strip>;
|
|
48
|
+
/**
|
|
49
|
+
* OpenAPI configuration section.
|
|
50
|
+
*/
|
|
51
|
+
declare const OpenApiConfigSchema: z$1.ZodObject<{
|
|
52
|
+
sources: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
53
|
+
name: z$1.ZodString;
|
|
54
|
+
url: z$1.ZodOptional<z$1.ZodURL>;
|
|
55
|
+
file: z$1.ZodOptional<z$1.ZodString>;
|
|
56
|
+
syncMode: z$1.ZodDefault<z$1.ZodEnum<{
|
|
57
|
+
import: "import";
|
|
58
|
+
sync: "sync";
|
|
59
|
+
validate: "validate";
|
|
60
|
+
}>>;
|
|
61
|
+
tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
62
|
+
exclude: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
63
|
+
include: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
64
|
+
prefix: z$1.ZodOptional<z$1.ZodString>;
|
|
65
|
+
defaultStability: z$1.ZodOptional<z$1.ZodEnum<{
|
|
66
|
+
experimental: "experimental";
|
|
67
|
+
beta: "beta";
|
|
68
|
+
stable: "stable";
|
|
69
|
+
deprecated: "deprecated";
|
|
70
|
+
}>>;
|
|
71
|
+
defaultAuth: z$1.ZodOptional<z$1.ZodEnum<{
|
|
72
|
+
user: "user";
|
|
73
|
+
anonymous: "anonymous";
|
|
74
|
+
admin: "admin";
|
|
75
|
+
}>>;
|
|
76
|
+
defaultOwners: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
77
|
+
}, z$1.core.$strip>>>;
|
|
78
|
+
export: z$1.ZodOptional<z$1.ZodObject<{
|
|
79
|
+
outputPath: z$1.ZodDefault<z$1.ZodString>;
|
|
80
|
+
format: z$1.ZodDefault<z$1.ZodEnum<{
|
|
81
|
+
json: "json";
|
|
82
|
+
yaml: "yaml";
|
|
83
|
+
}>>;
|
|
84
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
85
|
+
version: z$1.ZodOptional<z$1.ZodString>;
|
|
86
|
+
description: z$1.ZodOptional<z$1.ZodString>;
|
|
87
|
+
servers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
88
|
+
url: z$1.ZodString;
|
|
89
|
+
description: z$1.ZodOptional<z$1.ZodString>;
|
|
90
|
+
}, z$1.core.$strip>>>;
|
|
91
|
+
}, z$1.core.$strip>>;
|
|
92
|
+
}, z$1.core.$strip>;
|
|
93
|
+
/**
|
|
94
|
+
* Output directory conventions for generated specs.
|
|
95
|
+
*/
|
|
96
|
+
declare const FolderConventionsSchema: z$1.ZodObject<{
|
|
97
|
+
models: z$1.ZodDefault<z$1.ZodString>;
|
|
98
|
+
operations: z$1.ZodDefault<z$1.ZodString>;
|
|
99
|
+
events: z$1.ZodDefault<z$1.ZodString>;
|
|
100
|
+
presentations: z$1.ZodDefault<z$1.ZodString>;
|
|
101
|
+
forms: z$1.ZodDefault<z$1.ZodString>;
|
|
102
|
+
}, z$1.core.$strip>;
|
|
103
|
+
/**
|
|
104
|
+
* Full ContractSpec configuration schema (.contractsrc.json).
|
|
105
|
+
*/
|
|
106
|
+
declare const ContractsrcSchema: z$1.ZodObject<{
|
|
107
|
+
aiProvider: z$1.ZodDefault<z$1.ZodEnum<{
|
|
108
|
+
custom: "custom";
|
|
109
|
+
claude: "claude";
|
|
110
|
+
openai: "openai";
|
|
111
|
+
ollama: "ollama";
|
|
112
|
+
}>>;
|
|
113
|
+
aiModel: z$1.ZodOptional<z$1.ZodString>;
|
|
114
|
+
agentMode: z$1.ZodDefault<z$1.ZodEnum<{
|
|
115
|
+
cursor: "cursor";
|
|
116
|
+
"claude-code": "claude-code";
|
|
117
|
+
simple: "simple";
|
|
118
|
+
"openai-codex": "openai-codex";
|
|
119
|
+
}>>;
|
|
120
|
+
customEndpoint: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodURL>>;
|
|
121
|
+
customApiKey: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
122
|
+
outputDir: z$1.ZodDefault<z$1.ZodString>;
|
|
123
|
+
conventions: z$1.ZodObject<{
|
|
124
|
+
models: z$1.ZodDefault<z$1.ZodString>;
|
|
125
|
+
operations: z$1.ZodDefault<z$1.ZodString>;
|
|
126
|
+
events: z$1.ZodDefault<z$1.ZodString>;
|
|
127
|
+
presentations: z$1.ZodDefault<z$1.ZodString>;
|
|
128
|
+
forms: z$1.ZodDefault<z$1.ZodString>;
|
|
129
|
+
}, z$1.core.$strip>;
|
|
130
|
+
defaultOwners: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
|
|
131
|
+
defaultTags: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
|
|
132
|
+
packages: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
133
|
+
excludePackages: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
134
|
+
recursive: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
135
|
+
openapi: z$1.ZodOptional<z$1.ZodObject<{
|
|
136
|
+
sources: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
137
|
+
name: z$1.ZodString;
|
|
138
|
+
url: z$1.ZodOptional<z$1.ZodURL>;
|
|
139
|
+
file: z$1.ZodOptional<z$1.ZodString>;
|
|
140
|
+
syncMode: z$1.ZodDefault<z$1.ZodEnum<{
|
|
141
|
+
import: "import";
|
|
142
|
+
sync: "sync";
|
|
143
|
+
validate: "validate";
|
|
144
|
+
}>>;
|
|
145
|
+
tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
146
|
+
exclude: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
147
|
+
include: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
148
|
+
prefix: z$1.ZodOptional<z$1.ZodString>;
|
|
149
|
+
defaultStability: z$1.ZodOptional<z$1.ZodEnum<{
|
|
150
|
+
experimental: "experimental";
|
|
151
|
+
beta: "beta";
|
|
152
|
+
stable: "stable";
|
|
153
|
+
deprecated: "deprecated";
|
|
154
|
+
}>>;
|
|
155
|
+
defaultAuth: z$1.ZodOptional<z$1.ZodEnum<{
|
|
156
|
+
user: "user";
|
|
157
|
+
anonymous: "anonymous";
|
|
158
|
+
admin: "admin";
|
|
159
|
+
}>>;
|
|
160
|
+
defaultOwners: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
161
|
+
}, z$1.core.$strip>>>;
|
|
162
|
+
export: z$1.ZodOptional<z$1.ZodObject<{
|
|
163
|
+
outputPath: z$1.ZodDefault<z$1.ZodString>;
|
|
164
|
+
format: z$1.ZodDefault<z$1.ZodEnum<{
|
|
165
|
+
json: "json";
|
|
166
|
+
yaml: "yaml";
|
|
167
|
+
}>>;
|
|
168
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
169
|
+
version: z$1.ZodOptional<z$1.ZodString>;
|
|
170
|
+
description: z$1.ZodOptional<z$1.ZodString>;
|
|
171
|
+
servers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
172
|
+
url: z$1.ZodString;
|
|
173
|
+
description: z$1.ZodOptional<z$1.ZodString>;
|
|
174
|
+
}, z$1.core.$strip>>>;
|
|
175
|
+
}, z$1.core.$strip>>;
|
|
176
|
+
}, z$1.core.$strip>>;
|
|
177
|
+
}, z$1.core.$strip>;
|
|
178
|
+
type OpenApiSourceConfig = z$1.infer<typeof OpenApiSourceConfigSchema>;
|
|
179
|
+
type OpenApiExportConfig = z$1.infer<typeof OpenApiExportConfigSchema>;
|
|
180
|
+
type OpenApiConfig = z$1.infer<typeof OpenApiConfigSchema>;
|
|
181
|
+
type FolderConventions = z$1.infer<typeof FolderConventionsSchema>;
|
|
182
|
+
type ContractsrcConfig = z$1.infer<typeof ContractsrcSchema>;
|
|
183
|
+
/**
|
|
184
|
+
* Default configuration values.
|
|
185
|
+
*/
|
|
186
|
+
declare const DEFAULT_CONTRACTSRC: ContractsrcConfig;
|
|
187
|
+
//#endregion
|
|
188
|
+
export { ContractsrcConfig, ContractsrcSchema, DEFAULT_CONTRACTSRC, FolderConventions, FolderConventionsSchema, OpenApiConfig, OpenApiConfigSchema, OpenApiExportConfig, OpenApiExportConfigSchema, OpenApiSourceConfig, OpenApiSourceConfigSchema };
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import * as z$1 from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/workspace-config/contractsrc-schema.ts
|
|
4
|
+
/**
|
|
5
|
+
* ContractSpec configuration schema definitions.
|
|
6
|
+
*
|
|
7
|
+
* These schemas define the structure of .contractsrc.json files
|
|
8
|
+
* and are shared across CLI tools and libraries.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* OpenAPI source configuration for import/sync/validate operations.
|
|
12
|
+
*/
|
|
13
|
+
const OpenApiSourceConfigSchema = z$1.object({
|
|
14
|
+
name: z$1.string(),
|
|
15
|
+
url: z$1.url().optional(),
|
|
16
|
+
file: z$1.string().optional(),
|
|
17
|
+
syncMode: z$1.enum([
|
|
18
|
+
"import",
|
|
19
|
+
"sync",
|
|
20
|
+
"validate"
|
|
21
|
+
]).default("validate"),
|
|
22
|
+
tags: z$1.array(z$1.string()).optional(),
|
|
23
|
+
exclude: z$1.array(z$1.string()).optional(),
|
|
24
|
+
include: z$1.array(z$1.string()).optional(),
|
|
25
|
+
prefix: z$1.string().optional(),
|
|
26
|
+
defaultStability: z$1.enum([
|
|
27
|
+
"experimental",
|
|
28
|
+
"beta",
|
|
29
|
+
"stable",
|
|
30
|
+
"deprecated"
|
|
31
|
+
]).optional(),
|
|
32
|
+
defaultAuth: z$1.enum([
|
|
33
|
+
"anonymous",
|
|
34
|
+
"user",
|
|
35
|
+
"admin"
|
|
36
|
+
]).optional(),
|
|
37
|
+
defaultOwners: z$1.array(z$1.string()).optional()
|
|
38
|
+
});
|
|
39
|
+
const OpenApiExportConfigSchema = z$1.object({
|
|
40
|
+
outputPath: z$1.string().default("./openapi.json"),
|
|
41
|
+
format: z$1.enum(["json", "yaml"]).default("json"),
|
|
42
|
+
title: z$1.string().optional(),
|
|
43
|
+
version: z$1.string().optional(),
|
|
44
|
+
description: z$1.string().optional(),
|
|
45
|
+
servers: z$1.array(z$1.object({
|
|
46
|
+
url: z$1.string(),
|
|
47
|
+
description: z$1.string().optional()
|
|
48
|
+
})).optional()
|
|
49
|
+
});
|
|
50
|
+
/**
|
|
51
|
+
* OpenAPI configuration section.
|
|
52
|
+
*/
|
|
53
|
+
const OpenApiConfigSchema = z$1.object({
|
|
54
|
+
sources: z$1.array(OpenApiSourceConfigSchema).optional(),
|
|
55
|
+
export: OpenApiExportConfigSchema.optional()
|
|
56
|
+
});
|
|
57
|
+
/**
|
|
58
|
+
* Output directory conventions for generated specs.
|
|
59
|
+
*/
|
|
60
|
+
const FolderConventionsSchema = z$1.object({
|
|
61
|
+
models: z$1.string().default("models"),
|
|
62
|
+
operations: z$1.string().default("operations/commands|queries"),
|
|
63
|
+
events: z$1.string().default("events"),
|
|
64
|
+
presentations: z$1.string().default("presentations"),
|
|
65
|
+
forms: z$1.string().default("forms")
|
|
66
|
+
});
|
|
67
|
+
/**
|
|
68
|
+
* Full ContractSpec configuration schema (.contractsrc.json).
|
|
69
|
+
*/
|
|
70
|
+
const ContractsrcSchema = z$1.object({
|
|
71
|
+
aiProvider: z$1.enum([
|
|
72
|
+
"claude",
|
|
73
|
+
"openai",
|
|
74
|
+
"ollama",
|
|
75
|
+
"custom"
|
|
76
|
+
]).default("claude"),
|
|
77
|
+
aiModel: z$1.string().optional(),
|
|
78
|
+
agentMode: z$1.enum([
|
|
79
|
+
"simple",
|
|
80
|
+
"cursor",
|
|
81
|
+
"claude-code",
|
|
82
|
+
"openai-codex"
|
|
83
|
+
]).default("simple"),
|
|
84
|
+
customEndpoint: z$1.url().nullable().optional(),
|
|
85
|
+
customApiKey: z$1.string().nullable().optional(),
|
|
86
|
+
outputDir: z$1.string().default("./src"),
|
|
87
|
+
conventions: FolderConventionsSchema,
|
|
88
|
+
defaultOwners: z$1.array(z$1.string()).default([]),
|
|
89
|
+
defaultTags: z$1.array(z$1.string()).default([]),
|
|
90
|
+
packages: z$1.array(z$1.string()).optional(),
|
|
91
|
+
excludePackages: z$1.array(z$1.string()).optional(),
|
|
92
|
+
recursive: z$1.boolean().optional(),
|
|
93
|
+
openapi: OpenApiConfigSchema.optional()
|
|
94
|
+
});
|
|
95
|
+
/**
|
|
96
|
+
* Default configuration values.
|
|
97
|
+
*/
|
|
98
|
+
const DEFAULT_CONTRACTSRC = {
|
|
99
|
+
aiProvider: "claude",
|
|
100
|
+
agentMode: "simple",
|
|
101
|
+
outputDir: "./src",
|
|
102
|
+
conventions: {
|
|
103
|
+
models: "models",
|
|
104
|
+
operations: "interactions/commands|queries",
|
|
105
|
+
events: "events",
|
|
106
|
+
presentations: "presentations",
|
|
107
|
+
forms: "forms"
|
|
108
|
+
},
|
|
109
|
+
defaultOwners: [],
|
|
110
|
+
defaultTags: []
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
//#endregion
|
|
114
|
+
export { ContractsrcSchema, DEFAULT_CONTRACTSRC, FolderConventionsSchema, OpenApiConfigSchema, OpenApiExportConfigSchema, OpenApiSourceConfigSchema };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { ContractsrcConfig, ContractsrcSchema, DEFAULT_CONTRACTSRC, FolderConventions, FolderConventionsSchema, OpenApiConfig, OpenApiConfigSchema, OpenApiExportConfig, OpenApiExportConfigSchema, OpenApiSourceConfig, OpenApiSourceConfigSchema } from "./contractsrc-schema.js";
|
|
2
|
+
export { type ContractsrcConfig, ContractsrcSchema, DEFAULT_CONTRACTSRC, type FolderConventions, FolderConventionsSchema, type OpenApiConfig, OpenApiConfigSchema, type OpenApiExportConfig, OpenApiExportConfigSchema, type OpenApiSourceConfig, OpenApiSourceConfigSchema };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ContractsrcSchema, DEFAULT_CONTRACTSRC, FolderConventionsSchema, OpenApiConfigSchema, OpenApiExportConfigSchema, OpenApiSourceConfigSchema } from "./contractsrc-schema.js";
|
|
2
|
+
|
|
3
|
+
export { ContractsrcSchema, DEFAULT_CONTRACTSRC, FolderConventionsSchema, OpenApiConfigSchema, OpenApiExportConfigSchema, OpenApiSourceConfigSchema };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lssm/lib.contracts",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-20251221114240",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
|
|
6
6
|
"publish:pkg:canary": "bun publish:pkg --tag canary",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"test": "bun run"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@lssm/tool.tsdown": "0.0.0-canary-
|
|
20
|
-
"@lssm/tool.typescript": "0.0.0-canary-
|
|
19
|
+
"@lssm/tool.tsdown": "0.0.0-canary-20251221114240",
|
|
20
|
+
"@lssm/tool.typescript": "0.0.0-canary-20251221114240",
|
|
21
21
|
"@types/express": "^5.0.3",
|
|
22
22
|
"@types/turndown": "^5.0.6",
|
|
23
23
|
"tsdown": "^0.18.1",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"@elevenlabs/elevenlabs-js": "^2.27.0",
|
|
36
36
|
"@google-cloud/secret-manager": "^6.1.1",
|
|
37
37
|
"@google-cloud/storage": "^7.18.0",
|
|
38
|
-
"@lssm/lib.logger": "0.0.0-canary-
|
|
39
|
-
"@lssm/lib.schema": "0.0.0-canary-
|
|
38
|
+
"@lssm/lib.logger": "0.0.0-canary-20251221114240",
|
|
39
|
+
"@lssm/lib.schema": "0.0.0-canary-20251221114240",
|
|
40
40
|
"@mistralai/mistralai": "^1.11.0",
|
|
41
41
|
"@modelcontextprotocol/sdk": "^1.24.3",
|
|
42
42
|
"@qdrant/js-client-rest": "^1.16.2",
|
|
@@ -249,6 +249,7 @@
|
|
|
249
249
|
"./onboarding-base": "./dist/onboarding-base.js",
|
|
250
250
|
"./openapi": "./dist/openapi.js",
|
|
251
251
|
"./openbanking/docs/openbanking.docblock": "./dist/openbanking/docs/openbanking.docblock.js",
|
|
252
|
+
"./operation": "./dist/operation.js",
|
|
252
253
|
"./ownership": "./dist/ownership.js",
|
|
253
254
|
"./policy/docs/policy.docblock": "./dist/policy/docs/policy.docblock.js",
|
|
254
255
|
"./policy/engine": "./dist/policy/engine.js",
|
|
@@ -286,7 +287,6 @@
|
|
|
286
287
|
"./server/rest-next-app": "./dist/server/rest-next-app.js",
|
|
287
288
|
"./server/rest-next-mcp": "./dist/server/rest-next-mcp.js",
|
|
288
289
|
"./server/rest-next-pages": "./dist/server/rest-next-pages.js",
|
|
289
|
-
"./spec": "./dist/spec.js",
|
|
290
290
|
"./telemetry": "./dist/telemetry/index.js",
|
|
291
291
|
"./telemetry/anomaly": "./dist/telemetry/anomaly.js",
|
|
292
292
|
"./telemetry/docs/telemetry.docblock": "./dist/telemetry/docs/telemetry.docblock.js",
|
|
@@ -311,6 +311,8 @@
|
|
|
311
311
|
"./workflow/spec": "./dist/workflow/spec.js",
|
|
312
312
|
"./workflow/state": "./dist/workflow/state.js",
|
|
313
313
|
"./workflow/validation": "./dist/workflow/validation.js",
|
|
314
|
+
"./workspace-config": "./dist/workspace-config/index.js",
|
|
315
|
+
"./workspace-config/contractsrc-schema": "./dist/workspace-config/contractsrc-schema.js",
|
|
314
316
|
"./*": "./*"
|
|
315
317
|
},
|
|
316
318
|
"publishConfig": {
|
|
@@ -320,11 +322,11 @@
|
|
|
320
322
|
"./app-config": "./dist/app-config/index.js",
|
|
321
323
|
"./app-config/app-config.feature": "./dist/app-config/app-config.feature.js",
|
|
322
324
|
"./app-config/branding": "./dist/app-config/branding.js",
|
|
323
|
-
"./app-config/contracts": "./dist/app-config/
|
|
325
|
+
"./app-config/contracts": "./dist/app-config/operations.js",
|
|
324
326
|
"./app-config/docs/app-config.docblock": "./dist/app-config/docs/app-config.docblock.js",
|
|
325
327
|
"./app-config/events": "./dist/app-config/events.js",
|
|
326
328
|
"./app-config/lifecycle": "./dist/app-config/lifecycle.js",
|
|
327
|
-
"./app-config/lifecycle-contracts": "./dist/app-config/lifecycle-
|
|
329
|
+
"./app-config/lifecycle-contracts": "./dist/app-config/lifecycle-operations.js",
|
|
328
330
|
"./app-config/runtime": "./dist/app-config/runtime.js",
|
|
329
331
|
"./app-config/spec": "./dist/app-config/spec.js",
|
|
330
332
|
"./app-config/validation": "./dist/app-config/validation.js",
|
|
@@ -400,7 +402,7 @@
|
|
|
400
402
|
"./integrations": "./dist/integrations/index.js",
|
|
401
403
|
"./integrations/binding": "./dist/integrations/binding.js",
|
|
402
404
|
"./integrations/connection": "./dist/integrations/connection.js",
|
|
403
|
-
"./integrations/contracts": "./dist/integrations/
|
|
405
|
+
"./integrations/contracts": "./dist/integrations/operations.js",
|
|
404
406
|
"./integrations/docs/integrations.docblock": "./dist/integrations/docs/integrations.docblock.js",
|
|
405
407
|
"./integrations/health": "./dist/integrations/health.js",
|
|
406
408
|
"./integrations/openbanking/contracts": "./dist/integrations/openbanking/contracts/index.js",
|
|
@@ -471,7 +473,7 @@
|
|
|
471
473
|
"./jsonschema": "./dist/jsonschema.js",
|
|
472
474
|
"./knowledge": "./dist/knowledge/index.js",
|
|
473
475
|
"./knowledge/binding": "./dist/knowledge/binding.js",
|
|
474
|
-
"./knowledge/contracts": "./dist/knowledge/
|
|
476
|
+
"./knowledge/contracts": "./dist/knowledge/operations.js",
|
|
475
477
|
"./knowledge/docs/knowledge.docblock": "./dist/knowledge/docs/knowledge.docblock.js",
|
|
476
478
|
"./knowledge/ingestion": "./dist/knowledge/ingestion/index.js",
|
|
477
479
|
"./knowledge/ingestion/document-processor": "./dist/knowledge/ingestion/document-processor.js",
|
|
@@ -537,7 +539,7 @@
|
|
|
537
539
|
"./server/rest-next-app": "./dist/server/rest-next-app.js",
|
|
538
540
|
"./server/rest-next-mcp": "./dist/server/rest-next-mcp.js",
|
|
539
541
|
"./server/rest-next-pages": "./dist/server/rest-next-pages.js",
|
|
540
|
-
"./
|
|
542
|
+
"./operation": "./dist/operation.js",
|
|
541
543
|
"./telemetry": "./dist/telemetry/index.js",
|
|
542
544
|
"./telemetry/anomaly": "./dist/telemetry/anomaly.js",
|
|
543
545
|
"./telemetry/docs/telemetry.docblock": "./dist/telemetry/docs/telemetry.docblock.js",
|