replicas-mcp 0.2.2 → 0.2.3
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/dist/bowser-SUS2LALV.js +2822 -0
- package/dist/chunk-2KQN26CJ.js +2094 -0
- package/dist/chunk-2TPRCPOE.js +2865 -0
- package/dist/chunk-67ORAF4B.js +1490 -0
- package/dist/chunk-C6IOMGXW.js +1052 -0
- package/dist/chunk-PTKAHAQW.js +576 -0
- package/dist/chunk-YPGSID6T.js +436 -0
- package/dist/{dist-es-BPXINP6D.js → dist-es-7BMXPGZZ.js} +21 -31
- package/dist/{dist-es-SCPV3ZCZ.js → dist-es-7SO54G6Q.js} +25 -23
- package/dist/{dist-es-RNSS2U3E.js → dist-es-E6ZIDLCG.js} +27 -32
- package/dist/{dist-es-HU5E5HQ2.js → dist-es-IW3K6GSR.js} +9 -10
- package/dist/{dist-es-VRURAF5E.js → dist-es-RAHG6NR3.js} +4 -3
- package/dist/{dist-es-7T436X7S.js → dist-es-ULKA5ONB.js} +10 -11
- package/dist/{dist-es-BSYEGR6D.js → dist-es-UUUR3KKD.js} +47 -51
- package/dist/event-streams-3PLTDEYP.js +1377 -0
- package/dist/index.js +948 -304
- package/dist/{loadSso-XSERNFCM.js → loadSso-EFZHEVVK.js} +84 -61
- package/dist/{signin-GATCKLJP.js → signin-VWN2NRES.js} +94 -82
- package/dist/{sso-oidc-JF4BALR2.js → sso-oidc-GJQTR2P3.js} +102 -63
- package/dist/{sts-UFAVCISZ.js → sts-5SKYP3PH.js} +4964 -5055
- package/package.json +1 -1
- package/src/index.ts +2 -2
- package/dist/chunk-2KQ6OUSY.js +0 -1033
- package/dist/chunk-2Y7PD56W.js +0 -164
- package/dist/chunk-5VUQ55WW.js +0 -242
- package/dist/chunk-AAVVX4U5.js +0 -175
- package/dist/chunk-CXFLI7S3.js +0 -5706
- package/dist/chunk-ERL3EC7G.js +0 -44
- package/dist/chunk-SGITM26Q.js +0 -877
- package/dist/chunk-ST5JVROM.js +0 -39
- package/dist/chunk-SWX24AGM.js +0 -62
- package/dist/chunk-WPAL27HA.js +0 -29
- package/dist/chunk-ZDZBYCXV.js +0 -52
- package/dist/chunk-ZNARSMJG.js +0 -14
- package/dist/event-streams-EHSSWA6E.js +0 -253
package/dist/index.js
CHANGED
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
__toESM
|
|
6
6
|
} from "./chunk-MO4EEYFW.js";
|
|
7
7
|
|
|
8
|
-
// ../node_modules/.bun/yaml@2.
|
|
8
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/identity.js
|
|
9
9
|
var require_identity = __commonJS({
|
|
10
|
-
"../node_modules/.bun/yaml@2.
|
|
10
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/identity.js"(exports) {
|
|
11
11
|
"use strict";
|
|
12
12
|
var ALIAS = /* @__PURE__ */ Symbol.for("yaml.alias");
|
|
13
13
|
var DOC = /* @__PURE__ */ Symbol.for("yaml.document");
|
|
@@ -62,9 +62,9 @@ var require_identity = __commonJS({
|
|
|
62
62
|
}
|
|
63
63
|
});
|
|
64
64
|
|
|
65
|
-
// ../node_modules/.bun/yaml@2.
|
|
65
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/visit.js
|
|
66
66
|
var require_visit = __commonJS({
|
|
67
|
-
"../node_modules/.bun/yaml@2.
|
|
67
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/visit.js"(exports) {
|
|
68
68
|
"use strict";
|
|
69
69
|
var identity = require_identity();
|
|
70
70
|
var BREAK = /* @__PURE__ */ Symbol("break visit");
|
|
@@ -220,9 +220,9 @@ var require_visit = __commonJS({
|
|
|
220
220
|
}
|
|
221
221
|
});
|
|
222
222
|
|
|
223
|
-
// ../node_modules/.bun/yaml@2.
|
|
223
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/directives.js
|
|
224
224
|
var require_directives = __commonJS({
|
|
225
|
-
"../node_modules/.bun/yaml@2.
|
|
225
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/directives.js"(exports) {
|
|
226
226
|
"use strict";
|
|
227
227
|
var identity = require_identity();
|
|
228
228
|
var visit = require_visit();
|
|
@@ -391,9 +391,9 @@ var require_directives = __commonJS({
|
|
|
391
391
|
}
|
|
392
392
|
});
|
|
393
393
|
|
|
394
|
-
// ../node_modules/.bun/yaml@2.
|
|
394
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/anchors.js
|
|
395
395
|
var require_anchors = __commonJS({
|
|
396
|
-
"../node_modules/.bun/yaml@2.
|
|
396
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/anchors.js"(exports) {
|
|
397
397
|
"use strict";
|
|
398
398
|
var identity = require_identity();
|
|
399
399
|
var visit = require_visit();
|
|
@@ -461,9 +461,9 @@ var require_anchors = __commonJS({
|
|
|
461
461
|
}
|
|
462
462
|
});
|
|
463
463
|
|
|
464
|
-
// ../node_modules/.bun/yaml@2.
|
|
464
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/applyReviver.js
|
|
465
465
|
var require_applyReviver = __commonJS({
|
|
466
|
-
"../node_modules/.bun/yaml@2.
|
|
466
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/applyReviver.js"(exports) {
|
|
467
467
|
"use strict";
|
|
468
468
|
function applyReviver(reviver, obj, key, val) {
|
|
469
469
|
if (val && typeof val === "object") {
|
|
@@ -511,9 +511,9 @@ var require_applyReviver = __commonJS({
|
|
|
511
511
|
}
|
|
512
512
|
});
|
|
513
513
|
|
|
514
|
-
// ../node_modules/.bun/yaml@2.
|
|
514
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/toJS.js
|
|
515
515
|
var require_toJS = __commonJS({
|
|
516
|
-
"../node_modules/.bun/yaml@2.
|
|
516
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/toJS.js"(exports) {
|
|
517
517
|
"use strict";
|
|
518
518
|
var identity = require_identity();
|
|
519
519
|
function toJS(value, arg, ctx) {
|
|
@@ -541,9 +541,9 @@ var require_toJS = __commonJS({
|
|
|
541
541
|
}
|
|
542
542
|
});
|
|
543
543
|
|
|
544
|
-
// ../node_modules/.bun/yaml@2.
|
|
544
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Node.js
|
|
545
545
|
var require_Node = __commonJS({
|
|
546
|
-
"../node_modules/.bun/yaml@2.
|
|
546
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Node.js"(exports) {
|
|
547
547
|
"use strict";
|
|
548
548
|
var applyReviver = require_applyReviver();
|
|
549
549
|
var identity = require_identity();
|
|
@@ -582,9 +582,9 @@ var require_Node = __commonJS({
|
|
|
582
582
|
}
|
|
583
583
|
});
|
|
584
584
|
|
|
585
|
-
// ../node_modules/.bun/yaml@2.
|
|
585
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Alias.js
|
|
586
586
|
var require_Alias = __commonJS({
|
|
587
|
-
"../node_modules/.bun/yaml@2.
|
|
587
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Alias.js"(exports) {
|
|
588
588
|
"use strict";
|
|
589
589
|
var anchors = require_anchors();
|
|
590
590
|
var visit = require_visit();
|
|
@@ -698,9 +698,9 @@ var require_Alias = __commonJS({
|
|
|
698
698
|
}
|
|
699
699
|
});
|
|
700
700
|
|
|
701
|
-
// ../node_modules/.bun/yaml@2.
|
|
701
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Scalar.js
|
|
702
702
|
var require_Scalar = __commonJS({
|
|
703
|
-
"../node_modules/.bun/yaml@2.
|
|
703
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Scalar.js"(exports) {
|
|
704
704
|
"use strict";
|
|
705
705
|
var identity = require_identity();
|
|
706
706
|
var Node = require_Node();
|
|
@@ -728,9 +728,9 @@ var require_Scalar = __commonJS({
|
|
|
728
728
|
}
|
|
729
729
|
});
|
|
730
730
|
|
|
731
|
-
// ../node_modules/.bun/yaml@2.
|
|
731
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/createNode.js
|
|
732
732
|
var require_createNode = __commonJS({
|
|
733
|
-
"../node_modules/.bun/yaml@2.
|
|
733
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/createNode.js"(exports) {
|
|
734
734
|
"use strict";
|
|
735
735
|
var Alias = require_Alias();
|
|
736
736
|
var identity = require_identity();
|
|
@@ -803,9 +803,9 @@ var require_createNode = __commonJS({
|
|
|
803
803
|
}
|
|
804
804
|
});
|
|
805
805
|
|
|
806
|
-
// ../node_modules/.bun/yaml@2.
|
|
806
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Collection.js
|
|
807
807
|
var require_Collection = __commonJS({
|
|
808
|
-
"../node_modules/.bun/yaml@2.
|
|
808
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Collection.js"(exports) {
|
|
809
809
|
"use strict";
|
|
810
810
|
var createNode = require_createNode();
|
|
811
811
|
var identity = require_identity();
|
|
@@ -946,9 +946,9 @@ var require_Collection = __commonJS({
|
|
|
946
946
|
}
|
|
947
947
|
});
|
|
948
948
|
|
|
949
|
-
// ../node_modules/.bun/yaml@2.
|
|
949
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyComment.js
|
|
950
950
|
var require_stringifyComment = __commonJS({
|
|
951
|
-
"../node_modules/.bun/yaml@2.
|
|
951
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyComment.js"(exports) {
|
|
952
952
|
"use strict";
|
|
953
953
|
var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
|
|
954
954
|
function indentComment(comment, indent) {
|
|
@@ -963,9 +963,9 @@ var require_stringifyComment = __commonJS({
|
|
|
963
963
|
}
|
|
964
964
|
});
|
|
965
965
|
|
|
966
|
-
// ../node_modules/.bun/yaml@2.
|
|
966
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/foldFlowLines.js
|
|
967
967
|
var require_foldFlowLines = __commonJS({
|
|
968
|
-
"../node_modules/.bun/yaml@2.
|
|
968
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/foldFlowLines.js"(exports) {
|
|
969
969
|
"use strict";
|
|
970
970
|
var FOLD_FLOW = "flow";
|
|
971
971
|
var FOLD_BLOCK = "block";
|
|
@@ -1099,9 +1099,9 @@ ${indent}${text.slice(fold + 1, end2)}`;
|
|
|
1099
1099
|
}
|
|
1100
1100
|
});
|
|
1101
1101
|
|
|
1102
|
-
// ../node_modules/.bun/yaml@2.
|
|
1102
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyString.js
|
|
1103
1103
|
var require_stringifyString = __commonJS({
|
|
1104
|
-
"../node_modules/.bun/yaml@2.
|
|
1104
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyString.js"(exports) {
|
|
1105
1105
|
"use strict";
|
|
1106
1106
|
var Scalar = require_Scalar();
|
|
1107
1107
|
var foldFlowLines = require_foldFlowLines();
|
|
@@ -1382,9 +1382,9 @@ ${indent}`);
|
|
|
1382
1382
|
}
|
|
1383
1383
|
});
|
|
1384
1384
|
|
|
1385
|
-
// ../node_modules/.bun/yaml@2.
|
|
1385
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringify.js
|
|
1386
1386
|
var require_stringify = __commonJS({
|
|
1387
|
-
"../node_modules/.bun/yaml@2.
|
|
1387
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringify.js"(exports) {
|
|
1388
1388
|
"use strict";
|
|
1389
1389
|
var anchors = require_anchors();
|
|
1390
1390
|
var identity = require_identity();
|
|
@@ -1506,9 +1506,9 @@ ${ctx.indent}${str}`;
|
|
|
1506
1506
|
}
|
|
1507
1507
|
});
|
|
1508
1508
|
|
|
1509
|
-
// ../node_modules/.bun/yaml@2.
|
|
1509
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyPair.js
|
|
1510
1510
|
var require_stringifyPair = __commonJS({
|
|
1511
|
-
"../node_modules/.bun/yaml@2.
|
|
1511
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyPair.js"(exports) {
|
|
1512
1512
|
"use strict";
|
|
1513
1513
|
var identity = require_identity();
|
|
1514
1514
|
var Scalar = require_Scalar();
|
|
@@ -1639,9 +1639,9 @@ ${ctx.indent}`;
|
|
|
1639
1639
|
}
|
|
1640
1640
|
});
|
|
1641
1641
|
|
|
1642
|
-
// ../node_modules/.bun/yaml@2.
|
|
1642
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/log.js
|
|
1643
1643
|
var require_log = __commonJS({
|
|
1644
|
-
"../node_modules/.bun/yaml@2.
|
|
1644
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/log.js"(exports) {
|
|
1645
1645
|
"use strict";
|
|
1646
1646
|
var node_process = __require("process");
|
|
1647
1647
|
function debug(logLevel, ...messages) {
|
|
@@ -1661,9 +1661,9 @@ var require_log = __commonJS({
|
|
|
1661
1661
|
}
|
|
1662
1662
|
});
|
|
1663
1663
|
|
|
1664
|
-
// ../node_modules/.bun/yaml@2.
|
|
1664
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/merge.js
|
|
1665
1665
|
var require_merge = __commonJS({
|
|
1666
|
-
"../node_modules/.bun/yaml@2.
|
|
1666
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/merge.js"(exports) {
|
|
1667
1667
|
"use strict";
|
|
1668
1668
|
var identity = require_identity();
|
|
1669
1669
|
var Scalar = require_Scalar();
|
|
@@ -1721,9 +1721,9 @@ var require_merge = __commonJS({
|
|
|
1721
1721
|
}
|
|
1722
1722
|
});
|
|
1723
1723
|
|
|
1724
|
-
// ../node_modules/.bun/yaml@2.
|
|
1724
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/addPairToJSMap.js
|
|
1725
1725
|
var require_addPairToJSMap = __commonJS({
|
|
1726
|
-
"../node_modules/.bun/yaml@2.
|
|
1726
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports) {
|
|
1727
1727
|
"use strict";
|
|
1728
1728
|
var log = require_log();
|
|
1729
1729
|
var merge = require_merge();
|
|
@@ -1785,9 +1785,9 @@ var require_addPairToJSMap = __commonJS({
|
|
|
1785
1785
|
}
|
|
1786
1786
|
});
|
|
1787
1787
|
|
|
1788
|
-
// ../node_modules/.bun/yaml@2.
|
|
1788
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Pair.js
|
|
1789
1789
|
var require_Pair = __commonJS({
|
|
1790
|
-
"../node_modules/.bun/yaml@2.
|
|
1790
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Pair.js"(exports) {
|
|
1791
1791
|
"use strict";
|
|
1792
1792
|
var createNode = require_createNode();
|
|
1793
1793
|
var stringifyPair = require_stringifyPair();
|
|
@@ -1825,9 +1825,9 @@ var require_Pair = __commonJS({
|
|
|
1825
1825
|
}
|
|
1826
1826
|
});
|
|
1827
1827
|
|
|
1828
|
-
// ../node_modules/.bun/yaml@2.
|
|
1828
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyCollection.js
|
|
1829
1829
|
var require_stringifyCollection = __commonJS({
|
|
1830
|
-
"../node_modules/.bun/yaml@2.
|
|
1830
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyCollection.js"(exports) {
|
|
1831
1831
|
"use strict";
|
|
1832
1832
|
var identity = require_identity();
|
|
1833
1833
|
var stringify = require_stringify();
|
|
@@ -1976,9 +1976,9 @@ ${indent}${end}`;
|
|
|
1976
1976
|
}
|
|
1977
1977
|
});
|
|
1978
1978
|
|
|
1979
|
-
// ../node_modules/.bun/yaml@2.
|
|
1979
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLMap.js
|
|
1980
1980
|
var require_YAMLMap = __commonJS({
|
|
1981
|
-
"../node_modules/.bun/yaml@2.
|
|
1981
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLMap.js"(exports) {
|
|
1982
1982
|
"use strict";
|
|
1983
1983
|
var stringifyCollection = require_stringifyCollection();
|
|
1984
1984
|
var addPairToJSMap = require_addPairToJSMap();
|
|
@@ -2120,9 +2120,9 @@ var require_YAMLMap = __commonJS({
|
|
|
2120
2120
|
}
|
|
2121
2121
|
});
|
|
2122
2122
|
|
|
2123
|
-
// ../node_modules/.bun/yaml@2.
|
|
2123
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/map.js
|
|
2124
2124
|
var require_map = __commonJS({
|
|
2125
|
-
"../node_modules/.bun/yaml@2.
|
|
2125
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/map.js"(exports) {
|
|
2126
2126
|
"use strict";
|
|
2127
2127
|
var identity = require_identity();
|
|
2128
2128
|
var YAMLMap = require_YAMLMap();
|
|
@@ -2142,9 +2142,9 @@ var require_map = __commonJS({
|
|
|
2142
2142
|
}
|
|
2143
2143
|
});
|
|
2144
2144
|
|
|
2145
|
-
// ../node_modules/.bun/yaml@2.
|
|
2145
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLSeq.js
|
|
2146
2146
|
var require_YAMLSeq = __commonJS({
|
|
2147
|
-
"../node_modules/.bun/yaml@2.
|
|
2147
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLSeq.js"(exports) {
|
|
2148
2148
|
"use strict";
|
|
2149
2149
|
var createNode = require_createNode();
|
|
2150
2150
|
var stringifyCollection = require_stringifyCollection();
|
|
@@ -2258,9 +2258,9 @@ var require_YAMLSeq = __commonJS({
|
|
|
2258
2258
|
}
|
|
2259
2259
|
});
|
|
2260
2260
|
|
|
2261
|
-
// ../node_modules/.bun/yaml@2.
|
|
2261
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/seq.js
|
|
2262
2262
|
var require_seq = __commonJS({
|
|
2263
|
-
"../node_modules/.bun/yaml@2.
|
|
2263
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/seq.js"(exports) {
|
|
2264
2264
|
"use strict";
|
|
2265
2265
|
var identity = require_identity();
|
|
2266
2266
|
var YAMLSeq = require_YAMLSeq();
|
|
@@ -2280,9 +2280,9 @@ var require_seq = __commonJS({
|
|
|
2280
2280
|
}
|
|
2281
2281
|
});
|
|
2282
2282
|
|
|
2283
|
-
// ../node_modules/.bun/yaml@2.
|
|
2283
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/string.js
|
|
2284
2284
|
var require_string = __commonJS({
|
|
2285
|
-
"../node_modules/.bun/yaml@2.
|
|
2285
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/string.js"(exports) {
|
|
2286
2286
|
"use strict";
|
|
2287
2287
|
var stringifyString = require_stringifyString();
|
|
2288
2288
|
var string = {
|
|
@@ -2299,9 +2299,9 @@ var require_string = __commonJS({
|
|
|
2299
2299
|
}
|
|
2300
2300
|
});
|
|
2301
2301
|
|
|
2302
|
-
// ../node_modules/.bun/yaml@2.
|
|
2302
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/null.js
|
|
2303
2303
|
var require_null = __commonJS({
|
|
2304
|
-
"../node_modules/.bun/yaml@2.
|
|
2304
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/null.js"(exports) {
|
|
2305
2305
|
"use strict";
|
|
2306
2306
|
var Scalar = require_Scalar();
|
|
2307
2307
|
var nullTag = {
|
|
@@ -2317,9 +2317,9 @@ var require_null = __commonJS({
|
|
|
2317
2317
|
}
|
|
2318
2318
|
});
|
|
2319
2319
|
|
|
2320
|
-
// ../node_modules/.bun/yaml@2.
|
|
2320
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/bool.js
|
|
2321
2321
|
var require_bool = __commonJS({
|
|
2322
|
-
"../node_modules/.bun/yaml@2.
|
|
2322
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/bool.js"(exports) {
|
|
2323
2323
|
"use strict";
|
|
2324
2324
|
var Scalar = require_Scalar();
|
|
2325
2325
|
var boolTag = {
|
|
@@ -2341,9 +2341,9 @@ var require_bool = __commonJS({
|
|
|
2341
2341
|
}
|
|
2342
2342
|
});
|
|
2343
2343
|
|
|
2344
|
-
// ../node_modules/.bun/yaml@2.
|
|
2344
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyNumber.js
|
|
2345
2345
|
var require_stringifyNumber = __commonJS({
|
|
2346
|
-
"../node_modules/.bun/yaml@2.
|
|
2346
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyNumber.js"(exports) {
|
|
2347
2347
|
"use strict";
|
|
2348
2348
|
function stringifyNumber({ format, minFractionDigits, tag, value }) {
|
|
2349
2349
|
if (typeof value === "bigint")
|
|
@@ -2368,9 +2368,9 @@ var require_stringifyNumber = __commonJS({
|
|
|
2368
2368
|
}
|
|
2369
2369
|
});
|
|
2370
2370
|
|
|
2371
|
-
// ../node_modules/.bun/yaml@2.
|
|
2371
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/float.js
|
|
2372
2372
|
var require_float = __commonJS({
|
|
2373
|
-
"../node_modules/.bun/yaml@2.
|
|
2373
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/float.js"(exports) {
|
|
2374
2374
|
"use strict";
|
|
2375
2375
|
var Scalar = require_Scalar();
|
|
2376
2376
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -2414,9 +2414,9 @@ var require_float = __commonJS({
|
|
|
2414
2414
|
}
|
|
2415
2415
|
});
|
|
2416
2416
|
|
|
2417
|
-
// ../node_modules/.bun/yaml@2.
|
|
2417
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/int.js
|
|
2418
2418
|
var require_int = __commonJS({
|
|
2419
|
-
"../node_modules/.bun/yaml@2.
|
|
2419
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/int.js"(exports) {
|
|
2420
2420
|
"use strict";
|
|
2421
2421
|
var stringifyNumber = require_stringifyNumber();
|
|
2422
2422
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -2459,9 +2459,9 @@ var require_int = __commonJS({
|
|
|
2459
2459
|
}
|
|
2460
2460
|
});
|
|
2461
2461
|
|
|
2462
|
-
// ../node_modules/.bun/yaml@2.
|
|
2462
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/schema.js
|
|
2463
2463
|
var require_schema = __commonJS({
|
|
2464
|
-
"../node_modules/.bun/yaml@2.
|
|
2464
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/schema.js"(exports) {
|
|
2465
2465
|
"use strict";
|
|
2466
2466
|
var map = require_map();
|
|
2467
2467
|
var _null = require_null();
|
|
@@ -2487,9 +2487,9 @@ var require_schema = __commonJS({
|
|
|
2487
2487
|
}
|
|
2488
2488
|
});
|
|
2489
2489
|
|
|
2490
|
-
// ../node_modules/.bun/yaml@2.
|
|
2490
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/json/schema.js
|
|
2491
2491
|
var require_schema2 = __commonJS({
|
|
2492
|
-
"../node_modules/.bun/yaml@2.
|
|
2492
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/json/schema.js"(exports) {
|
|
2493
2493
|
"use strict";
|
|
2494
2494
|
var Scalar = require_Scalar();
|
|
2495
2495
|
var map = require_map();
|
|
@@ -2554,9 +2554,9 @@ var require_schema2 = __commonJS({
|
|
|
2554
2554
|
}
|
|
2555
2555
|
});
|
|
2556
2556
|
|
|
2557
|
-
// ../node_modules/.bun/yaml@2.
|
|
2557
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/binary.js
|
|
2558
2558
|
var require_binary = __commonJS({
|
|
2559
|
-
"../node_modules/.bun/yaml@2.
|
|
2559
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports) {
|
|
2560
2560
|
"use strict";
|
|
2561
2561
|
var node_buffer = __require("buffer");
|
|
2562
2562
|
var Scalar = require_Scalar();
|
|
@@ -2620,9 +2620,9 @@ var require_binary = __commonJS({
|
|
|
2620
2620
|
}
|
|
2621
2621
|
});
|
|
2622
2622
|
|
|
2623
|
-
// ../node_modules/.bun/yaml@2.
|
|
2623
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
|
|
2624
2624
|
var require_pairs = __commonJS({
|
|
2625
|
-
"../node_modules/.bun/yaml@2.
|
|
2625
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports) {
|
|
2626
2626
|
"use strict";
|
|
2627
2627
|
var identity = require_identity();
|
|
2628
2628
|
var Pair = require_Pair();
|
|
@@ -2698,9 +2698,9 @@ ${cn.comment}` : item.comment;
|
|
|
2698
2698
|
}
|
|
2699
2699
|
});
|
|
2700
2700
|
|
|
2701
|
-
// ../node_modules/.bun/yaml@2.
|
|
2701
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/omap.js
|
|
2702
2702
|
var require_omap = __commonJS({
|
|
2703
|
-
"../node_modules/.bun/yaml@2.
|
|
2703
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports) {
|
|
2704
2704
|
"use strict";
|
|
2705
2705
|
var identity = require_identity();
|
|
2706
2706
|
var toJS = require_toJS();
|
|
@@ -2776,9 +2776,9 @@ var require_omap = __commonJS({
|
|
|
2776
2776
|
}
|
|
2777
2777
|
});
|
|
2778
2778
|
|
|
2779
|
-
// ../node_modules/.bun/yaml@2.
|
|
2779
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/bool.js
|
|
2780
2780
|
var require_bool2 = __commonJS({
|
|
2781
|
-
"../node_modules/.bun/yaml@2.
|
|
2781
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports) {
|
|
2782
2782
|
"use strict";
|
|
2783
2783
|
var Scalar = require_Scalar();
|
|
2784
2784
|
function boolStringify({ value, source }, ctx) {
|
|
@@ -2808,9 +2808,9 @@ var require_bool2 = __commonJS({
|
|
|
2808
2808
|
}
|
|
2809
2809
|
});
|
|
2810
2810
|
|
|
2811
|
-
// ../node_modules/.bun/yaml@2.
|
|
2811
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/float.js
|
|
2812
2812
|
var require_float2 = __commonJS({
|
|
2813
|
-
"../node_modules/.bun/yaml@2.
|
|
2813
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports) {
|
|
2814
2814
|
"use strict";
|
|
2815
2815
|
var Scalar = require_Scalar();
|
|
2816
2816
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -2857,9 +2857,9 @@ var require_float2 = __commonJS({
|
|
|
2857
2857
|
}
|
|
2858
2858
|
});
|
|
2859
2859
|
|
|
2860
|
-
// ../node_modules/.bun/yaml@2.
|
|
2860
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/int.js
|
|
2861
2861
|
var require_int2 = __commonJS({
|
|
2862
|
-
"../node_modules/.bun/yaml@2.
|
|
2862
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports) {
|
|
2863
2863
|
"use strict";
|
|
2864
2864
|
var stringifyNumber = require_stringifyNumber();
|
|
2865
2865
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -2936,9 +2936,9 @@ var require_int2 = __commonJS({
|
|
|
2936
2936
|
}
|
|
2937
2937
|
});
|
|
2938
2938
|
|
|
2939
|
-
// ../node_modules/.bun/yaml@2.
|
|
2939
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/set.js
|
|
2940
2940
|
var require_set = __commonJS({
|
|
2941
|
-
"../node_modules/.bun/yaml@2.
|
|
2941
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports) {
|
|
2942
2942
|
"use strict";
|
|
2943
2943
|
var identity = require_identity();
|
|
2944
2944
|
var Pair = require_Pair();
|
|
@@ -3025,9 +3025,9 @@ var require_set = __commonJS({
|
|
|
3025
3025
|
}
|
|
3026
3026
|
});
|
|
3027
3027
|
|
|
3028
|
-
// ../node_modules/.bun/yaml@2.
|
|
3028
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
|
|
3029
3029
|
var require_timestamp = __commonJS({
|
|
3030
|
-
"../node_modules/.bun/yaml@2.
|
|
3030
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports) {
|
|
3031
3031
|
"use strict";
|
|
3032
3032
|
var stringifyNumber = require_stringifyNumber();
|
|
3033
3033
|
function parseSexagesimal(str, asBigInt) {
|
|
@@ -3113,9 +3113,9 @@ var require_timestamp = __commonJS({
|
|
|
3113
3113
|
}
|
|
3114
3114
|
});
|
|
3115
3115
|
|
|
3116
|
-
// ../node_modules/.bun/yaml@2.
|
|
3116
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/schema.js
|
|
3117
3117
|
var require_schema3 = __commonJS({
|
|
3118
|
-
"../node_modules/.bun/yaml@2.
|
|
3118
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports) {
|
|
3119
3119
|
"use strict";
|
|
3120
3120
|
var map = require_map();
|
|
3121
3121
|
var _null = require_null();
|
|
@@ -3157,9 +3157,9 @@ var require_schema3 = __commonJS({
|
|
|
3157
3157
|
}
|
|
3158
3158
|
});
|
|
3159
3159
|
|
|
3160
|
-
// ../node_modules/.bun/yaml@2.
|
|
3160
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/tags.js
|
|
3161
3161
|
var require_tags = __commonJS({
|
|
3162
|
-
"../node_modules/.bun/yaml@2.
|
|
3162
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/tags.js"(exports) {
|
|
3163
3163
|
"use strict";
|
|
3164
3164
|
var map = require_map();
|
|
3165
3165
|
var _null = require_null();
|
|
@@ -3251,9 +3251,9 @@ var require_tags = __commonJS({
|
|
|
3251
3251
|
}
|
|
3252
3252
|
});
|
|
3253
3253
|
|
|
3254
|
-
// ../node_modules/.bun/yaml@2.
|
|
3254
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/Schema.js
|
|
3255
3255
|
var require_Schema = __commonJS({
|
|
3256
|
-
"../node_modules/.bun/yaml@2.
|
|
3256
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/Schema.js"(exports) {
|
|
3257
3257
|
"use strict";
|
|
3258
3258
|
var identity = require_identity();
|
|
3259
3259
|
var map = require_map();
|
|
@@ -3283,9 +3283,9 @@ var require_Schema = __commonJS({
|
|
|
3283
3283
|
}
|
|
3284
3284
|
});
|
|
3285
3285
|
|
|
3286
|
-
// ../node_modules/.bun/yaml@2.
|
|
3286
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyDocument.js
|
|
3287
3287
|
var require_stringifyDocument = __commonJS({
|
|
3288
|
-
"../node_modules/.bun/yaml@2.
|
|
3288
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyDocument.js"(exports) {
|
|
3289
3289
|
"use strict";
|
|
3290
3290
|
var identity = require_identity();
|
|
3291
3291
|
var stringify = require_stringify();
|
|
@@ -3363,9 +3363,9 @@ var require_stringifyDocument = __commonJS({
|
|
|
3363
3363
|
}
|
|
3364
3364
|
});
|
|
3365
3365
|
|
|
3366
|
-
// ../node_modules/.bun/yaml@2.
|
|
3366
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/Document.js
|
|
3367
3367
|
var require_Document = __commonJS({
|
|
3368
|
-
"../node_modules/.bun/yaml@2.
|
|
3368
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/Document.js"(exports) {
|
|
3369
3369
|
"use strict";
|
|
3370
3370
|
var Alias = require_Alias();
|
|
3371
3371
|
var Collection = require_Collection();
|
|
@@ -3672,9 +3672,9 @@ var require_Document = __commonJS({
|
|
|
3672
3672
|
}
|
|
3673
3673
|
});
|
|
3674
3674
|
|
|
3675
|
-
// ../node_modules/.bun/yaml@2.
|
|
3675
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/errors.js
|
|
3676
3676
|
var require_errors = __commonJS({
|
|
3677
|
-
"../node_modules/.bun/yaml@2.
|
|
3677
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/errors.js"(exports) {
|
|
3678
3678
|
"use strict";
|
|
3679
3679
|
var YAMLError = class extends Error {
|
|
3680
3680
|
constructor(name, pos, code, message) {
|
|
@@ -3737,9 +3737,9 @@ ${pointer}
|
|
|
3737
3737
|
}
|
|
3738
3738
|
});
|
|
3739
3739
|
|
|
3740
|
-
// ../node_modules/.bun/yaml@2.
|
|
3740
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-props.js
|
|
3741
3741
|
var require_resolve_props = __commonJS({
|
|
3742
|
-
"../node_modules/.bun/yaml@2.
|
|
3742
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-props.js"(exports) {
|
|
3743
3743
|
"use strict";
|
|
3744
3744
|
function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
|
|
3745
3745
|
let spaceBefore = false;
|
|
@@ -3871,9 +3871,9 @@ var require_resolve_props = __commonJS({
|
|
|
3871
3871
|
}
|
|
3872
3872
|
});
|
|
3873
3873
|
|
|
3874
|
-
// ../node_modules/.bun/yaml@2.
|
|
3874
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-contains-newline.js
|
|
3875
3875
|
var require_util_contains_newline = __commonJS({
|
|
3876
|
-
"../node_modules/.bun/yaml@2.
|
|
3876
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-contains-newline.js"(exports) {
|
|
3877
3877
|
"use strict";
|
|
3878
3878
|
function containsNewline(key) {
|
|
3879
3879
|
if (!key)
|
|
@@ -3913,9 +3913,9 @@ var require_util_contains_newline = __commonJS({
|
|
|
3913
3913
|
}
|
|
3914
3914
|
});
|
|
3915
3915
|
|
|
3916
|
-
// ../node_modules/.bun/yaml@2.
|
|
3916
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-flow-indent-check.js
|
|
3917
3917
|
var require_util_flow_indent_check = __commonJS({
|
|
3918
|
-
"../node_modules/.bun/yaml@2.
|
|
3918
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports) {
|
|
3919
3919
|
"use strict";
|
|
3920
3920
|
var utilContainsNewline = require_util_contains_newline();
|
|
3921
3921
|
function flowIndentCheck(indent, fc, onError) {
|
|
@@ -3931,9 +3931,9 @@ var require_util_flow_indent_check = __commonJS({
|
|
|
3931
3931
|
}
|
|
3932
3932
|
});
|
|
3933
3933
|
|
|
3934
|
-
// ../node_modules/.bun/yaml@2.
|
|
3934
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-map-includes.js
|
|
3935
3935
|
var require_util_map_includes = __commonJS({
|
|
3936
|
-
"../node_modules/.bun/yaml@2.
|
|
3936
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-map-includes.js"(exports) {
|
|
3937
3937
|
"use strict";
|
|
3938
3938
|
var identity = require_identity();
|
|
3939
3939
|
function mapIncludes(ctx, items, search) {
|
|
@@ -3947,9 +3947,9 @@ var require_util_map_includes = __commonJS({
|
|
|
3947
3947
|
}
|
|
3948
3948
|
});
|
|
3949
3949
|
|
|
3950
|
-
// ../node_modules/.bun/yaml@2.
|
|
3950
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-map.js
|
|
3951
3951
|
var require_resolve_block_map = __commonJS({
|
|
3952
|
-
"../node_modules/.bun/yaml@2.
|
|
3952
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-map.js"(exports) {
|
|
3953
3953
|
"use strict";
|
|
3954
3954
|
var Pair = require_Pair();
|
|
3955
3955
|
var YAMLMap = require_YAMLMap();
|
|
@@ -4055,9 +4055,9 @@ var require_resolve_block_map = __commonJS({
|
|
|
4055
4055
|
}
|
|
4056
4056
|
});
|
|
4057
4057
|
|
|
4058
|
-
// ../node_modules/.bun/yaml@2.
|
|
4058
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-seq.js
|
|
4059
4059
|
var require_resolve_block_seq = __commonJS({
|
|
4060
|
-
"../node_modules/.bun/yaml@2.
|
|
4060
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-seq.js"(exports) {
|
|
4061
4061
|
"use strict";
|
|
4062
4062
|
var YAMLSeq = require_YAMLSeq();
|
|
4063
4063
|
var resolveProps = require_resolve_props();
|
|
@@ -4106,9 +4106,9 @@ var require_resolve_block_seq = __commonJS({
|
|
|
4106
4106
|
}
|
|
4107
4107
|
});
|
|
4108
4108
|
|
|
4109
|
-
// ../node_modules/.bun/yaml@2.
|
|
4109
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-end.js
|
|
4110
4110
|
var require_resolve_end = __commonJS({
|
|
4111
|
-
"../node_modules/.bun/yaml@2.
|
|
4111
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-end.js"(exports) {
|
|
4112
4112
|
"use strict";
|
|
4113
4113
|
function resolveEnd(end, offset, reqSpace, onError) {
|
|
4114
4114
|
let comment = "";
|
|
@@ -4149,9 +4149,9 @@ var require_resolve_end = __commonJS({
|
|
|
4149
4149
|
}
|
|
4150
4150
|
});
|
|
4151
4151
|
|
|
4152
|
-
// ../node_modules/.bun/yaml@2.
|
|
4152
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-collection.js
|
|
4153
4153
|
var require_resolve_flow_collection = __commonJS({
|
|
4154
|
-
"../node_modules/.bun/yaml@2.
|
|
4154
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports) {
|
|
4155
4155
|
"use strict";
|
|
4156
4156
|
var identity = require_identity();
|
|
4157
4157
|
var Pair = require_Pair();
|
|
@@ -4343,9 +4343,9 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
4343
4343
|
}
|
|
4344
4344
|
});
|
|
4345
4345
|
|
|
4346
|
-
// ../node_modules/.bun/yaml@2.
|
|
4346
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-collection.js
|
|
4347
4347
|
var require_compose_collection = __commonJS({
|
|
4348
|
-
"../node_modules/.bun/yaml@2.
|
|
4348
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-collection.js"(exports) {
|
|
4349
4349
|
"use strict";
|
|
4350
4350
|
var identity = require_identity();
|
|
4351
4351
|
var Scalar = require_Scalar();
|
|
@@ -4408,9 +4408,9 @@ var require_compose_collection = __commonJS({
|
|
|
4408
4408
|
}
|
|
4409
4409
|
});
|
|
4410
4410
|
|
|
4411
|
-
// ../node_modules/.bun/yaml@2.
|
|
4411
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-scalar.js
|
|
4412
4412
|
var require_resolve_block_scalar = __commonJS({
|
|
4413
|
-
"../node_modules/.bun/yaml@2.
|
|
4413
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports) {
|
|
4414
4414
|
"use strict";
|
|
4415
4415
|
var Scalar = require_Scalar();
|
|
4416
4416
|
function resolveBlockScalar(ctx, scalar, onError) {
|
|
@@ -4591,9 +4591,9 @@ var require_resolve_block_scalar = __commonJS({
|
|
|
4591
4591
|
}
|
|
4592
4592
|
});
|
|
4593
4593
|
|
|
4594
|
-
// ../node_modules/.bun/yaml@2.
|
|
4594
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-scalar.js
|
|
4595
4595
|
var require_resolve_flow_scalar = __commonJS({
|
|
4596
|
-
"../node_modules/.bun/yaml@2.
|
|
4596
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports) {
|
|
4597
4597
|
"use strict";
|
|
4598
4598
|
var Scalar = require_Scalar();
|
|
4599
4599
|
var resolveEnd = require_resolve_end();
|
|
@@ -4811,9 +4811,9 @@ var require_resolve_flow_scalar = __commonJS({
|
|
|
4811
4811
|
}
|
|
4812
4812
|
});
|
|
4813
4813
|
|
|
4814
|
-
// ../node_modules/.bun/yaml@2.
|
|
4814
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-scalar.js
|
|
4815
4815
|
var require_compose_scalar = __commonJS({
|
|
4816
|
-
"../node_modules/.bun/yaml@2.
|
|
4816
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-scalar.js"(exports) {
|
|
4817
4817
|
"use strict";
|
|
4818
4818
|
var identity = require_identity();
|
|
4819
4819
|
var Scalar = require_Scalar();
|
|
@@ -4892,9 +4892,9 @@ var require_compose_scalar = __commonJS({
|
|
|
4892
4892
|
}
|
|
4893
4893
|
});
|
|
4894
4894
|
|
|
4895
|
-
// ../node_modules/.bun/yaml@2.
|
|
4895
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-empty-scalar-position.js
|
|
4896
4896
|
var require_util_empty_scalar_position = __commonJS({
|
|
4897
|
-
"../node_modules/.bun/yaml@2.
|
|
4897
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports) {
|
|
4898
4898
|
"use strict";
|
|
4899
4899
|
function emptyScalarPosition(offset, before, pos) {
|
|
4900
4900
|
if (before) {
|
|
@@ -4922,9 +4922,9 @@ var require_util_empty_scalar_position = __commonJS({
|
|
|
4922
4922
|
}
|
|
4923
4923
|
});
|
|
4924
4924
|
|
|
4925
|
-
// ../node_modules/.bun/yaml@2.
|
|
4925
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-node.js
|
|
4926
4926
|
var require_compose_node = __commonJS({
|
|
4927
|
-
"../node_modules/.bun/yaml@2.
|
|
4927
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-node.js"(exports) {
|
|
4928
4928
|
"use strict";
|
|
4929
4929
|
var Alias = require_Alias();
|
|
4930
4930
|
var identity = require_identity();
|
|
@@ -5028,9 +5028,9 @@ var require_compose_node = __commonJS({
|
|
|
5028
5028
|
}
|
|
5029
5029
|
});
|
|
5030
5030
|
|
|
5031
|
-
// ../node_modules/.bun/yaml@2.
|
|
5031
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-doc.js
|
|
5032
5032
|
var require_compose_doc = __commonJS({
|
|
5033
|
-
"../node_modules/.bun/yaml@2.
|
|
5033
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-doc.js"(exports) {
|
|
5034
5034
|
"use strict";
|
|
5035
5035
|
var Document = require_Document();
|
|
5036
5036
|
var composeNode = require_compose_node();
|
|
@@ -5071,9 +5071,9 @@ var require_compose_doc = __commonJS({
|
|
|
5071
5071
|
}
|
|
5072
5072
|
});
|
|
5073
5073
|
|
|
5074
|
-
// ../node_modules/.bun/yaml@2.
|
|
5074
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/composer.js
|
|
5075
5075
|
var require_composer = __commonJS({
|
|
5076
|
-
"../node_modules/.bun/yaml@2.
|
|
5076
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/composer.js"(exports) {
|
|
5077
5077
|
"use strict";
|
|
5078
5078
|
var node_process = __require("process");
|
|
5079
5079
|
var directives = require_directives();
|
|
@@ -5155,8 +5155,10 @@ ${cb}` : comment;
|
|
|
5155
5155
|
}
|
|
5156
5156
|
}
|
|
5157
5157
|
if (afterDoc) {
|
|
5158
|
-
|
|
5159
|
-
|
|
5158
|
+
for (let i = 0; i < this.errors.length; ++i)
|
|
5159
|
+
doc.errors.push(this.errors[i]);
|
|
5160
|
+
for (let i = 0; i < this.warnings.length; ++i)
|
|
5161
|
+
doc.warnings.push(this.warnings[i]);
|
|
5160
5162
|
} else {
|
|
5161
5163
|
doc.errors = this.errors;
|
|
5162
5164
|
doc.warnings = this.warnings;
|
|
@@ -5277,9 +5279,9 @@ ${end.comment}` : end.comment;
|
|
|
5277
5279
|
}
|
|
5278
5280
|
});
|
|
5279
5281
|
|
|
5280
|
-
// ../node_modules/.bun/yaml@2.
|
|
5282
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst-scalar.js
|
|
5281
5283
|
var require_cst_scalar = __commonJS({
|
|
5282
|
-
"../node_modules/.bun/yaml@2.
|
|
5284
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst-scalar.js"(exports) {
|
|
5283
5285
|
"use strict";
|
|
5284
5286
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
5285
5287
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
@@ -5462,9 +5464,9 @@ var require_cst_scalar = __commonJS({
|
|
|
5462
5464
|
}
|
|
5463
5465
|
});
|
|
5464
5466
|
|
|
5465
|
-
// ../node_modules/.bun/yaml@2.
|
|
5467
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst-stringify.js
|
|
5466
5468
|
var require_cst_stringify = __commonJS({
|
|
5467
|
-
"../node_modules/.bun/yaml@2.
|
|
5469
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst-stringify.js"(exports) {
|
|
5468
5470
|
"use strict";
|
|
5469
5471
|
var stringify = (cst) => "type" in cst ? stringifyToken(cst) : stringifyItem(cst);
|
|
5470
5472
|
function stringifyToken(token) {
|
|
@@ -5523,9 +5525,9 @@ var require_cst_stringify = __commonJS({
|
|
|
5523
5525
|
}
|
|
5524
5526
|
});
|
|
5525
5527
|
|
|
5526
|
-
// ../node_modules/.bun/yaml@2.
|
|
5528
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst-visit.js
|
|
5527
5529
|
var require_cst_visit = __commonJS({
|
|
5528
|
-
"../node_modules/.bun/yaml@2.
|
|
5530
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst-visit.js"(exports) {
|
|
5529
5531
|
"use strict";
|
|
5530
5532
|
var BREAK = /* @__PURE__ */ Symbol("break visit");
|
|
5531
5533
|
var SKIP = /* @__PURE__ */ Symbol("skip children");
|
|
@@ -5585,9 +5587,9 @@ var require_cst_visit = __commonJS({
|
|
|
5585
5587
|
}
|
|
5586
5588
|
});
|
|
5587
5589
|
|
|
5588
|
-
// ../node_modules/.bun/yaml@2.
|
|
5590
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst.js
|
|
5589
5591
|
var require_cst = __commonJS({
|
|
5590
|
-
"../node_modules/.bun/yaml@2.
|
|
5592
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst.js"(exports) {
|
|
5591
5593
|
"use strict";
|
|
5592
5594
|
var cstScalar = require_cst_scalar();
|
|
5593
5595
|
var cstStringify = require_cst_stringify();
|
|
@@ -5687,9 +5689,9 @@ var require_cst = __commonJS({
|
|
|
5687
5689
|
}
|
|
5688
5690
|
});
|
|
5689
5691
|
|
|
5690
|
-
// ../node_modules/.bun/yaml@2.
|
|
5692
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/lexer.js
|
|
5691
5693
|
var require_lexer = __commonJS({
|
|
5692
|
-
"../node_modules/.bun/yaml@2.
|
|
5694
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/lexer.js"(exports) {
|
|
5693
5695
|
"use strict";
|
|
5694
5696
|
var cst = require_cst();
|
|
5695
5697
|
function isEmpty(ch) {
|
|
@@ -5889,7 +5891,7 @@ var require_lexer = __commonJS({
|
|
|
5889
5891
|
const n = (yield* this.pushCount(1)) + (yield* this.pushSpaces(true));
|
|
5890
5892
|
this.indentNext = this.indentValue + 1;
|
|
5891
5893
|
this.indentValue += n;
|
|
5892
|
-
return
|
|
5894
|
+
return "block-start";
|
|
5893
5895
|
}
|
|
5894
5896
|
return "doc";
|
|
5895
5897
|
}
|
|
@@ -6188,28 +6190,38 @@ var require_lexer = __commonJS({
|
|
|
6188
6190
|
return 0;
|
|
6189
6191
|
}
|
|
6190
6192
|
*pushIndicators() {
|
|
6191
|
-
|
|
6192
|
-
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
|
|
6203
|
-
|
|
6204
|
-
|
|
6205
|
-
|
|
6206
|
-
|
|
6207
|
-
|
|
6208
|
-
|
|
6193
|
+
let n = 0;
|
|
6194
|
+
loop: while (true) {
|
|
6195
|
+
switch (this.charAt(0)) {
|
|
6196
|
+
case "!":
|
|
6197
|
+
n += yield* this.pushTag();
|
|
6198
|
+
n += yield* this.pushSpaces(true);
|
|
6199
|
+
continue loop;
|
|
6200
|
+
case "&":
|
|
6201
|
+
n += yield* this.pushUntil(isNotAnchorChar);
|
|
6202
|
+
n += yield* this.pushSpaces(true);
|
|
6203
|
+
continue loop;
|
|
6204
|
+
case "-":
|
|
6205
|
+
// this is an error
|
|
6206
|
+
case "?":
|
|
6207
|
+
// this is an error outside flow collections
|
|
6208
|
+
case ":": {
|
|
6209
|
+
const inFlow = this.flowLevel > 0;
|
|
6210
|
+
const ch1 = this.charAt(1);
|
|
6211
|
+
if (isEmpty(ch1) || inFlow && flowIndicatorChars.has(ch1)) {
|
|
6212
|
+
if (!inFlow)
|
|
6213
|
+
this.indentNext = this.indentValue + 1;
|
|
6214
|
+
else if (this.flowKey)
|
|
6215
|
+
this.flowKey = false;
|
|
6216
|
+
n += yield* this.pushCount(1);
|
|
6217
|
+
n += yield* this.pushSpaces(true);
|
|
6218
|
+
continue loop;
|
|
6219
|
+
}
|
|
6209
6220
|
}
|
|
6210
6221
|
}
|
|
6222
|
+
break loop;
|
|
6211
6223
|
}
|
|
6212
|
-
return
|
|
6224
|
+
return n;
|
|
6213
6225
|
}
|
|
6214
6226
|
*pushTag() {
|
|
6215
6227
|
if (this.charAt(1) === "<") {
|
|
@@ -6266,9 +6278,9 @@ var require_lexer = __commonJS({
|
|
|
6266
6278
|
}
|
|
6267
6279
|
});
|
|
6268
6280
|
|
|
6269
|
-
// ../node_modules/.bun/yaml@2.
|
|
6281
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/line-counter.js
|
|
6270
6282
|
var require_line_counter = __commonJS({
|
|
6271
|
-
"../node_modules/.bun/yaml@2.
|
|
6283
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/line-counter.js"(exports) {
|
|
6272
6284
|
"use strict";
|
|
6273
6285
|
var LineCounter = class {
|
|
6274
6286
|
constructor() {
|
|
@@ -6297,9 +6309,9 @@ var require_line_counter = __commonJS({
|
|
|
6297
6309
|
}
|
|
6298
6310
|
});
|
|
6299
6311
|
|
|
6300
|
-
// ../node_modules/.bun/yaml@2.
|
|
6312
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/parser.js
|
|
6301
6313
|
var require_parser = __commonJS({
|
|
6302
|
-
"../node_modules/.bun/yaml@2.
|
|
6314
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/parser.js"(exports) {
|
|
6303
6315
|
"use strict";
|
|
6304
6316
|
var node_process = __require("process");
|
|
6305
6317
|
var cst = require_cst();
|
|
@@ -6368,6 +6380,13 @@ var require_parser = __commonJS({
|
|
|
6368
6380
|
}
|
|
6369
6381
|
return prev.splice(i, prev.length);
|
|
6370
6382
|
}
|
|
6383
|
+
function arrayPushArray(target, source) {
|
|
6384
|
+
if (source.length < 1e5)
|
|
6385
|
+
Array.prototype.push.apply(target, source);
|
|
6386
|
+
else
|
|
6387
|
+
for (let i = 0; i < source.length; ++i)
|
|
6388
|
+
target.push(source[i]);
|
|
6389
|
+
}
|
|
6371
6390
|
function fixFlowSeqItems(fc) {
|
|
6372
6391
|
if (fc.start.type === "flow-seq-start") {
|
|
6373
6392
|
for (const it of fc.items) {
|
|
@@ -6377,11 +6396,11 @@ var require_parser = __commonJS({
|
|
|
6377
6396
|
delete it.key;
|
|
6378
6397
|
if (isFlowToken(it.value)) {
|
|
6379
6398
|
if (it.value.end)
|
|
6380
|
-
|
|
6399
|
+
arrayPushArray(it.value.end, it.sep);
|
|
6381
6400
|
else
|
|
6382
6401
|
it.value.end = it.sep;
|
|
6383
6402
|
} else
|
|
6384
|
-
|
|
6403
|
+
arrayPushArray(it.start, it.sep);
|
|
6385
6404
|
delete it.sep;
|
|
6386
6405
|
}
|
|
6387
6406
|
}
|
|
@@ -6736,7 +6755,7 @@ var require_parser = __commonJS({
|
|
|
6736
6755
|
const prev = map.items[map.items.length - 2];
|
|
6737
6756
|
const end = prev?.value?.end;
|
|
6738
6757
|
if (Array.isArray(end)) {
|
|
6739
|
-
|
|
6758
|
+
arrayPushArray(end, it.start);
|
|
6740
6759
|
end.push(this.sourceToken);
|
|
6741
6760
|
map.items.pop();
|
|
6742
6761
|
return;
|
|
@@ -6924,7 +6943,7 @@ var require_parser = __commonJS({
|
|
|
6924
6943
|
const prev = seq.items[seq.items.length - 2];
|
|
6925
6944
|
const end = prev?.value?.end;
|
|
6926
6945
|
if (Array.isArray(end)) {
|
|
6927
|
-
|
|
6946
|
+
arrayPushArray(end, it.start);
|
|
6928
6947
|
end.push(this.sourceToken);
|
|
6929
6948
|
seq.items.pop();
|
|
6930
6949
|
return;
|
|
@@ -7164,9 +7183,9 @@ var require_parser = __commonJS({
|
|
|
7164
7183
|
}
|
|
7165
7184
|
});
|
|
7166
7185
|
|
|
7167
|
-
// ../node_modules/.bun/yaml@2.
|
|
7186
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/public-api.js
|
|
7168
7187
|
var require_public_api = __commonJS({
|
|
7169
|
-
"../node_modules/.bun/yaml@2.
|
|
7188
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/public-api.js"(exports) {
|
|
7170
7189
|
"use strict";
|
|
7171
7190
|
var composer = require_composer();
|
|
7172
7191
|
var Document = require_Document();
|
|
@@ -7261,9 +7280,9 @@ var require_public_api = __commonJS({
|
|
|
7261
7280
|
}
|
|
7262
7281
|
});
|
|
7263
7282
|
|
|
7264
|
-
// ../node_modules/.bun/yaml@2.
|
|
7283
|
+
// ../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/index.js
|
|
7265
7284
|
var require_dist = __commonJS({
|
|
7266
|
-
"../node_modules/.bun/yaml@2.
|
|
7285
|
+
"../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/index.js"(exports) {
|
|
7267
7286
|
"use strict";
|
|
7268
7287
|
var composer = require_composer();
|
|
7269
7288
|
var Document = require_Document();
|
|
@@ -7318,7 +7337,14 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
|
7318
7337
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
7319
7338
|
import { z } from "zod";
|
|
7320
7339
|
|
|
7340
|
+
// ../shared/src/type-guards.ts
|
|
7341
|
+
function isRecord(value) {
|
|
7342
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
7343
|
+
}
|
|
7344
|
+
|
|
7321
7345
|
// ../shared/src/event.ts
|
|
7346
|
+
var USER_MESSAGE_ID_PAYLOAD_KEY = "replicasMessageId";
|
|
7347
|
+
var CODEX_ASP_ITEM_ID_PAYLOAD_KEY = "codexAspItemId";
|
|
7322
7348
|
var CODEX_QUOTA_STATUS_EVENT_TYPE = "codex-quota-status";
|
|
7323
7349
|
|
|
7324
7350
|
// ../shared/src/pricing.ts
|
|
@@ -7398,20 +7424,194 @@ var SANDBOX_LIFECYCLE = {
|
|
|
7398
7424
|
AUTO_DELETE_MINUTES: -1,
|
|
7399
7425
|
SSH_TOKEN_EXPIRATION_MINUTES: 3 * 60
|
|
7400
7426
|
};
|
|
7401
|
-
|
|
7402
|
-
|
|
7403
|
-
|
|
7404
|
-
|
|
7405
|
-
|
|
7406
|
-
|
|
7407
|
-
|
|
7408
|
-
|
|
7409
|
-
|
|
7410
|
-
|
|
7411
|
-
|
|
7427
|
+
var WORKSPACE_SIZES = ["small", "large"];
|
|
7428
|
+
var INVALID_WORKSPACE_SIZE_ERROR = `Invalid size: must be one of ${WORKSPACE_SIZES.join(", ")}`;
|
|
7429
|
+
|
|
7430
|
+
// ../shared/src/default-skills/replicas-agent/abilities/computer.ts
|
|
7431
|
+
var SECTION = `### Computer use (Linux desktop control)
|
|
7432
|
+
Drive the workspace's Linux desktop - open a browser, click, type, scroll, screenshot, record - via the \`replicas computer\` CLI. Every Replicas workspace boots with Xvfb / openbox / x11vnc / noVNC pre-installed and the live noVNC viewer is automatically published as an authenticated preview, so a \`Desktop\` tab is always available in the dashboard. Use \`replicas computer info\` to get the viewer URL when you want to share it (e.g. point a user on Slack at the live stream).
|
|
7433
|
+
|
|
7434
|
+
**Reference:** \`references/COMPUTER-USE.md\`
|
|
7435
|
+
|
|
7436
|
+
Use this when:
|
|
7437
|
+
- A task requires interacting with a website, web app, or desktop application that has no usable API
|
|
7438
|
+
- You want the user to watch the agent work - they can open the \`Desktop\` tab, or you can share the URL from \`replicas computer info\`
|
|
7439
|
+
- You're testing UI changes in a browser before reporting them as done
|
|
7440
|
+
- You want to record a screen capture of a task as proof to share back`;
|
|
7441
|
+
var REFERENCE = `# Computer use (Linux desktop control)
|
|
7442
|
+
|
|
7443
|
+
Every Replicas workspace boots with a full Linux desktop stack - Xvfb (1920\xD71080), openbox, tint2, x11vnc, noVNC, ffmpeg, and Google Chrome. The engine also auto-registers the noVNC viewer (port 6080) as an authenticated preview at startup, so the dashboard \`Desktop\` tab is live the moment the workspace is up. You drive the desktop through the \`replicas computer\` CLI.
|
|
7444
|
+
|
|
7445
|
+
Use this for anything the user can't reasonably do via an API - clicking around web apps, filling forms, testing UI changes, dragging files between desktop apps, recording a walkthrough.
|
|
7446
|
+
|
|
7447
|
+
## When to use it
|
|
7448
|
+
|
|
7449
|
+
- **Prefer real APIs first.** If a task has a CLI or HTTP API (GitHub, Linear, Slack, Replicas itself), use that. Driving a UI is slower, flakier, and less auditable.
|
|
7450
|
+
- **Use it when there's no API**: testing a frontend you just changed, navigating a vendor portal, demonstrating a flow on video.
|
|
7451
|
+
- **Use it when the user wants to watch.** The dashboard already shows a \`Desktop\` tab. If you're talking to the user somewhere else (e.g. Slack), call \`replicas computer info\` to get the viewer URL and paste it in.
|
|
7452
|
+
|
|
7453
|
+
## Never use raw \`xdotool\` / \`scrot\` / \`ffmpeg\` directly
|
|
7454
|
+
|
|
7455
|
+
The CLI is the canonical surface. Chat transcripts that show \`DISPLAY=:99 xdotool key Return\` are noisy and break when the underlying stack changes. Always call the CLI:
|
|
7456
|
+
|
|
7457
|
+
\`\`\`bash
|
|
7458
|
+
# DO
|
|
7459
|
+
replicas computer key Return
|
|
7460
|
+
replicas computer screenshot /tmp/state.png
|
|
7461
|
+
|
|
7462
|
+
# DON'T
|
|
7463
|
+
DISPLAY=:99 xdotool key Return
|
|
7464
|
+
scrot /tmp/state.png
|
|
7465
|
+
\`\`\`
|
|
7466
|
+
|
|
7467
|
+
## Quickstart
|
|
7468
|
+
|
|
7469
|
+
\`\`\`bash
|
|
7470
|
+
# 1) (Optional) Get the live viewer URL so you can share it with the user.
|
|
7471
|
+
# The desktop is already running and the preview is already registered -
|
|
7472
|
+
# this just looks up the URL.
|
|
7473
|
+
replicas computer info
|
|
7474
|
+
|
|
7475
|
+
# 2) Launch a browser on the workspace display.
|
|
7476
|
+
replicas computer launch chrome
|
|
7477
|
+
|
|
7478
|
+
# 3) Take a screenshot so you can see what's there.
|
|
7479
|
+
replicas computer screenshot /tmp/state.png
|
|
7480
|
+
# (Read the PNG yourself before deciding where to click.)
|
|
7481
|
+
|
|
7482
|
+
# 4) Drive the UI.
|
|
7483
|
+
replicas computer key ctrl+l # focus address bar
|
|
7484
|
+
replicas computer type "https://news.ycombinator.com"
|
|
7485
|
+
replicas computer key Return
|
|
7486
|
+
replicas computer click 521 700 # click coordinates from the screenshot
|
|
7487
|
+
replicas computer scroll down --amount 5
|
|
7488
|
+
|
|
7489
|
+
# 5) (Optional) Record a screencap to share back.
|
|
7490
|
+
replicas computer record start /tmp/demo.mp4 --fps 60
|
|
7491
|
+
# ... do stuff ...
|
|
7492
|
+
replicas computer record stop
|
|
7493
|
+
replicas media upload /tmp/demo.mp4
|
|
7494
|
+
\`\`\`
|
|
7495
|
+
|
|
7496
|
+
## Command reference
|
|
7497
|
+
|
|
7498
|
+
### \`replicas computer info\`
|
|
7499
|
+
Prints the live noVNC viewer URL (\`https://6080-<hash>.tryreplicas.com/\`) for the workspace desktop. The engine auto-registers this authenticated preview on startup; \`info\` just looks it up. Use it when you want to share the live stream URL with the user out-of-band (e.g. in a Slack reply) - the dashboard \`Desktop\` tab already points at the same URL automatically.
|
|
7500
|
+
|
|
7501
|
+
If invoked very early in the workspace lifecycle, \`info\` will poll briefly while the engine finishes registering the preview, then error if it's still not available.
|
|
7502
|
+
|
|
7503
|
+
### \`replicas computer status\`
|
|
7504
|
+
Prints which desktop services are running and the active preview URL (if any). Useful for debugging when a tool call seems to be doing nothing.
|
|
7505
|
+
|
|
7506
|
+
### \`replicas computer screenshot <path>\`
|
|
7507
|
+
Captures the current desktop to a PNG at the given path. Read the file (e.g. with your Read tool) to see what's on screen - coordinates from the screenshot drive subsequent \`click\` / \`move\` / \`drag\` calls.
|
|
7508
|
+
|
|
7509
|
+
### \`replicas computer click <x> <y> [--button N] [--double] [--modifiers ctrl+shift]\`
|
|
7510
|
+
Move to (x, y) and click. Default is left-click (button 1); pass \`--button 3\` for right-click. \`--modifiers\` holds keys during the click (e.g. ctrl-click a link to open in a new tab).
|
|
7511
|
+
|
|
7512
|
+
### \`replicas computer move <x> <y>\`
|
|
7513
|
+
Move the mouse without clicking. Useful for hovering tooltips.
|
|
7514
|
+
|
|
7515
|
+
### \`replicas computer type <text> [--delay MS]\`
|
|
7516
|
+
Type a literal string into the focused field. Default per-character delay is 12ms (~80 wpm) - feels human and avoids breaking apps that debounce input. Bump \`--delay 30\` for stricter apps.
|
|
7517
|
+
|
|
7518
|
+
For key combos (not literal text), use \`key\`. \`type "ctrl+l"\` will literally type the seven characters \`c t r l + l\`.
|
|
7519
|
+
|
|
7520
|
+
### \`replicas computer key <combo>\`
|
|
7521
|
+
Press a single key or combo. Examples: \`Return\`, \`Escape\`, \`Tab\`, \`ctrl+l\`, \`ctrl+shift+t\`, \`alt+Left\`, \`Page_Down\`, \`Home\`. Syntax matches \`xdotool key\`.
|
|
7522
|
+
|
|
7523
|
+
### \`replicas computer scroll <up|down|left|right> [--amount N] [--x X --y Y]\`
|
|
7524
|
+
Scroll the wheel. Pass \`--x\` / \`--y\` to hover before scrolling (otherwise scrolls wherever the cursor currently is). Default amount is 3 wheel ticks.
|
|
7525
|
+
|
|
7526
|
+
### \`replicas computer drag <fromX> <fromY> <toX> <toY>\`
|
|
7527
|
+
Press left mouse at (fromX, fromY), drag to (toX, toY), release. For things like dragging a file onto an upload zone.
|
|
7528
|
+
|
|
7529
|
+
### \`replicas computer launch <app> [args...]\`
|
|
7530
|
+
Spawns an app on the workspace display. Built-in aliases:
|
|
7531
|
+
- \`chrome\` - Google Chrome with a clean profile and sane flags
|
|
7532
|
+
- \`chromium\` - Chromium variant
|
|
7533
|
+
- \`firefox\` - Firefox
|
|
7534
|
+
- \`terminal\` - xfce4-terminal (modern, themed); \`xterm\` for the classic
|
|
7535
|
+
- \`notepad\` / \`editor\` - mousepad (lightweight GTK text editor)
|
|
7536
|
+
- \`files\` / \`filemanager\` - thunar (file manager)
|
|
7537
|
+
Anything else gets \`exec\`'d verbatim, so \`replicas computer launch xeyes\` works if xeyes is installed.
|
|
7538
|
+
|
|
7539
|
+
### \`replicas computer record start <path> [--fps N]\`
|
|
7540
|
+
Starts an ffmpeg screen recorder. Output is a fragmented MP4 (still playable if the workspace dies mid-record). Default 60fps; drop to 30 if the workspace is CPU-constrained.
|
|
7541
|
+
|
|
7542
|
+
Only one recording at a time. Re-running \`start\` while one is active fails - call \`stop\` first.
|
|
7543
|
+
|
|
7544
|
+
### \`replicas computer record stop\`
|
|
7545
|
+
SIGINTs ffmpeg, waits for it to finalize the MP4, prints the output path. Upload it with \`replicas media upload <path>\` to share it.
|
|
7546
|
+
|
|
7547
|
+
## Patterns
|
|
7548
|
+
|
|
7549
|
+
### Action / screenshot loop
|
|
7550
|
+
You are blind between tool calls. After any action that changes the screen, take a screenshot before deciding the next coordinate:
|
|
7551
|
+
|
|
7552
|
+
\`\`\`bash
|
|
7553
|
+
replicas computer click 521 700
|
|
7554
|
+
sleep 2 # let the page settle
|
|
7555
|
+
replicas computer screenshot /tmp/after-click.png
|
|
7556
|
+
# read /tmp/after-click.png, decide next click
|
|
7557
|
+
\`\`\`
|
|
7558
|
+
|
|
7559
|
+
\`sleep\` is a regular shell sleep - there's no \`replicas computer wait\` command, but you can mix shell sleeps freely.
|
|
7560
|
+
|
|
7561
|
+
### Typing into an address bar
|
|
7562
|
+
\`\`\`bash
|
|
7563
|
+
replicas computer key ctrl+l # focus address bar
|
|
7564
|
+
replicas computer type "https://example.com"
|
|
7565
|
+
replicas computer key Return
|
|
7566
|
+
sleep 3 # wait for page load
|
|
7567
|
+
replicas computer screenshot /tmp/loaded.png
|
|
7568
|
+
\`\`\`
|
|
7569
|
+
|
|
7570
|
+
### Coordinates from screenshots
|
|
7571
|
+
The display is 1920\xD71080. Screenshot pixels map 1:1 to click coordinates - if your Read tool shows a button at pixel (520, 700), click \`replicas computer click 520 700\`. **No translation needed.** Modern image-reading models often imagine the screenshot is at a different resolution; trust the \`xdpyinfo\` value (\`replicas computer status\` shows the real size).
|
|
7572
|
+
|
|
7573
|
+
### Letting the user watch
|
|
7574
|
+
The Desktop tab is already live in the dashboard - the user can open it any time. If you're communicating with the user somewhere else (Slack, PR comment, etc.), grab the URL with \`replicas computer info\` and share it inline so they can watch you work.
|
|
7575
|
+
|
|
7576
|
+
### Recording a deliverable
|
|
7577
|
+
For tasks the user wants proof of:
|
|
7578
|
+
\`\`\`bash
|
|
7579
|
+
replicas computer record start /tmp/walkthrough.mp4
|
|
7580
|
+
# ... your work ...
|
|
7581
|
+
replicas computer record stop
|
|
7582
|
+
replicas media upload /tmp/walkthrough.mp4
|
|
7583
|
+
\`\`\`
|
|
7584
|
+
Then embed the printed \`\` line in your chat reply. See \`MEDIA.md\`.
|
|
7585
|
+
|
|
7586
|
+
## Failure modes
|
|
7587
|
+
|
|
7588
|
+
- **"Desktop services script missing"**: workspace image is older than this skill. Tell the user - nothing you can do from the CLI side.
|
|
7589
|
+
- **\`xdotool ... failed: Can't open display\`**: Xvfb didn't come up. \`replicas computer status\` will show which service is dead. Re-running any CLI command auto-attempts to start it.
|
|
7590
|
+
- **Browser doesn't appear after \`launch chrome\`**: give it 1-2s, then screenshot. Chrome cold-start on the virtual display takes ~500ms but bigger pages take longer.
|
|
7591
|
+
- **Live preview shows static / black screen**: the browser may have crashed. \`replicas computer status\` should show no Chrome process - re-launch.
|
|
7592
|
+
- **\`replicas computer info\` errors with "not registered"**: engine couldn't register the preview at startup (transient monolith error, or warming mode). Re-running the engine usually fixes it. Until it's registered, the Desktop tab will show a placeholder.
|
|
7593
|
+
|
|
7594
|
+
## What gets baked in vs. lazy
|
|
7595
|
+
|
|
7596
|
+
| Component | Where |
|
|
7597
|
+
|---|---|
|
|
7598
|
+
| \`xvfb\`, \`openbox\`, \`tint2\`, \`x11vnc\`, \`websockify\`, \`xdotool\`, \`scrot\`, \`ffmpeg\`, \`google-chrome\` | Baked into the workspace image |
|
|
7599
|
+
| Xvfb / openbox / tint2 / x11vnc / websockify processes | Started at workspace boot (\`replicas-start-desktop-services\`) |
|
|
7600
|
+
| noVNC preview URL (port 6080) | Registered by the engine on startup (authenticated) |
|
|
7601
|
+
| Dashboard \`Desktop\` tab | Always available once the engine has registered the preview |
|
|
7602
|
+
|
|
7603
|
+
You can call any of the input tools (\`click\`, \`type\`, \`screenshot\`, etc.) immediately - the daemons are already running.
|
|
7604
|
+
`;
|
|
7605
|
+
var COMPUTER_ABILITY = {
|
|
7606
|
+
label: "Computer use",
|
|
7607
|
+
description: "Drive the workspace's Linux desktop and stream a live noVNC viewer.",
|
|
7608
|
+
bullet: "- Driving the workspace Linux desktop (open a browser, click, type, scroll, screenshot, record) and exposing a live noVNC viewer in the dashboard",
|
|
7609
|
+
section: SECTION,
|
|
7610
|
+
referenceFile: { name: "COMPUTER-USE.md", content: REFERENCE }
|
|
7611
|
+
};
|
|
7412
7612
|
|
|
7413
7613
|
// ../shared/src/default-skills/replicas-agent/abilities/docker.ts
|
|
7414
|
-
var
|
|
7614
|
+
var SECTION2 = `### Docker
|
|
7415
7615
|
Start and use the Docker daemon in Replicas workspaces. Docker is pre-installed but the daemon does not auto-start.
|
|
7416
7616
|
|
|
7417
7617
|
**Reference:** \`references/DOCKER.md\`
|
|
@@ -7420,7 +7620,7 @@ Use this when:
|
|
|
7420
7620
|
- You need to run \`docker\` or \`docker compose\` commands
|
|
7421
7621
|
- You need to build or run Docker containers
|
|
7422
7622
|
- Your task involves containerized services or Docker-based workflows`;
|
|
7423
|
-
var
|
|
7623
|
+
var REFERENCE2 = `# Docker
|
|
7424
7624
|
|
|
7425
7625
|
Docker is pre-installed in Replicas workspaces, but the daemon does **not** auto-start. You must start it manually before running any \`docker\` or \`docker compose\` commands.
|
|
7426
7626
|
|
|
@@ -7428,33 +7628,30 @@ Docker is pre-installed in Replicas workspaces, but the daemon does **not** auto
|
|
|
7428
7628
|
|
|
7429
7629
|
\`\`\`bash
|
|
7430
7630
|
sudo service docker start
|
|
7631
|
+
until docker info >/dev/null 2>&1; do sleep 0.2; done
|
|
7431
7632
|
\`\`\`
|
|
7432
7633
|
|
|
7433
|
-
|
|
7434
|
-
|
|
7435
|
-
\`\`\`bash
|
|
7436
|
-
docker info
|
|
7437
|
-
\`\`\`
|
|
7634
|
+
\`service docker start\` returns before the socket is accepting connections, so immediate commands may fail without the poll.
|
|
7438
7635
|
|
|
7439
7636
|
## Important Notes
|
|
7440
7637
|
|
|
7441
7638
|
- **Start once per session.** The daemon stays running until the workspace shuts down. You do not need to restart it between commands.
|
|
7442
7639
|
- **Check before starting.** If you are unsure whether the daemon is already running, check first to avoid an unnecessary restart:
|
|
7443
7640
|
\`\`\`bash
|
|
7444
|
-
docker info
|
|
7641
|
+
docker info >/dev/null 2>&1 || { sudo service docker start && until docker info >/dev/null 2>&1; do sleep 0.2; done; }
|
|
7445
7642
|
\`\`\`
|
|
7446
|
-
- **Sudo is required
|
|
7643
|
+
- **Sudo is only required for starting the daemon.** The workspace user is in the \`docker\` group, so regular \`docker\` commands work without sudo.
|
|
7447
7644
|
`;
|
|
7448
7645
|
var DOCKER_ABILITY = {
|
|
7449
7646
|
label: "Docker",
|
|
7450
7647
|
description: "Start the daemon, build/run containers, drive `docker compose`.",
|
|
7451
7648
|
bullet: "- Using Docker (starting the daemon, running containers, docker compose)",
|
|
7452
|
-
section:
|
|
7453
|
-
referenceFile: { name: "DOCKER.md", content:
|
|
7649
|
+
section: SECTION2,
|
|
7650
|
+
referenceFile: { name: "DOCKER.md", content: REFERENCE2 }
|
|
7454
7651
|
};
|
|
7455
7652
|
|
|
7456
7653
|
// ../shared/src/default-skills/replicas-agent/abilities/github.ts
|
|
7457
|
-
var
|
|
7654
|
+
var SECTION3 = `### GitHub
|
|
7458
7655
|
Use the pre-authenticated \`gh\` CLI for pull requests, issues, actions, and API calls.
|
|
7459
7656
|
|
|
7460
7657
|
**Reference:** \`references/GITHUB.md\`
|
|
@@ -7464,7 +7661,7 @@ Use this when:
|
|
|
7464
7661
|
- You need to interact with GitHub issues or actions
|
|
7465
7662
|
- You need to use the GitHub API for advanced operations
|
|
7466
7663
|
- You need to include images in PR descriptions`;
|
|
7467
|
-
var
|
|
7664
|
+
var REFERENCE3 = `# GitHub Integration
|
|
7468
7665
|
|
|
7469
7666
|
This guide covers how to interact with GitHub from within your Replicas workspace.
|
|
7470
7667
|
|
|
@@ -7583,19 +7780,19 @@ gh pr review 123 --request-changes --body "Changes needed"
|
|
|
7583
7780
|
GitHub does NOT have a public API for uploading images to PRs/issues. When you need to include images:
|
|
7584
7781
|
- Do NOT use placeholder image URLs
|
|
7585
7782
|
- Do NOT commit screenshots as files to the repository
|
|
7586
|
-
-
|
|
7587
|
-
- If you were triggered from Slack, also upload the
|
|
7783
|
+
- Use the \`replicas-agent\` skill to share the image
|
|
7784
|
+
- If you were triggered from Slack, also upload the image to the Slack thread so the user can see it directly
|
|
7588
7785
|
`;
|
|
7589
7786
|
var GITHUB_ABILITY = {
|
|
7590
7787
|
label: "GitHub",
|
|
7591
7788
|
description: "Pre-authenticated `gh` CLI for PRs, issues, releases, and GraphQL.",
|
|
7592
7789
|
bullet: "- Interacting with GitHub (creating PRs, managing issues, using the API, etc.)",
|
|
7593
|
-
section:
|
|
7594
|
-
referenceFile: { name: "GITHUB.md", content:
|
|
7790
|
+
section: SECTION3,
|
|
7791
|
+
referenceFile: { name: "GITHUB.md", content: REFERENCE3 }
|
|
7595
7792
|
};
|
|
7596
7793
|
|
|
7597
7794
|
// ../shared/src/default-skills/replicas-agent/abilities/google.ts
|
|
7598
|
-
var
|
|
7795
|
+
var SECTION4 = `### Google Workspace (Docs, Sheets, Forms, Drive)
|
|
7599
7796
|
Create and edit Google Docs, Sheets, and Forms via the Replicas gateway. Files are owned by Replicas \u2014 the integration cannot access pre-existing Google content created outside of it.
|
|
7600
7797
|
|
|
7601
7798
|
**Reference:** \`references/GOOGLE.md\`
|
|
@@ -7604,7 +7801,7 @@ Use this when:
|
|
|
7604
7801
|
- You need to create or edit a Google Doc, Sheet, or Form
|
|
7605
7802
|
- You need to share, rename, move, or delete a Replicas-created Google file
|
|
7606
7803
|
- You need to read responses from a Replicas-created Google Form`;
|
|
7607
|
-
var
|
|
7804
|
+
var REFERENCE4 = `# Google Workspace (Docs, Sheets, Forms, Drive)
|
|
7608
7805
|
|
|
7609
7806
|
This guide covers how to create and edit Google Docs, Sheets, and Forms \u2014 plus do basic Drive file operations \u2014 from inside a Replicas workspace, using the monolith as a gateway to Google's APIs.
|
|
7610
7807
|
|
|
@@ -7865,12 +8062,12 @@ var GOOGLE_ABILITY = {
|
|
|
7865
8062
|
label: "Google Workspace",
|
|
7866
8063
|
description: "Create / edit Docs, Sheets, Forms, and Drive files via the Replicas gateway.",
|
|
7867
8064
|
bullet: "- Interacting with Google Workspace (creating and editing Docs, Sheets, and Forms, sharing files, reading form responses, etc.)",
|
|
7868
|
-
section:
|
|
7869
|
-
referenceFile: { name: "GOOGLE.md", content:
|
|
8065
|
+
section: SECTION4,
|
|
8066
|
+
referenceFile: { name: "GOOGLE.md", content: REFERENCE4 }
|
|
7870
8067
|
};
|
|
7871
8068
|
|
|
7872
8069
|
// ../shared/src/default-skills/replicas-agent/abilities/linear.ts
|
|
7873
|
-
var
|
|
8070
|
+
var SECTION5 = `### Linear
|
|
7874
8071
|
Fetch issues, update state, add comments, and search via the Linear GraphQL API.
|
|
7875
8072
|
|
|
7876
8073
|
**Reference:** \`references/LINEAR.md\`
|
|
@@ -7879,7 +8076,7 @@ Use this when:
|
|
|
7879
8076
|
- You encounter a Linear issue link and need to understand the task
|
|
7880
8077
|
- You need to update an issue's state (e.g. mark as done)
|
|
7881
8078
|
- You need to comment on or search for Linear issues`;
|
|
7882
|
-
var
|
|
8079
|
+
var REFERENCE5 = `# Linear Integration
|
|
7883
8080
|
|
|
7884
8081
|
This guide covers how to interact with Linear from within your Replicas workspace.
|
|
7885
8082
|
|
|
@@ -7954,13 +8151,13 @@ var LINEAR_ABILITY = {
|
|
|
7954
8151
|
label: "Linear",
|
|
7955
8152
|
description: "Fetch issues, post comments, update states via the Linear GraphQL API.",
|
|
7956
8153
|
bullet: "- Interacting with Linear (fetching issues, updating state, commenting, etc.)",
|
|
7957
|
-
section:
|
|
7958
|
-
referenceFile: { name: "LINEAR.md", content:
|
|
8154
|
+
section: SECTION5,
|
|
8155
|
+
referenceFile: { name: "LINEAR.md", content: REFERENCE5 }
|
|
7959
8156
|
};
|
|
7960
8157
|
|
|
7961
8158
|
// ../shared/src/default-skills/replicas-agent/abilities/media.ts
|
|
7962
|
-
var
|
|
7963
|
-
Share screenshots, screen recordings, generated diagrams, and audio clips inline in the Replicas chat
|
|
8159
|
+
var SECTION6 = `### Media
|
|
8160
|
+
Share screenshots, screen recordings, generated diagrams, and audio clips inline in the Replicas chat and natively embedded in external messages.
|
|
7964
8161
|
|
|
7965
8162
|
**Reference:** \`references/MEDIA.md\`
|
|
7966
8163
|
|
|
@@ -7968,9 +8165,9 @@ Use this when:
|
|
|
7968
8165
|
- You produce a screenshot, recording, generated image, or audio clip the user should see
|
|
7969
8166
|
- You record video output (browser automation, screen capture) \u2014 including the recommended aspect ratio and FPS
|
|
7970
8167
|
- You need to embed media in a Slack/Linear/GitHub message AND keep a referenceable copy in the Replicas dashboard`;
|
|
7971
|
-
var
|
|
8168
|
+
var REFERENCE6 = `# Media (Screenshots, Recordings, Audio)
|
|
7972
8169
|
|
|
7973
|
-
This guide covers how to share screenshots, screen recordings, generated diagrams, and audio clips
|
|
8170
|
+
This guide covers how to share screenshots, screen recordings, generated diagrams, and audio clips \u2014 both inline in the Replicas chat and natively embedded in external surfaces (Slack, Linear, GitHub).
|
|
7974
8171
|
|
|
7975
8172
|
## Prerequisites
|
|
7976
8173
|
|
|
@@ -7986,7 +8183,7 @@ Upload to Replicas in these cases \u2014 and **only** these cases:
|
|
|
7986
8183
|
|
|
7987
8184
|
If none of these apply, don't upload.
|
|
7988
8185
|
|
|
7989
|
-
## Uploading
|
|
8186
|
+
## Uploading to Replicas
|
|
7990
8187
|
|
|
7991
8188
|
\`\`\`bash
|
|
7992
8189
|
replicas media upload <path-to-file> [<path-to-file> ...]
|
|
@@ -7996,48 +8193,185 @@ Pass one or more file paths. Uploading several files in a single invocation is p
|
|
|
7996
8193
|
|
|
7997
8194
|
For each file, the CLI prints two lines:
|
|
7998
8195
|
|
|
7999
|
-
1. \`\` \u2014 the chat embed (renders inline in Replicas chat only
|
|
8196
|
+
1. \`\` \u2014 the chat embed (renders inline in Replicas chat **only** \u2014 see below).
|
|
8000
8197
|
2. \`View in Replicas: <deep-link>\` \u2014 a per-file dashboard URL of the form \`https://tryreplicas.com/workspaces/<workspace-id>?mode=media&media=<media-id>\` that opens directly to that specific file.
|
|
8001
8198
|
|
|
8002
8199
|
Match each "View in Replicas" line to the embed line directly above it \u2014 that's the deep link for that file.
|
|
8003
8200
|
|
|
8004
|
-
##
|
|
8201
|
+
## The two URLs the CLI gives you \u2014 and where each one is allowed
|
|
8005
8202
|
|
|
8006
|
-
|
|
8203
|
+
| URL | What it is | Where it's allowed |
|
|
8204
|
+
|---|---|---|
|
|
8205
|
+
| \`https://api.tryreplicas.com/v1/media/<id>\` (inside \`\`) | Authenticated API redirect to a presigned blob \u2014 requires the Replicas chat session | **Only** in the Replicas chat reply. Nowhere else. |
|
|
8206
|
+
| \`https://tryreplicas.com/workspaces/<workspace-id>?mode=media&media=<media-id>\` | Public dashboard deep link to the media tab, scrolled to that specific file | Everywhere external \u2014 Slack, GitHub, Linear, PR bodies, comments, emails. |
|
|
8007
8207
|
|
|
8008
|
-
|
|
8208
|
+
### NEVER link the API redirect URL outside the Replicas chat reply
|
|
8009
8209
|
|
|
8010
|
-
**
|
|
8210
|
+
The \`api.tryreplicas.com/v1/media/<id>\` URL is **not public**. It's an authenticated redirect that only resolves to a presigned download when the Replicas chat session token is present. Anywhere else (Slack, Linear, GitHub, a browser tab the user opens directly, a customer copy-pasting from chat) it returns \`{"error":"Missing authorization token"}\` and renders as a broken image.
|
|
8011
8211
|
|
|
8012
|
-
|
|
8212
|
+
This rule has no exceptions:
|
|
8213
|
+
- \u274C Never paste it in a Slack message \u2014 upload the actual bytes via the 3-step \`files.getUploadURLExternal\` \u2192 POST bytes \u2192 \`files.completeUploadExternal\` flow instead (see below).
|
|
8214
|
+
- \u274C Never paste it in a GitHub PR description, issue body, review comment, or commit message.
|
|
8215
|
+
- \u274C Never paste it in a Linear issue body or comment \u2014 upload via Linear's \`fileUpload\` mutation instead (see below).
|
|
8216
|
+
- \u274C Never link to it from any external doc, email, or external chat.
|
|
8217
|
+
- \u274C Never include it as a "backup link" in case the dashboard link breaks \u2014 it will always break externally.
|
|
8013
8218
|
|
|
8014
|
-
|
|
8219
|
+
### ALWAYS link the dashboard URL \u2014 never the API URL \u2014 when referencing media externally
|
|
8015
8220
|
|
|
8016
|
-
|
|
8017
|
-
|
|
8221
|
+
When you reference an uploaded file from anywhere outside the Replicas chat reply, the link must be the dashboard form:
|
|
8222
|
+
|
|
8223
|
+
\`\`\`
|
|
8224
|
+
https://tryreplicas.com/workspaces/<workspace-id>?mode=media&media=<media-id>
|
|
8018
8225
|
\`\`\`
|
|
8019
8226
|
|
|
8020
|
-
|
|
8227
|
+
Both query params are required:
|
|
8228
|
+
- \`mode=media\` opens the media tab in the dashboard.
|
|
8229
|
+
- \`media=<media-id>\` scrolls to and opens that specific file.
|
|
8021
8230
|
|
|
8022
|
-
|
|
8231
|
+
Never link \`tryreplicas.com/workspaces/<id>?mode=media\` without the \`media=<id>\` param when you have a specific file in mind \u2014 that lands on the gallery, not the file. Never link the bare workspace URL.
|
|
8023
8232
|
|
|
8024
|
-
|
|
8025
|
-
- **Media tab link** (no \`media=\` param): \`...?mode=media\` opens the workspace's media tab listing all files. Use this only when you're pointing at the collection, not a specific file (rare \u2014 you almost always have a specific file in mind).
|
|
8233
|
+
Always render as a markdown / mrkdwn hyperlink labeled **View in Replicas** \u2014 never paste a raw URL.
|
|
8026
8234
|
|
|
8027
|
-
|
|
8235
|
+
## In your Replicas chat reply
|
|
8028
8236
|
|
|
8029
8237
|
Include each markdown embed line **verbatim** where you want that file to render inline. The chat substitutes each one with an embedded image, video, or audio player. Multiple embeds can appear in a single reply.
|
|
8030
8238
|
|
|
8031
|
-
After (or alongside) the embeds, include a \`[View in Replicas](<deep-link>)\` hyperlink for each file using the per-file URL the CLI
|
|
8239
|
+
After (or alongside) the embeds, include a \`[View in Replicas](<deep-link>)\` hyperlink for each file using the per-file dashboard URL from the CLI. This lets the user jump to the specific item in the media tab.
|
|
8240
|
+
|
|
8241
|
+
## On external platforms \u2014 upload natively AND link the dashboard
|
|
8242
|
+
|
|
8243
|
+
Sharing media externally is a **two-step requirement** for every file:
|
|
8244
|
+
|
|
8245
|
+
1. **Upload the raw bytes natively to that platform** so the recipient sees the media embedded inline in the message itself.
|
|
8246
|
+
2. **Link the Replicas dashboard deep link** (\`?mode=media&media=<id>\` form) so the user can jump straight to the workspace.
|
|
8247
|
+
|
|
8248
|
+
A link alone is not enough. A native upload alone is not enough. Do both.
|
|
8249
|
+
|
|
8250
|
+
The one exception is GitHub, which has no public image upload API \u2014 there, the dashboard link is the only option (see below).
|
|
8251
|
+
|
|
8252
|
+
### Slack \u2014 embed natively via the 3-step external file upload flow
|
|
8253
|
+
|
|
8254
|
+
A Slack message that just contains a \`tryreplicas.com\` link is not acceptable when the message is supposed to show an image. The recipient should see the image inline in the thread.
|
|
8255
|
+
|
|
8256
|
+
Slack deprecated the single-shot \`files.upload\` endpoint. The raw HTTP replacement is a 3-step flow: reserve an upload URL with \`files.getUploadURLExternal\`, POST the bytes to it, then share into the channel/thread with \`files.completeUploadExternal\`. (\`files.uploadV2\` is **only** an SDK convenience wrapper \u2014 it is NOT a real Web API HTTP endpoint and \`POST https://slack.com/api/files.uploadV2\` will return \`unknown_method\`.)
|
|
8257
|
+
|
|
8258
|
+
\`\`\`bash
|
|
8259
|
+
FILE=/abs/path/to/screenshot.png
|
|
8260
|
+
FILENAME=$(basename "$FILE")
|
|
8261
|
+
LENGTH=$(stat -c%s "$FILE" 2>/dev/null || stat -f%z "$FILE")
|
|
8262
|
+
|
|
8263
|
+
# 1. Reserve an upload URL + file ID.
|
|
8264
|
+
RESERVE=$(curl -s -G "https://slack.com/api/files.getUploadURLExternal" \\
|
|
8265
|
+
-H "Authorization: Bearer $SLACK_BOT_TOKEN" \\
|
|
8266
|
+
--data-urlencode "filename=$FILENAME" \\
|
|
8267
|
+
--data-urlencode "length=$LENGTH")
|
|
8268
|
+
UPLOAD_URL=$(echo "$RESERVE" | jq -r '.upload_url')
|
|
8269
|
+
FILE_ID=$(echo "$RESERVE" | jq -r '.file_id')
|
|
8270
|
+
|
|
8271
|
+
# 2. POST the raw bytes to the reserved URL.
|
|
8272
|
+
# Do not use -F / multipart here \u2014 the presigned URL expects the bytes
|
|
8273
|
+
# directly in the request body.
|
|
8274
|
+
curl -s -X POST "$UPLOAD_URL" \\
|
|
8275
|
+
-H "Content-Type: application/octet-stream" \\
|
|
8276
|
+
--data-binary @"$FILE"
|
|
8277
|
+
|
|
8278
|
+
# 3. Complete the upload, sharing it into the channel/thread with the dashboard link.
|
|
8279
|
+
curl -s -X POST "https://slack.com/api/files.completeUploadExternal" \\
|
|
8280
|
+
-H "Authorization: Bearer $SLACK_BOT_TOKEN" \\
|
|
8281
|
+
-H "Content-Type: application/json; charset=utf-8" \\
|
|
8282
|
+
-d "{
|
|
8283
|
+
\\"files\\": [{\\"id\\": \\"$FILE_ID\\", \\"title\\": \\"Screenshot\\"}],
|
|
8284
|
+
\\"channel_id\\": \\"CHANNEL_ID\\",
|
|
8285
|
+
\\"thread_ts\\": \\"THREAD_TS\\",
|
|
8286
|
+
\\"initial_comment\\": \\"<https://tryreplicas.com/workspaces/<workspace-id>?mode=media&media=<media-id>|View in Replicas>\\"
|
|
8287
|
+
}"
|
|
8288
|
+
\`\`\`
|
|
8289
|
+
|
|
8290
|
+
Notes:
|
|
8291
|
+
- All three steps are required; do not try to POST to \`https://slack.com/api/files.uploadV2\` \u2014 that endpoint does not exist on the Web API.
|
|
8292
|
+
- \`initial_comment\` uses Slack mrkdwn (\`<url|label>\`), not GitHub-flavored markdown.
|
|
8293
|
+
- Omit \`thread_ts\` only when you genuinely want a top-level channel post.
|
|
8294
|
+
- For multiple files in the same message, run steps 1\u20132 per file and pass all \`{id, title}\` objects in the \`files\` array of a single \`files.completeUploadExternal\` call \u2014 they share into the thread together.
|
|
8295
|
+
- If you also need to post a separate text reply in the thread, send it with \`chat.postMessage\` after the upload \u2014 but the upload itself must carry the image.
|
|
8296
|
+
|
|
8297
|
+
Never paste the \`api.tryreplicas.com/v1/media/<id>\` URL into a Slack message body or \`initial_comment\` \u2014 it will render as a broken image attempt.
|
|
8298
|
+
|
|
8299
|
+
### Linear \u2014 embed natively via the GraphQL \`fileUpload\` mutation
|
|
8300
|
+
|
|
8301
|
+
Linear comments and issue bodies support markdown image embeds, but the image URL must be publicly accessible \u2014 so you upload the file to Linear's storage first, then reference the returned \`assetUrl\` in markdown. Three steps:
|
|
8302
|
+
|
|
8303
|
+
Use \`jq\` to build the JSON bodies \u2014 the GraphQL variables (\`size\`, \`filename\`, the comment body) need to be real JSON values, not unquoted placeholders, and \`jq -n --argjson / --arg\` is the safest way to interpolate shell values without quoting bugs.
|
|
8304
|
+
|
|
8305
|
+
\`\`\`bash
|
|
8306
|
+
FILE=/abs/path/to/screenshot.png
|
|
8307
|
+
FILENAME=$(basename "$FILE")
|
|
8308
|
+
SIZE=$(stat -c%s "$FILE" 2>/dev/null || stat -f%z "$FILE")
|
|
8309
|
+
CONTENT_TYPE=image/png
|
|
8310
|
+
ISSUE_UUID=... # the Linear issue's UUID
|
|
8311
|
+
WORKSPACE_ID=... # the Replicas workspace ID
|
|
8312
|
+
MEDIA_ID=... # the media ID printed by \`replicas media upload\`
|
|
8313
|
+
|
|
8314
|
+
# 1. Ask Linear for an upload URL + assetUrl.
|
|
8315
|
+
RESERVE=$(curl -s -X POST https://api.linear.app/graphql \\
|
|
8316
|
+
-H "Authorization: Bearer $LINEAR_ACCESS_TOKEN" \\
|
|
8317
|
+
-H "Content-Type: application/json" \\
|
|
8318
|
+
-d "$(jq -n \\
|
|
8319
|
+
--argjson size "$SIZE" \\
|
|
8320
|
+
--arg contentType "$CONTENT_TYPE" \\
|
|
8321
|
+
--arg filename "$FILENAME" \\
|
|
8322
|
+
'{
|
|
8323
|
+
query: "mutation($size: Int!, $contentType: String!, $filename: String!) { fileUpload(size: $size, contentType: $contentType, filename: $filename) { uploadFile { uploadUrl assetUrl headers { key value } } } }",
|
|
8324
|
+
variables: { size: $size, contentType: $contentType, filename: $filename }
|
|
8325
|
+
}')")
|
|
8326
|
+
UPLOAD_URL=$(echo "$RESERVE" | jq -r '.data.fileUpload.uploadFile.uploadUrl')
|
|
8327
|
+
ASSET_URL=$(echo "$RESERVE" | jq -r '.data.fileUpload.uploadFile.assetUrl')
|
|
8328
|
+
|
|
8329
|
+
# 2. PUT the bytes to uploadUrl, replaying every header Linear returned.
|
|
8330
|
+
# Linear's presigned URL requires the exact Content-Type / Cache-Control /
|
|
8331
|
+
# etc. it gave you back, so forward each {key, value} from the headers array.
|
|
8332
|
+
HEADER_ARGS=()
|
|
8333
|
+
while IFS=$'\\t' read -r k v; do
|
|
8334
|
+
HEADER_ARGS+=(-H "$k: $v")
|
|
8335
|
+
done < <(echo "$RESERVE" | jq -r '.data.fileUpload.uploadFile.headers[] | "\\(.key)\\t\\(.value)"')
|
|
8336
|
+
|
|
8337
|
+
curl -s -X PUT "$UPLOAD_URL" \\
|
|
8338
|
+
"\${HEADER_ARGS[@]}" \\
|
|
8339
|
+
--data-binary @"$FILE"
|
|
8340
|
+
|
|
8341
|
+
# 3. Reference assetUrl inline in the comment body, alongside the dashboard link.
|
|
8342
|
+
BODY=$(printf '\\n\\n[View in Replicas](https://tryreplicas.com/workspaces/%s?mode=media&media=%s)' \\
|
|
8343
|
+
"$ASSET_URL" "$WORKSPACE_ID" "$MEDIA_ID")
|
|
8344
|
+
|
|
8345
|
+
curl -s -X POST https://api.linear.app/graphql \\
|
|
8346
|
+
-H "Authorization: Bearer $LINEAR_ACCESS_TOKEN" \\
|
|
8347
|
+
-H "Content-Type: application/json" \\
|
|
8348
|
+
-d "$(jq -n \\
|
|
8349
|
+
--arg issueId "$ISSUE_UUID" \\
|
|
8350
|
+
--arg body "$BODY" \\
|
|
8351
|
+
'{
|
|
8352
|
+
query: "mutation($issueId: String!, $body: String!) { commentCreate(input: { issueId: $issueId, body: $body }) { success } }",
|
|
8353
|
+
variables: { issueId: $issueId, body: $body }
|
|
8354
|
+
}')"
|
|
8355
|
+
\`\`\`
|
|
8032
8356
|
|
|
8033
|
-
|
|
8357
|
+
The same flow works for issue bodies (use \`issueCreate\` / \`issueUpdate\` with the same markdown body).
|
|
8034
8358
|
|
|
8035
|
-
|
|
8359
|
+
Never paste the \`api.tryreplicas.com/v1/media/<id>\` URL into a Linear body or comment \u2014 it will render as a broken image to anyone outside your Replicas chat.
|
|
8036
8360
|
|
|
8037
|
-
|
|
8038
|
-
2. Include a \`[View in Replicas](<deep-link>)\` hyperlink \u2014 use the per-file deep link the CLI printed for that file (\`...?mode=media&media=<media-id>\`), so the recipient lands directly on that specific item.
|
|
8361
|
+
### GitHub \u2014 link the dashboard deep link (no public upload API exists)
|
|
8039
8362
|
|
|
8040
|
-
|
|
8363
|
+
GitHub has **no public API** for uploading images to PRs or issues. Their web UI uses an undocumented internal endpoint that's not available to API clients. So for GitHub specifically, the only correct way to share media is the dashboard deep link, rendered as a markdown hyperlink:
|
|
8364
|
+
|
|
8365
|
+
\`\`\`markdown
|
|
8366
|
+
[View in Replicas](https://tryreplicas.com/workspaces/<workspace-id>?mode=media&media=<media-id>)
|
|
8367
|
+
\`\`\`
|
|
8368
|
+
|
|
8369
|
+
Do **not**:
|
|
8370
|
+
- Commit screenshots as files to the repo as a workaround.
|
|
8371
|
+
- Use placeholder image URLs.
|
|
8372
|
+
- Embed the \`api.tryreplicas.com/v1/media/<id>\` URL in markdown \u2014 it renders as a broken image for every viewer.
|
|
8373
|
+
|
|
8374
|
+
This applies to PR descriptions, PR review comments, issue bodies, issue comments, and commit messages.
|
|
8041
8375
|
|
|
8042
8376
|
## Recording defaults
|
|
8043
8377
|
|
|
@@ -8081,13 +8415,13 @@ replicas media upload chart-a.svg chart-b.svg --kind image
|
|
|
8081
8415
|
var MEDIA_ABILITY = {
|
|
8082
8416
|
label: "Media",
|
|
8083
8417
|
description: "Share screenshots, recordings, generated images, and audio clips.",
|
|
8084
|
-
bullet: "-
|
|
8085
|
-
section:
|
|
8086
|
-
referenceFile: { name: "MEDIA.md", content:
|
|
8418
|
+
bullet: "- Producing or showing the user any media \u2014 screenshots, screen recordings, generated images or diagrams, audio clips \u2014 including in your Replicas chat reply, PR descriptions/comments, and other external platforms",
|
|
8419
|
+
section: SECTION6,
|
|
8420
|
+
referenceFile: { name: "MEDIA.md", content: REFERENCE6 }
|
|
8087
8421
|
};
|
|
8088
8422
|
|
|
8089
8423
|
// ../shared/src/default-skills/replicas-agent/abilities/previews.ts
|
|
8090
|
-
var
|
|
8424
|
+
var SECTION7 = `### Previews
|
|
8091
8425
|
Expose locally running services (web apps, APIs, databases) as public preview URLs so humans can interact with them directly.
|
|
8092
8426
|
|
|
8093
8427
|
**Reference:** \`references/PREVIEWS.md\`
|
|
@@ -8096,7 +8430,7 @@ Use this when:
|
|
|
8096
8430
|
- You need to start a service that a human should view or interact with
|
|
8097
8431
|
- The task involves UI work that benefits from human review
|
|
8098
8432
|
- You are verifying frontend/backend integrations visually`;
|
|
8099
|
-
var
|
|
8433
|
+
var REFERENCE7 = `# Preview URLs
|
|
8100
8434
|
|
|
8101
8435
|
When you run services on ports \u2014 such as a web app, API server, or database \u2014 humans may want to interact with them directly. You can expose your locally running services as public preview URLs.
|
|
8102
8436
|
|
|
@@ -8178,12 +8512,12 @@ var PREVIEWS_ABILITY = {
|
|
|
8178
8512
|
label: "Previews",
|
|
8179
8513
|
description: "Expose locally running services on public preview URLs for humans.",
|
|
8180
8514
|
bullet: "- Creating preview URLs for locally running services",
|
|
8181
|
-
section:
|
|
8182
|
-
referenceFile: { name: "PREVIEWS.md", content:
|
|
8515
|
+
section: SECTION7,
|
|
8516
|
+
referenceFile: { name: "PREVIEWS.md", content: REFERENCE7 }
|
|
8183
8517
|
};
|
|
8184
8518
|
|
|
8185
8519
|
// ../shared/src/default-skills/replicas-agent/abilities/replicas.ts
|
|
8186
|
-
var
|
|
8520
|
+
var SECTION8 = `### Replicas (in-workspace CLI)
|
|
8187
8521
|
Take action *with* Replicas itself \u2014 manage automations, environments (variables, files), repos, and \`replicas.json\` config \u2014 using the pre-installed, pre-authenticated \`replicas\` CLI.
|
|
8188
8522
|
|
|
8189
8523
|
**Reference:** \`references/REPLICAS.md\`
|
|
@@ -8193,7 +8527,7 @@ Use this when:
|
|
|
8193
8527
|
- The user asks you to manage environments, environment variables, or environment files
|
|
8194
8528
|
- The user asks "what envs / repos / automations do I have?"
|
|
8195
8529
|
- The user asks you to scaffold a \`replicas.json\` / \`replicas.yaml\` in a repo`;
|
|
8196
|
-
var
|
|
8530
|
+
var REFERENCE8 = `# Replicas (in-workspace CLI)
|
|
8197
8531
|
|
|
8198
8532
|
This guide covers how to take action *with* Replicas itself from inside a Replicas workspace \u2014 managing automations, environments (and their variables/files), repos, previews, and the user's \`replicas.json\` config \u2014 using the pre-installed \`replicas\` CLI.
|
|
8199
8533
|
|
|
@@ -8387,13 +8721,13 @@ var REPLICAS_ABILITY = {
|
|
|
8387
8721
|
description: "Teach the agent about Replicas itself \u2014 automations, environments, the in-workspace CLI.",
|
|
8388
8722
|
// No bullet — help_instructions covers the `replicas` CLI surface in detail.
|
|
8389
8723
|
bullet: "",
|
|
8390
|
-
section:
|
|
8391
|
-
referenceFile: { name: "REPLICAS.md", content:
|
|
8724
|
+
section: SECTION8,
|
|
8725
|
+
referenceFile: { name: "REPLICAS.md", content: REFERENCE8 },
|
|
8392
8726
|
locked: true
|
|
8393
8727
|
};
|
|
8394
8728
|
|
|
8395
8729
|
// ../shared/src/default-skills/replicas-agent/abilities/slack.ts
|
|
8396
|
-
var
|
|
8730
|
+
var SECTION9 = `### Slack
|
|
8397
8731
|
Send messages, read threads, search conversations, and upload files via the Slack Web API.
|
|
8398
8732
|
|
|
8399
8733
|
**Reference:** \`references/SLACK.md\`
|
|
@@ -8403,7 +8737,7 @@ Use this when:
|
|
|
8403
8737
|
- You need to read or fetch a Slack conversation
|
|
8404
8738
|
- You encounter a Slack message link and need to retrieve its content
|
|
8405
8739
|
- The task asks you to notify, update, or communicate via Slack`;
|
|
8406
|
-
var
|
|
8740
|
+
var REFERENCE9 = `# Slack Integration
|
|
8407
8741
|
|
|
8408
8742
|
This guide covers how to interact with Slack from within your Replicas workspace.
|
|
8409
8743
|
|
|
@@ -8458,14 +8792,42 @@ curl -s "https://slack.com/api/search.messages?query=YOUR_SEARCH_QUERY" \\
|
|
|
8458
8792
|
|
|
8459
8793
|
### Uploading Files
|
|
8460
8794
|
|
|
8795
|
+
Slack deprecated \`files.upload\`; the raw HTTP replacement is a 3-step flow. (\`files.uploadV2\` is **only** an SDK convenience wrapper and is NOT a real Web API HTTP endpoint \u2014 \`POST https://slack.com/api/files.uploadV2\` returns \`unknown_method\`.)
|
|
8796
|
+
|
|
8461
8797
|
\`\`\`bash
|
|
8462
|
-
|
|
8798
|
+
FILE=/path/to/file
|
|
8799
|
+
FILENAME=$(basename "$FILE")
|
|
8800
|
+
LENGTH=$(stat -c%s "$FILE" 2>/dev/null || stat -f%z "$FILE")
|
|
8801
|
+
|
|
8802
|
+
# 1. Reserve an upload URL + file ID.
|
|
8803
|
+
RESERVE=$(curl -s -G "https://slack.com/api/files.getUploadURLExternal" \\
|
|
8463
8804
|
-H "Authorization: Bearer $SLACK_BOT_TOKEN" \\
|
|
8464
|
-
-
|
|
8465
|
-
-
|
|
8466
|
-
|
|
8805
|
+
--data-urlencode "filename=$FILENAME" \\
|
|
8806
|
+
--data-urlencode "length=$LENGTH")
|
|
8807
|
+
UPLOAD_URL=$(echo "$RESERVE" | jq -r '.upload_url')
|
|
8808
|
+
FILE_ID=$(echo "$RESERVE" | jq -r '.file_id')
|
|
8809
|
+
|
|
8810
|
+
# 2. POST the raw bytes to the reserved URL.
|
|
8811
|
+
# Do not use -F / multipart here \u2014 the presigned URL expects the bytes
|
|
8812
|
+
# directly in the request body.
|
|
8813
|
+
curl -s -X POST "$UPLOAD_URL" \\
|
|
8814
|
+
-H "Content-Type: application/octet-stream" \\
|
|
8815
|
+
--data-binary @"$FILE"
|
|
8816
|
+
|
|
8817
|
+
# 3. Complete the upload and share into a channel (and optionally a thread).
|
|
8818
|
+
curl -s -X POST "https://slack.com/api/files.completeUploadExternal" \\
|
|
8819
|
+
-H "Authorization: Bearer $SLACK_BOT_TOKEN" \\
|
|
8820
|
+
-H "Content-Type: application/json; charset=utf-8" \\
|
|
8821
|
+
-d "{
|
|
8822
|
+
\\"files\\": [{\\"id\\": \\"$FILE_ID\\", \\"title\\": \\"File title\\"}],
|
|
8823
|
+
\\"channel_id\\": \\"CHANNEL_ID\\",
|
|
8824
|
+
\\"thread_ts\\": \\"OPTIONAL_THREAD_TS\\",
|
|
8825
|
+
\\"initial_comment\\": \\"Optional message body\\"
|
|
8826
|
+
}"
|
|
8467
8827
|
\`\`\`
|
|
8468
8828
|
|
|
8829
|
+
Omit \`thread_ts\` and/or \`initial_comment\` if you don't need them.
|
|
8830
|
+
|
|
8469
8831
|
### Other Operations
|
|
8470
8832
|
|
|
8471
8833
|
You can list channels, read channel history, add reactions, and perform any other operation supported by the Slack Web API using the same authentication pattern.
|
|
@@ -8476,13 +8838,14 @@ var SLACK_ABILITY = {
|
|
|
8476
8838
|
label: "Slack",
|
|
8477
8839
|
description: "Send messages, read threads, search conversations, upload files.",
|
|
8478
8840
|
bullet: "- Interacting with Slack (sending messages, reading threads, etc.)",
|
|
8479
|
-
section:
|
|
8480
|
-
referenceFile: { name: "SLACK.md", content:
|
|
8841
|
+
section: SECTION9,
|
|
8842
|
+
referenceFile: { name: "SLACK.md", content: REFERENCE9 }
|
|
8481
8843
|
};
|
|
8482
8844
|
|
|
8483
8845
|
// ../shared/src/default-skills/replicas-agent/registry.ts
|
|
8484
8846
|
var REPLICAS_AGENT_ABILITY_REGISTRY = {
|
|
8485
8847
|
replicas: REPLICAS_ABILITY,
|
|
8848
|
+
computer: COMPUTER_ABILITY,
|
|
8486
8849
|
docker: DOCKER_ABILITY,
|
|
8487
8850
|
github: GITHUB_ABILITY,
|
|
8488
8851
|
google: GOOGLE_ABILITY,
|
|
@@ -8510,20 +8873,24 @@ var DEFAULT_DEFAULT_SKILLS = {
|
|
|
8510
8873
|
var import_yaml = __toESM(require_dist());
|
|
8511
8874
|
|
|
8512
8875
|
// ../shared/src/warm-hooks.ts
|
|
8513
|
-
var DEFAULT_WARM_HOOK_TIMEOUT_MS =
|
|
8514
|
-
var MAX_WARM_HOOK_TIMEOUT_MS =
|
|
8876
|
+
var DEFAULT_WARM_HOOK_TIMEOUT_MS = 60 * 60 * 1e3;
|
|
8877
|
+
var MAX_WARM_HOOK_TIMEOUT_MS = 120 * 60 * 1e3;
|
|
8878
|
+
var DEFAULT_START_HOOK_TIMEOUT_MS = 5 * 60 * 1e3;
|
|
8515
8879
|
var HOOK_EXEC_MAX_BUFFER_BYTES = 10 * 1024 * 1024;
|
|
8516
8880
|
|
|
8517
8881
|
// ../shared/src/engine/types.ts
|
|
8518
8882
|
var CLAUDE_OPUS_1M_MODEL = "opus[1m]";
|
|
8519
8883
|
var LEGACY_CLAUDE_OPUS_1M_MODEL = "opus-1m";
|
|
8884
|
+
var CLAUDE_FABLE_5_MODEL = "claude-fable-5";
|
|
8885
|
+
var DEFAULT_CODEX_MODEL = "gpt-5.5";
|
|
8520
8886
|
var MODEL_LABELS = {
|
|
8521
8887
|
sonnet: "Sonnet 4.5",
|
|
8522
|
-
opus: "Opus 4.
|
|
8523
|
-
[CLAUDE_OPUS_1M_MODEL]: "Opus 4.
|
|
8524
|
-
[LEGACY_CLAUDE_OPUS_1M_MODEL]: "Opus 4.
|
|
8888
|
+
opus: "Opus 4.8",
|
|
8889
|
+
[CLAUDE_OPUS_1M_MODEL]: "Opus 4.8 (1M)",
|
|
8890
|
+
[LEGACY_CLAUDE_OPUS_1M_MODEL]: "Opus 4.8 (1M)",
|
|
8891
|
+
[CLAUDE_FABLE_5_MODEL]: "Fable 5",
|
|
8525
8892
|
haiku: "Haiku 4.5",
|
|
8526
|
-
|
|
8893
|
+
[DEFAULT_CODEX_MODEL]: "GPT-5.5",
|
|
8527
8894
|
"gpt-5.4": "GPT-5.4",
|
|
8528
8895
|
"gpt-5.4-mini": "GPT-5.4 Mini",
|
|
8529
8896
|
"gpt-5.3-codex": "GPT-5.3 Codex",
|
|
@@ -8540,6 +8907,14 @@ var MODEL_LABELS = {
|
|
|
8540
8907
|
// ../shared/src/routes/workspaces.ts
|
|
8541
8908
|
var WORKSPACE_FILE_UPLOAD_MAX_SIZE_BYTES = 20 * 1024 * 1024;
|
|
8542
8909
|
var WORKSPACE_FILE_CONTENT_MAX_SIZE_BYTES = 1 * 1024 * 1024;
|
|
8910
|
+
var WORKSPACE_STATUS_FILTERS = ["active", "sleeping", "preparing", "failed"];
|
|
8911
|
+
var DEFAULT_STATUS_FILTERS = [...WORKSPACE_STATUS_FILTERS];
|
|
8912
|
+
var DEFAULT_WORKSPACE_FILTERS = {
|
|
8913
|
+
statuses: [...DEFAULT_STATUS_FILTERS],
|
|
8914
|
+
ownerIds: [],
|
|
8915
|
+
activity: "any"
|
|
8916
|
+
};
|
|
8917
|
+
var ONE_DAY_MS = 24 * 60 * 60 * 1e3;
|
|
8543
8918
|
|
|
8544
8919
|
// ../shared/src/audit-log.ts
|
|
8545
8920
|
var AUDIT_LOG_ACTION = {
|
|
@@ -8551,7 +8926,71 @@ var AUDIT_LOG_ACTION = {
|
|
|
8551
8926
|
};
|
|
8552
8927
|
var AUDIT_LOG_ACTIONS = Object.values(AUDIT_LOG_ACTION);
|
|
8553
8928
|
|
|
8554
|
-
// ../shared/src/
|
|
8929
|
+
// ../shared/src/automations/types.ts
|
|
8930
|
+
var AUTOMATION_DEBOUNCE_MAX_SECONDS = 24 * 60 * 60;
|
|
8931
|
+
|
|
8932
|
+
// ../shared/src/display-message/types.ts
|
|
8933
|
+
var BACKGROUND_TASK_SUBTYPES = /* @__PURE__ */ new Set([
|
|
8934
|
+
"task_started",
|
|
8935
|
+
"task_progress",
|
|
8936
|
+
"task_updated",
|
|
8937
|
+
"task_notification"
|
|
8938
|
+
]);
|
|
8939
|
+
function isBackgroundTaskSubtype(subtype) {
|
|
8940
|
+
return typeof subtype === "string" && BACKGROUND_TASK_SUBTYPES.has(subtype);
|
|
8941
|
+
}
|
|
8942
|
+
function optionalString(value) {
|
|
8943
|
+
return typeof value === "string" ? value : void 0;
|
|
8944
|
+
}
|
|
8945
|
+
function coerceBackgroundTaskPayload(payload) {
|
|
8946
|
+
if (!isRecord(payload)) return null;
|
|
8947
|
+
const subtype = payload.subtype;
|
|
8948
|
+
if (!isBackgroundTaskSubtype(subtype)) return null;
|
|
8949
|
+
const taskId = payload.task_id;
|
|
8950
|
+
if (typeof taskId !== "string" || !taskId) return null;
|
|
8951
|
+
const patch = isRecord(payload.patch) ? {
|
|
8952
|
+
status: optionalString(payload.patch.status),
|
|
8953
|
+
description: optionalString(payload.patch.description),
|
|
8954
|
+
error: optionalString(payload.patch.error),
|
|
8955
|
+
isBackgrounded: optionalBoolean(payload.patch.is_backgrounded)
|
|
8956
|
+
} : void 0;
|
|
8957
|
+
const usage = isRecord(payload.usage) ? {
|
|
8958
|
+
totalTokens: optionalNumber(payload.usage.total_tokens),
|
|
8959
|
+
toolUses: optionalNumber(payload.usage.tool_uses),
|
|
8960
|
+
durationMs: optionalNumber(payload.usage.duration_ms)
|
|
8961
|
+
} : void 0;
|
|
8962
|
+
return {
|
|
8963
|
+
subtype,
|
|
8964
|
+
taskId,
|
|
8965
|
+
description: optionalString(payload.description),
|
|
8966
|
+
summary: optionalString(payload.summary),
|
|
8967
|
+
outputFile: optionalString(payload.output_file),
|
|
8968
|
+
status: optionalString(payload.status),
|
|
8969
|
+
taskType: optionalString(payload.task_type),
|
|
8970
|
+
workflowName: optionalString(payload.workflow_name),
|
|
8971
|
+
prompt: optionalString(payload.prompt),
|
|
8972
|
+
lastToolName: optionalString(payload.last_tool_name),
|
|
8973
|
+
usage,
|
|
8974
|
+
patch
|
|
8975
|
+
};
|
|
8976
|
+
}
|
|
8977
|
+
function optionalNumber(value) {
|
|
8978
|
+
return typeof value === "number" && Number.isFinite(value) ? value : void 0;
|
|
8979
|
+
}
|
|
8980
|
+
function optionalBoolean(value) {
|
|
8981
|
+
return typeof value === "boolean" ? value : void 0;
|
|
8982
|
+
}
|
|
8983
|
+
function normalizeBackgroundTaskStatus(status) {
|
|
8984
|
+
if (status === "completed" || status === "failed" || status === "stopped") {
|
|
8985
|
+
return status;
|
|
8986
|
+
}
|
|
8987
|
+
if (status === "killed") {
|
|
8988
|
+
return "stopped";
|
|
8989
|
+
}
|
|
8990
|
+
return "in_progress";
|
|
8991
|
+
}
|
|
8992
|
+
|
|
8993
|
+
// ../shared/src/json.ts
|
|
8555
8994
|
function safeJsonParse(str, fallback) {
|
|
8556
8995
|
try {
|
|
8557
8996
|
return JSON.parse(str);
|
|
@@ -8559,9 +8998,27 @@ function safeJsonParse(str, fallback) {
|
|
|
8559
8998
|
return fallback;
|
|
8560
8999
|
}
|
|
8561
9000
|
}
|
|
9001
|
+
|
|
9002
|
+
// ../shared/src/display-message/parsers/codex-parser.ts
|
|
8562
9003
|
function getStatusFromExitCode(exitCode) {
|
|
8563
9004
|
return exitCode === 0 ? "completed" : "failed";
|
|
8564
9005
|
}
|
|
9006
|
+
function getPayloadString(event, key) {
|
|
9007
|
+
const value = event.payload?.[key];
|
|
9008
|
+
return typeof value === "string" ? value : null;
|
|
9009
|
+
}
|
|
9010
|
+
function displayId(event, eventIndex, prefix) {
|
|
9011
|
+
const stableId = getPayloadString(event, USER_MESSAGE_ID_PAYLOAD_KEY) ?? getPayloadString(event, CODEX_ASP_ITEM_ID_PAYLOAD_KEY);
|
|
9012
|
+
return stableId ? `${prefix}-${stableId}` : `${prefix}-${event.timestamp}-${eventIndex}`;
|
|
9013
|
+
}
|
|
9014
|
+
function userMessageImages(value) {
|
|
9015
|
+
if (!Array.isArray(value)) return void 0;
|
|
9016
|
+
const images = value.filter((item) => {
|
|
9017
|
+
if (!isRecord(item)) return false;
|
|
9018
|
+
return item.type === "image" && typeof item.mediaType === "string" && typeof item.data === "string";
|
|
9019
|
+
});
|
|
9020
|
+
return images.length > 0 ? images : void 0;
|
|
9021
|
+
}
|
|
8565
9022
|
function parseShellOutput(raw) {
|
|
8566
9023
|
const exitCodeMatch = raw.match(/^Exit code: (\d+)/m) || raw.match(/Process exited with code (\d+)/);
|
|
8567
9024
|
const exitCode = exitCodeMatch ? parseInt(exitCodeMatch[1], 10) : 0;
|
|
@@ -8625,6 +9082,7 @@ function parsePatch(input) {
|
|
|
8625
9082
|
function parseCodexEvents(events) {
|
|
8626
9083
|
const messages = [];
|
|
8627
9084
|
const pendingCommands = /* @__PURE__ */ new Map();
|
|
9085
|
+
const pendingToolCalls = /* @__PURE__ */ new Map();
|
|
8628
9086
|
const pendingPatches = /* @__PURE__ */ new Map();
|
|
8629
9087
|
events.forEach((event, eventIndex) => {
|
|
8630
9088
|
if (event.type === CODEX_QUOTA_STATUS_EVENT_TYPE) {
|
|
@@ -8644,16 +9102,18 @@ function parseCodexEvents(events) {
|
|
|
8644
9102
|
return;
|
|
8645
9103
|
}
|
|
8646
9104
|
if (event.type === "event_msg" && event.payload?.type === "user_message") {
|
|
9105
|
+
const message = getPayloadString(event, "message");
|
|
8647
9106
|
messages.push({
|
|
8648
|
-
id:
|
|
9107
|
+
id: displayId(event, eventIndex, "user"),
|
|
8649
9108
|
type: "user",
|
|
8650
|
-
content:
|
|
9109
|
+
content: message ?? "",
|
|
9110
|
+
images: userMessageImages(event.payload.images),
|
|
8651
9111
|
timestamp: event.timestamp
|
|
8652
9112
|
});
|
|
8653
9113
|
}
|
|
8654
9114
|
if (event.type === "event_msg" && event.payload?.type === "agent_reasoning") {
|
|
8655
9115
|
messages.push({
|
|
8656
|
-
id:
|
|
9116
|
+
id: displayId(event, eventIndex, "reasoning"),
|
|
8657
9117
|
type: "reasoning",
|
|
8658
9118
|
content: event.payload.text || "",
|
|
8659
9119
|
status: "completed",
|
|
@@ -8667,7 +9127,7 @@ function parseCodexEvents(events) {
|
|
|
8667
9127
|
const textContent = content.filter((c) => c.type === "output_text").map((c) => c.text || "").join("\n");
|
|
8668
9128
|
if (textContent) {
|
|
8669
9129
|
messages.push({
|
|
8670
|
-
id:
|
|
9130
|
+
id: displayId(event, eventIndex, "agent"),
|
|
8671
9131
|
type: "agent",
|
|
8672
9132
|
content: textContent,
|
|
8673
9133
|
timestamp: event.timestamp
|
|
@@ -8707,19 +9167,25 @@ function parseCodexEvents(events) {
|
|
|
8707
9167
|
const callId = event.payload.call_id;
|
|
8708
9168
|
const name = event.payload.name;
|
|
8709
9169
|
const input = event.payload.input || "";
|
|
9170
|
+
const server2 = typeof event.payload.server === "string" ? event.payload.server : "custom";
|
|
8710
9171
|
const status = event.payload.status || "in_progress";
|
|
8711
9172
|
if (name === "apply_patch") {
|
|
8712
9173
|
const operations = parsePatch(input);
|
|
8713
9174
|
pendingPatches.set(callId, { input, status, timestamp: event.timestamp, operations });
|
|
8714
9175
|
} else {
|
|
8715
|
-
|
|
8716
|
-
id: `toolcall-${event.timestamp}-${eventIndex}`,
|
|
9176
|
+
const msg = {
|
|
9177
|
+
id: `toolcall-${callId || getPayloadString(event, CODEX_ASP_ITEM_ID_PAYLOAD_KEY) || `${event.timestamp}-${eventIndex}`}`,
|
|
8717
9178
|
type: "tool_call",
|
|
8718
|
-
server:
|
|
9179
|
+
server: server2,
|
|
8719
9180
|
tool: name,
|
|
9181
|
+
input,
|
|
8720
9182
|
status,
|
|
8721
9183
|
timestamp: event.timestamp
|
|
8722
|
-
}
|
|
9184
|
+
};
|
|
9185
|
+
messages.push(msg);
|
|
9186
|
+
if (callId) {
|
|
9187
|
+
pendingToolCalls.set(callId, msg);
|
|
9188
|
+
}
|
|
8723
9189
|
}
|
|
8724
9190
|
}
|
|
8725
9191
|
if (payloadType === "custom_tool_call_output") {
|
|
@@ -8741,9 +9207,14 @@ function parseCodexEvents(events) {
|
|
|
8741
9207
|
});
|
|
8742
9208
|
pendingPatches.delete(callId);
|
|
8743
9209
|
} else {
|
|
8744
|
-
const
|
|
9210
|
+
const fallbackToolCallMsg = messages.findLast((m) => m.type === "tool_call");
|
|
9211
|
+
const toolCallMsg = pendingToolCalls.get(callId) ?? fallbackToolCallMsg;
|
|
8745
9212
|
if (toolCallMsg) {
|
|
8746
9213
|
toolCallMsg.status = getStatusFromExitCode(output.metadata?.exit_code);
|
|
9214
|
+
toolCallMsg.output = output.output ?? (typeof event.payload.output === "string" ? event.payload.output : "");
|
|
9215
|
+
if (callId) {
|
|
9216
|
+
pendingToolCalls.delete(callId);
|
|
9217
|
+
}
|
|
8747
9218
|
}
|
|
8748
9219
|
}
|
|
8749
9220
|
}
|
|
@@ -8771,40 +9242,180 @@ function parseCodexEvents(events) {
|
|
|
8771
9242
|
return messages;
|
|
8772
9243
|
}
|
|
8773
9244
|
|
|
8774
|
-
// ../shared/src/display-message/
|
|
8775
|
-
function
|
|
9245
|
+
// ../shared/src/display-message/task-accumulator.ts
|
|
9246
|
+
function mapTaskStatus(status) {
|
|
9247
|
+
if (status === "in_progress" || status === "completed") return status;
|
|
9248
|
+
return "pending";
|
|
9249
|
+
}
|
|
9250
|
+
function toAccumulatorInput(input) {
|
|
9251
|
+
if (typeof input === "string") {
|
|
9252
|
+
try {
|
|
9253
|
+
const parsed = JSON.parse(input);
|
|
9254
|
+
return isRecord(parsed) ? parsed : {};
|
|
9255
|
+
} catch {
|
|
9256
|
+
return {};
|
|
9257
|
+
}
|
|
9258
|
+
}
|
|
9259
|
+
return isRecord(input) ? input : {};
|
|
9260
|
+
}
|
|
9261
|
+
function extractToolResultText(content, separator = "\n") {
|
|
9262
|
+
if (typeof content === "string") return content;
|
|
9263
|
+
if (!Array.isArray(content)) return "";
|
|
9264
|
+
const texts = [];
|
|
9265
|
+
for (const part of content) {
|
|
9266
|
+
if (isRecord(part) && part.type === "text" && typeof part.text === "string") {
|
|
9267
|
+
texts.push(part.text);
|
|
9268
|
+
}
|
|
9269
|
+
}
|
|
9270
|
+
return texts.join(separator);
|
|
9271
|
+
}
|
|
9272
|
+
function normalizeContentBlocks(content) {
|
|
9273
|
+
if (typeof content === "string") {
|
|
9274
|
+
return content ? [{ type: "text", text: content }] : [];
|
|
9275
|
+
}
|
|
9276
|
+
return content ?? [];
|
|
9277
|
+
}
|
|
9278
|
+
function parseStringField(value) {
|
|
9279
|
+
if (typeof value !== "string") return null;
|
|
9280
|
+
const trimmed = value.trim();
|
|
9281
|
+
return trimmed ? trimmed : null;
|
|
9282
|
+
}
|
|
9283
|
+
function parseCreateResultTaskId(resultText) {
|
|
8776
9284
|
try {
|
|
8777
|
-
|
|
9285
|
+
const parsed = JSON.parse(resultText);
|
|
9286
|
+
if (isRecord(parsed) && isRecord(parsed.task)) {
|
|
9287
|
+
return parseStringField(parsed.task.id);
|
|
9288
|
+
}
|
|
8778
9289
|
} catch {
|
|
8779
|
-
return fallback;
|
|
8780
9290
|
}
|
|
9291
|
+
return resultText.match(/\bTask\s+#?([A-Za-z0-9_-]+)\s+created\b/i)?.[1] ?? null;
|
|
8781
9292
|
}
|
|
8782
|
-
|
|
8783
|
-
|
|
8784
|
-
|
|
8785
|
-
|
|
8786
|
-
|
|
9293
|
+
var TaskAccumulator = class {
|
|
9294
|
+
tasksByTaskId = /* @__PURE__ */ new Map();
|
|
9295
|
+
tasksByCreateToolUseId = /* @__PURE__ */ new Map();
|
|
9296
|
+
orderedKeys = [];
|
|
9297
|
+
processToolUse(toolName, toolUseId, input) {
|
|
9298
|
+
if (toolName === "TaskCreate") {
|
|
9299
|
+
const subject = parseStringField(input.subject);
|
|
9300
|
+
if (!subject) return false;
|
|
9301
|
+
this.tasksByCreateToolUseId.set(toolUseId, { subject, status: "pending" });
|
|
9302
|
+
this.orderedKeys.push(toolUseId);
|
|
9303
|
+
return true;
|
|
9304
|
+
}
|
|
9305
|
+
if (toolName === "TaskUpdate") {
|
|
9306
|
+
const taskId = parseStringField(input.taskId);
|
|
9307
|
+
if (!taskId) return false;
|
|
9308
|
+
if (input.status === "deleted") {
|
|
9309
|
+
if (!this.tasksByTaskId.delete(taskId)) return false;
|
|
9310
|
+
const idx = this.orderedKeys.indexOf(taskId);
|
|
9311
|
+
if (idx !== -1) this.orderedKeys.splice(idx, 1);
|
|
9312
|
+
return true;
|
|
9313
|
+
}
|
|
9314
|
+
const existing = this.tasksByTaskId.get(taskId);
|
|
9315
|
+
const subject = parseStringField(input.subject) ?? existing?.subject;
|
|
9316
|
+
if (!subject) return false;
|
|
9317
|
+
const status = input.status !== void 0 ? mapTaskStatus(input.status) : existing?.status ?? "pending";
|
|
9318
|
+
this.tasksByTaskId.set(taskId, { subject, status });
|
|
9319
|
+
if (!existing) this.orderedKeys.push(taskId);
|
|
9320
|
+
return true;
|
|
9321
|
+
}
|
|
9322
|
+
if (toolName === "TaskList") {
|
|
9323
|
+
if (!Array.isArray(input.tasks)) return false;
|
|
9324
|
+
let changed = false;
|
|
9325
|
+
for (const raw of input.tasks) {
|
|
9326
|
+
if (!isRecord(raw)) continue;
|
|
9327
|
+
const id = parseStringField(raw.id);
|
|
9328
|
+
const subject = parseStringField(raw.subject);
|
|
9329
|
+
if (!id || !subject) continue;
|
|
9330
|
+
const existing = this.tasksByTaskId.get(id);
|
|
9331
|
+
const next = { subject, status: mapTaskStatus(raw.status) };
|
|
9332
|
+
if (existing && existing.subject === next.subject && existing.status === next.status) continue;
|
|
9333
|
+
this.tasksByTaskId.set(id, next);
|
|
9334
|
+
if (!existing) this.orderedKeys.push(id);
|
|
9335
|
+
changed = true;
|
|
9336
|
+
}
|
|
9337
|
+
return changed;
|
|
9338
|
+
}
|
|
9339
|
+
return false;
|
|
9340
|
+
}
|
|
9341
|
+
processCreateResult(toolUseId, resultText) {
|
|
9342
|
+
const pending = this.tasksByCreateToolUseId.get(toolUseId);
|
|
9343
|
+
if (!pending) return false;
|
|
9344
|
+
const taskId = parseCreateResultTaskId(resultText);
|
|
9345
|
+
if (!taskId) return false;
|
|
9346
|
+
this.tasksByTaskId.set(taskId, pending);
|
|
9347
|
+
this.tasksByCreateToolUseId.delete(toolUseId);
|
|
9348
|
+
const idx = this.orderedKeys.indexOf(toolUseId);
|
|
9349
|
+
if (idx !== -1) this.orderedKeys.splice(idx, 1, taskId);
|
|
9350
|
+
return true;
|
|
8787
9351
|
}
|
|
8788
|
-
|
|
9352
|
+
getTasks() {
|
|
9353
|
+
const out = [];
|
|
9354
|
+
for (const key of this.orderedKeys) {
|
|
9355
|
+
const task = this.tasksByTaskId.get(key) ?? this.tasksByCreateToolUseId.get(key);
|
|
9356
|
+
if (task && task.subject) out.push(task);
|
|
9357
|
+
}
|
|
9358
|
+
return out;
|
|
9359
|
+
}
|
|
9360
|
+
processContentBlock(block) {
|
|
9361
|
+
if (!isRecord(block)) return false;
|
|
9362
|
+
if (block.type === "tool_use" && typeof block.name === "string" && typeof block.id === "string") {
|
|
9363
|
+
return this.processToolUse(block.name, block.id, toAccumulatorInput(block.input));
|
|
9364
|
+
}
|
|
9365
|
+
if (block.type === "tool_result" && typeof block.tool_use_id === "string") {
|
|
9366
|
+
return this.processCreateResult(block.tool_use_id, extractToolResultText(block.content, ""));
|
|
9367
|
+
}
|
|
9368
|
+
return false;
|
|
9369
|
+
}
|
|
9370
|
+
};
|
|
9371
|
+
|
|
9372
|
+
// ../shared/src/display-message/parsers/mcp.ts
|
|
9373
|
+
function parseMcpToolName(name) {
|
|
9374
|
+
const prefix = "mcp__";
|
|
9375
|
+
if (!name.startsWith(prefix)) return null;
|
|
9376
|
+
const rest = name.slice(prefix.length);
|
|
9377
|
+
const sep = rest.indexOf("__");
|
|
9378
|
+
if (sep <= 0) return null;
|
|
9379
|
+
const server2 = rest.slice(0, sep);
|
|
9380
|
+
const tool = rest.slice(sep + 2);
|
|
9381
|
+
if (!server2 || !tool) return null;
|
|
9382
|
+
return { server: server2, tool };
|
|
8789
9383
|
}
|
|
9384
|
+
|
|
9385
|
+
// ../shared/src/display-message/parsers/claude-parser.ts
|
|
9386
|
+
var LOCAL_COMMAND_ECHO_REGEX = /^<(?:command-name|command-message|local-command-stdout|local-command-stderr)>/;
|
|
8790
9387
|
function parseClaudeEvents(events, parentToolUseId) {
|
|
8791
9388
|
const messages = [];
|
|
8792
9389
|
const filterValue = parentToolUseId !== void 0 ? parentToolUseId : null;
|
|
8793
|
-
const filteredEvents = events.filter(
|
|
8794
|
-
|
|
8795
|
-
|
|
9390
|
+
const filteredEvents = events.filter((e) => {
|
|
9391
|
+
const eventParentToolUseId = e.payload.parent_tool_use_id ?? null;
|
|
9392
|
+
return eventParentToolUseId === filterValue;
|
|
9393
|
+
});
|
|
8796
9394
|
const toolCallMap = /* @__PURE__ */ new Map();
|
|
9395
|
+
const taskMessageMap = /* @__PURE__ */ new Map();
|
|
9396
|
+
const taskAccumulator = new TaskAccumulator();
|
|
9397
|
+
const taskSnapshot = () => taskAccumulator.getTasks().map((task) => ({
|
|
9398
|
+
text: task.subject,
|
|
9399
|
+
completed: task.status === "completed",
|
|
9400
|
+
itemStatus: task.status
|
|
9401
|
+
}));
|
|
8797
9402
|
filteredEvents.forEach((event) => {
|
|
8798
9403
|
if (event.type === "claude-user") {
|
|
8799
|
-
const content = event.payload.message?.content
|
|
9404
|
+
const content = normalizeContentBlocks(event.payload.message?.content);
|
|
8800
9405
|
const toolResult = content.find((c) => c.type === "tool_result");
|
|
8801
9406
|
if (toolResult && toolResult.tool_use_id) {
|
|
9407
|
+
if (!toolResult.is_error) {
|
|
9408
|
+
taskAccumulator.processContentBlock(toolResult);
|
|
9409
|
+
}
|
|
8802
9410
|
return;
|
|
8803
9411
|
}
|
|
8804
9412
|
if (event.payload.isSynthetic) {
|
|
8805
9413
|
return;
|
|
8806
9414
|
}
|
|
8807
9415
|
const textContent = content.filter((c) => c.type === "text").map((c) => c.text || "").join("\n");
|
|
9416
|
+
if (LOCAL_COMMAND_ECHO_REGEX.test(textContent.trim())) {
|
|
9417
|
+
return;
|
|
9418
|
+
}
|
|
8808
9419
|
const images = content.filter((c) => c.type === "image" && c.source).map((c) => {
|
|
8809
9420
|
const source = c.source;
|
|
8810
9421
|
return {
|
|
@@ -8824,7 +9435,7 @@ function parseClaudeEvents(events, parentToolUseId) {
|
|
|
8824
9435
|
}
|
|
8825
9436
|
}
|
|
8826
9437
|
if (event.type === "claude-assistant") {
|
|
8827
|
-
const contentBlocks = event.payload.message?.content
|
|
9438
|
+
const contentBlocks = normalizeContentBlocks(event.payload.message?.content);
|
|
8828
9439
|
contentBlocks.forEach((block) => {
|
|
8829
9440
|
if (block.type === "text" && block.text) {
|
|
8830
9441
|
messages.push({
|
|
@@ -8853,7 +9464,7 @@ function parseClaudeEvents(events, parentToolUseId) {
|
|
|
8853
9464
|
input: toolInput
|
|
8854
9465
|
});
|
|
8855
9466
|
if (toolName === "Task" || toolName === "Agent") {
|
|
8856
|
-
const inputObj = typeof toolInput === "string" ?
|
|
9467
|
+
const inputObj = typeof toolInput === "string" ? safeJsonParse(toolInput, {}) : toolInput;
|
|
8857
9468
|
const nestedEvents = events.filter((e) => e.payload.parent_tool_use_id === toolUseId).map((e) => ({
|
|
8858
9469
|
timestamp: e.timestamp,
|
|
8859
9470
|
type: e.type,
|
|
@@ -8872,7 +9483,7 @@ function parseClaudeEvents(events, parentToolUseId) {
|
|
|
8872
9483
|
timestamp: event.timestamp
|
|
8873
9484
|
});
|
|
8874
9485
|
} else if (toolName === "Bash" || toolName === "bash" || toolName === "shell") {
|
|
8875
|
-
const inputObj = typeof toolInput === "string" ?
|
|
9486
|
+
const inputObj = typeof toolInput === "string" ? safeJsonParse(toolInput, {}) : toolInput;
|
|
8876
9487
|
const command = inputObj.command || "";
|
|
8877
9488
|
messages.push({
|
|
8878
9489
|
id: `command-${event.timestamp}-${messages.length}`,
|
|
@@ -8883,7 +9494,7 @@ function parseClaudeEvents(events, parentToolUseId) {
|
|
|
8883
9494
|
timestamp: event.timestamp
|
|
8884
9495
|
});
|
|
8885
9496
|
} else if (toolName === "Write" || toolName === "Edit") {
|
|
8886
|
-
const inputObj = typeof toolInput === "string" ?
|
|
9497
|
+
const inputObj = typeof toolInput === "string" ? safeJsonParse(toolInput, {}) : toolInput;
|
|
8887
9498
|
const filePath = inputObj.file_path || "";
|
|
8888
9499
|
const action = toolName === "Write" ? "add" : "update";
|
|
8889
9500
|
let diff;
|
|
@@ -8919,24 +9530,20 @@ function parseClaudeEvents(events, parentToolUseId) {
|
|
|
8919
9530
|
status: "in_progress",
|
|
8920
9531
|
timestamp: event.timestamp
|
|
8921
9532
|
});
|
|
8922
|
-
} else if (toolName === "
|
|
8923
|
-
|
|
8924
|
-
const
|
|
8925
|
-
|
|
8926
|
-
text: todo.content,
|
|
8927
|
-
completed: todo.status === "completed"
|
|
8928
|
-
}));
|
|
8929
|
-
if (todoItems.length > 0) {
|
|
9533
|
+
} else if (toolName === "TaskCreate" || toolName === "TaskUpdate" || toolName === "TaskList") {
|
|
9534
|
+
taskAccumulator.processContentBlock(block);
|
|
9535
|
+
const snapshot = taskSnapshot();
|
|
9536
|
+
if (snapshot.length > 0) {
|
|
8930
9537
|
messages.push({
|
|
8931
9538
|
id: `todo-${event.timestamp}-${messages.length}`,
|
|
8932
9539
|
type: "todo_list",
|
|
8933
|
-
items:
|
|
9540
|
+
items: snapshot,
|
|
8934
9541
|
status: "completed",
|
|
8935
9542
|
timestamp: event.timestamp
|
|
8936
9543
|
});
|
|
8937
9544
|
}
|
|
8938
9545
|
} else if (toolName === "WebSearch") {
|
|
8939
|
-
const inputObj = typeof toolInput === "string" ?
|
|
9546
|
+
const inputObj = typeof toolInput === "string" ? safeJsonParse(toolInput, {}) : toolInput;
|
|
8940
9547
|
const query = inputObj.query || "";
|
|
8941
9548
|
messages.push({
|
|
8942
9549
|
id: `search-${event.timestamp}-${messages.length}`,
|
|
@@ -8946,7 +9553,7 @@ function parseClaudeEvents(events, parentToolUseId) {
|
|
|
8946
9553
|
timestamp: event.timestamp
|
|
8947
9554
|
});
|
|
8948
9555
|
} else if (toolName === "Skill") {
|
|
8949
|
-
const inputObj = typeof toolInput === "string" ?
|
|
9556
|
+
const inputObj = typeof toolInput === "string" ? safeJsonParse(toolInput, {}) : toolInput;
|
|
8950
9557
|
messages.push({
|
|
8951
9558
|
id: `skill-${event.timestamp}-${messages.length}`,
|
|
8952
9559
|
type: "skill",
|
|
@@ -8956,7 +9563,7 @@ function parseClaudeEvents(events, parentToolUseId) {
|
|
|
8956
9563
|
timestamp: event.timestamp
|
|
8957
9564
|
});
|
|
8958
9565
|
} else if (toolName === "mcp__relay-subagent-tools__spawn_agent") {
|
|
8959
|
-
const inputObj = typeof toolInput === "string" ?
|
|
9566
|
+
const inputObj = typeof toolInput === "string" ? safeJsonParse(toolInput, {}) : toolInput;
|
|
8960
9567
|
messages.push({
|
|
8961
9568
|
id: `subagent-${event.timestamp}-${messages.length}`,
|
|
8962
9569
|
type: "subagent",
|
|
@@ -8971,12 +9578,13 @@ function parseClaudeEvents(events, parentToolUseId) {
|
|
|
8971
9578
|
timestamp: event.timestamp
|
|
8972
9579
|
});
|
|
8973
9580
|
} else if (toolName === "mcp__relay-subagent-tools__delete_agent") {
|
|
8974
|
-
const inputObj = typeof toolInput === "string" ?
|
|
9581
|
+
const inputObj = typeof toolInput === "string" ? safeJsonParse(toolInput, {}) : toolInput;
|
|
9582
|
+
const mcp = parseMcpToolName(toolName);
|
|
8975
9583
|
messages.push({
|
|
8976
9584
|
id: `toolcall-${event.timestamp}-${messages.length}`,
|
|
8977
9585
|
type: "tool_call",
|
|
8978
|
-
server: "relay-subagent-tools",
|
|
8979
|
-
tool: "delete_agent",
|
|
9586
|
+
server: mcp?.server ?? "relay-subagent-tools",
|
|
9587
|
+
tool: mcp?.tool ?? "delete_agent",
|
|
8980
9588
|
input: inputObj,
|
|
8981
9589
|
status: "in_progress",
|
|
8982
9590
|
timestamp: event.timestamp
|
|
@@ -9008,6 +9616,36 @@ function parseClaudeEvents(events, parentToolUseId) {
|
|
|
9008
9616
|
});
|
|
9009
9617
|
}
|
|
9010
9618
|
}
|
|
9619
|
+
if (event.type === "claude-system") {
|
|
9620
|
+
const payload = coerceBackgroundTaskPayload(event.payload);
|
|
9621
|
+
if (payload) {
|
|
9622
|
+
const existing = taskMessageMap.get(payload.taskId);
|
|
9623
|
+
const nextStatus = payload.subtype === "task_notification" ? normalizeBackgroundTaskStatus(payload.status) : payload.subtype === "task_updated" ? normalizeBackgroundTaskStatus(payload.patch?.status) : existing?.status ?? "in_progress";
|
|
9624
|
+
const nextMessage = {
|
|
9625
|
+
id: existing?.id ?? `task-${event.timestamp}-${messages.length}`,
|
|
9626
|
+
type: "background_task",
|
|
9627
|
+
taskId: payload.taskId,
|
|
9628
|
+
status: nextStatus,
|
|
9629
|
+
description: payload.description ?? payload.patch?.description ?? existing?.description,
|
|
9630
|
+
summary: payload.summary ?? existing?.summary,
|
|
9631
|
+
outputFile: payload.outputFile ?? existing?.outputFile,
|
|
9632
|
+
taskType: payload.taskType ?? existing?.taskType,
|
|
9633
|
+
workflowName: payload.workflowName ?? existing?.workflowName,
|
|
9634
|
+
prompt: payload.prompt ?? existing?.prompt,
|
|
9635
|
+
lastToolName: payload.lastToolName ?? existing?.lastToolName,
|
|
9636
|
+
usage: payload.usage ?? existing?.usage,
|
|
9637
|
+
error: payload.patch?.error ?? existing?.error,
|
|
9638
|
+
isBackgrounded: payload.patch?.isBackgrounded ?? existing?.isBackgrounded,
|
|
9639
|
+
timestamp: existing?.timestamp ?? event.timestamp
|
|
9640
|
+
};
|
|
9641
|
+
if (existing) {
|
|
9642
|
+
Object.assign(existing, nextMessage);
|
|
9643
|
+
} else {
|
|
9644
|
+
taskMessageMap.set(payload.taskId, nextMessage);
|
|
9645
|
+
messages.push(nextMessage);
|
|
9646
|
+
}
|
|
9647
|
+
}
|
|
9648
|
+
}
|
|
9011
9649
|
});
|
|
9012
9650
|
filteredEvents.forEach((event) => {
|
|
9013
9651
|
if (event.type === "replicas-tool-input-request") {
|
|
@@ -9042,14 +9680,17 @@ function parseClaudeEvents(events, parentToolUseId) {
|
|
|
9042
9680
|
});
|
|
9043
9681
|
filteredEvents.forEach((event) => {
|
|
9044
9682
|
if (event.type === "claude-user") {
|
|
9045
|
-
const content = event.payload.message?.content
|
|
9683
|
+
const content = normalizeContentBlocks(event.payload.message?.content);
|
|
9046
9684
|
const toolResult = content.find((c) => c.type === "tool_result");
|
|
9047
9685
|
if (toolResult && toolResult.tool_use_id) {
|
|
9048
9686
|
const toolInfo = toolCallMap.get(toolResult.tool_use_id);
|
|
9049
9687
|
if (!toolInfo) return;
|
|
9050
|
-
const resultContent =
|
|
9688
|
+
const resultContent = extractToolResultText(toolResult.content);
|
|
9051
9689
|
const isError = toolResult.is_error || false;
|
|
9052
9690
|
const status = isError ? "failed" : "completed";
|
|
9691
|
+
if (toolInfo.toolName === "TaskCreate" && !isError) {
|
|
9692
|
+
taskAccumulator.processContentBlock(toolResult);
|
|
9693
|
+
}
|
|
9053
9694
|
const message = messages[toolInfo.messageIndex];
|
|
9054
9695
|
if (!message) return;
|
|
9055
9696
|
if (message.type === "command") {
|
|
@@ -9074,7 +9715,7 @@ function parseClaudeEvents(events, parentToolUseId) {
|
|
|
9074
9715
|
message.output = resultContent;
|
|
9075
9716
|
message.status = status;
|
|
9076
9717
|
if (!message.chatId && resultContent) {
|
|
9077
|
-
const parsed =
|
|
9718
|
+
const parsed = safeJsonParse(resultContent, {});
|
|
9078
9719
|
if (parsed.chatId) {
|
|
9079
9720
|
message.chatId = parsed.chatId;
|
|
9080
9721
|
}
|
|
@@ -9086,6 +9727,9 @@ function parseClaudeEvents(events, parentToolUseId) {
|
|
|
9086
9727
|
return messages;
|
|
9087
9728
|
}
|
|
9088
9729
|
|
|
9730
|
+
// ../shared/src/display-message/parsers/codex-asp-parser.ts
|
|
9731
|
+
var DUPLICATE_WINDOW_MS = 5 * 60 * 1e3;
|
|
9732
|
+
|
|
9089
9733
|
// ../shared/src/display-message/parsers/index.ts
|
|
9090
9734
|
function parseAgentEvents(events, agentType) {
|
|
9091
9735
|
if (agentType === "codex") {
|
|
@@ -9135,7 +9779,7 @@ function result(data, isError = false) {
|
|
|
9135
9779
|
}
|
|
9136
9780
|
var server = new McpServer({
|
|
9137
9781
|
name: "replicas-mcp",
|
|
9138
|
-
version: "0.2.
|
|
9782
|
+
version: "0.2.3"
|
|
9139
9783
|
});
|
|
9140
9784
|
var registerTool = server.registerTool.bind(server);
|
|
9141
9785
|
registerTool(
|
|
@@ -9177,7 +9821,7 @@ registerTool(
|
|
|
9177
9821
|
page: z.number().optional(),
|
|
9178
9822
|
limit: z.number().optional(),
|
|
9179
9823
|
user_id: z.string().optional().describe("Filter by creator user ID"),
|
|
9180
|
-
source: z.enum(["api", "dashboard", "slack", "linear", "github", "automation"]).optional().describe("Filter by creation source"),
|
|
9824
|
+
source: z.enum(["api", "dashboard", "slack", "linear", "github", "gitlab", "automation"]).optional().describe("Filter by creation source"),
|
|
9181
9825
|
status: z.enum(["active", "sleeping", "preparing"]).optional().describe("Filter by workspace status")
|
|
9182
9826
|
}
|
|
9183
9827
|
},
|