@sendproof/core 0.1.0-alpha.1 → 0.1.0-alpha.2

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 (116) hide show
  1. package/assets/api.js +2 -1
  2. package/assets/app.css +612 -1
  3. package/assets/app.js +89 -13
  4. package/assets/bar-fit.js +91 -0
  5. package/assets/commands.js +27 -4
  6. package/assets/dialog.css +125 -0
  7. package/assets/dialog.js +191 -0
  8. package/assets/fields/lookup-source.js +5 -2
  9. package/assets/fields/lookup.js +3 -2
  10. package/assets/i18n.js +13 -2
  11. package/assets/icons.js +18 -0
  12. package/assets/index.html +1 -0
  13. package/assets/journeys/compare.js +225 -0
  14. package/assets/journeys/expressions.js +89 -0
  15. package/assets/journeys/index.js +7 -0
  16. package/assets/journeys/run.js +152 -0
  17. package/assets/journeys/steps.js +163 -0
  18. package/assets/journeys-code.js +193 -0
  19. package/assets/journeys-dialog-model.js +172 -0
  20. package/assets/journeys-dialogs.js +301 -0
  21. package/assets/journeys-model.js +259 -0
  22. package/assets/journeys-runs.js +109 -0
  23. package/assets/journeys-session.js +135 -0
  24. package/assets/journeys-view.js +961 -0
  25. package/assets/journeys.js +962 -0
  26. package/assets/locales/ar-journeys.js +468 -0
  27. package/assets/locales/ar.js +2 -0
  28. package/assets/locales/cs-journeys.js +468 -0
  29. package/assets/locales/cs.js +2 -0
  30. package/assets/locales/da-journeys.js +465 -0
  31. package/assets/locales/da.js +2 -0
  32. package/assets/locales/de-journeys.js +465 -0
  33. package/assets/locales/de.js +2 -0
  34. package/assets/locales/el-journeys.js +465 -0
  35. package/assets/locales/el.js +2 -0
  36. package/assets/locales/en-journeys.js +467 -0
  37. package/assets/locales/en.js +2 -0
  38. package/assets/locales/es-journeys.js +467 -0
  39. package/assets/locales/es.js +2 -0
  40. package/assets/locales/fa-journeys.js +465 -0
  41. package/assets/locales/fa.js +2 -0
  42. package/assets/locales/fi-journeys.js +465 -0
  43. package/assets/locales/fi.js +2 -0
  44. package/assets/locales/fr-journeys.js +467 -0
  45. package/assets/locales/fr.js +2 -0
  46. package/assets/locales/he-journeys.js +468 -0
  47. package/assets/locales/he.js +2 -0
  48. package/assets/locales/hi-journeys.js +465 -0
  49. package/assets/locales/hi.js +2 -0
  50. package/assets/locales/id-journeys.js +466 -0
  51. package/assets/locales/id.js +2 -0
  52. package/assets/locales/it-journeys.js +467 -0
  53. package/assets/locales/it.js +2 -0
  54. package/assets/locales/ja-journeys.js +466 -0
  55. package/assets/locales/ja.js +2 -0
  56. package/assets/locales/ko-journeys.js +465 -0
  57. package/assets/locales/ko.js +2 -0
  58. package/assets/locales/nb-journeys.js +465 -0
  59. package/assets/locales/nb.js +2 -0
  60. package/assets/locales/nl-journeys.js +465 -0
  61. package/assets/locales/nl.js +2 -0
  62. package/assets/locales/pl-journeys.js +468 -0
  63. package/assets/locales/pl.js +2 -0
  64. package/assets/locales/pt-BR-journeys.js +467 -0
  65. package/assets/locales/pt-BR.js +2 -0
  66. package/assets/locales/pt-PT-journeys.js +467 -0
  67. package/assets/locales/pt-PT.js +2 -0
  68. package/assets/locales/ru-journeys.js +468 -0
  69. package/assets/locales/ru.js +2 -0
  70. package/assets/locales/sv-journeys.js +465 -0
  71. package/assets/locales/sv.js +2 -0
  72. package/assets/locales/th-journeys.js +466 -0
  73. package/assets/locales/th.js +2 -0
  74. package/assets/locales/tr-journeys.js +468 -0
  75. package/assets/locales/tr.js +2 -0
  76. package/assets/locales/uk-journeys.js +468 -0
  77. package/assets/locales/uk.js +2 -0
  78. package/assets/locales/vi-journeys.js +466 -0
  79. package/assets/locales/vi.js +2 -0
  80. package/assets/locales/zh-Hans-journeys.js +466 -0
  81. package/assets/locales/zh-Hans.js +2 -0
  82. package/assets/locales/zh-Hant-journeys.js +466 -0
  83. package/assets/locales/zh-Hant.js +2 -0
  84. package/assets/manifest.json +349 -104
  85. package/assets/markdown.js +27 -2
  86. package/assets/request-editor.js +7 -1
  87. package/assets/result-states.js +2 -2
  88. package/assets/results.js +41 -14
  89. package/assets/router.js +25 -1
  90. package/assets/seeded-menu.js +2 -1
  91. package/assets/shortcuts-sheet.js +3 -1
  92. package/assets/shortcuts.js +6 -0
  93. package/assets/sidebar.js +54 -5
  94. package/assets/signin.js +6 -3
  95. package/assets/styles.css +8 -2
  96. package/assets/toast.js +29 -0
  97. package/assets/vendor/arazzo-runtime-expression.js +136 -0
  98. package/assets/vendor/json-pointer.js +48 -0
  99. package/assets/vendor/jsonpath-rfc9535.js +15 -0
  100. package/assets/view.js +11 -3
  101. package/assets/views.css +7 -0
  102. package/dist/index.d.ts +7 -3
  103. package/dist/index.js +217 -26
  104. package/dist/journey-builder.d.ts +178 -0
  105. package/dist/journey-builder.js +169 -0
  106. package/dist/journeys.d.ts +24 -0
  107. package/dist/journeys.js +157 -0
  108. package/dist/node-http.d.ts +2 -0
  109. package/dist/node-http.js +17 -0
  110. package/dist/sessions.d.ts +43 -0
  111. package/dist/sessions.js +145 -0
  112. package/dist/statements.js +2 -2
  113. package/dist/stores/tables.d.ts +213 -0
  114. package/dist/stores/tables.js +213 -0
  115. package/dist/types.d.ts +34 -2
  116. package/package.json +1 -1
@@ -0,0 +1,467 @@
1
+ // English strings for Journeys mode (docs/plans/journeys.md, mocks v7). Merged into en.js.
2
+ // Journey, step, table and field names, values, expressions and approved-difference reasons are
3
+ // the API's own and never appear here. Plural entries are keyed by Intl.PluralRules category.
4
+ export default {
5
+ // The mode switch and the journeys sidebar
6
+ 'jr.mode': 'Mode',
7
+ 'jr.mode.spec': 'Specification',
8
+ 'jr.mode.journeys': 'Journeys',
9
+ 'jr.filter': 'Filter journeys',
10
+ 'jr.head.code': 'From code',
11
+ 'jr.head.file': 'From file',
12
+ 'jr.head.codeTip': 'Built from the journey classes at startup · open the generated Arazzo document',
13
+ 'jr.head.fileTip': 'Read from the registered Arazzo file · open it',
14
+ 'jr.head.inferred': 'Inferred from links',
15
+ 'jr.head.none': 'No journeys defined',
16
+ 'jr.inferred': 'Inferred from links',
17
+ 'jr.inferredPill': 'From OpenAPI links',
18
+ 'jr.inferredTip': 'Inferred from a response link in the OpenAPI document. It has no expected writes.',
19
+ 'jr.stepsN': { one: '{n} step', other: '{n} steps' },
20
+ 'jr.last.passed': 'Last run passed',
21
+ 'jr.last.failed': 'Last run failed',
22
+ 'jr.last.none': 'Not run yet',
23
+ 'jr.last.sendOnly': 'Send only: a step can’t Preview',
24
+ 'jr.last.ended': 'Last run was ended early',
25
+ 'jr.ended': 'Ended',
26
+ 'jr.v.endedAfter': 'Ended after step {n} · rolled back',
27
+ 'jr.v.stoppedAfter': 'Stopped after step {n}',
28
+ 'jr.v.endedLedePreview': 'The run ended early, so the Preview session rolled back everything it held.',
29
+ 'jr.v.endedLedeSend': 'The run was stopped early. What the steps already sent stays in the database.',
30
+ 'jr.strip.ended': 'Session ended · rolled back',
31
+ 'jr.rb.ended': 'Session ended · nothing was committed',
32
+ 'jr.sum.leftTitle': 'Left in the database',
33
+ 'jr.sum.leftEnd': 'Sent before the run stopped',
34
+ 'jr.signedInAs': 'This journey runs as {name}, so you’re signed in as {name} now.',
35
+ 'jr.runAll': 'Run all',
36
+ 'jr.runAllTip': 'Preview every journey · Send-only ones are skipped',
37
+ 'jr.allDone': 'Run all finished: {passed} passed, {failed} failed.',
38
+ 'jr.side.emptyTitle': 'No journeys yet',
39
+ 'jr.side.emptyBody': 'This API defines no journeys, and its OpenAPI document has no links to infer one from.',
40
+ 'jr.loading': 'Loading journeys…',
41
+ 'jr.loadingJourney': 'Loading the journey',
42
+ 'jr.loadingRuns': 'Loading runs…',
43
+ 'jr.loadStatus': 'GET {url} answered {status}.',
44
+
45
+ 'jr.pane.journey': 'Journey',
46
+ 'jr.pane.summary': 'Summary',
47
+ 'jr.pane.details': 'Details',
48
+ 'jr.pane.step': 'Step',
49
+
50
+ // The rail
51
+ 'jr.steps': 'Steps',
52
+ 'jr.rail.ready': 'Ready to Preview',
53
+ 'jr.rail.readySend': 'Ready to Send',
54
+ 'jr.rail.notRun': 'Not run yet',
55
+ 'jr.rail.skipped': 'Not run · run stopped',
56
+ 'jr.rail.running': 'Running…',
57
+ 'jr.rail.refused': 'refused',
58
+ 'jr.rail.blocked': 'blocked',
59
+ 'jr.rail.failedShort': 'Failed',
60
+ 'jr.sr.passed': 'passed',
61
+ 'jr.sr.failed': 'failed',
62
+ 'jr.sr.refused': 'refused',
63
+ 'jr.sr.current': 'current step',
64
+ 'jr.sr.pending': 'not run yet',
65
+ 'jr.sr.skipped': 'not run',
66
+ 'jr.problems': { one: '{n} problem', other: '{n} problems' },
67
+ 'jr.approvedN': { one: '{n} approved', other: '{n} approved' },
68
+ 'jr.matchedN': { one: '{n} matched', other: '{n} matched' },
69
+ 'jr.uncheckedN': { one: '{n} not checked', other: '{n} not checked' },
70
+
71
+ // The overview
72
+ 'jr.view': 'View',
73
+ 'jr.view.overview': 'Overview',
74
+ 'jr.inputs': 'Inputs',
75
+ 'jr.endsWith': 'Ends with',
76
+ 'jr.outputs': 'Outputs',
77
+ 'jr.from': 'From',
78
+ 'jr.fromStep': 'from step {n}',
79
+ 'jr.fromInputs': 'from inputs',
80
+ 'jr.valuesFromInputs': { one: '{n} value from inputs', other: '{n} values from inputs' },
81
+ 'jr.expects': 'expects {field} {value}',
82
+ 'jr.readsOnly': 'reads only',
83
+ 'jr.writesNothing': 'writes nothing',
84
+ 'jr.notRunBySendproof': 'Not run by Sendproof',
85
+ 'jr.count.rows': { one: '{n} row', other: '{n} rows' },
86
+ 'jr.count.documents': { one: '{n} document', other: '{n} documents' },
87
+ 'jr.count.keys': { one: '{n} key', other: '{n} keys' },
88
+ 'jr.count.emails': { one: '{n} email', other: '{n} emails' },
89
+ 'jr.count.effects': { one: '{n} effect', other: '{n} effects' },
90
+ 'jr.runsAs': 'Runs as {name}',
91
+ 'jr.sendOnly': 'Send only',
92
+ 'jr.definedIn': 'Defined in {file}',
93
+ 'jr.usedIn': 'Used in step {n}',
94
+ 'jr.usedInMany': 'Used in steps {steps}',
95
+ 'jr.usedNowhere': 'Not used by a step',
96
+ 'jr.ends.criteria': 'Step {n} reads it back and expects {condition}.',
97
+ 'jr.ends.status': 'Step {n} expects status {status}.',
98
+ 'jr.previewRun': 'Preview run',
99
+ 'jr.sendRun': 'Send run',
100
+ 'jr.sendAgain': 'Send again',
101
+ 'jr.previewAgain': 'Preview again',
102
+ 'jr.bar.rollsBack': 'Preview rolls back',
103
+ 'jr.bar.rollsBackTip': 'Preview rolls back everything the run writes',
104
+ 'jr.bar.sendOnly': 'Send only: a step can’t Preview',
105
+ 'jr.bar.noSessions': 'This host can’t hold a Preview session',
106
+ 'jr.arazzoTitle': 'Arazzo workflow',
107
+
108
+ // Runs in the overview's right column
109
+ 'jr.lastRun': 'Last run',
110
+ 'jr.openRun': 'Open run',
111
+ 'jr.earlierRuns': 'Earlier runs',
112
+ 'jr.meta.preview': 'Preview run · {name} · {when} · rolled back',
113
+ 'jr.meta.send': 'Send run · {name} · {when} · committed',
114
+ 'jr.problemsIn': 'Problems in step {n}',
115
+ 'jr.expectedWrittenPair': 'expected {expected}, written {written}',
116
+ 'jr.p.expectedNothing': 'expected {op}, nothing changed',
117
+ 'jr.p.unexpected': 'an unexpected {op}',
118
+ 'jr.got': 'got',
119
+ 'jr.passed': 'Passed',
120
+ 'jr.failed': 'Failed',
121
+ 'jr.stopped': 'Stopped',
122
+ 'jr.notRun': 'Not run',
123
+ 'jr.someone': 'Someone',
124
+ 'jr.viaMcp': 'via MCP',
125
+ 'jr.send': 'Send',
126
+ 'jr.preview': 'Preview',
127
+ 'jr.runs': 'Runs',
128
+ 'jr.runsKept': 'Runs are kept in this browser · {n} of {max}',
129
+ 'jr.noRuns': 'No runs yet',
130
+ 'jr.runs.emptyTitle': 'No runs yet',
131
+ 'jr.runs.emptyBody': 'Preview the journey to see each step’s writes compared with what it should write. Nothing is committed.',
132
+ 'jr.runs.emptySendOnly': 'This journey is Send only: a step writes to a store Preview can’t hold. Send it against a throwaway database.',
133
+ 'jr.runs.appear': 'Runs appear here',
134
+ 'jr.runs.appearBody': 'Each run lists its steps, what each wrote compared with what it should have, and the approved differences it used.',
135
+ 'jr.todayAt': 'Today, {time}',
136
+
137
+ // A step on its operation's screen
138
+ 'jr.stepN': 'Step {n}',
139
+ 'jr.stepOf': 'Step {n} of {total}',
140
+ 'jr.stepsDone': '{n} of {total} steps done',
141
+ 'jr.strip.held': 'Session held · rolls back when the run ends',
142
+ 'jr.strip.commits': 'Each step commits to {db}',
143
+ 'jr.strip.commitsAny': 'Each step commits its writes',
144
+ 'jr.endRun': 'End run',
145
+ 'jr.endRunTip': 'End the run and roll back its Preview session',
146
+ 'jr.prevStep': 'Previous step',
147
+ 'jr.nextStep': 'Next step',
148
+ 'jr.bind.fromStep': 'From step {n}',
149
+ 'jr.bind.input': 'Journey input',
150
+ 'jr.bind.fixed': 'Fixed',
151
+ 'jr.bind.setByJourney': 'Set by the journey',
152
+ 'jr.ref.step': 'step {n}',
153
+ 'jr.ref.input': 'input',
154
+ 'jr.sends': 'Sends',
155
+ 'jr.bar.fromEarlier': 'From earlier steps',
156
+ 'jr.bar.fromInputs': 'From the journey’s inputs',
157
+ 'jr.bar.commits': 'Commits for real',
158
+ 'jr.bar.edited': { one: '{n} bound value edited', other: '{n} bound values edited' },
159
+ 'jr.bar.running': 'Running step {n} of {total}…',
160
+ 'jr.bar.stopped': 'Step {n} stopped the run',
161
+ 'jr.bar.previewStep': 'Preview step {n}',
162
+ 'jr.bar.sendStep': 'Send step {n}',
163
+ 'jr.bar.sendAgain': 'Send again',
164
+ 'jr.bar.previewAgain': 'Preview again',
165
+ 'jr.bar.runToEnd': 'Run to end',
166
+ 'jr.bar.noGetPreview': 'A read previews only inside a Preview run’s session',
167
+ 'jr.bar.summary': 'Run summary',
168
+ 'jr.stepFailed': 'Step {n} failed',
169
+ 'jr.stepPassed': 'Step {n} passed',
170
+ 'jr.stepPassedApproved': 'Step {n} passed · {count} approved',
171
+ 'jr.rerun': 'Re-run step {n} in the session',
172
+ 'jr.rb.held': 'Session held · nothing is committed',
173
+ 'jr.rb.sendRun': 'Send run · each step commits',
174
+ 'jr.rb.prevPreviewed': 'Step {n} previewed at {time} · session held',
175
+ 'jr.rb.prevSent': 'Step {n} sent at {time}',
176
+ 'jr.rb.previewed': 'Previewed in the session at {time} · run {run}',
177
+ 'jr.rb.sent': 'Sent for real at {time} · run {run} · traced',
178
+ 'jr.rb.review': 'Run {run} · kept in this browser',
179
+
180
+ // The Expected tab before a step runs
181
+ 'jr.expected': 'Expected',
182
+ 'jr.exp.title': 'What step {n} should do',
183
+ 'jr.exp.body': 'After the Preview, Sendproof compares what the step wrote with this list. A difference passes only when an approved-difference record covers it.',
184
+ 'jr.exp.bodyNone': 'This step has no expected writes, so only its success criteria are checked.',
185
+ 'jr.exp.noneTitle': 'No expected writes',
186
+ 'jr.exp.noneBody': 'The expectations document lists nothing for this step.',
187
+ 'jr.exp.inferredBody': 'Journeys inferred from links carry no expectations. After a Preview, Copy as C# on the Database tab gives the writes to add.',
188
+ 'jr.exp.nothing': 'This step should write nothing.',
189
+ 'jr.exp.to': 'to',
190
+ 'jr.exp.subjectMatches': 'subject',
191
+ 'jr.exp.unlistedFail': 'Unlisted changes fail the step.',
192
+ 'jr.exp.unlistedIgnore': 'Unlisted changes are ignored.',
193
+ 'jr.exp.ignored': 'Ignored:',
194
+ 'jr.succeedsWhen': 'Succeeds when',
195
+ 'jr.matches': 'matches',
196
+ 'jr.anyValue': 'any value',
197
+ 'jr.anyType': 'any {type}',
198
+
199
+ // The comparison after a step runs
200
+ 'jr.show': 'Show',
201
+ 'jr.f.all': 'All',
202
+ 'jr.f.problems': 'Problems',
203
+ 'jr.f.approved': 'Approved',
204
+ 'jr.f.match': 'Match',
205
+ 'jr.expectedWritten': '{expected} expected · {written} written',
206
+ 'jr.approvedDifferences': 'Approved differences',
207
+ 'jr.matched': 'Matched',
208
+ 'jr.find.match': 'Match',
209
+ 'jr.find.differs': 'Differs',
210
+ 'jr.find.missing': 'Missing',
211
+ 'jr.find.extra': 'Extra',
212
+ 'jr.find.approved': 'Approved',
213
+ 'jr.find.unchecked': 'Not checked',
214
+ 'jr.result': 'Result',
215
+ 'jr.field': 'Field',
216
+ 'jr.written': 'Written',
217
+ 'jr.condition': 'Condition',
218
+ 'jr.actual': 'Actual',
219
+ 'jr.notWritten': 'not written',
220
+ 'jr.op.insert': 'an insert',
221
+ 'jr.op.update': 'an update',
222
+ 'jr.op.delete': 'a delete',
223
+ 'jr.op.write': 'a write',
224
+ 'jr.miss.keyed': 'Expected {op} where {field} is {value}',
225
+ 'jr.miss.plain': 'Expected {op}',
226
+ 'jr.miss.none': 'No matching change',
227
+ 'jr.miss.nothingIn': 'Nothing in {target} changed in this step.',
228
+ 'jr.miss.noEffect': 'No {target} was held or sent in this step.',
229
+ 'jr.extra.title': 'Written, but not expected',
230
+ 'jr.extra.body': 'This step changed {target}, which its expectations don’t list.',
231
+ 'jr.unchecked.title': 'Not checked',
232
+ 'jr.unchecked.body': 'Sendproof didn’t hook {store} here, so its writes couldn’t be compared.',
233
+ 'jr.unchecked.notHooked': 'This host doesn’t hook {store}, so its writes couldn’t be compared.',
234
+ 'jr.unchecked.notTraced': 'The traced Send carried no {store} changes, so this write couldn’t be compared.',
235
+ 'jr.unchecked.noTrace': 'This Send wasn’t traced, so its writes couldn’t be compared.',
236
+ 'jr.coveredBy': 'Covered by',
237
+ 'jr.draft': 'Draft approved difference',
238
+ 'jr.showInDatabase': 'Show in Database',
239
+ 'jr.showEffects': 'Show side effects',
240
+ 'jr.v.passedBody': 'Every write matched what the step should write.',
241
+ 'jr.v.approvedBody': 'Every difference is covered by an approved-difference record.',
242
+ 'jr.p.differs': '{field} differs',
243
+ 'jr.p.missing': 'nothing changed in {target}',
244
+ 'jr.p.noEffect': 'no {kind} was held',
245
+ 'jr.p.extra': 'an unexpected write to {target}',
246
+ 'jr.p.criterion': '{condition} was {actual}',
247
+ 'jr.p.more': ', and {n} more',
248
+
249
+ // Approved-difference records
250
+ 'jr.ad.by': 'Approved by {name}',
251
+ 'jr.ad.expiresIn': { one: 'Expires in {n} day', other: 'Expires in {n} days' },
252
+ 'jr.ad.expired': 'Expired',
253
+ 'jr.ad.expiredBody': 'An expired record covers nothing. Renew it or fix the expectation.',
254
+ 'jr.ad.extraRow': 'extra row',
255
+ 'jr.ad.missingRow': 'missing row',
256
+ 'jr.ad.unused': 'Nothing in this run needed it. If that holds, remove it from {file}.',
257
+ 'jr.ad.unusedCode': 'Nothing in this run needed it. If that holds, remove it from the journey’s code.',
258
+ 'jr.ad.used': 'Used in this run',
259
+ 'jr.ad.notNeeded': 'Not needed this run',
260
+ 'jr.ad.expiredTitle': 'Expired',
261
+ 'jr.ad.noneTitle': 'No approved differences',
262
+ 'jr.ad.noneBody': 'This journey has no approved-difference records.',
263
+
264
+ // A stopped run
265
+ 'jr.stop.eyebrow': 'Journey stopped',
266
+ 'jr.stop.refusedTitle': 'Step {n} was refused: {reason}',
267
+ 'jr.stop.blockedTitle': 'Step {n} was blocked by the Preview guard',
268
+ 'jr.stop.titlePlain': 'Step {n} didn’t meet its success criteria',
269
+ 'jr.stop.expects': 'The journey expects',
270
+ 'jr.stop.answered': 'The API answered {status}',
271
+ 'jr.stop.wroteNothing': 'This step wrote nothing.',
272
+ 'jr.stop.wrote': 'This step wrote changes before it was refused.',
273
+ 'jr.stop.traced': 'Traced Send: {changes} changes, {effects} effects.',
274
+ 'jr.stop.previewSafe': 'Nothing was committed.',
275
+ 'jr.stop.previewSafeBody': 'The run’s Preview session was rolled back.',
276
+ 'jr.stop.didntRun': { one: 'Step {steps} didn’t run.', other: 'Steps {steps} didn’t run.' },
277
+ 'jr.stop.default': 'Arazzo’s default on failure is to end the workflow.',
278
+ 'jr.stop.left': { one: 'Left in the database by step {steps}', other: 'Left in the database by steps {steps}' },
279
+ 'jr.stop.sentForReal': 'Sent for real',
280
+ 'jr.stop.undoBody': 'Opens the operation with this record filled in, to undo what the run left.',
281
+ 'jr.responseBody': 'Response body',
282
+
283
+ // The run summary
284
+ 'jr.runId': 'Run {id}',
285
+ 'jr.backToJourney': 'Back to the journey',
286
+ 'jr.runDetails': 'Run details',
287
+ 'jr.timeline': 'Timeline',
288
+ 'jr.v.running': 'Running',
289
+ 'jr.v.cancelled': 'Ended before it finished',
290
+ 'jr.v.passedAll': { one: 'Passed, {n} step', other: 'Passed, all {n} steps' },
291
+ 'jr.v.passedApproved': { one: 'Passed · {n} approved', other: 'Passed · {n} approved' },
292
+ 'jr.v.failedAt': 'Failed at step {n}',
293
+ 'jr.v.stoppedAt': 'Stopped at step {n}',
294
+ 'jr.v.failedAtOf': 'Failed at step {n} of {total}',
295
+ 'jr.v.stoppedAtOf': 'Stopped at step {n} of {total}',
296
+ 'jr.v.refusedLede': 'the API answered {status}.',
297
+ 'jr.v.previewLede': 'Every step wrote what it should, and the Preview session rolled it all back.',
298
+ 'jr.v.sendLede': 'Every step wrote what it should, and each step committed.',
299
+ 'jr.by.ran': 'ran a',
300
+ 'jr.by.durTip': { one: 'The step’s own time, {n} step.', other: 'The steps’ own time, {n} steps.' },
301
+ 'jr.by.rolledBack': 'rolled back',
302
+ 'jr.by.committed': 'committed',
303
+ 'jr.sum.passedN': { one: '{n} passed', other: '{n} passed' },
304
+ 'jr.sum.failedN': { one: '{n} failed', other: '{n} failed' },
305
+ 'jr.sum.skippedN': { one: '{n} not run', other: '{n} not run' },
306
+ 'jr.sum.kept': 'Write differences don’t stop a run, so step {n} still ran.',
307
+ 'jr.sum.rolledTitle': 'Rolled back',
308
+ 'jr.sum.rolledEnd': 'Nothing was written',
309
+ 'jr.sum.writtenTitle': 'Written',
310
+ 'jr.sum.writtenEnd': 'Committed by the run',
311
+ 'jr.sum.changesUndone': { one: '{n} change undone', other: '{n} changes undone' },
312
+ 'jr.sum.changesKept': { one: '{n} change committed', other: '{n} changes committed' },
313
+ 'jr.sum.effectsHeld': { one: '{n} held, none sent', other: '{n} held, none sent' },
314
+ 'jr.sum.effectsSent': { one: '{n} recorded', other: '{n} recorded' },
315
+ 'jr.sum.rolledBack': 'Rolled back',
316
+ 'jr.sum.aborted': 'Aborted',
317
+ 'jr.sum.committed': 'Committed',
318
+ 'jr.sum.discarded': 'Discarded',
319
+ 'jr.sum.recorded': 'Recorded',
320
+ 'jr.sum.outputsPreview': 'From the rolled-back run',
321
+ 'jr.sum.outputsSend': 'From the committed run',
322
+ 'jr.sum.notDone': 'expected {op}, nothing changed',
323
+ 'jr.sum.unexpected': 'an unexpected {op}',
324
+ 'jr.sum.covered': 'covered',
325
+ 'jr.sum.stepsFailed': { one: '{n} step failed', other: '{n} steps failed' },
326
+ 'jr.sum.allPassed': 'Every step passed',
327
+ 'jr.openStep': 'Open step {n}',
328
+ 'jr.copyOutput': 'Copy {name}',
329
+ 'jr.copyJson': 'Copy run as JSON',
330
+ 'jr.cli': 'Run it from a terminal or an agent',
331
+ 'jr.copyCommand': 'Copy command',
332
+ 'jr.mcp': 'Agents use the same runner as MCP tools:',
333
+ 'jr.runKept': 'Run {id} · kept in this browser',
334
+ 'jr.noInputs': 'This journey takes no inputs.',
335
+ 'jr.tl.startedPreview': 'Preview session opened',
336
+ 'jr.tl.startedSend': 'Send run started',
337
+ 'jr.tl.rolledBack': 'Session rolled back',
338
+ 'jr.tl.ended': 'Run ended',
339
+ 'jr.finished': '{name}: {verdict}.',
340
+ 'jr.reads': 'Reads',
341
+ 'jr.readsOnlyTip': 'Reads only: nothing to compare',
342
+
343
+ // Copy and drafts
344
+ 'jr.copyCode': 'Copy',
345
+ 'jr.copyCSharp': 'Copy as C#',
346
+ 'jr.copyCSharpTip': 'This Preview’s writes as an ExpectWrites block for a journey class',
347
+ 'jr.copy.draft': 'Draft approved difference',
348
+ 'jr.copy.csharp': 'ExpectWrites block',
349
+ 'jr.copy.run': 'Run as JSON',
350
+ 'jr.copy.output': 'Output',
351
+ 'jr.copy.command': 'Command',
352
+ 'jr.copy.code': 'Code',
353
+ 'jr.copy.prompt': 'Prompt',
354
+
355
+ // No journeys
356
+ 'jr.empty.title': 'No journeys for this API yet',
357
+ 'jr.empty.body': 'A journey is a set of steps that finish a task, such as taking an order through to shipment. You define one in code: its steps, the values each passes on, and what each should write. Sendproof runs it here one step at a time, and the same journey runs in {test} and in CI.',
358
+ 'jr.empty.prompt.copy': 'Copy a prompt for your agent',
359
+ 'jr.empty.prompt': 'Write Sendproof journeys for {api}. Each journey is a sealed class deriving from Journey<TInputs> (Sendproof.Journeys): take the operations from the generated operations class, bind each step’s request from the inputs and earlier steps’ outputs, set SucceedsWith for each step and describe its expected writes with ExpectWrites. Register them with AddJourneys(typeof(Program).Assembly), then run dotnet test with a JourneyTestSuite to check they pass. Ask before approving any difference.',
360
+ 'jr.empty.orByHand': 'or write the class yourself:',
361
+ 'jr.empty.step1': 'Write a journey class',
362
+ 'jr.empty.step1Body': 'Operations, request fields and tables are typed, so a wrong value doesn’t compile.',
363
+ 'jr.empty.step2': 'Register the journeys',
364
+ 'jr.empty.step2Body': 'At startup they become Arazzo and expected writes.',
365
+ 'jr.empty.step3': 'Run them as tests too',
366
+ 'jr.empty.step3Body': 'Every journey becomes a test case, previewed in memory.',
367
+ 'jr.empty.arazzo': 'Arazzo Specification 1.1.0',
368
+ 'jr.empty.bar': 'Nothing to run yet',
369
+
370
+ // Shortcuts
371
+ 'shortcut.mode-spec': 'Specification mode',
372
+ 'shortcut.mode-journeys': 'Journeys mode',
373
+ 'shortcut.step-previous': 'Previous step',
374
+ 'shortcut.step-next': 'Next step',
375
+ 'shortcut.run-to-end': 'Run to end',
376
+
377
+ // Dialogs (dialog.js, journeys-dialogs.js; mocks v8): the workbench never opens a native browser
378
+ // dialog. Journey, step, table and database names, addresses, roles and status codes are the
379
+ // API's own and are passed in as {placeholders}.
380
+ 'dialog.close': 'Close',
381
+ 'dialog.closeTip': 'Close · Esc',
382
+ 'dlg.cancel': 'Cancel',
383
+ 'dlg.close': 'Close',
384
+
385
+ // Send a run for real
386
+ 'dlg.sendrun.title': 'Send this run for real?',
387
+ 'dlg.sendrun.body': { one: '{name} sends its step. What it writes stays written.', other: '{name} sends all {n} steps. What they write stays written.' },
388
+ 'dlg.sendrun.kept': 'Kept after the run',
389
+ 'dlg.sendrun.unknown': 'This journey lists no expected writes, so each step commits whatever it writes.',
390
+ 'dlg.sendrun.hint': 'A Preview run checks the same steps and rolls everything back.',
391
+ 'dlg.sendrun.go': 'Send run',
392
+ 'dlg.store.in': '{count} in {places}',
393
+ 'dlg.store.inMore.table': { one: '{count} in {places} and {n} more table', other: '{count} in {places} and {n} more tables' },
394
+ 'dlg.store.inMore.collection': { one: '{count} in {places} and {n} more collection', other: '{count} in {places} and {n} more collections' },
395
+ 'dlg.email': 'Email',
396
+ 'dlg.email.to': { one: '{n} email delivered to {to}', other: '{n} emails delivered to {to}' },
397
+ 'dlg.email.sent': { one: '{n} email delivered', other: '{n} emails delivered' },
398
+ 'dlg.effect.sent': { one: '{n} effect sent', other: '{n} effects sent' },
399
+
400
+ // End a Preview run partway
401
+ 'dlg.endrun.title': 'End this Preview run?',
402
+ 'dlg.endrun.body': { one: 'Ending the held session rolls back the step. Nothing was written.', other: 'Ending the held session rolls back all {n} steps. Nothing was written.' },
403
+ 'dlg.endrun.bodyTwo': 'Ending the held session rolls back both steps. Nothing was written.',
404
+ 'dlg.endrun.keep': 'Keep running',
405
+ 'dlg.endrun.end': 'End run',
406
+ 'dlg.endrun.held': 'Held for {time}',
407
+ 'dlg.step.sub': '{status} · {time} · {what}',
408
+ 'dlg.held': '{what} held',
409
+ 'dlg.readsOnly': 'reads only',
410
+ 'dlg.held.emails': { one: '{n} email', other: '{n} emails' },
411
+ 'dlg.held.effects': { one: '{n} effect', other: '{n} effects' },
412
+ 'dlg.held.effect': '{n} {kind}',
413
+ 'dlg.units': { one: '{n} unit', other: '{n} units' },
414
+
415
+ // Stop a Send run partway
416
+ 'dlg.stopsend.title': 'Stop this Send run?',
417
+ 'dlg.stopsend.sent': { one: 'Step {steps} was sent for real. Stopping keeps what it wrote.', other: 'Steps {steps} were sent for real. Stopping keeps what they wrote.' },
418
+ 'dlg.stopsend.skipped': { one: 'Step {steps} won’t run.', other: 'Steps {steps} won’t run.' },
419
+ 'dlg.stopsend.left': 'Left in the database',
420
+ 'dlg.stopsend.by': '{what} by step {n}',
421
+ 'dlg.stopsend.more': { one: '{n} more change', other: '{n} more changes' },
422
+ 'dlg.stopsend.moreIn': '{n} more in {where}',
423
+ 'dlg.stopsend.moreStore': { one: '{n} {store} collection', other: '{n} {store} collections' },
424
+ 'dlg.stopsend.moreTables': { one: '{n} more table', other: '{n} more tables' },
425
+ 'dlg.stopsend.undoes': 'Undoes step {n} for {ref}',
426
+ 'dlg.stopsend.undoesStep': 'Undoes step {n}',
427
+ 'dlg.stopsend.keep': 'Keep going',
428
+ 'dlg.stopsend.stop': 'Stop run',
429
+ 'dlg.op.insert': 'Inserted', 'dlg.op.update': 'Updated', 'dlg.op.delete': 'Deleted', 'dlg.op.write': 'Written', 'dlg.op.email': 'Sent',
430
+ 'dlg.range': '{from} to {to}',
431
+
432
+ // Switch persona while a Preview session is held
433
+ 'dlg.persona.title': 'Switch to {name}?',
434
+ 'dlg.persona.body': { one: 'Your Preview run as {from} ends, and its {n} held step rolls back.', other: 'Your Preview run as {from} ends, and its {n} held steps roll back.' },
435
+ 'dlg.persona.bodyAnon': { one: 'Your Preview run ends, and its {n} held step rolls back.', other: 'Your Preview run ends, and its {n} held steps roll back.' },
436
+ 'dlg.persona.held': 'Preview held',
437
+ 'dlg.persona.next': 'Switching to',
438
+ 'dlg.persona.count': '{ok} of {total}',
439
+ 'dlg.persona.access': { one: '{ok} of {total} step allowed', other: '{ok} of {total} steps allowed' },
440
+ 'dlg.persona.seg': '{n}. {step}',
441
+ 'dlg.persona.segRefused': '{n}. {step} · refused (403)',
442
+ 'dlg.persona.refused': { one: '{n} step is refused', other: '{n} steps are refused' },
443
+ 'dlg.persona.refusedSub': { one: '{steps} returns 403 for {role}', other: '{steps} return 403 for {role}' },
444
+ 'dlg.persona.foot': { one: 'Rolls back {n} held step', other: 'Rolls back {n} held steps' },
445
+ 'dlg.persona.stay': 'Stay as {name}',
446
+ 'dlg.persona.stayAnon': 'Stay',
447
+ 'dlg.persona.switch': 'Switch and end run',
448
+
449
+ // The Preview session ended on its own
450
+ 'dlg.expired.title': 'The Preview session ended',
451
+ 'dlg.expired.idle': 'It was idle for {time}, so Sendproof rolled it back. Nothing was written.',
452
+ 'dlg.expired.gone': 'It ended on its own, so Sendproof rolled it back. Nothing was written.',
453
+ 'dlg.expired.ran': { one: 'Step {steps} had run', other: 'Steps {steps} had run' },
454
+ 'dlg.expired.ranSub': { one: 'Its result stays in this run', other: 'Their results stay in this run' },
455
+ 'dlg.expired.rolledBy': 'Rolled back by {time}',
456
+ 'dlg.expired.rolledAt': 'Rolled back at {time}',
457
+ 'dlg.expired.again': 'Start again',
458
+
459
+ // A Preview session that couldn't open
460
+ 'jr.opening': 'Opening the Preview session…',
461
+ 'dlg.busy.title': '{store} is held by another Preview',
462
+ 'dlg.busy.body': 'Another Preview session, maybe in another tab or left behind by a tab that was closed, holds the database. It ends by itself within {time}.',
463
+ 'dlg.busy.bodyNoTime': 'Another Preview session, maybe in another tab or left behind by a tab that was closed, holds the database. It ends by itself after its idle timeout.',
464
+ 'dlg.busy.held': 'Held by another Preview session',
465
+ 'dlg.busy.again': 'Try again',
466
+ 'dlg.openfail.title': 'The Preview session couldn’t open',
467
+ };
@@ -3,6 +3,7 @@
3
3
  // Placeholders in braces are filled by i18n.t (text) or i18n.th (trusted HTML values).
4
4
  import capture from './en-capture.js';
5
5
  import stores from './en-stores.js';
6
+ import journeys from './en-journeys.js';
6
7
 
7
8
  export default {
8
9
  dir: 'ltr',
@@ -12,6 +13,7 @@ export default {
12
13
  strings: {
13
14
  ...capture,
14
15
  ...stores,
16
+ ...journeys,
15
17
  'app.name': 'Sendproof',
16
18
  'kbd.then': 'then',
17
19
  'unit.bytes': '{n} B',