mossbear 0.1.0-alpha.88 → 0.1.0-alpha.90

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 (162) hide show
  1. package/README.md +1 -1
  2. package/dist/artifacts/classify.d.ts +1 -1
  3. package/dist/artifacts/classify.js +3 -3
  4. package/dist/artifacts/classify.js.map +1 -1
  5. package/dist/artifacts/promote-plan.d.ts +1 -1
  6. package/dist/artifacts/promote-plan.js +1 -1
  7. package/dist/artifacts/publish-ancestry.d.ts +89 -0
  8. package/dist/artifacts/publish-ancestry.d.ts.map +1 -0
  9. package/dist/artifacts/publish-ancestry.js +172 -0
  10. package/dist/artifacts/publish-ancestry.js.map +1 -0
  11. package/dist/artifacts/publish-plan.d.ts +56 -0
  12. package/dist/artifacts/publish-plan.d.ts.map +1 -1
  13. package/dist/artifacts/publish-plan.js +30 -1
  14. package/dist/artifacts/publish-plan.js.map +1 -1
  15. package/dist/artifacts/published-artifacts.js +3 -3
  16. package/dist/artifacts/published-artifacts.js.map +1 -1
  17. package/dist/artifacts/sidecar.d.ts +1 -1
  18. package/dist/artifacts/sidecar.js +2 -2
  19. package/dist/artifacts/sidecar.js.map +1 -1
  20. package/dist/artifacts/sync-artifacts.d.ts +4 -4
  21. package/dist/artifacts/sync-artifacts.js +5 -5
  22. package/dist/artifacts/sync-artifacts.js.map +1 -1
  23. package/dist/artifacts/sync-plan.js +3 -3
  24. package/dist/artifacts/sync-plan.js.map +1 -1
  25. package/dist/artifacts/withdrawal-history.d.ts +17 -8
  26. package/dist/artifacts/withdrawal-history.d.ts.map +1 -1
  27. package/dist/artifacts/withdrawal-history.js +30 -19
  28. package/dist/artifacts/withdrawal-history.js.map +1 -1
  29. package/dist/commands/artifacts/remote.d.ts.map +1 -1
  30. package/dist/commands/artifacts/remote.js +29 -12
  31. package/dist/commands/artifacts/remote.js.map +1 -1
  32. package/dist/commands/doctor.d.ts.map +1 -1
  33. package/dist/commands/doctor.js +53 -44
  34. package/dist/commands/doctor.js.map +1 -1
  35. package/dist/commands/guides/index.js +1 -1
  36. package/dist/commands/guides/index.js.map +1 -1
  37. package/dist/commands/init.d.ts.map +1 -1
  38. package/dist/commands/init.js +245 -158
  39. package/dist/commands/init.js.map +1 -1
  40. package/dist/commands/link.d.ts +2 -85
  41. package/dist/commands/link.d.ts.map +1 -1
  42. package/dist/commands/link.js +2 -45
  43. package/dist/commands/link.js.map +1 -1
  44. package/dist/commands/promote.d.ts.map +1 -1
  45. package/dist/commands/promote.js +5 -4
  46. package/dist/commands/promote.js.map +1 -1
  47. package/dist/commands/publish.d.ts +1 -0
  48. package/dist/commands/publish.d.ts.map +1 -1
  49. package/dist/commands/publish.js +49 -27
  50. package/dist/commands/publish.js.map +1 -1
  51. package/dist/commands/status.js +1 -1
  52. package/dist/commands/status.js.map +1 -1
  53. package/dist/commands/unlink.d.ts.map +1 -1
  54. package/dist/commands/unlink.js +1 -0
  55. package/dist/commands/unlink.js.map +1 -1
  56. package/dist/config.d.ts +18 -2
  57. package/dist/config.d.ts.map +1 -1
  58. package/dist/config.js +111 -4
  59. package/dist/config.js.map +1 -1
  60. package/dist/context/materialize.d.ts +1 -1
  61. package/dist/context/pull.d.ts +2 -2
  62. package/dist/context/pull.d.ts.map +1 -1
  63. package/dist/context/pull.js +1 -1
  64. package/dist/context/pull.js.map +1 -1
  65. package/dist/dashboard-health.d.ts +16 -0
  66. package/dist/dashboard-health.d.ts.map +1 -1
  67. package/dist/dashboard-health.js +32 -17
  68. package/dist/dashboard-health.js.map +1 -1
  69. package/dist/hooks-settings.d.ts +31 -0
  70. package/dist/hooks-settings.d.ts.map +1 -1
  71. package/dist/hooks-settings.js +71 -0
  72. package/dist/hooks-settings.js.map +1 -1
  73. package/dist/index.d.ts.map +1 -1
  74. package/dist/index.js +0 -5
  75. package/dist/index.js.map +1 -1
  76. package/dist/lifecycle/operations.d.ts.map +1 -1
  77. package/dist/lifecycle/operations.js +62 -10
  78. package/dist/lifecycle/operations.js.map +1 -1
  79. package/dist/lifecycle/publish-on-commit.d.ts +6 -0
  80. package/dist/lifecycle/publish-on-commit.d.ts.map +1 -1
  81. package/dist/lifecycle/publish-on-commit.js +18 -3
  82. package/dist/lifecycle/publish-on-commit.js.map +1 -1
  83. package/dist/mcp/client.d.ts +7 -7
  84. package/dist/mcp/client.d.ts.map +1 -1
  85. package/dist/mcp/client.js +13 -12
  86. package/dist/mcp/client.js.map +1 -1
  87. package/dist/mcp/import-tool.d.ts +2 -2
  88. package/dist/mcp/import-tool.d.ts.map +1 -1
  89. package/dist/mcp/import-tool.js +7 -4
  90. package/dist/mcp/import-tool.js.map +1 -1
  91. package/dist/mcp/item-url.d.ts +0 -2
  92. package/dist/mcp/item-url.d.ts.map +1 -1
  93. package/dist/mcp/item-url.js +1 -1
  94. package/dist/mcp/item-url.js.map +1 -1
  95. package/dist/mcp/malformed-response.d.ts +12 -0
  96. package/dist/mcp/malformed-response.d.ts.map +1 -0
  97. package/dist/mcp/malformed-response.js +57 -0
  98. package/dist/mcp/malformed-response.js.map +1 -0
  99. package/dist/mcp/server.d.ts.map +1 -1
  100. package/dist/mcp/server.js +13 -15
  101. package/dist/mcp/server.js.map +1 -1
  102. package/dist/mcp/write-scope.d.ts +1 -1
  103. package/dist/mcp/write-scope.js +1 -1
  104. package/dist/no-subscriptions.d.ts +19 -0
  105. package/dist/no-subscriptions.d.ts.map +1 -0
  106. package/dist/no-subscriptions.js +21 -0
  107. package/dist/no-subscriptions.js.map +1 -0
  108. package/dist/rules/global-flag.d.ts +1 -1
  109. package/dist/rules/global-flag.js +1 -1
  110. package/dist/rules/import-candidates.d.ts +1 -1
  111. package/dist/rules/import-candidates.js +1 -1
  112. package/dist/rules/import-paths.d.ts +1 -1
  113. package/dist/rules/import-paths.d.ts.map +1 -1
  114. package/dist/rules/import-paths.js +26 -1
  115. package/dist/rules/import-paths.js.map +1 -1
  116. package/dist/rules/init-import.d.ts +2 -2
  117. package/dist/rules/init-import.js +2 -2
  118. package/dist/rules/manifest.d.ts +2 -2
  119. package/dist/rules/manifest.d.ts.map +1 -1
  120. package/dist/rules/manifest.js +1 -1
  121. package/dist/rules/pull-bundle.d.ts.map +1 -1
  122. package/dist/rules/pull-bundle.js +3 -2
  123. package/dist/rules/pull-bundle.js.map +1 -1
  124. package/dist/search-client.js +3 -3
  125. package/dist/search-client.js.map +1 -1
  126. package/dist/skill-template.d.ts +1 -1
  127. package/dist/skill-template.d.ts.map +1 -1
  128. package/dist/skill-template.js +1 -1
  129. package/dist/sync-client.d.ts.map +1 -1
  130. package/dist/sync-client.js +2 -1
  131. package/dist/sync-client.js.map +1 -1
  132. package/dist/terminal.d.ts +33 -1
  133. package/dist/terminal.d.ts.map +1 -1
  134. package/dist/terminal.js +47 -1
  135. package/dist/terminal.js.map +1 -1
  136. package/dist/usage/dispatch-refusal.d.ts +1 -1
  137. package/dist/usage/dispatch-refusal.d.ts.map +1 -1
  138. package/dist/usage/dispatch-refusal.js +9 -7
  139. package/dist/usage/dispatch-refusal.js.map +1 -1
  140. package/dist/usage/dispatch.d.ts.map +1 -1
  141. package/dist/usage/dispatch.js +10 -1
  142. package/dist/usage/dispatch.js.map +1 -1
  143. package/dist/usage/lifecycle-dispatch.d.ts +14 -0
  144. package/dist/usage/lifecycle-dispatch.d.ts.map +1 -1
  145. package/dist/usage/lifecycle-dispatch.js +44 -5
  146. package/dist/usage/lifecycle-dispatch.js.map +1 -1
  147. package/dist/usage/snapshot-state.d.ts +119 -5
  148. package/dist/usage/snapshot-state.d.ts.map +1 -1
  149. package/dist/usage/snapshot-state.js +24 -3
  150. package/dist/usage/snapshot-state.js.map +1 -1
  151. package/dist/usage/snapshots.d.ts.map +1 -1
  152. package/dist/usage/snapshots.js +3 -0
  153. package/dist/usage/snapshots.js.map +1 -1
  154. package/dist/usage/source-provenance.d.ts +11 -4
  155. package/dist/usage/source-provenance.d.ts.map +1 -1
  156. package/dist/usage/source-provenance.js +82 -19
  157. package/dist/usage/source-provenance.js.map +1 -1
  158. package/dist/usage/source-selection.d.ts +24 -0
  159. package/dist/usage/source-selection.d.ts.map +1 -0
  160. package/dist/usage/source-selection.js +12 -0
  161. package/dist/usage/source-selection.js.map +1 -0
  162. package/package.json +5 -5
package/README.md CHANGED
@@ -59,7 +59,7 @@ mossbear doctor # verify hooks + config
59
59
 
60
60
  The PostToolUse hook is written as the bare command `mossbear-hook`, a second binary this package installs alongside `mossbear`. It is a separate bin rather than an `mossbear hook` subcommand for two reasons: it runs once per tool call, where booting the full command tree would cost roughly 50ms every time; and a bare command resolved through `PATH` carries nothing machine-specific, so `.claude/settings.json` is identical on every machine and can be committed without churning.
61
61
 
62
- To send your sessions to the dashboard, connect once with a CLI token (dashboard → Settings → Developer → CLI Token):
62
+ To send your sessions to the dashboard, connect once with a CLI token (dashboard → Settings → CLI tokens):
63
63
 
64
64
  ```bash
65
65
  mossbear refresh --token <token> # remembered after the first successful run
@@ -20,7 +20,7 @@
20
20
  * blocked the doc from ever updating again.
21
21
  *
22
22
  * The server saves a `contentHash` on every version of a doc
23
- * (`ContextItemVersionSchema`, and `computeContentHash` is a plain
23
+ * (`ArtifactVersionSchema`, and `computeContentHash` is a plain
24
24
  * `sha256(content, 'utf8')` hex digest — the same function `hashContent` is).
25
25
  * So both cases are answerable directly: hash the local bytes and look for that
26
26
  * hash in the doc's history.
@@ -20,7 +20,7 @@
20
20
  * blocked the doc from ever updating again.
21
21
  *
22
22
  * The server saves a `contentHash` on every version of a doc
23
- * (`ContextItemVersionSchema`, and `computeContentHash` is a plain
23
+ * (`ArtifactVersionSchema`, and `computeContentHash` is a plain
24
24
  * `sha256(content, 'utf8')` hex digest — the same function `hashContent` is).
25
25
  * So both cases are answerable directly: hash the local bytes and look for that
26
26
  * hash in the doc's history.
@@ -95,9 +95,9 @@ export async function classifyLocalFile(client, bundleId, item, localBytes) {
95
95
  while (seen < MAX_VERSION_LOOKBACK) {
96
96
  let page;
97
97
  try {
98
- page = await client.listItemVersions({
98
+ page = await client.listArtifactVersions({
99
99
  bundleId,
100
- itemId: item.id,
100
+ artifactId: item.id,
101
101
  limit: VERSION_PAGE_SIZE,
102
102
  ...(before === undefined ? {} : { before }),
103
103
  });
@@ -1 +1 @@
1
- {"version":3,"file":"classify.js","sourceRoot":"","sources":["../../src/artifacts/classify.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAK1C;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CAAA;AAEvC,qEAAqE;AACrE,MAAM,iBAAiB,GAAG,EAAE,CAAA;AAmB5B;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,uBAAuB,CAAC,UAAkB;IACxD,OAAO,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAA;AACzF,CAAC;AAED,mFAAmF;AACnF,MAAM,UAAU,iBAAiB,CAAC,UAAkB,EAAE,WAAmB;IACvE,OAAO,uBAAuB,CAAC,UAAU,CAAC,CAAC,IAAI,CAC7C,CAAC,SAAS,EAAE,EAAE,CAAC,WAAW,CAAC,SAAS,CAAC,KAAK,WAAW,CACtD,CAAA;AACH,CAAC;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,MAAqB,EACrB,QAAgB,EAChB,IAAiB,EACjB,UAAkB;IAElB,IAAI,IAAI,CAAC,OAAO,KAAK,IAAI,IAAI,iBAAiB,CAAC,UAAU,EAAE,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;QACtF,OAAO,EAAE,KAAK,EAAE,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C,EAAE,CAAC;gBACvD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,CAAA;YACrD,CAAC;QACH,CAAC;QAED,4EAA4E;QAC5E,0DAA0D;QAC1D,IAAI,IAAI,IAAI,oBAAoB;YAAE,MAAK;QACvC,IAAI,IAAI,CAAC,UAAU,KAAK,IAAI;YAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAA;QACxD,MAAM,GAAG,IAAI,CAAC,UAAU,CAAA;IAC1B,CAAC;IAED,OAAO;QACL,KAAK,EAAE,SAAS;QAChB,KAAK,EAAE,oBAAoB;QAC3B,MAAM,EAAE,0BAA0B,oBAAoB,WAAW;KAClE,CAAA;AACH,CAAC;AAED,6EAA6E;AAC7E,MAAM,UAAU,WAAW,CAAC,cAAmC;IAC7D,OAAO,cAAc,CAAC,KAAK,KAAK,QAAQ,IAAI,cAAc,CAAC,KAAK,KAAK,SAAS,CAAA;AAChF,CAAC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,UAAU,CACxB,cAAmC;IAEnC,OAAO,CACL,cAAc,CAAC,KAAK,KAAK,SAAS,IAAI,cAAc,CAAC,KAAK,KAAK,oBAAoB,CACpF,CAAA;AACH,CAAC"}
@@ -98,7 +98,7 @@ export declare function promoteSideWrites(attended: ArtifactsSyncResult, candida
98
98
  * Bundles this pass could not read, one sentence each.
99
99
  *
100
100
  * `resolveSubscriptions` failing is already refused by name in the command; a
101
- * `pullContext` failing one call later was not, and it produces the same state
101
+ * `pullBundle` failing one call later was not, and it produces the same state
102
102
  * — an empty candidate set — which the command then reported as "nothing to
103
103
  * promote". That is the one sentence it must not say when it does not know.
104
104
  * Raised by the automated reviewer on PR #1274.
@@ -120,7 +120,7 @@ export function promoteSideWrites(attended, candidates) {
120
120
  * Bundles this pass could not read, one sentence each.
121
121
  *
122
122
  * `resolveSubscriptions` failing is already refused by name in the command; a
123
- * `pullContext` failing one call later was not, and it produces the same state
123
+ * `pullBundle` failing one call later was not, and it produces the same state
124
124
  * — an empty candidate set — which the command then reported as "nothing to
125
125
  * promote". That is the one sentence it must not say when it does not know.
126
126
  * Raised by the automated reviewer on PR #1274.
@@ -0,0 +1,89 @@
1
+ /**
2
+ * Whether the dashboard's copy of an artifact was published from a commit that
3
+ * this checkout may publish over — the check that makes publication
4
+ * never-regress.
5
+ *
6
+ * Every published copy records the commit it came from (`gitSource.commitSha`).
7
+ * A run whose HEAD is behind that commit would otherwise send its older bytes
8
+ * over the newer copy, because the update's version precondition is read fresh
9
+ * by the same run and so matches. Git is the only thing that can say how the two
10
+ * commits relate, so it is asked here, and the answer decides one of four ways:
11
+ *
12
+ * - the recorded commit is HEAD or an ancestor of it → publish, as before;
13
+ * - HEAD is an ancestor of the recorded commit → skip: the dashboard is ahead;
14
+ * - neither → skip: the histories split, and guessing which side wins is the
15
+ * failure this exists to prevent;
16
+ * - the clone does not hold the recorded commit → skip, and say how to get it.
17
+ * A shallow clone cannot answer `merge-base` at all, so it is named apart.
18
+ *
19
+ * **The probe is injected**, the same way `committed.ts` and `local-commits.ts`
20
+ * inject theirs, so every outcome above is a unit test over a fake answer. The
21
+ * one end-to-end case that needs a real history lives with the on-commit tests.
22
+ *
23
+ * **Gated per item, and only for items that would be written or tombstoned.**
24
+ * An unchanged entry sends nothing, so it has nothing to regress, and a create
25
+ * has no recorded commit at all. Git is therefore asked about the handful of
26
+ * artifacts a run is actually about to touch, once per distinct commit.
27
+ */
28
+ import type { PublishedArtifact, PublishPlan } from './publish-plan.js';
29
+ /**
30
+ * How the recorded commit relates to HEAD, as git answers it.
31
+ *
32
+ * `unreachable` is a single answer for "the clone cannot compare them": the
33
+ * commit is absent, or `merge-base` could not answer. Both lead to the same
34
+ * skip, and the only difference the person needs is whether the clone is
35
+ * shallow, which the probe reads once so the message can name the right fix.
36
+ */
37
+ export type PublishAncestry = {
38
+ kind: 'current';
39
+ } | {
40
+ kind: 'dashboard-ahead';
41
+ sha: string;
42
+ }
43
+ /** Neither commit is an ancestor of the other. `sha` is the copy's commit, for the remedy. */
44
+ | {
45
+ kind: 'diverged';
46
+ sha: string;
47
+ } | {
48
+ kind: 'unreachable';
49
+ shallow: boolean;
50
+ };
51
+ /** The shape `spawnSync`-backed git calls return, with a null status on failure. */
52
+ export type SpawnAncestryGitFn = (args: readonly string[], cwd: string) => {
53
+ status: number | null;
54
+ stdout: string;
55
+ };
56
+ /**
57
+ * Compare a recorded commit with HEAD, asking git at most three questions and
58
+ * only as many as the answer needs.
59
+ *
60
+ * Exit status is the answer for `merge-base --is-ancestor`: `0` is yes, `1` is
61
+ * no, anything else is git failing to answer — which is the `unreachable` arm,
62
+ * not `diverged`.
63
+ *
64
+ * **A "no" is believed only in a full clone.** A shallow clone cuts the parent
65
+ * chain, so a real ancestor can read as "no" there. When both questions say no
66
+ * and the clone is shallow, the answer is `unreachable`, which names the
67
+ * deepening fix, not `diverged`, which would tell the person to integrate a
68
+ * history that may already agree.
69
+ */
70
+ export declare function checkPublishAncestry(root: string, recordedSha: string, headSha: string, spawnGit?: SpawnAncestryGitFn): PublishAncestry;
71
+ /**
72
+ * Memoized per run: one probe per distinct recorded commit, so ten artifacts
73
+ * published from one older commit cost one answer, not ten.
74
+ */
75
+ export declare function createAncestryCheck(root: string, headSha: string, spawnGit?: SpawnAncestryGitFn): (recordedSha: string) => PublishAncestry;
76
+ /**
77
+ * Drop every write and tombstone the dashboard's copy outranks, and say why.
78
+ *
79
+ * Returns a new plan rather than editing one, so the caller's preview and its
80
+ * send read the same value — the rule `publish-plan.ts` states for the plan as
81
+ * a whole. The gated plan's `skips` carries one entry per dropped path, in the
82
+ * order the plan had them.
83
+ *
84
+ * `existing` is needed for one thing: mapping an item id back to the commit it
85
+ * recorded. The plan carries item ids, not the recorded commit, and the planner
86
+ * is kept free of git.
87
+ */
88
+ export declare function gatePlanByAncestry(plan: PublishPlan, existing: readonly PublishedArtifact[], ancestryOf: (recordedSha: string) => PublishAncestry): PublishPlan;
89
+ //# sourceMappingURL=publish-ancestry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"publish-ancestry.d.ts","sourceRoot":"","sources":["../../src/artifacts/publish-ancestry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAIH,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAe,MAAM,mBAAmB,CAAA;AAEpF;;;;;;;GAOG;AACH,MAAM,MAAM,eAAe,GACvB;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,GACnB;IAAE,IAAI,EAAE,iBAAiB,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE;AAC1C,8FAA8F;GAC5F;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GACjC;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAA;AAE7C,oFAAoF;AACpF,MAAM,MAAM,kBAAkB,GAAG,CAC/B,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,GAAG,EAAE,MAAM,KACR;IAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAA;AAiB9C;;;;;;;;;;;;;GAaG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EACf,QAAQ,GAAE,kBAAoC,GAC7C,eAAe,CA8BjB;AAiBD;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,QAAQ,GAAE,kBAAoC,GAC7C,CAAC,WAAW,EAAE,MAAM,KAAK,eAAe,CAU1C;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,WAAW,EACjB,QAAQ,EAAE,SAAS,iBAAiB,EAAE,EACtC,UAAU,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,eAAe,GACnD,WAAW,CAiDb"}
@@ -0,0 +1,172 @@
1
+ /**
2
+ * Whether the dashboard's copy of an artifact was published from a commit that
3
+ * this checkout may publish over — the check that makes publication
4
+ * never-regress.
5
+ *
6
+ * Every published copy records the commit it came from (`gitSource.commitSha`).
7
+ * A run whose HEAD is behind that commit would otherwise send its older bytes
8
+ * over the newer copy, because the update's version precondition is read fresh
9
+ * by the same run and so matches. Git is the only thing that can say how the two
10
+ * commits relate, so it is asked here, and the answer decides one of four ways:
11
+ *
12
+ * - the recorded commit is HEAD or an ancestor of it → publish, as before;
13
+ * - HEAD is an ancestor of the recorded commit → skip: the dashboard is ahead;
14
+ * - neither → skip: the histories split, and guessing which side wins is the
15
+ * failure this exists to prevent;
16
+ * - the clone does not hold the recorded commit → skip, and say how to get it.
17
+ * A shallow clone cannot answer `merge-base` at all, so it is named apart.
18
+ *
19
+ * **The probe is injected**, the same way `committed.ts` and `local-commits.ts`
20
+ * inject theirs, so every outcome above is a unit test over a fake answer. The
21
+ * one end-to-end case that needs a real history lives with the on-commit tests.
22
+ *
23
+ * **Gated per item, and only for items that would be written or tombstoned.**
24
+ * An unchanged entry sends nothing, so it has nothing to regress, and a create
25
+ * has no recorded commit at all. Git is therefore asked about the handful of
26
+ * artifacts a run is actually about to touch, once per distinct commit.
27
+ */
28
+ import { spawnSync } from 'node:child_process';
29
+ /** A commit id as the dashboard stores it: lowercase hex, never a ref or an option. */
30
+ const COMMIT_ID = /^[0-9a-f]{4,64}$/;
31
+ const GIT_TIMEOUT_MS = 10_000;
32
+ function defaultSpawnGit(args, cwd) {
33
+ const result = spawnSync('git', [...args], {
34
+ cwd,
35
+ encoding: 'utf8',
36
+ timeout: GIT_TIMEOUT_MS,
37
+ maxBuffer: 1024 * 1024,
38
+ });
39
+ return { status: result.status, stdout: result.stdout ?? '' };
40
+ }
41
+ /**
42
+ * Compare a recorded commit with HEAD, asking git at most three questions and
43
+ * only as many as the answer needs.
44
+ *
45
+ * Exit status is the answer for `merge-base --is-ancestor`: `0` is yes, `1` is
46
+ * no, anything else is git failing to answer — which is the `unreachable` arm,
47
+ * not `diverged`.
48
+ *
49
+ * **A "no" is believed only in a full clone.** A shallow clone cuts the parent
50
+ * chain, so a real ancestor can read as "no" there. When both questions say no
51
+ * and the clone is shallow, the answer is `unreachable`, which names the
52
+ * deepening fix, not `diverged`, which would tell the person to integrate a
53
+ * history that may already agree.
54
+ */
55
+ export function checkPublishAncestry(root, recordedSha, headSha, spawnGit = defaultSpawnGit) {
56
+ if (recordedSha === headSha)
57
+ return { kind: 'current' };
58
+ if (!COMMIT_ID.test(recordedSha) || !COMMIT_ID.test(headSha)) {
59
+ return unreachable(root, spawnGit);
60
+ }
61
+ // Presence first: a commit this clone does not hold cannot be compared, and
62
+ // `merge-base` against it would fail with a message that says nothing about
63
+ // fetching.
64
+ const present = spawnGit(['cat-file', '-e', `${recordedSha}^{commit}`], root);
65
+ if (present.status !== 0)
66
+ return unreachable(root, spawnGit);
67
+ const recordedIsBehind = spawnGit(['merge-base', '--is-ancestor', recordedSha, headSha], root);
68
+ if (recordedIsBehind.status === 0)
69
+ return { kind: 'current' };
70
+ if (recordedIsBehind.status !== 1)
71
+ return unreachable(root, spawnGit);
72
+ const headIsBehind = spawnGit(['merge-base', '--is-ancestor', headSha, recordedSha], root);
73
+ // A "yes" is reliable even in a shallow clone: it found the path.
74
+ if (headIsBehind.status === 0)
75
+ return { kind: 'dashboard-ahead', sha: recordedSha };
76
+ if (headIsBehind.status !== 1)
77
+ return unreachable(root, spawnGit);
78
+ return isShallow(root, spawnGit)
79
+ ? { kind: 'unreachable', shallow: true }
80
+ : { kind: 'diverged', sha: recordedSha };
81
+ }
82
+ function unreachable(root, spawnGit) {
83
+ return { kind: 'unreachable', shallow: isShallow(root, spawnGit) };
84
+ }
85
+ /**
86
+ * Whether this clone's history is cut short. Read only where the answer
87
+ * changes what is said, and a failure to read it counts as not shallow: the
88
+ * fix that selects is the plain fetch, the safe thing to name when the depth
89
+ * cannot be confirmed.
90
+ */
91
+ function isShallow(root, spawnGit) {
92
+ const result = spawnGit(['rev-parse', '--is-shallow-repository'], root);
93
+ return result.status === 0 && result.stdout.trim() === 'true';
94
+ }
95
+ /**
96
+ * Memoized per run: one probe per distinct recorded commit, so ten artifacts
97
+ * published from one older commit cost one answer, not ten.
98
+ */
99
+ export function createAncestryCheck(root, headSha, spawnGit = defaultSpawnGit) {
100
+ const answers = new Map();
101
+ return (recordedSha) => {
102
+ let answer = answers.get(recordedSha);
103
+ if (answer === undefined) {
104
+ answer = checkPublishAncestry(root, recordedSha, headSha, spawnGit);
105
+ answers.set(recordedSha, answer);
106
+ }
107
+ return answer;
108
+ };
109
+ }
110
+ /**
111
+ * Drop every write and tombstone the dashboard's copy outranks, and say why.
112
+ *
113
+ * Returns a new plan rather than editing one, so the caller's preview and its
114
+ * send read the same value — the rule `publish-plan.ts` states for the plan as
115
+ * a whole. The gated plan's `skips` carries one entry per dropped path, in the
116
+ * order the plan had them.
117
+ *
118
+ * `existing` is needed for one thing: mapping an item id back to the commit it
119
+ * recorded. The plan carries item ids, not the recorded commit, and the planner
120
+ * is kept free of git.
121
+ */
122
+ export function gatePlanByAncestry(plan, existing, ancestryOf) {
123
+ const recordedByItem = new Map(existing.map((item) => [item.itemId, item.gitSourceCommitSha]));
124
+ const skips = [...plan.skips];
125
+ // The verdict for one artifact, or `undefined` to let it through. An item the
126
+ // bundle does not record a commit for is let through too: the planner has
127
+ // already matched it to this repo's own copy, and nothing here is evidence
128
+ // against it.
129
+ const verdict = (itemId, path) => {
130
+ if (itemId === undefined)
131
+ return undefined;
132
+ const recordedSha = recordedByItem.get(itemId);
133
+ if (recordedSha === undefined)
134
+ return undefined;
135
+ const answer = ancestryOf(recordedSha);
136
+ if (answer.kind === 'current')
137
+ return undefined;
138
+ if (answer.kind === 'dashboard-ahead') {
139
+ return { kind: 'dashboard-ahead', path, sha: answer.sha };
140
+ }
141
+ if (answer.kind === 'diverged')
142
+ return { kind: 'diverged', path, sha: answer.sha };
143
+ return { kind: 'unreachable', path, shallow: answer.shallow };
144
+ };
145
+ const entries = plan.entries.filter((entry) => {
146
+ // Nothing is sent for an unchanged entry, so there is nothing to protect.
147
+ if (entry.unchanged)
148
+ return true;
149
+ const skip = verdict(entry.itemId, entry.path);
150
+ if (skip === undefined)
151
+ return true;
152
+ skips.push(skip);
153
+ return false;
154
+ });
155
+ // A withdrawal and a removal are gated alike: both tombstone a copy the
156
+ // dashboard may hold from a commit that still has the file.
157
+ const gateTombstones = (removals) => removals.filter((removal) => {
158
+ const skip = verdict(removal.itemId, removal.path);
159
+ if (skip === undefined)
160
+ return true;
161
+ skips.push(skip);
162
+ return false;
163
+ });
164
+ return {
165
+ ...plan,
166
+ entries,
167
+ removals: gateTombstones(plan.removals),
168
+ withdrawals: gateTombstones(plan.withdrawals),
169
+ skips,
170
+ };
171
+ }
172
+ //# sourceMappingURL=publish-ancestry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"publish-ancestry.js","sourceRoot":"","sources":["../../src/artifacts/publish-ancestry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAyB9C,uFAAuF;AACvF,MAAM,SAAS,GAAG,kBAAkB,CAAA;AAEpC,MAAM,cAAc,GAAG,MAAM,CAAA;AAE7B,SAAS,eAAe,CAAC,IAAuB,EAAE,GAAW;IAC3D,MAAM,MAAM,GAAG,SAAS,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC,EAAE;QACzC,GAAG;QACH,QAAQ,EAAE,MAAM;QAChB,OAAO,EAAE,cAAc;QACvB,SAAS,EAAE,IAAI,GAAG,IAAI;KACvB,CAAC,CAAA;IACF,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,IAAI,EAAE,EAA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E;QAC1E,IAAI,KAAK,CAAC,SAAS;YAAE,OAAO,IAAI,CAAA;QAChC,MAAM,IAAI,GAAG,OAAO,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,CAAA;QAC9C,IAAI,IAAI,KAAK,SAAS;YAAE,OAAO,IAAI,CAAA;QACnC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAChB,OAAO,KAAK,CAAA;IACd,CAAC,CAAC,CAAA;IAEF,wEAAwE;IACxE,4DAA4D;IAC5D,MAAM,cAAc,GAAG,CAAC,QAAiC,EAAE,EAAE,CAC3D,QAAQ,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE;QAC1B,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA;QAClD,IAAI,IAAI,KAAK,SAAS;YAAE,OAAO,IAAI,CAAA;QACnC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAChB,OAAO,KAAK,CAAA;IACd,CAAC,CAAC,CAAA;IAEJ,OAAO;QACL,GAAG,IAAI;QACP,OAAO;QACP,QAAQ,EAAE,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC;QACvC,WAAW,EAAE,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC;QAC7C,KAAK;KACN,CAAA;AACH,CAAC"}
@@ -108,6 +108,42 @@ export type PublishRemoval = {
108
108
  */
109
109
  expectedVersion?: number;
110
110
  };
111
+ /**
112
+ * A write or tombstone the caller dropped because git says the dashboard's copy
113
+ * is newer, or cannot say how the two relate (see `publish-ancestry.ts`).
114
+ *
115
+ * **Not a refusal.** A refusal is a path the planner could not publish from the
116
+ * repo as it stands; a skip is a path the planner could publish, and the
117
+ * dashboard holds a copy this checkout must not overwrite. Kept apart so the
118
+ * remedy each one prints can be different — a refusal says commit, a skip says
119
+ * pull.
120
+ */
121
+ export type PublishSkip =
122
+ /** The dashboard's copy was published from a commit that descends from HEAD. */
123
+ {
124
+ kind: 'dashboard-ahead';
125
+ path: string;
126
+ sha: string;
127
+ }
128
+ /**
129
+ * The dashboard's copy and HEAD are on branches that split. Pulling does not
130
+ * settle it — HEAD has to come to include `sha`, by switching or merging.
131
+ */
132
+ | {
133
+ kind: 'diverged';
134
+ path: string;
135
+ sha: string;
136
+ }
137
+ /**
138
+ * The two cannot be compared in this clone: the copy's commit is not in it,
139
+ * or it is shallow and the history needed to answer is cut off. `shallow` is
140
+ * what the remedy depends on.
141
+ */
142
+ | {
143
+ kind: 'unreachable';
144
+ path: string;
145
+ shallow: boolean;
146
+ };
111
147
  export type PublishPlan = {
112
148
  entries: PublishEntry[];
113
149
  /**
@@ -133,6 +169,13 @@ export type PublishPlan = {
133
169
  */
134
170
  emptied: boolean;
135
171
  refusals: PublishRefusal[];
172
+ /**
173
+ * Writes and tombstones dropped because the dashboard already holds a copy
174
+ * from a commit this checkout cannot publish over. Filled by the caller's
175
+ * ancestry gate (`gatePlanByAncestry`); the planner itself always leaves it
176
+ * empty, since it has no git in hand.
177
+ */
178
+ skips: PublishSkip[];
136
179
  /**
137
180
  * Paths added to the declared set by this run — the `publish <path>` form.
138
181
  * Empty for the zero-argument form, which declares nothing new.
@@ -262,6 +305,19 @@ export declare function renderPublishPreview(plan: PublishPlan, revision: {
262
305
  sha: string;
263
306
  branch: string | null;
264
307
  }, bundle: string): string[];
308
+ /**
309
+ * Skips, one entry per path, each saying what would let it publish.
310
+ *
311
+ * The three remedies differ, so each entry carries its own: a newer copy on the
312
+ * dashboard is settled by moving HEAD onto a commit that includes it, a split
313
+ * history by integrating the copy's commit, and a commit this clone lacks by
314
+ * fetching it. Shared by the typed preview and the on-commit report so the two
315
+ * cannot word the same skip differently. Wrapped to the terminal, with
316
+ * continuation lines hanging under the path, per `cli-output.md`.
317
+ *
318
+ * Pure, so the wording is testable without a terminal.
319
+ */
320
+ export declare function renderPublishSkips(skips: readonly PublishSkip[], width?: number): string[];
265
321
  /**
266
322
  * Refusals, grouped by cause so each group can carry the one remedy that
267
323
  * applies to it.
@@ -1 +1 @@
1
- {"version":3,"file":"publish-plan.d.ts","sourceRoot":"","sources":["../../src/artifacts/publish-plan.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAmB,yBAAyB,EAAE,MAAM,sBAAsB,CAAA;AAEjF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEpD;;;GAGG;AACH,MAAM,MAAM,cAAc;AACxB;;;;GAIG;AACD;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE;AACtC;;;;;;;;;;GAUG;GACD;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE;AACvC,8DAA8D;GAC5D;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE;AACpC;;;GAGG;GACD;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE;AACrC,kFAAkF;GAChF;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAA;AAEvC,qEAAqE;AACrE,MAAM,MAAM,YAAY,GAAG;IACzB,8EAA8E;IAC9E,IAAI,EAAE,MAAM,CAAA;IACZ,qDAAqD;IACrD,OAAO,EAAE,MAAM,CAAA;IACf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,8EAA8E;IAC9E,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,8EAA8E;IAC9E,IAAI,EAAE,MAAM,CAAA;IACZ,6EAA6E;IAC7E,MAAM,EAAE,MAAM,CAAA;IACd;;;;OAIG;IACH,eAAe,CA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AAO,CAAA;CACpD,CAAA;AAED;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,GAAG,WAAW,CAmLhE;AAMD;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,WAAW,EACjB,QAAQ,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,EAChD,MAAM,EAAE,MAAM,GACb,MAAM,EAAE,CAyDV;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,SAAS,WAAW,EAAE,EAC7B,KAAK,GAAE,MAAwB,GAC9B,MAAM,EAAE,CAIV;AAaD;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,SAAS,cAAc,EAAE,GAAG,MAAM,EAAE,CAwDnF;AAED;;;;;GAKG;AACH,OAAO,EAAE,yBAAyB,EAAE,CAAA"}
@@ -18,6 +18,7 @@
18
18
  * obvious way out of it would be to commit everything in sight. Refusals are
19
19
  * reported per path, and the run publishes what it can.
20
20
  */
21
+ import { terminalWidth, wrapHanging } from '../terminal.js';
21
22
  import { isPublishedPath, matchingPublishedPatterns } from './published-paths.js';
22
23
  /**
23
24
  * The plan.
@@ -202,6 +203,7 @@ export function planPublish(input) {
202
203
  withdrawals,
203
204
  emptied: declaredAfterAdditions.length === 0,
204
205
  refusals,
206
+ skips: [],
205
207
  // **Covered, not listed.** A path the declared set already *matches* needs
206
208
  // no new entry: `publish skills/review.md` in a repo declaring `skills/**`
207
209
  // is asking for something already true. Comparing literally instead would
@@ -235,7 +237,8 @@ export function renderPublishPreview(plan, revision, bundle) {
235
237
  }
236
238
  else if (plan.removals.length === 0 &&
237
239
  plan.withdrawals.length === 0 &&
238
- plan.refusals.length === 0) {
240
+ plan.refusals.length === 0 &&
241
+ plan.skips.length === 0) {
239
242
  // Only when there is genuinely nothing to do. A run that withdraws three
240
243
  // artifacts and writes none has plenty to say, and "nothing to publish"
241
244
  // over it would be the opposite of true.
@@ -266,9 +269,35 @@ export function renderPublishPreview(plan, revision, bundle) {
266
269
  // declared set, and printing forty such paths would hide the two that changed.
267
270
  if (unchanged > 0)
268
271
  lines.push(` (${unchanged} already current)`);
272
+ lines.push(...renderPublishSkips(plan.skips));
269
273
  lines.push(...renderPublishRefusals(plan.refusals));
270
274
  return lines;
271
275
  }
276
+ /**
277
+ * Skips, one entry per path, each saying what would let it publish.
278
+ *
279
+ * The three remedies differ, so each entry carries its own: a newer copy on the
280
+ * dashboard is settled by moving HEAD onto a commit that includes it, a split
281
+ * history by integrating the copy's commit, and a commit this clone lacks by
282
+ * fetching it. Shared by the typed preview and the on-commit report so the two
283
+ * cannot word the same skip differently. Wrapped to the terminal, with
284
+ * continuation lines hanging under the path, per `cli-output.md`.
285
+ *
286
+ * Pure, so the wording is testable without a terminal.
287
+ */
288
+ export function renderPublishSkips(skips, width = terminalWidth()) {
289
+ return skips.flatMap((skip) => wrapHanging(skipSentence(skip), ' skipped ', undefined, width).split('\n'));
290
+ }
291
+ function skipSentence(skip) {
292
+ if (skip.kind === 'dashboard-ahead') {
293
+ return `${skip.path}: the dashboard already has a newer commit (${skip.sha.slice(0, 7)}) — pull, or switch to a branch that includes it, then run \`mossbear publish\``;
294
+ }
295
+ if (skip.kind === 'diverged') {
296
+ return `${skip.path}: the dashboard's copy was published from ${skip.sha.slice(0, 7)}, which has diverged from HEAD — switch to a commit that includes it or merge it in, then run \`mossbear publish\``;
297
+ }
298
+ const remedy = skip.shallow ? '`git fetch --unshallow`' : '`git fetch`';
299
+ return `${skip.path}: the commit the dashboard's copy was published from cannot be compared with HEAD in this clone — run ${remedy}, then \`mossbear publish\``;
300
+ }
272
301
  /**
273
302
  * Refusals, grouped by cause so each group can carry the one remedy that
274
303
  * applies to it.
@@ -1 +1 @@
1
- {"version":3,"file":"publish-plan.js","sourceRoot":"","sources":["../../src/artifacts/publish-plan.ts"],"names":[],"mappings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MAAM,UAAU,GAAG,EAAE,CAAC,YAAY,CAAC,CAAA;IACnC,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC1B,KAAK,CAAC,IAAI,CACR,KAAK,UAAU,CAAC,MAAM,+EAA+E,CACtG,CAAA;QACD,KAAK,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,CAAA;IACxD,CAAC;IAED,MAAM,SAAS,GAAG,EAAE,CAAC,WAAW,CAAC,CAAA;IACjC,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACzB,KAAK,CAAC,IAAI,CACR,kJAAkJ,CACnJ,CAAA;QACD,KAAK,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,CAAA;IACvD,CAAC;IAED,MAAM,QAAQ,GAAG,EAAE,CAAC,WAAW,CAAC,CAAA;IAChC,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACxB,4EAA4E;QAC5E,+DAA+D;QAC/D,KAAK,CAAC,IAAI,CACR,KAAK,QAAQ,CAAC,MAAM,6DAA6D,CAClF,CAAA;QACD,KAAK,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,CAAA;IACtD,CAAC;IAED,OAAO,KAAK,CAAA;AACd,CAAC;AAED;;;;;GAKG;AACH,OAAO,EAAE,yBAAyB,EAAE,CAAA"}
@@ -24,12 +24,12 @@
24
24
  */
25
25
  import { MAX_BUNDLE_PULL } from './bundle-pull-limit.js';
26
26
  export async function readPublishedArtifacts(client, bundleId) {
27
- const pulled = await client.pullContext({ bundleId, limit: MAX_BUNDLE_PULL });
28
- if (pulled.items.length >= MAX_BUNDLE_PULL)
27
+ const pulled = await client.pullBundle({ bundleId, limit: MAX_BUNDLE_PULL });
28
+ if (pulled.artifacts.length >= MAX_BUNDLE_PULL)
29
29
  return { kind: 'at-ceiling' };
30
30
  return {
31
31
  kind: 'read',
32
- existing: pulled.items.flatMap((item) => item.path
32
+ existing: pulled.artifacts.flatMap((item) => item.path
33
33
  ? [
34
34
  {
35
35
  itemId: item.id,
@@ -1 +1 @@
1
- {"version":3,"file":"published-artifacts.js","sourceRoot":"","sources":["../../src/artifacts/published-artifacts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAUxD,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAC1C,MAAqB,EACrB,QAAgB;IAEhB,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,eAAe,EAAE,CAAC,CAAA;IAC7E,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,IAAI,eAAe;QAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,CAAA;IACzE,OAAO;QACL,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CACtC,IAAI,CAAC,IAAI;YACP,CAAC,CAAC;gBACE;oBACE,MAAM,EAAE,IAAI,CAAC,EAAE;oBACf,IAAI,EAAE,IAAI,CAAC,IAAI;oBACf,OAAO,EAAE,IAAI,CAAC,OAAO,IAAI,IAAI;oBAC7B,OAAO,EAAE,IAAI,CAAC,OAAO;oBACrB,iEAAiE;oBACjE,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;oBAC1C,2DAA2D;oBAC3D,8DAA8D;oBAC9D,GAAG,CAAC,IAAI,C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,CAAC,CAAC,EAAE,CAAC;oBAC1C,2DAA2D;oBAC3D,8DAA8D;oBAC9D,GAAG,CAAC,IAAI,CAAC,SAAS;wBAChB,CAAC,CAAC;4BACE,kBAAkB,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS;4BAC5C,kBAAkB,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS;yBAC7C;wBACH,CAAC,CAAC,EAAE,CAAC;iBACR;aACF;YACH,CAAC,CAAC,EAAE,CACP;KACF,CAAA;AACH,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,mBAAmB,CAAC,IAAY;IAC9C,OAAO,IAAI,IAAI,gBAAgB,eAAe,oMAAoM,CAAA;AACpP,CAAC"}
@@ -385,7 +385,7 @@ export declare function ensureSidecarIgnored(root: string, deps?: SidecarDeps):
385
385
  * The repo-relative paths the committed placement file claims — the "is this file
386
386
  * dashboard-owned?" question, and nothing else.
387
387
  *
388
- * `mossbear import` and `mossbear init` ask only this, to keep a bundle-managed
388
+ * `mossbear link` and `mossbear init` ask only this, to keep a bundle-managed
389
389
  * file from being re-imported as a second guide. Routing them through
390
390
  * `readSidecar` would make them read the machine cache to answer a question that
391
391
  * is purely about the committed record, which is both wasted work and a reader on
@@ -1131,7 +1131,7 @@ async function ensurePlacementUnionMerged(root, deps = {}) {
1131
1131
  * The repo-relative paths the committed placement file claims — the "is this file
1132
1132
  * dashboard-owned?" question, and nothing else.
1133
1133
  *
1134
- * `mossbear import` and `mossbear init` ask only this, to keep a bundle-managed
1134
+ * `mossbear link` and `mossbear init` ask only this, to keep a bundle-managed
1135
1135
  * file from being re-imported as a second guide. Routing them through
1136
1136
  * `readSidecar` would make them read the machine cache to answer a question that
1137
1137
  * is purely about the committed record, which is both wasted work and a reader on
@@ -1153,7 +1153,7 @@ export async function readPlacement(root, deps = {}) {
1153
1153
  if (raw === null) {
1154
1154
  // A repo whose last sync predates the placement file keeps its mappings in
1155
1155
  // the legacy record; without this fallback every one of them would be
1156
- // re-imported as a new guide on the next `mossbear import`.
1156
+ // re-imported as a new guide on the next `mossbear link`.
1157
1157
  const legacyRaw = await readStateFile(sidecarPath(root), readFileFn);
1158
1158
  return legacyRaw === null
1159
1159
  ? new Set()