@wildo-ai/saas-models 1.1.2 → 1.1.4
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/esm/__tests__/setup.d.ts.map +1 -1
- package/dist/esm/_inspect.d.ts.map +1 -1
- package/dist/esm/applications/application-metadata.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/applications/application-subject.shared.schemas.d.ts.map +1 -1
- package/dist/esm/applications/application-versions.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/applications/applications-context.schemas.d.ts +14 -10
- package/dist/esm/applications/applications-context.schemas.d.ts.map +1 -1
- package/dist/esm/applications/applications.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/applications/applications.shared.resources-config.schemas.js +4 -3
- package/dist/esm/applications/applications.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/applications/applications.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/billing-account.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/billing/billing-account.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/billing-configuration.shared.schemas.d.ts +0 -4
- package/dist/esm/billing/billing-configuration.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/billing-configuration.shared.schemas.js +59 -17
- package/dist/esm/billing/billing-configuration.shared.schemas.js.map +1 -1
- package/dist/esm/billing/billing-enums.shared.schemas.d.ts +77 -21
- package/dist/esm/billing/billing-enums.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/billing-enums.shared.schemas.js +85 -23
- package/dist/esm/billing/billing-enums.shared.schemas.js.map +1 -1
- package/dist/esm/billing/billing-types.shared.schemas.d.ts +4 -3
- package/dist/esm/billing/billing-types.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/billing-types.shared.schemas.js +45 -0
- package/dist/esm/billing/billing-types.shared.schemas.js.map +1 -1
- package/dist/esm/billing/credit-pool.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/billing/credit-pool.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/invoice-ref.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/billing/invoice-ref.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/price.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/billing/price.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/price.shared.schemas.js +7 -1
- package/dist/esm/billing/price.shared.schemas.js.map +1 -1
- package/dist/esm/billing/product-behavior-policy.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/product-behavior-policy.shared.schemas.js +52 -11
- package/dist/esm/billing/product-behavior-policy.shared.schemas.js.map +1 -1
- package/dist/esm/billing/product-definition.shared.schemas.d.ts +2 -2
- package/dist/esm/billing/product-definition.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/product.shared.resources-config.schemas.d.ts +2 -2
- package/dist/esm/billing/product.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/billing/product.shared.schemas.d.ts +2 -2
- package/dist/esm/billing/product.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/product.shared.schemas.js +7 -3
- package/dist/esm/billing/product.shared.schemas.js.map +1 -1
- package/dist/esm/billing/promotions.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/billing/promotions.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/referral.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/billing/referral.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/subscription.shared.resources-config.schemas.d.ts +1 -1
- package/dist/esm/billing/subscription.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/billing/subscription.shared.resources-config.schemas.js +15 -1
- package/dist/esm/billing/subscription.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/billing/subscription.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/usage-record.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/billing/usage-record.shared.schemas.d.ts +7 -3
- package/dist/esm/billing/usage-record.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/usage-record.shared.schemas.js +22 -3
- package/dist/esm/billing/usage-record.shared.schemas.js.map +1 -1
- package/dist/esm/charts/aggregation-query.shared.schemas.d.ts.map +1 -1
- package/dist/esm/charts/chart-definition-builder.shared.d.ts.map +1 -1
- package/dist/esm/companion/provider-discovery.shared.schemas.d.ts +71 -2
- package/dist/esm/companion/provider-discovery.shared.schemas.d.ts.map +1 -1
- package/dist/esm/companion/provider-discovery.shared.schemas.js +20 -1
- package/dist/esm/companion/provider-discovery.shared.schemas.js.map +1 -1
- package/dist/esm/companion/shared-library-companion.shared.definitions.d.ts.map +1 -1
- package/dist/esm/companion-exports.d.ts.map +1 -1
- package/dist/esm/compliance/audit-trails/application-audit-logs.shared.resources-config.schemas.d.ts +85 -0
- package/dist/esm/compliance/audit-trails/application-audit-logs.shared.resources-config.schemas.d.ts.map +1 -0
- package/dist/esm/compliance/audit-trails/application-audit-logs.shared.resources-config.schemas.js +157 -0
- package/dist/esm/compliance/audit-trails/application-audit-logs.shared.resources-config.schemas.js.map +1 -0
- package/dist/esm/compliance/audit-trails/audit-log-sink.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/audit-trails/audit-logs.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/audit-trails/audit-trail-config.shared.schemas.d.ts +23 -0
- package/dist/esm/compliance/audit-trails/audit-trail-config.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/audit-trails/audit-trail-config.shared.schemas.js +56 -0
- package/dist/esm/compliance/audit-trails/audit-trail-config.shared.schemas.js.map +1 -1
- package/dist/esm/compliance/audit-trails/auditable-events.shared.schema.d.ts +658 -26
- package/dist/esm/compliance/audit-trails/auditable-events.shared.schema.d.ts.map +1 -1
- package/dist/esm/compliance/audit-trails/auditable-events.shared.schema.js +873 -27
- package/dist/esm/compliance/audit-trails/auditable-events.shared.schema.js.map +1 -1
- package/dist/esm/compliance/audit-trails/security-audit-event-envelope.shared.schema.d.ts.map +1 -1
- package/dist/esm/compliance/audit-trails/security-audit-event-envelope.shared.schema.js +104 -3
- package/dist/esm/compliance/audit-trails/security-audit-event-envelope.shared.schema.js.map +1 -1
- package/dist/esm/compliance/documents/governed-documents.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/ai-use-posture.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/client-storage.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/data-retention.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/impersonalization-scrub.shared.utils.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/impersonalization.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/operating-jurisdictions.shared.schemas.d.ts +54 -26
- package/dist/esm/compliance/privacy/operating-jurisdictions.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/operating-jurisdictions.shared.schemas.js +132 -3
- package/dist/esm/compliance/privacy/operating-jurisdictions.shared.schemas.js.map +1 -1
- package/dist/esm/compliance/privacy/operator-compliance-identity.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/personal-data-category.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/personal-data-declaration.shared.utils.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/privacy.shared.schemas.d.ts +17 -0
- package/dist/esm/compliance/privacy/privacy.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/privacy.shared.schemas.js +27 -4
- package/dist/esm/compliance/privacy/privacy.shared.schemas.js.map +1 -1
- package/dist/esm/compliance/privacy/redaction.shared.schemas.d.ts +82 -29
- package/dist/esm/compliance/privacy/redaction.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/redaction.shared.schemas.js +95 -29
- package/dist/esm/compliance/privacy/redaction.shared.schemas.js.map +1 -1
- package/dist/esm/compliance/privacy/retention-schedule.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/subject-erasure.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/subject-export-render.shared.utils.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/subject-export.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/subject-export.shared.schemas.js +12 -5
- package/dist/esm/compliance/privacy/subject-export.shared.schemas.js.map +1 -1
- package/dist/esm/config/analytics-value-moments.shared.schemas.d.ts +21 -0
- package/dist/esm/config/analytics-value-moments.shared.schemas.d.ts.map +1 -1
- package/dist/esm/config/analytics-value-moments.shared.schemas.js +20 -0
- package/dist/esm/config/analytics-value-moments.shared.schemas.js.map +1 -1
- package/dist/esm/config/app-configuration-shared.shared.schemas.d.ts +7 -5
- package/dist/esm/config/app-configuration-shared.shared.schemas.d.ts.map +1 -1
- package/dist/esm/config/auth-config-resolution.shared.utils.d.ts +8 -1
- package/dist/esm/config/auth-config-resolution.shared.utils.d.ts.map +1 -1
- package/dist/esm/config/auth-config-resolution.shared.utils.js +29 -0
- package/dist/esm/config/auth-config-resolution.shared.utils.js.map +1 -1
- package/dist/esm/config/brand-assets.shared.schemas.d.ts.map +1 -1
- package/dist/esm/config/entity-identity-config.shared.schemas.d.ts +95 -17
- package/dist/esm/config/entity-identity-config.shared.schemas.d.ts.map +1 -1
- package/dist/esm/config/entity-identity-config.shared.schemas.js +86 -8
- package/dist/esm/config/entity-identity-config.shared.schemas.js.map +1 -1
- package/dist/esm/config/frontend/chart-definition.shared.schemas.d.ts +26 -26
- package/dist/esm/config/frontend/chart-definition.shared.schemas.d.ts.map +1 -1
- package/dist/esm/config/frontend/chart-registration-alignment.shared.d.ts +139 -3
- package/dist/esm/config/frontend/chart-registration-alignment.shared.d.ts.map +1 -1
- package/dist/esm/config/frontend/chart-registration-alignment.shared.js +151 -4
- package/dist/esm/config/frontend/chart-registration-alignment.shared.js.map +1 -1
- package/dist/esm/config/frontend/navigation.shared.schemas.d.ts.map +1 -1
- package/dist/esm/config/frontend/onboarding.shared.schemas.d.ts.map +1 -1
- package/dist/esm/config/registration-acquisition-policy.shared.utils.d.ts.map +1 -1
- package/dist/esm/config-authoring.entry.d.ts.map +1 -1
- package/dist/esm/crdt/crdt-merge.shared.utils.d.ts.map +1 -1
- package/dist/esm/data-seeding/data-seeding-config.shared.schemas.d.ts.map +1 -1
- package/dist/esm/errors/errors.custom-message-ref.shared.definitions.d.ts +34 -0
- package/dist/esm/errors/errors.custom-message-ref.shared.definitions.d.ts.map +1 -1
- package/dist/esm/errors/errors.custom-message-ref.shared.definitions.js +34 -0
- package/dist/esm/errors/errors.custom-message-ref.shared.definitions.js.map +1 -1
- package/dist/esm/errors/errors.shared.definitions.d.ts.map +1 -1
- package/dist/esm/errors/errors.shared.schemas.d.ts.map +1 -1
- package/dist/esm/errors/errors.shared.utils.d.ts.map +1 -1
- package/dist/esm/external-data/external-data-pipeline.shared.schemas.d.ts +45 -12
- package/dist/esm/external-data/external-data-pipeline.shared.schemas.d.ts.map +1 -1
- package/dist/esm/external-data/external-data-pipeline.shared.schemas.js.map +1 -1
- package/dist/esm/external-data.exports.d.ts.map +1 -1
- package/dist/esm/external-providers/compose-provider-registry.shared.d.ts.map +1 -1
- package/dist/esm/external-providers/engine-capabilities.shared.schemas.d.ts +110 -58
- package/dist/esm/external-providers/engine-capabilities.shared.schemas.d.ts.map +1 -1
- package/dist/esm/external-providers/engine-capabilities.shared.schemas.js +183 -15
- package/dist/esm/external-providers/engine-capabilities.shared.schemas.js.map +1 -1
- package/dist/esm/external-providers/engine-capability-resolution-mode.shared.d.ts +15 -3
- package/dist/esm/external-providers/engine-capability-resolution-mode.shared.d.ts.map +1 -1
- package/dist/esm/external-providers/engine-capability-resolution-mode.shared.js +32 -5
- package/dist/esm/external-providers/engine-capability-resolution-mode.shared.js.map +1 -1
- package/dist/esm/external-providers/external-providers.shared.schemas.d.ts.map +1 -1
- package/dist/esm/external-providers/frontend-bootstrap.shared.schemas.d.ts +87 -7
- package/dist/esm/external-providers/frontend-bootstrap.shared.schemas.d.ts.map +1 -1
- package/dist/esm/external-providers/frontend-capability-public-config.shared.schemas.d.ts +59 -0
- package/dist/esm/external-providers/frontend-capability-public-config.shared.schemas.d.ts.map +1 -0
- package/dist/esm/external-providers/frontend-capability-public-config.shared.schemas.js +61 -0
- package/dist/esm/external-providers/frontend-capability-public-config.shared.schemas.js.map +1 -0
- package/dist/esm/external-providers/frontend-capability-runtime.shared.types.d.ts +97 -0
- package/dist/esm/external-providers/frontend-capability-runtime.shared.types.d.ts.map +1 -0
- package/dist/esm/external-providers/frontend-capability-runtime.shared.types.js +41 -0
- package/dist/esm/external-providers/frontend-capability-runtime.shared.types.js.map +1 -0
- package/dist/esm/external-providers/frontend-provider-entry.shared.schemas.d.ts +205 -2
- package/dist/esm/external-providers/frontend-provider-entry.shared.schemas.d.ts.map +1 -1
- package/dist/esm/external-providers/frontend-provider-entry.shared.schemas.js +85 -1
- package/dist/esm/external-providers/frontend-provider-entry.shared.schemas.js.map +1 -1
- package/dist/esm/external-providers/frontend-provider-public-config.shared.d.ts +175 -0
- package/dist/esm/external-providers/frontend-provider-public-config.shared.d.ts.map +1 -0
- package/dist/esm/external-providers/frontend-provider-public-config.shared.js +207 -0
- package/dist/esm/external-providers/frontend-provider-public-config.shared.js.map +1 -0
- package/dist/esm/external-providers/provider-capability.shared.schemas.d.ts +5 -28
- package/dist/esm/external-providers/provider-capability.shared.schemas.d.ts.map +1 -1
- package/dist/esm/external-providers/provider-capability.shared.schemas.js +4 -2
- package/dist/esm/external-providers/provider-capability.shared.schemas.js.map +1 -1
- package/dist/esm/external-providers/provider-compliance-profile.shared.schemas.d.ts +28 -8
- package/dist/esm/external-providers/provider-compliance-profile.shared.schemas.d.ts.map +1 -1
- package/dist/esm/external-providers/provider-compliance-profile.shared.schemas.js +15 -4
- package/dist/esm/external-providers/provider-compliance-profile.shared.schemas.js.map +1 -1
- package/dist/esm/external-providers/provider-frontend-component-contract.shared.types.d.ts +165 -0
- package/dist/esm/external-providers/provider-frontend-component-contract.shared.types.d.ts.map +1 -0
- package/dist/esm/external-providers/provider-frontend-component-contract.shared.types.js +39 -0
- package/dist/esm/external-providers/provider-frontend-component-contract.shared.types.js.map +1 -0
- package/dist/esm/external-providers/provider-frontend-surface.shared.schemas.d.ts +338 -0
- package/dist/esm/external-providers/provider-frontend-surface.shared.schemas.d.ts.map +1 -0
- package/dist/esm/external-providers/provider-frontend-surface.shared.schemas.js +332 -0
- package/dist/esm/external-providers/provider-frontend-surface.shared.schemas.js.map +1 -0
- package/dist/esm/external-providers/provider-metadata.shared.schemas.d.ts +178 -9
- package/dist/esm/external-providers/provider-metadata.shared.schemas.d.ts.map +1 -1
- package/dist/esm/external-providers/provider-metadata.shared.schemas.js +181 -9
- package/dist/esm/external-providers/provider-metadata.shared.schemas.js.map +1 -1
- package/dist/esm/external-providers/provider-protocol.shared.schemas.d.ts +7 -5
- package/dist/esm/external-providers/provider-protocol.shared.schemas.d.ts.map +1 -1
- package/dist/esm/external-providers/provider-protocol.shared.schemas.js +7 -5
- package/dist/esm/external-providers/provider-protocol.shared.schemas.js.map +1 -1
- package/dist/esm/external-providers/provider-tier-rule.shared.utils.d.ts +40 -0
- package/dist/esm/external-providers/provider-tier-rule.shared.utils.d.ts.map +1 -0
- package/dist/esm/external-providers/provider-tier-rule.shared.utils.js +80 -0
- package/dist/esm/external-providers/provider-tier-rule.shared.utils.js.map +1 -0
- package/dist/esm/external-providers/provider-usage-pricing.shared.schemas.d.ts.map +1 -1
- package/dist/esm/features/application-features.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/features/application-features.shared.resources-config.schemas.js +12 -0
- package/dist/esm/features/application-features.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/features/core-feature-definitions.shared.d.ts.map +1 -1
- package/dist/esm/features/core-feature-definitions.shared.js +7 -1
- package/dist/esm/features/core-feature-definitions.shared.js.map +1 -1
- package/dist/esm/features/feature-builders.shared.d.ts +32 -0
- package/dist/esm/features/feature-builders.shared.d.ts.map +1 -1
- package/dist/esm/features/feature-builders.shared.js +32 -0
- package/dist/esm/features/feature-builders.shared.js.map +1 -1
- package/dist/esm/features/feature-definition.shared.schemas.d.ts.map +1 -1
- package/dist/esm/features/feature-registry.shared.d.ts.map +1 -1
- package/dist/esm/features/feature-resolution.shared.schemas.d.ts.map +1 -1
- package/dist/esm/features/scope-features.shared.schemas.d.ts.map +1 -1
- package/dist/esm/features/user-features.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/features/user-features.shared.resources-config.schemas.js +12 -0
- package/dist/esm/features/user-features.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/files/file-remote-reference-link.shared.schemas.d.ts +73 -0
- package/dist/esm/files/file-remote-reference-link.shared.schemas.d.ts.map +1 -0
- package/dist/esm/files/file-remote-reference-link.shared.schemas.js +62 -0
- package/dist/esm/files/file-remote-reference-link.shared.schemas.js.map +1 -0
- package/dist/esm/files/file-upload-grant.shared.schemas.d.ts +14 -2
- package/dist/esm/files/file-upload-grant.shared.schemas.d.ts.map +1 -1
- package/dist/esm/files/file-upload-grant.shared.schemas.js +44 -5
- package/dist/esm/files/file-upload-grant.shared.schemas.js.map +1 -1
- package/dist/esm/files/files.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/files/files.shared.schemas.d.ts +15 -8
- package/dist/esm/files/files.shared.schemas.d.ts.map +1 -1
- package/dist/esm/files/files.shared.schemas.js +15 -8
- package/dist/esm/files/files.shared.schemas.js.map +1 -1
- package/dist/esm/files/files.shared.utils.d.ts.map +1 -1
- package/dist/esm/flows-actors/a2a-push-delivery-log.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/a2a-push-delivery-log.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/a2a-token-budget-state.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/a2a-token-budget-state.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/actors.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/actors.shared.schemas.js +3 -2
- package/dist/esm/flows-actors/actors.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/agent-traceability.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/agents.shared.schemas.d.ts +54 -5
- package/dist/esm/flows-actors/agents.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/agents.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/apps-blueprint/apps-blueprint.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/apps-blueprint/artifacts.apps-blueprint.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/deliberation.shared.schemas.d.ts +0 -3
- package/dist/esm/flows-actors/deliberation.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/deliberation.shared.schemas.js +0 -5
- package/dist/esm/flows-actors/deliberation.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/flows-actors-execution.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/flows-actors-execution.shared.schemas.d.ts +14 -0
- package/dist/esm/flows-actors/flows-actors-execution.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/flows-actors-execution.shared.schemas.js +40 -3
- package/dist/esm/flows-actors/flows-actors-execution.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/flows-actors-task.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/flows-actors-task.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/flows-actors.commons.shared.schemas.d.ts +19 -0
- package/dist/esm/flows-actors/flows-actors.commons.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/flows-actors.commons.shared.schemas.js +33 -0
- package/dist/esm/flows-actors/flows-actors.commons.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/flows-actors.configuration.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/flows-actors.frontend.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/flows-actors.io.shared.schemas.d.ts +14 -9
- package/dist/esm/flows-actors/flows-actors.io.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/flows-actors.io.shared.schemas.js +14 -9
- package/dist/esm/flows-actors/flows-actors.io.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/flows-actors.system.shared.definitions.d.ts.map +1 -1
- package/dist/esm/flows-actors/flows-actors.system.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/flows-actors.system.shared.schemas.js +3 -2
- package/dist/esm/flows-actors/flows-actors.system.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/flows.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/flows.shared.schemas.js +3 -2
- package/dist/esm/flows-actors/flows.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/mcp-servers.shared.schemas.d.ts +130 -0
- package/dist/esm/flows-actors/mcp-servers.shared.schemas.d.ts.map +1 -0
- package/dist/esm/flows-actors/mcp-servers.shared.schemas.js +153 -0
- package/dist/esm/flows-actors/mcp-servers.shared.schemas.js.map +1 -0
- package/dist/esm/flows-actors/meta-workflows/actions.meta-workflows.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/meta-workflows/budget-authority.meta-workflows.shared.schemas.d.ts +0 -3
- package/dist/esm/flows-actors/meta-workflows/budget-authority.meta-workflows.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/meta-workflows/budget-authority.meta-workflows.shared.schemas.js +1 -4
- package/dist/esm/flows-actors/meta-workflows/budget-authority.meta-workflows.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/meta-workflows/catalog.meta-workflows.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/meta-workflows/context-selection.meta-workflows.shared.schemas.d.ts +0 -16
- package/dist/esm/flows-actors/meta-workflows/context-selection.meta-workflows.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/meta-workflows/context-selection.meta-workflows.shared.schemas.js +1 -17
- package/dist/esm/flows-actors/meta-workflows/context-selection.meta-workflows.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/meta-workflows/continuity-identifiers.meta-workflows.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/meta-workflows/decisions.meta-workflows.shared.schemas.d.ts +3 -3
- package/dist/esm/flows-actors/meta-workflows/decisions.meta-workflows.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/meta-workflows/decisions.meta-workflows.shared.schemas.js +3 -3
- package/dist/esm/flows-actors/meta-workflows/decisions.meta-workflows.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/meta-workflows/execution-binding-common.meta-workflows.shared.schemas.d.ts +2 -8
- package/dist/esm/flows-actors/meta-workflows/execution-binding-common.meta-workflows.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/meta-workflows/execution-binding-common.meta-workflows.shared.schemas.js +4 -15
- package/dist/esm/flows-actors/meta-workflows/execution-binding-common.meta-workflows.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/meta-workflows/portable-primitives.meta-workflows.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/prompt-ir.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/task-continuity-binding.actors.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/tasks.actors.shared.schemas.d.ts.map +1 -1
- package/dist/esm/frontend-definitions/settings-destination-ref.definitions.d.ts +112 -0
- package/dist/esm/frontend-definitions/settings-destination-ref.definitions.d.ts.map +1 -0
- package/dist/esm/frontend-definitions/settings-destination-ref.definitions.js +113 -0
- package/dist/esm/frontend-definitions/settings-destination-ref.definitions.js.map +1 -0
- package/dist/esm/guidance/guidance-flow.shared.schemas.d.ts.map +1 -1
- package/dist/esm/guidance/guidance-state.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/guidance/guidance-state.shared.schemas.d.ts.map +1 -1
- package/dist/esm/guidance/guidance-state.shared.utils.d.ts.map +1 -1
- package/dist/esm/guidance/guidance-state.shared.utils.js +1 -0
- package/dist/esm/guidance/guidance-state.shared.utils.js.map +1 -1
- package/dist/esm/guidance/lifecycle-config.shared.schemas.d.ts.map +1 -1
- package/dist/esm/guidance/lifecycle-state.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/guidance/lifecycle-state.shared.schemas.d.ts.map +1 -1
- package/dist/esm/guidance/milestone-builders.shared.d.ts.map +1 -1
- package/dist/esm/guidance/milestone-definition.shared.schemas.d.ts.map +1 -1
- package/dist/esm/guidance/progression-state.shared.resources-config.schemas.d.ts +8 -0
- package/dist/esm/guidance/progression-state.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/guidance/progression-state.shared.schemas.d.ts +46 -0
- package/dist/esm/guidance/progression-state.shared.schemas.d.ts.map +1 -1
- package/dist/esm/guidance/progression-state.shared.schemas.js +49 -0
- package/dist/esm/guidance/progression-state.shared.schemas.js.map +1 -1
- package/dist/esm/http-api-binding/http-api-binding-id.shared.utils.d.ts.map +1 -1
- package/dist/esm/http-api-binding/http-api-binding.shared.schemas.d.ts +320 -50
- package/dist/esm/http-api-binding/http-api-binding.shared.schemas.d.ts.map +1 -1
- package/dist/esm/http-api-binding/http-api-binding.shared.schemas.js +137 -36
- package/dist/esm/http-api-binding/http-api-binding.shared.schemas.js.map +1 -1
- package/dist/esm/i18n/labelling.dto.shared.schemas.d.ts.map +1 -1
- package/dist/esm/index.d.ts +15 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +15 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/meta-workflows.exports.d.ts.map +1 -1
- package/dist/esm/monitoring/monitoring.shared.schemas.d.ts.map +1 -1
- package/dist/esm/notifications/email/email-context.shared.schemas.d.ts.map +1 -1
- package/dist/esm/notifications/email/email-template-registry.shared.schemas.d.ts +11 -2
- package/dist/esm/notifications/email/email-template-registry.shared.schemas.d.ts.map +1 -1
- package/dist/esm/notifications/email/email-template-registry.shared.schemas.js.map +1 -1
- package/dist/esm/notifications/email/email-template.shared.enums.d.ts +15 -0
- package/dist/esm/notifications/email/email-template.shared.enums.d.ts.map +1 -1
- package/dist/esm/notifications/email/email-template.shared.enums.js +15 -0
- package/dist/esm/notifications/email/email-template.shared.enums.js.map +1 -1
- package/dist/esm/notifications/m2m/m2m-webhook-delivery-contract.shared.d.ts.map +1 -1
- package/dist/esm/notifications/m2m/m2m-webhook-delivery-log.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/notifications/m2m/m2m-webhook-delivery-log.shared.schemas.d.ts.map +1 -1
- package/dist/esm/notifications/m2m/webhook-config.shared.resources-config.schemas.d.ts +1 -0
- package/dist/esm/notifications/m2m/webhook-config.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/notifications/m2m/webhook-config.shared.resources-config.schemas.js +19 -0
- package/dist/esm/notifications/m2m/webhook-config.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/notifications/m2m/webhook-config.shared.schemas.d.ts +30 -0
- package/dist/esm/notifications/m2m/webhook-config.shared.schemas.d.ts.map +1 -1
- package/dist/esm/notifications/m2m/webhook-config.shared.schemas.js +65 -1
- package/dist/esm/notifications/m2m/webhook-config.shared.schemas.js.map +1 -1
- package/dist/esm/notifications/notification-badges.core.definitions.d.ts +6 -4
- package/dist/esm/notifications/notification-badges.core.definitions.d.ts.map +1 -1
- package/dist/esm/notifications/notification-badges.core.definitions.js +6 -4
- package/dist/esm/notifications/notification-badges.core.definitions.js.map +1 -1
- package/dist/esm/notifications/notification-badges.schemas.d.ts +167 -5
- package/dist/esm/notifications/notification-badges.schemas.d.ts.map +1 -1
- package/dist/esm/notifications/notification-badges.schemas.js +191 -6
- package/dist/esm/notifications/notification-badges.schemas.js.map +1 -1
- package/dist/esm/notifications/notification-badges.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/notifications/notifications.shared.schemas.d.ts +158 -0
- package/dist/esm/notifications/notifications.shared.schemas.d.ts.map +1 -1
- package/dist/esm/notifications/notifications.shared.schemas.js +200 -1
- package/dist/esm/notifications/notifications.shared.schemas.js.map +1 -1
- package/dist/esm/organizations/organization-features.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/organizations/organization-features.shared.resources-config.schemas.js +13 -0
- package/dist/esm/organizations/organization-features.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/organizations/organization-members.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/organizations/organization-members.shared.schemas.d.ts.map +1 -1
- package/dist/esm/organizations/organization-notifications.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/organizations/organization-notifications.shared.schemas.d.ts.map +1 -1
- package/dist/esm/organizations/organization-notifications.shared.schemas.js +22 -1
- package/dist/esm/organizations/organization-notifications.shared.schemas.js.map +1 -1
- package/dist/esm/organizations/organization-preferences.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/organizations/organization-preferences.shared.schemas.d.ts +26 -0
- package/dist/esm/organizations/organization-preferences.shared.schemas.d.ts.map +1 -1
- package/dist/esm/organizations/organization-preferences.shared.schemas.js +25 -0
- package/dist/esm/organizations/organization-preferences.shared.schemas.js.map +1 -1
- package/dist/esm/organizations/organization-profile.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/organizations/organization-profile.shared.schemas.d.ts +25 -0
- package/dist/esm/organizations/organization-profile.shared.schemas.d.ts.map +1 -1
- package/dist/esm/organizations/organization-profile.shared.schemas.js +42 -17
- package/dist/esm/organizations/organization-profile.shared.schemas.js.map +1 -1
- package/dist/esm/organizations/organization-unit-inheritance.shared.d.ts.map +1 -1
- package/dist/esm/organizations/organization-unit-members.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/organizations/organization-unit-members.shared.schemas.d.ts.map +1 -1
- package/dist/esm/organizations/organization-unit-narrowing-decision.shared.d.ts.map +1 -1
- package/dist/esm/organizations/organization-unit-narrowing.example.d.ts.map +1 -1
- package/dist/esm/organizations/organization-unit-narrowing.shared.d.ts +3 -2
- package/dist/esm/organizations/organization-unit-narrowing.shared.d.ts.map +1 -1
- package/dist/esm/organizations/organization-unit-narrowing.shared.js +9 -2
- package/dist/esm/organizations/organization-unit-narrowing.shared.js.map +1 -1
- package/dist/esm/organizations/organization-units.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/organizations/organization-units.shared.schemas.d.ts.map +1 -1
- package/dist/esm/organizations/organizations.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/organizations/organizations.shared.resources-config.schemas.js +18 -3
- package/dist/esm/organizations/organizations.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/organizations/organizations.shared.schemas.d.ts.map +1 -1
- package/dist/esm/organizations/tenant-teardown-config.shared.schemas.d.ts +13 -0
- package/dist/esm/organizations/tenant-teardown-config.shared.schemas.d.ts.map +1 -1
- package/dist/esm/organizations/tenant-teardown-config.shared.schemas.js +13 -0
- package/dist/esm/organizations/tenant-teardown-config.shared.schemas.js.map +1 -1
- package/dist/esm/provider-registration-runtime.exports.d.ts.map +1 -1
- package/dist/esm/public-runtime/index.d.ts +71 -2
- package/dist/esm/public-runtime/index.d.ts.map +1 -1
- package/dist/esm/public-runtime/index.js +62 -1
- package/dist/esm/public-runtime/index.js.map +1 -1
- package/dist/esm/queue/jobs.shared.resources-config.schemas.d.ts +6 -5
- package/dist/esm/queue/jobs.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/queue/jobs.shared.resources-config.schemas.js +6 -5
- package/dist/esm/queue/jobs.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/queue/jobs.shared.schemas.d.ts +16 -3
- package/dist/esm/queue/jobs.shared.schemas.d.ts.map +1 -1
- package/dist/esm/queue/jobs.shared.schemas.js +16 -3
- package/dist/esm/queue/jobs.shared.schemas.js.map +1 -1
- package/dist/esm/queue/jobs.shared.utils.d.ts.map +1 -1
- package/dist/esm/queue/queues.shared.schemas.d.ts.map +1 -1
- package/dist/esm/queue/queues.shared.utils.d.ts.map +1 -1
- package/dist/esm/requests/manual-controllers-routes-documentation.d.ts +137 -0
- package/dist/esm/requests/manual-controllers-routes-documentation.d.ts.map +1 -0
- package/dist/esm/requests/manual-controllers-routes-documentation.js +1255 -0
- package/dist/esm/requests/manual-controllers-routes-documentation.js.map +1 -0
- package/dist/esm/requests/manual-controllers-routes-urls.d.ts +114 -0
- package/dist/esm/requests/manual-controllers-routes-urls.d.ts.map +1 -1
- package/dist/esm/requests/manual-controllers-routes-urls.js +129 -0
- package/dist/esm/requests/manual-controllers-routes-urls.js.map +1 -1
- package/dist/esm/requests/rate-limits.shared.schemas.d.ts +11 -1
- package/dist/esm/requests/rate-limits.shared.schemas.d.ts.map +1 -1
- package/dist/esm/requests/rate-limits.shared.schemas.js +11 -1
- package/dist/esm/requests/rate-limits.shared.schemas.js.map +1 -1
- package/dist/esm/requests/websocket.shared.schemas.d.ts +28 -3
- package/dist/esm/requests/websocket.shared.schemas.d.ts.map +1 -1
- package/dist/esm/requests/websocket.shared.schemas.js +52 -0
- package/dist/esm/requests/websocket.shared.schemas.js.map +1 -1
- package/dist/esm/resources/child-operations.shared.schemas.d.ts.map +1 -1
- package/dist/esm/resources/context-policy.shared.schemas.d.ts.map +1 -1
- package/dist/esm/resources/relationship-display.shared.schemas.d.ts.map +1 -1
- package/dist/esm/resources/resources-config.shared.factory.d.ts +1 -0
- package/dist/esm/resources/resources-config.shared.factory.d.ts.map +1 -1
- package/dist/esm/resources/resources-config.shared.factory.js +203 -25
- package/dist/esm/resources/resources-config.shared.factory.js.map +1 -1
- package/dist/esm/resources/resources-config.shared.schemas.d.ts +297 -68
- package/dist/esm/resources/resources-config.shared.schemas.d.ts.map +1 -1
- package/dist/esm/resources/resources-config.shared.schemas.js.map +1 -1
- package/dist/esm/resources/resources-registry.shared.core.definitions.d.ts.map +1 -1
- package/dist/esm/resources/resources-registry.shared.core.definitions.js +151 -5
- package/dist/esm/resources/resources-registry.shared.core.definitions.js.map +1 -1
- package/dist/esm/resources/resources-relationships.shared.factory.d.ts.map +1 -1
- package/dist/esm/resources/resources-relationships.shared.factory.js +15 -0
- package/dist/esm/resources/resources-relationships.shared.factory.js.map +1 -1
- package/dist/esm/resources/resources-serialization.shared.schemas.d.ts.map +1 -1
- package/dist/esm/resources/resources.shared.core.definitions.d.ts +54 -0
- package/dist/esm/resources/resources.shared.core.definitions.d.ts.map +1 -1
- package/dist/esm/resources/resources.shared.core.definitions.js +69 -0
- package/dist/esm/resources/resources.shared.core.definitions.js.map +1 -1
- package/dist/esm/resources/resources.shared.schemas.d.ts +11 -2
- package/dist/esm/resources/resources.shared.schemas.d.ts.map +1 -1
- package/dist/esm/resources/resources.shared.schemas.js +34 -3
- package/dist/esm/resources/resources.shared.schemas.js.map +1 -1
- package/dist/esm/resources/resources.shared.utils.d.ts +32 -7
- package/dist/esm/resources/resources.shared.utils.d.ts.map +1 -1
- package/dist/esm/resources/resources.shared.utils.js +32 -7
- package/dist/esm/resources/resources.shared.utils.js.map +1 -1
- package/dist/esm/resources/utils/collection-export.shared.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/composition-cascade-deletability.validation.d.ts.map +1 -1
- package/dist/esm/resources/utils/composition-seedability.validation.d.ts.map +1 -1
- package/dist/esm/resources/utils/context-addressed-composition-singleton.shared.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/duplicate-relationship-registration.validation.d.ts.map +1 -1
- package/dist/esm/resources/utils/field-value-disclosure.utils.d.ts +51 -0
- package/dist/esm/resources/utils/field-value-disclosure.utils.d.ts.map +1 -0
- package/dist/esm/resources/utils/field-value-disclosure.utils.js +53 -0
- package/dist/esm/resources/utils/field-value-disclosure.utils.js.map +1 -0
- package/dist/esm/resources/utils/persistence-adapter-discrimination.shared.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/repository-dto-builder.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/required-fk-fillability.validation.d.ts.map +1 -1
- package/dist/esm/resources/utils/resource-operation-type-guards.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/resource-polymorphism.factory.d.ts.map +1 -1
- package/dist/esm/resources/utils/resource-polymorphism.relationships.d.ts.map +1 -1
- package/dist/esm/resources/utils/resource-polymorphism.schemas.d.ts.map +1 -1
- package/dist/esm/resources/utils/resource-polymorphism.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/resource-subtree.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/resources-config-context-needs.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/resources-config-operations.dtos-builder.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/resources-config-operations.path.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/resources-config-operations.urls-builder.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/resources-config-operations.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/resources-serialization.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/resources-summary.utils.d.ts +16 -2
- package/dist/esm/resources/utils/resources-summary.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/resources-summary.utils.js +19 -5
- package/dist/esm/resources/utils/resources-summary.utils.js.map +1 -1
- package/dist/esm/resources/utils/schema-family-builder.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/schema-type-inference.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/schema-type-utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/schema-variant-resolver.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/shared-persistence-collection.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/shared-persistence-collection.utils.js +11 -0
- package/dist/esm/resources/utils/shared-persistence-collection.utils.js.map +1 -1
- package/dist/esm/resources/utils/templatable-file-fields.shared.utils.d.ts.map +1 -1
- package/dist/esm/runtime/domain-module.shared.definitions.d.ts +25 -0
- package/dist/esm/runtime/domain-module.shared.definitions.d.ts.map +1 -1
- package/dist/esm/runtime/domain-module.shared.definitions.js.map +1 -1
- package/dist/esm/runtime/execution-context.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/api-keys/api-keys-application.shared.resources-config.schemas.d.ts +1 -0
- package/dist/esm/security/api-keys/api-keys-application.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/security/api-keys/api-keys-application.shared.resources-config.schemas.js +38 -0
- package/dist/esm/security/api-keys/api-keys-application.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/security/api-keys/api-keys-organization.shared.resources-config.schemas.d.ts +1 -0
- package/dist/esm/security/api-keys/api-keys-organization.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/security/api-keys/api-keys-organization.shared.resources-config.schemas.js +38 -0
- package/dist/esm/security/api-keys/api-keys-organization.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/security/api-keys/api-keys.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/anonymous-session/anonymous-session.shared.contract.d.ts.map +1 -1
- package/dist/esm/security/authentications/authentication.shared.dto.schemas.d.ts +5 -12
- package/dist/esm/security/authentications/authentication.shared.dto.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/authentication.shared.dto.schemas.js +0 -1
- package/dist/esm/security/authentications/authentication.shared.dto.schemas.js.map +1 -1
- package/dist/esm/security/authentications/authentication.shared.schemas.d.ts +84 -5
- package/dist/esm/security/authentications/authentication.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/authentication.shared.schemas.js +83 -3
- package/dist/esm/security/authentications/authentication.shared.schemas.js.map +1 -1
- package/dist/esm/security/authentications/authentication.shared.utils.d.ts.map +1 -1
- package/dist/esm/security/authentications/consumable-token.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/consumable-token.shared.schemas.js.map +1 -1
- package/dist/esm/security/authentications/cross-frontend-handoff.shared.dto.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/password-reset.shared.dto.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/registration.shared.dto.schemas.d.ts +1 -0
- package/dist/esm/security/authentications/registration.shared.dto.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/registration.shared.dto.schemas.js +11 -0
- package/dist/esm/security/authentications/registration.shared.dto.schemas.js.map +1 -1
- package/dist/esm/security/authentications/scim/scim-organization-unit-mapping.shared.d.ts.map +1 -1
- package/dist/esm/security/authentications/scim/scim-provisioning-config.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/scim/scim-provisioning-config.shared.schemas.d.ts +15 -0
- package/dist/esm/security/authentications/scim/scim-provisioning-config.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/scim/scim-provisioning-config.shared.schemas.js +21 -4
- package/dist/esm/security/authentications/scim/scim-provisioning-config.shared.schemas.js.map +1 -1
- package/dist/esm/security/authentications/scim/scim-tokens.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/scim/scim-tokens.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/siem/siem-delivery-dlq.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/siem/siem-delivery-dlq.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/siem/siem-delivery-reliability-contract.shared.d.ts.map +1 -1
- package/dist/esm/security/authentications/siem/siem-delivery-reliability-contract.shared.js.map +1 -1
- package/dist/esm/security/authentications/siem/siem-export-config.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/siem/siem-export-config.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/sso/sso-config.shared.resources-config.schemas.d.ts +61 -1
- package/dist/esm/security/authentications/sso/sso-config.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/sso/sso-config.shared.resources-config.schemas.js +238 -6
- package/dist/esm/security/authentications/sso/sso-config.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/security/authentications/sso/sso-config.shared.schemas.d.ts +37 -27
- package/dist/esm/security/authentications/sso/sso-config.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/sso/sso-config.shared.schemas.js +134 -12
- package/dist/esm/security/authentications/sso/sso-config.shared.schemas.js.map +1 -1
- package/dist/esm/security/authentications/sso/sso-connection.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/sso/sso-connection.shared.schemas.d.ts +2 -6
- package/dist/esm/security/authentications/sso/sso-connection.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/sso/sso-connection.shared.schemas.js +32 -8
- package/dist/esm/security/authentications/sso/sso-connection.shared.schemas.js.map +1 -1
- package/dist/esm/security/authorizations/administrative-continuity.shared.schemas.d.ts +45 -2
- package/dist/esm/security/authorizations/administrative-continuity.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/authorizations/administrative-continuity.shared.schemas.js +45 -2
- package/dist/esm/security/authorizations/administrative-continuity.shared.schemas.js.map +1 -1
- package/dist/esm/security/authorizations/application-access-grants.shared.resources-config.schemas.d.ts +35 -0
- package/dist/esm/security/authorizations/application-access-grants.shared.resources-config.schemas.d.ts.map +1 -0
- package/dist/esm/security/authorizations/application-access-grants.shared.resources-config.schemas.js +257 -0
- package/dist/esm/security/authorizations/application-access-grants.shared.resources-config.schemas.js.map +1 -0
- package/dist/esm/security/authorizations/application-access-grants.shared.schemas.d.ts +143 -0
- package/dist/esm/security/authorizations/application-access-grants.shared.schemas.d.ts.map +1 -0
- package/dist/esm/security/authorizations/application-access-grants.shared.schemas.js +219 -0
- package/dist/esm/security/authorizations/application-access-grants.shared.schemas.js.map +1 -0
- package/dist/esm/security/authorizations/platform-access-grants.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/security/authorizations/platform-access-grants.shared.resources-config.schemas.js +27 -0
- package/dist/esm/security/authorizations/platform-access-grants.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/security/authorizations/platform-access-grants.shared.schemas.d.ts +75 -7
- package/dist/esm/security/authorizations/platform-access-grants.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/authorizations/platform-access-grants.shared.schemas.js +69 -8
- package/dist/esm/security/authorizations/platform-access-grants.shared.schemas.js.map +1 -1
- package/dist/esm/security/authorizations/roles.shared.defaults.d.ts.map +1 -1
- package/dist/esm/security/authorizations/roles.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/authorizations/roles.shared.utils.d.ts.map +1 -1
- package/dist/esm/security/connected-accounts/provider-credentials-organization.shared.resources-config.schemas.d.ts +31 -0
- package/dist/esm/security/connected-accounts/provider-credentials-organization.shared.resources-config.schemas.d.ts.map +1 -0
- package/dist/esm/security/connected-accounts/provider-credentials-organization.shared.resources-config.schemas.js +198 -0
- package/dist/esm/security/connected-accounts/provider-credentials-organization.shared.resources-config.schemas.js.map +1 -0
- package/dist/esm/security/connected-accounts/provider-credentials-user.shared.resources-config.schemas.d.ts +31 -0
- package/dist/esm/security/connected-accounts/provider-credentials-user.shared.resources-config.schemas.d.ts.map +1 -0
- package/dist/esm/security/connected-accounts/provider-credentials-user.shared.resources-config.schemas.js +191 -0
- package/dist/esm/security/connected-accounts/provider-credentials-user.shared.resources-config.schemas.js.map +1 -0
- package/dist/esm/security/connected-accounts/provider-credentials.shared.schemas.d.ts +307 -0
- package/dist/esm/security/connected-accounts/provider-credentials.shared.schemas.d.ts.map +1 -0
- package/dist/esm/security/connected-accounts/provider-credentials.shared.schemas.js +530 -0
- package/dist/esm/security/connected-accounts/provider-credentials.shared.schemas.js.map +1 -0
- package/dist/esm/security/oauth-clients/oauth-clients-application.shared.resources-config.schemas.d.ts +4 -1
- package/dist/esm/security/oauth-clients/oauth-clients-application.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/security/oauth-clients/oauth-clients-application.shared.resources-config.schemas.js +29 -0
- package/dist/esm/security/oauth-clients/oauth-clients-application.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/security/oauth-clients/oauth-clients-organization.shared.resources-config.schemas.d.ts +4 -1
- package/dist/esm/security/oauth-clients/oauth-clients-organization.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/security/oauth-clients/oauth-clients-organization.shared.resources-config.schemas.js +29 -0
- package/dist/esm/security/oauth-clients/oauth-clients-organization.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/security/oauth-clients/oauth-clients.shared.schemas.d.ts +6 -0
- package/dist/esm/security/oauth-clients/oauth-clients.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/oauth-clients/oauth-clients.shared.schemas.js +31 -0
- package/dist/esm/security/oauth-clients/oauth-clients.shared.schemas.js.map +1 -1
- package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.schemas.d.ts +13 -0
- package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.schemas.js +24 -3
- package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.schemas.js.map +1 -1
- package/dist/esm/security/oauth-clients/oauth-resource-server.shared.schemas.d.ts.map +1 -1
- package/dist/esm/testing/resource-config-builders.d.ts.map +1 -1
- package/dist/esm/testing.d.ts.map +1 -1
- package/dist/esm/users/anonymous-user-marketing-metadata.shared.schemas.d.ts.map +1 -1
- package/dist/esm/users/anonymous-users.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/users/anonymous-users.shared.schema.d.ts.map +1 -1
- package/dist/esm/users/inbound-contacts.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/users/inbound-contacts.shared.schemas.d.ts.map +1 -1
- package/dist/esm/users/user-credentials.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/users/user-credentials.shared.schemas.d.ts.map +1 -1
- package/dist/esm/users/user-identity-links.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/users/user-identity-links.shared.schemas.d.ts.map +1 -1
- package/dist/esm/users/user-preferences-reset.shared.utils.d.ts.map +1 -1
- package/dist/esm/users/user-preferences.shared.resources-config.schemas.d.ts +4 -4
- package/dist/esm/users/user-preferences.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/users/user-profiles.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/users/user-self-preferences.shared.resources-config.schemas.d.ts +4 -4
- package/dist/esm/users/user-self-preferences.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/users/user-self-profiles.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/users/user-self.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/users/user-self.shared.resources-config.schemas.js +33 -3
- package/dist/esm/users/user-self.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/users/users.shared.resources-config.schemas.d.ts +17 -1
- package/dist/esm/users/users.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/users/users.shared.resources-config.schemas.js +136 -5
- package/dist/esm/users/users.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/users/users.shared.schemas.d.ts +60 -13
- package/dist/esm/users/users.shared.schemas.d.ts.map +1 -1
- package/dist/esm/users/users.shared.schemas.js +56 -9
- package/dist/esm/users/users.shared.schemas.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.shared.schemas.js","sourceRoot":"","sources":["../../../../src/flows-actors/agents.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,wBAAwB,EAGxB,0BAA0B,EAG1B,wBAAwB,EAExB,wBAAwB,GACzB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAG3E,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,OAAO,EAAE,wBAAwB,EAAE,MAAM,0DAA0D,CAAC;AAyCpG,MAAM,CAAN,IAAY,iCAGX;AAHD,WAAY,iCAAiC;IAC3C,0EAAqC,CAAA;IACrC,kFAA6C,CAAA;AAC/C,CAAC,EAHW,iCAAiC,KAAjC,iCAAiC,QAG5C;AAwDD;;;;GAIG;AACH,MAAM,UAAU,yBAAyB,CACvC,MAAuC;IAEvC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ingAgent_OperationDefinitionBase,\n CodingAgent_OperationKey,\n CodingAgent_OperationModelConfiguration,\n ImageProvider_OperationDefinitionBase,\n ImageProvider_OperationKey,\n ImageProvider_OperationModelConfiguration,\n LLMProvider_OperationDefinitionBase,\n LLMProvider_OperationKey,\n LLMProvider_OperationModelConfiguration,\n LLMProvider_PromptFormat,\n} from \"@wildo-ai/external-connectors-models\";\nimport { FlowsActors_LeafElements_Configuration } from \"./flows-actors.configuration.shared.schemas\";\nimport { FlowsActors_IO_PartKind } from \"./flows-actors.io.shared.schemas\";\nimport { ExecutionContext_InitiatorIds } from \"../runtime/execution-context.shared.schemas\";\nimport { FlowActorSystem_Kind } from \"./flows-actors.system.shared.schemas\";\nimport z from \"zod\";\nimport { FlowsActors_Relationship } from \"./flows-actors.commons.shared.schemas\";\nimport { AppsBlueprint_FileFormat } from \"./apps-blueprint/artifacts.apps-blueprint.shared.schemas\";\n\n\n\n//===============================================================\n// FlowsActors_Agent\n// --------\n// FlowsActors_Agents are AI-powered entities that execute agentic steps within\n// flows and actors. They encapsulate LLM configurations, skills,\n// and system prompts, enabling intelligent decision-making and\n// content generation. FlowsActors_Agents can be scoped to different levels\n// (platform, application, organization, user) for access control.\n//===============================================================\n\n\n//===============================================================\n// FlowsActors_Agent execution configuration\n// Keeps semantic LLM model config while allowing transport selection\n//===============================================================\n\n/** @wildo_source:part:start saas.models.flows-actors.agent-configuration facet:kind:api facet:audience:app-developer\n *\n * Agent execution settings that stay stable across transport changes.\n *\n * `providerRef` and `model` still come from the semantic LLM configuration,\n * while `executionProfileRef` selects one transport/runtime profile under the\n * provider's `AGENT_CLIENT_PROTOCOL` transport when execution should not use the default\n * API-backed path.\n */\nexport type FlowsActors_Agent_ExecutionConfiguration = LLMProvider_OperationModelConfiguration & {\n executionProfileRef?: string;\n /** Refuse provider fan-out when one budget reservation authorizes exactly one physical model call. */\n structuredGenerationExecutionMode?: StructuredGenerationExecutionMode;\n /**\n * Immutable schema-shape ceiling used by both pre-admission planning and the physical structured-output executor.\n * SINGLE_CALL_REQUIRED agents must declare this value so a provider configuration override cannot silently change\n * the number of calls after one budget reservation has been admitted.\n */\n maximumStructuredOutputLeafFields?: number;\n};\n\nexport enum StructuredGenerationExecutionMode {\n CHUNKING_ALLOWED = 'CHUNKING_ALLOWED',\n SINGLE_CALL_REQUIRED = 'SINGLE_CALL_REQUIRED',\n}\n\n/**\n * The LLM/text execution arm of an agent config — the original shape,\n * unchanged. Its `operationKey` is an `LLMProvider_OperationKey`, which is\n * what discriminates this arm from the image arm below (the two operation-key\n * enums are disjoint, so TypeScript narrows the union by `operationKey`).\n * Produces the TEXT / STRUCTURED modality; the executor routes it to\n * `LLM_PROVIDER`.\n */\nexport type FlowsActors_Agent_LLMConfiguration = FlowsActors_LeafElements_Configuration & FlowsActors_Agent_ExecutionConfiguration & {\n operationKey: LLMProvider_OperationKey,\n seed?: number, // Random seed for deterministic output\n};\n\n/**\n * The IMAGE execution arm of an agent config. Carries image-generation\n * parameters (`size` / `quality` / `background` / …) instead of LLM sampling,\n * and an `ImageProvider_OperationKey`. Produces the IMAGE modality; the\n * executor routes it to `IMAGE_PROVIDER`. (AUDIO / VIDEO arms are reserved —\n * their config types land when those transports are wired.)\n */\nexport type FlowsActors_Agent_ImageConfiguration = FlowsActors_LeafElements_Configuration & ImageProvider_OperationModelConfiguration & {\n operationKey: ImageProvider_OperationKey,\n executionProfileRef?: string,\n};\n\n/**\n * The CODING execution arm of an agent config. Carries a workspace-mutating\n * agent reached over the Agent Client Protocol, and a `CodingAgent_OperationKey`.\n * Produces no artifact modality at all — its product is a CHANGED WORKSPACE,\n * which is why it sits on this axis rather than beside TEXT and IMAGE as\n * another thing to generate.\n *\n * `executionProfileRef` is REQUIRED here, unlike every other arm. A coding\n * agent cannot fall back to a default API-backed path: there is no such path,\n * and the profile is where the environment gate, the permission ceiling and the\n * host-configuration posture live. An agent that could omit it would be an\n * agent whose authority was unstated.\n */\nexport type FlowsActors_Agent_CodingConfiguration = FlowsActors_LeafElements_Configuration & CodingAgent_OperationModelConfiguration & {\n operationKey: CodingAgent_OperationKey,\n executionProfileRef: string,\n};\n\n/**\n * Agent execution config, discriminated by `operationKey` along the artifact\n * MODALITY axis. One agent concept; the arm selects the transport family.\n * Narrow with {@link isImageAgentConfiguration} or\n * {@link isCodingAgentConfiguration} before reading arm-specific fields.\n */\nexport type FlowsActors_Agent_Configuration =\n | FlowsActors_Agent_LLMConfiguration\n | FlowsActors_Agent_ImageConfiguration\n | FlowsActors_Agent_CodingConfiguration;\n\n/**\n * Narrows an agent config to its IMAGE arm. The two `operationKey` enums are\n * disjoint, so membership in `ImageProvider_OperationKey` is a sound\n * discriminant.\n */\nexport function isImageAgentConfiguration(\n config: FlowsActors_Agent_Configuration,\n): config is FlowsActors_Agent_ImageConfiguration {\n return Object.values(ImageProvider_OperationKey).includes(config.operationKey as ImageProvider_OperationKey);\n}\n\n/**\n * Narrows an agent config to its LLM/text arm.\n *\n * Exists so consumers can narrow POSITIVELY. Writing `!isImageAgentConfiguration(config)`\n * to mean \"this is the LLM arm\" was correct only while the union had exactly two\n * members: the moment a third arm landed, that negation silently widened to\n * include it and the compiler reported a missing property somewhere else\n * entirely. A positive guard cannot absorb a future arm by accident.\n */\nexport function isLLMAgentConfiguration(\n config: FlowsActors_Agent_Configuration,\n): config is FlowsActors_Agent_LLMConfiguration {\n return Object.values(LLMProvider_OperationKey).includes(config.operationKey as LLMProvider_OperationKey);\n}\n\n/**\n * Narrows an agent config to its CODING arm. The operation-key enums are\n * pairwise disjoint, so membership in `CodingAgent_OperationKey` is a sound\n * discriminant — the same argument the image guard rests on.\n */\nexport function isCodingAgentConfiguration(\n config: FlowsActors_Agent_Configuration,\n): config is FlowsActors_Agent_CodingConfiguration {\n return Object.values(CodingAgent_OperationKey).includes(config.operationKey as CodingAgent_OperationKey);\n}\n/** @wildo_source:part:end saas.models.flows-actors.agent-configuration */\n\n\n\n\n/** @wildo_source:part:start saas.models.flows-actors.agent-definition facet:kind:api facet:audience:app-developer\n *\n * Agent lifecycle status. Only `ACTIVE` agents are invocable — invoking an\n * `INACTIVE` / `DEPRECATED` agent is refused at the call, not at registration,\n * so this is the switch for retiring an agent without deleting its definition\n * (and without breaking the refs that still name it).\n */\nexport enum FlowsActors_Agent_Status {\n ACTIVE = \"active\",\n INACTIVE = \"inactive\",\n DEPRECATED = \"deprecated\",\n}\n/** @wildo_source:part:end saas.models.flows-actors.agent-definition */\n\n/** @wildo_source:part:start saas.models.flows-actors.agent-prompt-spec facet:kind:api facet:audience:app-developer\n *\n * What KIND of work the agent does. The prompt compiler turns this into the\n * agent's baseline behavioral instructions before your own `instructions[]` are\n * appended — so it is a real behavioral input, not a label. Pick the one that\n * matches the job: `GENERATION` (write something new), `ANALYSIS` (read and\n * report), `TRANSFORMATION` (reshape given input), `DECISION` (choose/judge),\n * `CHAT` (multi-turn conversation — see the chat-assistant skill), `CUSTOM`\n * (none of the baselines fit).\n */\nexport enum FlowsActors_Agent_Skill_Type {\n GENERATION = \"generation\",\n ANALYSIS = \"analysis\",\n TRANSFORMATION = \"transformation\",\n DECISION = \"decision\",\n CHAT = \"chat\",\n CUSTOM = \"custom\",\n}\n/** @wildo_source:part:end saas.models.flows-actors.agent-prompt-spec */\n\n\n\n\n//===============================================================\n// FlowsActors_Agent Style Preferences\n//===============================================================\n\nexport enum FlowsActors_Agent_Verbosity {\n LOW = \"low\",\n MEDIUM = \"medium\",\n HIGH = \"high\",\n}\n\nexport enum FlowsActors_Agent_Tone {\n NEUTRAL = \"neutral\",\n CASUAL = \"casual\",\n FORMAL = \"formal\",\n TECHNICAL = \"technical\",\n}\n\n\n//===============================================================\n// FlowsActors_Agent Constraint Types (Task 1)\n// For prompt-level prohibitions with precedence + violation handling\n//===============================================================\n\nexport enum FlowsActors_Agent_ConstraintType {\n SECURITY = \"security\", // Never reveal API keys, never execute arbitrary code\n SAFETY = \"safety\", // Refuse harmful requests\n PRIVACY = \"privacy\", // Handle PII appropriately\n SCOPE = \"scope\", // Stay within task boundaries\n COMPLIANCE = \"compliance\", // Regulatory constraints\n}\n\n\n//===============================================================\n// FlowsActors_Agent Constraint Schema (Task 2)\n//===============================================================\n\nexport const FlowsActors_Agent_ConstraintSchema = z.object({\n /** Unique constraint identifier */\n id: z.string(),\n /** The constraint text (prohibition) */\n text: z.string(),\n /** Constraint category */\n type: z.enum(FlowsActors_Agent_ConstraintType),\n /** Action on violation */\n onViolation: z.enum([\"refuse\", \"warn\", \"log\"]).default(\"refuse\"),\n});\n\nexport type FlowsActors_Agent_Constraint = z.infer<typeof FlowsActors_Agent_ConstraintSchema>;\n\n\n//===============================================================\n// FlowsActors_Agent Output Specification Schema (Task 3)\n// REUSES: FlowsActors_IO_PartKind, AppsBlueprint_FileFormat, FlowsActors_Agent_Verbosity\n//===============================================================\n\nexport const FlowsActors_Agent_OutputSpecSchema = z.object({\n /**\n * Output type classification\n * REUSES: FlowsActors_IO_PartKind (TEXT, FILE, RAW_DATA, STRUCTURED)\n */\n type: z.enum(FlowsActors_IO_PartKind).optional(),\n\n /**\n * File format hint (for FILE type or text formatting guidance)\n * REUSES: AppsBlueprint_FileFormat (TEXT, TYPESCRIPT, MARKDOWN, JSON, YAML, etc.)\n */\n fileFormat: z.enum(AppsBlueprint_FileFormat).optional(),\n\n /**\n * Length guidance - overrides style.verbosity for output specifically\n * REUSES: FlowsActors_Agent_Verbosity (LOW=concise, MEDIUM=moderate, HIGH=detailed)\n */\n lengthGuidance: z.enum(FlowsActors_Agent_Verbosity).optional(),\n\n /** Include reasoning/explanation in output */\n includeReasoning: z.boolean().optional(),\n\n /** Required sections in output (e.g., [\"summary\", \"recommendations\"]) */\n requiredSections: z.array(z.string()).optional(),\n});\n\nexport type FlowsActors_Agent_OutputSpec = z.infer<typeof FlowsActors_Agent_OutputSpecSchema>;\n\n\n//===============================================================\n// FlowsActors_Agent Uncertainty Policy (Task 4)\n// How to handle ambiguity in agent execution\n//===============================================================\n\nexport enum FlowsActors_Agent_UncertaintyPolicy {\n ASK = \"ask\", // Ask for clarification\n INFER = \"infer\", // Make reasonable inferences\n CONSERVATIVE = \"conservative\", // Choose safest option\n FAIL = \"fail\", // Return error on uncertainty\n}\n\n\n//===============================================================\n// FlowsActors_Agent Uncertainty Schema (Task 5)\n//===============================================================\n\nexport const FlowsActors_Agent_UncertaintySchema = z.object({\n /** Policy when agent is uncertain */\n policy: z.enum(FlowsActors_Agent_UncertaintyPolicy).default(FlowsActors_Agent_UncertaintyPolicy.ASK),\n /** Confidence threshold (0-1) below which to apply policy */\n confidenceThreshold: z.number().min(0).max(1).optional(),\n});\n\nexport type FlowsActors_Agent_Uncertainty = z.infer<typeof FlowsActors_Agent_UncertaintySchema>;\n\n\n//===============================================================\n// FlowsActors_Agent_PromptSpec (Clean Implementation)\n// Complete prompt specification - required on all agents\n// Replaces legacy skill.role/persona approach\n//===============================================================\n\n/** @wildo_source:part:start saas.models.flows-actors.agent-prompt-spec facet:kind:api facet:audience:app-developer\n *\n * The agent's prompt, authored as STRUCTURE rather than one prose blob. The\n * prompt compiler renders these fields into the provider's preferred format\n * (XML boundaries for Claude, message roles for OpenAI, …), so you never\n * hand-format a system prompt or branch on the provider yourself.\n *\n * `role` + `skillType` are the only required fields — start there and add the\n * rest as the behavior needs them. Precedence when the model must choose:\n * `constraints` (prohibitions — highest) > `instructions` (hard rules) >\n * `hints` (soft preferences). Keep the per-call task in the invocation's\n * `input.prompt`; keep everything durable about the agent here.\n */\nexport const FlowsActors_Agent_PromptSpecSchema = z.object({\n //====================\n // IDENTITY (migrated from legacy skill)\n //====================\n\n /**\n * Agent's role description\n * Explains what this agent does and its primary function\n */\n role: z.string(),\n\n /**\n * Agent's persona/character\n * Defines the agent's personality, expertise, and communication approach\n */\n persona: z.string().optional(),\n\n /**\n * Agent skill type - determines baseline behavioral instructions\n */\n skillType: z.enum(FlowsActors_Agent_Skill_Type),\n\n //====================\n // CONSTRAINTS (highest precedence)\n //====================\n\n /**\n * Constraints - HIGHEST precedence, never violate\n * Different from instructions: constraints are prohibitions, instructions are rules\n */\n constraints: z.array(FlowsActors_Agent_ConstraintSchema).optional(),\n\n //====================\n // GOAL\n //====================\n\n /**\n * Goal statement - what the agent aims to achieve\n * Single sentence describing success criteria\n */\n goal: z.string().optional(),\n\n //====================\n // OUTPUT SPECIFICATION\n //====================\n\n /**\n * Output specification - format and structure requirements\n */\n output: FlowsActors_Agent_OutputSpecSchema.optional(),\n\n //====================\n // INSTRUCTIONS & HINTS\n //====================\n\n /** Hard rules - behavioral instructions (in addition to skill type baseline) */\n instructions: z.array(z.string()).default([]),\n\n /** Soft hints - preferences, can be overridden by task constraints */\n hints: z.array(z.string()).optional(),\n\n //====================\n // UNCERTAINTY HANDLING\n //====================\n\n /**\n * Uncertainty handling policy\n */\n uncertainty: FlowsActors_Agent_UncertaintySchema.optional(),\n\n //====================\n // SCOPE BOUNDARIES\n //====================\n\n /**\n * Scope boundaries - explicit \"don't do\" statements\n * Helps prevent scope creep\n */\n outOfScope: z.array(z.string()).optional(),\n\n //====================\n // EXAMPLES (few-shot)\n //====================\n\n /**\n * Examples - few-shot examples for better output quality\n * Format: input/output pairs with optional explanation\n */\n examples: z.array(z.object({\n input: z.string(),\n output: z.string(),\n explanation: z.string().optional(),\n })).optional(),\n\n //====================\n // STYLE\n //====================\n\n /** Style preferences */\n style: z.object({\n verbosity: z.enum(FlowsActors_Agent_Verbosity).optional(),\n tone: z.enum(FlowsActors_Agent_Tone).optional(),\n }).optional(),\n\n //====================\n // CONTEXT CURATION\n //====================\n\n /** Context curation settings */\n curation: z.object({\n /** Maximum context items to include */\n maxItems: z.number().min(1).max(100).optional(),\n /** Minimum relevance score threshold (0-1) */\n minRelevance: z.number().min(0).max(1).optional(),\n /** Maximum total tokens for context */\n maxTokens: z.number().optional(),\n }).optional(),\n\n //====================\n // FORMAT & METADATA\n //====================\n\n /** Override provider's default prompt format */\n promptFormatOverride: z.enum(LLMProvider_PromptFormat).optional(),\n\n /**\n * Prompt specification metadata for versioning and tracking\n * Helps track prompt iterations and authorship for 200+ agents\n */\n metadata: z.object({\n /** Semantic version of this prompt spec (e.g., \"1.2.0\") */\n version: z.string().optional(),\n /** Last modification date (ISO 8601) */\n lastModified: z.string().optional(),\n /** Author or team responsible */\n author: z.string().optional(),\n /** Brief changelog or reason for current version */\n changelog: z.string().optional(),\n }).optional(),\n});\n\nexport type FlowsActors_Agent_PromptSpec = z.infer<typeof FlowsActors_Agent_PromptSpecSchema>;\n/** @wildo_source:part:end saas.models.flows-actors.agent-prompt-spec */\n\n\n//===============================================================\n// FlowsActors_Agent Schema (Clean Implementation)\n// FlowsActors_Agents are AI-powered entities with specific roles and capabilities\n// They are called by Flow Steps (AGENT_CALL) and Actors (AGENTIC mode)\n//===============================================================\n\n/** @wildo_source:part:start saas.models.flows-actors.agent-definition facet:kind:api facet:audience:app-developer\n *\n * A callable AI unit. This is the whole authoring surface for \"give my app an\n * LLM capability\": author one of these, register it on your backend module's\n * `flowsActors.agents`, then invoke it by `ref`.\n *\n * The definition is DECLARATIVE and durable — provider, model, operation, and\n * prompt live here; the per-call task lives in the invocation. Nothing about\n * transport, retries, rate limiting, usage accounting, or tracing is yours to\n * write: the engine owns all of it once the agent is registered.\n *\n * Import path: `@wildo-ai/saas-models`.\n */\nexport type FlowsActors_Agent = {\n //====================\n // IDENTITY\n //====================\n\n /** Unique agent reference for flow/actor calls */\n ref: string,\n\n /** Human-readable display name */\n displayName: string,\n\n /** Agent lifecycle status */\n status: FlowsActors_Agent_Status,\n\n //====================\n // EXECUTION CONFIGURATION (modality-discriminated)\n //====================\n\n /** Provider/model config, discriminated by modality (LLM/text | image | coding). */\n config: FlowsActors_Agent_Configuration,\n\n /** Operation definition (input/output schemas, etc.), per transport family. */\n operationDefinition: LLMProvider_OperationDefinitionBase | ImageProvider_OperationDefinitionBase | CodingAgent_OperationDefinitionBase,\n\n //====================\n // ARTIFACT MODALITY (optional — explicit override; else derived from config)\n //====================\n\n /**\n * The modality this agent PRODUCES. Optional: when omitted the executor\n * derives it from `config` (LLM keys → TEXT/STRUCTURED, image key → IMAGE).\n * Set explicitly to make a multimodal agent's output self-describing.\n */\n outputModality?: FlowsActors_IO_PartKind,\n\n /** The modalities this agent CONSUMES (e.g. `[TEXT]` for text-to-image). */\n inputModalities?: FlowsActors_IO_PartKind[],\n\n //====================\n // PROMPT SPECIFICATION (required)\n //====================\n\n /**\n * Complete prompt specification\n * Defines role, persona, constraints, instructions, output format, etc.\n */\n promptSpec: FlowsActors_Agent_PromptSpec,\n\n //====================\n // CAPABILITIES\n //====================\n\n /** Agent capabilities (tools, etc.) */\n capabilities?: {\n tools?: {\n /** References to callable functions */\n functionRefs: string[],\n /** References to MCP servers */\n mcpRefs: string[],\n },\n },\n\n //====================\n // VERSIONING\n //====================\n\n /** Agent definition version */\n version?: string,\n\n /** Creation timestamp (ISO 8601) */\n createdAt: string,\n\n /** Last update timestamp (ISO 8601) */\n updatedAt?: string,\n};\n/** @wildo_source:part:end saas.models.flows-actors.agent-definition */\n\n\n/** @wildo_source:part:start saas.models.flows-actors.agent-invocation facet:kind:api facet:audience:app-developer\n *\n * One call to one agent — the envelope you build and hand to\n * `AgentsBackendService.invokeAgent`, and the SAME shape you get back with\n * `output` and `executionContext` filled in.\n *\n * What you supply:\n * - `agentRef` — the `ref` of a registered agent (unknown ref throws).\n * - `input` — the per-call task. `{ prompt }` for text; add `{ schema }` (a Zod\n * schema) for `GENERATE_STRUCTURED`, which REQUIRES it. Anything else you put\n * here is JSON-serialized into the user prompt.\n * - `output` — an empty value of the expected shape (`{ text: '' }`,\n * `{ object: {} }`). It is a typing seed; the returned envelope replaces it.\n * - `initiator` / `invocationContext` / `artifactBindings` — `{}` / `[]` / `[]`\n * when you have nothing to correlate.\n *\n * What comes back: `output` normalized to the operation's shape, and\n * `executionContext` enriched with `executionTime`, `finishedAt`, and provider\n * `usage` (tokens) when the transport reports it.\n *\n * Import path: `@wildo-ai/saas-models`.\n */\nexport type FlowsActors_Agent_Invocation<\n InputSchema extends z.ZodSchema<any> = z.ZodSchema<any>,\n OutputSchema extends z.ZodSchema<any> = z.ZodSchema<any>,\n ContextSchema extends z.ZodSchema<any> = z.ZodSchema<any>,\n> = {\n _id?: string,\n agentRef: string,\n initiator: ExecutionContext_InitiatorIds,\n invocationContext : FlowsActors_Relationship[],\n\n input: z.infer<InputSchema>,\n output: z.infer<OutputSchema>,\n executionContext: z.infer<ContextSchema>,\n artifactBindings: {\n kind: FlowsActors_IO_PartKind,\n ref: string,\n }[],\n\n};\n/** @wildo_source:part:end saas.models.flows-actors.agent-invocation */\n"]}
|
|
1
|
+
{"version":3,"file":"agents.shared.schemas.js","sourceRoot":"","sources":["../../../src/flows-actors/agents.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,wBAAwB,EAGxB,0BAA0B,EAG1B,wBAAwB,EAExB,wBAAwB,GACzB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAG3E,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,OAAO,EAAE,wBAAwB,EAAE,MAAM,0DAA0D,CAAC;AAyCpG,MAAM,CAAN,IAAY,iCAGX;AAHD,WAAY,iCAAiC;IAC3C,0EAAqC,CAAA;IACrC,kFAA6C,CAAA;AAC/C,CAAC,EAHW,iCAAiC,KAAjC,iCAAiC,QAG5C;AAwDD;;;;GAIG;AACH,MAAM,UAAU,yBAAyB,CACvC,MAAuC;IAEvC,OAAO,MAAM,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,YAA0C,CAAC,CAAC;AAC/G,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,uBAAuB,CACrC,MAAuC;IAEvC,OAAO,MAAM,CAAC,MAAM,CAAC,wBAAwB,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,YAAwC,CAAC,CAAC;AAC3G,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,0BAA0B,CACxC,MAAuC;IAEvC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,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;QAC/C,8CAA8C;QAC9C,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;QACjD,uCAAuC;QACvC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACjC,CAAC,CAAC,QAAQ,EAAE;IAEb,sBAAsB;IACtB,oBAAoB;IACpB,sBAAsB;IAEtB,gDAAgD;IAChD,oBAAoB,EAAE,CAAC,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC,QAAQ,EAAE;IAEjE;;;OAGG;IACH,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC;QACjB,2DAA2D;QAC3D,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC9B,wCAAwC;QACxC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACnC,iCAAiC;QACjC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC7B,oDAAoD;QACpD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACjC,CAAC,CAAC,QAAQ,EAAE;CACd,CAAC,CAAC;AAiMH,uEAAuE","sourcesContent":["import {\n CodingAgent_OperationDefinitionBase,\n CodingAgent_OperationKey,\n CodingAgent_OperationModelConfiguration,\n ImageProvider_OperationDefinitionBase,\n ImageProvider_OperationKey,\n ImageProvider_OperationModelConfiguration,\n LLMProvider_OperationDefinitionBase,\n LLMProvider_OperationKey,\n LLMProvider_OperationModelConfiguration,\n LLMProvider_PromptFormat,\n} from \"@wildo-ai/external-connectors-models\";\nimport { FlowsActors_LeafElements_Configuration } from \"./flows-actors.configuration.shared.schemas\";\nimport { FlowsActors_IO_PartKind } from \"./flows-actors.io.shared.schemas\";\nimport { ExecutionContext_InitiatorIds } from \"../runtime/execution-context.shared.schemas\";\nimport { FlowActorSystem_Kind } from \"./flows-actors.system.shared.schemas\";\nimport z from \"zod\";\nimport { FlowsActors_Relationship } from \"./flows-actors.commons.shared.schemas\";\nimport { AppsBlueprint_FileFormat } from \"./apps-blueprint/artifacts.apps-blueprint.shared.schemas\";\n\n\n\n//===============================================================\n// FlowsActors_Agent\n// --------\n// FlowsActors_Agents are AI-powered entities that execute agentic steps within\n// flows and actors. They encapsulate LLM configurations, skills,\n// and system prompts, enabling intelligent decision-making and\n// content generation. FlowsActors_Agents can be scoped to different levels\n// (platform, application, organization, user) for access control.\n//===============================================================\n\n\n//===============================================================\n// FlowsActors_Agent execution configuration\n// Keeps semantic LLM model config while allowing transport selection\n//===============================================================\n\n/** @wildo_source:part:start saas.models.flows-actors.agent-configuration facet:kind:api facet:audience:app-developer\n *\n * Agent execution settings that stay stable across transport changes.\n *\n * `providerRef` and `model` still come from the semantic LLM configuration,\n * while `executionProfileRef` selects one transport/runtime profile under the\n * provider's `AGENT_CLIENT_PROTOCOL` transport when execution should not use the default\n * API-backed path.\n */\nexport type FlowsActors_Agent_ExecutionConfiguration = LLMProvider_OperationModelConfiguration & {\n executionProfileRef?: string;\n /** Refuse provider fan-out when one budget reservation authorizes exactly one physical model call. */\n structuredGenerationExecutionMode?: StructuredGenerationExecutionMode;\n /**\n * Immutable schema-shape ceiling used by both pre-admission planning and the physical structured-output executor.\n * SINGLE_CALL_REQUIRED agents must declare this value so a provider configuration override cannot silently change\n * the number of calls after one budget reservation has been admitted.\n */\n maximumStructuredOutputLeafFields?: number;\n};\n\nexport enum StructuredGenerationExecutionMode {\n CHUNKING_ALLOWED = 'CHUNKING_ALLOWED',\n SINGLE_CALL_REQUIRED = 'SINGLE_CALL_REQUIRED',\n}\n\n/**\n * The LLM/text execution arm of an agent config — the original shape,\n * unchanged. Its `operationKey` is an `LLMProvider_OperationKey`, which is\n * what discriminates this arm from the image arm below (the two operation-key\n * enums are disjoint, so TypeScript narrows the union by `operationKey`).\n * Produces the TEXT / STRUCTURED modality; the executor routes it to\n * `LLM_PROVIDER`.\n */\nexport type FlowsActors_Agent_LLMConfiguration = FlowsActors_LeafElements_Configuration & FlowsActors_Agent_ExecutionConfiguration & {\n operationKey: LLMProvider_OperationKey,\n seed?: number, // Random seed for deterministic output\n};\n\n/**\n * The IMAGE execution arm of an agent config. Carries image-generation\n * parameters (`size` / `quality` / `background` / …) instead of LLM sampling,\n * and an `ImageProvider_OperationKey`. Produces the IMAGE modality; the\n * executor routes it to `IMAGE_PROVIDER`. (AUDIO / VIDEO arms are reserved —\n * their config types land when those transports are wired.)\n */\nexport type FlowsActors_Agent_ImageConfiguration = FlowsActors_LeafElements_Configuration & ImageProvider_OperationModelConfiguration & {\n operationKey: ImageProvider_OperationKey,\n executionProfileRef?: string,\n};\n\n/**\n * The CODING execution arm of an agent config. Carries a workspace-mutating\n * agent reached over the Agent Client Protocol, and a `CodingAgent_OperationKey`.\n * Produces no artifact modality at all — its product is a CHANGED WORKSPACE,\n * which is why it sits on this axis rather than beside TEXT and IMAGE as\n * another thing to generate.\n *\n * `executionProfileRef` is REQUIRED here, unlike every other arm. A coding\n * agent cannot fall back to a default API-backed path: there is no such path,\n * and the profile is where the environment gate, the permission ceiling and the\n * host-configuration posture live. An agent that could omit it would be an\n * agent whose authority was unstated.\n */\nexport type FlowsActors_Agent_CodingConfiguration = FlowsActors_LeafElements_Configuration & CodingAgent_OperationModelConfiguration & {\n operationKey: CodingAgent_OperationKey,\n executionProfileRef: string,\n};\n\n/**\n * Agent execution config, discriminated by `operationKey` along the artifact\n * MODALITY axis. One agent concept; the arm selects the transport family.\n * Narrow with {@link isImageAgentConfiguration} or\n * {@link isCodingAgentConfiguration} before reading arm-specific fields.\n */\nexport type FlowsActors_Agent_Configuration =\n | FlowsActors_Agent_LLMConfiguration\n | FlowsActors_Agent_ImageConfiguration\n | FlowsActors_Agent_CodingConfiguration;\n\n/**\n * Narrows an agent config to its IMAGE arm. The two `operationKey` enums are\n * disjoint, so membership in `ImageProvider_OperationKey` is a sound\n * discriminant.\n */\nexport function isImageAgentConfiguration(\n config: FlowsActors_Agent_Configuration,\n): config is FlowsActors_Agent_ImageConfiguration {\n return Object.values(ImageProvider_OperationKey).includes(config.operationKey as ImageProvider_OperationKey);\n}\n\n/**\n * Narrows an agent config to its LLM/text arm.\n *\n * Exists so consumers can narrow POSITIVELY. Writing `!isImageAgentConfiguration(config)`\n * to mean \"this is the LLM arm\" was correct only while the union had exactly two\n * members: the moment a third arm landed, that negation silently widened to\n * include it and the compiler reported a missing property somewhere else\n * entirely. A positive guard cannot absorb a future arm by accident.\n */\nexport function isLLMAgentConfiguration(\n config: FlowsActors_Agent_Configuration,\n): config is FlowsActors_Agent_LLMConfiguration {\n return Object.values(LLMProvider_OperationKey).includes(config.operationKey as LLMProvider_OperationKey);\n}\n\n/**\n * Narrows an agent config to its CODING arm. The operation-key enums are\n * pairwise disjoint, so membership in `CodingAgent_OperationKey` is a sound\n * discriminant — the same argument the image guard rests on.\n */\nexport function isCodingAgentConfiguration(\n config: FlowsActors_Agent_Configuration,\n): config is FlowsActors_Agent_CodingConfiguration {\n return Object.values(CodingAgent_OperationKey).includes(config.operationKey as CodingAgent_OperationKey);\n}\n/** @wildo_source:part:end saas.models.flows-actors.agent-configuration */\n\n\n\n\n/** @wildo_source:part:start saas.models.flows-actors.agent-definition facet:kind:api facet:audience:app-developer\n *\n * Agent lifecycle status. Only `ACTIVE` agents are invocable — invoking an\n * `INACTIVE` / `DEPRECATED` agent is refused at the call, not at registration,\n * so this is the switch for retiring an agent without deleting its definition\n * (and without breaking the refs that still name it).\n */\nexport enum FlowsActors_Agent_Status {\n ACTIVE = \"active\",\n INACTIVE = \"inactive\",\n DEPRECATED = \"deprecated\",\n}\n/** @wildo_source:part:end saas.models.flows-actors.agent-definition */\n\n/** @wildo_source:part:start saas.models.flows-actors.agent-prompt-spec facet:kind:api facet:audience:app-developer\n *\n * What KIND of work the agent does. The prompt compiler turns this into the\n * agent's baseline behavioral instructions before your own `instructions[]` are\n * appended — so it is a real behavioral input, not a label. Pick the one that\n * matches the job: `GENERATION` (write something new), `ANALYSIS` (read and\n * report), `TRANSFORMATION` (reshape given input), `DECISION` (choose/judge),\n * `CHAT` (multi-turn conversation — see the chat-assistant skill), `CUSTOM`\n * (none of the baselines fit).\n */\nexport enum FlowsActors_Agent_Skill_Type {\n GENERATION = \"generation\",\n ANALYSIS = \"analysis\",\n TRANSFORMATION = \"transformation\",\n DECISION = \"decision\",\n CHAT = \"chat\",\n CUSTOM = \"custom\",\n}\n/** @wildo_source:part:end saas.models.flows-actors.agent-prompt-spec */\n\n\n\n\n//===============================================================\n// FlowsActors_Agent Style Preferences\n//===============================================================\n\nexport enum FlowsActors_Agent_Verbosity {\n LOW = \"low\",\n MEDIUM = \"medium\",\n HIGH = \"high\",\n}\n\nexport enum FlowsActors_Agent_Tone {\n NEUTRAL = \"neutral\",\n CASUAL = \"casual\",\n FORMAL = \"formal\",\n TECHNICAL = \"technical\",\n}\n\n\n//===============================================================\n// FlowsActors_Agent Constraint Types (Task 1)\n// For prompt-level prohibitions with precedence + violation handling\n//===============================================================\n\nexport enum FlowsActors_Agent_ConstraintType {\n SECURITY = \"security\", // Never reveal API keys, never execute arbitrary code\n SAFETY = \"safety\", // Refuse harmful requests\n PRIVACY = \"privacy\", // Handle PII appropriately\n SCOPE = \"scope\", // Stay within task boundaries\n COMPLIANCE = \"compliance\", // Regulatory constraints\n}\n\n\n//===============================================================\n// FlowsActors_Agent Constraint Schema (Task 2)\n//===============================================================\n\nexport const FlowsActors_Agent_ConstraintSchema = z.object({\n /** Unique constraint identifier */\n id: z.string(),\n /** The constraint text (prohibition) */\n text: z.string(),\n /** Constraint category */\n type: z.enum(FlowsActors_Agent_ConstraintType),\n /** Action on violation */\n onViolation: z.enum([\"refuse\", \"warn\", \"log\"]).default(\"refuse\"),\n});\n\nexport type FlowsActors_Agent_Constraint = z.infer<typeof FlowsActors_Agent_ConstraintSchema>;\n\n\n//===============================================================\n// FlowsActors_Agent Output Specification Schema (Task 3)\n// REUSES: FlowsActors_IO_PartKind, AppsBlueprint_FileFormat, FlowsActors_Agent_Verbosity\n//===============================================================\n\nexport const FlowsActors_Agent_OutputSpecSchema = z.object({\n /**\n * Output type classification\n * REUSES: FlowsActors_IO_PartKind (TEXT, FILE, RAW_DATA, STRUCTURED)\n */\n type: z.enum(FlowsActors_IO_PartKind).optional(),\n\n /**\n * File format hint (for FILE type or text formatting guidance)\n * REUSES: AppsBlueprint_FileFormat (TEXT, TYPESCRIPT, MARKDOWN, JSON, YAML, etc.)\n */\n fileFormat: z.enum(AppsBlueprint_FileFormat).optional(),\n\n /**\n * Length guidance - overrides style.verbosity for output specifically\n * REUSES: FlowsActors_Agent_Verbosity (LOW=concise, MEDIUM=moderate, HIGH=detailed)\n */\n lengthGuidance: z.enum(FlowsActors_Agent_Verbosity).optional(),\n\n /** Include reasoning/explanation in output */\n includeReasoning: z.boolean().optional(),\n\n /** Required sections in output (e.g., [\"summary\", \"recommendations\"]) */\n requiredSections: z.array(z.string()).optional(),\n});\n\nexport type FlowsActors_Agent_OutputSpec = z.infer<typeof FlowsActors_Agent_OutputSpecSchema>;\n\n\n//===============================================================\n// FlowsActors_Agent Uncertainty Policy (Task 4)\n// How to handle ambiguity in agent execution\n//===============================================================\n\nexport enum FlowsActors_Agent_UncertaintyPolicy {\n ASK = \"ask\", // Ask for clarification\n INFER = \"infer\", // Make reasonable inferences\n CONSERVATIVE = \"conservative\", // Choose safest option\n FAIL = \"fail\", // Return error on uncertainty\n}\n\n\n//===============================================================\n// FlowsActors_Agent Uncertainty Schema (Task 5)\n//===============================================================\n\nexport const FlowsActors_Agent_UncertaintySchema = z.object({\n /** Policy when agent is uncertain */\n policy: z.enum(FlowsActors_Agent_UncertaintyPolicy).default(FlowsActors_Agent_UncertaintyPolicy.ASK),\n /** Confidence threshold (0-1) below which to apply policy */\n confidenceThreshold: z.number().min(0).max(1).optional(),\n});\n\nexport type FlowsActors_Agent_Uncertainty = z.infer<typeof FlowsActors_Agent_UncertaintySchema>;\n\n\n//===============================================================\n// FlowsActors_Agent_PromptSpec (Clean Implementation)\n// Complete prompt specification - required on all agents\n// Replaces legacy skill.role/persona approach\n//===============================================================\n\n/** @wildo_source:part:start saas.models.flows-actors.agent-prompt-spec facet:kind:api facet:audience:app-developer\n *\n * The agent's prompt, authored as STRUCTURE rather than one prose blob. The\n * prompt compiler renders these fields into the provider's preferred format\n * (XML boundaries for Claude, message roles for OpenAI, …), so you never\n * hand-format a system prompt or branch on the provider yourself.\n *\n * `role` + `skillType` are the only required fields — start there and add the\n * rest as the behavior needs them. Precedence when the model must choose:\n * `constraints` (prohibitions — highest) > `instructions` (hard rules) >\n * `hints` (soft preferences). Keep the per-call task in the invocation's\n * `input.prompt`; keep everything durable about the agent here.\n */\nexport const FlowsActors_Agent_PromptSpecSchema = z.object({\n //====================\n // IDENTITY (migrated from legacy skill)\n //====================\n\n /**\n * Agent's role description\n * Explains what this agent does and its primary function\n */\n role: z.string(),\n\n /**\n * Agent's persona/character\n * Defines the agent's personality, expertise, and communication approach\n */\n persona: z.string().optional(),\n\n /**\n * Agent skill type - determines baseline behavioral instructions\n */\n skillType: z.enum(FlowsActors_Agent_Skill_Type),\n\n //====================\n // CONSTRAINTS (highest precedence)\n //====================\n\n /**\n * Constraints - HIGHEST precedence, never violate\n * Different from instructions: constraints are prohibitions, instructions are rules\n */\n constraints: z.array(FlowsActors_Agent_ConstraintSchema).optional(),\n\n //====================\n // GOAL\n //====================\n\n /**\n * Goal statement - what the agent aims to achieve\n * Single sentence describing success criteria\n */\n goal: z.string().optional(),\n\n //====================\n // OUTPUT SPECIFICATION\n //====================\n\n /**\n * Output specification - format and structure requirements\n */\n output: FlowsActors_Agent_OutputSpecSchema.optional(),\n\n //====================\n // INSTRUCTIONS & HINTS\n //====================\n\n /** Hard rules - behavioral instructions (in addition to skill type baseline) */\n instructions: z.array(z.string()).default([]),\n\n /** Soft hints - preferences, can be overridden by task constraints */\n hints: z.array(z.string()).optional(),\n\n //====================\n // UNCERTAINTY HANDLING\n //====================\n\n /**\n * Uncertainty handling policy\n */\n uncertainty: FlowsActors_Agent_UncertaintySchema.optional(),\n\n //====================\n // SCOPE BOUNDARIES\n //====================\n\n /**\n * Scope boundaries - explicit \"don't do\" statements\n * Helps prevent scope creep\n */\n outOfScope: z.array(z.string()).optional(),\n\n //====================\n // EXAMPLES (few-shot)\n //====================\n\n /**\n * Examples - few-shot examples for better output quality\n * Format: input/output pairs with optional explanation\n */\n examples: z.array(z.object({\n input: z.string(),\n output: z.string(),\n explanation: z.string().optional(),\n })).optional(),\n\n //====================\n // STYLE\n //====================\n\n /** Style preferences */\n style: z.object({\n verbosity: z.enum(FlowsActors_Agent_Verbosity).optional(),\n tone: z.enum(FlowsActors_Agent_Tone).optional(),\n }).optional(),\n\n //====================\n // CONTEXT CURATION\n //====================\n\n /** Context curation settings */\n curation: z.object({\n /** Maximum context items to include */\n maxItems: z.number().min(1).max(100).optional(),\n /** Minimum relevance score threshold (0-1) */\n minRelevance: z.number().min(0).max(1).optional(),\n /** Maximum total tokens for context */\n maxTokens: z.number().optional(),\n }).optional(),\n\n //====================\n // FORMAT & METADATA\n //====================\n\n /** Override provider's default prompt format */\n promptFormatOverride: z.enum(LLMProvider_PromptFormat).optional(),\n\n /**\n * Prompt specification metadata for versioning and tracking\n * Helps track prompt iterations and authorship for 200+ agents\n */\n metadata: z.object({\n /** Semantic version of this prompt spec (e.g., \"1.2.0\") */\n version: z.string().optional(),\n /** Last modification date (ISO 8601) */\n lastModified: z.string().optional(),\n /** Author or team responsible */\n author: z.string().optional(),\n /** Brief changelog or reason for current version */\n changelog: z.string().optional(),\n }).optional(),\n});\n\nexport type FlowsActors_Agent_PromptSpec = z.infer<typeof FlowsActors_Agent_PromptSpecSchema>;\n/** @wildo_source:part:end saas.models.flows-actors.agent-prompt-spec */\n\n\n//===============================================================\n// FlowsActors_Agent Schema (Clean Implementation)\n// FlowsActors_Agents are AI-powered entities with specific roles and capabilities\n// They are called by Flow Steps (AGENT_CALL) and Actors (AGENTIC mode)\n//===============================================================\n\n/** @wildo_source:part:start saas.models.flows-actors.agent-definition facet:kind:api facet:audience:app-developer\n *\n * A callable AI unit. This is the whole authoring surface for \"give my app an\n * LLM capability\": author one of these, register it on your backend module's\n * `flowsActors.agents`, then invoke it by `ref`.\n *\n * The definition is DECLARATIVE and durable — provider, model, operation, and\n * prompt live here; the per-call task lives in the invocation. Nothing about\n * transport, retries, rate limiting, usage accounting, or tracing is yours to\n * write: the engine owns all of it once the agent is registered.\n *\n * Import path: `@wildo-ai/saas-models`.\n */\nexport type FlowsActors_Agent = {\n //====================\n // IDENTITY\n //====================\n\n /** Unique agent reference for flow/actor calls */\n ref: string,\n\n /** Human-readable display name */\n displayName: string,\n\n /** Agent lifecycle status */\n status: FlowsActors_Agent_Status,\n\n //====================\n // EXECUTION CONFIGURATION (modality-discriminated)\n //====================\n\n /** Provider/model config, discriminated by modality (LLM/text | image | coding). */\n config: FlowsActors_Agent_Configuration,\n\n /** Operation definition (input/output schemas, etc.), per transport family. */\n operationDefinition: LLMProvider_OperationDefinitionBase | ImageProvider_OperationDefinitionBase | CodingAgent_OperationDefinitionBase,\n\n //====================\n // ARTIFACT MODALITY (optional — explicit override; else derived from config)\n //====================\n\n /**\n * The modality this agent PRODUCES, as documentation.\n *\n * Declarative only: no runtime path reads it. Dispatch is decided entirely by\n * the arm of `config`, so setting or omitting this field changes nothing about\n * which provider protocol the agent reaches. Set it to make a multimodal\n * agent's output self-describing to a reader.\n */\n outputModality?: FlowsActors_IO_PartKind,\n\n /** The modalities this agent CONSUMES (e.g. `[TEXT]` for text-to-image). */\n inputModalities?: FlowsActors_IO_PartKind[],\n\n //====================\n // PROMPT SPECIFICATION (required)\n //====================\n\n /**\n * Complete prompt specification\n * Defines role, persona, constraints, instructions, output format, etc.\n */\n promptSpec: FlowsActors_Agent_PromptSpec,\n\n //====================\n // CAPABILITIES\n //====================\n\n /** Agent capabilities (tools, etc.) */\n capabilities?: {\n tools?: {\n /**\n * References to callable functions.\n *\n * RESOLVED: `AgentsBackendService` looks each ref up through\n * `flowsActorsRegistry.getFunctionTool(ref)` and hands the model a callable tool. An unknown\n * ref is skipped with a debug line rather than failing the turn.\n */\n functionRefs: string[],\n /**\n * References to MCP servers the agent may reach.\n *\n * ## CHECKED, NOT YET CALLABLE (#491)\n *\n * Each ref must name an MCP server the APPLICATION declared (`FlowsActors_McpServer`), and\n * `FlowsActorsRegistryService` REFUSES at initialization an agent whose refs name none. That\n * closes the shape this field was in: it used to resolve against nothing, so a shipped catalog\n * carried seven refs (`filesystem-mcp`, `git-mcp`, `browser-mcp`, `mongodb-mcp`, …) that named\n * no server anywhere while the agent card rendered them as capabilities — a claim shown to a\n * user about a reach the agent did not have. The catalog is gone and the card no longer\n * renders these.\n *\n * The check is deliberately stricter than `functionRefs`, which skip an unknown ref with a\n * debug line: an unknown `functionRef` costs an agent one tool, whereas these were presented\n * as a capability, and a refusal makes the old state unreachable rather than fixed once.\n *\n * ## What is still missing before a ref becomes a CALLABLE tool\n *\n * The declaration is checkable; the call is not yet made. `AgentsBackendService` resolves\n * `functionRefs` and nothing else, so an agent carrying `mcpRefs` still has exactly the reach\n * its `functionRefs` give it.\n *\n * 1. **An MCP client.** `saas-backend-lib/src/mcp/` is the SERVER Wildo exposes to external MCP\n * clients. There is no client, and no MCP client SDK in any manifest.\n * 2. ~~A server registry~~ — BUILT. `registry.mcpServers`, declared per application.\n * 3. **Credential resolution at call time.** Decided 2026-09-09: the call carries the acting\n * user's own delegated provider credential where present and the organization's connection\n * otherwise, from `userProviderCredentials` / `organizationProviderCredentials` rather than\n * a store invented for MCP. `FlowsActors_McpCredentialSubject` records that choice per\n * server; nothing reads it yet.\n *\n * Also decided, and not yet implemented: an unreachable server contributes NO tools to a turn\n * rather than failing it — tools are discovered at turn start — and a call that fails mid-turn\n * returns a typed error the agent can reason about. Both emit an audit event, because a server\n * quietly unreachable for a week must be visible as that rather than as an agent that became\n * less capable for no stated reason.\n *\n * Restoring these to any surface that presents them as a capability belongs in the same change\n * that makes them callable.\n */\n mcpRefs: string[],\n },\n },\n\n //====================\n // VERSIONING\n //====================\n\n /** Agent definition version */\n version?: string,\n\n /** Creation timestamp (ISO 8601) */\n createdAt: string,\n\n /** Last update timestamp (ISO 8601) */\n updatedAt?: string,\n};\n/** @wildo_source:part:end saas.models.flows-actors.agent-definition */\n\n\n/** @wildo_source:part:start saas.models.flows-actors.agent-invocation facet:kind:api facet:audience:app-developer\n *\n * One call to one agent — the envelope you build and hand to\n * `AgentsBackendService.invokeAgent`, and the SAME shape you get back with\n * `output` and `executionContext` filled in.\n *\n * What you supply:\n * - `agentRef` — the `ref` of a registered agent (unknown ref throws).\n * - `input` — the per-call task. `{ prompt }` for text; add `{ schema }` (a Zod\n * schema) for `GENERATE_STRUCTURED`, which REQUIRES it. Anything else you put\n * here is JSON-serialized into the user prompt.\n * - `output` — an empty value of the expected shape (`{ text: '' }`,\n * `{ object: {} }`). It is a typing seed; the returned envelope replaces it.\n * - `initiator` / `invocationContext` / `artifactBindings` — `{}` / `[]` / `[]`\n * when you have nothing to correlate.\n *\n * What comes back: `output` normalized to the operation's shape, and\n * `executionContext` enriched with `executionTime`, `finishedAt`, and provider\n * `usage` (tokens) when the transport reports it.\n *\n * Import path: `@wildo-ai/saas-models`.\n */\nexport type FlowsActors_Agent_Invocation<\n InputSchema extends z.ZodSchema<any> = z.ZodSchema<any>,\n OutputSchema extends z.ZodSchema<any> = z.ZodSchema<any>,\n ContextSchema extends z.ZodSchema<any> = z.ZodSchema<any>,\n> = {\n _id?: string,\n agentRef: string,\n initiator: ExecutionContext_InitiatorIds,\n invocationContext : FlowsActors_Relationship[],\n\n input: z.infer<InputSchema>,\n output: z.infer<OutputSchema>,\n executionContext: z.infer<ContextSchema>,\n artifactBindings: {\n kind: FlowsActors_IO_PartKind,\n ref: string,\n }[],\n\n};\n/** @wildo_source:part:end saas.models.flows-actors.agent-invocation */\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apps-blueprint.shared.schemas.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"apps-blueprint.shared.schemas.d.ts","sourceRoot":"","sources":["../../../../src/flows-actors/apps-blueprint/apps-blueprint.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,wBAAwB,EAAE,iCAAiC,EAAE,qCAAqC,EAAE,MAAM,2CAA2C,CAAC;AAI/J,cAAc,8CAA8C,CAAC;AAM7D,oBAAY,yBAAyB;IACnC,aAAa,kBAAkB;IAE/B,mBAAmB,wBAAwB;IAC3C,sBAAsB,2BAA2B;IACjD,wBAAwB,6BAA6B;IACrD,wBAAwB,6BAA6B;IACrD,8BAA8B,mCAAmC;IACjE,gCAAgC,qCAAqC;IACrE,gCAAgC,qCAAqC;IACrE,kBAAkB,uBAAuB;CAC1C;AAGD,eAAO,MAAM,uBAAuB;;;;;;;;;CAS1B,CAAC;AAUX,eAAO,MAAM,yCAAyC;;;;;;;;;;;;iBAOpD,CAAC;AAEH,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yCAAyC,CAAC,CAAC;AAE5G,eAAO,MAAM,0CAA0C;;;;;;iBAMrD,CAAC;AACH,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0CAA0C,CAAC,CAAC;AAE9G,eAAO,MAAM,6CAA6C;;;;;;;;;iBAKxD,CAAC;AAEH,MAAM,MAAM,uCAAuC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6CAA6C,CAAC,CAAC;AAEpH,eAAO,MAAM,8CAA8C;;;;;iBAKzD,CAAC;AACH,MAAM,MAAM,wCAAwC,GAAG,CAAC,C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AAQ/F,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqBhD,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC"}
|
package/dist/esm/flows-actors/apps-blueprint/artifacts.apps-blueprint.shared.schemas.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifacts.apps-blueprint.shared.schemas.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"artifacts.apps-blueprint.shared.schemas.d.ts","sourceRoot":"","sources":["../../../../src/flows-actors/apps-blueprint/artifacts.apps-blueprint.shared.schemas.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,mDAAmD,CAAC;AACjF,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAK5E,oBAAY,mCAAmC;IAC7C,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAGD,oBAAY,wBAAwB;IAClC,IAAI,SAAS;IACb,UAAU,eAAe;IACzB,cAAc,qBAAqB;IACnC,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,IAAI,SAAS;CACd;AAED,oBAAY,uBAAuB;IACjC,UAAU,eAAe;IACzB,QAAQ,kBAAkB;IAC1B,IAAI,qBAAqB;IACzB,UAAU,2BAA2B;IACrC,cAAc,+BAA+B;IAC7C,IAAI,qBAAqB;CAC1B;AACD;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,EAAE,MAAM,CAAC,wBAAwB,EAAE,uBAAuB,CAO7F,CAAC;AAEX;;;GAGG;AACH,wBAAgB,kCAAkC,CAAC,MAAM,EAAE,wBAAwB,GAAG,uBAAuB,CAE5G;AAED;;;;GAIG;AACH,eAAO,MAAM,qCAAqC,EAAE,MAAM,CAAC,wBAAwB,EAAE,MAAM,CAOjF,CAAC;AAEX;;;GAGG;A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CAAC,EAAQ,mBAAmB,GAAG,2CAA2C,CAAC;IAChJ,CAAC,iCAAiC,CAAC,yBAAyB,CAAC,EAAiB,mBAAmB,GAAG,0DAA0D,CAAC;IAC/J,CAAC,iCAAiC,CAAC,iCAAiC,CAAC,EAAS,mBAAmB,GAAG,gEAAgE,CAAC;IACrK,CAAC,iCAAiC,CAAC,mCAAmC,CAAC,EAAO,mBAAmB,GAAG,2DAA2D,CAAC;CACjK,CAAC;AAEF,eAAO,MAAM,aAAa,0EAGhB,CAAC;AAEX,MAAM,MAAM,yBAAyB,GAAG,uBAAuB,GAAG,iCAAiC,CAAC;AAKpG,MAAM,MAAM,+BAA+B,GACvC;IAAE,IAAI,EAAE,uBAAuB,CAAC;IAAC,MAAM,EAAE,wBAAwB,CAAA;CAAE,GACnE;IAAE,IAAI,EAAE,iCAAiC,CAAA;CAAE,CAAC;AAMhD,oBAAY,4CAA4C;IACtD,QAAQ,aAAa;IACrB,IAAI,SAAS;CACd;AAED,oBAAY,sDAAsD;IAChE,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;CACd;AAED,oBAAY,iDAAiD;IAC3D,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,UAAU,cAAc;IACxB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED,oBAAY,qDAAqD;IAC/D,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,UAAU,cAAc;IACxB,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB"}
|
|
@@ -399,7 +399,6 @@ declare const _DeliberationRecordSchema: z.ZodObject<{
|
|
|
399
399
|
}, z.core.$strip>>;
|
|
400
400
|
roundBudget: z.ZodNumber;
|
|
401
401
|
status: z.ZodEnum<typeof DeliberationStatus>;
|
|
402
|
-
charterInputsDigests: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
403
402
|
humanDecision: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
404
403
|
decision: z.ZodString;
|
|
405
404
|
decidedAt: z.ZodISODateTime;
|
|
@@ -593,8 +592,6 @@ export interface DeliberationPlan {
|
|
|
593
592
|
roundBudget: number;
|
|
594
593
|
/** Top-K candidates revised per round (RF-5 cost funnel). */
|
|
595
594
|
shortlistSize: number;
|
|
596
|
-
/** Participating charters' inputsDigests (staleness audit stamps). */
|
|
597
|
-
charterInputsDigests: Record<string, string>;
|
|
598
595
|
}
|
|
599
596
|
/**
|
|
600
597
|
* Result of the fail-closed criterion-ref validation of one verdict
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deliberation.shared.schemas.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"deliberation.shared.schemas.d.ts","sourceRoot":"","sources":["../../../src/flows-actors/deliberation.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAmC3E;;;;;;;;;;;;;GAaG;AACH,oBAAY,gBAAgB;IAC1B,8DAA8D;IAC9D,iBAAiB,sBAAsB;IACvC,yEAAyE;IACzE,cAAc,mBAAmB;IACjC,0EAA0E;IAC1E,mBAAmB,wBAAwB;IAC3C,uEAAuE;IACvE,cAAc,mBAAmB;IACjC;;;;;;;;;;;;OAYG;IACH,wBAAwB,6BAA6B;CACtD;AAED;;;;GAIG;AACH,oBAAY,0BAA0B;IACpC,4DAA4D;IAC5D,MAAM,WAAW;IACjB,kEAAkE;IAClE,MAAM,WAAW;IACjB,uEAAuE;IACvE,MAAM,WAAW;CAClB;AAED,uDAAuD;AACvD,oBAAY,+BAA+B;IACzC,mDAAmD;IACnD,QAAQ,aAAa;IACrB,mEAAmE;IACnE,OAAO,YAAY;CACpB;AAED,gDAAgD;AAChD,oBAAY,kBAAkB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AAa,GACrB,8BAA8B,CAmChC;AAED;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,aAAa,GACrB,MAAM,CAqBR"}
|
|
@@ -430,11 +430,6 @@ const _DeliberationRecordSchema = z.object({
|
|
|
430
430
|
/** Max rounds before the coordinator must synthesize (cost bound). */
|
|
431
431
|
roundBudget: z.number().int().min(1),
|
|
432
432
|
status: z.enum(DeliberationStatus),
|
|
433
|
-
/**
|
|
434
|
-
* The charters' `inputsDigest`s at deliberation time — lets an audit
|
|
435
|
-
* see a decision was made under a stale persona (keyed by charterRef).
|
|
436
|
-
*/
|
|
437
|
-
charterInputsDigests: z.record(z.string(), z.string()).default({}),
|
|
438
433
|
/** The human authority's decision; null until the human acts. */
|
|
439
434
|
humanDecision: _DeliberationHumanDecisionSchema.nullable().default(null),
|
|
440
435
|
/** ISO-8601 timestamps. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deliberation.shared.schemas.js","sourceRoot":"","sources":["../../../../src/flows-actors/deliberation.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3E,iEAAiE;AACjE,kDAAkD;AAClD,+DAA+D;AAC/D,oEAAoE;AACpE,uEAAuE;AACvE,qEAAqE;AACrE,qEAAqE;AACrE,WAAW;AACX,EAAE;AACF,mDAAmD;AACnD,yEAAyE;AACzE,qEAAqE;AACrE,sEAAsE;AACtE,oEAAoE;AACpE,YAAY;AACZ,qEAAqE;AACrE,4DAA4D;AAC5D,wEAAwE;AACxE,sEAAsE;AACtE,qEAAqE;AACrE,EAAE;AACF,sEAAsE;AACtE,kEAAkE;AAClE,yEAAyE;AACzE,wEAAwE;AACxE,yEAAyE;AACzE,oEAAoE;AACpE,wEAAwE;AACxE,iEAAiE;AACjE,uDAAuD;AACvD,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IAAI,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC7F,IAAI,WAAW,GAAG,CAAC,CAAC;IACpB,IAAI,SAAS,GAAG,CAAC,CAAC;IAClB,KAAK,MAAM,SAAS,IAAI,MAAM,CAAC,QAAQ,EAAE,CAAC;QACxC,uDAAuD;QACvD,WAAW,IAAI,SAAS,CAAC,MAAM,GAAI,UAAU,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAY,CAAC;QAC5E,SAAS,IAAI,SAAS,CAAC,MAAM,CAAC;IAChC,CAAC;IACD,OAAO,WAAW,GAAG,SAAS,CAAC;AACjC,CAAC","sourcesContent":["import { z } from \"zod\";\n\nimport { FlowsActors_IO_PartKind } from \"./flows-actors.io.shared.schemas\";\n\n//===============================================================\n// Expert-Persona Deliberation — shared contracts\n// ------------------------------------------------------------\n// The GENERIC vocabulary of the agentic deliberation system: narrow\n// expert personas (derived per-app from the specification tier) review\n// candidate work products against a DERIVED evaluation rubric across\n// bounded critique-revise rounds, a coordinator synthesizes, a human\n// decides.\n//\n// TIER SPLIT (dependency direction — do not blur):\n// - The DERIVED artifacts (`ExpertRoleTemplate`, `ExpertPersonaCharter`)\n// live in `@wildo-ai/saas-specifications` `_core/expert-personas/`\n// (spec tier — committed, human-reviewable). `saas-backend-lib` can\n// NEVER import them (specifications sits BELOW backend-lib in the\n// graph).\n// - THIS file is the runtime-visible half: the enums the spec family\n// imports (single-sourced here — `ExpertWorkDomain`), the\n// `RuntimeExpertProfile` projection the COMPANION maps a charter into\n// before handing it to engine machinery, and the rubric / verdict /\n// deliberation-record contracts the engine round loop operates on.\n//\n// KEY DESIGN DECISION (the anti-\"taste-as-code\" contract): evaluation\n// CRITERIA ARE DATA, not schema fields. The rubric is derived per\n// deliberation run by an expert persona and travels in the judge PROMPT;\n// the verdict schema below stays FIXED and GENERIC (criterion-ref-keyed\n// score array), so one schema serves every work domain and every derived\n// rubric while remaining strict-structured-output compatible (flat,\n// all-required, no dynamic keys). Weighted aggregation is DETERMINISTIC\n// CODE (`aggregateWeightedScore`) — never model arithmetic — and\n// hallucinated criterion refs are rejected fail-closed\n// (`validateVerdictCriterionRefs`).\n//===============================================================\n\n/**\n * The narrow work-product domain an expert persona is specialized on —\n * the ROUTING AXIS of the narrowness principle. An expert declares a\n * small closed set of domains; the deliberation orchestrator REFUSES to\n * invoke an expert outside its declared domains (fail-closed).\n *\n * Deliberate design: agent personas are NARROW, unlike human employees\n * who wear several hats. A review needing three angles convenes three\n * experts + a coordinator, never one generalist.\n *\n * Single-sourced HERE (the spec-tier `expert-personas` family imports\n * this enum) so the vocabulary cannot drift across tiers. Extend\n * per-capability as new deliberation domains ship — never speculatively.\n */\nexport enum ExpertWorkDomain {\n /** Visual brand marks: logo symbols, icons, brand imagery. */\n VISUAL_BRAND_MARK = \"visual_brand_mark\",\n /** Marketing / product copy: website sections, email prose, taglines. */\n MARKETING_COPY = \"marketing_copy\",\n /** UI/design-system coherence: tokens, palette, typography discipline. */\n UI_DESIGN_COHERENCE = \"ui_design_coherence\",\n /** Brand strategy: positioning fit, differentiation, ICP resonance. */\n BRAND_STRATEGY = \"brand_strategy\",\n /**\n * Information architecture: WHERE a destination, operation or view belongs in\n * the application shell — surface assignment, grouping, ordering, findability.\n *\n * Distinct from {@link UI_DESIGN_COHERENCE}, which is tokens, palette and\n * typography discipline. A settings section can be perfectly on-palette and\n * still be in the wrong place; \"can a user find this, and does it sit with the\n * things it belongs with\" is a different question with a different expert.\n *\n * Added 2026-08-29, when placement became a deliberated decision rather than a\n * framework default — per this enum's rule, per-capability and never\n * speculatively.\n */\n INFORMATION_ARCHITECTURE = \"information_architecture\",\n}\n\n/**\n * A reviewer's headline recommendation for one candidate. Deliberately\n * the same three-state vocabulary as the interim brand accept judge —\n * accept as-is / fixable via revision / materially misses the brief.\n */\nexport enum DeliberationRecommendation {\n /** The candidate satisfies the rubric and can win as-is. */\n ACCEPT = \"accept\",\n /** Close, but has fixable concerns — revise before it can win. */\n REVISE = \"revise\",\n /** Materially misses the rubric — should not survive the shortlist. */\n REJECT = \"reject\",\n}\n\n/** How a candidate entered a round's candidate set. */\nexport enum DeliberationCandidateProvenance {\n /** Produced in round 1 from the creative brief. */\n ORIGINAL = \"original\",\n /** Produced by a critique-driven revision of a prior candidate. */\n REVISED = \"revised\",\n}\n\n/** Terminal + live states of a deliberation. */\nexport enum DeliberationStatus {\n /** Rounds are still executing. */\n RUNNING = \"running\",\n /** The coordinator judged the outcome converged before budget. */\n CONVERGED = \"converged\",\n /** The round budget was exhausted; synthesis used the last round. */\n BUDGET_EXHAUSTED = \"budget_exhausted\",\n /** The deliberation could not complete (provider/validation failure). */\n FAILED = \"failed\",\n /**\n * Every candidate was REJECTED by the panel. There is no winner, and that is a\n * RESULT — not a failure.\n *\n * Distinct from {@link FAILED}, which means the machinery could not complete;\n * here it completed and the answer is \"none of these\". Distinct from\n * {@link CONVERGED}, which asserts a winner. Collapsing rejection into either\n * would be the defect this state exists to remove: a coordinator asked to pick a\n * winner will pick one, so without a terminal rejection the least-bad candidate\n * of a uniformly rejected field lands carrying the panel's authority.\n *\n * A record in this state carries no `synthesis`. The caller decides what to do —\n * retry with a new brief, widen the candidate set, or surface the critiques —\n * because only the caller knows whether \"none of these\" is recoverable.\n */\n REJECTED = \"rejected\",\n}\n\n/**\n * The runtime projection of an `ExpertPersonaCharter` — everything the\n * engine deliberation machinery needs of a persona, WITHOUT importing the\n * spec tier (same pattern as the runtime brand-asset siblings). The\n * COMPANION (which imports both tiers) maps charter → profile when\n * composing a deliberation plan, and builds the expert's agent from it at\n * startup (fail-closed when the charter is missing/unaccepted).\n */\nconst _RuntimeExpertProfileSchema = z.object({\n /** The committed charter this profile projects (audit back-pointer). */\n charterRef: z.string().min(1),\n /** The framework role template the charter was derived from. */\n roleRef: z.string().min(1),\n /** The narrow domains this expert may produce briefs / reviews for. */\n workDomains: z.array(z.enum(ExpertWorkDomain)).min(1),\n /** The compiled app-specific persona prose (\"who I am for THIS app\"). */\n personaProse: z.string().min(1),\n /** Ordered priorities the persona judges by (highest first). */\n priorities: z.array(z.string().min(1)).min(1),\n /** Hard taboos — things this persona must never reward or produce. */\n taboos: z.array(z.string().min(1)).default([]),\n /**\n * What a top-tier candidate looks like for this app (rubric scale-anchor\n * seeds). Mirrors the charter's optional Lever-2 extension.\n */\n qualityBar: z.array(z.string().min(1)).optional(),\n /** The persona's ordered review checks (systematic judging method). */\n reviewProtocol: z.array(z.string().min(1)).optional(),\n});\nexport const RuntimeExpertProfileSchema: typeof _RuntimeExpertProfileSchema =\n _RuntimeExpertProfileSchema;\nexport type RuntimeExpertProfile = z.infer<typeof _RuntimeExpertProfileSchema>;\n\n/**\n * One derived evaluation criterion. `ref` is the join key verdicts score\n * against; `weight` feeds the DETERMINISTIC aggregation (never model\n * arithmetic); `scaleAnchors` pin what the scale ends MEAN so two\n * reviewers score commensurably.\n */\nconst _EvaluationCriterionSchema = z.object({\n /** Stable kebab-case key verdict scores reference (e.g. `favicon-legibility`). */\n ref: z.string().min(1),\n /** What is being evaluated, in one or two sentences. */\n description: z.string().min(1),\n /**\n * Relative importance, > 0 and FINITE. Normalization happens in\n * `aggregateWeightedScore` (weights need not sum to anything);\n * `.finite()` closes the Infinity/Infinity → NaN aggregate hole.\n */\n weight: z.number().positive().finite(),\n /** What the scale extremes mean — pins reviewer calibration. */\n scaleAnchors: z.object({\n /** What a 0 looks like for this criterion. */\n low: z.string().min(1),\n /** What a 100 looks like for this criterion. */\n high: z.string().min(1),\n }),\n});\nexport const EvaluationCriterionSchema: typeof _EvaluationCriterionSchema =\n _EvaluationCriterionSchema;\nexport type EvaluationCriterion = z.infer<typeof _EvaluationCriterionSchema>;\n\n/**\n * The DERIVED rubric a deliberation evaluates against. Derived ONCE at\n * deliberation start by the responsible expert persona (per-run — locked\n * decision), held CONSTANT across that deliberation's rounds (revise\n * targets must not move mid-discussion), and EMBEDDED in the\n * `DeliberationRecord` (auditability without a standalone artifact).\n * Never persisted as its own resource.\n */\nconst _EvaluationRubricSchema = z.object({\n /** The work domain this rubric evaluates. */\n workDomain: z.enum(ExpertWorkDomain),\n /** The charter of the expert who derived the rubric. */\n derivedFromCharterRef: z.string().min(1),\n /** The derived criteria (the DATA that replaces hardcoded score fields). */\n criteria: z.array(_EvaluationCriterionSchema).min(1),\n /** ISO-8601 derivation moment. */\n derivedAt: z.iso.datetime(),\n}).refine(\n (rubric) => new Set(rubric.criteria.map((criterion) => criterion.ref)).size === rubric.criteria.length,\n {\n // The rubric is LLM-DERIVED data — a model emitting the same ref twice\n // (with different weights) is a plausible output, and a duplicated ref\n // would silently DOUBLE-WEIGHT that criterion in the aggregate. Reject\n // at parse; `validateVerdictCriterionRefs` re-checks as defense for\n // in-process-constructed rubrics that skipped parsing.\n message: 'criteria[].ref must be unique — a duplicated ref would silently double-weight it in the aggregate.',\n path: ['criteria'],\n },\n);\nexport const EvaluationRubricSchema: typeof _EvaluationRubricSchema =\n _EvaluationRubricSchema;\nexport type EvaluationRubric = z.infer<typeof _EvaluationRubricSchema>;\n\n/**\n * One criterion score inside a verdict. `criterionRef` MUST match a\n * rubric criterion — enforced fail-closed by\n * `validateVerdictCriterionRefs` (a hallucinated ref rejects the verdict,\n * one retry with the error surfaced, then the reviewer is dropped from\n * the round with a quorum note).\n */\nconst _RubricScoreSchema = z.object({\n /** The rubric criterion this score answers. */\n criterionRef: z.string().min(1),\n /** 0–100 against the criterion's scale anchors. */\n score: z.number().min(0).max(100),\n /** One crisp sentence grounding the score in what was observed. */\n note: z.string().min(1),\n});\nexport const RubricScoreSchema: typeof _RubricScoreSchema = _RubricScoreSchema;\nexport type RubricScore = z.infer<typeof _RubricScoreSchema>;\n\n/**\n * One actionable critique inside a verdict — the REVISION FUEL. The\n * producer's revise step compiles the shortlist's critiques into the\n * revision (text: rewrite the draft; image: a regeneration prompt\n * addendum — the image transport has no edit operation).\n */\nconst _RubricCritiqueSchema = z.object({\n /** Which aspect of the candidate the critique targets. */\n targetAspect: z.string().min(1),\n /** What is wrong, grounded in the rubric/persona view. */\n critique: z.string().min(1),\n /** The concrete change that would address it. */\n suggestion: z.string().min(1),\n});\nexport const RubricCritiqueSchema: typeof _RubricCritiqueSchema =\n _RubricCritiqueSchema;\nexport type RubricCritique = z.infer<typeof _RubricCritiqueSchema>;\n\n/**\n * One reviewer's verdict on one candidate — the GENERIC,\n * strict-structured-output-safe judge contract (flat, all-required,\n * ref-keyed; \"nothing to report\" is an empty array, never an absent key).\n * This is the schema handed to the LLM; the rubric it scores against\n * travels in the PROMPT.\n */\nconst _RubricVerdictSchema = z.object({\n /** The reviewing expert's charter ref. */\n reviewerCharterRef: z.string().min(1),\n /** The candidate under review. */\n candidateRef: z.string().min(1),\n /** One score per rubric criterion (validated fail-closed, both ways). */\n scores: z.array(_RubricScoreSchema).min(1),\n /** Headline recommendation. */\n recommendation: z.enum(DeliberationRecommendation),\n /**\n * Actionable critiques (revision fuel). REQUIRED — \"no critiques\" is an\n * explicit empty array, never an absent key: this schema is handed to the\n * LLM, and the strict structured-output transport rejects any non-required\n * property (a `.default()` would emit one). The prompt contract mandates\n * `[]`, not the schema.\n */\n critiques: z.array(_RubricCritiqueSchema),\n /** The reviewer's overall reading of the candidate, one short paragraph. */\n overallNote: z.string().min(1),\n});\nexport const RubricVerdictSchema: typeof _RubricVerdictSchema =\n _RubricVerdictSchema;\nexport type RubricVerdict = z.infer<typeof _RubricVerdictSchema>;\n\n/**\n * One candidate as it exists inside a round's candidate set — a\n * DISCRIMINATED UNION on `provenance` so the audit invariant is enforced by\n * the schema, not by convention: a `REVISED` candidate MUST carry both\n * `revisedFromRef` and `revisionPrompt` (\"every revision is reproducible\n * from the record\"), while an `ORIGINAL` candidate carries neither.\n */\nconst _DeliberationCandidateOriginalSchema = z.object({\n /** Stable candidate ref (unique within the deliberation). */\n ref: z.string().min(1),\n /** Produced in round 1 from the creative brief. */\n provenance: z.literal(DeliberationCandidateProvenance.ORIGINAL),\n /**\n * Where the candidate's payload lives (staging-relative path or\n * artifact locator). The record stores locators, never payload bytes.\n */\n storageRef: z.string().min(1),\n});\nconst _DeliberationCandidateRevisedSchema = z.object({\n /** Stable candidate ref (unique within the deliberation). */\n ref: z.string().min(1),\n /** Produced by a critique-driven revision of a prior candidate. */\n provenance: z.literal(DeliberationCandidateProvenance.REVISED),\n /** The candidate this one revises. REQUIRED for revisions. */\n revisedFromRef: z.string().min(1),\n /**\n * The compiled revision instruction (text) or regeneration prompt\n * (image) — REQUIRED so every revision is reproducible from the record.\n */\n revisionPrompt: z.string().min(1),\n /** Where the candidate's payload lives (locator, never bytes). */\n storageRef: z.string().min(1),\n});\nconst _DeliberationCandidateSchema = z.discriminatedUnion('provenance', [\n _DeliberationCandidateOriginalSchema,\n _DeliberationCandidateRevisedSchema,\n]);\nexport const DeliberationCandidateSchema: typeof _DeliberationCandidateSchema =\n _DeliberationCandidateSchema;\nexport type DeliberationCandidate = z.infer<typeof _DeliberationCandidateSchema>;\n\n/**\n * One critique-revise round: the candidate set reviewed, every verdict\n * collected, and the coordinator's shortlist (the COST SPINE — round 1\n * reviews the full set, the coordinator shortlists top-K, rounds 2+\n * operate on the shortlist only; the panel never re-litigates eliminated\n * options).\n */\nconst _DeliberationRoundSchema = z.object({\n /** 1-based round number. */\n roundNumber: z.number().int().min(1),\n /** The candidates reviewed this round. */\n candidateSet: z.array(_DeliberationCandidateSchema).min(1),\n /** Every reviewer verdict collected this round (dissent preserved). */\n verdicts: z.array(_RubricVerdictSchema),\n /** The coordinator's shortlist feeding the next round (absent on the final round). */\n shortlistRefs: z.array(z.string().min(1)).optional(),\n});\nexport const DeliberationRoundSchema: typeof _DeliberationRoundSchema =\n _DeliberationRoundSchema;\nexport type DeliberationRound = z.infer<typeof _DeliberationRoundSchema>;\n\n/** A dissenting position preserved in the synthesis (never averaged away). */\nconst _DeliberationDissentSchema = z.object({\n /** The dissenting expert's charter ref. */\n charterRef: z.string().min(1),\n /** The dissenting position, in the expert's own terms. */\n position: z.string().min(1),\n});\nexport const DeliberationDissentSchema: typeof _DeliberationDissentSchema =\n _DeliberationDissentSchema;\nexport type DeliberationDissent = z.infer<typeof _DeliberationDissentSchema>;\n\n/**\n * The coordinator's synthesis — the \"manager's\" decision over the panel:\n * a winner, the grounded rationale, and every preserved dissent.\n * ADVISORY: the human decision seam on the record is the authority.\n */\nconst _DeliberationSynthesisSchema = z.object({\n /** The winning candidate ref. */\n winnerRef: z.string().min(1),\n /** Why the winner beats the field, grounded in verdicts + rubric. */\n rationale: z.string().min(1),\n /**\n * Dissenting positions, preserved verbatim. REQUIRED — unanimity is an\n * explicit empty array (the coordinator's synthesis is LLM-generated;\n * same strict structured-output discipline as the verdict's `critiques`).\n */\n dissent: z.array(_DeliberationDissentSchema),\n});\nexport const DeliberationSynthesisSchema: typeof _DeliberationSynthesisSchema =\n _DeliberationSynthesisSchema;\nexport type DeliberationSynthesis = z.infer<typeof _DeliberationSynthesisSchema>;\n\n/**\n * DETERMINISTIC lens accounting for the winner — computed by the machinery from the\n * final round's verdicts, never asked of a model.\n *\n * The floor and the coverage rules guarantee the winner was scored by every required\n * lens. What they cannot show is HOW those lenses split, and that is the difference\n * between consensus and a bare majority: \"two lenses accepted\" and \"one accepted, one\n * wanted revision\" produce an identical `synthesis`, because the coordinator writes\n * prose and prose can round a split into agreement.\n *\n * Kept OUT of {@link DeliberationSynthesis} on purpose. That object is model-generated;\n * a count that can be generated is a count that can be wrong, and the whole point here\n * is a number a reader can trust without re-reading every verdict.\n */\nconst _DeliberationConcurrenceSchema = z.object({\n /** The candidate these counts describe. */\n winnerRef: z.string().min(1),\n /** Distinct reviewer lenses that scored the winner. */\n lensCount: z.number().int().min(0),\n /** How those lenses split. Unanimity is `accept === lensCount`. */\n byRecommendation: z.object({\n accept: z.number().int().min(0),\n revise: z.number().int().min(0),\n reject: z.number().int().min(0),\n }),\n});\nexport const DeliberationConcurrenceSchema: typeof _DeliberationConcurrenceSchema =\n _DeliberationConcurrenceSchema;\nexport type DeliberationConcurrence = z.infer<typeof _DeliberationConcurrenceSchema>;\n\n/** Who sat at the table. */\nconst _DeliberationParticipantsSchema = z.object({\n /** The producing agent (image/text generator) — an agent ref, not a charter. */\n producerAgentRef: z.string().min(1),\n /** The reviewing experts' charter refs (the panel). */\n reviewerCharterRefs: z.array(z.string().min(1)).min(1),\n /** The coordinating expert's charter ref (synthesis + shortlist + convergence). */\n coordinatorCharterRef: z.string().min(1),\n});\nexport const DeliberationParticipantsSchema: typeof _DeliberationParticipantsSchema =\n _DeliberationParticipantsSchema;\nexport type DeliberationParticipants = z.infer<typeof _DeliberationParticipantsSchema>;\n\n/** The human decision over an advisory synthesis (the actual authority). */\nconst _DeliberationHumanDecisionSchema = z.object({\n /** What the human decided (accepted ref, override, or rejection note). */\n decision: z.string().min(1),\n /** ISO-8601 decision moment. */\n decidedAt: z.iso.datetime(),\n});\nexport const DeliberationHumanDecisionSchema: typeof _DeliberationHumanDecisionSchema =\n _DeliberationHumanDecisionSchema;\nexport type DeliberationHumanDecision = z.infer<typeof _DeliberationHumanDecisionSchema>;\n\n/**\n * The full minutes of one deliberation — rubric (embedded, constant),\n * participants, every round with every verdict, the synthesis, and the\n * human decision seam.\n *\n * PERSISTENCE: a deliberation is a BUILD-TIME companion artifact. The\n * engine machinery RETURNS this record and never persists it; the\n * companion writes it to its staging area\n * (`.wildo-saas/generated/deliberations/`). It is deliberately NOT hosted\n * on the flows-actors execution resources (`user`/`organization`/`applicationFlowActorExecutions`)\n * — those are scope-owned RUNTIME data (conversational history), the wrong tier\n * for build-time creative decisions.\n */\nconst _DeliberationRecordSchema = z.object({\n /** Unique deliberation id (companion-minted). */\n deliberationRef: z.string().min(1),\n /** The work domain deliberated. */\n workDomain: z.enum(ExpertWorkDomain),\n /**\n * The candidate payload modality. Drives the revision path: TEXT\n * revises the draft; IMAGE regenerates with a critique addendum (the\n * image transport has no edit operation). Other kinds are fail-closed\n * at execution until they have honest transports.\n */\n subjectKind: z.enum(FlowsActors_IO_PartKind),\n /** The derived rubric (embedded; constant across this record's rounds). */\n rubric: _EvaluationRubricSchema,\n participants: _DeliberationParticipantsSchema,\n /** The rounds, in order. Appended as the deliberation progresses. */\n rounds: z.array(_DeliberationRoundSchema).default([]),\n /**\n * Deterministic lens accounting for the winner, beside the synthesis it describes.\n * Absent exactly when `synthesis` is.\n */\n concurrence: _DeliberationConcurrenceSchema.optional(),\n /** The coordinator's synthesis (absent while RUNNING, on FAILED, and on REJECTED — a rejected field has no winner to synthesise). */\n synthesis: _DeliberationSynthesisSchema.optional(),\n /** Max rounds before the coordinator must synthesize (cost bound). */\n roundBudget: z.number().int().min(1),\n status: z.enum(DeliberationStatus),\n /**\n * The charters' `inputsDigest`s at deliberation time — lets an audit\n * see a decision was made under a stale persona (keyed by charterRef).\n */\n charterInputsDigests: z.record(z.string(), z.string()).default({}),\n /** The human authority's decision; null until the human acts. */\n humanDecision: _DeliberationHumanDecisionSchema.nullable().default(null),\n /** ISO-8601 timestamps. */\n startedAt: z.iso.datetime(),\n finishedAt: z.iso.datetime().optional(),\n});\nexport const DeliberationRecordSchema: typeof _DeliberationRecordSchema =\n _DeliberationRecordSchema;\nexport type DeliberationRecord = z.infer<typeof _DeliberationRecordSchema>;\n\n//===============================================================\n// LLM-facing pass contracts (deliberation orchestration)\n// ------------------------------------------------------------\n// The schemas HANDED TO THE MODEL by each orchestration pass. They are\n// the stamped-fields-free projections of the record contracts above:\n// identity/provenance fields (charter refs, candidate refs, timestamps,\n// work domain) are stamped DETERMINISTICALLY by the machinery — a model\n// never authors its own audit trail. Flat, all-required (strict\n// structured-output discipline; \"empty\" is []/'' by prompt contract).\n//===============================================================\n\n/**\n * Rubric-derivation pass output: the criteria only. The machinery stamps\n * `workDomain` / `derivedFromCharterRef` / `derivedAt` and validates the\n * assembled rubric through `EvaluationRubricSchema` (unique-ref refine).\n */\nconst _DeliberationRubricOutputSchema = z.object({\n criteria: z.array(_EvaluationCriterionSchema).min(1),\n});\nexport const DeliberationRubricOutputSchema: typeof _DeliberationRubricOutputSchema =\n _DeliberationRubricOutputSchema;\nexport type DeliberationRubricOutput = z.infer<typeof _DeliberationRubricOutputSchema>;\nconst _DeliberationRubricOutputStrictSchema = z.object({\n criteria: z.array(_EvaluationCriterionSchema.strict()).min(1),\n}).strict();\nexport const DeliberationRubricOutputStrictSchema: typeof _DeliberationRubricOutputStrictSchema =\n _DeliberationRubricOutputStrictSchema;\n\n/** One wire-level score entry inside {@link DeliberationReviewWireOutput}. */\nexport interface DeliberationReviewWireScore {\n /** 0–100 against the criterion's scale anchors. */\n score: number;\n /** One crisp sentence grounding the score in what was observed. */\n note: string;\n}\n\n/**\n * Review pass output as it crosses the LLM wire: `RubricVerdict` minus the\n * stamped identity fields, with `scores` as an OBJECT keyed by criterion ref.\n */\nexport interface DeliberationReviewWireOutput {\n scores: Record<string, DeliberationReviewWireScore>;\n recommendation: DeliberationRecommendation;\n critiques: RubricCritique[];\n overallNote: string;\n}\n\n/**\n * Build the PER-RUN review wire schema for one rubric: `scores` is a strict\n * object with EXACTLY the rubric's criterion refs as required keys.\n *\n * Why per-run instead of a static array-of-scores contract: the rubric is\n * per-run DATA (derived at deliberation start), and an array `scores` shape\n * leaves the \"one score per criterion\" invariant to the model's discipline —\n * live runs showed a ~25% first-attempt rejection rate from DUPLICATED\n * criterion entries (the model restating the criterion it cared most about;\n * 3/12 reviews on 2026-07-17, each burning a full vision-call retry). Keying\n * the object by the exact refs makes duplicates and omissions STRUCTURALLY\n * impossible at the decode layer instead of prompt-begged. The machinery\n * reshapes the record into the array-shaped `RubricVerdict` for storage and\n * still runs `validateVerdictCriterionRefs` as the belt-and-braces invariant.\n *\n * The schema is `.strict()` end-to-end (hallucinated refs fail decode) and\n * all-required (strict structured-output transports reject optionals).\n */\nexport function buildDeliberationReviewWireSchema(\n rubric: EvaluationRubric,\n): z.ZodType<DeliberationReviewWireOutput> {\n const scoreValue = z.object({\n score: z.number().min(0).max(100),\n note: z.string().min(1),\n }).strict();\n const scoresShape = Object.fromEntries(\n rubric.criteria.map((criterion) => [criterion.ref, scoreValue]),\n );\n return z.object({\n scores: z.object(scoresShape).strict(),\n recommendation: z.enum(DeliberationRecommendation),\n critiques: z.array(_RubricCritiqueSchema.strict()),\n overallNote: z.string().min(1),\n }).strict() as unknown as z.ZodType<DeliberationReviewWireOutput>;\n}\n\n/** The coordinator's per-round directive. */\nexport enum DeliberationRoundDirective {\n /** The outcome is settled — proceed to synthesis (converged). */\n FINALIZE = \"finalize\",\n /** Shortlist the strongest candidates and run a revision round. */\n REVISE_SHORTLIST = \"revise_shortlist\",\n}\n\n/**\n * Coordinator round pass output. On `FINALIZE`, `shortlistRefs` is an\n * explicit empty array (prompt contract). The machinery validates\n * `shortlistRefs` ⊆ the round's candidate refs and caps it at the plan's\n * shortlist size — an invalid echo falls back to the top-K by\n * deterministic aggregate.\n */\nconst _DeliberationCoordinatorRoundOutputSchema = z.object({\n directive: z.enum(DeliberationRoundDirective),\n /** The candidates to revise next round (empty on FINALIZE). */\n shortlistRefs: z.array(z.string().min(1)),\n /** Why this directive, grounded in the verdicts. */\n rationale: z.string().min(1),\n});\nexport const DeliberationCoordinatorRoundOutputSchema: typeof _DeliberationCoordinatorRoundOutputSchema =\n _DeliberationCoordinatorRoundOutputSchema;\nexport type DeliberationCoordinatorRoundOutput = z.infer<typeof _DeliberationCoordinatorRoundOutputSchema>;\nconst _DeliberationCoordinatorRoundOutputStrictSchema =\n _DeliberationCoordinatorRoundOutputSchema.strict();\nexport const DeliberationCoordinatorRoundOutputStrictSchema: typeof _DeliberationCoordinatorRoundOutputStrictSchema =\n _DeliberationCoordinatorRoundOutputStrictSchema;\n\n// The synthesis pass hands `DeliberationSynthesisSchema` itself to the model\n// (it is already flat + all-required); the machinery validates `winnerRef`\n// against the final candidate set (fallback: top deterministic aggregate)\n// and filters dissent entries to known reviewer charter refs.\nconst _DeliberationSynthesisStrictSchema = z.object({\n winnerRef: z.string().min(1),\n rationale: z.string().min(1),\n dissent: z.array(_DeliberationDissentSchema.strict()),\n}).strict();\nexport const DeliberationSynthesisStrictSchema: typeof _DeliberationSynthesisStrictSchema =\n _DeliberationSynthesisStrictSchema;\n\n//===============================================================\n// Deliberation plan (engine-machinery input — TS types, not Zod:\n// the plan carries a live PRODUCER CALLBACK)\n//===============================================================\n\n/**\n * A candidate's payload as the machinery consumes it (kind-discriminated).\n *\n * STRUCTURED exists because some subjects a panel must judge are DATA, not prose\n * or pixels — a placement plan, a schema proposal, a configuration. Serializing\n * such a candidate to text and parsing the winner back was the alternative, and\n * it was rejected: it makes the artifact's shape a prompt-formatting concern and\n * gives the round-trip somewhere to lose a field.\n */\nexport type DeliberationCandidateContent =\n | { kind: FlowsActors_IO_PartKind.TEXT; text: string }\n | { kind: FlowsActors_IO_PartKind.IMAGE; imageDataUri: string }\n | {\n kind: FlowsActors_IO_PartKind.STRUCTURED;\n /** The candidate value itself. This is what wins, and it is what reviewers are shown. */\n value: unknown;\n /**\n * OPTIONAL human-readable framing rendered ABOVE the value — never instead of it.\n *\n * The caller owns domain knowledge the engine does not (what a `groupRef`\n * means, why an order matters), so it may help a reviewer read the data. It\n * may NOT replace the data: a projection can drift from the value it\n * describes, and then the panel scores the prose while the winner is the\n * bytes — real evidence about the wrong target, with a green run concealing\n * it because the conclusion still looks plausible. The engine therefore\n * always renders `value`, and pins that a contradicting projection loses.\n */\n projection?: string;\n };\n\n/** One candidate handed to (or produced for) the machinery. */\nexport interface DeliberationCandidateInput {\n /** Stable candidate ref (unique within the deliberation). */\n ref: string;\n /** Locator the record stores (the caller owns the bytes). */\n storageRef: string;\n content: DeliberationCandidateContent;\n}\n\n/**\n * The CALLER-owned revision producer (RF-2: the engine never persists; the\n * companion owns candidate bytes). The machinery compiles the deterministic\n * `revisionPrompt` from the shortlisted candidate's critiques (RF-4:\n * TEXT revises the draft, IMAGE regenerates — both reduce to \"produce a new\n * candidate from parent + instruction\" at this seam) and the producer\n * returns the NEW candidate (fresh ref + persisted payload).\n */\nexport interface DeliberationProducer {\n produceRevision(\n parent: DeliberationCandidateInput,\n revisionPrompt: string,\n ): Promise<DeliberationCandidateInput>;\n}\n\n/** One expert seat at the table: the runtime profile + the agent built from its charter. */\nexport interface DeliberationExpertBinding {\n profile: RuntimeExpertProfile;\n agentRef: string;\n}\n\n/**\n * The full input of `executeDeliberation` — composed by the COMPANION\n * (which owns charters, agents, candidate bytes, and persistence); the\n * engine machinery owns only the orchestration semantics.\n */\nexport interface DeliberationPlan {\n deliberationRef: string;\n workDomain: ExpertWorkDomain;\n /** TEXT | IMAGE — anything else is fail-closed at execution. */\n subjectKind: FlowsActors_IO_PartKind;\n /** The assembled work-product brief every pass is grounded on. */\n briefContext: string;\n /** The reviewing panel (min 1). Narrowness is enforced by the COMPOSER. */\n reviewers: DeliberationExpertBinding[];\n /** The coordinator (shortlist + convergence + synthesis). */\n coordinator: DeliberationExpertBinding;\n /** The expert who derives the rubric (usually the domain owner). */\n rubricDeriver: DeliberationExpertBinding;\n /** Recorded as `participants.producerAgentRef` (audit). */\n producerAgentRef: string;\n producer: DeliberationProducer;\n initialCandidates: DeliberationCandidateInput[];\n /** Max rounds before forced synthesis (locked default 2, max 3). */\n roundBudget: number;\n /** Top-K candidates revised per round (RF-5 cost funnel). */\n shortlistSize: number;\n /** Participating charters' inputsDigests (staleness audit stamps). */\n charterInputsDigests: Record<string, string>;\n}\n\n//===============================================================\n// Deterministic helpers (never model arithmetic)\n//===============================================================\n\n/**\n * Result of the fail-closed criterion-ref validation of one verdict\n * against the rubric it claims to score.\n */\nexport interface VerdictCriterionRefsValidation {\n /** `true` iff the rubric is well-formed AND the verdict scores EXACTLY its criteria (no more, no less, no dupes). */\n ok: boolean;\n /** Refs in the verdict that do not exist in the rubric (hallucinated). Deduplicated. */\n unknownRefs: string[];\n /** Rubric criteria the verdict did not score. */\n missingRefs: string[];\n /** Refs scored more than once in the verdict. */\n duplicateRefs: string[];\n /**\n * Refs appearing more than once in the RUBRIC itself. The schema's\n * uniqueness refine rejects these at parse time; this re-check is the\n * fail-closed defense for in-process-constructed rubrics that skipped\n * parsing — a duplicated rubric ref would silently DOUBLE-WEIGHT that\n * criterion in the aggregate.\n */\n duplicateRubricRefs: string[];\n}\n\n/**\n * Fail-closed validation that a verdict's scores line up 1:1 with a\n * well-formed rubric's criteria. A verdict with hallucinated, missing, or\n * duplicated refs must be rejected (the machinery retries once with the\n * error surfaced, then drops the reviewer from the round with a quorum\n * note); a malformed rubric (duplicate refs) fails regardless of the\n * verdict.\n */\nexport function validateVerdictCriterionRefs(\n rubric: EvaluationRubric,\n verdict: RubricVerdict,\n): VerdictCriterionRefsValidation {\n const rubricRefs = new Set<string>();\n const duplicateRubricRefs: string[] = [];\n for (const criterion of rubric.criteria) {\n if (rubricRefs.has(criterion.ref) && !duplicateRubricRefs.includes(criterion.ref)) {\n duplicateRubricRefs.push(criterion.ref);\n }\n rubricRefs.add(criterion.ref);\n }\n\n const seen = new Set<string>();\n const unknownRefs: string[] = [];\n const duplicateRefs: string[] = [];\n for (const score of verdict.scores) {\n if (!rubricRefs.has(score.criterionRef) && !unknownRefs.includes(score.criterionRef)) {\n unknownRefs.push(score.criterionRef);\n }\n if (seen.has(score.criterionRef) && !duplicateRefs.includes(score.criterionRef)) {\n duplicateRefs.push(score.criterionRef);\n }\n seen.add(score.criterionRef);\n }\n\n const missingRefs = [...rubricRefs].filter((ref) => !seen.has(ref));\n return {\n ok:\n unknownRefs.length === 0\n && missingRefs.length === 0\n && duplicateRefs.length === 0\n && duplicateRubricRefs.length === 0,\n unknownRefs,\n missingRefs,\n duplicateRefs,\n duplicateRubricRefs,\n };\n}\n\n/**\n * Deterministic weighted aggregate of one verdict against the rubric:\n * `sum(weight_i × score_i) / sum(weight_i)` over the rubric's criteria,\n * on the verdict's 0–100 scale. Model-computed totals are never trusted —\n * this is the ONLY sanctioned aggregation.\n *\n * Throws if the verdict does not validate against the rubric\n * (`validateVerdictCriterionRefs`) — aggregating a malformed verdict\n * would silently misweight; callers must validate (and retry/drop) first.\n */\nexport function aggregateWeightedScore(\n rubric: EvaluationRubric,\n verdict: RubricVerdict,\n): number {\n const validation = validateVerdictCriterionRefs(rubric, verdict);\n if (!validation.ok) {\n throw new Error(\n `Cannot aggregate a verdict that does not match its rubric ` +\n `(unknown: [${validation.unknownRefs.join(\", \")}], ` +\n `missing: [${validation.missingRefs.join(\", \")}], ` +\n `duplicate: [${validation.duplicateRefs.join(\", \")}], ` +\n `duplicate rubric refs: [${validation.duplicateRubricRefs.join(\", \")}]).`,\n );\n }\n\n const scoreByRef = new Map(verdict.scores.map((score) => [score.criterionRef, score.score]));\n let weightedSum = 0;\n let weightSum = 0;\n for (const criterion of rubric.criteria) {\n // Ref alignment is guaranteed by the validation above.\n weightedSum += criterion.weight * (scoreByRef.get(criterion.ref) as number);\n weightSum += criterion.weight;\n }\n return weightedSum / weightSum;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"deliberation.shared.schemas.js","sourceRoot":"","sources":["../../../src/flows-actors/deliberation.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3E,iEAAiE;AACjE,kDAAkD;AAClD,+DAA+D;AAC/D,oEAAoE;AACpE,uEAAuE;AACvE,qEAAqE;AACrE,qEAAqE;AACrE,WAAW;AACX,EAAE;AACF,mDAAmD;AACnD,yEAAyE;AACzE,qEAAqE;AACrE,sEAAsE;AACtE,oEAAoE;AACpE,YAAY;AACZ,qEAAqE;AACrE,4DAA4D;AAC5D,wEAAwE;AACxE,sEAAsE;AACtE,qEAAqE;AACrE,EAAE;AACF,sEAAsE;AACtE,kEAAkE;AAClE,yEAAyE;AACzE,wEAAwE;AACxE,yEAAyE;AACzE,oEAAoE;AACpE,wEAAwE;AACxE,iEAAiE;AACjE,uDAAuD;AACvD,oCAAoC;AAC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C7F,IAAI,WAAW,GAAG,CAAC,CAAC;IACpB,IAAI,SAAS,GAAG,CAAC,CAAC;IAClB,KAAK,MAAM,SAAS,IAAI,MAAM,CAAC,QAAQ,EAAE,CAAC;QACxC,uDAAuD;QACvD,WAAW,IAAI,SAAS,CAAC,MAAM,GAAI,UAAU,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAY,CAAC;QAC5E,SAAS,IAAI,SAAS,CAAC,MAAM,CAAC;IAChC,CAAC;IACD,OAAO,WAAW,GAAG,SAAS,CAAC;AACjC,CAAC","sourcesContent":["import { z } from \"zod\";\n\nimport { FlowsActors_IO_PartKind } from \"./flows-actors.io.shared.schemas\";\n\n//===============================================================\n// Expert-Persona Deliberation — shared contracts\n// ------------------------------------------------------------\n// The GENERIC vocabulary of the agentic deliberation system: narrow\n// expert personas (derived per-app from the specification tier) review\n// candidate work products against a DERIVED evaluation rubric across\n// bounded critique-revise rounds, a coordinator synthesizes, a human\n// decides.\n//\n// TIER SPLIT (dependency direction — do not blur):\n// - The DERIVED artifacts (`ExpertRoleTemplate`, `ExpertPersonaCharter`)\n// live in `@wildo-ai/saas-specifications` `_core/expert-personas/`\n// (spec tier — committed, human-reviewable). `saas-backend-lib` can\n// NEVER import them (specifications sits BELOW backend-lib in the\n// graph).\n// - THIS file is the runtime-visible half: the enums the spec family\n// imports (single-sourced here — `ExpertWorkDomain`), the\n// `RuntimeExpertProfile` projection the COMPANION maps a charter into\n// before handing it to engine machinery, and the rubric / verdict /\n// deliberation-record contracts the engine round loop operates on.\n//\n// KEY DESIGN DECISION (the anti-\"taste-as-code\" contract): evaluation\n// CRITERIA ARE DATA, not schema fields. The rubric is derived per\n// deliberation run by an expert persona and travels in the judge PROMPT;\n// the verdict schema below stays FIXED and GENERIC (criterion-ref-keyed\n// score array), so one schema serves every work domain and every derived\n// rubric while remaining strict-structured-output compatible (flat,\n// all-required, no dynamic keys). Weighted aggregation is DETERMINISTIC\n// CODE (`aggregateWeightedScore`) — never model arithmetic — and\n// hallucinated criterion refs are rejected fail-closed\n// (`validateVerdictCriterionRefs`).\n//===============================================================\n\n/**\n * The narrow work-product domain an expert persona is specialized on —\n * the ROUTING AXIS of the narrowness principle. An expert declares a\n * small closed set of domains; the deliberation orchestrator REFUSES to\n * invoke an expert outside its declared domains (fail-closed).\n *\n * Deliberate design: agent personas are NARROW, unlike human employees\n * who wear several hats. A review needing three angles convenes three\n * experts + a coordinator, never one generalist.\n *\n * Single-sourced HERE (the spec-tier `expert-personas` family imports\n * this enum) so the vocabulary cannot drift across tiers. Extend\n * per-capability as new deliberation domains ship — never speculatively.\n */\nexport enum ExpertWorkDomain {\n /** Visual brand marks: logo symbols, icons, brand imagery. */\n VISUAL_BRAND_MARK = \"visual_brand_mark\",\n /** Marketing / product copy: website sections, email prose, taglines. */\n MARKETING_COPY = \"marketing_copy\",\n /** UI/design-system coherence: tokens, palette, typography discipline. */\n UI_DESIGN_COHERENCE = \"ui_design_coherence\",\n /** Brand strategy: positioning fit, differentiation, ICP resonance. */\n BRAND_STRATEGY = \"brand_strategy\",\n /**\n * Information architecture: WHERE a destination, operation or view belongs in\n * the application shell — surface assignment, grouping, ordering, findability.\n *\n * Distinct from {@link UI_DESIGN_COHERENCE}, which is tokens, palette and\n * typography discipline. A settings section can be perfectly on-palette and\n * still be in the wrong place; \"can a user find this, and does it sit with the\n * things it belongs with\" is a different question with a different expert.\n *\n * Added 2026-08-29, when placement became a deliberated decision rather than a\n * framework default — per this enum's rule, per-capability and never\n * speculatively.\n */\n INFORMATION_ARCHITECTURE = \"information_architecture\",\n}\n\n/**\n * A reviewer's headline recommendation for one candidate. Deliberately\n * the same three-state vocabulary as the interim brand accept judge —\n * accept as-is / fixable via revision / materially misses the brief.\n */\nexport enum DeliberationRecommendation {\n /** The candidate satisfies the rubric and can win as-is. */\n ACCEPT = \"accept\",\n /** Close, but has fixable concerns — revise before it can win. */\n REVISE = \"revise\",\n /** Materially misses the rubric — should not survive the shortlist. */\n REJECT = \"reject\",\n}\n\n/** How a candidate entered a round's candidate set. */\nexport enum DeliberationCandidateProvenance {\n /** Produced in round 1 from the creative brief. */\n ORIGINAL = \"original\",\n /** Produced by a critique-driven revision of a prior candidate. */\n REVISED = \"revised\",\n}\n\n/** Terminal + live states of a deliberation. */\nexport enum DeliberationStatus {\n /** Rounds are still executing. */\n RUNNING = \"running\",\n /** The coordinator judged the outcome converged before budget. */\n CONVERGED = \"converged\",\n /** The round budget was exhausted; synthesis used the last round. */\n BUDGET_EXHAUSTED = \"budget_exhausted\",\n /** The deliberation could not complete (provider/validation failure). */\n FAILED = \"failed\",\n /**\n * Every candidate was REJECTED by the panel. There is no winner, and that is a\n * RESULT — not a failure.\n *\n * Distinct from {@link FAILED}, which means the machinery could not complete;\n * here it completed and the answer is \"none of these\". Distinct from\n * {@link CONVERGED}, which asserts a winner. Collapsing rejection into either\n * would be the defect this state exists to remove: a coordinator asked to pick a\n * winner will pick one, so without a terminal rejection the least-bad candidate\n * of a uniformly rejected field lands carrying the panel's authority.\n *\n * A record in this state carries no `synthesis`. The caller decides what to do —\n * retry with a new brief, widen the candidate set, or surface the critiques —\n * because only the caller knows whether \"none of these\" is recoverable.\n */\n REJECTED = \"rejected\",\n}\n\n/**\n * The runtime projection of an `ExpertPersonaCharter` — everything the\n * engine deliberation machinery needs of a persona, WITHOUT importing the\n * spec tier (same pattern as the runtime brand-asset siblings). The\n * COMPANION (which imports both tiers) maps charter → profile when\n * composing a deliberation plan, and builds the expert's agent from it at\n * startup (fail-closed when the charter is missing/unaccepted).\n */\nconst _RuntimeExpertProfileSchema = z.object({\n /** The committed charter this profile projects (audit back-pointer). */\n charterRef: z.string().min(1),\n /** The framework role template the charter was derived from. */\n roleRef: z.string().min(1),\n /** The narrow domains this expert may produce briefs / reviews for. */\n workDomains: z.array(z.enum(ExpertWorkDomain)).min(1),\n /** The compiled app-specific persona prose (\"who I am for THIS app\"). */\n personaProse: z.string().min(1),\n /** Ordered priorities the persona judges by (highest first). */\n priorities: z.array(z.string().min(1)).min(1),\n /** Hard taboos — things this persona must never reward or produce. */\n taboos: z.array(z.string().min(1)).default([]),\n /**\n * What a top-tier candidate looks like for this app (rubric scale-anchor\n * seeds). Mirrors the charter's optional Lever-2 extension.\n */\n qualityBar: z.array(z.string().min(1)).optional(),\n /** The persona's ordered review checks (systematic judging method). */\n reviewProtocol: z.array(z.string().min(1)).optional(),\n});\nexport const RuntimeExpertProfileSchema: typeof _RuntimeExpertProfileSchema =\n _RuntimeExpertProfileSchema;\nexport type RuntimeExpertProfile = z.infer<typeof _RuntimeExpertProfileSchema>;\n\n/**\n * One derived evaluation criterion. `ref` is the join key verdicts score\n * against; `weight` feeds the DETERMINISTIC aggregation (never model\n * arithmetic); `scaleAnchors` pin what the scale ends MEAN so two\n * reviewers score commensurably.\n */\nconst _EvaluationCriterionSchema = z.object({\n /** Stable kebab-case key verdict scores reference (e.g. `favicon-legibility`). */\n ref: z.string().min(1),\n /** What is being evaluated, in one or two sentences. */\n description: z.string().min(1),\n /**\n * Relative importance, > 0 and FINITE. Normalization happens in\n * `aggregateWeightedScore` (weights need not sum to anything);\n * `.finite()` closes the Infinity/Infinity → NaN aggregate hole.\n */\n weight: z.number().positive().finite(),\n /** What the scale extremes mean — pins reviewer calibration. */\n scaleAnchors: z.object({\n /** What a 0 looks like for this criterion. */\n low: z.string().min(1),\n /** What a 100 looks like for this criterion. */\n high: z.string().min(1),\n }),\n});\nexport const EvaluationCriterionSchema: typeof _EvaluationCriterionSchema =\n _EvaluationCriterionSchema;\nexport type EvaluationCriterion = z.infer<typeof _EvaluationCriterionSchema>;\n\n/**\n * The DERIVED rubric a deliberation evaluates against. Derived ONCE at\n * deliberation start by the responsible expert persona (per-run — locked\n * decision), held CONSTANT across that deliberation's rounds (revise\n * targets must not move mid-discussion), and EMBEDDED in the\n * `DeliberationRecord` (auditability without a standalone artifact).\n * Never persisted as its own resource.\n */\nconst _EvaluationRubricSchema = z.object({\n /** The work domain this rubric evaluates. */\n workDomain: z.enum(ExpertWorkDomain),\n /** The charter of the expert who derived the rubric. */\n derivedFromCharterRef: z.string().min(1),\n /** The derived criteria (the DATA that replaces hardcoded score fields). */\n criteria: z.array(_EvaluationCriterionSchema).min(1),\n /** ISO-8601 derivation moment. */\n derivedAt: z.iso.datetime(),\n}).refine(\n (rubric) => new Set(rubric.criteria.map((criterion) => criterion.ref)).size === rubric.criteria.length,\n {\n // The rubric is LLM-DERIVED data — a model emitting the same ref twice\n // (with different weights) is a plausible output, and a duplicated ref\n // would silently DOUBLE-WEIGHT that criterion in the aggregate. Reject\n // at parse; `validateVerdictCriterionRefs` re-checks as defense for\n // in-process-constructed rubrics that skipped parsing.\n message: 'criteria[].ref must be unique — a duplicated ref would silently double-weight it in the aggregate.',\n path: ['criteria'],\n },\n);\nexport const EvaluationRubricSchema: typeof _EvaluationRubricSchema =\n _EvaluationRubricSchema;\nexport type EvaluationRubric = z.infer<typeof _EvaluationRubricSchema>;\n\n/**\n * One criterion score inside a verdict. `criterionRef` MUST match a\n * rubric criterion — enforced fail-closed by\n * `validateVerdictCriterionRefs` (a hallucinated ref rejects the verdict,\n * one retry with the error surfaced, then the reviewer is dropped from\n * the round with a quorum note).\n */\nconst _RubricScoreSchema = z.object({\n /** The rubric criterion this score answers. */\n criterionRef: z.string().min(1),\n /** 0–100 against the criterion's scale anchors. */\n score: z.number().min(0).max(100),\n /** One crisp sentence grounding the score in what was observed. */\n note: z.string().min(1),\n});\nexport const RubricScoreSchema: typeof _RubricScoreSchema = _RubricScoreSchema;\nexport type RubricScore = z.infer<typeof _RubricScoreSchema>;\n\n/**\n * One actionable critique inside a verdict — the REVISION FUEL. The\n * producer's revise step compiles the shortlist's critiques into the\n * revision (text: rewrite the draft; image: a regeneration prompt\n * addendum — the image transport has no edit operation).\n */\nconst _RubricCritiqueSchema = z.object({\n /** Which aspect of the candidate the critique targets. */\n targetAspect: z.string().min(1),\n /** What is wrong, grounded in the rubric/persona view. */\n critique: z.string().min(1),\n /** The concrete change that would address it. */\n suggestion: z.string().min(1),\n});\nexport const RubricCritiqueSchema: typeof _RubricCritiqueSchema =\n _RubricCritiqueSchema;\nexport type RubricCritique = z.infer<typeof _RubricCritiqueSchema>;\n\n/**\n * One reviewer's verdict on one candidate — the GENERIC,\n * strict-structured-output-safe judge contract (flat, all-required,\n * ref-keyed; \"nothing to report\" is an empty array, never an absent key).\n * This is the schema handed to the LLM; the rubric it scores against\n * travels in the PROMPT.\n */\nconst _RubricVerdictSchema = z.object({\n /** The reviewing expert's charter ref. */\n reviewerCharterRef: z.string().min(1),\n /** The candidate under review. */\n candidateRef: z.string().min(1),\n /** One score per rubric criterion (validated fail-closed, both ways). */\n scores: z.array(_RubricScoreSchema).min(1),\n /** Headline recommendation. */\n recommendation: z.enum(DeliberationRecommendation),\n /**\n * Actionable critiques (revision fuel). REQUIRED — \"no critiques\" is an\n * explicit empty array, never an absent key: this schema is handed to the\n * LLM, and the strict structured-output transport rejects any non-required\n * property (a `.default()` would emit one). The prompt contract mandates\n * `[]`, not the schema.\n */\n critiques: z.array(_RubricCritiqueSchema),\n /** The reviewer's overall reading of the candidate, one short paragraph. */\n overallNote: z.string().min(1),\n});\nexport const RubricVerdictSchema: typeof _RubricVerdictSchema =\n _RubricVerdictSchema;\nexport type RubricVerdict = z.infer<typeof _RubricVerdictSchema>;\n\n/**\n * One candidate as it exists inside a round's candidate set — a\n * DISCRIMINATED UNION on `provenance` so the audit invariant is enforced by\n * the schema, not by convention: a `REVISED` candidate MUST carry both\n * `revisedFromRef` and `revisionPrompt` (\"every revision is reproducible\n * from the record\"), while an `ORIGINAL` candidate carries neither.\n */\nconst _DeliberationCandidateOriginalSchema = z.object({\n /** Stable candidate ref (unique within the deliberation). */\n ref: z.string().min(1),\n /** Produced in round 1 from the creative brief. */\n provenance: z.literal(DeliberationCandidateProvenance.ORIGINAL),\n /**\n * Where the candidate's payload lives (staging-relative path or\n * artifact locator). The record stores locators, never payload bytes.\n */\n storageRef: z.string().min(1),\n});\nconst _DeliberationCandidateRevisedSchema = z.object({\n /** Stable candidate ref (unique within the deliberation). */\n ref: z.string().min(1),\n /** Produced by a critique-driven revision of a prior candidate. */\n provenance: z.literal(DeliberationCandidateProvenance.REVISED),\n /** The candidate this one revises. REQUIRED for revisions. */\n revisedFromRef: z.string().min(1),\n /**\n * The compiled revision instruction (text) or regeneration prompt\n * (image) — REQUIRED so every revision is reproducible from the record.\n */\n revisionPrompt: z.string().min(1),\n /** Where the candidate's payload lives (locator, never bytes). */\n storageRef: z.string().min(1),\n});\nconst _DeliberationCandidateSchema = z.discriminatedUnion('provenance', [\n _DeliberationCandidateOriginalSchema,\n _DeliberationCandidateRevisedSchema,\n]);\nexport const DeliberationCandidateSchema: typeof _DeliberationCandidateSchema =\n _DeliberationCandidateSchema;\nexport type DeliberationCandidate = z.infer<typeof _DeliberationCandidateSchema>;\n\n/**\n * One critique-revise round: the candidate set reviewed, every verdict\n * collected, and the coordinator's shortlist (the COST SPINE — round 1\n * reviews the full set, the coordinator shortlists top-K, rounds 2+\n * operate on the shortlist only; the panel never re-litigates eliminated\n * options).\n */\nconst _DeliberationRoundSchema = z.object({\n /** 1-based round number. */\n roundNumber: z.number().int().min(1),\n /** The candidates reviewed this round. */\n candidateSet: z.array(_DeliberationCandidateSchema).min(1),\n /** Every reviewer verdict collected this round (dissent preserved). */\n verdicts: z.array(_RubricVerdictSchema),\n /** The coordinator's shortlist feeding the next round (absent on the final round). */\n shortlistRefs: z.array(z.string().min(1)).optional(),\n});\nexport const DeliberationRoundSchema: typeof _DeliberationRoundSchema =\n _DeliberationRoundSchema;\nexport type DeliberationRound = z.infer<typeof _DeliberationRoundSchema>;\n\n/** A dissenting position preserved in the synthesis (never averaged away). */\nconst _DeliberationDissentSchema = z.object({\n /** The dissenting expert's charter ref. */\n charterRef: z.string().min(1),\n /** The dissenting position, in the expert's own terms. */\n position: z.string().min(1),\n});\nexport const DeliberationDissentSchema: typeof _DeliberationDissentSchema =\n _DeliberationDissentSchema;\nexport type DeliberationDissent = z.infer<typeof _DeliberationDissentSchema>;\n\n/**\n * The coordinator's synthesis — the \"manager's\" decision over the panel:\n * a winner, the grounded rationale, and every preserved dissent.\n * ADVISORY: the human decision seam on the record is the authority.\n */\nconst _DeliberationSynthesisSchema = z.object({\n /** The winning candidate ref. */\n winnerRef: z.string().min(1),\n /** Why the winner beats the field, grounded in verdicts + rubric. */\n rationale: z.string().min(1),\n /**\n * Dissenting positions, preserved verbatim. REQUIRED — unanimity is an\n * explicit empty array (the coordinator's synthesis is LLM-generated;\n * same strict structured-output discipline as the verdict's `critiques`).\n */\n dissent: z.array(_DeliberationDissentSchema),\n});\nexport const DeliberationSynthesisSchema: typeof _DeliberationSynthesisSchema =\n _DeliberationSynthesisSchema;\nexport type DeliberationSynthesis = z.infer<typeof _DeliberationSynthesisSchema>;\n\n/**\n * DETERMINISTIC lens accounting for the winner — computed by the machinery from the\n * final round's verdicts, never asked of a model.\n *\n * The floor and the coverage rules guarantee the winner was scored by every required\n * lens. What they cannot show is HOW those lenses split, and that is the difference\n * between consensus and a bare majority: \"two lenses accepted\" and \"one accepted, one\n * wanted revision\" produce an identical `synthesis`, because the coordinator writes\n * prose and prose can round a split into agreement.\n *\n * Kept OUT of {@link DeliberationSynthesis} on purpose. That object is model-generated;\n * a count that can be generated is a count that can be wrong, and the whole point here\n * is a number a reader can trust without re-reading every verdict.\n */\nconst _DeliberationConcurrenceSchema = z.object({\n /** The candidate these counts describe. */\n winnerRef: z.string().min(1),\n /** Distinct reviewer lenses that scored the winner. */\n lensCount: z.number().int().min(0),\n /** How those lenses split. Unanimity is `accept === lensCount`. */\n byRecommendation: z.object({\n accept: z.number().int().min(0),\n revise: z.number().int().min(0),\n reject: z.number().int().min(0),\n }),\n});\nexport const DeliberationConcurrenceSchema: typeof _DeliberationConcurrenceSchema =\n _DeliberationConcurrenceSchema;\nexport type DeliberationConcurrence = z.infer<typeof _DeliberationConcurrenceSchema>;\n\n/** Who sat at the table. */\nconst _DeliberationParticipantsSchema = z.object({\n /** The producing agent (image/text generator) — an agent ref, not a charter. */\n producerAgentRef: z.string().min(1),\n /** The reviewing experts' charter refs (the panel). */\n reviewerCharterRefs: z.array(z.string().min(1)).min(1),\n /** The coordinating expert's charter ref (synthesis + shortlist + convergence). */\n coordinatorCharterRef: z.string().min(1),\n});\nexport const DeliberationParticipantsSchema: typeof _DeliberationParticipantsSchema =\n _DeliberationParticipantsSchema;\nexport type DeliberationParticipants = z.infer<typeof _DeliberationParticipantsSchema>;\n\n/** The human decision over an advisory synthesis (the actual authority). */\nconst _DeliberationHumanDecisionSchema = z.object({\n /** What the human decided (accepted ref, override, or rejection note). */\n decision: z.string().min(1),\n /** ISO-8601 decision moment. */\n decidedAt: z.iso.datetime(),\n});\nexport const DeliberationHumanDecisionSchema: typeof _DeliberationHumanDecisionSchema =\n _DeliberationHumanDecisionSchema;\nexport type DeliberationHumanDecision = z.infer<typeof _DeliberationHumanDecisionSchema>;\n\n/**\n * The full minutes of one deliberation — rubric (embedded, constant),\n * participants, every round with every verdict, the synthesis, and the\n * human decision seam.\n *\n * PERSISTENCE: a deliberation is a BUILD-TIME companion artifact. The\n * engine machinery RETURNS this record and never persists it; the\n * companion writes it to its staging area\n * (`.wildo-saas/generated/deliberations/`). It is deliberately NOT hosted\n * on the flows-actors execution resources (`user`/`organization`/`applicationFlowActorExecutions`)\n * — those are scope-owned RUNTIME data (conversational history), the wrong tier\n * for build-time creative decisions.\n */\nconst _DeliberationRecordSchema = z.object({\n /** Unique deliberation id (companion-minted). */\n deliberationRef: z.string().min(1),\n /** The work domain deliberated. */\n workDomain: z.enum(ExpertWorkDomain),\n /**\n * The candidate payload modality. Drives the revision path: TEXT\n * revises the draft; IMAGE regenerates with a critique addendum (the\n * image transport has no edit operation). Other kinds are fail-closed\n * at execution until they have honest transports.\n */\n subjectKind: z.enum(FlowsActors_IO_PartKind),\n /** The derived rubric (embedded; constant across this record's rounds). */\n rubric: _EvaluationRubricSchema,\n participants: _DeliberationParticipantsSchema,\n /** The rounds, in order. Appended as the deliberation progresses. */\n rounds: z.array(_DeliberationRoundSchema).default([]),\n /**\n * Deterministic lens accounting for the winner, beside the synthesis it describes.\n * Absent exactly when `synthesis` is.\n */\n concurrence: _DeliberationConcurrenceSchema.optional(),\n /** The coordinator's synthesis (absent while RUNNING, on FAILED, and on REJECTED — a rejected field has no winner to synthesise). */\n synthesis: _DeliberationSynthesisSchema.optional(),\n /** Max rounds before the coordinator must synthesize (cost bound). */\n roundBudget: z.number().int().min(1),\n status: z.enum(DeliberationStatus),\n /** The human authority's decision; null until the human acts. */\n humanDecision: _DeliberationHumanDecisionSchema.nullable().default(null),\n /** ISO-8601 timestamps. */\n startedAt: z.iso.datetime(),\n finishedAt: z.iso.datetime().optional(),\n});\nexport const DeliberationRecordSchema: typeof _DeliberationRecordSchema =\n _DeliberationRecordSchema;\nexport type DeliberationRecord = z.infer<typeof _DeliberationRecordSchema>;\n\n//===============================================================\n// LLM-facing pass contracts (deliberation orchestration)\n// ------------------------------------------------------------\n// The schemas HANDED TO THE MODEL by each orchestration pass. They are\n// the stamped-fields-free projections of the record contracts above:\n// identity/provenance fields (charter refs, candidate refs, timestamps,\n// work domain) are stamped DETERMINISTICALLY by the machinery — a model\n// never authors its own audit trail. Flat, all-required (strict\n// structured-output discipline; \"empty\" is []/'' by prompt contract).\n//===============================================================\n\n/**\n * Rubric-derivation pass output: the criteria only. The machinery stamps\n * `workDomain` / `derivedFromCharterRef` / `derivedAt` and validates the\n * assembled rubric through `EvaluationRubricSchema` (unique-ref refine).\n */\nconst _DeliberationRubricOutputSchema = z.object({\n criteria: z.array(_EvaluationCriterionSchema).min(1),\n});\nexport const DeliberationRubricOutputSchema: typeof _DeliberationRubricOutputSchema =\n _DeliberationRubricOutputSchema;\nexport type DeliberationRubricOutput = z.infer<typeof _DeliberationRubricOutputSchema>;\nconst _DeliberationRubricOutputStrictSchema = z.object({\n criteria: z.array(_EvaluationCriterionSchema.strict()).min(1),\n}).strict();\nexport const DeliberationRubricOutputStrictSchema: typeof _DeliberationRubricOutputStrictSchema =\n _DeliberationRubricOutputStrictSchema;\n\n/** One wire-level score entry inside {@link DeliberationReviewWireOutput}. */\nexport interface DeliberationReviewWireScore {\n /** 0–100 against the criterion's scale anchors. */\n score: number;\n /** One crisp sentence grounding the score in what was observed. */\n note: string;\n}\n\n/**\n * Review pass output as it crosses the LLM wire: `RubricVerdict` minus the\n * stamped identity fields, with `scores` as an OBJECT keyed by criterion ref.\n */\nexport interface DeliberationReviewWireOutput {\n scores: Record<string, DeliberationReviewWireScore>;\n recommendation: DeliberationRecommendation;\n critiques: RubricCritique[];\n overallNote: string;\n}\n\n/**\n * Build the PER-RUN review wire schema for one rubric: `scores` is a strict\n * object with EXACTLY the rubric's criterion refs as required keys.\n *\n * Why per-run instead of a static array-of-scores contract: the rubric is\n * per-run DATA (derived at deliberation start), and an array `scores` shape\n * leaves the \"one score per criterion\" invariant to the model's discipline —\n * live runs showed a ~25% first-attempt rejection rate from DUPLICATED\n * criterion entries (the model restating the criterion it cared most about;\n * 3/12 reviews on 2026-07-17, each burning a full vision-call retry). Keying\n * the object by the exact refs makes duplicates and omissions STRUCTURALLY\n * impossible at the decode layer instead of prompt-begged. The machinery\n * reshapes the record into the array-shaped `RubricVerdict` for storage and\n * still runs `validateVerdictCriterionRefs` as the belt-and-braces invariant.\n *\n * The schema is `.strict()` end-to-end (hallucinated refs fail decode) and\n * all-required (strict structured-output transports reject optionals).\n */\nexport function buildDeliberationReviewWireSchema(\n rubric: EvaluationRubric,\n): z.ZodType<DeliberationReviewWireOutput> {\n const scoreValue = z.object({\n score: z.number().min(0).max(100),\n note: z.string().min(1),\n }).strict();\n const scoresShape = Object.fromEntries(\n rubric.criteria.map((criterion) => [criterion.ref, scoreValue]),\n );\n return z.object({\n scores: z.object(scoresShape).strict(),\n recommendation: z.enum(DeliberationRecommendation),\n critiques: z.array(_RubricCritiqueSchema.strict()),\n overallNote: z.string().min(1),\n }).strict() as unknown as z.ZodType<DeliberationReviewWireOutput>;\n}\n\n/** The coordinator's per-round directive. */\nexport enum DeliberationRoundDirective {\n /** The outcome is settled — proceed to synthesis (converged). */\n FINALIZE = \"finalize\",\n /** Shortlist the strongest candidates and run a revision round. */\n REVISE_SHORTLIST = \"revise_shortlist\",\n}\n\n/**\n * Coordinator round pass output. On `FINALIZE`, `shortlistRefs` is an\n * explicit empty array (prompt contract). The machinery validates\n * `shortlistRefs` ⊆ the round's candidate refs and caps it at the plan's\n * shortlist size — an invalid echo falls back to the top-K by\n * deterministic aggregate.\n */\nconst _DeliberationCoordinatorRoundOutputSchema = z.object({\n directive: z.enum(DeliberationRoundDirective),\n /** The candidates to revise next round (empty on FINALIZE). */\n shortlistRefs: z.array(z.string().min(1)),\n /** Why this directive, grounded in the verdicts. */\n rationale: z.string().min(1),\n});\nexport const DeliberationCoordinatorRoundOutputSchema: typeof _DeliberationCoordinatorRoundOutputSchema =\n _DeliberationCoordinatorRoundOutputSchema;\nexport type DeliberationCoordinatorRoundOutput = z.infer<typeof _DeliberationCoordinatorRoundOutputSchema>;\nconst _DeliberationCoordinatorRoundOutputStrictSchema =\n _DeliberationCoordinatorRoundOutputSchema.strict();\nexport const DeliberationCoordinatorRoundOutputStrictSchema: typeof _DeliberationCoordinatorRoundOutputStrictSchema =\n _DeliberationCoordinatorRoundOutputStrictSchema;\n\n// The synthesis pass hands `DeliberationSynthesisSchema` itself to the model\n// (it is already flat + all-required); the machinery validates `winnerRef`\n// against the final candidate set (fallback: top deterministic aggregate)\n// and filters dissent entries to known reviewer charter refs.\nconst _DeliberationSynthesisStrictSchema = z.object({\n winnerRef: z.string().min(1),\n rationale: z.string().min(1),\n dissent: z.array(_DeliberationDissentSchema.strict()),\n}).strict();\nexport const DeliberationSynthesisStrictSchema: typeof _DeliberationSynthesisStrictSchema =\n _DeliberationSynthesisStrictSchema;\n\n//===============================================================\n// Deliberation plan (engine-machinery input — TS types, not Zod:\n// the plan carries a live PRODUCER CALLBACK)\n//===============================================================\n\n/**\n * A candidate's payload as the machinery consumes it (kind-discriminated).\n *\n * STRUCTURED exists because some subjects a panel must judge are DATA, not prose\n * or pixels — a placement plan, a schema proposal, a configuration. Serializing\n * such a candidate to text and parsing the winner back was the alternative, and\n * it was rejected: it makes the artifact's shape a prompt-formatting concern and\n * gives the round-trip somewhere to lose a field.\n */\nexport type DeliberationCandidateContent =\n | { kind: FlowsActors_IO_PartKind.TEXT; text: string }\n | { kind: FlowsActors_IO_PartKind.IMAGE; imageDataUri: string }\n | {\n kind: FlowsActors_IO_PartKind.STRUCTURED;\n /** The candidate value itself. This is what wins, and it is what reviewers are shown. */\n value: unknown;\n /**\n * OPTIONAL human-readable framing rendered ABOVE the value — never instead of it.\n *\n * The caller owns domain knowledge the engine does not (what a `groupRef`\n * means, why an order matters), so it may help a reviewer read the data. It\n * may NOT replace the data: a projection can drift from the value it\n * describes, and then the panel scores the prose while the winner is the\n * bytes — real evidence about the wrong target, with a green run concealing\n * it because the conclusion still looks plausible. The engine therefore\n * always renders `value`, and pins that a contradicting projection loses.\n */\n projection?: string;\n };\n\n/** One candidate handed to (or produced for) the machinery. */\nexport interface DeliberationCandidateInput {\n /** Stable candidate ref (unique within the deliberation). */\n ref: string;\n /** Locator the record stores (the caller owns the bytes). */\n storageRef: string;\n content: DeliberationCandidateContent;\n}\n\n/**\n * The CALLER-owned revision producer (RF-2: the engine never persists; the\n * companion owns candidate bytes). The machinery compiles the deterministic\n * `revisionPrompt` from the shortlisted candidate's critiques (RF-4:\n * TEXT revises the draft, IMAGE regenerates — both reduce to \"produce a new\n * candidate from parent + instruction\" at this seam) and the producer\n * returns the NEW candidate (fresh ref + persisted payload).\n */\nexport interface DeliberationProducer {\n produceRevision(\n parent: DeliberationCandidateInput,\n revisionPrompt: string,\n ): Promise<DeliberationCandidateInput>;\n}\n\n/** One expert seat at the table: the runtime profile + the agent built from its charter. */\nexport interface DeliberationExpertBinding {\n profile: RuntimeExpertProfile;\n agentRef: string;\n}\n\n/**\n * The full input of `executeDeliberation` — composed by the COMPANION\n * (which owns charters, agents, candidate bytes, and persistence); the\n * engine machinery owns only the orchestration semantics.\n */\nexport interface DeliberationPlan {\n deliberationRef: string;\n workDomain: ExpertWorkDomain;\n /** TEXT | IMAGE — anything else is fail-closed at execution. */\n subjectKind: FlowsActors_IO_PartKind;\n /** The assembled work-product brief every pass is grounded on. */\n briefContext: string;\n /** The reviewing panel (min 1). Narrowness is enforced by the COMPOSER. */\n reviewers: DeliberationExpertBinding[];\n /** The coordinator (shortlist + convergence + synthesis). */\n coordinator: DeliberationExpertBinding;\n /** The expert who derives the rubric (usually the domain owner). */\n rubricDeriver: DeliberationExpertBinding;\n /** Recorded as `participants.producerAgentRef` (audit). */\n producerAgentRef: string;\n producer: DeliberationProducer;\n initialCandidates: DeliberationCandidateInput[];\n /** Max rounds before forced synthesis (locked default 2, max 3). */\n roundBudget: number;\n /** Top-K candidates revised per round (RF-5 cost funnel). */\n shortlistSize: number;\n}\n\n//===============================================================\n// Deterministic helpers (never model arithmetic)\n//===============================================================\n\n/**\n * Result of the fail-closed criterion-ref validation of one verdict\n * against the rubric it claims to score.\n */\nexport interface VerdictCriterionRefsValidation {\n /** `true` iff the rubric is well-formed AND the verdict scores EXACTLY its criteria (no more, no less, no dupes). */\n ok: boolean;\n /** Refs in the verdict that do not exist in the rubric (hallucinated). Deduplicated. */\n unknownRefs: string[];\n /** Rubric criteria the verdict did not score. */\n missingRefs: string[];\n /** Refs scored more than once in the verdict. */\n duplicateRefs: string[];\n /**\n * Refs appearing more than once in the RUBRIC itself. The schema's\n * uniqueness refine rejects these at parse time; this re-check is the\n * fail-closed defense for in-process-constructed rubrics that skipped\n * parsing — a duplicated rubric ref would silently DOUBLE-WEIGHT that\n * criterion in the aggregate.\n */\n duplicateRubricRefs: string[];\n}\n\n/**\n * Fail-closed validation that a verdict's scores line up 1:1 with a\n * well-formed rubric's criteria. A verdict with hallucinated, missing, or\n * duplicated refs must be rejected (the machinery retries once with the\n * error surfaced, then drops the reviewer from the round with a quorum\n * note); a malformed rubric (duplicate refs) fails regardless of the\n * verdict.\n */\nexport function validateVerdictCriterionRefs(\n rubric: EvaluationRubric,\n verdict: RubricVerdict,\n): VerdictCriterionRefsValidation {\n const rubricRefs = new Set<string>();\n const duplicateRubricRefs: string[] = [];\n for (const criterion of rubric.criteria) {\n if (rubricRefs.has(criterion.ref) && !duplicateRubricRefs.includes(criterion.ref)) {\n duplicateRubricRefs.push(criterion.ref);\n }\n rubricRefs.add(criterion.ref);\n }\n\n const seen = new Set<string>();\n const unknownRefs: string[] = [];\n const duplicateRefs: string[] = [];\n for (const score of verdict.scores) {\n if (!rubricRefs.has(score.criterionRef) && !unknownRefs.includes(score.criterionRef)) {\n unknownRefs.push(score.criterionRef);\n }\n if (seen.has(score.criterionRef) && !duplicateRefs.includes(score.criterionRef)) {\n duplicateRefs.push(score.criterionRef);\n }\n seen.add(score.criterionRef);\n }\n\n const missingRefs = [...rubricRefs].filter((ref) => !seen.has(ref));\n return {\n ok:\n unknownRefs.length === 0\n && missingRefs.length === 0\n && duplicateRefs.length === 0\n && duplicateRubricRefs.length === 0,\n unknownRefs,\n missingRefs,\n duplicateRefs,\n duplicateRubricRefs,\n };\n}\n\n/**\n * Deterministic weighted aggregate of one verdict against the rubric:\n * `sum(weight_i × score_i) / sum(weight_i)` over the rubric's criteria,\n * on the verdict's 0–100 scale. Model-computed totals are never trusted —\n * this is the ONLY sanctioned aggregation.\n *\n * Throws if the verdict does not validate against the rubric\n * (`validateVerdictCriterionRefs`) — aggregating a malformed verdict\n * would silently misweight; callers must validate (and retry/drop) first.\n */\nexport function aggregateWeightedScore(\n rubric: EvaluationRubric,\n verdict: RubricVerdict,\n): number {\n const validation = validateVerdictCriterionRefs(rubric, verdict);\n if (!validation.ok) {\n throw new Error(\n `Cannot aggregate a verdict that does not match its rubric ` +\n `(unknown: [${validation.unknownRefs.join(\", \")}], ` +\n `missing: [${validation.missingRefs.join(\", \")}], ` +\n `duplicate: [${validation.duplicateRefs.join(\", \")}], ` +\n `duplicate rubric refs: [${validation.duplicateRubricRefs.join(\", \")}]).`,\n );\n }\n\n const scoreByRef = new Map(verdict.scores.map((score) => [score.criterionRef, score.score]));\n let weightedSum = 0;\n let weightSum = 0;\n for (const criterion of rubric.criteria) {\n // Ref alignment is guaranteed by the validation above.\n weightedSum += criterion.weight * (scoreByRef.get(criterion.ref) as number);\n weightSum += criterion.weight;\n }\n return weightedSum / weightSum;\n}\n"]}
|
package/dist/esm/flows-actors/flows-actors-execution.shared.resources-config.schemas.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flows-actors-execution.shared.resources-config.schemas.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"flows-actors-execution.shared.resources-config.schemas.d.ts","sourceRoot":"","sources":["../../../src/flows-actors/flows-actors-execution.shared.resources-config.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,OAAO,EAAE,qBAAqB,EAAoB,MAAM,gDAAgD,CAAC;AA6DzG;;;;;;;;;GASG;AACH,eAAO,MAAM,uCAAuC,oRAiJnD,CAAC"}
|
|
@@ -84,6 +84,20 @@ export declare const FlowActorExecution_PausedApprovalSchema: z.ZodObject<{
|
|
|
84
84
|
expiresAt: z.ZodOptional<z.ZodString>;
|
|
85
85
|
}, z.core.$strip>;
|
|
86
86
|
export type FlowActorExecution_PausedApproval = z.infer<typeof FlowActorExecution_PausedApprovalSchema>;
|
|
87
|
+
/**
|
|
88
|
+
* How long a human has to answer an approval-gated tool call before the turn is refused.
|
|
89
|
+
*
|
|
90
|
+
* **24 hours.** An agent pausing for a person should span a working day plus a night, so a request
|
|
91
|
+
* raised late in the afternoon is still answerable the next morning. Much beyond that and the
|
|
92
|
+
* decision stops being meaningful rather than merely late: the person is approving a tool call made
|
|
93
|
+
* against a conversation, a world and an intent that have all moved on, and "do you approve this?"
|
|
94
|
+
* with no memory of the question is a prompt people click through.
|
|
95
|
+
*
|
|
96
|
+
* A framework default rather than an operator knob, for now. If an application ever needs its own,
|
|
97
|
+
* the knob goes beside the consent lifetime in the auth config — but nobody has asked, and a
|
|
98
|
+
* timeout that every application authors identically is a default wearing a config field.
|
|
99
|
+
*/
|
|
100
|
+
export declare const FLOW_ACTOR_APPROVAL_DEFAULT_TIMEOUT_MS: number;
|
|
87
101
|
/** Serialize paused-approval state for the scalar `pausedApproval` string column. */
|
|
88
102
|
export declare function serializeFlowActorPausedApproval(state: FlowActorExecution_PausedApproval): string;
|
|
89
103
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flows-actors-execution.shared.schemas.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"flows-actors-execution.shared.schemas.d.ts","sourceRoot":"","sources":["../../../src/flows-actors/flows-actors-execution.shared.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAA2E,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAGpJ,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAM5E,OAAO,EAGL,KAAK,4BAA4B,EAClC,MAAM,kDAAkD,CAAC;AAQ1D;;;;;GAKG;AACH,oBAAY,4BAA4B;IACtC,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED;;;;;GAKG;AACH,oBAAY,8BAA8B;IACxC,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,IAAI,SAAS;CACd;AAED,eAAO,MAAM,gCAAgC;;;;;;;iBAwB3C,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAE1F;;;;;;;GAOG;AACH,eAAO,MAAM,uCAAuC;;;;;;;iBA4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