@dual-os/linear-api 6.0.5 → 6.0.6
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/Runner.js +3 -3
- package/Runner.js.map +2 -2
- package/bundle-inventory.json +1 -1
- package/dist/auth.js +4 -4
- package/dist/channel/internal/webhook.js +3 -3
- package/dist/channel/linear-app-client.js +3 -3
- package/dist/channel/linear-app-definition.js +3 -3
- package/dist/channel/linear-app.js +6 -6
- package/dist/generated/http.js +5 -5
- package/dist/generated/operations.js +6 -6
- package/dist/generated/plugin.js +8 -8
- package/dist/plugin.js +11 -11
- package/dist/triggers.js +7 -7
- package/dual-contracts.json +1 -0
- package/dual-plugin.json +1 -1
- package/package.json +1 -1
- package/{plugin-evq9z31a.js → plugin-0jjx6wrv.js} +3 -3
- package/{plugin-c5xtmfce.js → plugin-2j6qrbsr.js} +3 -3
- package/{plugin-292sech3.js → plugin-7kckxk75.js} +3 -3
- package/{plugin-9vdeenc2.js → plugin-ahbd9ttm.js} +159 -118
- package/{plugin-9vdeenc2.js.map → plugin-ahbd9ttm.js.map} +7 -8
- package/{plugin-jgac4d6v.js → plugin-cmxmbpzy.js} +3 -3
- package/{plugin-acwx0zjc.js → plugin-d2qpfdcz.js} +5 -5
- package/{plugin-0pkez622.js → plugin-djc9kq8k.js} +45 -30
- package/{plugin-0pkez622.js.map → plugin-djc9kq8k.js.map} +5 -4
- package/{plugin-5d2kw2pq.js → plugin-fxgg72q4.js} +5 -5
- package/{plugin-pbx41zqr.js → plugin-tcgb970h.js} +2 -2
- package/{plugin-aaq7c99y.js → plugin-w5daqkj4.js} +2 -2
- package/{plugin-03c4ezxj.js → plugin-wemjvjrr.js} +2 -2
- /package/licenses/{@dual-os_sdk@0.9.0 → @dual-os_sdk@0.10.0}/LICENSE +0 -0
- /package/{plugin-evq9z31a.js.map → plugin-0jjx6wrv.js.map} +0 -0
- /package/{plugin-c5xtmfce.js.map → plugin-2j6qrbsr.js.map} +0 -0
- /package/{plugin-292sech3.js.map → plugin-7kckxk75.js.map} +0 -0
- /package/{plugin-jgac4d6v.js.map → plugin-cmxmbpzy.js.map} +0 -0
- /package/{plugin-acwx0zjc.js.map → plugin-d2qpfdcz.js.map} +0 -0
- /package/{plugin-5d2kw2pq.js.map → plugin-fxgg72q4.js.map} +0 -0
- /package/{plugin-pbx41zqr.js.map → plugin-tcgb970h.js.map} +0 -0
- /package/{plugin-aaq7c99y.js.map → plugin-w5daqkj4.js.map} +0 -0
- /package/{plugin-03c4ezxj.js.map → plugin-wemjvjrr.js.map} +0 -0
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
TaggedError2,
|
|
25
25
|
Action_exports,
|
|
26
26
|
Trigger_exports
|
|
27
|
-
} from "./plugin-
|
|
27
|
+
} from "./plugin-ahbd9ttm.js";
|
|
28
28
|
import {
|
|
29
29
|
mutation_webhookCreate2,
|
|
30
30
|
mutation_webhookDelete2
|
|
31
|
-
} from "./plugin-
|
|
31
|
+
} from "./plugin-0jjx6wrv.js";
|
|
32
32
|
|
|
33
33
|
// dist/triggers.js
|
|
34
34
|
var LinearSignatureError = class extends TaggedError2()("LinearSignatureError", {}) {
|
|
@@ -135,4 +135,4 @@ var handlers2 = { event: {
|
|
|
135
135
|
export { triggers2, handlers2 };
|
|
136
136
|
|
|
137
137
|
//# debugId=15AFE37A5253660164756E2164756E21
|
|
138
|
-
//# sourceMappingURL=plugin-
|
|
138
|
+
//# sourceMappingURL=plugin-cmxmbpzy.js.map
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
Action_exports,
|
|
5
5
|
Group_exports,
|
|
6
6
|
Plugin_exports
|
|
7
|
-
} from "./plugin-
|
|
7
|
+
} from "./plugin-ahbd9ttm.js";
|
|
8
8
|
import {
|
|
9
9
|
authMethods2
|
|
10
|
-
} from "./plugin-
|
|
10
|
+
} from "./plugin-2j6qrbsr.js";
|
|
11
11
|
import {
|
|
12
12
|
mutation_agentActivityCreate2,
|
|
13
13
|
mutation_agentActivityCreatePrompt2,
|
|
@@ -521,11 +521,11 @@ import {
|
|
|
521
521
|
query_webhooks2,
|
|
522
522
|
query_workflowState2,
|
|
523
523
|
query_workflowStates2
|
|
524
|
-
} from "./plugin-
|
|
524
|
+
} from "./plugin-0jjx6wrv.js";
|
|
525
525
|
import {
|
|
526
526
|
triggers2,
|
|
527
527
|
handlers2
|
|
528
|
-
} from "./plugin-
|
|
528
|
+
} from "./plugin-cmxmbpzy.js";
|
|
529
529
|
|
|
530
530
|
// dist/generated/plugin.js
|
|
531
531
|
var mutation_agentActivityCreate = Action_exports.make("agent-activity-create", {
|
|
@@ -3612,4 +3612,4 @@ var linearApiPlugin2 = linearApiPluginBase2.pipe(Plugin_exports.provide(live), P
|
|
|
3612
3612
|
export { linearApiPluginBase2, linearApiPlugin2 };
|
|
3613
3613
|
|
|
3614
3614
|
//# debugId=C7700EAF472CA0F464756E2164756E21
|
|
3615
|
-
//# sourceMappingURL=plugin-
|
|
3615
|
+
//# sourceMappingURL=plugin-d2qpfdcz.js.map
|
|
@@ -87,6 +87,7 @@ import {
|
|
|
87
87
|
result,
|
|
88
88
|
map4,
|
|
89
89
|
mapError,
|
|
90
|
+
mapBoth,
|
|
90
91
|
orDie,
|
|
91
92
|
ignore,
|
|
92
93
|
serviceOption,
|
|
@@ -109,7 +110,6 @@ import {
|
|
|
109
110
|
empty3,
|
|
110
111
|
InvalidValue,
|
|
111
112
|
compose,
|
|
112
|
-
transform,
|
|
113
113
|
transformEffect,
|
|
114
114
|
is,
|
|
115
115
|
decodeUnknownEffect,
|
|
@@ -119,6 +119,7 @@ import {
|
|
|
119
119
|
optionalKey,
|
|
120
120
|
optional,
|
|
121
121
|
toType,
|
|
122
|
+
flip,
|
|
122
123
|
Literal,
|
|
123
124
|
Unknown,
|
|
124
125
|
String3,
|
|
@@ -130,6 +131,7 @@ import {
|
|
|
130
131
|
Literals,
|
|
131
132
|
NullOr,
|
|
132
133
|
decodeTo,
|
|
134
|
+
TaggedStruct,
|
|
133
135
|
Int,
|
|
134
136
|
Natural,
|
|
135
137
|
Defect,
|
|
@@ -176,15 +178,14 @@ import {
|
|
|
176
178
|
RequestInit,
|
|
177
179
|
ActionHandlerError,
|
|
178
180
|
fromHttpClientFailure,
|
|
179
|
-
|
|
181
|
+
File3,
|
|
182
|
+
read,
|
|
183
|
+
write,
|
|
180
184
|
Key,
|
|
181
185
|
Event,
|
|
182
186
|
commandSchema,
|
|
183
|
-
Service2
|
|
184
|
-
|
|
185
|
-
read,
|
|
186
|
-
write
|
|
187
|
-
} from "./plugin-9vdeenc2.js";
|
|
187
|
+
Service2
|
|
188
|
+
} from "./plugin-ahbd9ttm.js";
|
|
188
189
|
|
|
189
190
|
// ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/random.js
|
|
190
191
|
var Random = /* @__PURE__ */ Reference("effect/Random", {
|
|
@@ -387,7 +388,7 @@ class Retry extends (/* @__PURE__ */ TaggedClass("Retry")) {
|
|
|
387
388
|
}
|
|
388
389
|
}
|
|
389
390
|
|
|
390
|
-
// ../../../../node_modules/.bun/@dual-os+sdk@0.
|
|
391
|
+
// ../../../../node_modules/.bun/@dual-os+sdk@0.10.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Mcp.js
|
|
391
392
|
var McpError = class extends TaggedError2()("McpError", {
|
|
392
393
|
cause: optional(Defect()),
|
|
393
394
|
message: String3
|
|
@@ -525,7 +526,18 @@ var listTools = fn("Mcp.listTools")(function* (client, endpoint, headers) {
|
|
|
525
526
|
};
|
|
526
527
|
}, scoped);
|
|
527
528
|
|
|
528
|
-
// ../../../../node_modules/.bun/@dual-os+sdk@0.
|
|
529
|
+
// ../../../../node_modules/.bun/@dual-os+sdk@0.10.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/ToolFile.js
|
|
530
|
+
var Schema = TaggedStruct("ToolFile", {
|
|
531
|
+
contentBase64: String3.annotate({
|
|
532
|
+
contentEncoding: "base64",
|
|
533
|
+
description: "Complete file bytes in Base64. Preserve this field without truncation."
|
|
534
|
+
}),
|
|
535
|
+
contentType: NullOr(String3),
|
|
536
|
+
filename: NullOr(String3),
|
|
537
|
+
sizeBytes: Natural
|
|
538
|
+
});
|
|
539
|
+
|
|
540
|
+
// ../../../../node_modules/.bun/@dual-os+sdk@0.10.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Http.js
|
|
529
541
|
var Http_exports = /* @__PURE__ */ __exportAll3({
|
|
530
542
|
Base64FromFile: () => Base64FromFile2,
|
|
531
543
|
Base64UrlFromFile: () => Base64UrlFromFile2,
|
|
@@ -626,11 +638,14 @@ var utf8 = new TextDecoder("utf-8", { fatal: true });
|
|
|
626
638
|
function sniff(bytes) {
|
|
627
639
|
return pipe(findFirst(signatures, (signature) => every(signature[1], (part) => every(part[1], (byte, index) => bytes[part[0] + index] === byte))), map((signature) => signature[0]), orElse(() => liftPredicate("text/plain", () => isSuccess(try_(() => utf8.decode(bytes))))), getOrNull);
|
|
628
640
|
}
|
|
641
|
+
function fileContentType(bytes, declared) {
|
|
642
|
+
return declared === null || pipe(declared, startsWith("application/octet-stream")) ? sniff(bytes) ?? declared : declared;
|
|
643
|
+
}
|
|
629
644
|
function toolFile(bytes, declared, filename) {
|
|
630
645
|
return {
|
|
631
646
|
_tag: "ToolFile",
|
|
632
647
|
contentBase64: encode(bytes),
|
|
633
|
-
contentType:
|
|
648
|
+
contentType: fileContentType(bytes, declared),
|
|
634
649
|
filename,
|
|
635
650
|
sizeBytes: bytes.byteLength
|
|
636
651
|
};
|
|
@@ -668,25 +683,23 @@ function textOf(carrier, content) {
|
|
|
668
683
|
return `data:${content.contentType ?? sniff(content.bytes) ?? "application/octet-stream"};base64,${encode(content.bytes)}`;
|
|
669
684
|
}
|
|
670
685
|
function fileFrom(carrier) {
|
|
671
|
-
return String3.pipe(decodeTo(
|
|
672
|
-
decode: compose(contentOf(carrier),
|
|
673
|
-
|
|
674
|
-
bytes,
|
|
675
|
-
|
|
686
|
+
return String3.pipe(decodeTo(File3, {
|
|
687
|
+
decode: compose(contentOf(carrier), transformEffect((content, options) => pipe(write({
|
|
688
|
+
bytes: content.bytes,
|
|
689
|
+
contentType: fileContentType(content.bytes, content.contentType),
|
|
690
|
+
name: "file"
|
|
691
|
+
}), mapError((error) => new InvalidValue({ expected: error.message }, content, options))))),
|
|
692
|
+
encode: transformEffect((file, options) => pipe(read(file), mapBoth({
|
|
693
|
+
onSuccess: (bytes) => textOf(carrier, {
|
|
694
|
+
bytes,
|
|
695
|
+
contentType: file.contentType
|
|
696
|
+
}),
|
|
697
|
+
onFailure: (error) => new InvalidValue({ expected: error.message }, file, options)
|
|
676
698
|
})))
|
|
677
699
|
}));
|
|
678
700
|
}
|
|
679
701
|
function encodedFrom(carrier) {
|
|
680
|
-
return
|
|
681
|
-
decode: transform((file) => textOf(carrier, {
|
|
682
|
-
bytes: file.contentBase64,
|
|
683
|
-
contentType: file.contentType ?? null
|
|
684
|
-
})),
|
|
685
|
-
encode: compose(contentOf(carrier), transform((content) => ({
|
|
686
|
-
contentBase64: content.bytes,
|
|
687
|
-
contentType: content.contentType
|
|
688
|
-
})))
|
|
689
|
-
}));
|
|
702
|
+
return flip(fileFrom(carrier));
|
|
690
703
|
}
|
|
691
704
|
var FileFromBase642 = fileFrom("base64");
|
|
692
705
|
var FileFromBase64Url2 = fileFrom("base64url");
|
|
@@ -878,12 +891,14 @@ var read2 = fnUntraced(function* (response, body) {
|
|
|
878
891
|
}
|
|
879
892
|
const bytes = new Uint8Array(yield* response.arrayBuffer);
|
|
880
893
|
const name = dispositionName(response.headers["content-disposition"]);
|
|
881
|
-
if (body === "file")
|
|
894
|
+
if (body === "file") {
|
|
895
|
+
const declared = response.headers["content-type"] ?? null;
|
|
882
896
|
return yield* pipe(write({
|
|
883
897
|
bytes,
|
|
884
|
-
contentType:
|
|
898
|
+
contentType: fileContentType(bytes, declared),
|
|
885
899
|
name: name ?? "file"
|
|
886
900
|
}), mapError(fileFailed));
|
|
901
|
+
}
|
|
887
902
|
return toolFile(bytes, response.headers["content-type"] ?? null, name ?? null);
|
|
888
903
|
});
|
|
889
904
|
function make2(auth) {
|
|
@@ -1103,7 +1118,7 @@ Content-Type: ${contentType}\r
|
|
|
1103
1118
|
};
|
|
1104
1119
|
}
|
|
1105
1120
|
|
|
1106
|
-
// ../../../../node_modules/.bun/@dual-os+sdk@0.
|
|
1121
|
+
// ../../../../node_modules/.bun/@dual-os+sdk@0.10.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AgentChannelConformance.js
|
|
1107
1122
|
var Command = commandSchema(Json);
|
|
1108
1123
|
var Fixture = Struct({
|
|
1109
1124
|
activate: Command,
|
|
@@ -1253,5 +1268,5 @@ var run = fn("AgentChannelConformance.run")(function* (input) {
|
|
|
1253
1268
|
|
|
1254
1269
|
export { Http_exports, File2, FileFromBase642, FileFromBase64Url2, Base64FromFile2, Base64UrlFromFile2, FileFromDataUri2, DataUriFromFile2, DateTimeFromUnixSeconds2, UnixSecondsFromDateTime2, DateTimeFromRfc28222, Rfc2822FromDateTime2, decoded2, path2, literal2, segments2, params2, form2, continuation2, preauthenticated2 };
|
|
1255
1270
|
|
|
1256
|
-
//# debugId=
|
|
1257
|
-
//# sourceMappingURL=plugin-
|
|
1271
|
+
//# debugId=765BA1D1F89E54B564756E2164756E21
|
|
1272
|
+
//# sourceMappingURL=plugin-djc9kq8k.js.map
|