@wildo-ai/platform-core-shared 1.1.11 → 1.1.13
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/core/resources/resources-operations.custom.shared.definitions.d.ts.map +1 -1
- package/dist/esm/core/resources/resources-operations.custom.shared.definitions.js.map +1 -1
- package/dist/esm/core/resources/resources-relationships.custom.shared.definitions.d.ts.map +1 -1
- package/dist/esm/core/resources/resources-relationships.custom.shared.definitions.js.map +1 -1
- package/dist/esm/core/resources/resources-types.custom.shared.schemas.d.ts.map +1 -1
- package/dist/esm/core/resources/resources-types.custom.shared.schemas.js.map +1 -1
- package/dist/esm/dev-runtime/dependency-install-record.d.ts +111 -0
- package/dist/esm/dev-runtime/dependency-install-record.d.ts.map +1 -0
- package/dist/esm/dev-runtime/dependency-install-record.js +185 -0
- package/dist/esm/dev-runtime/dependency-install-record.js.map +1 -0
- package/dist/esm/dev-runtime/dev-runtime-command.d.ts +50 -0
- package/dist/esm/dev-runtime/dev-runtime-command.d.ts.map +1 -0
- package/dist/esm/dev-runtime/dev-runtime-command.js +147 -0
- package/dist/esm/dev-runtime/dev-runtime-command.js.map +1 -0
- package/dist/esm/dev-runtime/dev-runtime-processes.d.ts +47 -0
- package/dist/esm/dev-runtime/dev-runtime-processes.d.ts.map +1 -0
- package/dist/esm/dev-runtime/dev-runtime-processes.js +163 -0
- package/dist/esm/dev-runtime/dev-runtime-processes.js.map +1 -0
- package/dist/esm/dev-runtime/dev-runtime-signals.d.ts +54 -0
- package/dist/esm/dev-runtime/dev-runtime-signals.d.ts.map +1 -0
- package/dist/esm/dev-runtime/dev-runtime-signals.js +113 -0
- package/dist/esm/dev-runtime/dev-runtime-signals.js.map +1 -0
- package/dist/esm/dev-runtime/emitted-relative-specifiers.d.ts +14 -0
- package/dist/esm/dev-runtime/emitted-relative-specifiers.d.ts.map +1 -0
- package/dist/esm/dev-runtime/emitted-relative-specifiers.js +71 -0
- package/dist/esm/dev-runtime/emitted-relative-specifiers.js.map +1 -0
- package/dist/esm/dev-runtime/frontend-dev-runtime.d.ts +43 -0
- package/dist/esm/dev-runtime/frontend-dev-runtime.d.ts.map +1 -0
- package/dist/esm/dev-runtime/frontend-dev-runtime.js +42 -0
- package/dist/esm/dev-runtime/frontend-dev-runtime.js.map +1 -0
- package/dist/esm/dev-runtime/node-runtime-dev-supervisor.d.ts +233 -0
- package/dist/esm/dev-runtime/node-runtime-dev-supervisor.d.ts.map +1 -0
- package/dist/esm/dev-runtime/node-runtime-dev-supervisor.js +578 -0
- package/dist/esm/dev-runtime/node-runtime-dev-supervisor.js.map +1 -0
- package/dist/esm/dev-runtime/package-compile-loop.d.ts +125 -0
- package/dist/esm/dev-runtime/package-compile-loop.d.ts.map +1 -0
- package/dist/esm/dev-runtime/package-compile-loop.js +386 -0
- package/dist/esm/dev-runtime/package-compile-loop.js.map +1 -0
- package/dist/esm/dev-runtime.exports.d.ts +19 -0
- package/dist/esm/dev-runtime.exports.d.ts.map +1 -0
- package/dist/esm/dev-runtime.exports.js +19 -0
- package/dist/esm/dev-runtime.exports.js.map +1 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +4 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/runtime/application-backend-env.contracts.d.ts +9 -2
- package/dist/esm/runtime/application-backend-env.contracts.d.ts.map +1 -1
- package/dist/esm/runtime/application-backend-env.contracts.js +8 -1
- package/dist/esm/runtime/application-backend-env.contracts.js.map +1 -1
- package/dist/esm/runtime/application-worker-env.contracts.d.ts +11 -3
- package/dist/esm/runtime/application-worker-env.contracts.d.ts.map +1 -1
- package/dist/esm/runtime/application-worker-env.contracts.js +9 -0
- package/dist/esm/runtime/application-worker-env.contracts.js.map +1 -1
- package/dist/esm/runtime/backend-start-outcome.contracts.d.ts +27 -0
- package/dist/esm/runtime/backend-start-outcome.contracts.d.ts.map +1 -1
- package/dist/esm/runtime/backend-start-outcome.contracts.js +34 -0
- package/dist/esm/runtime/backend-start-outcome.contracts.js.map +1 -1
- package/dist/esm/runtime/frontend-settings-hub-wiring.contracts.d.ts +28 -0
- package/dist/esm/runtime/frontend-settings-hub-wiring.contracts.d.ts.map +1 -0
- package/dist/esm/runtime/frontend-settings-hub-wiring.contracts.js +35 -0
- package/dist/esm/runtime/frontend-settings-hub-wiring.contracts.js.map +1 -0
- package/dist/esm/runtime/http-server-env.contracts.d.ts +14 -1
- package/dist/esm/runtime/http-server-env.contracts.d.ts.map +1 -1
- package/dist/esm/runtime/http-server-env.contracts.js +13 -0
- package/dist/esm/runtime/http-server-env.contracts.js.map +1 -1
- package/dist/esm/runtime/local-dev-runtime-signals.contracts.d.ts +239 -0
- package/dist/esm/runtime/local-dev-runtime-signals.contracts.d.ts.map +1 -0
- package/dist/esm/runtime/local-dev-runtime-signals.contracts.js +256 -0
- package/dist/esm/runtime/local-dev-runtime-signals.contracts.js.map +1 -0
- package/dist/esm/runtime/runtime-topology.contracts.d.ts.map +1 -1
- package/dist/esm/runtime/runtime-topology.contracts.js.map +1 -1
- package/dist/esm/security/authorizations/roles.custom.shared.definitions.d.ts.map +1 -1
- package/dist/esm/security/authorizations/roles.custom.shared.definitions.js.map +1 -1
- package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.resources-config.schemas.d.ts +112 -104
- package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.resources-config.schemas.js +4 -3
- package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.schemas.d.ts +112 -104
- package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.schemas.d.ts.map +1 -1
- package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.schemas.js.map +1 -1
- package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.resources-config.schemas.d.ts +24 -34
- package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.resources-config.schemas.js +4 -3
- package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.d.ts +24 -34
- package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.d.ts.map +1 -1
- package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.js.map +1 -1
- package/dist/esm/wildo-applications/wildo-applications.custom.shared.resources-config.schemas.d.ts +3 -3
- package/dist/esm/wildo-applications/wildo-applications.custom.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/wildo-applications/wildo-applications.custom.shared.resources-config.schemas.js +30 -42
- package/dist/esm/wildo-applications/wildo-applications.custom.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/wildo-applications/wildo-applications.custom.shared.schemas.d.ts +9 -9
- package/dist/esm/wildo-applications/wildo-applications.custom.shared.schemas.d.ts.map +1 -1
- package/dist/esm/wildo-applications/wildo-applications.custom.shared.schemas.js.map +1 -1
- package/dist/esm/wildo-applications-versions/wildo-applications-versions.custom.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/wildo-applications-versions/wildo-applications-versions.custom.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/wildo-applications-versions/wildo-applications-versions.custom.shared.schemas.d.ts +7 -7
- package/dist/esm/wildo-applications-versions/wildo-applications-versions.custom.shared.schemas.d.ts.map +1 -1
- package/dist/esm/wildo-applications-versions/wildo-applications-versions.custom.shared.schemas.js.map +1 -1
- package/dist/esm/workbench/creation-drive.custom.shared.schemas.d.ts +82 -0
- package/dist/esm/workbench/creation-drive.custom.shared.schemas.d.ts.map +1 -0
- package/dist/esm/workbench/creation-drive.custom.shared.schemas.js +73 -0
- package/dist/esm/workbench/creation-drive.custom.shared.schemas.js.map +1 -0
- package/dist/esm/workbench/creation-journey-timeline.custom.shared.schemas.d.ts +183 -0
- package/dist/esm/workbench/creation-journey-timeline.custom.shared.schemas.d.ts.map +1 -0
- package/dist/esm/workbench/creation-journey-timeline.custom.shared.schemas.js +188 -0
- package/dist/esm/workbench/creation-journey-timeline.custom.shared.schemas.js.map +1 -0
- package/dist/esm/workbench/workbench-aspect-resources.custom.shared.schemas.d.ts.map +1 -1
- package/dist/esm/workbench/workbench-aspect-resources.custom.shared.schemas.js +46 -0
- package/dist/esm/workbench/workbench-aspect-resources.custom.shared.schemas.js.map +1 -1
- package/dist/esm/workbench/workbench-creation-console.custom.shared.schemas.d.ts +170 -7
- package/dist/esm/workbench/workbench-creation-console.custom.shared.schemas.d.ts.map +1 -1
- package/dist/esm/workbench/workbench-creation-console.custom.shared.schemas.js +177 -7
- package/dist/esm/workbench/workbench-creation-console.custom.shared.schemas.js.map +1 -1
- package/dist/esm/workbench/workbench-creation-conversation.custom.shared.schemas.d.ts.map +1 -1
- package/dist/esm/workbench/workbench-creation-conversation.custom.shared.schemas.js.map +1 -1
- package/dist/esm/workbench/workbench-creation-dossier.custom.shared.schemas.d.ts.map +1 -1
- package/dist/esm/workbench/workbench-creation-dossier.custom.shared.schemas.js.map +1 -1
- package/dist/esm/workbench/workbench-creation-plane.custom.shared.resources-config.schemas.d.ts +480 -459
- package/dist/esm/workbench/workbench-creation-plane.custom.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/workbench/workbench-creation-plane.custom.shared.resources-config.schemas.js +21 -16
- package/dist/esm/workbench/workbench-creation-plane.custom.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/workbench/workbench-creation-plane.custom.shared.schemas.d.ts +480 -278
- package/dist/esm/workbench/workbench-creation-plane.custom.shared.schemas.d.ts.map +1 -1
- package/dist/esm/workbench/workbench-creation-plane.custom.shared.schemas.js +316 -46
- package/dist/esm/workbench/workbench-creation-plane.custom.shared.schemas.js.map +1 -1
- package/dist/esm/workbench/workbench-domain-model.custom.shared.schemas.d.ts.map +1 -1
- package/dist/esm/workbench/workbench-domain-model.custom.shared.schemas.js.map +1 -1
- package/dist/esm/workbench/workbench-resources-types.custom.shared.schemas.d.ts +7 -0
- package/dist/esm/workbench/workbench-resources-types.custom.shared.schemas.d.ts.map +1 -1
- package/dist/esm/workbench/workbench-resources-types.custom.shared.schemas.js +13 -1
- package/dist/esm/workbench/workbench-resources-types.custom.shared.schemas.js.map +1 -1
- package/dist/esm/workbench/workbench-resources.custom.shared.resources-config.schemas.d.ts +287 -277
- package/dist/esm/workbench/workbench-resources.custom.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/workbench/workbench-resources.custom.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/workbench/workbench-resources.custom.shared.schemas.d.ts +34 -29
- package/dist/esm/workbench/workbench-resources.custom.shared.schemas.d.ts.map +1 -1
- package/dist/esm/workbench/workbench-resources.custom.shared.schemas.js +9 -5
- package/dist/esm/workbench/workbench-resources.custom.shared.schemas.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +13 -8
package/dist/esm/wildo-applications/wildo-applications.custom.shared.resources-config.schemas.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wildo-applications.custom.shared.resources-config.schemas.js","sourceRoot":"","sources":["../../../../src/wildo-applications/wildo-applications.custom.shared.resources-config.schemas.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAsC,qBAAqB,EAA0C,cAAc,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACpL,OAAO,EAAwB,4BAA4B,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACvH,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AAChG,OAAO,EAAE,0CAA0C,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K,EAAE,CAAC,cAAc,CAAC,WAAW,CAAC;oBACnC,SAAS,EAAE,0BAA0B,CAAC,GAAG;oBACzC,0CAA0C;iBAC3C;aACF;SACF;QAED,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE;YAC9B,QAAQ,EAAE;gBACR;oBACE,WAAW,EAAE,4BAA4B,CAAC,QAAQ;oBAClD,SAAS,EAAE,IAAI;oBACf,KAAK,EAAE,CAAC,cAAc,CAAC,UAAU,CAAC;oBAClC,SAAS,EAAE,0BAA0B,CAAC,GAAG;iBAC1C;aACF;SACF;KACF;IACD,iEAAiE;CAClE,CAAC,CAAC","sourcesContent":["/**\n * Billable Items Shared Resource Configuration\n * \n * Resource configuration for managing invoice line items and billable entries.\n * Handles creation, updates, and management of billable items across invoices.\n */\n\nimport { z } from 'zod';\n\n\nimport { coreResourceShared_FieldIdentifier, CoreResourceOperation, CoreResourceType, ResourceRelationship, CORE_APP_ROLES, ResourceSystemAccessMode } from '@wildo-ai/saas-models';\nimport { ResourcePrimaryScope, ResourceOperationVariantType, ResourceOperationRiskLevel } from '@wildo-ai/saas-models';\nimport { CoreUserNotificationTarget, CoreUserNotificationChannel } from '@wildo-ai/saas-models';\nimport { createResourceConfiguration_Initialization } from '@wildo-ai/saas-models';\nimport { CORE_ORG_ROLES } from '@wildo-ai/saas-models';\n\n\nimport {\n CustomShared_ResourceType,\n CustomShared_ResourceFieldIdentifier\n} from '../core/resources/resources-types.custom.shared.schemas';\nimport { Wildo_Application_Schema } from './wildo-applications.custom.shared.schemas';\n\n\nconst WildoApplications_Operations = undefined; \n\ntype WildoApplications_CoreOperations = \n | CoreResourceOperation.READ \n | CoreResourceOperation.LIST\n | CoreResourceOperation.SEARCH\n | CoreResourceOperation.CREATE\n | CoreResourceOperation.UPDATE\n | CoreResourceOperation.DELETE;\n\nexport const wildoApplications_ResourceConfiguration_InitializationFactory: (...args: any[]) => any = (resourcesRelationships: ResourceRelationship[]) => createResourceConfiguration_Initialization<\n typeof WildoApplications_Operations,\n WildoApplications_CoreOperations,\n typeof Wildo_Application_Schema\n>({\n mainSchema: Wildo_Application_Schema,\n resourceIdentifier: CustomShared_ResourceType.WILDO_APPLICATION,\n /**\n * A subject export never includes this row: it is a managed application's platform record (slug, status, topology) — infrastructure identity, no person.\n *\n * Answered explicitly because the privacy gate at boot asks every resource whether its rows\n * are about people. The unauthored default is already FORBIDDEN; writing it down is what turns\n * \"nobody asked\" into \"no\". Not `retentionPolicy: RETAIN_ONLY`, although it is the same claim:\n * that opt-in injects the `retentionStatus` / `impersonalizedAt` marker columns and demands the\n * retention write door (UPDATE_MANY) on a resource no erasure walk can reach — there is no\n * USERS edge — which is schema and surface for a path that never runs.\n */\n systemAccessPolicy: { exportSubject: ResourceSystemAccessMode.FORBIDDEN },\n /**\n * BOOTSTRAP-STORE pin RETIRED 2026-08-22 (item C). This resource now follows the platform's\n * configured engine like every other platform resource, instead of declaring MONGODB.\n *\n * The pin existed because this document was WRITTEN by a Mongo-wired plane an adapter override\n * could never redirect, so a PG-engined platform would READ it from PostgreSQL while the\n * bootstrap plane kept WRITING it to MongoDB. Its own contract named the two conditions that\n * would free it, and BOTH are now met — verified rather than assumed:\n *\n * 1. **The infra-manager's raw writers are ported.** `pnpm check:platform-bootstrap-raw-store`\n * inspects 49 files and reports no undeclared raw-driver access; its `--self-test` passes 14\n * cases, so the clean result is the checker working rather than a checker matching nothing.\n * The 8 remaining DECLARED exemptions all sit in the bootstrap seed, and they write\n * `organizations` and `applications` — neither of which is one of these six — through arms\n * that are already adapter-aware.\n * 2. **INIT's repository plane resolves the platform engine.** Phase 2.5\n * (`initializePlatformPostgresIfDeclared`, which calls\n * `setPlatformModeDefaultPersistenceAdapter`) runs BEFORE Phase 2.6 builds the registries —\n * an ordering the file marks as the one constraint that cannot be relaxed.\n *\n * Retired for all SIX declarations in one change, as the pin instructed (\"Never migrate one\n * declaration on its own\"): a partial retirement is precisely the split-brain the pin prevented.\n * `bootstrap-plane-persistence-adapter.test.ts` now asserts the inverse — that none of the six\n * declares an adapter — so re-pinning any single one fails the suite.\n *\n * NOTE the data consequence, which the pin never covered: flipping the engine does not MOVE\n * existing rows. A platform whose documents live in MongoDB must have them re-provisioned (or\n * migrated) into PostgreSQL, or it reads empty tables. See item G.\n */\n resourceFieldIdentifier: CustomShared_ResourceFieldIdentifier[CustomShared_ResourceType.WILDO_APPLICATION],\n resourceRelationships: resourcesRelationships,\n isSystemResource: false,\n \n coreOperations: [\n CoreResourceOperation.READ,\n CoreResourceOperation.LIST,\n CoreResourceOperation.SEARCH,\n CoreResourceOperation.CREATE,\n CoreResourceOperation.UPDATE,\n CoreResourceOperation.DELETE\n ],\n \n customOperation: WildoApplications_Operations,\n \n operationsConfiguration: {\n [CoreResourceOperation.CREATE]: {\n variants: [\n {\n variantType: ResourceOperationVariantType.API_CALL,\n isDefault: true,\n roles: [CORE_APP_ROLES.APP_ADMIN_SUPER_ADMIN],\n riskLevel: ResourceOperationRiskLevel.HIGH,\n // requestDto auto-derived from decorators\n }\n ],\n userNotifications: [\n {\n target: CoreUserNotificationTarget.USER_SELF,\n channel: CoreUserNotificationChannel.FRONT_END_SUCCESS,\n }\n ]\n },\n \n [CoreResourceOperation.READ]: {\n variants: [\n {\n variantType: ResourceOperationVariantType.API_CALL,\n isDefault: true,\n roles: [CORE_ORG_ROLES.ORG_MEMBER],\n riskLevel: ResourceOperationRiskLevel.LOW,\n }\n ]\n },\n \n [CoreResourceOperation.LIST]: {\n variants: [\n {\n variantType: ResourceOperationVariantType.API_CALL,\n isDefault: true,\n roles: [CORE_ORG_ROLES.ORG_MEMBER],\n riskLevel: ResourceOperationRiskLevel.LOW,\n }\n ]\n },\n\n [CoreResourceOperation.SEARCH]: {\n variants: [\n {\n variantType: ResourceOperationVariantType.API_CALL,\n isDefault: true,\n roles: [CORE_APP_ROLES.APP_ADMIN_SUPER_ADMIN],\n riskLevel: ResourceOperationRiskLevel.LOW,\n isSearchable: true,\n searchableFields: ['appSlug', 'organizationId'],\n searchableOptions: { caseSensitive: false, fullMatchOnly: false },\n filterFields: {\n organizationId: z.string(),\n },\n sortFields: ['appSlug', 'organizationId', 'createdAt', 'updatedAt'] as const,\n maxPaginatedResultPerPageLimit: 100,\n }\n ],\n },\n \n [CoreResourceOperation.UPDATE]: {\n variants: [\n {\n variantType: ResourceOperationVariantType.API_CALL,\n isDefault: true,\n roles: [CORE_ORG_ROLES.ORG_MANAGER],\n riskLevel: ResourceOperationRiskLevel.LOW,\n // requestDto auto-derived from decorators\n }\n ]\n },\n \n [CoreResourceOperation.DELETE]: {\n variants: [\n {\n variantType: ResourceOperationVariantType.API_CALL,\n isDefault: true,\n roles: [CORE_ORG_ROLES.ORG_MEMBER],\n riskLevel: ResourceOperationRiskLevel.LOW,\n }\n ]\n },\n },\n // responseSummaryDto auto-derived from isSummaryField decorators\n}); "]}
|
|
1
|
+
{"version":3,"file":"wildo-applications.custom.shared.resources-config.schemas.js","sourceRoot":"","sources":["../../../src/wildo-applications/wildo-applications.custom.shared.resources-config.schemas.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAsC,qBAAqB,EAA0C,cAAc,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACpL,OAAO,EAAwB,4BAA4B,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACvH,OAAO,EAAE,0CAA0C,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAGvD,OAAO,EACL,yBAAyB,EACzB,oCAAoC,EACrC,MAAM,yDAAyD,CAAC;AACjE,OAAO,EAAE,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AAGtF,MAAM,4BAA4B,GAAG,SAAS,CAAC;AAE/C;;;;;;;;;;;;;;;GAeG;AACH,SAAS,gCAAgC,CAAC,SAAqC;IAC7E,OAAO;QACL,WAAW,EAAE,4BAA4B,CAAC,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AQ;oBAClD,SAAS,EAAE,IAAI;oBACf,KAAK,EAAE,CAAC,cAAc,CAAC,UAAU,CAAC;oBAClC,SAAS,EAAE,0BAA0B,CAAC,GAAG;iBAC1C;aACF;SACF;QAED,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE;YAC9B,QAAQ,EAAE;gBACR;oBACE,WAAW,EAAE,4BAA4B,CAAC,QAAQ;oBAClD,SAAS,EAAE,IAAI;oBACf,KAAK,EAAE,CAAC,cAAc,CAAC,qBAAqB,CAAC;oBAC7C,SAAS,EAAE,0BAA0B,CAAC,GAAG;oBACzC,YAAY,EAAE,IAAI;oBAClB,gBAAgB,EAAE,CAAC,SAAS,EAAE,gBAAgB,CAAC;oBAC/C,iBAAiB,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE;oBACjE,YAAY,EAAE;wBACZ,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;qBAC3B;oBACD,UAAU,EAAE,CAAC,SAAS,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,CAAU;oBAC5E,8BAA8B,EAAE,GAAG;iBACpC;aACF;SACF;QAED,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,CAAC,gCAAgC,CAAC,0BAA0B,CAAC,IAAI,CAAC,CAAC,EAAE;QAEjH,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,CAAC,gCAAgC,CAAC,0BAA0B,CAAC,IAAI,CAAC,CAAC,EAAE;KAClH;IACD,iEAAiE;CAClE,CAAC,CAAC","sourcesContent":["/**\n * Wildo applications: the platform's record of each managed application (slug, organization, status, topology).\n *\n * Read over HTTP (by the development companion's workbench, behind organization membership); written only by the\n * platform through the repository.\n */\n\nimport { z } from 'zod';\n\n\nimport { coreResourceShared_FieldIdentifier, CoreResourceOperation, CoreResourceType, ResourceRelationship, CORE_APP_ROLES, ResourceSystemAccessMode } from '@wildo-ai/saas-models';\nimport { ResourcePrimaryScope, ResourceOperationVariantType, ResourceOperationRiskLevel } from '@wildo-ai/saas-models';\nimport { createResourceConfiguration_Initialization } from '@wildo-ai/saas-models';\nimport { CORE_ORG_ROLES } from '@wildo-ai/saas-models';\n\n\nimport {\n CustomShared_ResourceType,\n CustomShared_ResourceFieldIdentifier\n} from '../core/resources/resources-types.custom.shared.schemas';\nimport { Wildo_Application_Schema } from './wildo-applications.custom.shared.schemas';\n\n\nconst WildoApplications_Operations = undefined; \n\n/**\n * The write doors of the platform's record of an application: REPOSITORY_ONLY, so no HTTP route exists for them (#3319).\n *\n * Every writer this row has today is the platform itself, through the repository: apps-manager's\n * `WildoApplicationsLifecycleService`, reached from registration, the bootstrap seed and administrator init. A search\n * of the repository on 2026-11-05 found no service-tier or HTTP caller of a CREATE, UPDATE or DELETE; apps-manager\n * mounts no controller for this resource. The only process that mounts one is the development companion, for the\n * workbench, which LISTs the row to learn its own id and reads it to label rows. These were `API_CALL` variants\n * (CREATE `APP_ADMIN_SUPER_ADMIN`, UPDATE `ORG_MANAGER`, DELETE `ORG_MEMBER`), so the companion routed them: measured\n * 2026-11-05 on the running companion, an organization OWNER's PUT and DELETE on a made-up id passed authorization and\n * reached the not-found answer, so a member holding either role could have rewritten or deleted the row apps-manager\n * resolves the application by. Kept as default variants because the repository refuses a verb with no default\n * variant; where apps-manager names the UPDATE path (deregistration and restore) it resolves it through\n * `getInternalRepositoryOperationPathDefault`. The same shape as the control-plane rows' writes\n * (`createRepositoryOnlyDefaultVariant` in `wildo-application-tasks`).\n */\nfunction createRepositoryOnlyWriteVariant(riskLevel: ResourceOperationRiskLevel) {\n return {\n variantType: ResourceOperationVariantType.REPOSITORY_ONLY as const,\n isDefault: true as const,\n roles: [CORE_APP_ROLES.APP_ADMIN_SUPER_ADMIN],\n riskLevel,\n };\n}\n\ntype WildoApplications_CoreOperations = \n | CoreResourceOperation.READ \n | CoreResourceOperation.LIST\n | CoreResourceOperation.SEARCH\n | CoreResourceOperation.CREATE\n | CoreResourceOperation.UPDATE\n | CoreResourceOperation.DELETE;\n\nexport const wildoApplications_ResourceConfiguration_InitializationFactory: (...args: any[]) => any = (resourcesRelationships: ResourceRelationship[]) => createResourceConfiguration_Initialization<\n typeof WildoApplications_Operations,\n WildoApplications_CoreOperations,\n typeof Wildo_Application_Schema\n>({\n mainSchema: Wildo_Application_Schema,\n resourceIdentifier: CustomShared_ResourceType.WILDO_APPLICATION,\n /**\n * A subject export never includes this row: it is a managed application's platform record (slug, status, topology) — infrastructure identity, no person.\n *\n * Answered explicitly because the privacy gate at boot asks every resource whether its rows\n * are about people. The unauthored default is already FORBIDDEN; writing it down is what turns\n * \"nobody asked\" into \"no\". Not `retentionPolicy: RETAIN_ONLY`, although it is the same claim:\n * that opt-in injects the `retentionStatus` / `impersonalizedAt` marker columns and demands the\n * retention write door (UPDATE_MANY) on a resource no erasure walk can reach — there is no\n * USERS edge — which is schema and surface for a path that never runs.\n */\n systemAccessPolicy: { exportSubject: ResourceSystemAccessMode.FORBIDDEN },\n /**\n * BOOTSTRAP-STORE pin RETIRED 2026-08-22 (item C). This resource now follows the platform's\n * configured engine like every other platform resource, instead of declaring MONGODB.\n *\n * The pin existed because this document was WRITTEN by a Mongo-wired plane an adapter override\n * could never redirect, so a PG-engined platform would READ it from PostgreSQL while the\n * bootstrap plane kept WRITING it to MongoDB. Its own contract named the two conditions that\n * would free it, and BOTH are now met — verified rather than assumed:\n *\n * 1. **The infra-manager's raw writers are ported.** `pnpm check:platform-bootstrap-raw-store`\n * inspects 49 files and reports no undeclared raw-driver access; its `--self-test` passes 14\n * cases, so the clean result is the checker working rather than a checker matching nothing.\n * The 8 remaining DECLARED exemptions all sit in the bootstrap seed, and they write\n * `organizations` and `applications` — neither of which is one of these six — through arms\n * that are already adapter-aware.\n * 2. **INIT's repository plane resolves the platform engine.** Phase 2.5\n * (`initializePlatformPostgresIfDeclared`, which calls\n * `setPlatformModeDefaultPersistenceAdapter`) runs BEFORE Phase 2.6 builds the registries —\n * an ordering the file marks as the one constraint that cannot be relaxed.\n *\n * Retired for all SIX declarations in one change, as the pin instructed (\"Never migrate one\n * declaration on its own\"): a partial retirement is precisely the split-brain the pin prevented.\n * `bootstrap-plane-persistence-adapter.test.ts` now asserts the inverse — that none of the six\n * declares an adapter — so re-pinning any single one fails the suite.\n *\n * NOTE the data consequence, which the pin never covered: flipping the engine does not MOVE\n * existing rows. A platform whose documents live in MongoDB must have them re-provisioned (or\n * migrated) into PostgreSQL, or it reads empty tables. See item G.\n */\n resourceFieldIdentifier: CustomShared_ResourceFieldIdentifier[CustomShared_ResourceType.WILDO_APPLICATION],\n resourceRelationships: resourcesRelationships,\n isSystemResource: false,\n \n coreOperations: [\n CoreResourceOperation.READ,\n CoreResourceOperation.LIST,\n CoreResourceOperation.SEARCH,\n CoreResourceOperation.CREATE,\n CoreResourceOperation.UPDATE,\n CoreResourceOperation.DELETE\n ],\n \n customOperation: WildoApplications_Operations,\n \n operationsConfiguration: {\n [CoreResourceOperation.CREATE]: { variants: [createRepositoryOnlyWriteVariant(ResourceOperationRiskLevel.HIGH)] },\n \n [CoreResourceOperation.READ]: {\n variants: [\n {\n variantType: ResourceOperationVariantType.API_CALL,\n isDefault: true,\n roles: [CORE_ORG_ROLES.ORG_MEMBER],\n riskLevel: ResourceOperationRiskLevel.LOW,\n }\n ]\n },\n \n [CoreResourceOperation.LIST]: {\n variants: [\n {\n variantType: ResourceOperationVariantType.API_CALL,\n isDefault: true,\n roles: [CORE_ORG_ROLES.ORG_MEMBER],\n riskLevel: ResourceOperationRiskLevel.LOW,\n }\n ]\n },\n\n [CoreResourceOperation.SEARCH]: {\n variants: [\n {\n variantType: ResourceOperationVariantType.API_CALL,\n isDefault: true,\n roles: [CORE_APP_ROLES.APP_ADMIN_SUPER_ADMIN],\n riskLevel: ResourceOperationRiskLevel.LOW,\n isSearchable: true,\n searchableFields: ['appSlug', 'organizationId'],\n searchableOptions: { caseSensitive: false, fullMatchOnly: false },\n filterFields: {\n organizationId: z.string(),\n },\n sortFields: ['appSlug', 'organizationId', 'createdAt', 'updatedAt'] as const,\n maxPaginatedResultPerPageLimit: 100,\n }\n ],\n },\n \n [CoreResourceOperation.UPDATE]: { variants: [createRepositoryOnlyWriteVariant(ResourceOperationRiskLevel.HIGH)] },\n\n [CoreResourceOperation.DELETE]: { variants: [createRepositoryOnlyWriteVariant(ResourceOperationRiskLevel.HIGH)] },\n },\n // responseSummaryDto auto-derived from isSummaryField decorators\n}); "]}
|
|
@@ -39,16 +39,16 @@ export declare enum WildoApplicationStatus {
|
|
|
39
39
|
DEREGISTERED = "DEREGISTERED"
|
|
40
40
|
}
|
|
41
41
|
export declare const Wildo_Application_Schema: z.ZodObject<{
|
|
42
|
-
_id:
|
|
43
|
-
appId:
|
|
44
|
-
appSlug:
|
|
45
|
-
organizationId:
|
|
46
|
-
lastVersion:
|
|
42
|
+
_id: z.ZodString;
|
|
43
|
+
appId: z.ZodOptional<z.ZodString>;
|
|
44
|
+
appSlug: z.ZodString;
|
|
45
|
+
organizationId: z.ZodString;
|
|
46
|
+
lastVersion: z.ZodOptional<z.ZodString>;
|
|
47
47
|
gitRepositoryPath: z.ZodString;
|
|
48
|
-
status:
|
|
49
|
-
deregisteredAt:
|
|
50
|
-
createdAt:
|
|
51
|
-
updatedAt:
|
|
48
|
+
status: z.ZodDefault<z.ZodEnum<typeof WildoApplicationStatus>>;
|
|
49
|
+
deregisteredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
50
|
+
createdAt: z.ZodDefault<z.ZodDate>;
|
|
51
|
+
updatedAt: z.ZodDefault<z.ZodDate>;
|
|
52
52
|
}, z.core.$strip>;
|
|
53
53
|
export type Wildo_Application = z.infer<typeof Wildo_Application_Schema>;
|
|
54
54
|
//# sourceMappingURL=wildo-applications.custom.shared.schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wildo-applications.custom.shared.schemas.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"wildo-applications.custom.shared.schemas.d.ts","sourceRoot":"","sources":["../../../src/wildo-applications/wildo-applications.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB;;;;;;;;;;;;GAYG;AACH,oBAAY,sBAAsB;IAChC,yGAAyG;IACzG,MAAM,WAAW;IAEjB;;;;;;;;OAQG;IACH,YAAY,iBAAiB;CAC9B;AAED,eAAO,MAAM,wBAAwB;;;;;;;;;;;iBA0EnC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wildo-applications.custom.shared.schemas.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"wildo-applications.custom.shared.schemas.js","sourceRoot":"","sources":["../../../src/wildo-applications/wildo-applications.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AAEpE,4EAA4E;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,iBAAiB,CAAC,CAAC,CAAC,CAAC;AAErB;;;;;;;;;;;;GAYG;AACH,MAAM,CAAN,IAAY,sBAcX;AAdD,WAAY,sBAAsB;IAChC,yGAAyG;IACzG,2CAAiB,CAAA;IAEjB;;;;;;;;OAQG;IACH,uDAA6B,CAAA;AAC/B,CAAC,EAdW,sBAAsB,KAAtB,sBAAsB,QAcjC;AAED,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,YAAY,EAAE,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AC,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC,iBAAiB,EAAE,CAAC,iBAAiB,EAAE;CACpG,CAAC,CAAC","sourcesContent":["/**\n * Wildo Application Schema\n * \n * Represents an application being built in the app-factory (wildo-ai).\n * Each WildoApplication is a custom SaaS application being designed\n * through the WAML metalanguage and UI.\n * \n * APP-FACTORY-SPECIFIC: Fields like `appSlug`, `gitRepositoryPath` are\n * specific to the app-factory paradigm. This is NOT a runtime concept —\n * regular apps don't have a parent \"WildoApplication\" resource.\n * All WAML resources reference wildoApplicationId as their parent.\n */\n\nimport { z } from 'zod';\nimport { ErrorCustomMessageReference } from '@wildo-ai/saas-models';\n\n// Initialize Zod decorators early (lazy init will also happen on first use)\nimport { initZodDecorators } from '@wildo-ai/zod-decorators';\ninitZodDecorators(z);\n\n/**\n * Whether the platform still schedules and serves this application (#1556).\n *\n * TWO members, and the pair is the whole point: an application is either live, or it has been\n * WITHDRAWN without anything of its being destroyed. There is deliberately no member meaning\n * \"destroyed\" — destruction is #1562 and is parked, so nothing in this vocabulary may be read as\n * authorising it.\n *\n * The shape is the one `Organization` already uses for a marked tenant — *authorization-dead and\n * data-alive* — one level up. That is not a coincidence to be tidied away later: a tenant and an\n * application are both things an operator must be able to take out of service without losing what\n * they contain, and the two should keep answering that question the same way.\n */\nexport enum WildoApplicationStatus {\n /** Scheduled, served, and re-registerable. The default and the state every application is created in. */\n ACTIVE = 'ACTIVE',\n\n /**\n * Withdrawn: the platform no longer schedules it, its slug is refused for re-registration until it\n * is restored, and every credential minted for it is REVOKED (#1307) — no routine sync re-mints one\n * while this status holds. **Nothing of its data is touched** — its database, broker vhost, cache\n * namespace and blobs are exactly as they were. `restore` returns it to\n * {@link WildoApplicationStatus.ACTIVE}, re-mints its credentials with their recorded values, and the\n * next boot re-establishes its cron schedule from its own code, because that schedule is DERIVED\n * rather than stored authority.\n */\n DEREGISTERED = 'DEREGISTERED',\n}\n\nexport const Wildo_Application_Schema = z.object({\n _id: z.string().min(1).isPrimaryKey().isSummaryField(),\n appId: z.string().optional().isDBIndexed().excludeFromUpdate(),\n /**\n * The application's URL-safe identity — UNIQUE ACROSS THE PLATFORM.\n *\n * Uniqueness is global and deliberately NOT compounded with `organizationId`, even though this\n * resource is organization-scoped. The slug is the sole input, alongside the environment id, from\n * which every provisioned backing resource takes its name:\n * `buildApplicationNamespace(appSlug, environmentId)` carries NO organization component, and the\n * application database, the database username and the RabbitMQ vhost are all derived from it. Two\n * applications sharing a slug in different organizations would be handed the same database and the\n * same vhost, so a per-organization constraint would permit precisely the collision that matters.\n *\n * ## Why this was added (2026-08-19)\n *\n * `appSlug` was indexed but not unique, so two live `wonder-todos` rows coexisted here — one from\n * 2026-08-11 and one minted during a boot on 2026-08-19. `initializeWildoApplication` upserts with\n * lookup `{ appSlug }`, but the repository applies this resource's contextual PRIMARY-SCOPE filter;\n * once the platform organization was re-minted, that org-scoped lookup could no longer see the\n * existing row and INSERTED a second one instead of resolving the first.\n *\n * Nothing reported a duplicate. The orphaned lineage kept its 16 cron jobs, which went on\n * publishing into the queues of an application that was no longer live, and the only symptom was a\n * RabbitMQ `403 ACCESS_REFUSED` naming a queue nobody could explain. A unique index turns that\n * silent divergence into a refusal at the moment of insertion.\n *\n * `.excludeFromUpdate()` makes this creation-time identity rather than an editable label, which is\n * also why the collision must be refused rather than reconciled afterwards: a duplicate that got\n * written could not be resolved through the API at all.\n */\n appSlug: z.string()\n .isDBIndexed()\n .isUnique({ conflictMessageReference: ErrorCustomMessageReference.APPLICATION_SLUG_EXISTS })\n .isSummaryField()\n .excludeFromUpdate(),\n organizationId: z.string().isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),\n lastVersion: z.string().optional().excludeFromCreate().excludeFromUpdate(),\n gitRepositoryPath: z.string(),\n\n /**\n * Whether the platform still schedules and serves this application (#1556).\n *\n * Server-owned: written only by the deregister/restore lifecycle operations, never by a client\n * patch — the same posture `Organization.status` takes, and for the same reason. A field that any\n * UPDATE could set would let the withdrawal be performed by something that does not also withdraw\n * the cron schedule, which is the only part of a withdrawal that actually stops work happening.\n *\n * Defaulted rather than required so that every row written before this field existed reads as\n * {@link WildoApplicationStatus.ACTIVE}, which is what they are.\n */\n status: z.enum(WildoApplicationStatus)\n .systemEnum('WildoApplicationStatus')\n .default(WildoApplicationStatus.ACTIVE)\n .isDBIndexed()\n .isSummaryField()\n .excludeFromCreate()\n .excludeFromUpdate(),\n\n /**\n * When the application was withdrawn, or `null` while it is live.\n *\n * `.nullish()` because `restore` CLEARS it: a restored application is not \"deregistered a while\n * ago\", it is live, and a lingering timestamp would make every later reader decide for itself\n * which field wins. Existing rows legitimately have none.\n *\n * It is a record, not a deadline. There is no window here and nothing consumes it — an application\n * stays withdrawn until somebody restores it. The field that WOULD be a deadline\n * (`purgeScheduledAt`) belongs to #1562 and is deliberately absent.\n */\n deregisteredAt: z.date().nullish().isDBIndexed().excludeFromCreate().excludeFromUpdate().isHidden(),\n\n createdAt: z.date().default(() => new Date()).isDBIndexed().isSummaryField().excludeFromCreate().excludeFromUpdate(),\n updatedAt: z.date().default(() => new Date()).isDBIndexed().excludeFromCreate().excludeFromUpdate(),\n});\nexport type Wildo_Application = z.infer<typeof Wildo_Application_Schema>;\n\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wildo-applications-versions.custom.shared.resources-config.schemas.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"wildo-applications-versions.custom.shared.resources-config.schemas.d.ts","sourceRoot":"","sources":["../../../src/wildo-applications-versions/wildo-applications-versions.custom.shared.resources-config.schemas.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAwBH,eAAO,MAAM,oEAAoE,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAwErG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wildo-applications-versions.custom.shared.resources-config.schemas.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"wildo-applications-versions.custom.shared.resources-config.schemas.js","sourceRoot":"","sources":["../../../src/wildo-applications-versions/wildo-applications-versions.custom.shared.resources-config.schemas.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAsC,qBAAqB,EAA0C,cAAc,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACpL,OAAO,EAAwB,4BAA4B,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACvH,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AAChG,OAAO,EAAE,0CAA0C,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,OAAO,EACL,yBAAyB,EACzB,oCAAoC,EACrC,MAAM,yDAAyD,CAAC;AACjE,OAAO,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAGvG,MAAM,mCAAmC,GAAG,SAAS,CAAC;AAOtD,MAAM,CAAC,MAAM,oEAAoE,GAA6B,CAAC,sBAA8C,EAAE,EAAE,CAAC,0CAA0C,CAI1M;IACA,UAAU,EAAE,gCAAgC;IAC5C,kBAAkB,EAAE,yBAAyB,CAAC,0BAA0B;IACxE;;;;;;;;;OASG;IACH,kBAAkB,EAAE,EAAE,aAAa,EAAE,wBAAwB,CAAC,SAAS,EAAE;IACzE,uBAAuB,EAAE,oCAAoC,CAAC,yBAAyB,CAAC,0BAA0B,CAAC;IACnH,qBAAqB,EAAE,sBAAsB;IAC7C,gBAAgB,EAAE,KAAK;IAEvB,cAAc,EAAE;QACd,qBAAqB,CAAC,IAAI;QAC1B,qBAAqB,CAAC,IAAI;QAC1B,qBAAqB,CAAC,MAAM;KAC7B;IAED,eAAe,EAAE,mCAAmC;IAEpD,uBAAuB,EAAE;QACvB,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE;YAC9B,QAAQ,EAAE;gBACR;oBACE,WAAW,EAAE,4BAA4B,CAAC,QAAQ;oBAClD,SAAS,EAAE,IAAI;oBACf,KAAK,EAAE,CAAC,cAAc,CAAC,qBAAqB,CAAC;oBAC7C,SAAS,EAAE,0BAA0B,CAAC,IAAI;oBAC1C,0CAA0C;iBAC3C;aACF;YACD,iBAAiB,EAAE;gBACjB;oBACE,MAAM,EAAE,0BAA0B,CAAC,SAAS;oBAC5C,OAAO,EAAE,2BAA2B,CAAC,iBAAiB;iBACvD;aACF;SACF;QAED,CAAC,qBAAqB,CAAC,IAAI,CAAC,EAAE;YAC5B,QAAQ,EAAE;gBACR;oBACE,WAAW,EAAE,4BAA4B,CAAC,QAAQ;oBAClD,SAAS,EAAE,IAAI;oBACf,KAAK,EAAE,CAAC,cAAc,CAAC,UAAU,CAAC;oBAClC,SAAS,EAAE,0BAA0B,CAAC,GAAG;iBAC1C;aACF;SACF;QAED,CAAC,qBAAqB,CAAC,IAAI,CAAC,EAAE;YAC5B,QAAQ,EAAE;gBACR;oBACE,WAAW,EAAE,4BAA4B,CAAC,QAAQ;oBAClD,SAAS,EAAE,IAAI;oBACf,KAAK,EAAE,CAAC,cAAc,CAAC,UAAU,CAAC;oBAClC,SAAS,EAAE,0BAA0B,CAAC,GAAG;iBAC1C;aACF;SACF;KACF;IACD,iEAAiE;CAClE,CAAC,CAAC","sourcesContent":["/**\n * Billable Items Shared Resource Configuration\n * \n * Resource configuration for managing invoice line items and billable entries.\n * Handles creation, updates, and management of billable items across invoices.\n */\n\nimport { z } from 'zod';\n\nimport { coreResourceShared_FieldIdentifier, CoreResourceOperation, CoreResourceType, ResourceRelationship, CORE_APP_ROLES, ResourceSystemAccessMode } from '@wildo-ai/saas-models';\nimport { ResourcePrimaryScope, ResourceOperationVariantType, ResourceOperationRiskLevel } from '@wildo-ai/saas-models';\nimport { CoreUserNotificationTarget, CoreUserNotificationChannel } from '@wildo-ai/saas-models';\nimport { createResourceConfiguration_Initialization } from '@wildo-ai/saas-models';\nimport { CORE_ORG_ROLES } from '@wildo-ai/saas-models';\n\nimport {\n CustomShared_ResourceType,\n CustomShared_ResourceFieldIdentifier\n} from '../core/resources/resources-types.custom.shared.schemas';\nimport { Wildo_Application_Version_Schema } from './wildo-applications-versions.custom.shared.schemas';\n\n\nconst WildoApplicationVersions_Operations = undefined; \n\ntype WildoApplicationVersions_CoreOperations = \n | CoreResourceOperation.READ \n | CoreResourceOperation.LIST\n | CoreResourceOperation.CREATE\n\nexport const wildoApplicationVersions_ResourceConfiguration_InitializationFactory: (...args: any[]) => any = (resourcesRelationships: ResourceRelationship[]) => createResourceConfiguration_Initialization<\n typeof WildoApplicationVersions_Operations,\n WildoApplicationVersions_CoreOperations,\n typeof Wildo_Application_Version_Schema\n>({\n mainSchema: Wildo_Application_Version_Schema,\n resourceIdentifier: CustomShared_ResourceType.WILDO_APPLICATION_VERSIONS,\n /**\n * A subject export never includes this row: it is a managed application's version record — a software artifact, no person.\n *\n * Answered explicitly because the privacy gate at boot asks every resource whether its rows\n * are about people. The unauthored default is already FORBIDDEN; writing it down is what turns\n * \"nobody asked\" into \"no\". Not `retentionPolicy: RETAIN_ONLY`, although it is the same claim:\n * that opt-in injects the `retentionStatus` / `impersonalizedAt` marker columns and demands the\n * retention write door (UPDATE_MANY) on a resource no erasure walk can reach — there is no\n * USERS edge — which is schema and surface for a path that never runs.\n */\n systemAccessPolicy: { exportSubject: ResourceSystemAccessMode.FORBIDDEN },\n resourceFieldIdentifier: CustomShared_ResourceFieldIdentifier[CustomShared_ResourceType.WILDO_APPLICATION_VERSIONS],\n resourceRelationships: resourcesRelationships,\n isSystemResource: false,\n \n coreOperations: [\n CoreResourceOperation.READ,\n CoreResourceOperation.LIST,\n CoreResourceOperation.CREATE,\n ],\n \n customOperation: WildoApplicationVersions_Operations,\n \n operationsConfiguration: {\n [CoreResourceOperation.CREATE]: {\n variants: [\n {\n variantType: ResourceOperationVariantType.API_CALL,\n isDefault: true,\n roles: [CORE_APP_ROLES.APP_ADMIN_SUPER_ADMIN],\n riskLevel: ResourceOperationRiskLevel.HIGH,\n // requestDto auto-derived from decorators\n }\n ],\n userNotifications: [\n {\n target: CoreUserNotificationTarget.USER_SELF,\n channel: CoreUserNotificationChannel.FRONT_END_SUCCESS,\n }\n ]\n },\n \n [CoreResourceOperation.READ]: {\n variants: [\n {\n variantType: ResourceOperationVariantType.API_CALL,\n isDefault: true,\n roles: [CORE_ORG_ROLES.ORG_MEMBER],\n riskLevel: ResourceOperationRiskLevel.LOW,\n }\n ]\n },\n \n [CoreResourceOperation.LIST]: {\n variants: [\n {\n variantType: ResourceOperationVariantType.API_CALL,\n isDefault: true,\n roles: [CORE_ORG_ROLES.ORG_MEMBER],\n riskLevel: ResourceOperationRiskLevel.LOW,\n }\n ]\n },\n },\n // responseSummaryDto auto-derived from isSummaryField decorators\n}); "]}
|
package/dist/esm/wildo-applications-versions/wildo-applications-versions.custom.shared.schemas.d.ts
CHANGED
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
*/
|
|
24
24
|
import { z } from 'zod';
|
|
25
25
|
export declare const Wildo_Application_Version_Schema: z.ZodObject<{
|
|
26
|
-
_id:
|
|
27
|
-
wildoApplicationId:
|
|
28
|
-
version:
|
|
29
|
-
gitBranch:
|
|
30
|
-
gitCommitHash:
|
|
31
|
-
createdAt:
|
|
32
|
-
updatedAt:
|
|
26
|
+
_id: z.ZodString;
|
|
27
|
+
wildoApplicationId: z.ZodString;
|
|
28
|
+
version: z.ZodString;
|
|
29
|
+
gitBranch: z.ZodString;
|
|
30
|
+
gitCommitHash: z.ZodString;
|
|
31
|
+
createdAt: z.ZodDate;
|
|
32
|
+
updatedAt: z.ZodDate;
|
|
33
33
|
}, z.core.$strip>;
|
|
34
34
|
export type Wildo_Application_Version = z.infer<typeof Wildo_Application_Version_Schema>;
|
|
35
35
|
//# sourceMappingURL=wildo-applications-versions.custom.shared.schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wildo-applications-versions.custom.shared.schemas.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"wildo-applications-versions.custom.shared.schemas.d.ts","sourceRoot":"","sources":["../../../src/wildo-applications-versions/wildo-applications-versions.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,gCAAgC;;;;;;;;iBAQ3C,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wildo-applications-versions.custom.shared.schemas.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"wildo-applications-versions.custom.shared.schemas.js","sourceRoot":"","sources":["../../../src/wildo-applications-versions/wildo-applications-versions.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,4EAA4E;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,iBAAiB,CAAC,CAAC,CAAC,CAAC;AAErB,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,MAAM,CAAC;IACvD,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,YAAY,EAAE,CAAC,cAAc,EAAE;IACtD,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,YAAY,EAAE,CAAC,cAAc,EAAE,CAAC,iBAAiB,EAAE;IACvG,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,cAAc,EAAE,CAAC,iBAAiB,EAAE,EAAE,kBAAkB;IAC1F,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,cAAc,EAAE;IACpD,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,cAAc,EAAE;IACxD,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,cAAc,EAAE,CAAC,iBAAiB,EAAE,CAAC,iBAAiB,EAAE;IAC1F,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,iBAAiB,EAAE,CAAC,iBAAiB,EAAE;CAC1E,CAAC,CAAC","sourcesContent":["/**\n * Wildo Application Version Schema\n * \n * Represents a version/snapshot of a WildoApplication.\n * Each version is linked to a git commit and can be deployed to environments.\n * \n * ═══════════════════════════════════════════════════════════════════════════\n * RATIONALE: Why this type is defined in wildo-ai-application, not engine\n * ═══════════════════════════════════════════════════════════════════════════\n * \n * 1. Wildo_Application_Version_Schema\n * - APP-FACTORY-SPECIFIC: Tracks versions of applications being built.\n * Regular runtime apps don't version themselves in this way.\n * - Fields like `gitBranch`, `gitCommitHash` link to the generated code\n * repository - part of the code-generation pipeline.\n * - The `wildoApplicationId` FK is specific to the app-factory paradigm.\n * - Supports the publish/deploy workflow where users create versions\n * of their application definitions.\n * \n * FRAMEWORK CANDIDATES: None. Version tracking of generated applications\n * is unique to the app-factory.\n * ═══════════════════════════════════════════════════════════════════════════\n */\n\nimport { z } from 'zod';\n\n// Initialize Zod decorators early (lazy init will also happen on first use)\nimport { initZodDecorators } from '@wildo-ai/zod-decorators';\ninitZodDecorators(z);\n\nexport const Wildo_Application_Version_Schema = z.object({\n _id: z.string().min(1).isPrimaryKey().isSummaryField(),\n wildoApplicationId: z.string().min(1).isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),\n version: z.string().isDBIndexed().isSummaryField().excludeFromUpdate(), // Version lookups\n gitBranch: z.string().isDBIndexed().isSummaryField(),\n gitCommitHash: z.string().isDBIndexed().isSummaryField(),\n createdAt: z.date().isDBIndexed().isSummaryField().excludeFromCreate().excludeFromUpdate(),\n updatedAt: z.date().isDBIndexed().excludeFromCreate().excludeFromUpdate(),\n});\nexport type Wildo_Application_Version = z.infer<typeof Wildo_Application_Version_Schema>;\n"]}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* The UNATTENDED CREATION DRIVER's contract (#2233) — what `wildo creation drive` reads from the companion beyond the
|
|
4
|
+
* creation feed, and what its accept answers. The driver runs in the CLI, not in the companion, on purpose: a companion
|
|
5
|
+
* restart ends every request it holds, and a driver that lives in another process re-attaches by reading the durable
|
|
6
|
+
* rows again (the feed, the run report) once the companion answers.
|
|
7
|
+
*
|
|
8
|
+
* Shared so the CLI and the companion name the same vocabulary, as the journey timeline's is (#3206).
|
|
9
|
+
*/
|
|
10
|
+
/** What the driver's accept did (`POST /creation/drive/accept`). */
|
|
11
|
+
export declare enum CreationDriveAcceptDisposition {
|
|
12
|
+
/** Pending playbook runs were offered to the accept door under the autonomy posture; the counts say what it did. */
|
|
13
|
+
ACCEPTED = "accepted",
|
|
14
|
+
/** The autonomy posture leaves acceptance to a person (a marked critical gate, armed): nothing was committed. */
|
|
15
|
+
HELD_FOR_PERSON = "held-for-person",
|
|
16
|
+
/** A coding run is writing the tree: committing inside its window would destroy its attribution, so the next baseline's accept carries the pending runs. */
|
|
17
|
+
DEFERRED_RUNS_LIVE = "deferred-runs-live"
|
|
18
|
+
}
|
|
19
|
+
export declare const CreationDrive_AcceptOutcome_Schema: z.ZodObject<{
|
|
20
|
+
disposition: z.ZodEnum<typeof CreationDriveAcceptDisposition>;
|
|
21
|
+
accepted: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
superseded: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
editedOutsideRuns: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
failed: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
export type CreationDrive_AcceptOutcome = z.infer<typeof CreationDrive_AcceptOutcome_Schema>;
|
|
27
|
+
/**
|
|
28
|
+
* What still runs in the companion (`GET /creation/drive/status`): loops (which hold their request and are no
|
|
29
|
+
* detached submission, so the pulse does not count them), detached runs (a wave, a lane, a usage-limit resume) and every
|
|
30
|
+
* playbook execution in the process, a synchronous one included; since when a person's `wildo build stop` holds the
|
|
31
|
+
* build, read live; and when the pending usage-limit resume fires. `companionStartedAt` is when this companion process
|
|
32
|
+
* started, computed once, so a driver sees a restart even when it never lost a request.
|
|
33
|
+
*/
|
|
34
|
+
export declare const CreationDrive_Status_Schema: z.ZodObject<{
|
|
35
|
+
companionStartedAt: z.ZodString;
|
|
36
|
+
loopsInFlight: z.ZodNumber;
|
|
37
|
+
detachedRunsInFlight: z.ZodNumber;
|
|
38
|
+
executionsInFlight: z.ZodNumber;
|
|
39
|
+
buildStoppedSince: z.ZodOptional<z.ZodString>;
|
|
40
|
+
pendingBuildResume: z.ZodOptional<z.ZodObject<{
|
|
41
|
+
resumesAt: z.ZodString;
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
codingAgentAccountRefusal: z.ZodOptional<z.ZodObject<{
|
|
44
|
+
reason: z.ZodEnum<typeof import("@wildo-ai/saas-models").ModelProviderAccountRefusalReason>;
|
|
45
|
+
provider: z.ZodString;
|
|
46
|
+
providerMessage: z.ZodString;
|
|
47
|
+
providerStatus: z.ZodOptional<z.ZodNumber>;
|
|
48
|
+
providerErrorCode: z.ZodOptional<z.ZodString>;
|
|
49
|
+
}, z.core.$strip>>;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
export type CreationDrive_Status = z.infer<typeof CreationDrive_Status_Schema>;
|
|
52
|
+
/**
|
|
53
|
+
* One thing that keeps one requirement from being met (#3701): the wire shape of `RequirementOpenItem` in
|
|
54
|
+
* `@wildo-ai/saas-specifications`. `kind` is a `RequirementOpenItemKind` value, typed as a string here because this
|
|
55
|
+
* package does not depend on the one that owns that vocabulary.
|
|
56
|
+
*/
|
|
57
|
+
export declare const CreationDrive_RequirementOpenItem_Schema: z.ZodObject<{
|
|
58
|
+
requirementRef: z.ZodString;
|
|
59
|
+
kind: z.ZodString;
|
|
60
|
+
detail: z.ZodString;
|
|
61
|
+
closedByTaskRef: z.ZodNullable<z.ZodString>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
export type CreationDrive_RequirementOpenItem = z.infer<typeof CreationDrive_RequirementOpenItem_Schema>;
|
|
64
|
+
/**
|
|
65
|
+
* Where the application stands against its own requirements NOW (`GET /creation/requirements/standing`, #3701): the
|
|
66
|
+
* maturity reading derived live, its stage (an `ApplicationMaturityStage` value), how many requirements it measures,
|
|
67
|
+
* and every item still open on them. The drive reads it before it calls the goal reached: a loop's model choosing to
|
|
68
|
+
* stop is a judgement, and an empty `openItems` is the measurement that settles it.
|
|
69
|
+
*/
|
|
70
|
+
export declare const CreationDrive_RequirementsStanding_Schema: z.ZodObject<{
|
|
71
|
+
measuredAt: z.ZodString;
|
|
72
|
+
stage: z.ZodString;
|
|
73
|
+
requirementCount: z.ZodNumber;
|
|
74
|
+
openItems: z.ZodArray<z.ZodObject<{
|
|
75
|
+
requirementRef: z.ZodString;
|
|
76
|
+
kind: z.ZodString;
|
|
77
|
+
detail: z.ZodString;
|
|
78
|
+
closedByTaskRef: z.ZodNullable<z.ZodString>;
|
|
79
|
+
}, z.core.$strip>>;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
export type CreationDrive_RequirementsStanding = z.infer<typeof CreationDrive_RequirementsStanding_Schema>;
|
|
82
|
+
//# sourceMappingURL=creation-drive.custom.shared.schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"creation-drive.custom.shared.schemas.d.ts","sourceRoot":"","sources":["../../../src/workbench/creation-drive.custom.shared.schemas.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;GAOG;AAEH,oEAAoE;AACpE,oBAAY,8BAA8B;IACxC,oHAAoH;IACpH,QAAQ,aAAa;IACrB,iHAAiH;IACjH,eAAe,oBAAoB;IACnC,4JAA4J;IAC5J,kBAAkB,uBAAuB;CAC1C;AAED,eAAO,MAAM,kCAAkC;;;;;;iBAM7C,CAAC;AACH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAE7F;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;iBAatC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAE/E;;;;GAIG;AACH,eAAO,MAAM,wCAAwC;;;;;iBAMnD,CAAC;AACH,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAC;AAEzG;;;;;GAKG;AACH,eAAO,MAAM,yCAAyC;;;;;;;;;;iBAKpD,CAAC;AACH,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yCAAyC,CAAC,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { ModelProviderAccountRefusalSchema } from '@wildo-ai/saas-models';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
/**
|
|
4
|
+
* The UNATTENDED CREATION DRIVER's contract (#2233) — what `wildo creation drive` reads from the companion beyond the
|
|
5
|
+
* creation feed, and what its accept answers. The driver runs in the CLI, not in the companion, on purpose: a companion
|
|
6
|
+
* restart ends every request it holds, and a driver that lives in another process re-attaches by reading the durable
|
|
7
|
+
* rows again (the feed, the run report) once the companion answers.
|
|
8
|
+
*
|
|
9
|
+
* Shared so the CLI and the companion name the same vocabulary, as the journey timeline's is (#3206).
|
|
10
|
+
*/
|
|
11
|
+
/** What the driver's accept did (`POST /creation/drive/accept`). */
|
|
12
|
+
export var CreationDriveAcceptDisposition;
|
|
13
|
+
(function (CreationDriveAcceptDisposition) {
|
|
14
|
+
/** Pending playbook runs were offered to the accept door under the autonomy posture; the counts say what it did. */
|
|
15
|
+
CreationDriveAcceptDisposition["ACCEPTED"] = "accepted";
|
|
16
|
+
/** The autonomy posture leaves acceptance to a person (a marked critical gate, armed): nothing was committed. */
|
|
17
|
+
CreationDriveAcceptDisposition["HELD_FOR_PERSON"] = "held-for-person";
|
|
18
|
+
/** A coding run is writing the tree: committing inside its window would destroy its attribution, so the next baseline's accept carries the pending runs. */
|
|
19
|
+
CreationDriveAcceptDisposition["DEFERRED_RUNS_LIVE"] = "deferred-runs-live";
|
|
20
|
+
})(CreationDriveAcceptDisposition || (CreationDriveAcceptDisposition = {}));
|
|
21
|
+
export const CreationDrive_AcceptOutcome_Schema = z.object({
|
|
22
|
+
disposition: z.enum(CreationDriveAcceptDisposition),
|
|
23
|
+
accepted: z.number().int().nonnegative().optional(),
|
|
24
|
+
superseded: z.number().int().nonnegative().optional(),
|
|
25
|
+
editedOutsideRuns: z.number().int().nonnegative().optional(),
|
|
26
|
+
failed: z.number().int().nonnegative().optional(),
|
|
27
|
+
});
|
|
28
|
+
/**
|
|
29
|
+
* What still runs in the companion (`GET /creation/drive/status`): loops (which hold their request and are no
|
|
30
|
+
* detached submission, so the pulse does not count them), detached runs (a wave, a lane, a usage-limit resume) and every
|
|
31
|
+
* playbook execution in the process, a synchronous one included; since when a person's `wildo build stop` holds the
|
|
32
|
+
* build, read live; and when the pending usage-limit resume fires. `companionStartedAt` is when this companion process
|
|
33
|
+
* started, computed once, so a driver sees a restart even when it never lost a request.
|
|
34
|
+
*/
|
|
35
|
+
export const CreationDrive_Status_Schema = z.object({
|
|
36
|
+
companionStartedAt: z.string(),
|
|
37
|
+
loopsInFlight: z.number().int().nonnegative(),
|
|
38
|
+
detachedRunsInFlight: z.number().int().nonnegative(),
|
|
39
|
+
executionsInFlight: z.number().int().nonnegative(),
|
|
40
|
+
buildStoppedSince: z.string().optional(),
|
|
41
|
+
pendingBuildResume: z.object({ resumesAt: z.string() }).optional(),
|
|
42
|
+
/**
|
|
43
|
+
* The coding agent's provider account refusal holding the build, read live (#3204): present while it holds. A pending
|
|
44
|
+
* resume beside it only RE-ASKS the account, so a driver reading `pendingBuildResume` alone would wait for a reset that
|
|
45
|
+
* never comes; this is the discriminator that tells it a person must act.
|
|
46
|
+
*/
|
|
47
|
+
codingAgentAccountRefusal: ModelProviderAccountRefusalSchema.optional(),
|
|
48
|
+
});
|
|
49
|
+
/**
|
|
50
|
+
* One thing that keeps one requirement from being met (#3701): the wire shape of `RequirementOpenItem` in
|
|
51
|
+
* `@wildo-ai/saas-specifications`. `kind` is a `RequirementOpenItemKind` value, typed as a string here because this
|
|
52
|
+
* package does not depend on the one that owns that vocabulary.
|
|
53
|
+
*/
|
|
54
|
+
export const CreationDrive_RequirementOpenItem_Schema = z.object({
|
|
55
|
+
requirementRef: z.string().min(1),
|
|
56
|
+
kind: z.string().min(1),
|
|
57
|
+
detail: z.string().min(1),
|
|
58
|
+
/** The task that would close it (a reported gap's follow-up), or NULL when none is named. */
|
|
59
|
+
closedByTaskRef: z.string().nullable(),
|
|
60
|
+
});
|
|
61
|
+
/**
|
|
62
|
+
* Where the application stands against its own requirements NOW (`GET /creation/requirements/standing`, #3701): the
|
|
63
|
+
* maturity reading derived live, its stage (an `ApplicationMaturityStage` value), how many requirements it measures,
|
|
64
|
+
* and every item still open on them. The drive reads it before it calls the goal reached: a loop's model choosing to
|
|
65
|
+
* stop is a judgement, and an empty `openItems` is the measurement that settles it.
|
|
66
|
+
*/
|
|
67
|
+
export const CreationDrive_RequirementsStanding_Schema = z.object({
|
|
68
|
+
measuredAt: z.string(),
|
|
69
|
+
stage: z.string().min(1),
|
|
70
|
+
requirementCount: z.number().int().nonnegative(),
|
|
71
|
+
openItems: z.array(CreationDrive_RequirementOpenItem_Schema),
|
|
72
|
+
});
|
|
73
|
+
//# sourceMappingURL=creation-drive.custom.shared.schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"creation-drive.custom.shared.schemas.js","sourceRoot":"","sources":["../../../src/workbench/creation-drive.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iCAAiC,EAAE,MAAM,uBAAuB,CAAC;AAC1E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;GAOG;AAEH,oEAAoE;AACpE,MAAM,CAAN,IAAY,8BAOX;AAPD,WAAY,8BAA8B;IACxC,oHAAoH;IACpH,uDAAqB,CAAA;IACrB,iHAAiH;IACjH,qEAAmC,CAAA;IACnC,4JAA4J;IAC5J,2EAAyC,CAAA;AAC3C,CAAC,EAPW,8BAA8B,KAA9B,8BAA8B,QAOzC;AAED,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC,CAAC,MAAM,CAAC;IACzD,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC,8BAA8B,CAAC;IACnD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE;IACnD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE;IACrD,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE;IAC5D,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAC;AAGH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IAC7C,oBAA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ATTENDED CREATION DRIVER's contract (#2233) — what `wildo creation drive` reads from the companion beyond the\n * creation feed, and what its accept answers. The driver runs in the CLI, not in the companion, on purpose: a companion\n * restart ends every request it holds, and a driver that lives in another process re-attaches by reading the durable\n * rows again (the feed, the run report) once the companion answers.\n *\n * Shared so the CLI and the companion name the same vocabulary, as the journey timeline's is (#3206).\n */\n\n/** What the driver's accept did (`POST /creation/drive/accept`). */\nexport enum CreationDriveAcceptDisposition {\n /** Pending playbook runs were offered to the accept door under the autonomy posture; the counts say what it did. */\n ACCEPTED = 'accepted',\n /** The autonomy posture leaves acceptance to a person (a marked critical gate, armed): nothing was committed. */\n HELD_FOR_PERSON = 'held-for-person',\n /** A coding run is writing the tree: committing inside its window would destroy its attribution, so the next baseline's accept carries the pending runs. */\n DEFERRED_RUNS_LIVE = 'deferred-runs-live',\n}\n\nexport const CreationDrive_AcceptOutcome_Schema = z.object({\n disposition: z.enum(CreationDriveAcceptDisposition),\n accepted: z.number().int().nonnegative().optional(),\n superseded: z.number().int().nonnegative().optional(),\n editedOutsideRuns: z.number().int().nonnegative().optional(),\n failed: z.number().int().nonnegative().optional(),\n});\nexport type CreationDrive_AcceptOutcome = z.infer<typeof CreationDrive_AcceptOutcome_Schema>;\n\n/**\n * What still runs in the companion (`GET /creation/drive/status`): loops (which hold their request and are no\n * detached submission, so the pulse does not count them), detached runs (a wave, a lane, a usage-limit resume) and every\n * playbook execution in the process, a synchronous one included; since when a person's `wildo build stop` holds the\n * build, read live; and when the pending usage-limit resume fires. `companionStartedAt` is when this companion process\n * started, computed once, so a driver sees a restart even when it never lost a request.\n */\nexport const CreationDrive_Status_Schema = z.object({\n companionStartedAt: z.string(),\n loopsInFlight: z.number().int().nonnegative(),\n detachedRunsInFlight: z.number().int().nonnegative(),\n executionsInFlight: z.number().int().nonnegative(),\n buildStoppedSince: z.string().optional(),\n pendingBuildResume: z.object({ resumesAt: z.string() }).optional(),\n /**\n * The coding agent's provider account refusal holding the build, read live (#3204): present while it holds. A pending\n * resume beside it only RE-ASKS the account, so a driver reading `pendingBuildResume` alone would wait for a reset that\n * never comes; this is the discriminator that tells it a person must act.\n */\n codingAgentAccountRefusal: ModelProviderAccountRefusalSchema.optional(),\n});\nexport type CreationDrive_Status = z.infer<typeof CreationDrive_Status_Schema>;\n\n/**\n * One thing that keeps one requirement from being met (#3701): the wire shape of `RequirementOpenItem` in\n * `@wildo-ai/saas-specifications`. `kind` is a `RequirementOpenItemKind` value, typed as a string here because this\n * package does not depend on the one that owns that vocabulary.\n */\nexport const CreationDrive_RequirementOpenItem_Schema = z.object({\n requirementRef: z.string().min(1),\n kind: z.string().min(1),\n detail: z.string().min(1),\n /** The task that would close it (a reported gap's follow-up), or NULL when none is named. */\n closedByTaskRef: z.string().nullable(),\n});\nexport type CreationDrive_RequirementOpenItem = z.infer<typeof CreationDrive_RequirementOpenItem_Schema>;\n\n/**\n * Where the application stands against its own requirements NOW (`GET /creation/requirements/standing`, #3701): the\n * maturity reading derived live, its stage (an `ApplicationMaturityStage` value), how many requirements it measures,\n * and every item still open on them. The drive reads it before it calls the goal reached: a loop's model choosing to\n * stop is a judgement, and an empty `openItems` is the measurement that settles it.\n */\nexport const CreationDrive_RequirementsStanding_Schema = z.object({\n measuredAt: z.string(),\n stage: z.string().min(1),\n requirementCount: z.number().int().nonnegative(),\n openItems: z.array(CreationDrive_RequirementOpenItem_Schema),\n});\nexport type CreationDrive_RequirementsStanding = z.infer<typeof CreationDrive_RequirementsStanding_Schema>;\n"]}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* The creation journey's TIMELINE (#3206, the acceptance of epic #3204): how long each phase of creating an
|
|
4
|
+
* application took, end to end, and which build tasks took longest — split into the time a task waited to be
|
|
5
|
+
* dispatched and the time its run took.
|
|
6
|
+
*
|
|
7
|
+
* ## Why it exists
|
|
8
|
+
*
|
|
9
|
+
* On `app-creation-test-007` creating one application took 3.5 days, and about 75 % of the build's wall clock was a
|
|
10
|
+
* selected task WAITING for its dispatch (22 to 67 minutes a task, against 5 to 23 for the run). Nothing showed it:
|
|
11
|
+
* the figures in #3206 were reconstructed by hand from a log line, `wildo build dispatches` rows and commit times.
|
|
12
|
+
* The timeline is that reconstruction, derived on every read from the rows the companion already keeps — the playbook
|
|
13
|
+
* runs' executions and each build task's attempts — so the next creation run's figures are one command away.
|
|
14
|
+
*
|
|
15
|
+
* ## Where it is derived, and where this contract sits
|
|
16
|
+
*
|
|
17
|
+
* The companion derives it (`deriveCreationJourneyTimeline`) and serves it on `GET /api/companion/creation/timeline`;
|
|
18
|
+
* `wildo context journey` prints it. This file is the shape both read, and the vocabulary both name: the CLI cannot
|
|
19
|
+
* import the companion, so the enums live here, as the other creation-console contracts do.
|
|
20
|
+
*/
|
|
21
|
+
/**
|
|
22
|
+
* A PHASE of creating an application: one of the four lanes the creation umbrella (`cross_cutting.application-creation`)
|
|
23
|
+
* admits. A phase is the work of its lane — the lane's own runs and every run of a playbook its choreography admits,
|
|
24
|
+
* transitively — not a gate: nothing waits on a phase (`MetaWorkflow_Phase` records why a derived phase was removed as
|
|
25
|
+
* a gate). The phases overlap in time when the lanes do; each one's span is its own first start to its last settle.
|
|
26
|
+
*/
|
|
27
|
+
export declare enum CreationJourneyPhase {
|
|
28
|
+
/** What the application is: vision, market, requirements, brand, scope (`top_down.definition`). */
|
|
29
|
+
DEFINITION = "definition",
|
|
30
|
+
/** What the application owes: the compliance posture, its programme and its governed documents (`cross_cutting.compliance`). */
|
|
31
|
+
COMPLIANCE = "compliance",
|
|
32
|
+
/** How it is built: the domain plan, the foundation, the surface plans, placement (`bottom_up.conception`). */
|
|
33
|
+
CONCEPTION = "conception",
|
|
34
|
+
/**
|
|
35
|
+
* Building it: the build plan's decomposition and every task's dispatch (`bottom_up.build`). Its span also covers
|
|
36
|
+
* every build-task attempt, whoever started it: a single-task `wildo build run --single`, a workbench dispatch and a
|
|
37
|
+
* named run start no playbook of the build lane, and their runs are still the build.
|
|
38
|
+
*/
|
|
39
|
+
BUILD = "build"
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* The lane composite each phase is the work of: the four lanes `cross_cutting.application-creation` admits. It also
|
|
43
|
+
* admits the vision interview, a leaf (#3386); that stays DEFINITION work because the definition lane admits it too.
|
|
44
|
+
*/
|
|
45
|
+
export declare const CREATION_JOURNEY_PHASE_LANE_REFS: Readonly<Record<CreationJourneyPhase, string>>;
|
|
46
|
+
/** The order a straight-through creation takes the phases in, which is the order they are listed in. */
|
|
47
|
+
export declare const CREATION_JOURNEY_PHASE_ORDER: readonly CreationJourneyPhase[];
|
|
48
|
+
/**
|
|
49
|
+
* Where a build attempt's DISPATCH WAIT is measured from. It always ends when the run was admitted (its task row's
|
|
50
|
+
* start instant), or when the attempt ended for one that never started.
|
|
51
|
+
*/
|
|
52
|
+
export declare enum BuildDispatchWaitMeasuredFrom {
|
|
53
|
+
/**
|
|
54
|
+
* The moment the door that dispatched it began preparing it: for a wave slot, checking the backend starts; for the
|
|
55
|
+
* single-task doors, reading the plan. From there it is resolving landing, selecting the task, composing its brief
|
|
56
|
+
* and admitting the run — the stretch #3206 found to be most of the build's wall clock. Every dispatch door stamps
|
|
57
|
+
* it on the attempt's row since #3206.
|
|
58
|
+
*
|
|
59
|
+
* It is not quite the interval #3206 tabulated by hand, which ran from the first selection LOG line (possibly a slot
|
|
60
|
+
* abandoned earlier) to admission. And time between dispatches that no door spends preparing a task — a lane's own
|
|
61
|
+
* phases between waves, a wave waiting for a slot to free — is attributed to no task.
|
|
62
|
+
*/
|
|
63
|
+
PREPARATION = "preparation",
|
|
64
|
+
/**
|
|
65
|
+
* The moment the attempt's row was opened, which is after the task was chosen and its brief composed. Only a row
|
|
66
|
+
* recorded before #3206 has no preparation stamp: its wait is a FLOOR of the real one.
|
|
67
|
+
*/
|
|
68
|
+
SELECTION = "selection"
|
|
69
|
+
}
|
|
70
|
+
/** One phase's span. Every phase is listed; one that never ran has no instants and no duration. */
|
|
71
|
+
export declare const CreationJourney_PhaseSpan_Schema: z.ZodObject<{
|
|
72
|
+
phase: z.ZodEnum<typeof CreationJourneyPhase>;
|
|
73
|
+
laneRef: z.ZodString;
|
|
74
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
75
|
+
endedAt: z.ZodOptional<z.ZodString>;
|
|
76
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
77
|
+
inFlight: z.ZodBoolean;
|
|
78
|
+
waitingOnPerson: z.ZodBoolean;
|
|
79
|
+
playbookRuns: z.ZodNumber;
|
|
80
|
+
buildAttempts: z.ZodNumber;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
export type CreationJourney_PhaseSpan = z.infer<typeof CreationJourney_PhaseSpan_Schema>;
|
|
83
|
+
/** One build task with its time split into waiting and running, summed over its attempts. */
|
|
84
|
+
export declare const CreationJourney_SlowBuildTask_Schema: z.ZodObject<{
|
|
85
|
+
taskRef: z.ZodString;
|
|
86
|
+
attempts: z.ZodNumber;
|
|
87
|
+
dispatchWaitMs: z.ZodNumber;
|
|
88
|
+
runMs: z.ZodNumber;
|
|
89
|
+
totalMs: z.ZodNumber;
|
|
90
|
+
dispatchWaitMeasuredFrom: z.ZodEnum<typeof BuildDispatchWaitMeasuredFrom>;
|
|
91
|
+
inFlight: z.ZodBoolean;
|
|
92
|
+
waitingOnPerson: z.ZodBoolean;
|
|
93
|
+
endedByCompanionRestart: z.ZodBoolean;
|
|
94
|
+
generationStep: z.ZodBoolean;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
export type CreationJourney_SlowBuildTask = z.infer<typeof CreationJourney_SlowBuildTask_Schema>;
|
|
97
|
+
/**
|
|
98
|
+
* One build-task ATTEMPT's time, split as {@link CreationJourney_SlowBuildTask} splits a task's (#3204's budget). The
|
|
99
|
+
* slowest-ten list answers "where did the time go"; this list answers "what is the distribution", which a budget is
|
|
100
|
+
* stated in: the p95 of the dispatch wait and of a worker's run, and how many ran at once. Every attempt the read saw is
|
|
101
|
+
* listed, oldest first, so a reader computes any statistic without the companion choosing one.
|
|
102
|
+
*/
|
|
103
|
+
export declare const CreationJourney_BuildAttemptTiming_Schema: z.ZodObject<{
|
|
104
|
+
taskRef: z.ZodString;
|
|
105
|
+
startedAt: z.ZodString;
|
|
106
|
+
admittedAt: z.ZodOptional<z.ZodString>;
|
|
107
|
+
endedAt: z.ZodString;
|
|
108
|
+
dispatchWaitMs: z.ZodNumber;
|
|
109
|
+
runMs: z.ZodNumber;
|
|
110
|
+
dispatchWaitMeasuredFrom: z.ZodEnum<typeof BuildDispatchWaitMeasuredFrom>;
|
|
111
|
+
inFlight: z.ZodBoolean;
|
|
112
|
+
waitingOnPerson: z.ZodBoolean;
|
|
113
|
+
endedByCompanionRestart: z.ZodBoolean;
|
|
114
|
+
generationStep: z.ZodBoolean;
|
|
115
|
+
}, z.core.$strip>;
|
|
116
|
+
export type CreationJourney_BuildAttemptTiming = z.infer<typeof CreationJourney_BuildAttemptTiming_Schema>;
|
|
117
|
+
/**
|
|
118
|
+
* One task of the accepted build plan and the tasks it waits on: the graph that decides when a task COULD have been
|
|
119
|
+
* dispatched, which an attempt's own instants cannot say. Read from the plan as authored, with no landing pass.
|
|
120
|
+
*/
|
|
121
|
+
export declare const CreationJourney_BuildPlanTask_Schema: z.ZodObject<{
|
|
122
|
+
taskRef: z.ZodString;
|
|
123
|
+
prerequisiteTaskRefs: z.ZodArray<z.ZodString>;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
export type CreationJourney_BuildPlanTask = z.infer<typeof CreationJourney_BuildPlanTask_Schema>;
|
|
126
|
+
/** What `GET /api/companion/creation/timeline` answers. */
|
|
127
|
+
export declare const CreationJourney_Timeline_Schema: z.ZodObject<{
|
|
128
|
+
generatedAt: z.ZodString;
|
|
129
|
+
wallClock: z.ZodNullable<z.ZodObject<{
|
|
130
|
+
startedAt: z.ZodString;
|
|
131
|
+
endedAt: z.ZodString;
|
|
132
|
+
durationMs: z.ZodNumber;
|
|
133
|
+
inFlight: z.ZodBoolean;
|
|
134
|
+
}, z.core.$strip>>;
|
|
135
|
+
phases: z.ZodArray<z.ZodObject<{
|
|
136
|
+
phase: z.ZodEnum<typeof CreationJourneyPhase>;
|
|
137
|
+
laneRef: z.ZodString;
|
|
138
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
139
|
+
endedAt: z.ZodOptional<z.ZodString>;
|
|
140
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
141
|
+
inFlight: z.ZodBoolean;
|
|
142
|
+
waitingOnPerson: z.ZodBoolean;
|
|
143
|
+
playbookRuns: z.ZodNumber;
|
|
144
|
+
buildAttempts: z.ZodNumber;
|
|
145
|
+
}, z.core.$strip>>;
|
|
146
|
+
slowestBuildTasks: z.ZodArray<z.ZodObject<{
|
|
147
|
+
taskRef: z.ZodString;
|
|
148
|
+
attempts: z.ZodNumber;
|
|
149
|
+
dispatchWaitMs: z.ZodNumber;
|
|
150
|
+
runMs: z.ZodNumber;
|
|
151
|
+
totalMs: z.ZodNumber;
|
|
152
|
+
dispatchWaitMeasuredFrom: z.ZodEnum<typeof BuildDispatchWaitMeasuredFrom>;
|
|
153
|
+
inFlight: z.ZodBoolean;
|
|
154
|
+
waitingOnPerson: z.ZodBoolean;
|
|
155
|
+
endedByCompanionRestart: z.ZodBoolean;
|
|
156
|
+
generationStep: z.ZodBoolean;
|
|
157
|
+
}, z.core.$strip>>;
|
|
158
|
+
attemptedBuildTasks: z.ZodNumber;
|
|
159
|
+
buildAttemptTimings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
160
|
+
taskRef: z.ZodString;
|
|
161
|
+
startedAt: z.ZodString;
|
|
162
|
+
admittedAt: z.ZodOptional<z.ZodString>;
|
|
163
|
+
endedAt: z.ZodString;
|
|
164
|
+
dispatchWaitMs: z.ZodNumber;
|
|
165
|
+
runMs: z.ZodNumber;
|
|
166
|
+
dispatchWaitMeasuredFrom: z.ZodEnum<typeof BuildDispatchWaitMeasuredFrom>;
|
|
167
|
+
inFlight: z.ZodBoolean;
|
|
168
|
+
waitingOnPerson: z.ZodBoolean;
|
|
169
|
+
endedByCompanionRestart: z.ZodBoolean;
|
|
170
|
+
generationStep: z.ZodBoolean;
|
|
171
|
+
}, z.core.$strip>>>;
|
|
172
|
+
buildPlanGraph: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
173
|
+
taskRef: z.ZodString;
|
|
174
|
+
prerequisiteTaskRefs: z.ZodArray<z.ZodString>;
|
|
175
|
+
}, z.core.$strip>>>>;
|
|
176
|
+
outsidePhasePlaybookRuns: z.ZodNumber;
|
|
177
|
+
ambiguousPlaybookRefs: z.ZodArray<z.ZodString>;
|
|
178
|
+
notChecked: z.ZodArray<z.ZodString>;
|
|
179
|
+
}, z.core.$strip>;
|
|
180
|
+
export type CreationJourney_Timeline = z.infer<typeof CreationJourney_Timeline_Schema>;
|
|
181
|
+
/** How many of the slowest build tasks the timeline lists: the ten the epic's acceptance asks for. */
|
|
182
|
+
export declare const CREATION_JOURNEY_SLOWEST_BUILD_TASK_COUNT = 10;
|
|
183
|
+
//# sourceMappingURL=creation-journey-timeline.custom.shared.schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"creation-journey-timeline.custom.shared.schemas.d.ts","sourceRoot":"","sources":["../../../src/workbench/creation-journey-timeline.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;;;;;;GAkBG;AAEH;;;;;GAKG;AACH,oBAAY,oBAAoB;IAC9B,mGAAmG;IACnG,UAAU,eAAe;IACzB,gIAAgI;IAChI,UAAU,eAAe;IACzB,+GAA+G;IAC/G,UAAU,eAAe;IACzB;;;;OAIG;IACH,KAAK,UAAU;CAChB;AAED;;;GAGG;AACH,eAAO,MAAM,gCAAgC,EAAE,QAAQ,CAAC,MAAM,CAAC,oBAAoB,EAAE,MAAM,CAAC,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