@dual-os/linear-api 0.0.0-stage → 6.0.4
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.
- package/LICENSE +29 -0
- package/README.md +36 -2
- package/Runner.js +5771 -0
- package/Runner.js.map +63 -0
- package/bundle-inventory.json +1 -0
- package/dist/_virtual/_rolldown/runtime.js +10 -0
- package/dist/_virtual/_rolldown/runtime.js.map +9 -0
- package/dist/auth.d.ts +51 -0
- package/dist/auth.d.ts.map +1 -0
- package/dist/auth.js +19 -0
- package/dist/auth.js.map +9 -0
- package/dist/channel/internal/webhook.d.ts +96 -0
- package/dist/channel/internal/webhook.d.ts.map +1 -0
- package/dist/channel/internal/webhook.js +20 -0
- package/dist/channel/internal/webhook.js.map +9 -0
- package/dist/channel/linear-app-client.d.ts +54 -0
- package/dist/channel/linear-app-client.d.ts.map +1 -0
- package/dist/channel/linear-app-client.js +14 -0
- package/dist/channel/linear-app-client.js.map +9 -0
- package/dist/channel/linear-app-definition.d.ts +171 -0
- package/dist/channel/linear-app-definition.d.ts.map +1 -0
- package/dist/channel/linear-app-definition.js +18 -0
- package/dist/channel/linear-app-definition.js.map +9 -0
- package/dist/channel/linear-app.d.ts +65 -0
- package/dist/channel/linear-app.d.ts.map +1 -0
- package/dist/channel/linear-app.js +15 -0
- package/dist/channel/linear-app.js.map +9 -0
- package/dist/generated/http.d.ts +81 -0
- package/dist/generated/http.d.ts.map +1 -0
- package/dist/generated/http.js +66 -0
- package/dist/generated/http.js.map +9 -0
- package/dist/generated/operations.d.ts +14326 -0
- package/dist/generated/operations.d.ts.map +1 -0
- package/dist/generated/operations.js +3640 -0
- package/dist/generated/operations.js.map +9 -0
- package/dist/generated/plugin.d.ts +989 -0
- package/dist/generated/plugin.d.ts.map +1 -0
- package/dist/generated/plugin.js +20 -0
- package/dist/generated/plugin.js.map +9 -0
- package/dist/plugin.d.ts +4278 -0
- package/dist/plugin.d.ts.map +1 -0
- package/dist/plugin.js +33 -0
- package/dist/plugin.js.map +10 -0
- package/dist/triggers.d.ts +211 -0
- package/dist/triggers.d.ts.map +1 -0
- package/dist/triggers.js +19 -0
- package/dist/triggers.js.map +9 -0
- package/dual-plugin.json +1 -0
- package/licenses/@dual-os_sdk@0.8.1/LICENSE +4 -0
- package/licenses/@effect_platform-node-shared@4.1.2/LICENSE +21 -0
- package/licenses/@effect_platform-node@4.1.2/LICENSE +21 -0
- package/licenses/effect@4.1.2/LICENSE +21 -0
- package/package.json +1 -6
- package/plugin-15tbf6dq.js +79 -0
- package/plugin-15tbf6dq.js.map +10 -0
- package/plugin-2jdfj02n.js +18 -0
- package/plugin-2jdfj02n.js.map +10 -0
- package/plugin-5bqv66ke.js +14513 -0
- package/plugin-5bqv66ke.js.map +10 -0
- package/plugin-9w5999vc.js +81 -0
- package/plugin-9w5999vc.js.map +10 -0
- package/plugin-bcdkw9ac.js +3615 -0
- package/plugin-bcdkw9ac.js.map +10 -0
- package/plugin-d4a2ytg0.js +19311 -0
- package/plugin-d4a2ytg0.js.map +159 -0
- package/plugin-dbxxf9k5.js +64 -0
- package/plugin-dbxxf9k5.js.map +10 -0
- package/plugin-e503g25g.js +204 -0
- package/plugin-e503g25g.js.map +10 -0
- package/plugin-s3mapcpn.js +138 -0
- package/plugin-s3mapcpn.js.map +10 -0
- package/plugin-srg9rdjf.js +244 -0
- package/plugin-srg9rdjf.js.map +10 -0
- package/plugin-v0kgp19h.js +1257 -0
- package/plugin-v0kgp19h.js.map +17 -0
- package/plugin-xv11dhcc.js +274 -0
- package/plugin-xv11dhcc.js.map +10 -0
- 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
|
-
#
|
|
1
|
+
# Linear Agent Channel
|
|
2
2
|
|
|
3
|
-
|
|
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).
|