@wildo-ai/platform-core-shared 1.1.10 → 1.1.12

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.
Files changed (142) hide show
  1. package/dist/esm/core/resources/resources-operations.custom.shared.definitions.js.map +1 -1
  2. package/dist/esm/core/resources/resources-relationships.custom.shared.definitions.js.map +1 -1
  3. package/dist/esm/core/resources/resources-types.custom.shared.schemas.d.ts.map +1 -1
  4. package/dist/esm/core/resources/resources-types.custom.shared.schemas.js.map +1 -1
  5. package/dist/esm/dev-runtime/dependency-install-record.d.ts +111 -0
  6. package/dist/esm/dev-runtime/dependency-install-record.d.ts.map +1 -0
  7. package/dist/esm/dev-runtime/dependency-install-record.js +185 -0
  8. package/dist/esm/dev-runtime/dependency-install-record.js.map +1 -0
  9. package/dist/esm/dev-runtime/dev-runtime-command.d.ts +50 -0
  10. package/dist/esm/dev-runtime/dev-runtime-command.d.ts.map +1 -0
  11. package/dist/esm/dev-runtime/dev-runtime-command.js +147 -0
  12. package/dist/esm/dev-runtime/dev-runtime-command.js.map +1 -0
  13. package/dist/esm/dev-runtime/dev-runtime-processes.d.ts +47 -0
  14. package/dist/esm/dev-runtime/dev-runtime-processes.d.ts.map +1 -0
  15. package/dist/esm/dev-runtime/dev-runtime-processes.js +163 -0
  16. package/dist/esm/dev-runtime/dev-runtime-processes.js.map +1 -0
  17. package/dist/esm/dev-runtime/dev-runtime-signals.d.ts +54 -0
  18. package/dist/esm/dev-runtime/dev-runtime-signals.d.ts.map +1 -0
  19. package/dist/esm/dev-runtime/dev-runtime-signals.js +113 -0
  20. package/dist/esm/dev-runtime/dev-runtime-signals.js.map +1 -0
  21. package/dist/esm/dev-runtime/emitted-relative-specifiers.d.ts +14 -0
  22. package/dist/esm/dev-runtime/emitted-relative-specifiers.d.ts.map +1 -0
  23. package/dist/esm/dev-runtime/emitted-relative-specifiers.js +71 -0
  24. package/dist/esm/dev-runtime/emitted-relative-specifiers.js.map +1 -0
  25. package/dist/esm/dev-runtime/frontend-dev-runtime.d.ts +43 -0
  26. package/dist/esm/dev-runtime/frontend-dev-runtime.d.ts.map +1 -0
  27. package/dist/esm/dev-runtime/frontend-dev-runtime.js +42 -0
  28. package/dist/esm/dev-runtime/frontend-dev-runtime.js.map +1 -0
  29. package/dist/esm/dev-runtime/node-runtime-dev-supervisor.d.ts +233 -0
  30. package/dist/esm/dev-runtime/node-runtime-dev-supervisor.d.ts.map +1 -0
  31. package/dist/esm/dev-runtime/node-runtime-dev-supervisor.js +578 -0
  32. package/dist/esm/dev-runtime/node-runtime-dev-supervisor.js.map +1 -0
  33. package/dist/esm/dev-runtime/package-compile-loop.d.ts +125 -0
  34. package/dist/esm/dev-runtime/package-compile-loop.d.ts.map +1 -0
  35. package/dist/esm/dev-runtime/package-compile-loop.js +386 -0
  36. package/dist/esm/dev-runtime/package-compile-loop.js.map +1 -0
  37. package/dist/esm/dev-runtime.exports.d.ts +19 -0
  38. package/dist/esm/dev-runtime.exports.d.ts.map +1 -0
  39. package/dist/esm/dev-runtime.exports.js +19 -0
  40. package/dist/esm/dev-runtime.exports.js.map +1 -0
  41. package/dist/esm/index.d.ts +4 -0
  42. package/dist/esm/index.d.ts.map +1 -1
  43. package/dist/esm/index.js +4 -0
  44. package/dist/esm/index.js.map +1 -1
  45. package/dist/esm/runtime/application-backend-env.contracts.d.ts +16 -2
  46. package/dist/esm/runtime/application-backend-env.contracts.d.ts.map +1 -1
  47. package/dist/esm/runtime/application-backend-env.contracts.js +20 -1
  48. package/dist/esm/runtime/application-backend-env.contracts.js.map +1 -1
  49. package/dist/esm/runtime/application-worker-env.contracts.d.ts +14 -4
  50. package/dist/esm/runtime/application-worker-env.contracts.d.ts.map +1 -1
  51. package/dist/esm/runtime/application-worker-env.contracts.js +12 -0
  52. package/dist/esm/runtime/application-worker-env.contracts.js.map +1 -1
  53. package/dist/esm/runtime/backend-start-outcome.contracts.d.ts +27 -0
  54. package/dist/esm/runtime/backend-start-outcome.contracts.d.ts.map +1 -1
  55. package/dist/esm/runtime/backend-start-outcome.contracts.js +34 -0
  56. package/dist/esm/runtime/backend-start-outcome.contracts.js.map +1 -1
  57. package/dist/esm/runtime/frontend-settings-hub-wiring.contracts.d.ts +28 -0
  58. package/dist/esm/runtime/frontend-settings-hub-wiring.contracts.d.ts.map +1 -0
  59. package/dist/esm/runtime/frontend-settings-hub-wiring.contracts.js +35 -0
  60. package/dist/esm/runtime/frontend-settings-hub-wiring.contracts.js.map +1 -0
  61. package/dist/esm/runtime/http-server-env.contracts.d.ts +14 -1
  62. package/dist/esm/runtime/http-server-env.contracts.d.ts.map +1 -1
  63. package/dist/esm/runtime/http-server-env.contracts.js +13 -0
  64. package/dist/esm/runtime/http-server-env.contracts.js.map +1 -1
  65. package/dist/esm/runtime/local-dev-runtime-signals.contracts.d.ts +239 -0
  66. package/dist/esm/runtime/local-dev-runtime-signals.contracts.d.ts.map +1 -0
  67. package/dist/esm/runtime/local-dev-runtime-signals.contracts.js +256 -0
  68. package/dist/esm/runtime/local-dev-runtime-signals.contracts.js.map +1 -0
  69. package/dist/esm/runtime/runtime-topology.contracts.js.map +1 -1
  70. package/dist/esm/security/authorizations/roles.custom.shared.definitions.js.map +1 -1
  71. package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.resources-config.schemas.d.ts +362 -36
  72. package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.resources-config.schemas.d.ts.map +1 -1
  73. package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.resources-config.schemas.js +4 -3
  74. package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.resources-config.schemas.js.map +1 -1
  75. package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.schemas.d.ts +400 -37
  76. package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.schemas.d.ts.map +1 -1
  77. package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.schemas.js +107 -1
  78. package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.schemas.js.map +1 -1
  79. package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.resources-config.schemas.d.ts +26 -26
  80. package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.resources-config.schemas.d.ts.map +1 -1
  81. package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.resources-config.schemas.js +4 -3
  82. package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.resources-config.schemas.js.map +1 -1
  83. package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.d.ts +33 -27
  84. package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.d.ts.map +1 -1
  85. package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.js +26 -2
  86. package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.js.map +1 -1
  87. package/dist/esm/wildo-applications/wildo-applications.custom.shared.resources-config.schemas.d.ts +3 -3
  88. package/dist/esm/wildo-applications/wildo-applications.custom.shared.resources-config.schemas.d.ts.map +1 -1
  89. package/dist/esm/wildo-applications/wildo-applications.custom.shared.resources-config.schemas.js +30 -42
  90. package/dist/esm/wildo-applications/wildo-applications.custom.shared.resources-config.schemas.js.map +1 -1
  91. package/dist/esm/wildo-applications/wildo-applications.custom.shared.schemas.d.ts +9 -9
  92. package/dist/esm/wildo-applications/wildo-applications.custom.shared.schemas.js.map +1 -1
  93. package/dist/esm/wildo-applications-versions/wildo-applications-versions.custom.shared.resources-config.schemas.js.map +1 -1
  94. package/dist/esm/wildo-applications-versions/wildo-applications-versions.custom.shared.schemas.d.ts +7 -7
  95. package/dist/esm/wildo-applications-versions/wildo-applications-versions.custom.shared.schemas.js.map +1 -1
  96. package/dist/esm/workbench/creation-drive.custom.shared.schemas.d.ts +52 -0
  97. package/dist/esm/workbench/creation-drive.custom.shared.schemas.d.ts.map +1 -0
  98. package/dist/esm/workbench/creation-drive.custom.shared.schemas.js +49 -0
  99. package/dist/esm/workbench/creation-drive.custom.shared.schemas.js.map +1 -0
  100. package/dist/esm/workbench/creation-journey-timeline.custom.shared.schemas.d.ts +183 -0
  101. package/dist/esm/workbench/creation-journey-timeline.custom.shared.schemas.d.ts.map +1 -0
  102. package/dist/esm/workbench/creation-journey-timeline.custom.shared.schemas.js +188 -0
  103. package/dist/esm/workbench/creation-journey-timeline.custom.shared.schemas.js.map +1 -0
  104. package/dist/esm/workbench/workbench-aspect-resources.custom.shared.schemas.d.ts.map +1 -1
  105. package/dist/esm/workbench/workbench-aspect-resources.custom.shared.schemas.js +76 -0
  106. package/dist/esm/workbench/workbench-aspect-resources.custom.shared.schemas.js.map +1 -1
  107. package/dist/esm/workbench/workbench-creation-console.custom.shared.schemas.d.ts +170 -7
  108. package/dist/esm/workbench/workbench-creation-console.custom.shared.schemas.d.ts.map +1 -1
  109. package/dist/esm/workbench/workbench-creation-console.custom.shared.schemas.js +177 -7
  110. package/dist/esm/workbench/workbench-creation-console.custom.shared.schemas.js.map +1 -1
  111. package/dist/esm/workbench/workbench-creation-conversation.custom.shared.schemas.d.ts +21 -3
  112. package/dist/esm/workbench/workbench-creation-conversation.custom.shared.schemas.d.ts.map +1 -1
  113. package/dist/esm/workbench/workbench-creation-conversation.custom.shared.schemas.js +7 -0
  114. package/dist/esm/workbench/workbench-creation-conversation.custom.shared.schemas.js.map +1 -1
  115. package/dist/esm/workbench/workbench-creation-dossier.custom.shared.schemas.d.ts.map +1 -1
  116. package/dist/esm/workbench/workbench-creation-dossier.custom.shared.schemas.js.map +1 -1
  117. package/dist/esm/workbench/workbench-creation-plane.custom.shared.resources-config.schemas.d.ts +611 -405
  118. package/dist/esm/workbench/workbench-creation-plane.custom.shared.resources-config.schemas.d.ts.map +1 -1
  119. package/dist/esm/workbench/workbench-creation-plane.custom.shared.resources-config.schemas.js +98 -17
  120. package/dist/esm/workbench/workbench-creation-plane.custom.shared.resources-config.schemas.js.map +1 -1
  121. package/dist/esm/workbench/workbench-creation-plane.custom.shared.schemas.d.ts +821 -240
  122. package/dist/esm/workbench/workbench-creation-plane.custom.shared.schemas.d.ts.map +1 -1
  123. package/dist/esm/workbench/workbench-creation-plane.custom.shared.schemas.js +795 -41
  124. package/dist/esm/workbench/workbench-creation-plane.custom.shared.schemas.js.map +1 -1
  125. package/dist/esm/workbench/workbench-domain-model.custom.shared.schemas.d.ts +34 -0
  126. package/dist/esm/workbench/workbench-domain-model.custom.shared.schemas.d.ts.map +1 -1
  127. package/dist/esm/workbench/workbench-domain-model.custom.shared.schemas.js +31 -0
  128. package/dist/esm/workbench/workbench-domain-model.custom.shared.schemas.js.map +1 -1
  129. package/dist/esm/workbench/workbench-resources-types.custom.shared.schemas.d.ts +14 -2
  130. package/dist/esm/workbench/workbench-resources-types.custom.shared.schemas.d.ts.map +1 -1
  131. package/dist/esm/workbench/workbench-resources-types.custom.shared.schemas.js +25 -3
  132. package/dist/esm/workbench/workbench-resources-types.custom.shared.schemas.js.map +1 -1
  133. package/dist/esm/workbench/workbench-resources.custom.shared.resources-config.schemas.d.ts +353 -250
  134. package/dist/esm/workbench/workbench-resources.custom.shared.resources-config.schemas.d.ts.map +1 -1
  135. package/dist/esm/workbench/workbench-resources.custom.shared.resources-config.schemas.js +1 -0
  136. package/dist/esm/workbench/workbench-resources.custom.shared.resources-config.schemas.js.map +1 -1
  137. package/dist/esm/workbench/workbench-resources.custom.shared.schemas.d.ts +34 -29
  138. package/dist/esm/workbench/workbench-resources.custom.shared.schemas.d.ts.map +1 -1
  139. package/dist/esm/workbench/workbench-resources.custom.shared.schemas.js +9 -5
  140. package/dist/esm/workbench/workbench-resources.custom.shared.schemas.js.map +1 -1
  141. package/dist/tsconfig.build.tsbuildinfo +1 -1
  142. package/package.json +13 -8
@@ -0,0 +1 @@
1
+ {"version":3,"file":"local-dev-runtime-signals.contracts.js","sourceRoot":"","sources":["../../../src/runtime/local-dev-runtime-signals.contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;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,CAAC,GAAG,CAAC,CAAC,CAAC;CAC7B,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\n\n/**\n * The local dev loop's two RUNTIME-SIGNAL records: what an application package's compiler last did, and what the\n * supervisor of an application runtime (the backend) is doing (#3212, #3214, #3215, #3216).\n *\n * ## Why these live here, beside the backend's start record\n *\n * Both records were born in the monorepo's dev orchestrator (`scripts/dev-orchestrator/local-dev-protocol.mjs`), a\n * dependency-free script that only a FRAMEWORK DEVELOPER's application runs. An application created from the published\n * framework (app-creator mode) ran neither: its shared library was `tsc-watch` plus a `tsc-alias` pass, and its backend\n * was `node dist/index.js` started from the backend's own `tsc-watch --onSuccess`. Four defects of\n * `app-creation-test-007` followed from that one absence:\n *\n * - nothing restarted the backend when the shared library it imports was rebuilt, so a tree that was already fixed stayed\n * down for 46 minutes (#3215);\n * - the backend could start between the shared library's `tsc` emit and its alias pass, read extensionless imports and\n * die with `ERR_MODULE_NOT_FOUND`, and nothing brought it back (#3216);\n * - a backend left behind by an earlier generation kept the port and served stale code while every rebuild's start died\n * on \"port in use\", and a watcher dead since a laptop sleep was never noticed (#3214);\n * - the companion read the application's packages the instant a playbook had written their sources, before their\n * compiler had published, and stopped the whole creation loop on one stale read (#3212).\n *\n * The published framework now ships the writer of both records (`wildo-dev-runtime`, the program of\n * `@wildo-ai/wildo-dev-runtime`, which runs this package's `./dev-runtime` code, #3263), so the same files exist in both\n * modes, at the same paths, in the same shape. The companion reads them through THIS module and the\n * framework-developer scripts keep writing them from their own copy of the vocabulary, which is why the values below\n * are pinned against that script by a test rather than restated by hand.\n *\n * ## Where they live\n *\n * Under the application's runtime-signals home, `<app>/.wildo-saas/runtime-signals/`:\n * `compilers/<package file name>.json` for a compiler, `supervisors/<label>.json` for a runtime supervisor.\n */\n\n/** The protocol version both records carry. A reader refuses any other value rather than guessing its meaning. */\nexport const LOCAL_DEV_RUNTIME_SIGNALS_PROTOCOL_VERSION = 1;\n\n/** The application-relative runtime-signals home every record below lives under. */\nexport const APPLICATION_RUNTIME_SIGNALS_RELATIVE_DIRECTORY = '.wildo-saas/runtime-signals';\n\n/** The directory, under the runtime-signals home, holding one compile observation per application package. */\nexport const LOCAL_DEV_COMPILE_OBSERVATIONS_DIRECTORY = 'compilers';\n\n/** The directory, under the runtime-signals home, holding one record per supervised runtime. */\nexport const LOCAL_DEV_SUPERVISOR_OBSERVATIONS_DIRECTORY = 'supervisors';\n\nexport const LOCAL_DEV_COMPILE_OBSERVATION_KIND = 'wildo.local-dev.compile-observation';\nexport const LOCAL_DEV_SUPERVISOR_OBSERVATION_KIND = 'wildo.local-dev.supervisor-observation';\n\n/**\n * What an application package's compiler is doing. A package's `dist` may be READ only while its compiler is `READY`:\n * every other state means the output is being written, or was left half-written, or is not being kept current at all.\n */\nexport enum LocalDevCompileState {\n /** The compiler is starting and has not finished its first compilation. */\n STARTING = 'STARTING',\n /** `tsc` reported a compilation START and has not reported its end: it may be writing `dist` right now. */\n COMPILING = 'COMPILING',\n /**\n * `tsc` finished with no error and the post-emit pass (the import-specifier rewrite) is running. The emitted files\n * still carry extensionless relative imports that Node cannot resolve until this pass ends — the window #3216 measured.\n */\n FINALIZING = 'FINALIZING',\n /** The last compilation finished, its post-emit pass completed, and the emitted tree was verified. `dist` is current. */\n READY = 'READY',\n /** The last compilation reported errors, or its post-emit pass failed. `dist` holds an earlier or a partial build. */\n FAILED = 'FAILED',\n /** The compiler is not running. Nothing keeps `dist` current. */\n STOPPED = 'STOPPED',\n}\n\n/** What a runtime supervisor is doing with the runtime it owns. */\nexport enum LocalDevSupervisorState {\n /** Waiting to start the runtime: its build or a dependency's is not published yet, or a restart is under way. */\n STARTING = 'STARTING',\n /** The runtime is running and was started by this supervisor. */\n RUNNING = 'RUNNING',\n /** The runtime exited unexpectedly and a respawn is scheduled after a backoff. */\n BACKOFF = 'BACKOFF',\n /**\n * The supervisor will not start the runtime until something changes: `blocker` says what (a crash budget spent, a\n * port another process holds). A new build of a package it loads resets it.\n */\n PAUSED = 'PAUSED',\n /** The supervisor stopped and its runtime with it. */\n STOPPED = 'STOPPED',\n}\n\n/**\n * Why a supervisor is not running its runtime, as a closed vocabulary a reader can branch on.\n *\n * Kept apart from the free-text blockers the monorepo's supervisor publishes (a readiness reason, a migration owed)\n * because the remedy differs per member: a held port is the dev stack's, a crash loop is usually a dependency that is\n * down (#3365), and a spent budget is the application's own startup refusing. The `.mjs` mirror is\n * `LocalDevSupervisorBlocker` in `scripts/dev-orchestrator/local-dev-protocol.mjs`.\n */\nexport enum LocalDevSupervisorBlocker {\n /**\n * PAUSED: the runtime crashed at every respawn of its budget AND its own startup refused (its start record says\n * `startup-refused`), so a new build of a package it loads is what fixes it, and starts it again.\n */\n CRASH_RESPAWN_EXHAUSTED = 'CRASH_RESPAWN_EXHAUSTED',\n /**\n * BACKOFF past the budget (#3365): the runtime keeps crashing and the supervisor keeps restarting it, the delay\n * doubling up to a cap and never stopping (Kubernetes' CrashLoopBackOff). Published when the cause is a dependency\n * that did not answer, or cannot be told: a database that comes back must bring its runtime back by itself.\n * A reader treats it like a pause for \"is the application up?\": the runtime is not running between attempts.\n */\n CRASH_LOOP_BACKOFF = 'CRASH_LOOP_BACKOFF',\n /**\n * A process this supervisor did not spawn listens on the runtime's port, so every start dies binding it. The record's\n * `portHolder` names it. The supervisor starts the runtime the moment the port is free.\n */\n PORT_HELD_BY_FOREIGN_PROCESS = 'PORT_HELD_BY_FOREIGN_PROCESS',\n /**\n * STOPPED (#2149): an app-creator COMPANION's supervisor (`wildo-dev-companion-supervised`) saw it crash more times\n * than its window tolerates, stopped restarting it, and exited. Unlike {@link CRASH_RESPAWN_EXHAUSTED}, no build\n * starts it again: only restarting `wildo local dev` does, after the cause in its log is fixed. The record outlives\n * its producer on purpose, which is how `wildo local dev-status` can say the companion is down and why.\n */\n CRASH_LOOP_GAVE_UP = 'CRASH_LOOP_GAVE_UP',\n /**\n * PAUSED (#3552): a dependency install is re-creating the application's `node_modules` (the build applied a\n * composition scenario, or a person ran an install). A start now would boot against a half-installed tree, so the\n * runtime is held, and a crash in this window is not counted against its budget. It starts again, with a fresh\n * budget, the moment the install ends. See {@link LocalDevDependencyInstallRecord_Schema}.\n */\n DEPENDENCY_INSTALL_IN_FLIGHT = 'DEPENDENCY_INSTALL_IN_FLIGHT',\n}\n\n/**\n * The application-relative file, under the runtime-signals home, that says a dependency install is running in the\n * application, or when the last one ended (#3552). See {@link LocalDevDependencyInstallRecord_Schema}.\n */\nexport const LOCAL_DEV_DEPENDENCY_INSTALL_RECORD_FILE = 'dependency-install.json';\nexport const LOCAL_DEV_DEPENDENCY_INSTALL_RECORD_KIND = 'wildo.local-dev.dependency-install';\n\n/**\n * Where a dependency install stands, as every dev-loop reader of {@link LocalDevDependencyInstallRecord_Schema} judges it.\n */\nexport enum LocalDevDependencyInstallPhase {\n /** No install has been recorded in this application. */\n NONE = 'NONE',\n /** An install is running: its writer is alive and its deadline has not passed. Nothing may start on the tree. */\n IN_FLIGHT = 'IN_FLIGHT',\n /**\n * The install is over: it finished (successfully or not), its writer died without finishing, or it outlived its\n * deadline. Everything that compiled or started before it ended read a tree that has since changed.\n */\n ENDED = 'ENDED',\n}\n\nconst isoTimestamp = z.string().refine((value) => Number.isFinite(Date.parse(value)), 'an ISO-8601 timestamp');\n\n/**\n * The process found listening on a port. That SOMETHING listens is established by connecting to it; who it is comes\n * from the operating system's tools (`lsof`, `ps`), which a host may lack, so every field but `port` may be unknown.\n */\nexport const LocalDevPortHolder_Schema = z.object({\n port: z.number().int().positive(),\n pid: z.number().int().positive().nullable(),\n /** The holder's parent. `1` means it was re-parented to the init process: its own parent is gone (an orphan). */\n ppid: z.number().int().nonnegative().nullable(),\n /** When the holder started, as `ps` reports it. */\n startedAt: z.string().nullable(),\n /** The holder's working directory. */\n cwd: z.string().nullable(),\n /** The holder's command line, truncated. */\n command: z.string().nullable(),\n});\nexport type LocalDevPortHolder = z.infer<typeof LocalDevPortHolder_Schema>;\n\n/**\n * One application package's compiler, as its observer last published it. Loose (unknown keys kept) because the framework\n * developer's observer writes further fields (its diagnostic, its producer kind) that no reader here depends on.\n */\nexport const LocalDevCompileObservation_Schema = z.looseObject({\n kind: z.literal(LOCAL_DEV_COMPILE_OBSERVATION_KIND),\n schemaVersion: z.literal(LOCAL_DEV_RUNTIME_SIGNALS_PROTOCOL_VERSION),\n producerPid: z.number().int().positive(),\n /** The compiler process the producer owns, or null when none runs. */\n childPid: z.number().int().positive().nullable(),\n appRoot: z.string().min(1),\n packageRoot: z.string().min(1),\n packageName: z.string().min(1),\n state: z.enum(LocalDevCompileState),\n heartbeatAt: isoTimestamp,\n updatedAt: isoTimestamp,\n /** When the compiler last reported a compilation start. */\n lastCompilationStartedAt: isoTimestamp.nullable(),\n /** When a compilation last ended READY: emitted, post-processed and verified. */\n lastSuccessfulCompileAt: isoTimestamp.nullable(),\n lastFailureAt: isoTimestamp.nullable(),\n lastErrorCount: z.number().int().nonnegative().nullable(),\n});\nexport type LocalDevCompileObservation = z.infer<typeof LocalDevCompileObservation_Schema>;\n\n/** One supervised runtime. Loose for the same reason as the compile observation. */\nexport const LocalDevSupervisorObservation_Schema = z.looseObject({\n kind: z.literal(LOCAL_DEV_SUPERVISOR_OBSERVATION_KIND),\n schemaVersion: z.literal(LOCAL_DEV_RUNTIME_SIGNALS_PROTOCOL_VERSION),\n producerPid: z.number().int().positive(),\n label: z.string().min(1),\n state: z.enum(LocalDevSupervisorState),\n childPid: z.number().int().positive().nullable(),\n /** When the current (or last) runtime child was started. */\n childStartedAt: isoTimestamp.nullable().optional(),\n /** A free-text reason (the monorepo supervisor's), or one of {@link LocalDevSupervisorBlocker}. */\n blocker: z.string().nullable(),\n /** Set with {@link LocalDevSupervisorBlocker.PORT_HELD_BY_FOREIGN_PROCESS}: the process that holds the port. */\n portHolder: LocalDevPortHolder_Schema.nullable().optional(),\n /**\n * The file whose change asks this supervisor to restart its runtime (`<runtime-signals home>/<label>.signal`); `null`\n * when the supervisor honours no such request. ABSENT from a writer that predates the field, which a reader treats as\n * the conventional `<label>.signal` (the CLI does). Three writers set it: the monorepo's `runtime-supervisor.mjs`\n * since #1031 and `wildo-dev-runtime serve` since #2134, each to its file (which is how `wildo secrets set` brings a\n * changed key to a created application's running backend, minion or worker), and the app-creator companion's\n * supervisor since #2149, to `null`: it honours no request, because the companion loads a changed key in place.\n */\n signalFilePath: z.string().min(1).nullable().optional(),\n updatedAt: isoTimestamp,\n});\nexport type LocalDevSupervisorObservation = z.infer<typeof LocalDevSupervisorObservation_Schema>;\n\n/**\n * A dependency install in an application, as its installer records it (#3552).\n *\n * ## Why it exists\n *\n * `pnpm install` re-creates the application's `node_modules` while `wildo local dev` runs against it. Measured on\n * reference run 42666728304 (2026-11-09): the build's foundation step applied composition scenarios that added four\n * minions and a documentation site, and installed them (16 s). In that window every compile watcher compiled against a\n * half-installed tree (`TS2318 Cannot find global type 'Array'`, `TS6053 lib.dom.d.ts not found`) and nothing ever asked\n * it to compile again; the backend's readiness stayed blocked on those failures; every companion introspection worker\n * died on `Cannot find package 'zod'`; and the install re-created the virtual-store key of `@wildo-ai/framework-knowledge`\n * without its compiled knowledge tree, so `GET /api/companion/creation/questions` answered 500 for as long as the run\n * was watched. Nothing tied the install to the running stack.\n *\n * So the installer writes this record before the install (`finishedAt: null`) and again when it ends, and every dev-loop\n * process reads it: a runtime supervisor HOLDS its runtime while the install is in flight and does not count a crash\n * against its budget, then relaunches it (and, in a framework checkout, repairs the injected snapshots first); a\n * compile observer restarts a watcher whose last compile began before the install ended.\n *\n * ## Why a pid and a deadline rather than a heartbeat\n *\n * Every other in-flight signal here is a heartbeat refreshed from a timer. An install is often run SYNCHRONOUSLY\n * (`spawnSync` in the CLI), so no timer would beat during it. The writer's pid answers \"still running?\" and the\n * deadline bounds a writer that hangs, so a record can never hold the stack for good.\n *\n * ## Why it is never removed\n *\n * The finished record is what tells a watcher that started compiling before the install ended to compile again. It is a\n * cache in the sense of `one-source-of-truth.md`: deleting it costs one missed relaunch, never a fact.\n */\nexport const LocalDevDependencyInstallRecord_Schema = z.looseObject({\n kind: z.literal(LOCAL_DEV_DEPENDENCY_INSTALL_RECORD_KIND),\n schemaVersion: z.literal(LOCAL_DEV_RUNTIME_SIGNALS_PROTOCOL_VERSION),\n /** The process running the install (the companion, or the CLI). */\n pid: z.number().int().positive(),\n startedAt: isoTimestamp,\n /** Past this instant the install is treated as ended, whatever its writer says. */\n deadlineAt: isoTimestamp,\n /** When the install ended, or `null` while it runs. */\n finishedAt: isoTimestamp.nullable(),\n /** Whether it succeeded, or `null` while it runs. */\n succeeded: z.boolean().nullable(),\n /** Who installed, for a reader of the record: `foundation`, `wildo update`, … */\n initiator: z.string().min(1),\n});\nexport type LocalDevDependencyInstallRecord = z.infer<typeof LocalDevDependencyInstallRecord_Schema>;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-topology.contracts.js","sourceRoot":"","sources":["../../../../src/runtime/runtime-topology.contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAO/B;;;;;GAKG;AACH,MAAM,CAAN,IAAY,uBAOX;AAPD,WAAY,uBAAuB;IACjC,0EAA+C,CAAA;IAC/C,kGAAuE,CAAA;IACvE,gFAAqD,CAAA;IACrD,0EAA+C,CAAA;IAC/C,gDAAqB,CAAA;IACrB,0DAA+B,CAAA;AACjC,CAAC,EAPW,uBAAuB,KAAvB,uBAAuB,QAOlC;AAED;;;;;GAKG;AACH,MAAM,CAAN,IAAY,0BAIX;AAJD,WAAY,0BAA0B;IACpC,6EAAqE,CAAA;IACrE,qGAA6F,CAAA;IAC7F,mFAA2E,CAAA;AAC7E,CAAC,EAJW,0BAA0B,KAA1B,0BAA0B,QAIrC;AAeD,MAAM,UAAU,6BAA6B,CAC3C,KAAoC;IAEpC,MAAM,GAAG,GAAwC;QAC/C,CAAC,0BAA0B,CAAC,qBAAqB,CAAC,EAAE,KAAK,CAAC,WAAW;QACrE,CAAC,0BAA0B,CAAC,iCAAiC,CAAC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AC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QAClD,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YAChE,MAAM,IAAI,KAAK,CAAC,qBAAqB,GAAG,qBAAqB,CAAC,CAAC;QACjE,CAAC;QAED,MAAM,SAAS,GAAI,KAAiC,CAAC,SAAS,CAAC;QAC/D,MAAM,WAAW,GAAI,KAAiC,CAAC,WAAW,CAAC;QACnE,IAAI,OAAO,SAAS,KAAK,QAAQ,IAAI,OAAO,WAAW,KAAK,QAAQ,EAAE,CAAC;YACrE,MAAM,IAAI,KAAK,CAAC,qBAAqB,GAAG,4CAA4C,CAAC,CAAC;QACxF,CAAC;QAED,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;IAC3C,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["import {\n BackendApiType,\n StaticFrontEndType,\n} from '@wildo-ai/saas-models';\n\nexport interface RuntimeEndpointUrls {\n publicUrl: string;\n internalUrl: string;\n}\n\n/**\n * Shared application/service identifiers for platform-owned runtimes.\n *\n * This enum must live in the shared contract layer because CLI/runtime topology\n * code needs these semantics without importing backend runtime packages.\n */\nexport enum PlatformApplicationType {\n PLATFORM_APPS_MANAGER = 'platform_apps_manager',\n PLATFORM_CRONTABS_BATCHES_MANAGER = 'platform_crontabs_batches_manager',\n PLATFORM_MODULE_REGISTRY = 'platform_module_registry',\n APP_LIFECYCLE_MANAGER = 'app_lifecycle_manager',\n APP_CICD = 'app_cicd',\n PLATFORM_CICD = 'platform_cicd',\n}\n\n/**\n * Shared runtime endpoint keys for platform services.\n *\n * These are the subset of `PlatformApplicationType` that expose runtime\n * endpoints directly.\n */\nexport enum PlatformRuntimeEndpointKey {\n PLATFORM_APPS_MANAGER = PlatformApplicationType.PLATFORM_APPS_MANAGER,\n PLATFORM_CRONTABS_BATCHES_MANAGER = PlatformApplicationType.PLATFORM_CRONTABS_BATCHES_MANAGER,\n PLATFORM_MODULE_REGISTRY = PlatformApplicationType.PLATFORM_MODULE_REGISTRY,\n}\n\nexport interface PlatformRuntimeEndpointsInput {\n appsManager: RuntimeEndpointUrls;\n crontabsBatchesManager: RuntimeEndpointUrls;\n /**\n * Module-registry endpoint (Phase 3 / KD-7). Optional during the\n * Phase 3 rollout: existing platform deployments that haven't\n * yet provisioned the registry pass `undefined` and the entry\n * is omitted from the resulting record. New deployments + every\n * Phase 4+ caller MUST set it.\n */\n moduleRegistry?: RuntimeEndpointUrls;\n}\n\nexport function buildPlatformRuntimeEndpoints(\n input: PlatformRuntimeEndpointsInput,\n): Record<string, RuntimeEndpointUrls> {\n const out: Record<string, RuntimeEndpointUrls> = {\n [PlatformRuntimeEndpointKey.PLATFORM_APPS_MANAGER]: input.appsManager,\n [PlatformRuntimeEndpointKey.PLATFORM_CRONTABS_BATCHES_MANAGER]: input.crontabsBatchesManager,\n };\n if (input.moduleRegistry) {\n out[PlatformRuntimeEndpointKey.PLATFORM_MODULE_REGISTRY] = input.moduleRegistry;\n }\n return out;\n}\n\nexport interface ApplicationRuntimeEndpointsInput {\n frontendApplications?: Record<string, RuntimeEndpointUrls> | undefined;\n website?: RuntimeEndpointUrls | undefined;\n technicalDocumentation?: RuntimeEndpointUrls | undefined;\n mainBackendApi?: RuntimeEndpointUrls | undefined;\n}\n\nexport function buildApplicationRuntimeEndpoints(\n input: ApplicationRuntimeEndpointsInput,\n): Record<string, RuntimeEndpointUrls> {\n const endPoints: Record<string, RuntimeEndpointUrls> = {\n ...(input.frontendApplications ?? {}),\n };\n if (input.website) {\n endPoints[StaticFrontEndType.WEBSITE] = input.website;\n }\n if (input.technicalDocumentation) {\n endPoints[StaticFrontEndType.TECHNICAL_DOCUMENTATION] = input.technicalDocumentation;\n }\n if (input.mainBackendApi) {\n endPoints[BackendApiType.MAIN_BACKEND_API] = input.mainBackendApi;\n }\n\n return endPoints;\n}\n\nexport function serializeRuntimeEndpointsRecord(\n endPoints: Record<string, RuntimeEndpointUrls>,\n): string {\n return JSON.stringify(endPoints);\n}\n\nexport function parseRuntimeEndpointsRecord(\n serializedRuntimeEndpoints: string,\n): Record<string, RuntimeEndpointUrls> {\n const parsed = JSON.parse(serializedRuntimeEndpoints) as unknown;\n if (!parsed || typeof parsed !== 'object' || Array.isArray(parsed)) {\n throw new Error('Runtime endpoints payload must be a JSON object');\n }\n\n const record: Record<string, RuntimeEndpointUrls> = {};\n for (const [key, value] of Object.entries(parsed)) {\n if (!value || typeof value !== 'object' || Array.isArray(value)) {\n throw new Error(`Runtime endpoint \"${key}\" must be an object`);\n }\n\n const publicUrl = (value as Record<string, unknown>).publicUrl;\n const internalUrl = (value as Record<string, unknown>).internalUrl;\n if (typeof publicUrl !== 'string' || typeof internalUrl !== 'string') {\n throw new Error(`Runtime endpoint \"${key}\" must expose string publicUrl/internalUrl`);\n }\n\n record[key] = { publicUrl, internalUrl };\n }\n\n return record;\n}\n"]}
1
+ {"version":3,"file":"runtime-topology.contracts.js","sourceRoot":"","sources":["../../../src/runtime/runtime-topology.contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAO/B;;;;;GAKG;AACH,MAAM,CAAN,IAAY,uBAOX;AAPD,WAAY,uBAAuB;IACjC,0EAA+C,CAAA;IAC/C,kGAAuE,CAAA;IACvE,gFAAqD,CAAA;IACrD,0EAA+C,CAAA;IAC/C,gDAAqB,CAAA;IACrB,0DAA+B,CAAA;AACjC,CAAC,EAPW,uBAAuB,KAAvB,uBAAuB,QAOlC;AAED;;;;;GAKG;AACH,MAAM,CAAN,IAAY,0BAIX;AAJD,WAAY,0BAA0B;IACpC,6EAAqE,CAAA;IACrE,qGAA6F,CAAA;IAC7F,mFAA2E,CAAA;AAC7E,CAAC,EAJW,0BAA0B,KAA1B,0BAA0B,QAIrC;A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AAC,MAAM,CAAC,EAAE,CAAC;QACnE,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;IACrE,CAAC;IAED,MAAM,MAAM,GAAwC,EAAE,CAAC;IACvD,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QAClD,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YAChE,MAAM,IAAI,KAAK,CAAC,qBAAqB,GAAG,qBAAqB,CAAC,CAAC;QACjE,CAAC;QAED,MAAM,SAAS,GAAI,KAAiC,CAAC,SAAS,CAAC;QAC/D,MAAM,WAAW,GAAI,KAAiC,CAAC,WAAW,CAAC;QACnE,IAAI,OAAO,SAAS,KAAK,QAAQ,IAAI,OAAO,WAAW,KAAK,QAAQ,EAAE,CAAC;YACrE,MAAM,IAAI,KAAK,CAAC,qBAAqB,GAAG,4CAA4C,CAAC,CAAC;QACxF,CAAC;QAED,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;IAC3C,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["import {\n BackendApiType,\n StaticFrontEndType,\n} from '@wildo-ai/saas-models';\n\nexport interface RuntimeEndpointUrls {\n publicUrl: string;\n internalUrl: string;\n}\n\n/**\n * Shared application/service identifiers for platform-owned runtimes.\n *\n * This enum must live in the shared contract layer because CLI/runtime topology\n * code needs these semantics without importing backend runtime packages.\n */\nexport enum PlatformApplicationType {\n PLATFORM_APPS_MANAGER = 'platform_apps_manager',\n PLATFORM_CRONTABS_BATCHES_MANAGER = 'platform_crontabs_batches_manager',\n PLATFORM_MODULE_REGISTRY = 'platform_module_registry',\n APP_LIFECYCLE_MANAGER = 'app_lifecycle_manager',\n APP_CICD = 'app_cicd',\n PLATFORM_CICD = 'platform_cicd',\n}\n\n/**\n * Shared runtime endpoint keys for platform services.\n *\n * These are the subset of `PlatformApplicationType` that expose runtime\n * endpoints directly.\n */\nexport enum PlatformRuntimeEndpointKey {\n PLATFORM_APPS_MANAGER = PlatformApplicationType.PLATFORM_APPS_MANAGER,\n PLATFORM_CRONTABS_BATCHES_MANAGER = PlatformApplicationType.PLATFORM_CRONTABS_BATCHES_MANAGER,\n PLATFORM_MODULE_REGISTRY = PlatformApplicationType.PLATFORM_MODULE_REGISTRY,\n}\n\nexport interface PlatformRuntimeEndpointsInput {\n appsManager: RuntimeEndpointUrls;\n crontabsBatchesManager: RuntimeEndpointUrls;\n /**\n * Module-registry endpoint (Phase 3 / KD-7). Optional during the\n * Phase 3 rollout: existing platform deployments that haven't\n * yet provisioned the registry pass `undefined` and the entry\n * is omitted from the resulting record. New deployments + every\n * Phase 4+ caller MUST set it.\n */\n moduleRegistry?: RuntimeEndpointUrls;\n}\n\nexport function buildPlatformRuntimeEndpoints(\n input: PlatformRuntimeEndpointsInput,\n): Record<string, RuntimeEndpointUrls> {\n const out: Record<string, RuntimeEndpointUrls> = {\n [PlatformRuntimeEndpointKey.PLATFORM_APPS_MANAGER]: input.appsManager,\n [PlatformRuntimeEndpointKey.PLATFORM_CRONTABS_BATCHES_MANAGER]: input.crontabsBatchesManager,\n };\n if (input.moduleRegistry) {\n out[PlatformRuntimeEndpointKey.PLATFORM_MODULE_REGISTRY] = input.moduleRegistry;\n }\n return out;\n}\n\nexport interface ApplicationRuntimeEndpointsInput {\n frontendApplications?: Record<string, RuntimeEndpointUrls> | undefined;\n website?: RuntimeEndpointUrls | undefined;\n technicalDocumentation?: RuntimeEndpointUrls | undefined;\n mainBackendApi?: RuntimeEndpointUrls | undefined;\n}\n\nexport function buildApplicationRuntimeEndpoints(\n input: ApplicationRuntimeEndpointsInput,\n): Record<string, RuntimeEndpointUrls> {\n const endPoints: Record<string, RuntimeEndpointUrls> = {\n ...(input.frontendApplications ?? {}),\n };\n if (input.website) {\n endPoints[StaticFrontEndType.WEBSITE] = input.website;\n }\n if (input.technicalDocumentation) {\n endPoints[StaticFrontEndType.TECHNICAL_DOCUMENTATION] = input.technicalDocumentation;\n }\n if (input.mainBackendApi) {\n endPoints[BackendApiType.MAIN_BACKEND_API] = input.mainBackendApi;\n }\n\n return endPoints;\n}\n\nexport function serializeRuntimeEndpointsRecord(\n endPoints: Record<string, RuntimeEndpointUrls>,\n): string {\n return JSON.stringify(endPoints);\n}\n\nexport function parseRuntimeEndpointsRecord(\n serializedRuntimeEndpoints: string,\n): Record<string, RuntimeEndpointUrls> {\n const parsed = JSON.parse(serializedRuntimeEndpoints) as unknown;\n if (!parsed || typeof parsed !== 'object' || Array.isArray(parsed)) {\n throw new Error('Runtime endpoints payload must be a JSON object');\n }\n\n const record: Record<string, RuntimeEndpointUrls> = {};\n for (const [key, value] of Object.entries(parsed)) {\n if (!value || typeof value !== 'object' || Array.isArray(value)) {\n throw new Error(`Runtime endpoint \"${key}\" must be an object`);\n }\n\n const publicUrl = (value as Record<string, unknown>).publicUrl;\n const internalUrl = (value as Record<string, unknown>).internalUrl;\n if (typeof publicUrl !== 'string' || typeof internalUrl !== 'string') {\n throw new Error(`Runtime endpoint \"${key}\" must expose string publicUrl/internalUrl`);\n }\n\n record[key] = { publicUrl, internalUrl };\n }\n\n return record;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"roles.custom.shared.definitions.js","sourceRoot":"","sources":["../../../../../src/security/authorizations/roles.custom.shared.definitions.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,0BAA0B,GAAuB,EAE7D,CAAC","sourcesContent":["import { RolesConfiguration, ResourcePrimaryScope } from \"@wildo-ai/saas-models\";\n\nexport const CUSTOM_ROLES_CONFIGURATION: RolesConfiguration = {\n \n};\n\n"]}
1
+ {"version":3,"file":"roles.custom.shared.definitions.js","sourceRoot":"","sources":["../../../../src/security/authorizations/roles.custom.shared.definitions.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,0BAA0B,GAAuB,EAE7D,CAAC","sourcesContent":["import { RolesConfiguration, ResourcePrimaryScope } from \"@wildo-ai/saas-models\";\n\nexport const CUSTOM_ROLES_CONFIGURATION: RolesConfiguration = {\n \n};\n\n"]}