bareloop 0.39.0 → 0.40.0

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 (51) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/bareloop.context.md +63 -11
  3. package/package.json +2 -2
  4. package/src/authorflow.js +333 -58
  5. package/src/authoring.js +65 -2
  6. package/src/authorjob.js +57 -9
  7. package/src/authorreadout.js +50 -2
  8. package/src/authorrun.js +5 -2
  9. package/src/authorscout.js +9 -6
  10. package/src/bridges.js +1 -1
  11. package/src/calibrate.js +1 -1
  12. package/src/cardauthor.js +4 -1
  13. package/src/declaredclose.js +4 -3
  14. package/src/draftspend.js +6 -1
  15. package/src/interviewrun.js +56 -27
  16. package/src/job.js +38 -5
  17. package/src/jobblock.js +140 -0
  18. package/src/judged.js +1 -1
  19. package/src/ledger.js +1 -1
  20. package/src/panel/authorroutes.js +15 -5
  21. package/src/panel/authorsession.js +158 -47
  22. package/src/panel/index.html +179 -70
  23. package/src/panel/jobplan.js +107 -0
  24. package/src/panel/server.js +67 -13
  25. package/src/planrun.js +4 -4
  26. package/src/promptregisters.js +1 -1
  27. package/src/providers.js +101 -19
  28. package/src/reuse.js +1 -1
  29. package/src/root.js +1 -1
  30. package/src/run.js +3 -3
  31. package/src/selection.js +1 -1
  32. package/src/source.js +64 -1
  33. package/src/text.js +13 -0
  34. package/src/transport.js +1 -1
  35. package/src/userrun.js +3 -3
  36. package/types/authorflow.d.ts +258 -39
  37. package/types/authoring.d.ts +7 -1
  38. package/types/authorjob.d.ts +35 -3
  39. package/types/authorreadout.d.ts +17 -1
  40. package/types/authorscout.d.ts +5 -3
  41. package/types/declaredclose.d.ts +4 -1
  42. package/types/draftspend.d.ts +8 -2
  43. package/types/job.d.ts +1 -1
  44. package/types/jobblock.d.ts +102 -0
  45. package/types/panel/authorsession.d.ts +50 -14
  46. package/types/panel/jobplan.d.ts +58 -0
  47. package/types/panel/server.d.ts +20 -0
  48. package/types/planrun.d.ts +1 -1
  49. package/types/providers.d.ts +47 -3
  50. package/types/run.d.ts +1 -1
  51. package/types/source.d.ts +26 -0
package/types/source.d.ts CHANGED
@@ -304,6 +304,32 @@ export function frontDoorFromManifest(read: {
304
304
  * @returns {string}
305
305
  */
306
306
  export function nonRepoSourceMessage(kind: string): string;
307
+ /**
308
+ * P7 (docs/product/PANEL-BUILD.md, "Inputs"): prove the NUMBERED INPUTS at $0, before any token. Line 1 is the repo
309
+ * (an absolute path to an existing folder); lines 2+ are files or folders INSIDE that repo, repo-relative. A line
310
+ * that is not one of those is a named red naming its line number — never a throw, never a silent skip:
311
+ * - a `search:` line or a URL, and a path that leaves the repo: "only files inside the repo for now" (search and
312
+ * outside-the-repo inputs arrive with the plain-folder piece);
313
+ * - a path that does not exist, or that git does not track (a repo job would not see it);
314
+ * - the front door's own refusals for a file: an environment file by NAME, a symlink, a non-text file, an oversize
315
+ * file. A known secret shape in its content is NOT a refusal (masked where recorded, as the P6 worktree door does).
316
+ * A folder value is checked for existence and tracking only (its files are the repo's own, which the worktree door
317
+ * already masks). Reads the tree; writes nothing.
318
+ * @param {{n: number, label: string, value: string}[]} inputs the parsed Inputs (`parseInputs`)
319
+ * @returns {Promise<{ok: true, repo: string, root: string|null}|{ok: false, error: string}>} `repo` = line 1's absolute path; `root` = the git root it sits in (null when line 1 alone was given and it is not in a git repo)
320
+ */
321
+ export function proveInputFiles(inputs: {
322
+ n: number;
323
+ label: string;
324
+ value: string;
325
+ }[]): Promise<{
326
+ ok: true;
327
+ repo: string;
328
+ root: string | null;
329
+ } | {
330
+ ok: false;
331
+ error: string;
332
+ }>;
307
333
  /**
308
334
  * a named, non-throwing stop
309
335
  */