@wildo-ai/dev-companion 1.1.15 → 1.1.16

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 (96) hide show
  1. package/dist/esm/.tsbuildinfo +1 -1
  2. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +165 -5
  3. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
  4. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js +239 -8
  5. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
  6. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts +2 -1
  7. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts.map +1 -1
  8. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js +2 -1
  9. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js.map +1 -1
  10. package/dist/esm/claude-cli/models/isolated-recheck-interference.models.d.ts +68 -0
  11. package/dist/esm/claude-cli/models/isolated-recheck-interference.models.d.ts.map +1 -0
  12. package/dist/esm/claude-cli/models/isolated-recheck-interference.models.js +198 -0
  13. package/dist/esm/claude-cli/models/isolated-recheck-interference.models.js.map +1 -0
  14. package/dist/esm/claude-cli/models/workspace-path-claims.models.d.ts +138 -0
  15. package/dist/esm/claude-cli/models/workspace-path-claims.models.d.ts.map +1 -0
  16. package/dist/esm/claude-cli/models/workspace-path-claims.models.js +204 -0
  17. package/dist/esm/claude-cli/models/workspace-path-claims.models.js.map +1 -0
  18. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts +20 -0
  19. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts.map +1 -1
  20. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js +27 -12
  21. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -1
  22. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +155 -3
  23. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
  24. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js +791 -151
  25. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
  26. package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
  27. package/dist/esm/companion-api/controllers/companion.controller.js +7 -1
  28. package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
  29. package/dist/esm/core/introspection/resources/creation-home-projection.companion.js +1 -1
  30. package/dist/esm/core/introspection/resources/creation-home-projection.companion.js.map +1 -1
  31. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts +13 -0
  32. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts.map +1 -1
  33. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js +98 -16
  34. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js.map +1 -1
  35. package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts +21 -1
  36. package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts.map +1 -1
  37. package/dist/esm/expert-personas/services/expert-persona.companion.service.js +35 -3
  38. package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
  39. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_ACTIVITY_SETTINGS.en.d.ts +62 -0
  40. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_ACTIVITY_SETTINGS.en.d.ts.map +1 -0
  41. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_ACTIVITY_SETTINGS.en.js +62 -0
  42. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_ACTIVITY_SETTINGS.en.js.map +1 -0
  43. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_ACTIVITY_SETTINGS.fr.d.ts +62 -0
  44. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_ACTIVITY_SETTINGS.fr.d.ts.map +1 -0
  45. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_ACTIVITY_SETTINGS.fr.js +62 -0
  46. package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_ACTIVITY_SETTINGS.fr.js.map +1 -0
  47. package/dist/esm/i18n/system_enums/workbench-build.en.d.ts +1 -1
  48. package/dist/esm/i18n/system_enums/workbench-build.en.js +1 -1
  49. package/dist/esm/i18n/system_enums/workbench-build.en.js.map +1 -1
  50. package/dist/esm/meta-workflows/models/carried-verification-failure.models.d.ts +23 -0
  51. package/dist/esm/meta-workflows/models/carried-verification-failure.models.d.ts.map +1 -1
  52. package/dist/esm/meta-workflows/models/carried-verification-failure.models.js +14 -0
  53. package/dist/esm/meta-workflows/models/carried-verification-failure.models.js.map +1 -1
  54. package/dist/esm/meta-workflows/models/creation-journey-timeline.models.d.ts +12 -1
  55. package/dist/esm/meta-workflows/models/creation-journey-timeline.models.d.ts.map +1 -1
  56. package/dist/esm/meta-workflows/models/creation-journey-timeline.models.js +99 -1
  57. package/dist/esm/meta-workflows/models/creation-journey-timeline.models.js.map +1 -1
  58. package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.d.ts +5 -0
  59. package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.d.ts.map +1 -1
  60. package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.js +22 -1
  61. package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.js.map +1 -1
  62. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +67 -20
  63. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
  64. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +344 -76
  65. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
  66. package/dist/esm/meta-workflows/services/application-build-follow-up-derivation.companion.d.ts.map +1 -1
  67. package/dist/esm/meta-workflows/services/application-build-follow-up-derivation.companion.js +9 -0
  68. package/dist/esm/meta-workflows/services/application-build-follow-up-derivation.companion.js.map +1 -1
  69. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +47 -1
  70. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts.map +1 -1
  71. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js +98 -9
  72. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map +1 -1
  73. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts +38 -2
  74. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
  75. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js +176 -22
  76. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js.map +1 -1
  77. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts +45 -0
  78. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts.map +1 -1
  79. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js +74 -0
  80. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js.map +1 -1
  81. package/dist/esm/meta-workflows/services/creation-run-report.companion.service.d.ts.map +1 -1
  82. package/dist/esm/meta-workflows/services/creation-run-report.companion.service.js +9 -1
  83. package/dist/esm/meta-workflows/services/creation-run-report.companion.service.js.map +1 -1
  84. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +64 -5
  85. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
  86. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js +139 -14
  87. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
  88. package/dist/esm/meta-workflows/services/website-demo-facts.models.d.ts +19 -1
  89. package/dist/esm/meta-workflows/services/website-demo-facts.models.d.ts.map +1 -1
  90. package/dist/esm/meta-workflows/services/website-demo-facts.models.js +7 -5
  91. package/dist/esm/meta-workflows/services/website-demo-facts.models.js.map +1 -1
  92. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts +2 -0
  93. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts.map +1 -1
  94. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js +3 -1
  95. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js.map +1 -1
  96. package/package.json +17 -17
@@ -0,0 +1 @@
1
+ {"version":3,"file":"APP_LAYOUTS_AGENT_ACTIVITY_SETTINGS.en.js","sourceRoot":"","sources":["../../../../src/i18n/components/APP_LAYOUTS_AGENT_ACTIVITY_SETTINGS.en.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,YAAY,EAAE;QACZ,qCAAqC,EAAE;YACrC,yBAAyB,EAAE,kDAAkD;YAC7E,mBAAmB,EAAE,2CAA2C;YAChE,mBAAmB,EAAE,uDAAuD;YAC5E,qBAAqB,EAAE,sBAAsB;YAC7C,sBAAsB,EAAE,oBAAoB;YAC5C,4BAA4B,EAAE,kDAAkD;YAChF,sBAAsB,EAAE,qCAAqC;YAC7D,YAAY,EAAE,cAAc;YAC5B,eAAe,EAAE,SAAS;YAC1B,YAAY,EAAE,MAAM;YACpB,mBAAmB,EAAE,aAAa;YAClC,iBAAiB,EAAE,WAAW;YAC9B,gBAAgB,EAAE,UAAU;YAC5B,YAAY,EAAE,MAAM;YACpB,oBAAoB,EAAE,cAAc;YACpC,eAAe,EAAE,SAAS;YAC1B,cAAc,EAAE,QAAQ;YACxB,cAAc,EAAE,kBAAkB;YAClC,iBAAiB,EAAE,OAAO;YAC1B,mBAAmB,EAAE,SAAS;YAC9B,iBAAiB,EAAE,QAAQ;YAC3B,eAAe,EAAE,mBAAmB;YACpC,kBAAkB,EAAE,WAAW;YAC/B,qBAAqB,EAAE,MAAM;YAC7B,oBAAoB,EAAE,UAAU;YAChC,OAAO,EAAE,cAAc;YACvB,0BAA0B,EAAE,oGAAoG;YAChI,cAAc,EAAE,uCAAuC;YACvD,UAAU,EAAE,iDAAiD;YAC7D,kBAAkB,EAAE,gBAAgB;YACpC,kBAAkB,EAAE,gBAAgB;YACpC,kBAAkB,EAAE,0FAA0F;YAC9G,mBAAmB,EAAE,YAAY;YACjC,WAAW,EAAE,UAAU;YACvB,iBAAiB,EAAE,qBAAqB;YACxC,UAAU,EAAE,WAAW;YACvB,eAAe,EAAE,WAAW;YAC5B,SAAS,EAAE,UAAU;YACrB,gBAAgB,EAAE,yCAAyC;YAC3D,SAAS,EAAE,eAAe;YAC1B,aAAa,EAAE,cAAc;YAC7B,SAAS,EAAE,MAAM;YACjB,iBAAiB,EAAE,6CAA6C;YAChE,WAAW,EAAE,gBAAgB;YAC7B,iBAAiB,EAAE,qBAAqB;YACxC,wBAAwB,EAAE,wBAAwB;YAClD,kBAAkB,EAAE,cAAc;YAClC,iBAAiB,EAAE,eAAe;YAClC,cAAc,EAAE,WAAW;YAC3B,cAAc,EAAE,OAAO;YACvB,eAAe,EAAE,gBAAgB;SAClC;KACF;CACO,CAAC","sourcesContent":["/**\n * English (en) — application labels.\n * Primary locale source-of-truth file generated from application context.\n */\nexport const labels = {\n \"components\": {\n \"APP_LAYOUTS_AGENT_ACTIVITY_SETTINGS\": {\n \"agentToAgentDescription\": \"Tasks exchanged with other agents, newest first.\",\n \"agentToAgentEmpty\": \"No tasks exchanged with other agents yet.\",\n \"agentToAgentError\": \"Couldn't load agent-to-agent tasks. Please try again.\",\n \"agentToAgentHeading\": \"Agent-to-Agent Tasks\",\n \"applicationOwnClient\": \"Application client\",\n \"applicationPageDescription\": \"Runs across all organizations, logged for audit.\",\n \"applicationPageTitle\": \"Agent Activity Across Organizations\",\n \"backToRuns\": \"Back to runs\",\n \"columnActions\": \"Actions\",\n \"columnCase\": \"Case\",\n \"columnCounterpart\": \"Other party\",\n \"columnDirection\": \"Direction\",\n \"columnFinished\": \"Finished\",\n \"columnKind\": \"Type\",\n \"columnOrganization\": \"Organization\",\n \"columnStarted\": \"Started\",\n \"columnStatus\": \"Status\",\n \"columnSystem\": \"Workflow or team\",\n \"columnTaskEnded\": \"Ended\",\n \"columnTaskStarted\": \"Started\",\n \"columnTaskState\": \"Status\",\n \"decisionEnded\": \"{outcome} on {at}\",\n \"decisionsHeading\": \"Decisions\",\n \"direction_delegated\": \"Sent\",\n \"direction_received\": \"Received\",\n \"empty\": \"No runs yet.\",\n \"errorAccessGrantRequired\": \"Viewing runs across organizations needs an approved access grant. Request one under Access grants.\",\n \"errorGeneric\": \"Couldn't load runs. Please try again.\",\n \"errorRun\": \"Couldn't load this run. It may no longer exist.\",\n \"flowFailureLabel\": \"Failure reason\",\n \"flowStepsHeading\": \"Workflow Steps\",\n \"flowStepsUntimed\": \"{count, plural, one {# earlier step has} other {# earlier steps have}} no recorded time.\",\n \"kind_actor_system\": \"Agent team\",\n \"kind_flow\": \"Workflow\",\n \"kind_undeclared\": \"No longer available\",\n \"loadMore\": \"Load more\",\n \"loadMoreTasks\": \"Load more\",\n \"loading\": \"Loading…\",\n \"noOrganization\": \"Select an organization to see its runs.\",\n \"noTasks\": \"No tasks yet.\",\n \"notFinished\": \"Not finished\",\n \"openRun\": \"Open\",\n \"pageDescription\": \"Workflow and agent team runs, newest first.\",\n \"pageTitle\": \"Agent Activity\",\n \"receivedByAgent\": \"Received by {agent}\",\n \"receivedByDefaultAgent\": \"Received by main agent\",\n \"stateNotReported\": \"Not reported\",\n \"stateReportedAt\": \"Reported {at}\",\n \"taskNotEnded\": \"Not ended\",\n \"tasksHeading\": \"Tasks\",\n \"unknownClient\": \"Unknown client\"\n }\n }\n} as const;\n"]}
@@ -0,0 +1,62 @@
1
+ /**
2
+ * French (fr) — application labels.
3
+ * Translated from the primary locale; keep semantic keys and placeholders faithful to the source.
4
+ */
5
+ export declare const labels: {
6
+ readonly components: {
7
+ readonly APP_LAYOUTS_AGENT_ACTIVITY_SETTINGS: {
8
+ readonly agentToAgentDescription: "Tâches échangées avec d’autres agents, des plus récentes aux plus anciennes.";
9
+ readonly agentToAgentEmpty: "Aucune tâche échangée avec d’autres agents pour le moment.";
10
+ readonly agentToAgentError: "Impossible de charger les tâches entre agents. Veuillez réessayer.";
11
+ readonly agentToAgentHeading: "Tâches entre agents";
12
+ readonly applicationOwnClient: "Client de l’application";
13
+ readonly applicationPageDescription: "Exécutions de toutes les organisations, consignées pour l’audit.";
14
+ readonly applicationPageTitle: "Activité des agents dans toutes les organisations";
15
+ readonly backToRuns: "Retour aux exécutions";
16
+ readonly columnActions: "Actions";
17
+ readonly columnCase: "Dossier";
18
+ readonly columnCounterpart: "Interlocuteur";
19
+ readonly columnDirection: "Sens";
20
+ readonly columnFinished: "Fin";
21
+ readonly columnKind: "Type";
22
+ readonly columnOrganization: "Organisation";
23
+ readonly columnStarted: "Début";
24
+ readonly columnStatus: "Statut";
25
+ readonly columnSystem: "Workflow ou équipe";
26
+ readonly columnTaskEnded: "Fin";
27
+ readonly columnTaskStarted: "Début";
28
+ readonly columnTaskState: "Statut";
29
+ readonly decisionEnded: "{outcome} le {at}";
30
+ readonly decisionsHeading: "Décisions";
31
+ readonly direction_delegated: "Envoyée";
32
+ readonly direction_received: "Reçue";
33
+ readonly empty: "Aucune exécution pour le moment.";
34
+ readonly errorAccessGrantRequired: "La consultation des exécutions de toutes les organisations nécessite une autorisation d’accès approuvée. Demandez-en une dans Autorisations d’accès.";
35
+ readonly errorGeneric: "Impossible de charger les exécutions. Veuillez réessayer.";
36
+ readonly errorRun: "Impossible de charger cette exécution. Elle n’existe peut-être plus.";
37
+ readonly flowFailureLabel: "Motif de l’échec";
38
+ readonly flowStepsHeading: "Étapes du workflow";
39
+ readonly flowStepsUntimed: "{count, plural, one {# étape antérieure n’a} many {# étapes antérieures n’ont} other {# étapes antérieures n’ont}} aucune heure enregistrée.";
40
+ readonly kind_actor_system: "Équipe d’agents";
41
+ readonly kind_flow: "Workflow";
42
+ readonly kind_undeclared: "Plus disponible";
43
+ readonly loadMore: "Charger plus";
44
+ readonly loadMoreTasks: "Charger plus";
45
+ readonly loading: "Chargement…";
46
+ readonly noOrganization: "Sélectionnez une organisation pour voir ses exécutions.";
47
+ readonly noTasks: "Aucune tâche pour le moment.";
48
+ readonly notFinished: "Non terminée";
49
+ readonly openRun: "Ouvrir";
50
+ readonly pageDescription: "Exécutions des workflows et des équipes d’agents, des plus récentes aux plus anciennes.";
51
+ readonly pageTitle: "Activité des agents";
52
+ readonly receivedByAgent: "Reçue par {agent}";
53
+ readonly receivedByDefaultAgent: "Reçue par l’agent principal";
54
+ readonly stateNotReported: "Non communiqué";
55
+ readonly stateReportedAt: "Communiqué le {at}";
56
+ readonly taskNotEnded: "Non terminée";
57
+ readonly tasksHeading: "Tâches";
58
+ readonly unknownClient: "Client inconnu";
59
+ };
60
+ };
61
+ };
62
+ //# sourceMappingURL=APP_LAYOUTS_AGENT_ACTIVITY_SETTINGS.fr.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"APP_LAYOUTS_AGENT_ACTIVITY_SETTINGS.fr.d.ts","sourceRoot":"","sources":["../../../../src/i18n/components/APP_LAYOUTS_AGENT_ACTIVITY_SETTINGS.fr.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwDT,CAAC"}
@@ -0,0 +1,62 @@
1
+ /**
2
+ * French (fr) — application labels.
3
+ * Translated from the primary locale; keep semantic keys and placeholders faithful to the source.
4
+ */
5
+ export const labels = {
6
+ "components": {
7
+ "APP_LAYOUTS_AGENT_ACTIVITY_SETTINGS": {
8
+ "agentToAgentDescription": "Tâches échangées avec d’autres agents, des plus récentes aux plus anciennes.",
9
+ "agentToAgentEmpty": "Aucune tâche échangée avec d’autres agents pour le moment.",
10
+ "agentToAgentError": "Impossible de charger les tâches entre agents. Veuillez réessayer.",
11
+ "agentToAgentHeading": "Tâches entre agents",
12
+ "applicationOwnClient": "Client de l’application",
13
+ "applicationPageDescription": "Exécutions de toutes les organisations, consignées pour l’audit.",
14
+ "applicationPageTitle": "Activité des agents dans toutes les organisations",
15
+ "backToRuns": "Retour aux exécutions",
16
+ "columnActions": "Actions",
17
+ "columnCase": "Dossier",
18
+ "columnCounterpart": "Interlocuteur",
19
+ "columnDirection": "Sens",
20
+ "columnFinished": "Fin",
21
+ "columnKind": "Type",
22
+ "columnOrganization": "Organisation",
23
+ "columnStarted": "Début",
24
+ "columnStatus": "Statut",
25
+ "columnSystem": "Workflow ou équipe",
26
+ "columnTaskEnded": "Fin",
27
+ "columnTaskStarted": "Début",
28
+ "columnTaskState": "Statut",
29
+ "decisionEnded": "{outcome} le {at}",
30
+ "decisionsHeading": "Décisions",
31
+ "direction_delegated": "Envoyée",
32
+ "direction_received": "Reçue",
33
+ "empty": "Aucune exécution pour le moment.",
34
+ "errorAccessGrantRequired": "La consultation des exécutions de toutes les organisations nécessite une autorisation d’accès approuvée. Demandez-en une dans Autorisations d’accès.",
35
+ "errorGeneric": "Impossible de charger les exécutions. Veuillez réessayer.",
36
+ "errorRun": "Impossible de charger cette exécution. Elle n’existe peut-être plus.",
37
+ "flowFailureLabel": "Motif de l’échec",
38
+ "flowStepsHeading": "Étapes du workflow",
39
+ "flowStepsUntimed": "{count, plural, one {# étape antérieure n’a} many {# étapes antérieures n’ont} other {# étapes antérieures n’ont}} aucune heure enregistrée.",
40
+ "kind_actor_system": "Équipe d’agents",
41
+ "kind_flow": "Workflow",
42
+ "kind_undeclared": "Plus disponible",
43
+ "loadMore": "Charger plus",
44
+ "loadMoreTasks": "Charger plus",
45
+ "loading": "Chargement…",
46
+ "noOrganization": "Sélectionnez une organisation pour voir ses exécutions.",
47
+ "noTasks": "Aucune tâche pour le moment.",
48
+ "notFinished": "Non terminée",
49
+ "openRun": "Ouvrir",
50
+ "pageDescription": "Exécutions des workflows et des équipes d’agents, des plus récentes aux plus anciennes.",
51
+ "pageTitle": "Activité des agents",
52
+ "receivedByAgent": "Reçue par {agent}",
53
+ "receivedByDefaultAgent": "Reçue par l’agent principal",
54
+ "stateNotReported": "Non communiqué",
55
+ "stateReportedAt": "Communiqué le {at}",
56
+ "taskNotEnded": "Non terminée",
57
+ "tasksHeading": "Tâches",
58
+ "unknownClient": "Client inconnu"
59
+ }
60
+ }
61
+ };
62
+ //# sourceMappingURL=APP_LAYOUTS_AGENT_ACTIVITY_SETTINGS.fr.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"APP_LAYOUTS_AGENT_ACTIVITY_SETTINGS.fr.js","sourceRoot":"","sources":["../../../../src/i18n/components/APP_LAYOUTS_AGENT_ACTIVITY_SETTINGS.fr.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,YAAY,EAAE;QACZ,qCAAqC,EAAE;YACrC,yBAAyB,EAAE,8EAA8E;YACzG,mBAAmB,EAAE,4DAA4D;YACjF,mBAAmB,EAAE,oEAAoE;YACzF,qBAAqB,EAAE,qBAAqB;YAC5C,sBAAsB,EAAE,yBAAyB;YACjD,4BAA4B,EAAE,kEAAkE;YAChG,sBAAsB,EAAE,mDAAmD;YAC3E,YAAY,EAAE,uBAAuB;YACrC,eAAe,EAAE,SAAS;YAC1B,YAAY,EAAE,SAAS;YACvB,mBAAmB,EAAE,eAAe;YACpC,iBAAiB,EAAE,MAAM;YACzB,gBAAgB,EAAE,KAAK;YACvB,YAAY,EAAE,MAAM;YACpB,oBAAoB,EAAE,cAAc;YACpC,eAAe,EAAE,OAAO;YACxB,cAAc,EAAE,QAAQ;YACxB,cAAc,EAAE,oBAAoB;YACpC,iBAAiB,EAAE,KAAK;YACxB,mBAAmB,EAAE,OAAO;YAC5B,iBAAiB,EAAE,QAAQ;YAC3B,eAAe,EAAE,mBAAmB;YACpC,kBAAkB,EAAE,WAAW;YAC/B,qBAAqB,EAAE,SAAS;YAChC,oBAAoB,EAAE,OAAO;YAC7B,OAAO,EAAE,kCAAkC;YAC3C,0BAA0B,EAAE,sJAAsJ;YAClL,cAAc,EAAE,2DAA2D;YAC3E,UAAU,EAAE,sEAAsE;YAClF,kBAAkB,EAAE,kBAAkB;YACtC,kBAAkB,EAAE,oBAAoB;YACxC,kBAAkB,EAAE,8IAA8I;YAClK,mBAAmB,EAAE,iBAAiB;YACtC,WAAW,EAAE,UAAU;YACvB,iBAAiB,EAAE,iBAAiB;YACpC,UAAU,EAAE,cAAc;YAC1B,eAAe,EAAE,cAAc;YAC/B,SAAS,EAAE,aAAa;YACxB,gBAAgB,EAAE,yDAAyD;YAC3E,SAAS,EAAE,8BAA8B;YACzC,aAAa,EAAE,cAAc;YAC7B,SAAS,EAAE,QAAQ;YACnB,iBAAiB,EAAE,yFAAyF;YAC5G,WAAW,EAAE,qBAAqB;YAClC,iBAAiB,EAAE,mBAAmB;YACtC,wBAAwB,EAAE,6BAA6B;YACvD,kBAAkB,EAAE,gBAAgB;YACpC,iBAAiB,EAAE,oBAAoB;YACvC,cAAc,EAAE,cAAc;YAC9B,cAAc,EAAE,QAAQ;YACxB,eAAe,EAAE,gBAAgB;SAClC;KACF;CACO,CAAC","sourcesContent":["/**\n * French (fr) — application labels.\n * Translated from the primary locale; keep semantic keys and placeholders faithful to the source.\n */\nexport const labels = {\n \"components\": {\n \"APP_LAYOUTS_AGENT_ACTIVITY_SETTINGS\": {\n \"agentToAgentDescription\": \"Tâches échangées avec d’autres agents, des plus récentes aux plus anciennes.\",\n \"agentToAgentEmpty\": \"Aucune tâche échangée avec d’autres agents pour le moment.\",\n \"agentToAgentError\": \"Impossible de charger les tâches entre agents. Veuillez réessayer.\",\n \"agentToAgentHeading\": \"Tâches entre agents\",\n \"applicationOwnClient\": \"Client de l’application\",\n \"applicationPageDescription\": \"Exécutions de toutes les organisations, consignées pour l’audit.\",\n \"applicationPageTitle\": \"Activité des agents dans toutes les organisations\",\n \"backToRuns\": \"Retour aux exécutions\",\n \"columnActions\": \"Actions\",\n \"columnCase\": \"Dossier\",\n \"columnCounterpart\": \"Interlocuteur\",\n \"columnDirection\": \"Sens\",\n \"columnFinished\": \"Fin\",\n \"columnKind\": \"Type\",\n \"columnOrganization\": \"Organisation\",\n \"columnStarted\": \"Début\",\n \"columnStatus\": \"Statut\",\n \"columnSystem\": \"Workflow ou équipe\",\n \"columnTaskEnded\": \"Fin\",\n \"columnTaskStarted\": \"Début\",\n \"columnTaskState\": \"Statut\",\n \"decisionEnded\": \"{outcome} le {at}\",\n \"decisionsHeading\": \"Décisions\",\n \"direction_delegated\": \"Envoyée\",\n \"direction_received\": \"Reçue\",\n \"empty\": \"Aucune exécution pour le moment.\",\n \"errorAccessGrantRequired\": \"La consultation des exécutions de toutes les organisations nécessite une autorisation d’accès approuvée. Demandez-en une dans Autorisations d’accès.\",\n \"errorGeneric\": \"Impossible de charger les exécutions. Veuillez réessayer.\",\n \"errorRun\": \"Impossible de charger cette exécution. Elle n’existe peut-être plus.\",\n \"flowFailureLabel\": \"Motif de l’échec\",\n \"flowStepsHeading\": \"Étapes du workflow\",\n \"flowStepsUntimed\": \"{count, plural, one {# étape antérieure n’a} many {# étapes antérieures n’ont} other {# étapes antérieures n’ont}} aucune heure enregistrée.\",\n \"kind_actor_system\": \"Équipe d’agents\",\n \"kind_flow\": \"Workflow\",\n \"kind_undeclared\": \"Plus disponible\",\n \"loadMore\": \"Charger plus\",\n \"loadMoreTasks\": \"Charger plus\",\n \"loading\": \"Chargement…\",\n \"noOrganization\": \"Sélectionnez une organisation pour voir ses exécutions.\",\n \"noTasks\": \"Aucune tâche pour le moment.\",\n \"notFinished\": \"Non terminée\",\n \"openRun\": \"Ouvrir\",\n \"pageDescription\": \"Exécutions des workflows et des équipes d’agents, des plus récentes aux plus anciennes.\",\n \"pageTitle\": \"Activité des agents\",\n \"receivedByAgent\": \"Reçue par {agent}\",\n \"receivedByDefaultAgent\": \"Reçue par l’agent principal\",\n \"stateNotReported\": \"Non communiqué\",\n \"stateReportedAt\": \"Communiqué le {at}\",\n \"taskNotEnded\": \"Non terminée\",\n \"tasksHeading\": \"Tâches\",\n \"unknownClient\": \"Client inconnu\"\n }\n }\n} as const;\n"]}
@@ -68,7 +68,7 @@ export declare const labels: {
68
68
  readonly attempts_exhausted: "Failed every attempt it is allowed: fix the cause, then re-arm it";
69
69
  readonly in_flight: "Being built right now";
70
70
  readonly contended: "Waits for a task being built that writes the same file";
71
- readonly awaiting_isolated_recheck: "Failed a check while other tasks were writing: its checks run again alone when the wave ends";
71
+ readonly awaiting_isolated_recheck: "Failed a check while other tasks were writing: its checks run again alone once no running task writes what they read";
72
72
  readonly ran_this_wave: "Already ran in this wave without landing: the next wave offers it again";
73
73
  readonly landing_unknown: "Whether it landed, or its work passes, cannot be known yet: waiting for its check to answer";
74
74
  readonly follow_up_awaiting_review: "A follow-up waiting for your review: approve it to run it, or decline it";
@@ -73,7 +73,7 @@ export const labels = {
73
73
  attempts_exhausted: 'Failed every attempt it is allowed: fix the cause, then re-arm it',
74
74
  in_flight: 'Being built right now',
75
75
  contended: 'Waits for a task being built that writes the same file',
76
- awaiting_isolated_recheck: 'Failed a check while other tasks were writing: its checks run again alone when the wave ends',
76
+ awaiting_isolated_recheck: 'Failed a check while other tasks were writing: its checks run again alone once no running task writes what they read',
77
77
  ran_this_wave: 'Already ran in this wave without landing: the next wave offers it again',
78
78
  landing_unknown: 'Whether it landed, or its work passes, cannot be known yet: waiting for its check to answer',
79
79
  follow_up_awaiting_review: 'A follow-up waiting for your review: approve it to run it, or decline it',
@@ -1 +1 @@
1
- {"version":3,"file":"workbench-build.en.js","sourceRoot":"","sources":["../../../../src/i18n/system_enums/workbench-build.en.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,YAAY,EAAE;QACZ,4BAA4B,EAAE;YAC5B,SAAS,EAAE,WAAW;YACtB,QAAQ,EAAE,SAAS;YACnB,QAAQ,EAAE,UAAU;YACpB,MAAM,EAAE,QAAQ;SACjB;QACD;;;;WAIG;QACH,sBAAsB,EAAE;YACtB,IAAI,EAAE,eAAe;YACrB,UAAU,EAAE,qBAAqB;SAClC;QACD,mFA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0C;YACnD,KAAK,EAAE,4CAA4C;YACnD,YAAY,EAAE,qCAAqC;SACpD;QACD,gBAAgB,EAAE;YAChB,OAAO,EAAE,oCAAoC;YAC7C,KAAK,EAAE,sCAAsC;YAC7C,YAAY,EAAE,6BAA6B;SAC5C;QACD;;;WAGG;QACH,oBAAoB,EAAE;YACpB,iBAAiB,EAAE,2CAA2C;YAC9D,uBAAuB,EAAE,mCAAmC;YAC5D,oBAAoB,EAAE,qBAAqB;YAC3C,WAAW,EAAE,oDAAoD;YACjE,8BAA8B,EAAE,gCAAgC;SACjE;QACD,qGAAqG;QACrG,oBAAoB,EAAE;YACpB,iBAAiB,EAAE,uBAAuB;YAC1C,mBAAmB,EAAE,mBAAmB;YACxC,QAAQ,EAAE,4CAA4C;SACvD;KACF;CACO,CAAC","sourcesContent":["/**\n * English (en) — the BUILD vocabularies: the dispatch phase, the plan-task status, why a ready task is stuck, and whose\n * failure a failed coding run was.\n *\n * Authored under `system_enums` rather than per resource field because each field DECLARES its enum\n * (`.systemEnum('Workbench_BuildDispatchPhase')`, `.systemEnum('WorkbenchBuildPlanTaskStatus')`),\n * which is what makes this block readable at all: the frontend words a value through the vocabulary\n * its FIELD declares and no other. The task status was worded per field until #1321 registered its\n * colours by vocabulary name; the words moved with the declaration, so one enum has one home.\n *\n * ## The wording rule\n *\n * These are read by somebody asking \"what happened to this task\", so they are written as OUTCOMES in\n * a person's words rather than as the lane's internal states. \"Admitted\" is the one that would be\n * opaque on its own — it means a coding run was accepted and is running, and its result lives in the\n * actor-task row rather than here — so it is worded as the running state it is.\n */\nexport const labels = {\n system_enums: {\n Workbench_BuildDispatchPhase: {\n submitted: 'Submitted',\n admitted: 'Running',\n finished: 'Finished',\n failed: 'Failed',\n },\n /**\n * What a resource IS to the module that lists it (#1482). The domain plan splits its resources\n * into two lists and the projection keeps that distinction as a role, because \"the module is\n * about this\" and \"the module needs this\" are different claims about the same name.\n */\n DomainPlanResourceRole: {\n main: 'Main resource',\n supporting: 'Supporting resource',\n },\n /** How organizations of one type come to exist and admit their members (#3032). */\n DomainPlanOrganizationJoining: {\n SELF_SERVICE: 'Sign up on their own',\n INVITATION_ONLY: 'By invitation only',\n DIRECTORY_PROVISIONED: 'From their company directory',\n },\n /** Where one resource's records live (#3039). */\n DomainPlanRecordLocation: {\n APPLICATION_STORE: \"The application's own store\",\n SYSTEM_OF_RECORD: 'An outside system of record',\n },\n /** Whether an outside system's records are split by legal entity (#3045), laid down from the system's facet. */\n DomainPlanRecordPartition: {\n NOT_SPLIT: 'Not split: every member who may read them sees all of them',\n BY_LEGAL_ENTITY: 'Split by legal entity',\n CANNOT_BE_SPLIT: 'Cannot be split: the system declares no split',\n UNCONFIRMED: 'Split by legal entity, not yet confirmed against the system',\n },\n /** What an acting organization sees of the other organization's own records (#3032). The engine's vocabulary. */\n TenantRecordVisibility: {\n role: 'Every record its role reaches',\n shared_only: 'Only records shared with it',\n },\n /** Where one build-plan task stands: dispatchable now, done, or waiting on a prerequisite. */\n WorkbenchBuildPlanTaskStatus: {\n ready: 'Ready',\n landed: 'Landed',\n blocked: 'Blocked',\n },\n /*\n * Why a ready task is passed over (#1451). Worded as the REMEDY, because the remedy is the only\n * thing a reader needs and each reason's is different. The facts a remedy names (the uncommitted\n * paths, the question, the document) are the row's own fields, shown beside these words.\n */\n Workbench_BuildTaskStuckReason: {\n completed_unlanded: 'Ran, but its product is missing: fix what it declares, or the work',\n parked_awaiting_answer: 'Waiting for an answer to its question',\n no_document_blueprint: 'Produces a document the catalog does not define',\n attempts_exhausted: 'Failed every attempt it is allowed: fix the cause, then re-arm it',\n in_flight: 'Being built right now',\n contended: 'Waits for a task being built that writes the same file',\n awaiting_isolated_recheck: 'Failed a check while other tasks were writing: its checks run again alone when the wave ends',\n ran_this_wave: 'Already ran in this wave without landing: the next wave offers it again',\n landing_unknown: 'Whether it landed, or its work passes, cannot be known yet: waiting for its check to answer',\n follow_up_awaiting_review: 'A follow-up waiting for your review: approve it to run it, or decline it',\n stale_expert_charters: 'Waiting for its experts\\' charters to be derived again from what changed since',\n repeated_identical_failure: 'Failed the same way twice with nothing it reads changed: fix the cause, then run it by name',\n failure_outside_application: 'Failed on a cause in the framework, not in this application: fix it there, then run it by name',\n },\n /*\n * Whose failure a failed coding run was (#1581, shown per attempt since #2530). Worded as what it means for the\n * task's attempt budget, because that is why anyone reads it: the task's own failures count, the host's are forgiven\n * up to a bound.\n */\n CodingRunFailureAttribution: {\n task: \"The task's own failure: it counts\",\n host: \"The environment's failure: forgiven, up to a bound, and never counted when a check could not be asked\",\n },\n /*\n * Where a generation step that has not landed stands (#2530): it has work to do, or its check could not answer, in\n * which case running it again would fail the same way. Each step's own words, since each checks something different.\n */\n SchemaPlanSyncState: {\n in_sync: 'The model and the accepted schema plan agree',\n drifted: 'The model has changes no migration covers yet',\n unanswerable: 'The schema plan could not be checked',\n },\n DesignTokenBlockState: {\n current: 'The stylesheet matches the design system',\n stale: 'The stylesheet is behind the design system',\n unanswerable: 'The stylesheet could not be checked',\n },\n BrandDesignState: {\n current: 'The brand design matches the brand',\n stale: 'The brand design is behind the brand',\n unanswerable: 'The brand could not be read',\n },\n /*\n * Why a build task was put back in the queue (#1535, offered and shown in the workbench since #2530). The first\n * three are a person's; the last is the build wave's own, after a sibling run lost the task's product.\n */\n BuildTaskRearmReason: {\n 'probe-corrected': 'The landing check was wrong, and is fixed',\n 'blocking-defect-fixed': 'A defect that blocked it is fixed',\n 'operator-judgement': 'It should run again',\n environment: 'The network or the machine failed it, not the task',\n 'interfered-by-concurrent-run': 'Another run overwrote its work',\n },\n /* How a task a person closed is accounted for (#3224, #3227): what made it done, if anything did. */\n BuildTaskClosureKind: {\n satisfied_by_task: 'Another task built it',\n satisfied_by_commit: 'A commit built it',\n declined: 'Declined: the gap it answers is not worked',\n },\n },\n} as const;\n"]}
1
+ {"version":3,"file":"workbench-build.en.js","sourceRoot":"","sources":["../../../../src/i18n/system_enums/workbench-build.en.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;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ACzH,2BAA2B,EAAE,gGAAgG;SAC9H;QACD;;;;WAIG;QACH,2BAA2B,EAAE;YAC3B,IAAI,EAAE,mCAAmC;YACzC,IAAI,EAAE,uGAAuG;SAC9G;QACD;;;WAGG;QACH,mBAAmB,EAAE;YACnB,OAAO,EAAE,8CAA8C;YACvD,OAAO,EAAE,+CAA+C;YACxD,YAAY,EAAE,sCAAsC;SACrD;QACD,qBAAqB,EAAE;YACrB,OAAO,EAAE,0CAA0C;YACnD,KAAK,EAAE,4CAA4C;YACnD,YAAY,EAAE,qCAAqC;SACpD;QACD,gBAAgB,EAAE;YAChB,OAAO,EAAE,oCAAoC;YAC7C,KAAK,EAAE,sCAAsC;YAC7C,YAAY,EAAE,6BAA6B;SAC5C;QACD;;;WAGG;QACH,oBAAoB,EAAE;YACpB,iBAAiB,EAAE,2CAA2C;YAC9D,uBAAuB,EAAE,mCAAmC;YAC5D,oBAAoB,EAAE,qBAAqB;YAC3C,WAAW,EAAE,oDAAoD;YACjE,8BAA8B,EAAE,gCAAgC;SACjE;QACD,qGAAqG;QACrG,oBAAoB,EAAE;YACpB,iBAAiB,EAAE,uBAAuB;YAC1C,mBAAmB,EAAE,mBAAmB;YACxC,QAAQ,EAAE,4CAA4C;SACvD;KACF;CACO,CAAC","sourcesContent":["/**\n * English (en) — the BUILD vocabularies: the dispatch phase, the plan-task status, why a ready task is stuck, and whose\n * failure a failed coding run was.\n *\n * Authored under `system_enums` rather than per resource field because each field DECLARES its enum\n * (`.systemEnum('Workbench_BuildDispatchPhase')`, `.systemEnum('WorkbenchBuildPlanTaskStatus')`),\n * which is what makes this block readable at all: the frontend words a value through the vocabulary\n * its FIELD declares and no other. The task status was worded per field until #1321 registered its\n * colours by vocabulary name; the words moved with the declaration, so one enum has one home.\n *\n * ## The wording rule\n *\n * These are read by somebody asking \"what happened to this task\", so they are written as OUTCOMES in\n * a person's words rather than as the lane's internal states. \"Admitted\" is the one that would be\n * opaque on its own — it means a coding run was accepted and is running, and its result lives in the\n * actor-task row rather than here — so it is worded as the running state it is.\n */\nexport const labels = {\n system_enums: {\n Workbench_BuildDispatchPhase: {\n submitted: 'Submitted',\n admitted: 'Running',\n finished: 'Finished',\n failed: 'Failed',\n },\n /**\n * What a resource IS to the module that lists it (#1482). The domain plan splits its resources\n * into two lists and the projection keeps that distinction as a role, because \"the module is\n * about this\" and \"the module needs this\" are different claims about the same name.\n */\n DomainPlanResourceRole: {\n main: 'Main resource',\n supporting: 'Supporting resource',\n },\n /** How organizations of one type come to exist and admit their members (#3032). */\n DomainPlanOrganizationJoining: {\n SELF_SERVICE: 'Sign up on their own',\n INVITATION_ONLY: 'By invitation only',\n DIRECTORY_PROVISIONED: 'From their company directory',\n },\n /** Where one resource's records live (#3039). */\n DomainPlanRecordLocation: {\n APPLICATION_STORE: \"The application's own store\",\n SYSTEM_OF_RECORD: 'An outside system of record',\n },\n /** Whether an outside system's records are split by legal entity (#3045), laid down from the system's facet. */\n DomainPlanRecordPartition: {\n NOT_SPLIT: 'Not split: every member who may read them sees all of them',\n BY_LEGAL_ENTITY: 'Split by legal entity',\n CANNOT_BE_SPLIT: 'Cannot be split: the system declares no split',\n UNCONFIRMED: 'Split by legal entity, not yet confirmed against the system',\n },\n /** What an acting organization sees of the other organization's own records (#3032). The engine's vocabulary. */\n TenantRecordVisibility: {\n role: 'Every record its role reaches',\n shared_only: 'Only records shared with it',\n },\n /** Where one build-plan task stands: dispatchable now, done, or waiting on a prerequisite. */\n WorkbenchBuildPlanTaskStatus: {\n ready: 'Ready',\n landed: 'Landed',\n blocked: 'Blocked',\n },\n /*\n * Why a ready task is passed over (#1451). Worded as the REMEDY, because the remedy is the only\n * thing a reader needs and each reason's is different. The facts a remedy names (the uncommitted\n * paths, the question, the document) are the row's own fields, shown beside these words.\n */\n Workbench_BuildTaskStuckReason: {\n completed_unlanded: 'Ran, but its product is missing: fix what it declares, or the work',\n parked_awaiting_answer: 'Waiting for an answer to its question',\n no_document_blueprint: 'Produces a document the catalog does not define',\n attempts_exhausted: 'Failed every attempt it is allowed: fix the cause, then re-arm it',\n in_flight: 'Being built right now',\n contended: 'Waits for a task being built that writes the same file',\n awaiting_isolated_recheck: 'Failed a check while other tasks were writing: its checks run again alone once no running task writes what they read',\n ran_this_wave: 'Already ran in this wave without landing: the next wave offers it again',\n landing_unknown: 'Whether it landed, or its work passes, cannot be known yet: waiting for its check to answer',\n follow_up_awaiting_review: 'A follow-up waiting for your review: approve it to run it, or decline it',\n stale_expert_charters: 'Waiting for its experts\\' charters to be derived again from what changed since',\n repeated_identical_failure: 'Failed the same way twice with nothing it reads changed: fix the cause, then run it by name',\n failure_outside_application: 'Failed on a cause in the framework, not in this application: fix it there, then run it by name',\n },\n /*\n * Whose failure a failed coding run was (#1581, shown per attempt since #2530). Worded as what it means for the\n * task's attempt budget, because that is why anyone reads it: the task's own failures count, the host's are forgiven\n * up to a bound.\n */\n CodingRunFailureAttribution: {\n task: \"The task's own failure: it counts\",\n host: \"The environment's failure: forgiven, up to a bound, and never counted when a check could not be asked\",\n },\n /*\n * Where a generation step that has not landed stands (#2530): it has work to do, or its check could not answer, in\n * which case running it again would fail the same way. Each step's own words, since each checks something different.\n */\n SchemaPlanSyncState: {\n in_sync: 'The model and the accepted schema plan agree',\n drifted: 'The model has changes no migration covers yet',\n unanswerable: 'The schema plan could not be checked',\n },\n DesignTokenBlockState: {\n current: 'The stylesheet matches the design system',\n stale: 'The stylesheet is behind the design system',\n unanswerable: 'The stylesheet could not be checked',\n },\n BrandDesignState: {\n current: 'The brand design matches the brand',\n stale: 'The brand design is behind the brand',\n unanswerable: 'The brand could not be read',\n },\n /*\n * Why a build task was put back in the queue (#1535, offered and shown in the workbench since #2530). The first\n * three are a person's; the last is the build wave's own, after a sibling run lost the task's product.\n */\n BuildTaskRearmReason: {\n 'probe-corrected': 'The landing check was wrong, and is fixed',\n 'blocking-defect-fixed': 'A defect that blocked it is fixed',\n 'operator-judgement': 'It should run again',\n environment: 'The network or the machine failed it, not the task',\n 'interfered-by-concurrent-run': 'Another run overwrote its work',\n },\n /* How a task a person closed is accounted for (#3224, #3227): what made it done, if anything did. */\n BuildTaskClosureKind: {\n satisfied_by_task: 'Another task built it',\n satisfied_by_commit: 'A commit built it',\n declined: 'Declined: the gap it answers is not worked',\n },\n },\n} as const;\n"]}
@@ -4,8 +4,31 @@ export interface CarriedFailureProducer {
4
4
  /** The banner line naming what wrote the file, verbatim — e.g. "Promoted by the brand ACCEPT step (BrandAcceptCompanionService) at …". */
5
5
  readonly producedBy: string;
6
6
  }
7
+ /**
8
+ * Why a failed check of a coding run was carried rather than charged to the run (#3881). Absent on a row written before
9
+ * the reason existed, and read as {@link CarriedVerificationReason.RED_AT_BASELINE}, the only reason there was.
10
+ */
11
+ export declare enum CarriedVerificationReason {
12
+ /** The check was red before the run started, with no finding the baseline did not name (#1529, #3258). */
13
+ RED_AT_BASELINE = "red_at_baseline",
14
+ /**
15
+ * Every finding new since the run's baseline is about elements ANOTHER writer of the run's window touched and the run
16
+ * did not (#3881, `attributeVerificationFailure`): a finding about the application, reported to it, never charged.
17
+ */
18
+ FINDINGS_ANOTHER_WRITER_CAUSED = "findings_another_writer_caused"
19
+ }
7
20
  export interface CarriedVerificationDiagnosis {
8
21
  readonly checkRef: string;
22
+ /** Why it was carried; absent reads as {@link CarriedVerificationReason.RED_AT_BASELINE}. */
23
+ readonly carriedBecause?: CarriedVerificationReason;
24
+ /**
25
+ * For {@link CarriedVerificationReason.FINDINGS_ANOTHER_WRITER_CAUSED}: the findings that are the application's, by
26
+ * identity, and the build tasks whose runs wrote what each is about (#3881).
27
+ */
28
+ readonly applicationFindings?: ReadonlyArray<{
29
+ readonly finding: string;
30
+ readonly writtenByTaskRefs: readonly string[];
31
+ }>;
9
32
  readonly message: string;
10
33
  /** The end of the check's output, where a compiler puts its errors. */
11
34
  readonly outputTail: string;
@@ -1 +1 @@
1
- {"version":3,"file":"carried-verification-failure.models.d.ts","sourceRoot":"","sources":["../../../../src/meta-workflows/models/carried-verification-failure.models.ts"],"names":[],"mappings":"AAeA,kFAAkF;AAClF,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,0IAA0I;IAC1I,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,uEAAuE;IACvE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,gFAAgF;IAChF,QAAQ,CAAC,cAAc,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3C;;;OAGG;IACH,QAAQ,CAAC,SAAS,EAAE,SAAS,sBAAsB,EAAE,CAAC;CACvD;AAmBD;;;;GAIG;AACH,wBAAgB,kCAAkC,CAAC,KAAK,EAAE;IACxD,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,wHAAwH;IACxH,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,CAAC,uBAAuB,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;CAC5E,GAAG,4BAA4B,CAqB/B"}
1
+ {"version":3,"file":"carried-verification-failure.models.d.ts","sourceRoot":"","sources":["../../../../src/meta-workflows/models/carried-verification-failure.models.ts"],"names":[],"mappings":"AAeA,kFAAkF;AAClF,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,0IAA0I;IAC1I,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAED;;;GAGG;AACH,oBAAY,yBAAyB;IACnC,0GAA0G;IAC1G,eAAe,oBAAoB;IACnC;;;OAGG;IACH,8BAA8B,mCAAmC;CAClE;AAED,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,6FAA6F;IAC7F,QAAQ,CAAC,cAAc,CAAC,EAAE,yBAAyB,CAAC;IACpD;;;OAGG;IACH,QAAQ,CAAC,mBAAmB,CAAC,EAAE,aAAa,CAAC;QAAE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,iBAAiB,EAAE,SAAS,MAAM,EAAE,CAAA;KAAE,CAAC,CAAC;IAC1H,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,uEAAuE;IACvE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,gFAAgF;IAChF,QAAQ,CAAC,cAAc,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3C;;;OAGG;IACH,QAAQ,CAAC,SAAS,EAAE,SAAS,sBAAsB,EAAE,CAAC;CACvD;AAmBD;;;;GAIG;AACH,wBAAgB,kCAAkC,CAAC,KAAK,EAAE;IACxD,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,wHAAwH;IACxH,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,CAAC,uBAAuB,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;CAC5E,GAAG,4BAA4B,CAqB/B"}
@@ -12,6 +12,20 @@
12
12
  * diagnosis instead of from archaeology.
13
13
  */
14
14
  import { join } from 'node:path';
15
+ /**
16
+ * Why a failed check of a coding run was carried rather than charged to the run (#3881). Absent on a row written before
17
+ * the reason existed, and read as {@link CarriedVerificationReason.RED_AT_BASELINE}, the only reason there was.
18
+ */
19
+ export var CarriedVerificationReason;
20
+ (function (CarriedVerificationReason) {
21
+ /** The check was red before the run started, with no finding the baseline did not name (#1529, #3258). */
22
+ CarriedVerificationReason["RED_AT_BASELINE"] = "red_at_baseline";
23
+ /**
24
+ * Every finding new since the run's baseline is about elements ANOTHER writer of the run's window touched and the run
25
+ * did not (#3881, `attributeVerificationFailure`): a finding about the application, reported to it, never charged.
26
+ */
27
+ CarriedVerificationReason["FINDINGS_ANOTHER_WRITER_CAUSED"] = "findings_another_writer_caused";
28
+ })(CarriedVerificationReason || (CarriedVerificationReason = {}));
15
29
  /** How much output a diagnosis keeps — enough for a compiler's leading errors, not a log. */
16
30
  const DIAGNOSIS_OUTPUT_TAIL_CHARS = 4000;
17
31
  /** Files a diagnosis names at most — the first few carry the cause; the rest are its echo. */
@@ -1 +1 @@
1
- {"version":3,"file":"carried-verification-failure.models.js","sourceRoot":"","sources":["../../../../src/meta-workflows/models/carried-verification-failure.models.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAuBjC,6FAA6F;AAC7F,MAAM,2BAA2B,GAAG,IAAI,CAAC;AACzC,8FAA8F;AAC9F,MAAM,uBAAuB,GAAG,EAAE,CAAC;AACnC,wCAAwC;AACxC,MAAM,YAAY,GAAG,EAAE,CAAC;AAExB;;;;GAIG;AACH,MAAM,uBAAuB,GAAG,+EAA+E,CAAC;AAEhH,mDAAmD;AACnD,MAAM,gBAAgB,GAAG,+DAA+D,CAAC;AAEzF;;;;GAIG;AACH,MAAM,UAAU,kCAAkC,CAAC,KAQlD;IACC,MAAM,MAAM,GAAG,CAAC,KAAK,CAAC,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjG,MAAM,cA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,CAAC","sourcesContent":["/**\n * The DIAGNOSIS of a check that was already red before a coding run started (#1529).\n *\n * Since `703d07c3` such a check no longer fails the task that met it — the run records it as carried\n * and completes. That stopped the task paying for the tree, and left the red itself with no owner: on\n * the first end-to-end run a generated brand file broke `check:specifications-typecheck` at 08:34, and\n * the only way anyone learned why was a human running the typecheck by hand an hour later, reading 36\n * `TS2322` lines, and finding the file's own banner naming the step that wrote it.\n *\n * Everything that took was already in hand at the moment the run detected the red: the check's output,\n * the files it names, and those files' banners. This is that, captured once, so a repair starts from a\n * diagnosis instead of from archaeology.\n */\nimport { join } from 'node:path';\n\n/** The producer a generated file names about itself, read from its own banner. */\nexport interface CarriedFailureProducer {\n readonly path: string;\n /** The banner line naming what wrote the file, verbatim — e.g. \"Promoted by the brand ACCEPT step (BrandAcceptCompanionService) at …\". */\n readonly producedBy: string;\n}\n\nexport interface CarriedVerificationDiagnosis {\n readonly checkRef: string;\n readonly message: string;\n /** The end of the check's output, where a compiler puts its errors. */\n readonly outputTail: string;\n /** Application-relative files the output names as failing, first-seen order. */\n readonly offendingPaths: readonly string[];\n /**\n * The offending files that say what GENERATED them. Repairing a generated file alone is repaired\n * until the next generation, so a diagnosis that names the producer names where the fix belongs.\n */\n readonly producers: readonly CarriedFailureProducer[];\n}\n\n/** How much output a diagnosis keeps — enough for a compiler's leading errors, not a log. */\nconst DIAGNOSIS_OUTPUT_TAIL_CHARS = 4000;\n/** Files a diagnosis names at most — the first few carry the cause; the rest are its echo. */\nconst DIAGNOSIS_MAXIMUM_PATHS = 12;\n/** A banner is at the top of a file. */\nconst BANNER_LINES = 40;\n\n/*\n * `path/to/file.ts(12,5): error TS2322: …` (tsc) and `path/to/file.ts:12:5 - error TS…` (tsc --pretty).\n * Deliberately TypeScript-shaped: the required checks this lane runs are typechecks, and a matcher that\n * guessed at every tool's format would name files that are not the cause.\n */\nconst COMPILER_ERROR_LOCATION = /^\\s*([^\\s(:]+\\.(?:ts|tsx|mts|cts))(?:\\(\\d+,\\d+\\)|:\\d+:\\d+)\\s*[:-]\\s*error\\s/gm;\n\n/** A banner line that says what wrote the file. */\nconst GENERATOR_BANNER = /\\b(?:promoted|generated|written|emitted|produced)\\s+by\\b.*$/im;\n\n/**\n * Build the diagnosis from what the baseline pass returned. `readHead` answers the first lines of an\n * application-relative file, or undefined when it cannot be read; it is a parameter so the function\n * stays pure and pinnable.\n */\nexport function diagnoseCarriedVerificationFailure(input: {\n readonly checkRef: string;\n /** The check's working directory, application-relative, when the plan names one — compiler paths are relative to it. */\n readonly checkPath: string | null;\n readonly message: string;\n readonly stdoutTail: string;\n readonly stderrTail: string;\n readonly readHead: (applicationRelativePath: string) => string | undefined;\n}): CarriedVerificationDiagnosis {\n const output = [input.stdoutTail, input.stderrTail].filter((part) => part.length > 0).join('\\n');\n const offendingPaths: string[] = [];\n for (const match of output.matchAll(COMPILER_ERROR_LOCATION)) {\n const relative = input.checkPath && !match[1]!.startsWith('/') ? join(input.checkPath, match[1]!) : match[1]!;\n if (!offendingPaths.includes(relative)) offendingPaths.push(relative);\n if (offendingPaths.length >= DIAGNOSIS_MAXIMUM_PATHS) break;\n }\n const producers: CarriedFailureProducer[] = [];\n for (const path of offendingPaths) {\n const head = input.readHead(path)?.split('\\n').slice(0, BANNER_LINES).join('\\n');\n const banner = head?.match(GENERATOR_BANNER)?.[0]?.replace(/\\s*\\*\\/\\s*$/, '').trim();\n if (banner) producers.push({ path, producedBy: banner });\n }\n return {\n checkRef: input.checkRef,\n message: input.message,\n outputTail: output.slice(-DIAGNOSIS_OUTPUT_TAIL_CHARS),\n offendingPaths,\n producers,\n };\n}\n"]}
1
+ {"version":3,"file":"carried-verification-failure.models.js","sourceRoot":"","sources":["../../../../src/meta-workflows/models/carried-verification-failure.models.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AASjC;;;GAGG;AACH,MAAM,CAAN,IAAY,yBAQX;AARD,WAAY,yBAA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,MAAM,IAAI,IAAI,cAAc,EAAE,CAAC;QAClC,MAAM,IAAI,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjF,MAAM,MAAM,GAAG,IAAI,EAAE,KAAK,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;QACrF,IAAI,MAAM;YAAE,SAAS,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,CAAC;IAC3D,CAAC;IACD,OAAO;QACL,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,2BAA2B,CAAC;QACtD,cAAc;QACd,SAAS;KACV,CAAC;AACJ,CAAC","sourcesContent":["/**\n * The DIAGNOSIS of a check that was already red before a coding run started (#1529).\n *\n * Since `703d07c3` such a check no longer fails the task that met it — the run records it as carried\n * and completes. That stopped the task paying for the tree, and left the red itself with no owner: on\n * the first end-to-end run a generated brand file broke `check:specifications-typecheck` at 08:34, and\n * the only way anyone learned why was a human running the typecheck by hand an hour later, reading 36\n * `TS2322` lines, and finding the file's own banner naming the step that wrote it.\n *\n * Everything that took was already in hand at the moment the run detected the red: the check's output,\n * the files it names, and those files' banners. This is that, captured once, so a repair starts from a\n * diagnosis instead of from archaeology.\n */\nimport { join } from 'node:path';\n\n/** The producer a generated file names about itself, read from its own banner. */\nexport interface CarriedFailureProducer {\n readonly path: string;\n /** The banner line naming what wrote the file, verbatim — e.g. \"Promoted by the brand ACCEPT step (BrandAcceptCompanionService) at …\". */\n readonly producedBy: string;\n}\n\n/**\n * Why a failed check of a coding run was carried rather than charged to the run (#3881). Absent on a row written before\n * the reason existed, and read as {@link CarriedVerificationReason.RED_AT_BASELINE}, the only reason there was.\n */\nexport enum CarriedVerificationReason {\n /** The check was red before the run started, with no finding the baseline did not name (#1529, #3258). */\n RED_AT_BASELINE = 'red_at_baseline',\n /**\n * Every finding new since the run's baseline is about elements ANOTHER writer of the run's window touched and the run\n * did not (#3881, `attributeVerificationFailure`): a finding about the application, reported to it, never charged.\n */\n FINDINGS_ANOTHER_WRITER_CAUSED = 'findings_another_writer_caused',\n}\n\nexport interface CarriedVerificationDiagnosis {\n readonly checkRef: string;\n /** Why it was carried; absent reads as {@link CarriedVerificationReason.RED_AT_BASELINE}. */\n readonly carriedBecause?: CarriedVerificationReason;\n /**\n * For {@link CarriedVerificationReason.FINDINGS_ANOTHER_WRITER_CAUSED}: the findings that are the application's, by\n * identity, and the build tasks whose runs wrote what each is about (#3881).\n */\n readonly applicationFindings?: ReadonlyArray<{ readonly finding: string; readonly writtenByTaskRefs: readonly string[] }>;\n readonly message: string;\n /** The end of the check's output, where a compiler puts its errors. */\n readonly outputTail: string;\n /** Application-relative files the output names as failing, first-seen order. */\n readonly offendingPaths: readonly string[];\n /**\n * The offending files that say what GENERATED them. Repairing a generated file alone is repaired\n * until the next generation, so a diagnosis that names the producer names where the fix belongs.\n */\n readonly producers: readonly CarriedFailureProducer[];\n}\n\n/** How much output a diagnosis keeps — enough for a compiler's leading errors, not a log. */\nconst DIAGNOSIS_OUTPUT_TAIL_CHARS = 4000;\n/** Files a diagnosis names at most — the first few carry the cause; the rest are its echo. */\nconst DIAGNOSIS_MAXIMUM_PATHS = 12;\n/** A banner is at the top of a file. */\nconst BANNER_LINES = 40;\n\n/*\n * `path/to/file.ts(12,5): error TS2322: …` (tsc) and `path/to/file.ts:12:5 - error TS…` (tsc --pretty).\n * Deliberately TypeScript-shaped: the required checks this lane runs are typechecks, and a matcher that\n * guessed at every tool's format would name files that are not the cause.\n */\nconst COMPILER_ERROR_LOCATION = /^\\s*([^\\s(:]+\\.(?:ts|tsx|mts|cts))(?:\\(\\d+,\\d+\\)|:\\d+:\\d+)\\s*[:-]\\s*error\\s/gm;\n\n/** A banner line that says what wrote the file. */\nconst GENERATOR_BANNER = /\\b(?:promoted|generated|written|emitted|produced)\\s+by\\b.*$/im;\n\n/**\n * Build the diagnosis from what the baseline pass returned. `readHead` answers the first lines of an\n * application-relative file, or undefined when it cannot be read; it is a parameter so the function\n * stays pure and pinnable.\n */\nexport function diagnoseCarriedVerificationFailure(input: {\n readonly checkRef: string;\n /** The check's working directory, application-relative, when the plan names one — compiler paths are relative to it. */\n readonly checkPath: string | null;\n readonly message: string;\n readonly stdoutTail: string;\n readonly stderrTail: string;\n readonly readHead: (applicationRelativePath: string) => string | undefined;\n}): CarriedVerificationDiagnosis {\n const output = [input.stdoutTail, input.stderrTail].filter((part) => part.length > 0).join('\\n');\n const offendingPaths: string[] = [];\n for (const match of output.matchAll(COMPILER_ERROR_LOCATION)) {\n const relative = input.checkPath && !match[1]!.startsWith('/') ? join(input.checkPath, match[1]!) : match[1]!;\n if (!offendingPaths.includes(relative)) offendingPaths.push(relative);\n if (offendingPaths.length >= DIAGNOSIS_MAXIMUM_PATHS) break;\n }\n const producers: CarriedFailureProducer[] = [];\n for (const path of offendingPaths) {\n const head = input.readHead(path)?.split('\\n').slice(0, BANNER_LINES).join('\\n');\n const banner = head?.match(GENERATOR_BANNER)?.[0]?.replace(/\\s*\\*\\/\\s*$/, '').trim();\n if (banner) producers.push({ path, producedBy: banner });\n }\n return {\n checkRef: input.checkRef,\n message: input.message,\n outputTail: output.slice(-DIAGNOSIS_OUTPUT_TAIL_CHARS),\n offendingPaths,\n producers,\n };\n}\n"]}
@@ -1,4 +1,5 @@
1
1
  import { FlowsActors_Status } from '@wildo-ai/saas-models';
2
+ import { type PlaybookSpend } from '@wildo-ai/application-creation-runtime';
2
3
  import { BuildDispatchWaitMeasuredFrom, CreationJourneyPhase, type CreationJourney_BuildPlanTask, type CreationJourney_Timeline } from '@wildo-ai/platform-core-shared';
3
4
  /**
4
5
  * The creation journey's timeline, derived from rows (#3206, epic #3204): per-phase spans, the wall clock, and the
@@ -17,6 +18,15 @@ export interface CreationJourneyPlaybookRun {
17
18
  readonly status: FlowsActors_Status;
18
19
  /** When it stopped to ask a person, for a run waiting on one. */
19
20
  readonly suspendedAt?: string;
21
+ /** The instance of a keyed playbook (`refs.instanceKey`): two instances are two deliveries, never a refresh of each other. */
22
+ readonly instanceKey?: string;
23
+ /** The root of the tree it ran in (`refs.rootRunId`), for a nested run: its spend is inside that root's whenever a meter observed the root. */
24
+ readonly rootRunId?: string;
25
+ /**
26
+ * Its recorded spend (#4016), when its row carries a measurement: how much of it is known, the calls a meter saw, and
27
+ * the cost they reported. An absent `cost` is "no call reported a cost", never "cost nothing" ({@link PlaybookSpend}).
28
+ */
29
+ readonly spend?: Pick<PlaybookSpend, 'measurement' | 'modelCalls' | 'cost'>;
20
30
  }
21
31
  /**
22
32
  * One build-task attempt's instants, as its execution and task rows record them.
@@ -75,7 +85,8 @@ export declare function classifyPlaybookRefsByJourneyPhase(admitsOf: (ref: strin
75
85
  readonly ambiguousPlaybookRefs: readonly string[];
76
86
  };
77
87
  /**
78
- * Derive the timeline: each phase's first start to its last settle, the wall clock over everything, and the
88
+ * Derive the timeline: each phase's first start to its last settle, a pre-build phase's first complete pass apart from
89
+ * its refreshes (#4016), the wall clock over everything, and the
79
90
  * {@link CREATION_JOURNEY_SLOWEST_BUILD_TASK_COUNT} build tasks with the most wait plus run time.
80
91
  *
81
92
  * The BUILD phase's span covers its lane's playbook runs AND every build-task attempt, whoever started it: a single-task
@@ -1 +1 @@
1
- {"version":3,"file":"creation-journey-timeline.models.d.ts","sourceRoot":"","sources":["../../../../src/meta-workflows/models/creation-journey-timeline.models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EACL,6BAA6B,EAI7B,oBAAoB,EAEpB,KAAK,6BAA6B,EAGl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;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,2BAA2B,EAAE,KAAK,EAAE,MAAM,GAAG,kBAAkB,GAAG,SAAS,CAyBvH;AAED;;;;;GAKG;AACH,wBAAgB,kCAAkC,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,SAAS,MAAM,EAAE,GAAG;IAChG,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;IAC5D,QAAQ,CAAC,qBAAqB,EAAE,SAAS,MAAM,EAAE,CAAC;CACnD,CAoBA;AAsCD;;;;;;;;;;GAUG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE;IACnD,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAC;IACnB,QAAQ,CAAC,YAAY,EAAE,SAAS,0BAA0B,EAAE,CAAC;IAC7D;;;OAGG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,SAAS;QAAE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC7H,QAAQ,CAAC,aAAa,EAAE,SAAS,2BAA2B,EAAE,CAAC;IAC/D,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;IAC5D,QAAQ,CAAC,qBAAqB,EAAE,SAAS,MAAM,EAAE,CAAC;IAClD,yHAAyH;IACzH,QAAQ,CAAC,cAAc,EAAE,SAAS,6BAA6B,EAAE,GAAG,IAAI,CAAC;IACzE,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;CACxC,GAAG,wBAAwB,CA4I3B"}
1
+ {"version":3,"file":"creation-journey-timeline.models.d.ts","sourceRoot":"","sources":["../../../../src/meta-workflows/models/creation-journey-timeline.models.ts"],"names":[],"mappings":"AAAA,OAAO,EA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,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;IAC5D,QAAQ,CAAC,qBAAqB,EAAE,SAAS,MAAM,EAAE,CAAC;IAClD,yHAAyH;IACzH,QAAQ,CAAC,cAAc,EAAE,SAAS,6BAA6B,EAAE,GAAG,IAAI,CAAC;IACzE,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;CACxC,GAAG,wBAAwB,CAoJ3B"}
@@ -1,5 +1,18 @@
1
1
  import { FlowsActors_Status } from '@wildo-ai/saas-models';
2
+ import { PlaybookSpendMeasurement } from '@wildo-ai/application-creation-runtime';
2
3
  import { BuildDispatchWaitMeasuredFrom, CREATION_JOURNEY_PHASE_LANE_REFS, CREATION_JOURNEY_PHASE_ORDER, CREATION_JOURNEY_SLOWEST_BUILD_TASK_COUNT, CreationJourneyPhase, } from '@wildo-ai/platform-core-shared';
4
+ /**
5
+ * Whether a run's recorded spend is its WHOLE cost (#4016): measured in full, and either no call was made or the calls
6
+ * reported a cost. Anything else (no record, a PARTIAL or unobserved measurement, calls that reported tokens and no price)
7
+ * leaves the sum a floor.
8
+ */
9
+ function spendIsComplete(spend) {
10
+ return spend !== undefined && spend.measurement === PlaybookSpendMeasurement.MEASURED && (spend.modelCalls === 0 || spend.cost !== undefined);
11
+ }
12
+ /** Whether a root's recorded spend holds what its nested runs spent: a meter observed it, so their calls are counted there. */
13
+ function spendCoversNestedRuns(spend) {
14
+ return spend !== undefined && spend.measurement !== PlaybookSpendMeasurement.NOT_OBSERVED;
15
+ }
3
16
  /** Milliseconds of an ISO instant, or `undefined` for one that does not parse. */
4
17
  function instantMs(value) {
5
18
  if (value === undefined)
@@ -99,8 +112,85 @@ function playbookRunWindow(run, nowMs) {
99
112
  }
100
113
  return { startMs, endMs: Math.max(startMs, instantMs(run.finishedAt) ?? startMs), inFlight: false, waitingOnPerson: false };
101
114
  }
115
+ /** What a playbook delivers as, for the first-pass split: its ref and, for a keyed one, its instance. */
116
+ function deliveryKey(run) {
117
+ return run.instanceKey === undefined ? run.playbookRef : `${run.playbookRef}\u0000${run.instanceKey}`;
118
+ }
119
+ /**
120
+ * Split one pre-build phase's runs into its FIRST COMPLETE PASS and its REFRESHES (#4016,
121
+ * {@link CreationJourney_PhaseFirstPass} says why this definition and not the lane's first settle).
122
+ *
123
+ * A run is in the first pass when its playbook (and instance) had not completed a run yet when it started: every attempt
124
+ * up to and including the first completed one, and any started before that one settled. Every later run is a refresh.
125
+ * Research turns write no row (#3896): one that began before the pass ended is first-pass work, one after is counted with
126
+ * the refreshes it ran inside.
127
+ *
128
+ * A refresh's run-minutes and spend are counted once per tree: a run nested in a refresh of this phase (its `rootRunId`
129
+ * names one) is inside that root's window, and inside its spend when a meter observed the root. The row names its ROOT, not
130
+ * its parent, so two refreshes the creation umbrella nests (a lane and its child, both rooted at the umbrella) are each
131
+ * counted: an overcount, accepted because the umbrella runs the first passes and the refreshes measured so far ran as
132
+ * roots of the unattended loop (reference run 44052185141).
133
+ */
134
+ function splitFirstPassFromRefreshes(entries, researchTurns) {
135
+ if (entries.length === 0)
136
+ return undefined;
137
+ const firstDeliveredAtMs = new Map();
138
+ for (const { run, window } of entries) {
139
+ if (run.status !== FlowsActors_Status.COMPLETED)
140
+ continue;
141
+ const key = deliveryKey(run);
142
+ firstDeliveredAtMs.set(key, Math.min(firstDeliveredAtMs.get(key) ?? Number.POSITIVE_INFINITY, window.endMs));
143
+ }
144
+ const firstPassEntries = [];
145
+ const refreshEntries = [];
146
+ for (const entry of entries) {
147
+ const deliveredAtMs = firstDeliveredAtMs.get(deliveryKey(entry.run));
148
+ (deliveredAtMs === undefined || entry.window.startMs <= deliveredAtMs ? firstPassEntries : refreshEntries).push(entry);
149
+ }
150
+ // Never empty: the earliest run of the phase cannot start after its own playbook's first completion.
151
+ let startMs = Math.min(...firstPassEntries.map((entry) => entry.window.startMs));
152
+ let endMs = Math.max(...firstPassEntries.map((entry) => entry.window.endMs));
153
+ let refreshResearchTurns = 0;
154
+ const passEndMs = endMs;
155
+ for (const turn of researchTurns) {
156
+ if (turn.startMs > passEndMs) {
157
+ refreshResearchTurns += 1;
158
+ continue;
159
+ }
160
+ startMs = Math.min(startMs, turn.startMs);
161
+ endMs = Math.max(endMs, turn.endMs);
162
+ }
163
+ const refreshById = new Map(refreshEntries.map((entry) => [entry.run.runId, entry.run]));
164
+ const cost = {};
165
+ let runMs = 0;
166
+ let runsWithIncompleteSpend = 0;
167
+ for (const { run, window } of refreshEntries) {
168
+ const root = run.rootRunId !== undefined && run.rootRunId !== run.runId ? refreshById.get(run.rootRunId) : undefined;
169
+ if (root === undefined)
170
+ runMs += window.endMs - window.startMs;
171
+ // Inside a refresh root whose meter observed it: its calls are in the root's figure, complete or not.
172
+ if (root !== undefined && spendCoversNestedRuns(root.spend))
173
+ continue;
174
+ if (!spendIsComplete(run.spend))
175
+ runsWithIncompleteSpend += 1;
176
+ for (const [currency, amount] of Object.entries(run.spend?.cost ?? {}))
177
+ cost[currency] = (cost[currency] ?? 0) + amount;
178
+ }
179
+ return {
180
+ firstPass: {
181
+ startedAt: new Date(startMs).toISOString(),
182
+ endedAt: new Date(endMs).toISOString(),
183
+ durationMs: endMs - startMs,
184
+ inFlight: firstPassEntries.some((entry) => entry.window.inFlight),
185
+ waitingOnPerson: firstPassEntries.some((entry) => entry.window.waitingOnPerson),
186
+ playbookRuns: firstPassEntries.length,
187
+ },
188
+ refreshes: { playbookRuns: refreshEntries.length, runMs, researchTurns: refreshResearchTurns, cost, runsWithIncompleteSpend },
189
+ };
190
+ }
102
191
  /**
103
- * Derive the timeline: each phase's first start to its last settle, the wall clock over everything, and the
192
+ * Derive the timeline: each phase's first start to its last settle, a pre-build phase's first complete pass apart from
193
+ * its refreshes (#4016), the wall clock over everything, and the
104
194
  * {@link CREATION_JOURNEY_SLOWEST_BUILD_TASK_COUNT} build tasks with the most wait plus run time.
105
195
  *
106
196
  * The BUILD phase's span covers its lane's playbook runs AND every build-task attempt, whoever started it: a single-task
@@ -115,6 +205,9 @@ export function deriveCreationJourneyTimeline(input) {
115
205
  const spans = new Map(CREATION_JOURNEY_PHASE_ORDER.map((phase) => [phase, { inFlight: false, waitingOnPerson: false, playbookRuns: 0, researchTurns: 0, buildAttempts: 0 }]));
116
206
  const wall = { inFlight: false, waitingOnPerson: false, playbookRuns: 0, researchTurns: 0, buildAttempts: 0 };
117
207
  let outsidePhasePlaybookRuns = 0;
208
+ // Per phase, its runs and research turns as measured, for the first-pass split (#4016).
209
+ const phaseRuns = new Map(CREATION_JOURNEY_PHASE_ORDER.map((phase) => [phase, []]));
210
+ const phaseResearchTurns = new Map(CREATION_JOURNEY_PHASE_ORDER.map((phase) => [phase, []]));
118
211
  for (const run of input.playbookRuns) {
119
212
  const window = playbookRunWindow(run, nowMs);
120
213
  if (window === undefined)
@@ -131,6 +224,7 @@ export function deriveCreationJourneyTimeline(input) {
131
224
  span.inFlight ||= window.inFlight;
132
225
  span.waitingOnPerson ||= window.waitingOnPerson;
133
226
  span.playbookRuns += 1;
227
+ phaseRuns.get(phase).push({ run, window });
134
228
  }
135
229
  // A research turn widens its phase like a playbook run does, and the wall clock with it (#3896). Never in flight: only
136
230
  // a completed turn writes its record.
@@ -146,6 +240,7 @@ export function deriveCreationJourneyTimeline(input) {
146
240
  const span = spans.get(phase);
147
241
  widen(span, startMs, endMs);
148
242
  span.researchTurns += 1;
243
+ phaseResearchTurns.get(phase).push({ startMs, endMs });
149
244
  }
150
245
  const byTask = new Map();
151
246
  const build = spans.get(CreationJourneyPhase.BUILD);
@@ -198,6 +293,8 @@ export function deriveCreationJourneyTimeline(input) {
198
293
  const phases = CREATION_JOURNEY_PHASE_ORDER.map((phase) => {
199
294
  const span = spans.get(phase);
200
295
  const ran = span.startMs !== undefined && span.endMs !== undefined;
296
+ // Not for the build: its dispatch step runs wave after wave by design, so a second run of it is no refresh.
297
+ const split = phase === CreationJourneyPhase.BUILD ? undefined : splitFirstPassFromRefreshes(phaseRuns.get(phase), phaseResearchTurns.get(phase));
201
298
  return {
202
299
  phase,
203
300
  laneRef: CREATION_JOURNEY_PHASE_LANE_REFS[phase],
@@ -207,6 +304,7 @@ export function deriveCreationJourneyTimeline(input) {
207
304
  playbookRuns: span.playbookRuns,
208
305
  researchTurns: span.researchTurns,
209
306
  buildAttempts: span.buildAttempts,
307
+ ...(split !== undefined ? { firstPass: split.firstPass, refreshes: split.refreshes } : {}),
210
308
  };
211
309
  });
212
310
  const slowestBuildTasks = [...byTask]