@b3os/cli 0.2.1 → 0.2.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 (214) hide show
  1. package/README.md +87 -8
  2. package/assets/b3os-run.py +137 -0
  3. package/assets/skill/b3os/SKILL.md +111 -0
  4. package/dist/commands/_agents.d.ts +14 -0
  5. package/dist/commands/_agents.js +33 -0
  6. package/dist/commands/_agents.js.map +1 -0
  7. package/dist/commands/_common.js +6 -2
  8. package/dist/commands/_common.js.map +1 -1
  9. package/dist/commands/_context.d.ts +49 -0
  10. package/dist/commands/_context.js +260 -0
  11. package/dist/commands/_context.js.map +1 -0
  12. package/dist/commands/_next.d.ts +39 -0
  13. package/dist/commands/_next.js +77 -0
  14. package/dist/commands/_next.js.map +1 -0
  15. package/dist/commands/agent.d.ts +42 -0
  16. package/dist/commands/agent.js +218 -0
  17. package/dist/commands/agent.js.map +1 -0
  18. package/dist/commands/app.d.ts +2 -5
  19. package/dist/commands/app.js +229 -69
  20. package/dist/commands/app.js.map +1 -1
  21. package/dist/commands/auth.d.ts +70 -2
  22. package/dist/commands/auth.js +308 -33
  23. package/dist/commands/auth.js.map +1 -1
  24. package/dist/commands/docs.d.ts +54 -0
  25. package/dist/commands/docs.js +202 -0
  26. package/dist/commands/docs.js.map +1 -0
  27. package/dist/commands/doctor.d.ts +23 -0
  28. package/dist/commands/doctor.js +313 -0
  29. package/dist/commands/doctor.js.map +1 -0
  30. package/dist/commands/init.d.ts +38 -1
  31. package/dist/commands/init.js +259 -60
  32. package/dist/commands/init.js.map +1 -1
  33. package/dist/commands/listen.d.ts +30 -0
  34. package/dist/commands/listen.js +194 -0
  35. package/dist/commands/listen.js.map +1 -0
  36. package/dist/commands/manifest.d.ts +13 -1
  37. package/dist/commands/manifest.js +59 -7
  38. package/dist/commands/manifest.js.map +1 -1
  39. package/dist/commands/mcp.d.ts +25 -2
  40. package/dist/commands/mcp.js +120 -11
  41. package/dist/commands/mcp.js.map +1 -1
  42. package/dist/commands/sandbox.d.ts +35 -6
  43. package/dist/commands/sandbox.js +208 -9
  44. package/dist/commands/sandbox.js.map +1 -1
  45. package/dist/commands/setup.d.ts +39 -0
  46. package/dist/commands/setup.js +203 -0
  47. package/dist/commands/setup.js.map +1 -0
  48. package/dist/commands/tool.d.ts +109 -1
  49. package/dist/commands/tool.js +635 -47
  50. package/dist/commands/tool.js.map +1 -1
  51. package/dist/config.d.ts +30 -6
  52. package/dist/config.js +39 -8
  53. package/dist/config.js.map +1 -1
  54. package/dist/ctx.d.ts +5 -45
  55. package/dist/ctx.js +25 -160
  56. package/dist/ctx.js.map +1 -1
  57. package/dist/docs/index.json +1 -0
  58. package/dist/docs/pages/actions/call.md +300 -0
  59. package/dist/docs/pages/actions/catalog/airtable.md +737 -0
  60. package/dist/docs/pages/actions/catalog/arxiv.md +166 -0
  61. package/dist/docs/pages/actions/catalog/chainalysis-sanctions.md +125 -0
  62. package/dist/docs/pages/actions/catalog/coingecko.md +1558 -0
  63. package/dist/docs/pages/actions/catalog/deps-dev.md +465 -0
  64. package/dist/docs/pages/actions/catalog/dexscreener.md +568 -0
  65. package/dist/docs/pages/actions/catalog/discord.md +784 -0
  66. package/dist/docs/pages/actions/catalog/finnhub.md +776 -0
  67. package/dist/docs/pages/actions/catalog/frankfurter.md +438 -0
  68. package/dist/docs/pages/actions/catalog/github.md +1853 -0
  69. package/dist/docs/pages/actions/catalog/gmail.md +575 -0
  70. package/dist/docs/pages/actions/catalog/google-calendar.md +654 -0
  71. package/dist/docs/pages/actions/catalog/google-drive.md +502 -0
  72. package/dist/docs/pages/actions/catalog/google-sheets.md +700 -0
  73. package/dist/docs/pages/actions/catalog/hacker-news.md +542 -0
  74. package/dist/docs/pages/actions/catalog/http.md +824 -0
  75. package/dist/docs/pages/actions/catalog/hyperliquid.md +942 -0
  76. package/dist/docs/pages/actions/catalog/jira.md +920 -0
  77. package/dist/docs/pages/actions/catalog/kalshi.md +917 -0
  78. package/dist/docs/pages/actions/catalog/linear.md +1030 -0
  79. package/dist/docs/pages/actions/catalog/markets.md +21 -0
  80. package/dist/docs/pages/actions/catalog/morpho.md +247 -0
  81. package/dist/docs/pages/actions/catalog/notion.md +1077 -0
  82. package/dist/docs/pages/actions/catalog/nws.md +485 -0
  83. package/dist/docs/pages/actions/catalog/open-meteo.md +559 -0
  84. package/dist/docs/pages/actions/catalog/polymarket.md +1523 -0
  85. package/dist/docs/pages/actions/catalog/pushbullet.md +220 -0
  86. package/dist/docs/pages/actions/catalog/resend.md +307 -0
  87. package/dist/docs/pages/actions/catalog/s3.md +513 -0
  88. package/dist/docs/pages/actions/catalog/sec-edgar.md +487 -0
  89. package/dist/docs/pages/actions/catalog/slack.md +2629 -0
  90. package/dist/docs/pages/actions/catalog/stripe.md +1405 -0
  91. package/dist/docs/pages/actions/catalog/wikipedia.md +379 -0
  92. package/dist/docs/pages/actions/catalog.md +46 -0
  93. package/dist/docs/pages/actions/limits.md +50 -0
  94. package/dist/docs/pages/actions/model-tools.md +225 -0
  95. package/dist/docs/pages/actions/packs.md +148 -0
  96. package/dist/docs/pages/actions/settings.md +69 -0
  97. package/dist/docs/pages/actions/tools.md +244 -0
  98. package/dist/docs/pages/actions/triggers.md +149 -0
  99. package/dist/docs/pages/actions.md +88 -0
  100. package/dist/docs/pages/compat/anthropic.md +168 -0
  101. package/dist/docs/pages/compat/e2b.md +194 -0
  102. package/dist/docs/pages/compat/firecrawl.md +138 -0
  103. package/dist/docs/pages/compat/openai.md +168 -0
  104. package/dist/docs/pages/concepts/auth.md +151 -0
  105. package/dist/docs/pages/concepts/beta.md +55 -0
  106. package/dist/docs/pages/concepts/glossary.md +71 -0
  107. package/dist/docs/pages/concepts/ids.md +98 -0
  108. package/dist/docs/pages/concepts/jobs.md +229 -0
  109. package/dist/docs/pages/concepts/latency.md +138 -0
  110. package/dist/docs/pages/concepts/limits.md +191 -0
  111. package/dist/docs/pages/concepts/stack.md +59 -0
  112. package/dist/docs/pages/concepts/timing.md +86 -0
  113. package/dist/docs/pages/concepts/usage.md +110 -0
  114. package/dist/docs/pages/design/b3os-yaml.md +370 -0
  115. package/dist/docs/pages/design/deploy-from-github.md +122 -0
  116. package/dist/docs/pages/design/observability.md +134 -0
  117. package/dist/docs/pages/errors.md +1824 -0
  118. package/dist/docs/pages/infer/chat.md +570 -0
  119. package/dist/docs/pages/infer/limits.md +55 -0
  120. package/dist/docs/pages/infer/messages.md +185 -0
  121. package/dist/docs/pages/infer/responses.md +173 -0
  122. package/dist/docs/pages/infer/settings.md +154 -0
  123. package/dist/docs/pages/infer/speech.md +323 -0
  124. package/dist/docs/pages/infer.md +154 -0
  125. package/dist/docs/pages/introduction.md +162 -0
  126. package/dist/docs/pages/platform/addresses.md +174 -0
  127. package/dist/docs/pages/platform/call-log.md +99 -0
  128. package/dist/docs/pages/platform/custom-domains.md +104 -0
  129. package/dist/docs/pages/platform/keys.md +79 -0
  130. package/dist/docs/pages/platform/limits.md +57 -0
  131. package/dist/docs/pages/platform/members.md +101 -0
  132. package/dist/docs/pages/platform/requests.md +116 -0
  133. package/dist/docs/pages/platform/settings.md +129 -0
  134. package/dist/docs/pages/platform/webhooks.md +68 -0
  135. package/dist/docs/pages/platform.md +67 -0
  136. package/dist/docs/pages/quickstart/mcp.md +94 -0
  137. package/dist/docs/pages/quickstart/sandbox-agent.md +205 -0
  138. package/dist/docs/pages/quickstart/scrape.md +134 -0
  139. package/dist/docs/pages/quickstart.md +45 -0
  140. package/dist/docs/pages/render/inspections.md +162 -0
  141. package/dist/docs/pages/render/limits.md +72 -0
  142. package/dist/docs/pages/render/screenshots.md +179 -0
  143. package/dist/docs/pages/render/settings.md +431 -0
  144. package/dist/docs/pages/render/styles.md +342 -0
  145. package/dist/docs/pages/render/videos.md +272 -0
  146. package/dist/docs/pages/render.md +118 -0
  147. package/dist/docs/pages/routines/callables.md +174 -0
  148. package/dist/docs/pages/routines/definitions.md +361 -0
  149. package/dist/docs/pages/routines/limits.md +117 -0
  150. package/dist/docs/pages/routines/runs.md +328 -0
  151. package/dist/docs/pages/routines/settings.md +104 -0
  152. package/dist/docs/pages/routines/triggers.md +339 -0
  153. package/dist/docs/pages/routines.md +216 -0
  154. package/dist/docs/pages/sandboxes/agents.md +217 -0
  155. package/dist/docs/pages/sandboxes/commands.md +272 -0
  156. package/dist/docs/pages/sandboxes/images.md +166 -0
  157. package/dist/docs/pages/sandboxes/limits.md +143 -0
  158. package/dist/docs/pages/sandboxes/ports.md +260 -0
  159. package/dist/docs/pages/sandboxes/settings.md +358 -0
  160. package/dist/docs/pages/sandboxes/snapshots.md +423 -0
  161. package/dist/docs/pages/sandboxes/swarms.md +146 -0
  162. package/dist/docs/pages/sandboxes/volumes.md +131 -0
  163. package/dist/docs/pages/sandboxes.md +231 -0
  164. package/dist/docs/pages/sdks/cli.md +121 -0
  165. package/dist/docs/pages/sdks/mcp.md +169 -0
  166. package/dist/docs/pages/sdks/python.md +146 -0
  167. package/dist/docs/pages/sdks/typescript.md +202 -0
  168. package/dist/docs/pages/sdks.md +282 -0
  169. package/dist/docs/pages/settings.md +33 -0
  170. package/dist/docs/pages/vault/limits.md +46 -0
  171. package/dist/docs/pages/vault.md +133 -0
  172. package/dist/docs/pages/vision/agent-browser.md +115 -0
  173. package/dist/docs/pages/vision/crawl.md +333 -0
  174. package/dist/docs/pages/vision/extract.md +152 -0
  175. package/dist/docs/pages/vision/fetcher.md +15 -0
  176. package/dist/docs/pages/vision/limits.md +79 -0
  177. package/dist/docs/pages/vision/profiles.md +111 -0
  178. package/dist/docs/pages/vision/proxy.md +131 -0
  179. package/dist/docs/pages/vision/scrape.md +356 -0
  180. package/dist/docs/pages/vision/sessions.md +311 -0
  181. package/dist/docs/pages/vision/settings.md +656 -0
  182. package/dist/docs/pages/vision.md +175 -0
  183. package/dist/errors.d.ts +129 -0
  184. package/dist/errors.js +326 -0
  185. package/dist/errors.js.map +1 -0
  186. package/dist/main.d.ts +1 -1
  187. package/dist/main.js +26 -13
  188. package/dist/main.js.map +1 -1
  189. package/dist/manifest/domains.d.ts +50 -0
  190. package/dist/manifest/domains.js +159 -0
  191. package/dist/manifest/domains.js.map +1 -0
  192. package/dist/manifest/link.d.ts +20 -0
  193. package/dist/manifest/link.js +24 -0
  194. package/dist/manifest/link.js.map +1 -0
  195. package/dist/manifest/record.d.ts +1 -1
  196. package/dist/tool/archive.d.ts +33 -0
  197. package/dist/tool/archive.js +174 -0
  198. package/dist/tool/archive.js.map +1 -0
  199. package/dist/tool/calls.d.ts +46 -0
  200. package/dist/tool/calls.js +274 -0
  201. package/dist/tool/calls.js.map +1 -0
  202. package/dist/tool/checks.d.ts +21 -0
  203. package/dist/tool/checks.js +145 -0
  204. package/dist/tool/checks.js.map +1 -0
  205. package/dist/tool/elf.d.ts +19 -0
  206. package/dist/tool/elf.js +107 -0
  207. package/dist/tool/elf.js.map +1 -0
  208. package/dist/tool/predict.d.ts +8 -0
  209. package/dist/tool/predict.js +38 -0
  210. package/dist/tool/predict.js.map +1 -0
  211. package/dist/tool/ustar.d.ts +5 -0
  212. package/dist/tool/ustar.js +220 -0
  213. package/dist/tool/ustar.js.map +1 -0
  214. package/package.json +6 -5
@@ -0,0 +1,1030 @@
1
+ # Linear
2
+
3
+ > The io.b3os/linear pack: 11 actions with call snippets, fixture outputs, connection setup and error codes, generated from version 1.0.0.
4
+
5
+ Source: https://docs.beta.b3os.org/actions/catalog/linear.md
6
+
7
+ <a id="linear"></a>
8
+
9
+ `io.b3os/linear` 1.0.0 · `issue-tracking`, `project-management` · MIT
10
+
11
+ Track work in Linear with your own API key: search and list issues, read an issue with its comments, create issues, move them between workflow states, assign them, comment, and list teams, workflow states and projects. Uses Linear's GraphQL API. A personal API key (Settings, Security & access) or an OAuth access token for your own Linear app works.
12
+
13
+ Every call's result carries `upstream_status` and `timing`: `validate_ms`, `inject_ms`, `render_ms`, `upstream_ms`, `map_ms` and `total_ms`. `upstream` is the service's time; the others are B3OS's own ([call actions](https://docs.beta.b3os.org/actions/call)). The snippets below show no timing values, because a fixture records none.
14
+
15
+ ## Connection
16
+
17
+ `api_key`, type `api_key`: Linear API key.
18
+
19
+ A personal API key, sent as the Authorization header as is. An OAuth access token from your own Linear app works too when you store it with the Bearer prefix.
20
+
21
+ How to get one: [linear.app](https://linear.app/developers/graphql#authentication).
22
+
23
+ The credential is sent only to `api.linear.app`.
24
+
25
+ Store the credential once as a [vault connection](https://docs.beta.b3os.org/vault) for this pack and key, then name its id in a call's `connections`. Leave the key out and B3OS uses the project's newest connection for the pack and key without a `subject` ([connections](https://docs.beta.b3os.org/actions/call#connections)).
26
+
27
+ Hosts it reaches: `api.linear.app`.
28
+
29
+ ## Actions
30
+
31
+ | Action | Effect | MCP tool | Title |
32
+ |---|---|---|---|
33
+ | [`get-viewer`](https://docs.beta.b3os.org/actions/catalog/linear#linear-get-viewer) | read | `linear__get-viewer` | Get current user |
34
+ | [`list-teams`](https://docs.beta.b3os.org/actions/catalog/linear#linear-list-teams) | read | `linear__list-teams` | List teams |
35
+ | [`list-workflow-states`](https://docs.beta.b3os.org/actions/catalog/linear#linear-list-workflow-states) | read | `linear__list-workflow-states` | List workflow states |
36
+ | [`search-issues`](https://docs.beta.b3os.org/actions/catalog/linear#linear-search-issues) | read | `linear__search-issues` | Search issues |
37
+ | [`list-issues`](https://docs.beta.b3os.org/actions/catalog/linear#linear-list-issues) | read | `linear__list-issues` | List team issues |
38
+ | [`get-issue`](https://docs.beta.b3os.org/actions/catalog/linear#linear-get-issue) | read | `linear__get-issue` | Get issue |
39
+ | [`create-issue`](https://docs.beta.b3os.org/actions/catalog/linear#linear-create-issue) | write | `linear__create-issue` | Create issue |
40
+ | [`move-issue`](https://docs.beta.b3os.org/actions/catalog/linear#linear-move-issue) | write | `linear__move-issue` | Move issue to a state |
41
+ | [`assign-issue`](https://docs.beta.b3os.org/actions/catalog/linear#linear-assign-issue) | write | `linear__assign-issue` | Assign issue |
42
+ | [`add-comment`](https://docs.beta.b3os.org/actions/catalog/linear#linear-add-comment) | write | `linear__add-comment` | Comment on issue |
43
+ | [`list-projects`](https://docs.beta.b3os.org/actions/catalog/linear#linear-list-projects) | read | `linear__list-projects` | List projects |
44
+
45
+ <h3 id="linear-get-viewer"><code>get-viewer</code></h3>
46
+
47
+ **Get current user.** Who the API key belongs to: user id, name, email and organization (name and URL key). A cheap way to check a connection.
48
+
49
+ Ref `io.b3os/linear/get-viewer@1.0.0` · effect `read` · connection `api_key` · MCP tool `linear__get-viewer`
50
+
51
+ **curl**
52
+
53
+ ```bash
54
+ curl -s https://beta-api.b3os.org/v1/actions/call \
55
+ -H "Authorization: Bearer $B3OS_API_KEY" \
56
+ -H "Content-Type: application/json" \
57
+ -d '{
58
+ "ref": "io.b3os/linear/get-viewer@1",
59
+ "input": {},
60
+ "connections": {"api_key": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
61
+ }'
62
+ ```
63
+ **TypeScript**
64
+
65
+ ```ts
66
+ import { B3OS } from "@b3os/sdk";
67
+
68
+ const b3os = new B3OS();
69
+ const result = await b3os.actions.call({
70
+ ref: "io.b3os/linear/get-viewer@1",
71
+ input: {},
72
+ connections: { api_key: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
73
+ });
74
+ console.log(result.output);
75
+ ```
76
+ **Python**
77
+
78
+ ```python
79
+ from b3os import B3OS
80
+
81
+ b3os = B3OS()
82
+ result = b3os.actions.call({
83
+ "ref": "io.b3os/linear/get-viewer@1",
84
+ "input": {},
85
+ "connections": {"api_key": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
86
+ })
87
+ print(result["output"])
88
+ ```
89
+ **MCP**
90
+
91
+ ```json
92
+ {
93
+ "method": "tools/call",
94
+ "params": {"name": "linear__get-viewer", "arguments": {}}
95
+ }
96
+ ```
97
+
98
+ Expose the pack as tools with `--packs linear` on the local server or `?packs=linear` on the remote URL, and the agent calls `linear__get-viewer` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
99
+
100
+ Output, labeled `fixture`: Get current user (documented response shape, example values). From the bundle's `fixtures/get-viewer.json`, not a live call.
101
+
102
+ ```json
103
+ {
104
+ "id": "8f3a9b2e-1c4d-4e5f-9a6b-7c8d9e0f1a2b",
105
+ "name": "Mona Example",
106
+ "email": "mona@acme.example",
107
+ "organization": "Acme",
108
+ "organization_url_key": "acme"
109
+ }
110
+ ```
111
+
112
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
113
+
114
+ | `pack_error.code` | Service status | Retryable | Message |
115
+ |---|---|---|---|
116
+ | `connection_unauthorized` | 401 | no | Linear rejected the API key or token. |
117
+ | `forbidden` | matched on the response body | no | built from the service's response |
118
+ | `rate_limited` | 429 | yes | Linear rate limit reached; retry shortly. |
119
+ | `not_found` | matched on the response body | no | built from the service's response |
120
+ | `invalid_request` | matched on the response body | no | built from the service's response |
121
+
122
+ <h3 id="linear-list-teams"><code>list-teams</code></h3>
123
+
124
+ **List teams.** Teams in the workspace with id, key (the issue prefix) and name. create-issue needs a team id.
125
+
126
+ Ref `io.b3os/linear/list-teams@1.0.0` · effect `read` · connection `api_key` · MCP tool `linear__list-teams`
127
+
128
+ **curl**
129
+
130
+ ```bash
131
+ curl -s https://beta-api.b3os.org/v1/actions/call \
132
+ -H "Authorization: Bearer $B3OS_API_KEY" \
133
+ -H "Content-Type: application/json" \
134
+ -d '{
135
+ "ref": "io.b3os/linear/list-teams@1",
136
+ "input": {},
137
+ "connections": {"api_key": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
138
+ }'
139
+ ```
140
+ **TypeScript**
141
+
142
+ ```ts
143
+ import { B3OS } from "@b3os/sdk";
144
+
145
+ const b3os = new B3OS();
146
+ const result = await b3os.actions.call({
147
+ ref: "io.b3os/linear/list-teams@1",
148
+ input: {},
149
+ connections: { api_key: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
150
+ });
151
+ console.log(result.output);
152
+ ```
153
+ **Python**
154
+
155
+ ```python
156
+ from b3os import B3OS
157
+
158
+ b3os = B3OS()
159
+ result = b3os.actions.call({
160
+ "ref": "io.b3os/linear/list-teams@1",
161
+ "input": {},
162
+ "connections": {"api_key": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
163
+ })
164
+ print(result["output"])
165
+ ```
166
+ **MCP**
167
+
168
+ ```json
169
+ {
170
+ "method": "tools/call",
171
+ "params": {"name": "linear__list-teams", "arguments": {}}
172
+ }
173
+ ```
174
+
175
+ Expose the pack as tools with `--packs linear` on the local server or `?packs=linear` on the remote URL, and the agent calls `linear__list-teams` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
176
+
177
+ Output, labeled `fixture`: List teams (documented response shape, example values). From the bundle's `fixtures/list-teams.json`, not a live call.
178
+
179
+ ```json
180
+ {
181
+ "teams": [
182
+ {
183
+ "id": "4e1d2c3b-5a6f-4b7c-8d9e-0f1a2b3c4d5e",
184
+ "key": "ENG",
185
+ "name": "Engineering"
186
+ },
187
+ {
188
+ "id": "9a8b7c6d-5e4f-4a3b-2c1d-0e9f8a7b6c5d",
189
+ "key": "DES",
190
+ "name": "Design"
191
+ }
192
+ ]
193
+ }
194
+ ```
195
+
196
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
197
+
198
+ | `pack_error.code` | Service status | Retryable | Message |
199
+ |---|---|---|---|
200
+ | `connection_unauthorized` | 401 | no | Linear rejected the API key or token. |
201
+ | `forbidden` | matched on the response body | no | built from the service's response |
202
+ | `rate_limited` | 429 | yes | Linear rate limit reached; retry shortly. |
203
+ | `not_found` | matched on the response body | no | built from the service's response |
204
+ | `invalid_request` | matched on the response body | no | built from the service's response |
205
+
206
+ <h3 id="linear-list-workflow-states"><code>list-workflow-states</code></h3>
207
+
208
+ **List workflow states.** A team's workflow states (Todo, In Progress, Done, ...) with id, name and type. move-issue needs a state id.
209
+
210
+ Ref `io.b3os/linear/list-workflow-states@1.0.0` · effect `read` · connection `api_key` · MCP tool `linear__list-workflow-states`
211
+
212
+ **curl**
213
+
214
+ ```bash
215
+ curl -s https://beta-api.b3os.org/v1/actions/call \
216
+ -H "Authorization: Bearer $B3OS_API_KEY" \
217
+ -H "Content-Type: application/json" \
218
+ -d '{
219
+ "ref": "io.b3os/linear/list-workflow-states@1",
220
+ "input": {"team": "ENG"},
221
+ "connections": {"api_key": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
222
+ }'
223
+ ```
224
+ **TypeScript**
225
+
226
+ ```ts
227
+ import { B3OS } from "@b3os/sdk";
228
+
229
+ const b3os = new B3OS();
230
+ const result = await b3os.actions.call({
231
+ ref: "io.b3os/linear/list-workflow-states@1",
232
+ input: { team: "ENG" },
233
+ connections: { api_key: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
234
+ });
235
+ console.log(result.output);
236
+ ```
237
+ **Python**
238
+
239
+ ```python
240
+ from b3os import B3OS
241
+
242
+ b3os = B3OS()
243
+ result = b3os.actions.call({
244
+ "ref": "io.b3os/linear/list-workflow-states@1",
245
+ "input": {"team": "ENG"},
246
+ "connections": {"api_key": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
247
+ })
248
+ print(result["output"])
249
+ ```
250
+ **MCP**
251
+
252
+ ```json
253
+ {
254
+ "method": "tools/call",
255
+ "params": {
256
+ "name": "linear__list-workflow-states",
257
+ "arguments": {"team": "ENG"}
258
+ }
259
+ }
260
+ ```
261
+
262
+ Expose the pack as tools with `--packs linear` on the local server or `?packs=linear` on the remote URL, and the agent calls `linear__list-workflow-states` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
263
+
264
+ Output, labeled `fixture`: List workflow states (documented response shape, example values). From the bundle's `fixtures/list-workflow-states.json`, not a live call.
265
+
266
+ ```json
267
+ {
268
+ "states": [
269
+ {
270
+ "id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
271
+ "name": "Todo",
272
+ "type": "unstarted",
273
+ "position": 0
274
+ },
275
+ {
276
+ "id": "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e",
277
+ "name": "In Progress",
278
+ "type": "started",
279
+ "position": 1
280
+ },
281
+ {
282
+ "id": "c3d4e5f6-a7b8-4c9d-0e1f-2a3b4c5d6e7f",
283
+ "name": "Done",
284
+ "type": "completed",
285
+ "position": 2
286
+ }
287
+ ]
288
+ }
289
+ ```
290
+
291
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
292
+
293
+ | `pack_error.code` | Service status | Retryable | Message |
294
+ |---|---|---|---|
295
+ | `connection_unauthorized` | 401 | no | Linear rejected the API key or token. |
296
+ | `forbidden` | matched on the response body | no | built from the service's response |
297
+ | `rate_limited` | 429 | yes | Linear rate limit reached; retry shortly. |
298
+ | `not_found` | matched on the response body | no | built from the service's response |
299
+ | `invalid_request` | matched on the response body | no | built from the service's response |
300
+
301
+ <h3 id="linear-search-issues"><code>search-issues</code></h3>
302
+
303
+ **Search issues.** Full-text search over issue titles, descriptions and identifiers in the workspace, best match first: identifier, title, state, priority, assignee, team, labels and URL. Use list-issues to filter one team by state instead.
304
+
305
+ Ref `io.b3os/linear/search-issues@1.0.0` · effect `read` · connection `api_key` · MCP tool `linear__search-issues`
306
+
307
+ **curl**
308
+
309
+ ```bash
310
+ curl -s https://beta-api.b3os.org/v1/actions/call \
311
+ -H "Authorization: Bearer $B3OS_API_KEY" \
312
+ -H "Content-Type: application/json" \
313
+ -d '{
314
+ "ref": "io.b3os/linear/search-issues@1",
315
+ "input": {"query": "checkout overflow", "first": 1},
316
+ "connections": {"api_key": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
317
+ }'
318
+ ```
319
+ **TypeScript**
320
+
321
+ ```ts
322
+ import { B3OS } from "@b3os/sdk";
323
+
324
+ const b3os = new B3OS();
325
+ const result = await b3os.actions.call({
326
+ ref: "io.b3os/linear/search-issues@1",
327
+ input: { query: "checkout overflow", first: 1 },
328
+ connections: { api_key: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
329
+ });
330
+ console.log(result.output);
331
+ ```
332
+ **Python**
333
+
334
+ ```python
335
+ from b3os import B3OS
336
+
337
+ b3os = B3OS()
338
+ result = b3os.actions.call({
339
+ "ref": "io.b3os/linear/search-issues@1",
340
+ "input": {"query": "checkout overflow", "first": 1},
341
+ "connections": {"api_key": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
342
+ })
343
+ print(result["output"])
344
+ ```
345
+ **MCP**
346
+
347
+ ```json
348
+ {
349
+ "method": "tools/call",
350
+ "params": {
351
+ "name": "linear__search-issues",
352
+ "arguments": {"query": "checkout overflow", "first": 1}
353
+ }
354
+ }
355
+ ```
356
+
357
+ Expose the pack as tools with `--packs linear` on the local server or `?packs=linear` on the remote URL, and the agent calls `linear__search-issues` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
358
+
359
+ Output, labeled `fixture`: Search issues (documented response shape, example values). From the bundle's `fixtures/search-issues.json`, not a live call.
360
+
361
+ ```json
362
+ {
363
+ "issues": [
364
+ {
365
+ "id": "5f6e7d8c-9b0a-4c1d-8e2f-3a4b5c6d7e8f",
366
+ "identifier": "ENG-123",
367
+ "title": "Cart overflows on narrow screens",
368
+ "url": "https://linear.app/acme/issue/eng-123",
369
+ "priority": 2,
370
+ "priority_label": "High",
371
+ "estimate": 3,
372
+ "due_date": null,
373
+ "state": "In Progress",
374
+ "state_type": "started",
375
+ "assignee": "Mona Example",
376
+ "assignee_email": "mona@acme.example",
377
+ "team": "ENG",
378
+ "labels": ["Bug"],
379
+ "created_at": "2026-10-24T17:11:20.000Z",
380
+ "updated_at": "2026-10-25T09:02:41.000Z",
381
+ "completed_at": null
382
+ }
383
+ ]
384
+ }
385
+ ```
386
+
387
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
388
+
389
+ | `pack_error.code` | Service status | Retryable | Message |
390
+ |---|---|---|---|
391
+ | `connection_unauthorized` | 401 | no | Linear rejected the API key or token. |
392
+ | `forbidden` | matched on the response body | no | built from the service's response |
393
+ | `rate_limited` | 429 | yes | Linear rate limit reached; retry shortly. |
394
+ | `not_found` | matched on the response body | no | built from the service's response |
395
+ | `invalid_request` | matched on the response body | no | built from the service's response |
396
+
397
+ <h3 id="linear-list-issues"><code>list-issues</code></h3>
398
+
399
+ **List team issues.** A team's issues, most recently updated first, limited to workflow state types you choose (default: everything not completed or canceled). Page with after = the previous end_cursor while has_next_page is true.
400
+
401
+ Ref `io.b3os/linear/list-issues@1.0.0` · effect `read` · connection `api_key` · MCP tool `linear__list-issues`
402
+
403
+ **curl**
404
+
405
+ ```bash
406
+ curl -s https://beta-api.b3os.org/v1/actions/call \
407
+ -H "Authorization: Bearer $B3OS_API_KEY" \
408
+ -H "Content-Type: application/json" \
409
+ -d '{
410
+ "ref": "io.b3os/linear/list-issues@1",
411
+ "input": {"team": "ENG", "first": 1},
412
+ "connections": {"api_key": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
413
+ }'
414
+ ```
415
+ **TypeScript**
416
+
417
+ ```ts
418
+ import { B3OS } from "@b3os/sdk";
419
+
420
+ const b3os = new B3OS();
421
+ const result = await b3os.actions.call({
422
+ ref: "io.b3os/linear/list-issues@1",
423
+ input: { team: "ENG", first: 1 },
424
+ connections: { api_key: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
425
+ });
426
+ console.log(result.output);
427
+ ```
428
+ **Python**
429
+
430
+ ```python
431
+ from b3os import B3OS
432
+
433
+ b3os = B3OS()
434
+ result = b3os.actions.call({
435
+ "ref": "io.b3os/linear/list-issues@1",
436
+ "input": {"team": "ENG", "first": 1},
437
+ "connections": {"api_key": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
438
+ })
439
+ print(result["output"])
440
+ ```
441
+ **MCP**
442
+
443
+ ```json
444
+ {
445
+ "method": "tools/call",
446
+ "params": {
447
+ "name": "linear__list-issues",
448
+ "arguments": {"team": "ENG", "first": 1}
449
+ }
450
+ }
451
+ ```
452
+
453
+ Expose the pack as tools with `--packs linear` on the local server or `?packs=linear` on the remote URL, and the agent calls `linear__list-issues` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
454
+
455
+ Output, labeled `fixture`: List team issues (documented response shape, example values). From the bundle's `fixtures/list-issues.json`, not a live call.
456
+
457
+ ```json
458
+ {
459
+ "issues": [
460
+ {
461
+ "id": "5f6e7d8c-9b0a-4c1d-8e2f-3a4b5c6d7e8f",
462
+ "identifier": "ENG-123",
463
+ "title": "Cart overflows on narrow screens",
464
+ "url": "https://linear.app/acme/issue/eng-123",
465
+ "priority": 2,
466
+ "priority_label": "High",
467
+ "estimate": 3,
468
+ "due_date": null,
469
+ "state": "In Progress",
470
+ "state_type": "started",
471
+ "assignee": "Mona Example",
472
+ "assignee_email": "mona@acme.example",
473
+ "team": "ENG",
474
+ "labels": ["Bug"],
475
+ "created_at": "2026-10-24T17:11:20.000Z",
476
+ "updated_at": "2026-10-25T09:02:41.000Z",
477
+ "completed_at": null
478
+ }
479
+ ],
480
+ "has_next_page": true,
481
+ "end_cursor": "5f6e7d8c-9b0a-4c1d-8e2f-3a4b5c6d7e8f"
482
+ }
483
+ ```
484
+
485
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
486
+
487
+ | `pack_error.code` | Service status | Retryable | Message |
488
+ |---|---|---|---|
489
+ | `connection_unauthorized` | 401 | no | Linear rejected the API key or token. |
490
+ | `forbidden` | matched on the response body | no | built from the service's response |
491
+ | `rate_limited` | 429 | yes | Linear rate limit reached; retry shortly. |
492
+ | `not_found` | matched on the response body | no | built from the service's response |
493
+ | `invalid_request` | matched on the response body | no | built from the service's response |
494
+
495
+ <h3 id="linear-get-issue"><code>get-issue</code></h3>
496
+
497
+ **Get issue.** One issue by identifier (ENG-123) or id, with its Markdown description, state, assignee, labels, project, parent and the latest 20 comments.
498
+
499
+ Ref `io.b3os/linear/get-issue@1.0.0` · effect `read` · connection `api_key` · MCP tool `linear__get-issue`
500
+
501
+ **curl**
502
+
503
+ ```bash
504
+ curl -s https://beta-api.b3os.org/v1/actions/call \
505
+ -H "Authorization: Bearer $B3OS_API_KEY" \
506
+ -H "Content-Type: application/json" \
507
+ -d '{
508
+ "ref": "io.b3os/linear/get-issue@1",
509
+ "input": {"id": "ENG-123"},
510
+ "connections": {"api_key": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
511
+ }'
512
+ ```
513
+ **TypeScript**
514
+
515
+ ```ts
516
+ import { B3OS } from "@b3os/sdk";
517
+
518
+ const b3os = new B3OS();
519
+ const result = await b3os.actions.call({
520
+ ref: "io.b3os/linear/get-issue@1",
521
+ input: { id: "ENG-123" },
522
+ connections: { api_key: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
523
+ });
524
+ console.log(result.output);
525
+ ```
526
+ **Python**
527
+
528
+ ```python
529
+ from b3os import B3OS
530
+
531
+ b3os = B3OS()
532
+ result = b3os.actions.call({
533
+ "ref": "io.b3os/linear/get-issue@1",
534
+ "input": {"id": "ENG-123"},
535
+ "connections": {"api_key": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
536
+ })
537
+ print(result["output"])
538
+ ```
539
+ **MCP**
540
+
541
+ ```json
542
+ {
543
+ "method": "tools/call",
544
+ "params": {"name": "linear__get-issue", "arguments": {"id": "ENG-123"}}
545
+ }
546
+ ```
547
+
548
+ Expose the pack as tools with `--packs linear` on the local server or `?packs=linear` on the remote URL, and the agent calls `linear__get-issue` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
549
+
550
+ Output, labeled `fixture`: Get issue (documented response shape, example values). From the bundle's `fixtures/get-issue.json`, not a live call.
551
+
552
+ ```json
553
+ {
554
+ "id": "5f6e7d8c-9b0a-4c1d-8e2f-3a4b5c6d7e8f",
555
+ "identifier": "ENG-123",
556
+ "title": "Cart overflows on narrow screens",
557
+ "url": "https://linear.app/acme/issue/eng-123",
558
+ "priority": 2,
559
+ "priority_label": "High",
560
+ "estimate": 3,
561
+ "due_date": null,
562
+ "state": "In Progress",
563
+ "state_type": "started",
564
+ "assignee": "Mona Example",
565
+ "assignee_email": "mona@acme.example",
566
+ "team": "ENG",
567
+ "labels": ["Bug"],
568
+ "created_at": "2026-10-24T17:11:20.000Z",
569
+ "updated_at": "2026-10-25T09:02:41.000Z",
570
+ "completed_at": null,
571
+ "description": "Steps:\n\n1. Open the cart\n2. Resize to 375px",
572
+ "project": "Checkout v2",
573
+ "parent": null,
574
+ "comments": [
575
+ {
576
+ "author": "Hubot Example",
577
+ "body": "Reproduced on Safari 18.",
578
+ "created_at": "2026-10-25T10:00:00.000Z"
579
+ }
580
+ ]
581
+ }
582
+ ```
583
+
584
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
585
+
586
+ | `pack_error.code` | Service status | Retryable | Message |
587
+ |---|---|---|---|
588
+ | `connection_unauthorized` | 401 | no | Linear rejected the API key or token. |
589
+ | `forbidden` | matched on the response body | no | built from the service's response |
590
+ | `rate_limited` | 429 | yes | Linear rate limit reached; retry shortly. |
591
+ | `not_found` | matched on the response body | no | built from the service's response |
592
+ | `invalid_request` | matched on the response body | no | built from the service's response |
593
+
594
+ <h3 id="linear-create-issue"><code>create-issue</code></h3>
595
+
596
+ **Create issue.** Create an issue in a team (team_id from list-teams) with a title and optional Markdown description, priority (0 none to 4 low), assignee, labels and initial state. Returns its identifier and URL. Not idempotent.
597
+
598
+ Ref `io.b3os/linear/create-issue@1.0.0` · effect `write` · connection `api_key` · MCP tool `linear__create-issue`
599
+
600
+ **curl**
601
+
602
+ ```bash
603
+ curl -s https://beta-api.b3os.org/v1/actions/call \
604
+ -H "Authorization: Bearer $B3OS_API_KEY" \
605
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
606
+ -H "Content-Type: application/json" \
607
+ -d '{
608
+ "ref": "io.b3os/linear/create-issue@1",
609
+ "input": {
610
+ "team_id": "4e1d2c3b-5a6f-4b7c-8d9e-0f1a2b3c4d5e",
611
+ "title": "Flaky checkout test",
612
+ "description": "Seen three times this week.",
613
+ "priority": 2
614
+ },
615
+ "connections": {"api_key": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
616
+ }'
617
+ ```
618
+ **TypeScript**
619
+
620
+ ```ts
621
+ import { B3OS } from "@b3os/sdk";
622
+
623
+ const b3os = new B3OS();
624
+ const result = await b3os.actions.call({
625
+ ref: "io.b3os/linear/create-issue@1",
626
+ input: {
627
+ team_id: "4e1d2c3b-5a6f-4b7c-8d9e-0f1a2b3c4d5e",
628
+ title: "Flaky checkout test",
629
+ description: "Seen three times this week.",
630
+ priority: 2,
631
+ },
632
+ connections: { api_key: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
633
+ }, { idempotencyKey: crypto.randomUUID() });
634
+ console.log(result.output);
635
+ ```
636
+ **Python**
637
+
638
+ ```python
639
+ import uuid
640
+ from b3os import B3OS
641
+
642
+ b3os = B3OS()
643
+ result = b3os.actions.call({
644
+ "ref": "io.b3os/linear/create-issue@1",
645
+ "input": {
646
+ "team_id": "4e1d2c3b-5a6f-4b7c-8d9e-0f1a2b3c4d5e",
647
+ "title": "Flaky checkout test",
648
+ "description": "Seen three times this week.",
649
+ "priority": 2,
650
+ },
651
+ "connections": {"api_key": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
652
+ }, idempotency_key=str(uuid.uuid4()))
653
+ print(result["output"])
654
+ ```
655
+ **MCP**
656
+
657
+ ```json
658
+ {
659
+ "method": "tools/call",
660
+ "params": {
661
+ "name": "linear__create-issue",
662
+ "arguments": {
663
+ "team_id": "4e1d2c3b-5a6f-4b7c-8d9e-0f1a2b3c4d5e",
664
+ "title": "Flaky checkout test",
665
+ "description": "Seen three times this week.",
666
+ "priority": 2
667
+ }
668
+ }
669
+ }
670
+ ```
671
+
672
+ Expose the pack as tools with `--packs linear` on the local server or `?packs=linear` on the remote URL, and the agent calls `linear__create-issue` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
673
+
674
+ Output, labeled `fixture`: Create issue (documented response shape, example values). From the bundle's `fixtures/create-issue.json`, not a live call.
675
+
676
+ ```json
677
+ {
678
+ "id": "7a6b5c4d-3e2f-4a1b-9c8d-7e6f5a4b3c2d",
679
+ "identifier": "ENG-124",
680
+ "title": "Flaky checkout test",
681
+ "url": "https://linear.app/acme/issue/eng-124"
682
+ }
683
+ ```
684
+
685
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
686
+
687
+ | `pack_error.code` | Service status | Retryable | Message |
688
+ |---|---|---|---|
689
+ | `connection_unauthorized` | 401 | no | Linear rejected the API key or token. |
690
+ | `forbidden` | matched on the response body | no | built from the service's response |
691
+ | `rate_limited` | 429 | yes | Linear rate limit reached; retry shortly. |
692
+ | `not_found` | matched on the response body | no | built from the service's response |
693
+ | `invalid_request` | matched on the response body | no | built from the service's response |
694
+
695
+ <h3 id="linear-move-issue"><code>move-issue</code></h3>
696
+
697
+ **Move issue to a state.** Change an issue's workflow state, for example to In Progress or Done (state ids from list-workflow-states). Returns the issue's new state.
698
+
699
+ Ref `io.b3os/linear/move-issue@1.0.0` · effect `write` · connection `api_key` · MCP tool `linear__move-issue`
700
+
701
+ **curl**
702
+
703
+ ```bash
704
+ curl -s https://beta-api.b3os.org/v1/actions/call \
705
+ -H "Authorization: Bearer $B3OS_API_KEY" \
706
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
707
+ -H "Content-Type: application/json" \
708
+ -d '{
709
+ "ref": "io.b3os/linear/move-issue@1",
710
+ "input": {
711
+ "id": "ENG-123",
712
+ "state_id": "c3d4e5f6-a7b8-4c9d-0e1f-2a3b4c5d6e7f"
713
+ },
714
+ "connections": {"api_key": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
715
+ }'
716
+ ```
717
+ **TypeScript**
718
+
719
+ ```ts
720
+ import { B3OS } from "@b3os/sdk";
721
+
722
+ const b3os = new B3OS();
723
+ const result = await b3os.actions.call({
724
+ ref: "io.b3os/linear/move-issue@1",
725
+ input: { id: "ENG-123", state_id: "c3d4e5f6-a7b8-4c9d-0e1f-2a3b4c5d6e7f" },
726
+ connections: { api_key: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
727
+ }, { idempotencyKey: crypto.randomUUID() });
728
+ console.log(result.output);
729
+ ```
730
+ **Python**
731
+
732
+ ```python
733
+ import uuid
734
+ from b3os import B3OS
735
+
736
+ b3os = B3OS()
737
+ result = b3os.actions.call({
738
+ "ref": "io.b3os/linear/move-issue@1",
739
+ "input": {
740
+ "id": "ENG-123",
741
+ "state_id": "c3d4e5f6-a7b8-4c9d-0e1f-2a3b4c5d6e7f",
742
+ },
743
+ "connections": {"api_key": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
744
+ }, idempotency_key=str(uuid.uuid4()))
745
+ print(result["output"])
746
+ ```
747
+ **MCP**
748
+
749
+ ```json
750
+ {
751
+ "method": "tools/call",
752
+ "params": {
753
+ "name": "linear__move-issue",
754
+ "arguments": {
755
+ "id": "ENG-123",
756
+ "state_id": "c3d4e5f6-a7b8-4c9d-0e1f-2a3b4c5d6e7f"
757
+ }
758
+ }
759
+ }
760
+ ```
761
+
762
+ Expose the pack as tools with `--packs linear` on the local server or `?packs=linear` on the remote URL, and the agent calls `linear__move-issue` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
763
+
764
+ Output, labeled `fixture`: Move issue to a state (documented response shape, example values). From the bundle's `fixtures/move-issue.json`, not a live call.
765
+
766
+ ```json
767
+ {"identifier": "ENG-123", "state": "Done", "state_type": "completed"}
768
+ ```
769
+
770
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
771
+
772
+ | `pack_error.code` | Service status | Retryable | Message |
773
+ |---|---|---|---|
774
+ | `connection_unauthorized` | 401 | no | Linear rejected the API key or token. |
775
+ | `forbidden` | matched on the response body | no | built from the service's response |
776
+ | `rate_limited` | 429 | yes | Linear rate limit reached; retry shortly. |
777
+ | `not_found` | matched on the response body | no | built from the service's response |
778
+ | `invalid_request` | matched on the response body | no | built from the service's response |
779
+
780
+ <h3 id="linear-assign-issue"><code>assign-issue</code></h3>
781
+
782
+ **Assign issue.** Assign an issue to a user (user id, from get-issue or the Linear app), or unassign it when assignee_id is omitted.
783
+
784
+ Ref `io.b3os/linear/assign-issue@1.0.0` · effect `write` · connection `api_key` · MCP tool `linear__assign-issue`
785
+
786
+ **curl**
787
+
788
+ ```bash
789
+ curl -s https://beta-api.b3os.org/v1/actions/call \
790
+ -H "Authorization: Bearer $B3OS_API_KEY" \
791
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
792
+ -H "Content-Type: application/json" \
793
+ -d '{
794
+ "ref": "io.b3os/linear/assign-issue@1",
795
+ "input": {
796
+ "id": "ENG-123",
797
+ "assignee_id": "8f3a9b2e-1c4d-4e5f-9a6b-7c8d9e0f1a2b"
798
+ },
799
+ "connections": {"api_key": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
800
+ }'
801
+ ```
802
+ **TypeScript**
803
+
804
+ ```ts
805
+ import { B3OS } from "@b3os/sdk";
806
+
807
+ const b3os = new B3OS();
808
+ const result = await b3os.actions.call({
809
+ ref: "io.b3os/linear/assign-issue@1",
810
+ input: {
811
+ id: "ENG-123",
812
+ assignee_id: "8f3a9b2e-1c4d-4e5f-9a6b-7c8d9e0f1a2b",
813
+ },
814
+ connections: { api_key: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
815
+ }, { idempotencyKey: crypto.randomUUID() });
816
+ console.log(result.output);
817
+ ```
818
+ **Python**
819
+
820
+ ```python
821
+ import uuid
822
+ from b3os import B3OS
823
+
824
+ b3os = B3OS()
825
+ result = b3os.actions.call({
826
+ "ref": "io.b3os/linear/assign-issue@1",
827
+ "input": {
828
+ "id": "ENG-123",
829
+ "assignee_id": "8f3a9b2e-1c4d-4e5f-9a6b-7c8d9e0f1a2b",
830
+ },
831
+ "connections": {"api_key": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
832
+ }, idempotency_key=str(uuid.uuid4()))
833
+ print(result["output"])
834
+ ```
835
+ **MCP**
836
+
837
+ ```json
838
+ {
839
+ "method": "tools/call",
840
+ "params": {
841
+ "name": "linear__assign-issue",
842
+ "arguments": {
843
+ "id": "ENG-123",
844
+ "assignee_id": "8f3a9b2e-1c4d-4e5f-9a6b-7c8d9e0f1a2b"
845
+ }
846
+ }
847
+ }
848
+ ```
849
+
850
+ Expose the pack as tools with `--packs linear` on the local server or `?packs=linear` on the remote URL, and the agent calls `linear__assign-issue` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
851
+
852
+ Output, labeled `fixture`: Assign issue (documented response shape, example values). From the bundle's `fixtures/assign-issue.json`, not a live call.
853
+
854
+ ```json
855
+ {"identifier": "ENG-123", "assignee": "Mona Example"}
856
+ ```
857
+
858
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
859
+
860
+ | `pack_error.code` | Service status | Retryable | Message |
861
+ |---|---|---|---|
862
+ | `connection_unauthorized` | 401 | no | Linear rejected the API key or token. |
863
+ | `forbidden` | matched on the response body | no | built from the service's response |
864
+ | `rate_limited` | 429 | yes | Linear rate limit reached; retry shortly. |
865
+ | `not_found` | matched on the response body | no | built from the service's response |
866
+ | `invalid_request` | matched on the response body | no | built from the service's response |
867
+
868
+ <h3 id="linear-add-comment"><code>add-comment</code></h3>
869
+
870
+ **Comment on issue.** Add a Markdown comment to an issue. Returns the comment id and URL. Not idempotent.
871
+
872
+ Ref `io.b3os/linear/add-comment@1.0.0` · effect `write` · connection `api_key` · MCP tool `linear__add-comment`
873
+
874
+ **curl**
875
+
876
+ ```bash
877
+ curl -s https://beta-api.b3os.org/v1/actions/call \
878
+ -H "Authorization: Bearer $B3OS_API_KEY" \
879
+ -H "Idempotency-Key: 7c1e2f6a-1d43-4a8e-b2a5-3f0c9d5e8b11" \
880
+ -H "Content-Type: application/json" \
881
+ -d '{
882
+ "ref": "io.b3os/linear/add-comment@1",
883
+ "input": {"id": "ENG-123", "body": "Fixed in #43."},
884
+ "connections": {"api_key": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
885
+ }'
886
+ ```
887
+ **TypeScript**
888
+
889
+ ```ts
890
+ import { B3OS } from "@b3os/sdk";
891
+
892
+ const b3os = new B3OS();
893
+ const result = await b3os.actions.call({
894
+ ref: "io.b3os/linear/add-comment@1",
895
+ input: { id: "ENG-123", body: "Fixed in #43." },
896
+ connections: { api_key: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
897
+ }, { idempotencyKey: crypto.randomUUID() });
898
+ console.log(result.output);
899
+ ```
900
+ **Python**
901
+
902
+ ```python
903
+ import uuid
904
+ from b3os import B3OS
905
+
906
+ b3os = B3OS()
907
+ result = b3os.actions.call({
908
+ "ref": "io.b3os/linear/add-comment@1",
909
+ "input": {"id": "ENG-123", "body": "Fixed in #43."},
910
+ "connections": {"api_key": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
911
+ }, idempotency_key=str(uuid.uuid4()))
912
+ print(result["output"])
913
+ ```
914
+ **MCP**
915
+
916
+ ```json
917
+ {
918
+ "method": "tools/call",
919
+ "params": {
920
+ "name": "linear__add-comment",
921
+ "arguments": {"id": "ENG-123", "body": "Fixed in #43."}
922
+ }
923
+ }
924
+ ```
925
+
926
+ Expose the pack as tools with `--packs linear` on the local server or `?packs=linear` on the remote URL, and the agent calls `linear__add-comment` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
927
+
928
+ Output, labeled `fixture`: Comment on issue (documented response shape, example values). From the bundle's `fixtures/add-comment.json`, not a live call.
929
+
930
+ ```json
931
+ {
932
+ "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
933
+ "url": "https://linear.app/acme/issue/eng-123#comment-1b2c3d4e",
934
+ "created_at": "2026-10-26T08:00:00.000Z"
935
+ }
936
+ ```
937
+
938
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
939
+
940
+ | `pack_error.code` | Service status | Retryable | Message |
941
+ |---|---|---|---|
942
+ | `connection_unauthorized` | 401 | no | Linear rejected the API key or token. |
943
+ | `forbidden` | matched on the response body | no | built from the service's response |
944
+ | `rate_limited` | 429 | yes | Linear rate limit reached; retry shortly. |
945
+ | `not_found` | matched on the response body | no | built from the service's response |
946
+ | `invalid_request` | matched on the response body | no | built from the service's response |
947
+
948
+ <h3 id="linear-list-projects"><code>list-projects</code></h3>
949
+
950
+ **List projects.** Projects in the workspace, most recently updated first: name, state (planned, started, completed, ...), progress from 0 to 1, lead, start and target dates, and URL.
951
+
952
+ Ref `io.b3os/linear/list-projects@1.0.0` · effect `read` · connection `api_key` · MCP tool `linear__list-projects`
953
+
954
+ **curl**
955
+
956
+ ```bash
957
+ curl -s https://beta-api.b3os.org/v1/actions/call \
958
+ -H "Authorization: Bearer $B3OS_API_KEY" \
959
+ -H "Content-Type: application/json" \
960
+ -d '{
961
+ "ref": "io.b3os/linear/list-projects@1",
962
+ "input": {"first": 1},
963
+ "connections": {"api_key": "conn_01m5t6cbgdjs1ketgcqwa2sne8"}
964
+ }'
965
+ ```
966
+ **TypeScript**
967
+
968
+ ```ts
969
+ import { B3OS } from "@b3os/sdk";
970
+
971
+ const b3os = new B3OS();
972
+ const result = await b3os.actions.call({
973
+ ref: "io.b3os/linear/list-projects@1",
974
+ input: { first: 1 },
975
+ connections: { api_key: "conn_01m5t6cbgdjs1ketgcqwa2sne8" },
976
+ });
977
+ console.log(result.output);
978
+ ```
979
+ **Python**
980
+
981
+ ```python
982
+ from b3os import B3OS
983
+
984
+ b3os = B3OS()
985
+ result = b3os.actions.call({
986
+ "ref": "io.b3os/linear/list-projects@1",
987
+ "input": {"first": 1},
988
+ "connections": {"api_key": "conn_01m5t6cbgdjs1ketgcqwa2sne8"},
989
+ })
990
+ print(result["output"])
991
+ ```
992
+ **MCP**
993
+
994
+ ```json
995
+ {
996
+ "method": "tools/call",
997
+ "params": {"name": "linear__list-projects", "arguments": {"first": 1}}
998
+ }
999
+ ```
1000
+
1001
+ Expose the pack as tools with `--packs linear` on the local server or `?packs=linear` on the remote URL, and the agent calls `linear__list-projects` with the action's input. The tool uses your newest connection for each key without a `subject`. Without exposing the pack, `actions_call` takes the same input with `ref`.
1002
+
1003
+ Output, labeled `fixture`: List projects (documented response shape, example values). From the bundle's `fixtures/list-projects.json`, not a live call.
1004
+
1005
+ ```json
1006
+ {
1007
+ "projects": [
1008
+ {
1009
+ "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",
1010
+ "name": "Checkout v2",
1011
+ "state": "started",
1012
+ "progress": 0.42,
1013
+ "lead": "Mona Example",
1014
+ "start_date": "2026-09-01",
1015
+ "target_date": "2026-11-15",
1016
+ "url": "https://linear.app/acme/project/checkout-v2-2c3d4e5f"
1017
+ }
1018
+ ]
1019
+ }
1020
+ ```
1021
+
1022
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
1023
+
1024
+ | `pack_error.code` | Service status | Retryable | Message |
1025
+ |---|---|---|---|
1026
+ | `connection_unauthorized` | 401 | no | Linear rejected the API key or token. |
1027
+ | `forbidden` | matched on the response body | no | built from the service's response |
1028
+ | `rate_limited` | 429 | yes | Linear rate limit reached; retry shortly. |
1029
+ | `not_found` | matched on the response body | no | built from the service's response |
1030
+ | `invalid_request` | matched on the response body | no | built from the service's response |