struere 0.9.4 → 0.9.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/struere.js +179 -61
- package/dist/cli/commands/entities.d.ts.map +1 -1
- package/dist/cli/index.js +89 -37
- package/dist/cli/utils/convex.d.ts +1 -0
- package/dist/cli/utils/convex.d.ts.map +1 -1
- package/dist/cli/utils/entities.d.ts +12 -8
- package/dist/cli/utils/entities.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/bin/struere.js
CHANGED
|
@@ -17389,10 +17389,10 @@ var source_default = chalk;
|
|
|
17389
17389
|
// ../../node_modules/.bun/ora@8.2.0/node_modules/ora/index.js
|
|
17390
17390
|
import process9 from "process";
|
|
17391
17391
|
|
|
17392
|
-
// ../../node_modules/.bun/
|
|
17392
|
+
// ../../node_modules/.bun/ora@8.2.0/node_modules/ora/node_modules/cli-cursor/index.js
|
|
17393
17393
|
import process5 from "process";
|
|
17394
17394
|
|
|
17395
|
-
// ../../node_modules/.bun/
|
|
17395
|
+
// ../../node_modules/.bun/ora@8.2.0/node_modules/ora/node_modules/cli-cursor/node_modules/restore-cursor/index.js
|
|
17396
17396
|
import process4 from "process";
|
|
17397
17397
|
|
|
17398
17398
|
// ../../node_modules/.bun/mimic-function@5.0.1/node_modules/mimic-function/index.js
|
|
@@ -17441,7 +17441,7 @@ function mimicFunction(to, from, { ignoreNonConfigurable = false } = {}) {
|
|
|
17441
17441
|
return to;
|
|
17442
17442
|
}
|
|
17443
17443
|
|
|
17444
|
-
// ../../node_modules/.bun/
|
|
17444
|
+
// ../../node_modules/.bun/ora@8.2.0/node_modules/ora/node_modules/cli-cursor/node_modules/restore-cursor/node_modules/onetime/index.js
|
|
17445
17445
|
var calledFunctions = new WeakMap;
|
|
17446
17446
|
var onetime = (function_, options = {}) => {
|
|
17447
17447
|
if (typeof function_ !== "function") {
|
|
@@ -17680,7 +17680,7 @@ var {
|
|
|
17680
17680
|
unload
|
|
17681
17681
|
} = signalExitWrap(processOk(process3) ? new SignalExit(process3) : new SignalExitFallback);
|
|
17682
17682
|
|
|
17683
|
-
// ../../node_modules/.bun/
|
|
17683
|
+
// ../../node_modules/.bun/ora@8.2.0/node_modules/ora/node_modules/cli-cursor/node_modules/restore-cursor/index.js
|
|
17684
17684
|
var terminal = process4.stderr.isTTY ? process4.stderr : process4.stdout.isTTY ? process4.stdout : undefined;
|
|
17685
17685
|
var restoreCursor = terminal ? onetime_default(() => {
|
|
17686
17686
|
onExit(() => {
|
|
@@ -17689,7 +17689,7 @@ var restoreCursor = terminal ? onetime_default(() => {
|
|
|
17689
17689
|
}) : () => {};
|
|
17690
17690
|
var restore_cursor_default = restoreCursor;
|
|
17691
17691
|
|
|
17692
|
-
// ../../node_modules/.bun/
|
|
17692
|
+
// ../../node_modules/.bun/ora@8.2.0/node_modules/ora/node_modules/cli-cursor/index.js
|
|
17693
17693
|
var isHidden = false;
|
|
17694
17694
|
var cliCursor = {};
|
|
17695
17695
|
cliCursor.show = (writableStream = process5.stderr) => {
|
|
@@ -17722,7 +17722,7 @@ var cli_cursor_default = cliCursor;
|
|
|
17722
17722
|
// ../../node_modules/.bun/ora@8.2.0/node_modules/ora/index.js
|
|
17723
17723
|
var import_cli_spinners = __toESM(require_cli_spinners(), 1);
|
|
17724
17724
|
|
|
17725
|
-
// ../../node_modules/.bun/
|
|
17725
|
+
// ../../node_modules/.bun/ora@8.2.0/node_modules/ora/node_modules/log-symbols/node_modules/is-unicode-supported/index.js
|
|
17726
17726
|
import process6 from "process";
|
|
17727
17727
|
function isUnicodeSupported() {
|
|
17728
17728
|
if (process6.platform !== "win32") {
|
|
@@ -17731,7 +17731,7 @@ function isUnicodeSupported() {
|
|
|
17731
17731
|
return Boolean(process6.env.CI) || Boolean(process6.env.WT_SESSION) || Boolean(process6.env.TERMINUS_SUBLIME) || process6.env.ConEmuTask === "{cmd::Cmder}" || process6.env.TERM_PROGRAM === "Terminus-Sublime" || process6.env.TERM_PROGRAM === "vscode" || process6.env.TERM === "xterm-256color" || process6.env.TERM === "alacritty" || process6.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
17732
17732
|
}
|
|
17733
17733
|
|
|
17734
|
-
// ../../node_modules/.bun/
|
|
17734
|
+
// ../../node_modules/.bun/ora@8.2.0/node_modules/ora/node_modules/log-symbols/index.js
|
|
17735
17735
|
var main = {
|
|
17736
17736
|
info: source_default.blue("\u2139"),
|
|
17737
17737
|
success: source_default.green("\u2714"),
|
|
@@ -17747,16 +17747,17 @@ var fallback = {
|
|
|
17747
17747
|
var logSymbols = isUnicodeSupported() ? main : fallback;
|
|
17748
17748
|
var log_symbols_default = logSymbols;
|
|
17749
17749
|
|
|
17750
|
-
// ../../node_modules/.bun/
|
|
17750
|
+
// ../../node_modules/.bun/ora@8.2.0/node_modules/ora/node_modules/strip-ansi/node_modules/ansi-regex/index.js
|
|
17751
17751
|
function ansiRegex({ onlyFirst = false } = {}) {
|
|
17752
17752
|
const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
|
|
17753
|
-
const
|
|
17754
|
-
|
|
17755
|
-
|
|
17753
|
+
const pattern = [
|
|
17754
|
+
`[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?${ST})`,
|
|
17755
|
+
"(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"
|
|
17756
|
+
].join("|");
|
|
17756
17757
|
return new RegExp(pattern, onlyFirst ? undefined : "g");
|
|
17757
17758
|
}
|
|
17758
17759
|
|
|
17759
|
-
// ../../node_modules/.bun/
|
|
17760
|
+
// ../../node_modules/.bun/ora@8.2.0/node_modules/ora/node_modules/strip-ansi/index.js
|
|
17760
17761
|
var regex = ansiRegex();
|
|
17761
17762
|
function stripAnsi(string) {
|
|
17762
17763
|
if (typeof string !== "string") {
|
|
@@ -17765,18 +17766,83 @@ function stripAnsi(string) {
|
|
|
17765
17766
|
return string.replace(regex, "");
|
|
17766
17767
|
}
|
|
17767
17768
|
|
|
17768
|
-
// ../../node_modules/.bun/get-east-asian-width@1.
|
|
17769
|
-
|
|
17770
|
-
|
|
17771
|
-
|
|
17772
|
-
|
|
17773
|
-
|
|
17774
|
-
|
|
17775
|
-
|
|
17776
|
-
|
|
17769
|
+
// ../../node_modules/.bun/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup-data.js
|
|
17770
|
+
var ambiguousRanges = [161, 161, 164, 164, 167, 168, 170, 170, 173, 174, 176, 180, 182, 186, 188, 191, 198, 198, 208, 208, 215, 216, 222, 225, 230, 230, 232, 234, 236, 237, 240, 240, 242, 243, 247, 250, 252, 252, 254, 254, 257, 257, 273, 273, 275, 275, 283, 283, 294, 295, 299, 299, 305, 307, 312, 312, 319, 322, 324, 324, 328, 331, 333, 333, 338, 339, 358, 359, 363, 363, 462, 462, 464, 464, 466, 466, 468, 468, 470, 470, 472, 472, 474, 474, 476, 476, 593, 593, 609, 609, 708, 708, 711, 711, 713, 715, 717, 717, 720, 720, 728, 731, 733, 733, 735, 735, 768, 879, 913, 929, 931, 937, 945, 961, 963, 969, 1025, 1025, 1040, 1103, 1105, 1105, 8208, 8208, 8211, 8214, 8216, 8217, 8220, 8221, 8224, 8226, 8228, 8231, 8240, 8240, 8242, 8243, 8245, 8245, 8251, 8251, 8254, 8254, 8308, 8308, 8319, 8319, 8321, 8324, 8364, 8364, 8451, 8451, 8453, 8453, 8457, 8457, 8467, 8467, 8470, 8470, 8481, 8482, 8486, 8486, 8491, 8491, 8531, 8532, 8539, 8542, 8544, 8555, 8560, 8569, 8585, 8585, 8592, 8601, 8632, 8633, 8658, 8658, 8660, 8660, 8679, 8679, 8704, 8704, 8706, 8707, 8711, 8712, 8715, 8715, 8719, 8719, 8721, 8721, 8725, 8725, 8730, 8730, 8733, 8736, 8739, 8739, 8741, 8741, 8743, 8748, 8750, 8750, 8756, 8759, 8764, 8765, 8776, 8776, 8780, 8780, 8786, 8786, 8800, 8801, 8804, 8807, 8810, 8811, 8814, 8815, 8834, 8835, 8838, 8839, 8853, 8853, 8857, 8857, 8869, 8869, 8895, 8895, 8978, 8978, 9312, 9449, 9451, 9547, 9552, 9587, 9600, 9615, 9618, 9621, 9632, 9633, 9635, 9641, 9650, 9651, 9654, 9655, 9660, 9661, 9664, 9665, 9670, 9672, 9675, 9675, 9678, 9681, 9698, 9701, 9711, 9711, 9733, 9734, 9737, 9737, 9742, 9743, 9756, 9756, 9758, 9758, 9792, 9792, 9794, 9794, 9824, 9825, 9827, 9829, 9831, 9834, 9836, 9837, 9839, 9839, 9886, 9887, 9919, 9919, 9926, 9933, 9935, 9939, 9941, 9953, 9955, 9955, 9960, 9961, 9963, 9969, 9972, 9972, 9974, 9977, 9979, 9980, 9982, 9983, 10045, 10045, 10102, 10111, 11094, 11097, 12872, 12879, 57344, 63743, 65024, 65039, 65533, 65533, 127232, 127242, 127248, 127277, 127280, 127337, 127344, 127373, 127375, 127376, 127387, 127404, 917760, 917999, 983040, 1048573, 1048576, 1114109];
|
|
17771
|
+
var fullwidthRanges = [12288, 12288, 65281, 65376, 65504, 65510];
|
|
17772
|
+
var halfwidthRanges = [8361, 8361, 65377, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500, 65512, 65518];
|
|
17773
|
+
var narrowRanges = [32, 126, 162, 163, 165, 166, 172, 172, 175, 175, 10214, 10221, 10629, 10630];
|
|
17774
|
+
var wideRanges = [4352, 4447, 8986, 8987, 9001, 9002, 9193, 9196, 9200, 9200, 9203, 9203, 9725, 9726, 9748, 9749, 9776, 9783, 9800, 9811, 9855, 9855, 9866, 9871, 9875, 9875, 9889, 9889, 9898, 9899, 9917, 9918, 9924, 9925, 9934, 9934, 9940, 9940, 9962, 9962, 9970, 9971, 9973, 9973, 9978, 9978, 9981, 9981, 9989, 9989, 9994, 9995, 10024, 10024, 10060, 10060, 10062, 10062, 10067, 10069, 10071, 10071, 10133, 10135, 10160, 10160, 10175, 10175, 11035, 11036, 11088, 11088, 11093, 11093, 11904, 11929, 11931, 12019, 12032, 12245, 12272, 12287, 12289, 12350, 12353, 12438, 12441, 12543, 12549, 12591, 12593, 12686, 12688, 12773, 12783, 12830, 12832, 12871, 12880, 42124, 42128, 42182, 43360, 43388, 44032, 55203, 63744, 64255, 65040, 65049, 65072, 65106, 65108, 65126, 65128, 65131, 94176, 94180, 94192, 94198, 94208, 101589, 101631, 101662, 101760, 101874, 110576, 110579, 110581, 110587, 110589, 110590, 110592, 110882, 110898, 110898, 110928, 110930, 110933, 110933, 110948, 110951, 110960, 111355, 119552, 119638, 119648, 119670, 126980, 126980, 127183, 127183, 127374, 127374, 127377, 127386, 127488, 127490, 127504, 127547, 127552, 127560, 127568, 127569, 127584, 127589, 127744, 127776, 127789, 127797, 127799, 127868, 127870, 127891, 127904, 127946, 127951, 127955, 127968, 127984, 127988, 127988, 127992, 128062, 128064, 128064, 128066, 128252, 128255, 128317, 128331, 128334, 128336, 128359, 128378, 128378, 128405, 128406, 128420, 128420, 128507, 128591, 128640, 128709, 128716, 128716, 128720, 128722, 128725, 128728, 128732, 128735, 128747, 128748, 128756, 128764, 128992, 129003, 129008, 129008, 129292, 129338, 129340, 129349, 129351, 129535, 129648, 129660, 129664, 129674, 129678, 129734, 129736, 129736, 129741, 129756, 129759, 129770, 129775, 129784, 131072, 196605, 196608, 262141];
|
|
17775
|
+
|
|
17776
|
+
// ../../node_modules/.bun/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/utilities.js
|
|
17777
|
+
var isInRange = (ranges, codePoint) => {
|
|
17778
|
+
let low = 0;
|
|
17779
|
+
let high = Math.floor(ranges.length / 2) - 1;
|
|
17780
|
+
while (low <= high) {
|
|
17781
|
+
const mid = Math.floor((low + high) / 2);
|
|
17782
|
+
const i = mid * 2;
|
|
17783
|
+
if (codePoint < ranges[i]) {
|
|
17784
|
+
high = mid - 1;
|
|
17785
|
+
} else if (codePoint > ranges[i + 1]) {
|
|
17786
|
+
low = mid + 1;
|
|
17787
|
+
} else {
|
|
17788
|
+
return true;
|
|
17789
|
+
}
|
|
17790
|
+
}
|
|
17791
|
+
return false;
|
|
17792
|
+
};
|
|
17793
|
+
|
|
17794
|
+
// ../../node_modules/.bun/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup.js
|
|
17795
|
+
var minimumAmbiguousCodePoint = ambiguousRanges[0];
|
|
17796
|
+
var maximumAmbiguousCodePoint = ambiguousRanges.at(-1);
|
|
17797
|
+
var minimumFullWidthCodePoint = fullwidthRanges[0];
|
|
17798
|
+
var maximumFullWidthCodePoint = fullwidthRanges.at(-1);
|
|
17799
|
+
var minimumHalfWidthCodePoint = halfwidthRanges[0];
|
|
17800
|
+
var maximumHalfWidthCodePoint = halfwidthRanges.at(-1);
|
|
17801
|
+
var minimumNarrowCodePoint = narrowRanges[0];
|
|
17802
|
+
var maximumNarrowCodePoint = narrowRanges.at(-1);
|
|
17803
|
+
var minimumWideCodePoint = wideRanges[0];
|
|
17804
|
+
var maximumWideCodePoint = wideRanges.at(-1);
|
|
17805
|
+
var commonCjkCodePoint = 19968;
|
|
17806
|
+
var [wideFastPathStart, wideFastPathEnd] = findWideFastPathRange(wideRanges);
|
|
17807
|
+
function findWideFastPathRange(ranges) {
|
|
17808
|
+
let fastPathStart = ranges[0];
|
|
17809
|
+
let fastPathEnd = ranges[1];
|
|
17810
|
+
for (let index = 0;index < ranges.length; index += 2) {
|
|
17811
|
+
const start = ranges[index];
|
|
17812
|
+
const end = ranges[index + 1];
|
|
17813
|
+
if (commonCjkCodePoint >= start && commonCjkCodePoint <= end) {
|
|
17814
|
+
return [start, end];
|
|
17815
|
+
}
|
|
17816
|
+
if (end - start > fastPathEnd - fastPathStart) {
|
|
17817
|
+
fastPathStart = start;
|
|
17818
|
+
fastPathEnd = end;
|
|
17819
|
+
}
|
|
17820
|
+
}
|
|
17821
|
+
return [fastPathStart, fastPathEnd];
|
|
17777
17822
|
}
|
|
17823
|
+
var isAmbiguous = (codePoint) => {
|
|
17824
|
+
if (codePoint < minimumAmbiguousCodePoint || codePoint > maximumAmbiguousCodePoint) {
|
|
17825
|
+
return false;
|
|
17826
|
+
}
|
|
17827
|
+
return isInRange(ambiguousRanges, codePoint);
|
|
17828
|
+
};
|
|
17829
|
+
var isFullWidth = (codePoint) => {
|
|
17830
|
+
if (codePoint < minimumFullWidthCodePoint || codePoint > maximumFullWidthCodePoint) {
|
|
17831
|
+
return false;
|
|
17832
|
+
}
|
|
17833
|
+
return isInRange(fullwidthRanges, codePoint);
|
|
17834
|
+
};
|
|
17835
|
+
var isWide = (codePoint) => {
|
|
17836
|
+
if (codePoint >= wideFastPathStart && codePoint <= wideFastPathEnd) {
|
|
17837
|
+
return true;
|
|
17838
|
+
}
|
|
17839
|
+
if (codePoint < minimumWideCodePoint || codePoint > maximumWideCodePoint) {
|
|
17840
|
+
return false;
|
|
17841
|
+
}
|
|
17842
|
+
return isInRange(wideRanges, codePoint);
|
|
17843
|
+
};
|
|
17778
17844
|
|
|
17779
|
-
// ../../node_modules/.bun/get-east-asian-width@1.
|
|
17845
|
+
// ../../node_modules/.bun/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/index.js
|
|
17780
17846
|
function validate(codePoint) {
|
|
17781
17847
|
if (!Number.isSafeInteger(codePoint)) {
|
|
17782
17848
|
throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
|
|
@@ -17790,12 +17856,12 @@ function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) {
|
|
|
17790
17856
|
return 1;
|
|
17791
17857
|
}
|
|
17792
17858
|
|
|
17793
|
-
// ../../node_modules/.bun/
|
|
17859
|
+
// ../../node_modules/.bun/ora@8.2.0/node_modules/ora/node_modules/string-width/node_modules/emoji-regex/index.mjs
|
|
17794
17860
|
var emoji_regex_default = () => {
|
|
17795
17861
|
return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?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uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
|
|
17796
17862
|
};
|
|
17797
17863
|
|
|
17798
|
-
// ../../node_modules/.bun/
|
|
17864
|
+
// ../../node_modules/.bun/ora@8.2.0/node_modules/ora/node_modules/string-width/index.js
|
|
17799
17865
|
var segmenter = new Intl.Segmenter;
|
|
17800
17866
|
var defaultIgnorableCodePointRegex = /^\p{Default_Ignorable_Code_Point}$/u;
|
|
17801
17867
|
function stringWidth(string, options = {}) {
|
|
@@ -22731,7 +22797,7 @@ var deployCommand = new Command("deploy").description("Deploy all resources to p
|
|
|
22731
22797
|
}
|
|
22732
22798
|
console.log();
|
|
22733
22799
|
console.log(source_default.gray("Test your agents:"));
|
|
22734
|
-
console.log(source_default.gray(" $"), source_default.cyan(`curl -X POST
|
|
22800
|
+
console.log(source_default.gray(" $"), source_default.cyan(`curl -X POST ${getSiteUrl()}/v1/agents/<agent-slug>/chat -H "Authorization: Bearer YOUR_API_KEY" -d '{"message": "Hello"}'`));
|
|
22735
22801
|
console.log();
|
|
22736
22802
|
}
|
|
22737
22803
|
} catch (error) {
|
|
@@ -23110,8 +23176,8 @@ var statusCommand = new Command("status").description("Compare local vs remote s
|
|
|
23110
23176
|
if (!jsonMode)
|
|
23111
23177
|
spinner.start("Fetching remote state");
|
|
23112
23178
|
const [devResult, prodResult] = await Promise.all([
|
|
23113
|
-
getSyncState(
|
|
23114
|
-
getSyncState(
|
|
23179
|
+
getSyncState(project.organization.id, "development"),
|
|
23180
|
+
getSyncState(project.organization.id, "production")
|
|
23115
23181
|
]);
|
|
23116
23182
|
if (devResult.error || !devResult.state) {
|
|
23117
23183
|
if (jsonMode) {
|
|
@@ -23774,49 +23840,61 @@ async function convexMutation(path, args) {
|
|
|
23774
23840
|
return { error: String(json.errorMessage || "Unknown error") };
|
|
23775
23841
|
return { error: `Unexpected response: ${text}` };
|
|
23776
23842
|
}
|
|
23777
|
-
async function queryEntityTypes(env2) {
|
|
23778
|
-
return convexQuery("entityTypes:list", { environment: env2 });
|
|
23843
|
+
async function queryEntityTypes(env2, organizationId) {
|
|
23844
|
+
return convexQuery("entityTypes:list", { environment: env2, ...organizationId && { organizationId } });
|
|
23779
23845
|
}
|
|
23780
|
-
async function queryEntityTypeBySlug(slug, env2) {
|
|
23781
|
-
return convexQuery("entityTypes:getBySlug", { slug, environment: env2 });
|
|
23846
|
+
async function queryEntityTypeBySlug(slug, env2, organizationId) {
|
|
23847
|
+
return convexQuery("entityTypes:getBySlug", { slug, environment: env2, ...organizationId && { organizationId } });
|
|
23782
23848
|
}
|
|
23783
|
-
async function queryEntities(slug, env2, opts) {
|
|
23849
|
+
async function queryEntities(slug, env2, opts, organizationId) {
|
|
23784
23850
|
return convexQuery("entities:list", {
|
|
23785
23851
|
entityTypeSlug: slug,
|
|
23786
23852
|
environment: env2,
|
|
23787
23853
|
...opts?.status && { status: opts.status },
|
|
23788
|
-
...opts?.limit && { limit: opts.limit }
|
|
23854
|
+
...opts?.limit && { limit: opts.limit },
|
|
23855
|
+
...organizationId && { organizationId }
|
|
23789
23856
|
});
|
|
23790
23857
|
}
|
|
23791
|
-
async function
|
|
23792
|
-
|
|
23858
|
+
async function resolveEntityId(partialId, env2, organizationId) {
|
|
23859
|
+
const result = await convexQuery("entities:resolvePartialId", { partialId, environment: env2, ...organizationId && { organizationId } });
|
|
23860
|
+
if (result.error)
|
|
23861
|
+
return { error: result.error };
|
|
23862
|
+
if (!result.data)
|
|
23863
|
+
return { error: `No entity found matching ID "${partialId}"` };
|
|
23864
|
+
return { data: result.data };
|
|
23865
|
+
}
|
|
23866
|
+
async function queryEntity(id, env2, organizationId) {
|
|
23867
|
+
return convexQuery("entities:getWithType", { id, environment: env2, ...organizationId && { organizationId } });
|
|
23793
23868
|
}
|
|
23794
|
-
async function searchEntities(slug, query, env2, limit) {
|
|
23869
|
+
async function searchEntities(slug, query, env2, limit, organizationId) {
|
|
23795
23870
|
return convexQuery("entities:search", {
|
|
23796
23871
|
entityTypeSlug: slug,
|
|
23797
23872
|
environment: env2,
|
|
23798
23873
|
query,
|
|
23799
|
-
...limit && { limit }
|
|
23874
|
+
...limit && { limit },
|
|
23875
|
+
...organizationId && { organizationId }
|
|
23800
23876
|
});
|
|
23801
23877
|
}
|
|
23802
|
-
async function createEntity(slug, data, env2, status) {
|
|
23878
|
+
async function createEntity(slug, data, env2, status, organizationId) {
|
|
23803
23879
|
return convexMutation("entities:create", {
|
|
23804
23880
|
entityTypeSlug: slug,
|
|
23805
23881
|
environment: env2,
|
|
23806
23882
|
data,
|
|
23807
|
-
...status && { status }
|
|
23883
|
+
...status && { status },
|
|
23884
|
+
...organizationId && { organizationId }
|
|
23808
23885
|
});
|
|
23809
23886
|
}
|
|
23810
|
-
async function updateEntity(id, data, env2, status) {
|
|
23887
|
+
async function updateEntity(id, data, env2, status, organizationId) {
|
|
23811
23888
|
return convexMutation("entities:update", {
|
|
23812
23889
|
id,
|
|
23813
23890
|
environment: env2,
|
|
23814
23891
|
data,
|
|
23815
|
-
...status && { status }
|
|
23892
|
+
...status && { status },
|
|
23893
|
+
...organizationId && { organizationId }
|
|
23816
23894
|
});
|
|
23817
23895
|
}
|
|
23818
|
-
async function removeEntity(id, env2) {
|
|
23819
|
-
return convexMutation("entities:remove", { id, environment: env2 });
|
|
23896
|
+
async function removeEntity(id, env2, organizationId) {
|
|
23897
|
+
return convexMutation("entities:remove", { id, environment: env2, ...organizationId && { organizationId } });
|
|
23820
23898
|
}
|
|
23821
23899
|
|
|
23822
23900
|
// src/cli/utils/table.ts
|
|
@@ -23877,6 +23955,10 @@ function deriveColumnsFromSchema(schema, displayConfig) {
|
|
|
23877
23955
|
}
|
|
23878
23956
|
|
|
23879
23957
|
// src/cli/commands/entities.ts
|
|
23958
|
+
function getOrgId() {
|
|
23959
|
+
const project = loadProject(process.cwd());
|
|
23960
|
+
return project?.organization.id;
|
|
23961
|
+
}
|
|
23880
23962
|
async function ensureAuth() {
|
|
23881
23963
|
const cwd = process.cwd();
|
|
23882
23964
|
const nonInteractive = !isInteractive2();
|
|
@@ -23924,8 +24006,9 @@ entitiesCommand.command("types").description("List available entity types").opti
|
|
|
23924
24006
|
await ensureAuth();
|
|
23925
24007
|
const spinner = ora();
|
|
23926
24008
|
const env2 = opts.env;
|
|
24009
|
+
const orgId = getOrgId();
|
|
23927
24010
|
spinner.start("Fetching entity types");
|
|
23928
|
-
const { data, error } = await queryEntityTypes(env2);
|
|
24011
|
+
const { data, error } = await queryEntityTypes(env2, orgId);
|
|
23929
24012
|
if (error || !data) {
|
|
23930
24013
|
spinner.fail("Failed to fetch entity types");
|
|
23931
24014
|
console.log(source_default.red("Error:"), error);
|
|
@@ -23958,13 +24041,14 @@ entitiesCommand.command("list <type>").description("List entities of a type").op
|
|
|
23958
24041
|
await ensureAuth();
|
|
23959
24042
|
const spinner = ora();
|
|
23960
24043
|
const env2 = opts.env;
|
|
24044
|
+
const orgId = getOrgId();
|
|
23961
24045
|
spinner.start(`Fetching ${type} entities`);
|
|
23962
24046
|
const [entitiesResult, typeResult] = await Promise.all([
|
|
23963
24047
|
queryEntities(type, env2, {
|
|
23964
24048
|
status: opts.status,
|
|
23965
24049
|
limit: parseInt(opts.limit, 10)
|
|
23966
|
-
}),
|
|
23967
|
-
queryEntityTypeBySlug(type, env2)
|
|
24050
|
+
}, orgId),
|
|
24051
|
+
queryEntityTypeBySlug(type, env2, orgId)
|
|
23968
24052
|
]);
|
|
23969
24053
|
if (entitiesResult.error || !entitiesResult.data) {
|
|
23970
24054
|
spinner.fail(`Failed to fetch ${type} entities`);
|
|
@@ -23985,12 +24069,21 @@ entitiesCommand.command("list <type>").description("List entities of a type").op
|
|
|
23985
24069
|
renderTable(columns, entities.map(flattenEntityForTable));
|
|
23986
24070
|
console.log();
|
|
23987
24071
|
});
|
|
23988
|
-
entitiesCommand.command("get <id>").description("Get entity details").option("--env <environment>", "Environment (development|production)", "development").option("--json", "Output raw JSON").action(async (
|
|
24072
|
+
entitiesCommand.command("get <id>").description("Get entity details").option("--env <environment>", "Environment (development|production)", "development").option("--json", "Output raw JSON").action(async (rawId, opts) => {
|
|
23989
24073
|
await ensureAuth();
|
|
23990
24074
|
const spinner = ora();
|
|
23991
24075
|
const env2 = opts.env;
|
|
23992
|
-
|
|
23993
|
-
|
|
24076
|
+
const orgId = getOrgId();
|
|
24077
|
+
spinner.start("Resolving entity ID");
|
|
24078
|
+
const resolved = await resolveEntityId(rawId, env2, orgId);
|
|
24079
|
+
if (resolved.error || !resolved.data) {
|
|
24080
|
+
spinner.fail("Entity not found");
|
|
24081
|
+
console.log(source_default.red("Error:"), resolved.error || `No entity matched "${rawId}"`);
|
|
24082
|
+
process.exit(1);
|
|
24083
|
+
}
|
|
24084
|
+
const id = resolved.data;
|
|
24085
|
+
spinner.text = "Fetching entity";
|
|
24086
|
+
const { data, error } = await queryEntity(id, env2, orgId);
|
|
23994
24087
|
if (error || !data) {
|
|
23995
24088
|
spinner.fail("Failed to fetch entity");
|
|
23996
24089
|
console.log(source_default.red("Error:"), error || "Entity not found");
|
|
@@ -24028,6 +24121,7 @@ entitiesCommand.command("create <type>").description("Create a new entity").opti
|
|
|
24028
24121
|
await ensureAuth();
|
|
24029
24122
|
const spinner = ora();
|
|
24030
24123
|
const env2 = opts.env;
|
|
24124
|
+
const orgId = getOrgId();
|
|
24031
24125
|
let data;
|
|
24032
24126
|
if (opts.data) {
|
|
24033
24127
|
try {
|
|
@@ -24041,7 +24135,7 @@ entitiesCommand.command("create <type>").description("Create a new entity").opti
|
|
|
24041
24135
|
process.exit(1);
|
|
24042
24136
|
} else {
|
|
24043
24137
|
spinner.start(`Fetching ${type} schema`);
|
|
24044
|
-
const { data: typeData, error: error2 } = await queryEntityTypeBySlug(type, env2);
|
|
24138
|
+
const { data: typeData, error: error2 } = await queryEntityTypeBySlug(type, env2, orgId);
|
|
24045
24139
|
if (error2 || !typeData) {
|
|
24046
24140
|
spinner.fail(`Entity type not found: ${type}`);
|
|
24047
24141
|
console.log(source_default.red("Error:"), error2 || "Not found");
|
|
@@ -24082,7 +24176,7 @@ entitiesCommand.command("create <type>").description("Create a new entity").opti
|
|
|
24082
24176
|
console.log();
|
|
24083
24177
|
}
|
|
24084
24178
|
spinner.start(`Creating ${type} entity`);
|
|
24085
|
-
const { data: result, error } = await createEntity(type, data, env2, opts.status);
|
|
24179
|
+
const { data: result, error } = await createEntity(type, data, env2, opts.status, orgId);
|
|
24086
24180
|
if (error) {
|
|
24087
24181
|
spinner.fail("Failed to create entity");
|
|
24088
24182
|
console.log(source_default.red("Error:"), error);
|
|
@@ -24097,10 +24191,11 @@ entitiesCommand.command("create <type>").description("Create a new entity").opti
|
|
|
24097
24191
|
console.log();
|
|
24098
24192
|
}
|
|
24099
24193
|
});
|
|
24100
|
-
entitiesCommand.command("update <id>").description("Update an entity").option("--env <environment>", "Environment (development|production)", "development").option("--data <json>", "Update data as JSON").option("--status <status>", "New status").option("--json", "Output raw JSON").action(async (
|
|
24194
|
+
entitiesCommand.command("update <id>").description("Update an entity").option("--env <environment>", "Environment (development|production)", "development").option("--data <json>", "Update data as JSON").option("--status <status>", "New status").option("--json", "Output raw JSON").action(async (rawId, opts) => {
|
|
24101
24195
|
await ensureAuth();
|
|
24102
24196
|
const spinner = ora();
|
|
24103
24197
|
const env2 = opts.env;
|
|
24198
|
+
const orgId = getOrgId();
|
|
24104
24199
|
if (!opts.data && !opts.status) {
|
|
24105
24200
|
console.log(source_default.red("Provide --data and/or --status"));
|
|
24106
24201
|
process.exit(1);
|
|
@@ -24114,8 +24209,16 @@ entitiesCommand.command("update <id>").description("Update an entity").option("-
|
|
|
24114
24209
|
process.exit(1);
|
|
24115
24210
|
}
|
|
24116
24211
|
}
|
|
24117
|
-
spinner.start("
|
|
24118
|
-
const
|
|
24212
|
+
spinner.start("Resolving entity ID");
|
|
24213
|
+
const resolved = await resolveEntityId(rawId, env2, orgId);
|
|
24214
|
+
if (resolved.error || !resolved.data) {
|
|
24215
|
+
spinner.fail("Entity not found");
|
|
24216
|
+
console.log(source_default.red("Error:"), resolved.error || `No entity matched "${rawId}"`);
|
|
24217
|
+
process.exit(1);
|
|
24218
|
+
}
|
|
24219
|
+
const id = resolved.data;
|
|
24220
|
+
spinner.text = "Updating entity";
|
|
24221
|
+
const { data: result, error } = await updateEntity(id, data, env2, opts.status, orgId);
|
|
24119
24222
|
if (error) {
|
|
24120
24223
|
spinner.fail("Failed to update entity");
|
|
24121
24224
|
console.log(source_default.red("Error:"), error);
|
|
@@ -24130,14 +24233,28 @@ entitiesCommand.command("update <id>").description("Update an entity").option("-
|
|
|
24130
24233
|
console.log();
|
|
24131
24234
|
}
|
|
24132
24235
|
});
|
|
24133
|
-
entitiesCommand.command("delete <id>").description("Delete an entity").option("--env <environment>", "Environment (development|production)", "development").option("--yes", "Skip confirmation").option("--json", "Output raw JSON").action(async (
|
|
24236
|
+
entitiesCommand.command("delete <id>").description("Delete an entity").option("--env <environment>", "Environment (development|production)", "development").option("--yes", "Skip confirmation").option("--json", "Output raw JSON").action(async (rawId, opts) => {
|
|
24134
24237
|
await ensureAuth();
|
|
24135
24238
|
const spinner = ora();
|
|
24136
24239
|
const env2 = opts.env;
|
|
24240
|
+
const orgId = getOrgId();
|
|
24137
24241
|
const jsonMode = !!opts.json;
|
|
24138
24242
|
if (!jsonMode)
|
|
24139
|
-
spinner.start("
|
|
24140
|
-
const
|
|
24243
|
+
spinner.start("Resolving entity ID");
|
|
24244
|
+
const resolved = await resolveEntityId(rawId, env2, orgId);
|
|
24245
|
+
if (resolved.error || !resolved.data) {
|
|
24246
|
+
if (jsonMode) {
|
|
24247
|
+
console.log(JSON.stringify({ success: false, error: resolved.error || `No entity matched "${rawId}"` }));
|
|
24248
|
+
} else {
|
|
24249
|
+
spinner.fail("Entity not found");
|
|
24250
|
+
console.log(source_default.red("Error:"), resolved.error || `No entity matched "${rawId}"`);
|
|
24251
|
+
}
|
|
24252
|
+
process.exit(1);
|
|
24253
|
+
}
|
|
24254
|
+
const id = resolved.data;
|
|
24255
|
+
if (!jsonMode)
|
|
24256
|
+
spinner.text = "Fetching entity";
|
|
24257
|
+
const { data, error: fetchError } = await queryEntity(id, env2, orgId);
|
|
24141
24258
|
if (fetchError || !data) {
|
|
24142
24259
|
if (jsonMode) {
|
|
24143
24260
|
console.log(JSON.stringify({ success: false, error: fetchError || "Entity not found" }));
|
|
@@ -24176,7 +24293,7 @@ entitiesCommand.command("delete <id>").description("Delete an entity").option("-
|
|
|
24176
24293
|
}
|
|
24177
24294
|
if (!jsonMode)
|
|
24178
24295
|
spinner.start("Deleting entity");
|
|
24179
|
-
const { error } = await removeEntity(id, env2);
|
|
24296
|
+
const { error } = await removeEntity(id, env2, orgId);
|
|
24180
24297
|
if (error) {
|
|
24181
24298
|
if (jsonMode) {
|
|
24182
24299
|
console.log(JSON.stringify({ success: false, error }));
|
|
@@ -24197,10 +24314,11 @@ entitiesCommand.command("search <type> <query>").description("Search entities").
|
|
|
24197
24314
|
await ensureAuth();
|
|
24198
24315
|
const spinner = ora();
|
|
24199
24316
|
const env2 = opts.env;
|
|
24317
|
+
const orgId = getOrgId();
|
|
24200
24318
|
spinner.start(`Searching ${type} for "${query}"`);
|
|
24201
24319
|
const [searchResult, typeResult] = await Promise.all([
|
|
24202
|
-
searchEntities(type, query, env2, parseInt(opts.limit, 10)),
|
|
24203
|
-
queryEntityTypeBySlug(type, env2)
|
|
24320
|
+
searchEntities(type, query, env2, parseInt(opts.limit, 10), orgId),
|
|
24321
|
+
queryEntityTypeBySlug(type, env2, orgId)
|
|
24204
24322
|
]);
|
|
24205
24323
|
if (searchResult.error || !searchResult.data) {
|
|
24206
24324
|
spinner.fail("Search failed");
|
|
@@ -25455,7 +25573,7 @@ var integrationCommand = new Command("integration").description("Manage integrat
|
|
|
25455
25573
|
// package.json
|
|
25456
25574
|
var package_default = {
|
|
25457
25575
|
name: "struere",
|
|
25458
|
-
version: "0.9.
|
|
25576
|
+
version: "0.9.6",
|
|
25459
25577
|
description: "Build, test, and deploy AI agents",
|
|
25460
25578
|
keywords: [
|
|
25461
25579
|
"ai",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AA6EnC,eAAO,MAAM,eAAe,SACQ,CAAA"}
|
package/dist/cli/index.js
CHANGED
|
@@ -3412,7 +3412,7 @@ var deployCommand = new Command6("deploy").description("Deploy all resources to
|
|
|
3412
3412
|
}
|
|
3413
3413
|
console.log();
|
|
3414
3414
|
console.log(chalk7.gray("Test your agents:"));
|
|
3415
|
-
console.log(chalk7.gray(" $"), chalk7.cyan(`curl -X POST
|
|
3415
|
+
console.log(chalk7.gray(" $"), chalk7.cyan(`curl -X POST ${getSiteUrl()}/v1/agents/<agent-slug>/chat -H "Authorization: Bearer YOUR_API_KEY" -d '{"message": "Hello"}'`));
|
|
3416
3416
|
console.log();
|
|
3417
3417
|
}
|
|
3418
3418
|
} catch (error) {
|
|
@@ -3801,8 +3801,8 @@ var statusCommand = new Command10("status").description("Compare local vs remote
|
|
|
3801
3801
|
if (!jsonMode)
|
|
3802
3802
|
spinner.start("Fetching remote state");
|
|
3803
3803
|
const [devResult, prodResult] = await Promise.all([
|
|
3804
|
-
getSyncState(
|
|
3805
|
-
getSyncState(
|
|
3804
|
+
getSyncState(project.organization.id, "development"),
|
|
3805
|
+
getSyncState(project.organization.id, "production")
|
|
3806
3806
|
]);
|
|
3807
3807
|
if (devResult.error || !devResult.state) {
|
|
3808
3808
|
if (jsonMode) {
|
|
@@ -4474,49 +4474,61 @@ async function convexMutation(path, args) {
|
|
|
4474
4474
|
return { error: String(json.errorMessage || "Unknown error") };
|
|
4475
4475
|
return { error: `Unexpected response: ${text}` };
|
|
4476
4476
|
}
|
|
4477
|
-
async function queryEntityTypes(env) {
|
|
4478
|
-
return convexQuery("entityTypes:list", { environment: env });
|
|
4477
|
+
async function queryEntityTypes(env, organizationId) {
|
|
4478
|
+
return convexQuery("entityTypes:list", { environment: env, ...organizationId && { organizationId } });
|
|
4479
4479
|
}
|
|
4480
|
-
async function queryEntityTypeBySlug(slug, env) {
|
|
4481
|
-
return convexQuery("entityTypes:getBySlug", { slug, environment: env });
|
|
4480
|
+
async function queryEntityTypeBySlug(slug, env, organizationId) {
|
|
4481
|
+
return convexQuery("entityTypes:getBySlug", { slug, environment: env, ...organizationId && { organizationId } });
|
|
4482
4482
|
}
|
|
4483
|
-
async function queryEntities(slug, env, opts) {
|
|
4483
|
+
async function queryEntities(slug, env, opts, organizationId) {
|
|
4484
4484
|
return convexQuery("entities:list", {
|
|
4485
4485
|
entityTypeSlug: slug,
|
|
4486
4486
|
environment: env,
|
|
4487
4487
|
...opts?.status && { status: opts.status },
|
|
4488
|
-
...opts?.limit && { limit: opts.limit }
|
|
4488
|
+
...opts?.limit && { limit: opts.limit },
|
|
4489
|
+
...organizationId && { organizationId }
|
|
4489
4490
|
});
|
|
4490
4491
|
}
|
|
4491
|
-
async function
|
|
4492
|
-
|
|
4492
|
+
async function resolveEntityId(partialId, env, organizationId) {
|
|
4493
|
+
const result = await convexQuery("entities:resolvePartialId", { partialId, environment: env, ...organizationId && { organizationId } });
|
|
4494
|
+
if (result.error)
|
|
4495
|
+
return { error: result.error };
|
|
4496
|
+
if (!result.data)
|
|
4497
|
+
return { error: `No entity found matching ID "${partialId}"` };
|
|
4498
|
+
return { data: result.data };
|
|
4493
4499
|
}
|
|
4494
|
-
async function
|
|
4500
|
+
async function queryEntity(id, env, organizationId) {
|
|
4501
|
+
return convexQuery("entities:getWithType", { id, environment: env, ...organizationId && { organizationId } });
|
|
4502
|
+
}
|
|
4503
|
+
async function searchEntities(slug, query, env, limit, organizationId) {
|
|
4495
4504
|
return convexQuery("entities:search", {
|
|
4496
4505
|
entityTypeSlug: slug,
|
|
4497
4506
|
environment: env,
|
|
4498
4507
|
query,
|
|
4499
|
-
...limit && { limit }
|
|
4508
|
+
...limit && { limit },
|
|
4509
|
+
...organizationId && { organizationId }
|
|
4500
4510
|
});
|
|
4501
4511
|
}
|
|
4502
|
-
async function createEntity(slug, data, env, status) {
|
|
4512
|
+
async function createEntity(slug, data, env, status, organizationId) {
|
|
4503
4513
|
return convexMutation("entities:create", {
|
|
4504
4514
|
entityTypeSlug: slug,
|
|
4505
4515
|
environment: env,
|
|
4506
4516
|
data,
|
|
4507
|
-
...status && { status }
|
|
4517
|
+
...status && { status },
|
|
4518
|
+
...organizationId && { organizationId }
|
|
4508
4519
|
});
|
|
4509
4520
|
}
|
|
4510
|
-
async function updateEntity(id, data, env, status) {
|
|
4521
|
+
async function updateEntity(id, data, env, status, organizationId) {
|
|
4511
4522
|
return convexMutation("entities:update", {
|
|
4512
4523
|
id,
|
|
4513
4524
|
environment: env,
|
|
4514
4525
|
data,
|
|
4515
|
-
...status && { status }
|
|
4526
|
+
...status && { status },
|
|
4527
|
+
...organizationId && { organizationId }
|
|
4516
4528
|
});
|
|
4517
4529
|
}
|
|
4518
|
-
async function removeEntity(id, env) {
|
|
4519
|
-
return convexMutation("entities:remove", { id, environment: env });
|
|
4530
|
+
async function removeEntity(id, env, organizationId) {
|
|
4531
|
+
return convexMutation("entities:remove", { id, environment: env, ...organizationId && { organizationId } });
|
|
4520
4532
|
}
|
|
4521
4533
|
|
|
4522
4534
|
// src/cli/utils/table.ts
|
|
@@ -4578,6 +4590,10 @@ function deriveColumnsFromSchema(schema, displayConfig) {
|
|
|
4578
4590
|
}
|
|
4579
4591
|
|
|
4580
4592
|
// src/cli/commands/entities.ts
|
|
4593
|
+
function getOrgId() {
|
|
4594
|
+
const project = loadProject(process.cwd());
|
|
4595
|
+
return project?.organization.id;
|
|
4596
|
+
}
|
|
4581
4597
|
async function ensureAuth() {
|
|
4582
4598
|
const cwd = process.cwd();
|
|
4583
4599
|
const nonInteractive = !isInteractive();
|
|
@@ -4625,8 +4641,9 @@ entitiesCommand.command("types").description("List available entity types").opti
|
|
|
4625
4641
|
await ensureAuth();
|
|
4626
4642
|
const spinner = ora10();
|
|
4627
4643
|
const env = opts.env;
|
|
4644
|
+
const orgId = getOrgId();
|
|
4628
4645
|
spinner.start("Fetching entity types");
|
|
4629
|
-
const { data, error } = await queryEntityTypes(env);
|
|
4646
|
+
const { data, error } = await queryEntityTypes(env, orgId);
|
|
4630
4647
|
if (error || !data) {
|
|
4631
4648
|
spinner.fail("Failed to fetch entity types");
|
|
4632
4649
|
console.log(chalk14.red("Error:"), error);
|
|
@@ -4659,13 +4676,14 @@ entitiesCommand.command("list <type>").description("List entities of a type").op
|
|
|
4659
4676
|
await ensureAuth();
|
|
4660
4677
|
const spinner = ora10();
|
|
4661
4678
|
const env = opts.env;
|
|
4679
|
+
const orgId = getOrgId();
|
|
4662
4680
|
spinner.start(`Fetching ${type} entities`);
|
|
4663
4681
|
const [entitiesResult, typeResult] = await Promise.all([
|
|
4664
4682
|
queryEntities(type, env, {
|
|
4665
4683
|
status: opts.status,
|
|
4666
4684
|
limit: parseInt(opts.limit, 10)
|
|
4667
|
-
}),
|
|
4668
|
-
queryEntityTypeBySlug(type, env)
|
|
4685
|
+
}, orgId),
|
|
4686
|
+
queryEntityTypeBySlug(type, env, orgId)
|
|
4669
4687
|
]);
|
|
4670
4688
|
if (entitiesResult.error || !entitiesResult.data) {
|
|
4671
4689
|
spinner.fail(`Failed to fetch ${type} entities`);
|
|
@@ -4686,12 +4704,21 @@ entitiesCommand.command("list <type>").description("List entities of a type").op
|
|
|
4686
4704
|
renderTable(columns, entities.map(flattenEntityForTable));
|
|
4687
4705
|
console.log();
|
|
4688
4706
|
});
|
|
4689
|
-
entitiesCommand.command("get <id>").description("Get entity details").option("--env <environment>", "Environment (development|production)", "development").option("--json", "Output raw JSON").action(async (
|
|
4707
|
+
entitiesCommand.command("get <id>").description("Get entity details").option("--env <environment>", "Environment (development|production)", "development").option("--json", "Output raw JSON").action(async (rawId, opts) => {
|
|
4690
4708
|
await ensureAuth();
|
|
4691
4709
|
const spinner = ora10();
|
|
4692
4710
|
const env = opts.env;
|
|
4693
|
-
|
|
4694
|
-
|
|
4711
|
+
const orgId = getOrgId();
|
|
4712
|
+
spinner.start("Resolving entity ID");
|
|
4713
|
+
const resolved = await resolveEntityId(rawId, env, orgId);
|
|
4714
|
+
if (resolved.error || !resolved.data) {
|
|
4715
|
+
spinner.fail("Entity not found");
|
|
4716
|
+
console.log(chalk14.red("Error:"), resolved.error || `No entity matched "${rawId}"`);
|
|
4717
|
+
process.exit(1);
|
|
4718
|
+
}
|
|
4719
|
+
const id = resolved.data;
|
|
4720
|
+
spinner.text = "Fetching entity";
|
|
4721
|
+
const { data, error } = await queryEntity(id, env, orgId);
|
|
4695
4722
|
if (error || !data) {
|
|
4696
4723
|
spinner.fail("Failed to fetch entity");
|
|
4697
4724
|
console.log(chalk14.red("Error:"), error || "Entity not found");
|
|
@@ -4729,6 +4756,7 @@ entitiesCommand.command("create <type>").description("Create a new entity").opti
|
|
|
4729
4756
|
await ensureAuth();
|
|
4730
4757
|
const spinner = ora10();
|
|
4731
4758
|
const env = opts.env;
|
|
4759
|
+
const orgId = getOrgId();
|
|
4732
4760
|
let data;
|
|
4733
4761
|
if (opts.data) {
|
|
4734
4762
|
try {
|
|
@@ -4742,7 +4770,7 @@ entitiesCommand.command("create <type>").description("Create a new entity").opti
|
|
|
4742
4770
|
process.exit(1);
|
|
4743
4771
|
} else {
|
|
4744
4772
|
spinner.start(`Fetching ${type} schema`);
|
|
4745
|
-
const { data: typeData, error: error2 } = await queryEntityTypeBySlug(type, env);
|
|
4773
|
+
const { data: typeData, error: error2 } = await queryEntityTypeBySlug(type, env, orgId);
|
|
4746
4774
|
if (error2 || !typeData) {
|
|
4747
4775
|
spinner.fail(`Entity type not found: ${type}`);
|
|
4748
4776
|
console.log(chalk14.red("Error:"), error2 || "Not found");
|
|
@@ -4783,7 +4811,7 @@ entitiesCommand.command("create <type>").description("Create a new entity").opti
|
|
|
4783
4811
|
console.log();
|
|
4784
4812
|
}
|
|
4785
4813
|
spinner.start(`Creating ${type} entity`);
|
|
4786
|
-
const { data: result, error } = await createEntity(type, data, env, opts.status);
|
|
4814
|
+
const { data: result, error } = await createEntity(type, data, env, opts.status, orgId);
|
|
4787
4815
|
if (error) {
|
|
4788
4816
|
spinner.fail("Failed to create entity");
|
|
4789
4817
|
console.log(chalk14.red("Error:"), error);
|
|
@@ -4798,10 +4826,11 @@ entitiesCommand.command("create <type>").description("Create a new entity").opti
|
|
|
4798
4826
|
console.log();
|
|
4799
4827
|
}
|
|
4800
4828
|
});
|
|
4801
|
-
entitiesCommand.command("update <id>").description("Update an entity").option("--env <environment>", "Environment (development|production)", "development").option("--data <json>", "Update data as JSON").option("--status <status>", "New status").option("--json", "Output raw JSON").action(async (
|
|
4829
|
+
entitiesCommand.command("update <id>").description("Update an entity").option("--env <environment>", "Environment (development|production)", "development").option("--data <json>", "Update data as JSON").option("--status <status>", "New status").option("--json", "Output raw JSON").action(async (rawId, opts) => {
|
|
4802
4830
|
await ensureAuth();
|
|
4803
4831
|
const spinner = ora10();
|
|
4804
4832
|
const env = opts.env;
|
|
4833
|
+
const orgId = getOrgId();
|
|
4805
4834
|
if (!opts.data && !opts.status) {
|
|
4806
4835
|
console.log(chalk14.red("Provide --data and/or --status"));
|
|
4807
4836
|
process.exit(1);
|
|
@@ -4815,8 +4844,16 @@ entitiesCommand.command("update <id>").description("Update an entity").option("-
|
|
|
4815
4844
|
process.exit(1);
|
|
4816
4845
|
}
|
|
4817
4846
|
}
|
|
4818
|
-
spinner.start("
|
|
4819
|
-
const
|
|
4847
|
+
spinner.start("Resolving entity ID");
|
|
4848
|
+
const resolved = await resolveEntityId(rawId, env, orgId);
|
|
4849
|
+
if (resolved.error || !resolved.data) {
|
|
4850
|
+
spinner.fail("Entity not found");
|
|
4851
|
+
console.log(chalk14.red("Error:"), resolved.error || `No entity matched "${rawId}"`);
|
|
4852
|
+
process.exit(1);
|
|
4853
|
+
}
|
|
4854
|
+
const id = resolved.data;
|
|
4855
|
+
spinner.text = "Updating entity";
|
|
4856
|
+
const { data: result, error } = await updateEntity(id, data, env, opts.status, orgId);
|
|
4820
4857
|
if (error) {
|
|
4821
4858
|
spinner.fail("Failed to update entity");
|
|
4822
4859
|
console.log(chalk14.red("Error:"), error);
|
|
@@ -4831,14 +4868,28 @@ entitiesCommand.command("update <id>").description("Update an entity").option("-
|
|
|
4831
4868
|
console.log();
|
|
4832
4869
|
}
|
|
4833
4870
|
});
|
|
4834
|
-
entitiesCommand.command("delete <id>").description("Delete an entity").option("--env <environment>", "Environment (development|production)", "development").option("--yes", "Skip confirmation").option("--json", "Output raw JSON").action(async (
|
|
4871
|
+
entitiesCommand.command("delete <id>").description("Delete an entity").option("--env <environment>", "Environment (development|production)", "development").option("--yes", "Skip confirmation").option("--json", "Output raw JSON").action(async (rawId, opts) => {
|
|
4835
4872
|
await ensureAuth();
|
|
4836
4873
|
const spinner = ora10();
|
|
4837
4874
|
const env = opts.env;
|
|
4875
|
+
const orgId = getOrgId();
|
|
4838
4876
|
const jsonMode = !!opts.json;
|
|
4839
4877
|
if (!jsonMode)
|
|
4840
|
-
spinner.start("
|
|
4841
|
-
const
|
|
4878
|
+
spinner.start("Resolving entity ID");
|
|
4879
|
+
const resolved = await resolveEntityId(rawId, env, orgId);
|
|
4880
|
+
if (resolved.error || !resolved.data) {
|
|
4881
|
+
if (jsonMode) {
|
|
4882
|
+
console.log(JSON.stringify({ success: false, error: resolved.error || `No entity matched "${rawId}"` }));
|
|
4883
|
+
} else {
|
|
4884
|
+
spinner.fail("Entity not found");
|
|
4885
|
+
console.log(chalk14.red("Error:"), resolved.error || `No entity matched "${rawId}"`);
|
|
4886
|
+
}
|
|
4887
|
+
process.exit(1);
|
|
4888
|
+
}
|
|
4889
|
+
const id = resolved.data;
|
|
4890
|
+
if (!jsonMode)
|
|
4891
|
+
spinner.text = "Fetching entity";
|
|
4892
|
+
const { data, error: fetchError } = await queryEntity(id, env, orgId);
|
|
4842
4893
|
if (fetchError || !data) {
|
|
4843
4894
|
if (jsonMode) {
|
|
4844
4895
|
console.log(JSON.stringify({ success: false, error: fetchError || "Entity not found" }));
|
|
@@ -4877,7 +4928,7 @@ entitiesCommand.command("delete <id>").description("Delete an entity").option("-
|
|
|
4877
4928
|
}
|
|
4878
4929
|
if (!jsonMode)
|
|
4879
4930
|
spinner.start("Deleting entity");
|
|
4880
|
-
const { error } = await removeEntity(id, env);
|
|
4931
|
+
const { error } = await removeEntity(id, env, orgId);
|
|
4881
4932
|
if (error) {
|
|
4882
4933
|
if (jsonMode) {
|
|
4883
4934
|
console.log(JSON.stringify({ success: false, error }));
|
|
@@ -4898,10 +4949,11 @@ entitiesCommand.command("search <type> <query>").description("Search entities").
|
|
|
4898
4949
|
await ensureAuth();
|
|
4899
4950
|
const spinner = ora10();
|
|
4900
4951
|
const env = opts.env;
|
|
4952
|
+
const orgId = getOrgId();
|
|
4901
4953
|
spinner.start(`Searching ${type} for "${query}"`);
|
|
4902
4954
|
const [searchResult, typeResult] = await Promise.all([
|
|
4903
|
-
searchEntities(type, query, env, parseInt(opts.limit, 10)),
|
|
4904
|
-
queryEntityTypeBySlug(type, env)
|
|
4955
|
+
searchEntities(type, query, env, parseInt(opts.limit, 10), orgId),
|
|
4956
|
+
queryEntityTypeBySlug(type, env, orgId)
|
|
4905
4957
|
]);
|
|
4906
4958
|
if (searchResult.error || !searchResult.data) {
|
|
4907
4959
|
spinner.fail("Search failed");
|
|
@@ -6167,7 +6219,7 @@ var integrationCommand = new Command15("integration").description("Manage integr
|
|
|
6167
6219
|
// package.json
|
|
6168
6220
|
var package_default = {
|
|
6169
6221
|
name: "struere",
|
|
6170
|
-
version: "0.9.
|
|
6222
|
+
version: "0.9.6",
|
|
6171
6223
|
description: "Build, test, and deploy AI agents",
|
|
6172
6224
|
keywords: [
|
|
6173
6225
|
"ai",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convex.d.ts","sourceRoot":"","sources":["../../../src/cli/utils/convex.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"convex.d.ts","sourceRoot":"","sources":["../../../src/cli/utils/convex.ts"],"names":[],"mappings":"AAIA,wBAAgB,UAAU,IAAI,MAAM,CAEnC;AAED,wBAAsB,YAAY,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAwB3D;AAED,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAA;QACV,KAAK,EAAE,MAAM,CAAA;QACb,IAAI,CAAC,EAAE,MAAM,CAAA;KACd,CAAA;IACD,aAAa,EAAE,OAAO,EAAE,CAAA;CACzB;AAED,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACb;AAED,wBAAsB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;IAAE,aAAa,EAAE,OAAO,EAAE,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAoB9G;AAED,wBAAsB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;IAAE,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAAC,KAAK,CAAC,EA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E,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAAC,EAAE,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAC5E,QAAQ,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,EAAE,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,cAAc,CAAC,EAAE,OAAO,CAAA;KAAE,CAAA;IACrF,KAAK,CAAC,EAAE;QAAE,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CACrD;AAED,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,cAAc,EAAE,CAAA;IACxB,WAAW,EAAE,mBAAmB,EAAE,CAAA;IAClC,KAAK,EAAE,aAAa,EAAE,CAAA;IACtB,QAAQ,EAAE,gBAAgB,EAAE,CAAA;CAC7B;AAED,wBAAsB,YAAY,CAChC,cAAc,CAAC,EAAE,MAAM,EACvB,WAAW,GAAE,aAAa,GAAG,YAAY,GAAG,MAAsB,GACjE,OAAO,CAAC;IAAE,KAAK,CAAC,EAAE,SAAS,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAmEhD"}
|
|
@@ -1,36 +1,40 @@
|
|
|
1
1
|
type Environment = 'development' | 'production';
|
|
2
|
-
export declare function queryEntityTypes(env: Environment): Promise<{
|
|
2
|
+
export declare function queryEntityTypes(env: Environment, organizationId?: string): Promise<{
|
|
3
3
|
data?: unknown;
|
|
4
4
|
error?: string;
|
|
5
5
|
}>;
|
|
6
|
-
export declare function queryEntityTypeBySlug(slug: string, env: Environment): Promise<{
|
|
6
|
+
export declare function queryEntityTypeBySlug(slug: string, env: Environment, organizationId?: string): Promise<{
|
|
7
7
|
data?: unknown;
|
|
8
8
|
error?: string;
|
|
9
9
|
}>;
|
|
10
10
|
export declare function queryEntities(slug: string, env: Environment, opts?: {
|
|
11
11
|
status?: string;
|
|
12
12
|
limit?: number;
|
|
13
|
-
}): Promise<{
|
|
13
|
+
}, organizationId?: string): Promise<{
|
|
14
14
|
data?: unknown;
|
|
15
15
|
error?: string;
|
|
16
16
|
}>;
|
|
17
|
-
export declare function
|
|
17
|
+
export declare function resolveEntityId(partialId: string, env: Environment, organizationId?: string): Promise<{
|
|
18
|
+
data?: string;
|
|
19
|
+
error?: string;
|
|
20
|
+
}>;
|
|
21
|
+
export declare function queryEntity(id: string, env: Environment, organizationId?: string): Promise<{
|
|
18
22
|
data?: unknown;
|
|
19
23
|
error?: string;
|
|
20
24
|
}>;
|
|
21
|
-
export declare function searchEntities(slug: string, query: string, env: Environment, limit?: number): Promise<{
|
|
25
|
+
export declare function searchEntities(slug: string, query: string, env: Environment, limit?: number, organizationId?: string): Promise<{
|
|
22
26
|
data?: unknown;
|
|
23
27
|
error?: string;
|
|
24
28
|
}>;
|
|
25
|
-
export declare function createEntity(slug: string, data: Record<string, unknown>, env: Environment, status?: string): Promise<{
|
|
29
|
+
export declare function createEntity(slug: string, data: Record<string, unknown>, env: Environment, status?: string, organizationId?: string): Promise<{
|
|
26
30
|
data?: unknown;
|
|
27
31
|
error?: string;
|
|
28
32
|
}>;
|
|
29
|
-
export declare function updateEntity(id: string, data: Record<string, unknown>, env: Environment, status?: string): Promise<{
|
|
33
|
+
export declare function updateEntity(id: string, data: Record<string, unknown>, env: Environment, status?: string, organizationId?: string): Promise<{
|
|
30
34
|
data?: unknown;
|
|
31
35
|
error?: string;
|
|
32
36
|
}>;
|
|
33
|
-
export declare function removeEntity(id: string, env: Environment): Promise<{
|
|
37
|
+
export declare function removeEntity(id: string, env: Environment, organizationId?: string): Promise<{
|
|
34
38
|
data?: unknown;
|
|
35
39
|
error?: string;
|
|
36
40
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../src/cli/utils/entities.ts"],"names":[],"mappings":"AAIA,KAAK,WAAW,GAAG,aAA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