@dual-os/linear-api 0.0.0-stage → 6.0.5

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 (78) hide show
  1. package/LICENSE +29 -0
  2. package/README.md +36 -2
  3. package/Runner.js +5537 -0
  4. package/Runner.js.map +59 -0
  5. package/bundle-inventory.json +1 -0
  6. package/dist/_virtual/_rolldown/runtime.js +10 -0
  7. package/dist/_virtual/_rolldown/runtime.js.map +9 -0
  8. package/dist/auth.d.ts +51 -0
  9. package/dist/auth.d.ts.map +1 -0
  10. package/dist/auth.js +19 -0
  11. package/dist/auth.js.map +9 -0
  12. package/dist/channel/internal/webhook.d.ts +96 -0
  13. package/dist/channel/internal/webhook.d.ts.map +1 -0
  14. package/dist/channel/internal/webhook.js +20 -0
  15. package/dist/channel/internal/webhook.js.map +9 -0
  16. package/dist/channel/linear-app-client.d.ts +54 -0
  17. package/dist/channel/linear-app-client.d.ts.map +1 -0
  18. package/dist/channel/linear-app-client.js +14 -0
  19. package/dist/channel/linear-app-client.js.map +9 -0
  20. package/dist/channel/linear-app-definition.d.ts +171 -0
  21. package/dist/channel/linear-app-definition.d.ts.map +1 -0
  22. package/dist/channel/linear-app-definition.js +18 -0
  23. package/dist/channel/linear-app-definition.js.map +9 -0
  24. package/dist/channel/linear-app.d.ts +65 -0
  25. package/dist/channel/linear-app.d.ts.map +1 -0
  26. package/dist/channel/linear-app.js +15 -0
  27. package/dist/channel/linear-app.js.map +9 -0
  28. package/dist/generated/http.d.ts +81 -0
  29. package/dist/generated/http.d.ts.map +1 -0
  30. package/dist/generated/http.js +66 -0
  31. package/dist/generated/http.js.map +9 -0
  32. package/dist/generated/operations.d.ts +14326 -0
  33. package/dist/generated/operations.d.ts.map +1 -0
  34. package/dist/generated/operations.js +3640 -0
  35. package/dist/generated/operations.js.map +9 -0
  36. package/dist/generated/plugin.d.ts +989 -0
  37. package/dist/generated/plugin.d.ts.map +1 -0
  38. package/dist/generated/plugin.js +20 -0
  39. package/dist/generated/plugin.js.map +9 -0
  40. package/dist/plugin.d.ts +4278 -0
  41. package/dist/plugin.d.ts.map +1 -0
  42. package/dist/plugin.js +33 -0
  43. package/dist/plugin.js.map +10 -0
  44. package/dist/triggers.d.ts +211 -0
  45. package/dist/triggers.d.ts.map +1 -0
  46. package/dist/triggers.js +19 -0
  47. package/dist/triggers.js.map +9 -0
  48. package/dual-plugin.json +1 -0
  49. package/licenses/@dual-os_sdk@0.9.0/LICENSE +4 -0
  50. package/licenses/@effect_platform-node-shared@4.1.2/LICENSE +21 -0
  51. package/licenses/@effect_platform-node@4.1.2/LICENSE +21 -0
  52. package/licenses/effect@4.1.2/LICENSE +21 -0
  53. package/package.json +1 -6
  54. package/plugin-03c4ezxj.js +244 -0
  55. package/plugin-03c4ezxj.js.map +10 -0
  56. package/plugin-0pkez622.js +1257 -0
  57. package/plugin-0pkez622.js.map +17 -0
  58. package/plugin-292sech3.js +64 -0
  59. package/plugin-292sech3.js.map +10 -0
  60. package/plugin-2jdfj02n.js +18 -0
  61. package/plugin-2jdfj02n.js.map +10 -0
  62. package/plugin-5d2kw2pq.js +274 -0
  63. package/plugin-5d2kw2pq.js.map +10 -0
  64. package/plugin-9vdeenc2.js +19263 -0
  65. package/plugin-9vdeenc2.js.map +158 -0
  66. package/plugin-aaq7c99y.js +79 -0
  67. package/plugin-aaq7c99y.js.map +10 -0
  68. package/plugin-acwx0zjc.js +3615 -0
  69. package/plugin-acwx0zjc.js.map +10 -0
  70. package/plugin-c5xtmfce.js +81 -0
  71. package/plugin-c5xtmfce.js.map +10 -0
  72. package/plugin-evq9z31a.js +14513 -0
  73. package/plugin-evq9z31a.js.map +10 -0
  74. package/plugin-jgac4d6v.js +138 -0
  75. package/plugin-jgac4d6v.js.map +10 -0
  76. package/plugin-pbx41zqr.js +204 -0
  77. package/plugin-pbx41zqr.js.map +10 -0
  78. package/plugin.json +46 -0
package/LICENSE ADDED
@@ -0,0 +1,29 @@
1
+ All rights reserved.
2
+
3
+ This package is proprietary and is not licensed for public use or redistribution.
4
+ Use and distribution require permission from the rights holder under a separate agreement.
5
+
6
+ Portions of this package are adapted from HumanLayer effect-channels and are
7
+ provided under the following license:
8
+
9
+ MIT License
10
+
11
+ Copyright (c) 2026 HumanLayer
12
+
13
+ Permission is hereby granted, free of charge, to any person obtaining a copy
14
+ of this software and associated documentation files (the "Software"), to deal
15
+ in the Software without restriction, including without limitation the rights
16
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
17
+ copies of the Software, and to permit persons to whom the Software is
18
+ furnished to do so, subject to the following conditions:
19
+
20
+ The above copyright notice and this permission notice shall be included in all
21
+ copies or substantial portions of the Software.
22
+
23
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
26
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
28
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
29
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,37 @@
1
- # Temporary Holding Version
1
+ # Linear Agent Channel
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ `@dual-os/linear-api` includes the Linear API Actions, event Trigger and Agent Channel.
4
+
5
+ Linear Agent Channel `linear-api/agent-session`. It serves the
6
+ Agent Sessions of the customer's own Linear app, installed with `actor=app`: one Agent Session is
7
+ one conversation thread (`conversationKey` is the issue, `threadKey` the session). Session starts
8
+ and prompts arrive as messages with `respond: true`, a stop prompt as a `stop` event, and the
9
+ app's own activities are ignored. Deployment settings choose the teams (`teamIds`, empty for all;
10
+ a session outside an issue has no team) and who (`access`, `allowedSenderKeys`) can start a
11
+ session; Linear has no `respondTo`, and its events carry no project. The same plugin retains
12
+ its existing API Actions and Workflow Triggers.
13
+
14
+ Output operations: `present_outcome` (activity `response`, `error` when failed, `elicitation`
15
+ with Linear's `select` signal when awaiting input), `create_message` (a lasting thought),
16
+ `set_activity` (an ephemeral thought; idle ends the activity with a response), `render_plan` (the session's Agent
17
+ Plan, a Linear technology preview) and `set_reaction` on the comment that started the turn, else
18
+ the issue. Activities cannot be edited or deleted. `read_context` returns the issue's latest user
19
+ comments from at most 500 recent comments. Activity UUIDs derive from their Delivery; reaction
20
+ UUIDs derive from the app, target and emoji, so retries are idempotent.
21
+
22
+ Allowed session starts receive an ephemeral acknowledgement thought during webhook handling,
23
+ with a stable per-session ID and a 3-second API timeout. Failure fails ingress for Linear to
24
+ retry. Run scheduling is not the acknowledgement path and cannot guarantee Linear's 10-second
25
+ activity deadline. Network and host latency can still miss that deadline or the 5-second webhook
26
+ deadline. Denied senders receive no acknowledgement.
27
+
28
+ Connection: `app` with accessToken, signingSecret, organizationId and appUserId. Activation checks
29
+ that the token acts as that app user in that workspace. Webhooks must carry a valid
30
+ `Linear-Signature` HMAC-SHA256 and a `webhookTimestamp` within a minute of now.
31
+
32
+ Import `linearApiPluginBase` from `@dual-os/linear-api/definition` and `linearApiPlugin` from
33
+ `@dual-os/linear-api/executable`. Existing API Connections remain valid for Actions and Triggers;
34
+ only the `app` method can activate this Channel. Old `linear-app` Channel pins are not rewritten:
35
+ reselect this Channel and create a Connection under `linear-api` before redeploying.
36
+
37
+ Ported in part from HumanLayer effect-channels (MIT License, Copyright (c) 2026 HumanLayer).