mossbear 0.1.0-alpha.74 → 0.1.0-alpha.75

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 (137) hide show
  1. package/README.md +10 -1
  2. package/dist/agent-comment-client.d.ts +40 -0
  3. package/dist/agent-comment-client.d.ts.map +1 -0
  4. package/dist/agent-comment-client.js +57 -0
  5. package/dist/agent-comment-client.js.map +1 -0
  6. package/dist/commands/comment.d.ts +71 -0
  7. package/dist/commands/comment.d.ts.map +1 -0
  8. package/dist/commands/comment.js +135 -0
  9. package/dist/commands/comment.js.map +1 -0
  10. package/dist/commands/connect.d.ts +20 -0
  11. package/dist/commands/connect.d.ts.map +1 -0
  12. package/dist/commands/connect.js +46 -0
  13. package/dist/commands/connect.js.map +1 -0
  14. package/dist/commands/docs/index.d.ts.map +1 -1
  15. package/dist/commands/docs/index.js +4 -1
  16. package/dist/commands/docs/index.js.map +1 -1
  17. package/dist/commands/docs/remote.d.ts +77 -0
  18. package/dist/commands/docs/remote.d.ts.map +1 -0
  19. package/dist/commands/docs/remote.js +188 -0
  20. package/dist/commands/docs/remote.js.map +1 -0
  21. package/dist/commands/init.d.ts +10 -0
  22. package/dist/commands/init.d.ts.map +1 -1
  23. package/dist/commands/init.js +32 -12
  24. package/dist/commands/init.js.map +1 -1
  25. package/dist/commands/lifecycle.js +2 -2
  26. package/dist/commands/lifecycle.js.map +1 -1
  27. package/dist/commands/narration.d.ts.map +1 -1
  28. package/dist/commands/narration.js +19 -8
  29. package/dist/commands/narration.js.map +1 -1
  30. package/dist/commands/search.d.ts +19 -1
  31. package/dist/commands/search.d.ts.map +1 -1
  32. package/dist/commands/search.js +81 -12
  33. package/dist/commands/search.js.map +1 -1
  34. package/dist/config.d.ts +35 -0
  35. package/dist/config.d.ts.map +1 -1
  36. package/dist/config.js +232 -8
  37. package/dist/config.js.map +1 -1
  38. package/dist/context/read-item.d.ts +176 -0
  39. package/dist/context/read-item.d.ts.map +1 -0
  40. package/dist/context/read-item.js +24 -0
  41. package/dist/context/read-item.js.map +1 -0
  42. package/dist/docs/repo-config.d.ts +6 -0
  43. package/dist/docs/repo-config.d.ts.map +1 -1
  44. package/dist/docs/repo-config.js +14 -0
  45. package/dist/docs/repo-config.js.map +1 -1
  46. package/dist/harnesses.d.ts +60 -1
  47. package/dist/harnesses.d.ts.map +1 -1
  48. package/dist/harnesses.js +63 -0
  49. package/dist/harnesses.js.map +1 -1
  50. package/dist/hosted-session-history.d.ts +27 -0
  51. package/dist/hosted-session-history.d.ts.map +1 -0
  52. package/dist/hosted-session-history.js +44 -0
  53. package/dist/hosted-session-history.js.map +1 -0
  54. package/dist/http-retry.d.ts +3 -0
  55. package/dist/http-retry.d.ts.map +1 -1
  56. package/dist/http-retry.js +5 -0
  57. package/dist/http-retry.js.map +1 -1
  58. package/dist/index.d.ts.map +1 -1
  59. package/dist/index.js +3 -0
  60. package/dist/index.js.map +1 -1
  61. package/dist/init/user-scope-mcp.d.ts +22 -13
  62. package/dist/init/user-scope-mcp.d.ts.map +1 -1
  63. package/dist/init/user-scope-mcp.js +77 -33
  64. package/dist/init/user-scope-mcp.js.map +1 -1
  65. package/dist/lifecycle/operations.d.ts +2 -29
  66. package/dist/lifecycle/operations.d.ts.map +1 -1
  67. package/dist/lifecycle/operations.js +220 -192
  68. package/dist/lifecycle/operations.js.map +1 -1
  69. package/dist/mcp/client.d.ts +11 -1
  70. package/dist/mcp/client.d.ts.map +1 -1
  71. package/dist/mcp/client.js +24 -1
  72. package/dist/mcp/client.js.map +1 -1
  73. package/dist/mcp/item-reference.d.ts +4 -0
  74. package/dist/mcp/item-reference.d.ts.map +1 -0
  75. package/dist/mcp/item-reference.js +23 -0
  76. package/dist/mcp/item-reference.js.map +1 -0
  77. package/dist/mcp/registration.d.ts +16 -0
  78. package/dist/mcp/registration.d.ts.map +1 -0
  79. package/dist/mcp/registration.js +88 -0
  80. package/dist/mcp/registration.js.map +1 -0
  81. package/dist/mcp/server.d.ts +20 -4
  82. package/dist/mcp/server.d.ts.map +1 -1
  83. package/dist/mcp/server.js +237 -37
  84. package/dist/mcp/server.js.map +1 -1
  85. package/dist/no-token.d.ts +3 -4
  86. package/dist/no-token.d.ts.map +1 -1
  87. package/dist/no-token.js +3 -4
  88. package/dist/no-token.js.map +1 -1
  89. package/dist/rules/manifest.d.ts +2 -0
  90. package/dist/rules/manifest.d.ts.map +1 -1
  91. package/dist/rules/manifest.js +8 -2
  92. package/dist/rules/manifest.js.map +1 -1
  93. package/dist/run-grade/render.d.ts.map +1 -1
  94. package/dist/run-grade/render.js +7 -1
  95. package/dist/run-grade/render.js.map +1 -1
  96. package/dist/run-turn-captures.d.ts +2 -2
  97. package/dist/run-turn-captures.d.ts.map +1 -1
  98. package/dist/run-turn-captures.js +6 -3
  99. package/dist/run-turn-captures.js.map +1 -1
  100. package/dist/search-client.d.ts +11 -2
  101. package/dist/search-client.d.ts.map +1 -1
  102. package/dist/search-client.js +33 -7
  103. package/dist/search-client.js.map +1 -1
  104. package/dist/session-collection-policy.d.ts +28 -0
  105. package/dist/session-collection-policy.d.ts.map +1 -0
  106. package/dist/session-collection-policy.js +66 -0
  107. package/dist/session-collection-policy.js.map +1 -0
  108. package/dist/session-sync-refusal.d.ts +5 -0
  109. package/dist/session-sync-refusal.d.ts.map +1 -0
  110. package/dist/session-sync-refusal.js +5 -0
  111. package/dist/session-sync-refusal.js.map +1 -0
  112. package/dist/skill-template.d.ts +2 -2
  113. package/dist/skill-template.d.ts.map +1 -1
  114. package/dist/skill-template.js +8 -6
  115. package/dist/skill-template.js.map +1 -1
  116. package/dist/sync-client.d.ts +3 -0
  117. package/dist/sync-client.d.ts.map +1 -1
  118. package/dist/sync-client.js +8 -2
  119. package/dist/sync-client.js.map +1 -1
  120. package/dist/turn-capture-queue.d.ts +54 -7
  121. package/dist/turn-capture-queue.d.ts.map +1 -1
  122. package/dist/turn-capture-queue.js +479 -30
  123. package/dist/turn-capture-queue.js.map +1 -1
  124. package/dist/usage/snapshot-state.d.ts +71 -0
  125. package/dist/usage/snapshot-state.d.ts.map +1 -0
  126. package/dist/usage/snapshot-state.js +50 -0
  127. package/dist/usage/snapshot-state.js.map +1 -0
  128. package/dist/usage/snapshots.d.ts +13 -0
  129. package/dist/usage/snapshots.d.ts.map +1 -0
  130. package/dist/usage/snapshots.js +83 -0
  131. package/dist/usage/snapshots.js.map +1 -0
  132. package/dist/usage/usage-ledger.js +2 -2
  133. package/dist/usage/usage-only.d.ts +73 -0
  134. package/dist/usage/usage-only.d.ts.map +1 -0
  135. package/dist/usage/usage-only.js +78 -0
  136. package/dist/usage/usage-only.js.map +1 -0
  137. package/package.json +6 -4
package/README.md CHANGED
@@ -119,7 +119,7 @@ The CLI runs no LLM calls and holds no provider credentials, and produces no ver
119
119
  4. **Selected content**: guidance you link, including skill member files, and context you capture or publish through the MCP server. Two paths upload without a separate command. First, in a repo subscribed to a document bundle, `mossbear complete` at the end of a session pushes back any subscribed document you edited locally, as a new version. It blocks push-back when another session has logged recent activity in that checkout, or the bundle does not allow the repo to write. By default, conflicting server edits are left for you to resolve. Documents you have not edited are not sent. Second, a repo whose current `.mossbear/config.json` declares paths in a `published` block publishes the committed contents of those paths automatically, with no per-publish confirmation, after a commit made in that checkout touches them. The declaration is read from the file on disk and does not show that a person reviewed or agreed to it. When `published.on` is absent, or is anything other than `merge`, the commit trigger is on; `published.on: "merge"` turns it off. When this trigger has no saved starting point, its first eligible scan records one without publishing through this trigger. Other sync uploads are unaffected. Only declared paths are sent, and a deletion removes the published item. Pulls, merges and checkouts do not arm the trigger by themselves, though a pending local commit can still publish on a hook run that follows one. These content uploads do not use the transcript excerpt filters.
120
120
  5. **Narration**: a short account of what you and the agent said, which the dashboard shows as evidence beside a verdict. It is extracted from the transcript **on your machine**, has code blocks stripped structurally and secrets redacted before upload, and is length-capped on the wire. Recognized fenced and indented code blocks are removed, and tool-result bodies are excluded. Code or diffs copied into ordinary message text can remain in excerpts. Secret redaction uses patterns and is not a guarantee.
121
121
 
122
- Narration is a per-repository setting. Turn it off to stop preparing new excerpts, user turns and closing summaries there. User turns already queued after a failed upload may still sync. Action metadata and selected content uploads are unaffected:
122
+ Narration is a per-repository setting. Turn it off to stop preparing new excerpts, user turns and closing summaries there. Pending user turns from that repository are discarded. Older queued turns without repository identity are also discarded before delivery. Turning narration back on does not restore discarded queue entries. An upload already started cannot be recalled. Update the CLI before relying on queued-turn deletion. Action metadata and selected content uploads are unaffected:
123
123
 
124
124
  ```bash
125
125
  mossbear narration # show the current setting for this repo
@@ -128,6 +128,15 @@ mossbear narration off # stop sending transcript excerpts from here
128
128
 
129
129
  Run `mossbear what-syncs` for the session payload fields and these disclosure rules. The field-name checks cover session sync, not the text inside each field or separate content uploads.
130
130
 
131
+ To inspect prepared session payloads locally, run `mossbear report --dry-run` or
132
+ `mossbear complete --dry-run`. The preview shows JSON for the session batches,
133
+ including usage and closing-session fields when present. It makes no network
134
+ requests and leaves queues, cursors, stored credentials, the usage ledger and usage cache
135
+ unchanged. It does not create or repair the local repository key: if that key is
136
+ missing or invalid, the preview omits the rule manifest and explains why. It
137
+ reflects current files and settings; a later upload can differ.
138
+ Separate guidance, context and document uploads are outside this preview.
139
+
131
140
  ## Links
132
141
 
133
142
  - Mossbear: https://mossbear.io
@@ -0,0 +1,40 @@
1
+ /**
2
+ * The CLI's write of an agent comment: `POST /api/v1/context/comments`.
3
+ *
4
+ * **One client, two callers** — the MCP `create_comment` tool and the
5
+ * `mossbear comment` verb — for the reason `search-client.ts` gives: two fetch
6
+ * calls are two places for the headers, the status handling and the response
7
+ * schema to drift. The response goes through the protocol's own parser, so a
8
+ * drifting server contract fails here rather than being reported to an agent as
9
+ * a comment that was left.
10
+ *
11
+ * Who the agent is is the caller's to say (`agent`), and the callers read it
12
+ * from the harness (`resolveAgentSession`); this module neither reads an
13
+ * environment nor makes an id up.
14
+ */
15
+ import type { AgentCommentRequest, AgentCommentResponse } from '@mossbear/protocol';
16
+ export type CreateAgentCommentOptions = {
17
+ dashboardUrl: string;
18
+ token: string;
19
+ target: AgentCommentRequest['target'];
20
+ body: string;
21
+ /** The exact text of whole lines of the item this comment is about. */
22
+ passage?: string | undefined;
23
+ agent: {
24
+ sessionId: string;
25
+ harness: AgentCommentRequest['agent']['harness'];
26
+ model?: string | undefined;
27
+ };
28
+ /** Defaults to the running CLI's own version. */
29
+ cliVersion?: string;
30
+ /** Override fetch for tests. Defaults to globalThis.fetch. */
31
+ fetchImpl?: typeof fetch;
32
+ };
33
+ export declare function createAgentComment(options: CreateAgentCommentOptions): Promise<AgentCommentResponse>;
34
+ /**
35
+ * What to tell the caller a create did, in one sentence. The two outcomes read
36
+ * differently on purpose: an agent that was handed back its earlier comment must
37
+ * not believe the new text was saved.
38
+ */
39
+ export declare function describeAgentComment(result: AgentCommentResponse): string;
40
+ //# sourceMappingURL=agent-comment-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-comment-client.d.ts","sourceRoot":"","sources":["../src/agent-comment-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAQH,OAAO,KAAK,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AAEnF,MAAM,MAAM,yBAAyB,GAAG;IACtC,YAAY,EAAE,MAAM,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAA;IACrC,IAAI,EAAE,MAAM,CAAA;IACZ,uEAAuE;IACvE,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,KAAK,EAAE;QACL,SAAS,EAAE,MAAM,CAAA;QACjB,OAAO,EAAE,mBAAmB,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,CAAA;QAChD,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAC3B,CAAA;IACD,iDAAiD;IACjD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,8DAA8D;IAC9D,SAAS,CAAC,EAAE,OAAO,KAAK,CAAA;CACzB,CAAA;AAED,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,yBAAyB,GACjC,OAAO,CAAC,oBAAoB,CAAC,CA8B/B;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,oBAAoB,GAAG,MAAM,CAIzE"}
@@ -0,0 +1,57 @@
1
+ /**
2
+ * The CLI's write of an agent comment: `POST /api/v1/context/comments`.
3
+ *
4
+ * **One client, two callers** — the MCP `create_comment` tool and the
5
+ * `mossbear comment` verb — for the reason `search-client.ts` gives: two fetch
6
+ * calls are two places for the headers, the status handling and the response
7
+ * schema to drift. The response goes through the protocol's own parser, so a
8
+ * drifting server contract fails here rather than being reported to an agent as
9
+ * a comment that was left.
10
+ *
11
+ * Who the agent is is the caller's to say (`agent`), and the callers read it
12
+ * from the harness (`resolveAgentSession`); this module neither reads an
13
+ * environment nor makes an id up.
14
+ */
15
+ import { parseAgentCommentResponse } from '@mossbear/protocol';
16
+ import { dashboardHttpError } from './dashboard-error.js';
17
+ import { trimTrailingSlashes } from './url.js';
18
+ import { CLI_VERSION } from './version.js';
19
+ export async function createAgentComment(options) {
20
+ const request = {
21
+ target: options.target,
22
+ body: options.body,
23
+ ...(options.passage !== undefined ? { passage: options.passage } : {}),
24
+ agent: {
25
+ sessionId: options.agent.sessionId,
26
+ harness: options.agent.harness,
27
+ ...(options.agent.model ? { model: options.agent.model } : {}),
28
+ cliVersion: options.cliVersion ?? CLI_VERSION,
29
+ },
30
+ };
31
+ const response = await (options.fetchImpl ?? fetch)(`${trimTrailingSlashes(options.dashboardUrl)}/api/v1/context/comments`, {
32
+ method: 'POST',
33
+ headers: {
34
+ Authorization: `Bearer ${options.token}`,
35
+ 'Content-Type': 'application/json',
36
+ },
37
+ body: JSON.stringify(request),
38
+ });
39
+ if (!response.ok) {
40
+ const text = await response.text().catch(() => '');
41
+ // The server's own sentence when it sent one ("This agent session has left
42
+ // 50 comments here"), the status form when a gateway answered instead.
43
+ throw dashboardHttpError('Comment', response.status, text);
44
+ }
45
+ return parseAgentCommentResponse(await response.json());
46
+ }
47
+ /**
48
+ * What to tell the caller a create did, in one sentence. The two outcomes read
49
+ * differently on purpose: an agent that was handed back its earlier comment must
50
+ * not believe the new text was saved.
51
+ */
52
+ export function describeAgentComment(result) {
53
+ return result.created
54
+ ? `Left your comment (${result.comment.id}).`
55
+ : `You already left a comment on this ${result.comment.subject.kind} (${result.comment.id}), so nothing was changed. Reply to it to add more.`;
56
+ }
57
+ //# sourceMappingURL=agent-comment-client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-comment-client.js","sourceRoot":"","sources":["../src/agent-comment-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAA;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAsB1C,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,OAAkC;IAElC,MAAM,OAAO,GAAwB;QACnC,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,GAAG,CAAC,OAAO,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACtE,KAAK,EAAE;YACL,SAAS,EAAE,OAAO,CAAC,KAAK,CAAC,SAAS;YAClC,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,OAAO;YAC9B,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC9D,UAAU,EAAE,OAAO,CAAC,UAAU,IAAI,WAAW;SAC9C;KACF,CAAA;IACD,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,SAAS,IAAI,KAAK,CAAC,CACjD,GAAG,mBAAmB,CAAC,OAAO,CAAC,YAAY,CAAC,0BAA0B,EACtE;QACE,MAAM,EAAE,MAAM;QACd,OAAO,EAAE;YACP,aAAa,EAAE,UAAU,OAAO,CAAC,KAAK,EAAE;YACxC,cAAc,EAAE,kBAAkB;SACnC;QACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;KAC9B,CACF,CAAA;IACD,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjB,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAA;QAClD,2EAA2E;QAC3E,uEAAuE;QACvE,MAAM,kBAAkB,CAAC,SAAS,EAAE,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;IAC5D,CAAC;IACD,OAAO,yBAAyB,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAA;AACzD,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAAC,MAA4B;IAC/D,OAAO,MAAM,CAAC,OAAO;QACnB,CAAC,CAAC,sBAAsB,MAAM,CAAC,OAAO,CAAC,EAAE,IAAI;QAC7C,CAAC,CAAC,sCAAsC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,KAAK,MAAM,CAAC,OAAO,CAAC,EAAE,qDAAqD,CAAA;AAClJ,CAAC"}
@@ -0,0 +1,71 @@
1
+ /**
2
+ * `mossbear comment` — leave a comment as the agent session you are running in.
3
+ *
4
+ * The shell twin of the `create_comment` MCP tool, over the same client
5
+ * (`agent-comment-client.ts`), for an agent not wired to the MCP server. It
6
+ * reaches the network: the comment is the dashboard's to hold.
7
+ *
8
+ * **Who is commenting is read from the harness, and there is no flag to say.**
9
+ * `resolveAgentSession` reads the session id the harness put in this shell's
10
+ * environment; outside one the command refuses, because a comment written as no
11
+ * session — or as a session someone typed — would not be an agent's. Nothing
12
+ * here makes an id up.
13
+ *
14
+ * `comment` writes and `comments` reads. They are different acts and different
15
+ * verbs: what an agent writes here is never handed back by `comments`.
16
+ */
17
+ export declare const commentCommand: import("citty").CommandDef<{
18
+ text: {
19
+ type: "positional";
20
+ description: string;
21
+ required: true;
22
+ };
23
+ item: {
24
+ type: "string";
25
+ description: string;
26
+ valueHint: string;
27
+ default: string;
28
+ };
29
+ 'on-session': {
30
+ type: "string";
31
+ description: string;
32
+ valueHint: string;
33
+ default: string;
34
+ };
35
+ 'reply-to': {
36
+ type: "string";
37
+ description: string;
38
+ valueHint: string;
39
+ default: string;
40
+ };
41
+ passage: {
42
+ type: "string";
43
+ description: string;
44
+ valueHint: string;
45
+ default: string;
46
+ };
47
+ model: {
48
+ type: "string";
49
+ description: string;
50
+ valueHint: string;
51
+ default: string;
52
+ };
53
+ json: {
54
+ type: "boolean";
55
+ description: string;
56
+ default: false;
57
+ };
58
+ token: {
59
+ type: "string";
60
+ description: string;
61
+ valueHint: string;
62
+ default: string;
63
+ };
64
+ 'dashboard-url': {
65
+ type: "string";
66
+ description: string;
67
+ valueHint: string;
68
+ default: string;
69
+ };
70
+ }>;
71
+ //# sourceMappingURL=comment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comment.d.ts","sourceRoot":"","sources":["../../src/commands/comment.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAYH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuHzB,CAAA"}
@@ -0,0 +1,135 @@
1
+ /**
2
+ * `mossbear comment` — leave a comment as the agent session you are running in.
3
+ *
4
+ * The shell twin of the `create_comment` MCP tool, over the same client
5
+ * (`agent-comment-client.ts`), for an agent not wired to the MCP server. It
6
+ * reaches the network: the comment is the dashboard's to hold.
7
+ *
8
+ * **Who is commenting is read from the harness, and there is no flag to say.**
9
+ * `resolveAgentSession` reads the session id the harness put in this shell's
10
+ * environment; outside one the command refuses, because a comment written as no
11
+ * session — or as a session someone typed — would not be an agent's. Nothing
12
+ * here makes an id up.
13
+ *
14
+ * `comment` writes and `comments` reads. They are different acts and different
15
+ * verbs: what an agent writes here is never handed back by `comments`.
16
+ */
17
+ import { defineCommand } from 'citty';
18
+ import { createAgentComment, describeAgentComment } from '../agent-comment-client.js';
19
+ import { resolveDashboardUrl, resolveToken } from '../config.js';
20
+ import { errText } from '../err-text.js';
21
+ import { resolveAgentSession } from '../harnesses.js';
22
+ import { reportNoToken } from '../no-token.js';
23
+ export const commentCommand = defineCommand({
24
+ meta: {
25
+ name: 'comment',
26
+ description: 'Leave a comment on an item or one of your sessions, or reply to a comment, as the agent session you are running in (writes to the dashboard)',
27
+ },
28
+ args: {
29
+ text: {
30
+ type: 'positional',
31
+ description: 'What you want to say',
32
+ required: true,
33
+ },
34
+ item: {
35
+ type: 'string',
36
+ description: 'The id of the item to comment on',
37
+ valueHint: 'id',
38
+ default: '',
39
+ },
40
+ 'on-session': {
41
+ type: 'string',
42
+ description: 'An agent session id of your own to comment on',
43
+ valueHint: 'id',
44
+ default: '',
45
+ },
46
+ 'reply-to': {
47
+ type: 'string',
48
+ description: 'The id of a comment to reply to',
49
+ valueHint: 'id',
50
+ default: '',
51
+ },
52
+ passage: {
53
+ type: 'string',
54
+ description: 'With --item: the exact text of whole lines of the item the comment is about',
55
+ valueHint: 'text',
56
+ default: '',
57
+ },
58
+ model: {
59
+ type: 'string',
60
+ description: 'Your own model name, if you know it',
61
+ valueHint: 'name',
62
+ default: '',
63
+ },
64
+ json: {
65
+ type: 'boolean',
66
+ description: 'Print the raw response',
67
+ default: false,
68
+ },
69
+ token: {
70
+ type: 'string',
71
+ description: 'Mossbear API token — overrides the stored one for this call',
72
+ valueHint: 'token',
73
+ default: '',
74
+ },
75
+ 'dashboard-url': {
76
+ type: 'string',
77
+ description: 'Override the dashboard base URL',
78
+ valueHint: 'url',
79
+ default: '',
80
+ },
81
+ },
82
+ async run({ args }) {
83
+ const named = [
84
+ args.item.trim() && { kind: 'item', id: args.item.trim() },
85
+ args['on-session'].trim() &&
86
+ { kind: 'session', id: args['on-session'].trim() },
87
+ args['reply-to'].trim() &&
88
+ { kind: 'reply', id: args['reply-to'].trim() },
89
+ ].filter((target) => Boolean(target));
90
+ if (named.length !== 1) {
91
+ console.error(' Say what the comment is about: exactly one of --item, --on-session or --reply-to');
92
+ process.exitCode = 1;
93
+ return;
94
+ }
95
+ const target = named[0];
96
+ const passage = args.passage.trim() === '' ? undefined : args.passage;
97
+ if (passage !== undefined && target.kind !== 'item') {
98
+ console.error(' --passage goes with --item');
99
+ process.exitCode = 1;
100
+ return;
101
+ }
102
+ const identity = resolveAgentSession({ transport: 'cli', env: process.env });
103
+ if (!identity.ok) {
104
+ console.error(` ${identity.message}`);
105
+ process.exitCode = 1;
106
+ return;
107
+ }
108
+ const token = await resolveToken(args.token);
109
+ if (!token) {
110
+ reportNoToken();
111
+ return;
112
+ }
113
+ const dashboardUrl = await resolveDashboardUrl(args['dashboard-url']);
114
+ try {
115
+ const result = await createAgentComment({
116
+ dashboardUrl,
117
+ token,
118
+ target,
119
+ body: args.text,
120
+ passage,
121
+ agent: {
122
+ sessionId: identity.sessionId,
123
+ harness: identity.harness,
124
+ model: args.model.trim() === '' ? undefined : args.model,
125
+ },
126
+ });
127
+ console.log(args.json ? JSON.stringify(result, null, 2) : ` ${describeAgentComment(result)}`);
128
+ }
129
+ catch (err) {
130
+ console.error(` could not leave your comment — ${errText(err)}`);
131
+ process.exitCode = 1;
132
+ }
133
+ },
134
+ });
135
+ //# sourceMappingURL=comment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comment.js","sourceRoot":"","sources":["../../src/commands/comment.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;G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EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,oBAAoB,CAAC,MAAM,CAAC,EAAE,CAClF,CAAA;QACH,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO,CAAC,KAAK,CAAC,oCAAoC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;YACjE,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAA;QACtB,CAAC;IACH,CAAC;CACF,CAAC,CAAA"}
@@ -0,0 +1,20 @@
1
+ export declare const connectCommand: import("citty").CommandDef<{
2
+ platform: {
3
+ type: "string";
4
+ description: string;
5
+ valueHint: string;
6
+ required: true;
7
+ };
8
+ scope: {
9
+ type: "string";
10
+ description: string;
11
+ valueHint: string;
12
+ default: string;
13
+ };
14
+ replace: {
15
+ type: "boolean";
16
+ description: string;
17
+ default: false;
18
+ };
19
+ }>;
20
+ //# sourceMappingURL=connect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../src/commands/connect.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;EAuDzB,CAAA"}
@@ -0,0 +1,46 @@
1
+ import { defineCommand } from 'citty';
2
+ import { installUserScopeMcp, reportUserScopeMcp, userScopeHarnesses, } from '../init/user-scope-mcp.js';
3
+ const CONNECT_PLATFORMS = ['codex', 'claude_code'];
4
+ export const connectCommand = defineCommand({
5
+ meta: {
6
+ name: 'connect',
7
+ description: 'Register Mossbear MCP in an agent without repeating repo setup',
8
+ },
9
+ args: {
10
+ platform: {
11
+ type: 'string',
12
+ description: 'Agent to connect: codex or claude_code',
13
+ valueHint: 'agent',
14
+ required: true,
15
+ },
16
+ scope: {
17
+ type: 'string',
18
+ description: 'Configuration scope; user is currently supported',
19
+ valueHint: 'scope',
20
+ default: 'user',
21
+ },
22
+ replace: {
23
+ type: 'boolean',
24
+ description: 'Replace a conflicting user-scope Mossbear entry',
25
+ default: false,
26
+ },
27
+ },
28
+ async run({ args }) {
29
+ if (!CONNECT_PLATFORMS.some((id) => id === args.platform)) {
30
+ console.error(' Choose --platform codex or --platform claude_code. Nothing was changed.');
31
+ process.exitCode = 1;
32
+ return;
33
+ }
34
+ if (args.scope !== 'user') {
35
+ console.error(' Only --scope user is supported. Nothing was changed.');
36
+ process.exitCode = 1;
37
+ return;
38
+ }
39
+ const outcomes = await installUserScopeMcp(userScopeHarnesses([args.platform]), undefined, { replace: args.replace });
40
+ reportUserScopeMcp(outcomes, (line) => console.log(line), (line) => console.error(line));
41
+ if (outcomes.some((outcome) => outcome.status === 'failed' || outcome.status === 'conflict')) {
42
+ process.exitCode = 1;
43
+ }
44
+ },
45
+ });
46
+ //# sourceMappingURL=connect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connect.js","sourceRoot":"","sources":["../../src/commands/connect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAErC,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,2BAA2B,CAAA;AAIlC,MAAM,iBAAiB,GAAG,CAAC,OAAO,EAAE,aAAa,CAAU,CAAA;AAE3D,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAC;IAC1C,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,gEAAgE;KAC9E;IACD,IAAI,EAAE;QACJ,QAAQ,EAAE;YACR,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,wCAAwC;YACrD,SAAS,EAAE,OAAO;YAClB,QAAQ,EAAE,IAAI;SACf;QACD,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,kDAAkD;YAC/D,SAAS,EAAE,OAAO;YAClB,OAAO,EAAE,MAAM;SAChB;QACD,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,iDAAiD;YAC9D,OAAO,EAAE,KAAK;SACf;KACF;IACD,KAAK,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE;QAChB,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;YAC1D,OAAO,CAAC,KAAK,CACX,2EAA2E,CAC5E,CAAA;YACD,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAA;YACpB,OAAM;QACR,CAAC;QACD,IAAI,IAAI,CAAC,KAAK,KAAK,MAAM,EAAE,CAAC;YAC1B,OAAO,CAAC,KAAK,CAAC,wDAAwD,CAAC,CAAA;YACvE,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAA;YACpB,OAAM;QACR,CAAC;QACD,MAAM,QAAQ,GAAG,MAAM,mBAAmB,CACxC,kBAAkB,CAAC,CAAC,IAAI,CAAC,QAAqB,CAAC,CAAC,EAChD,SAAS,EACT,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAC1B,CAAA;QACD,kBAAkB,CAChB,QAAQ,EACR,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAC3B,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAC9B,CAAA;QACD,IACE,QAAQ,CAAC,IAAI,CACX,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,KAAK,QAAQ,IAAI,OAAO,CAAC,MAAM,KAAK,UAAU,CAC1E,EACD,CAAC;YACD,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAA;QACtB,CAAC;IACH,CAAC;CACF,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/docs/index.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,WAAW,qDAQtB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/docs/index.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,WAAW,qDAWtB,CAAA"}
@@ -7,9 +7,12 @@ import { defineCommand } from 'citty';
7
7
  export const docsCommand = defineCommand({
8
8
  meta: {
9
9
  name: 'docs',
10
- description: 'Manage synced docs in this repo',
10
+ description: 'Read, update and manage Mossbear documents',
11
11
  },
12
12
  subCommands: {
13
+ read: () => import('./remote.js').then((m) => m.docsReadCommand),
14
+ history: () => import('./remote.js').then((m) => m.docsHistoryCommand),
15
+ update: () => import('./remote.js').then((m) => m.docsUpdateCommand),
13
16
  relink: () => import('./relink.js').then((m) => m.docsRelinkCommand),
14
17
  },
15
18
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/docs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAErC;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAC;IACvC,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,iCAAiC;KAC/C;IACD,WAAW,EAAE;QACX,MAAM,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,iBAAiB,CAAC;KACrE;CACF,CAAC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/docs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAErC;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAC;IACvC,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,4CAA4C;KAC1D;IACD,WAAW,EAAE;QACX,IAAI,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,CAAC;QAChE,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,kBAAkB,CAAC;QACtE,MAAM,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,iBAAiB,CAAC;QACpE,MAAM,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,iBAAiB,CAAC;KACrE;CACF,CAAC,CAAA"}
@@ -0,0 +1,77 @@
1
+ /** Reject partial numbers before any request, instead of reading or editing another revision. */
2
+ export declare function positiveInteger(value: string | undefined, label: string, max?: number): number | undefined;
3
+ export declare const docsReadCommand: import("citty").CommandDef<{
4
+ version: {
5
+ type: "string";
6
+ description: string;
7
+ };
8
+ item: {
9
+ type: "positional";
10
+ required: boolean;
11
+ description: string;
12
+ };
13
+ json: {
14
+ type: "boolean";
15
+ default: boolean;
16
+ description: string;
17
+ };
18
+ 'dashboard-url': {
19
+ type: "string";
20
+ description: string;
21
+ };
22
+ }>;
23
+ export declare const docsHistoryCommand: import("citty").CommandDef<{
24
+ before: {
25
+ type: "string";
26
+ description: string;
27
+ };
28
+ limit: {
29
+ type: "string";
30
+ description: string;
31
+ };
32
+ item: {
33
+ type: "positional";
34
+ required: boolean;
35
+ description: string;
36
+ };
37
+ json: {
38
+ type: "boolean";
39
+ default: boolean;
40
+ description: string;
41
+ };
42
+ 'dashboard-url': {
43
+ type: "string";
44
+ description: string;
45
+ };
46
+ }>;
47
+ export declare const docsUpdateCommand: import("citty").CommandDef<{
48
+ file: {
49
+ type: "string";
50
+ required: true;
51
+ description: string;
52
+ };
53
+ 'expected-version': {
54
+ type: "string";
55
+ required: true;
56
+ description: string;
57
+ };
58
+ name: {
59
+ type: "string";
60
+ description: string;
61
+ };
62
+ item: {
63
+ type: "positional";
64
+ required: boolean;
65
+ description: string;
66
+ };
67
+ json: {
68
+ type: "boolean";
69
+ default: boolean;
70
+ description: string;
71
+ };
72
+ 'dashboard-url': {
73
+ type: "string";
74
+ description: string;
75
+ };
76
+ }>;
77
+ //# sourceMappingURL=remote.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remote.d.ts","sourceRoot":"","sources":["../../../src/commands/docs/remote.ts"],"names":[],"mappings":"AAgCA,iGAAiG;AACjG,wBAAgB,eAAe,CAC7B,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,KAAK,EAAE,MAAM,EACb,GAAG,SAA0B,GAC5B,MAAM,GAAG,SAAS,CAQpB;AAsBD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;EAiD1B,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;EAiD7B,CAAA;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkD5B,CAAA"}