@overaihq/cli 0.16.2 → 0.16.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/{esm-SY6KUSG2.js → esm-OXD3Y7KQ.js} +82 -60
- package/dist/index.js +132 -7
- package/package.json +2 -2
|
@@ -1078,7 +1078,7 @@ var require_build = __commonJS({
|
|
|
1078
1078
|
}
|
|
1079
1079
|
});
|
|
1080
1080
|
|
|
1081
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
1081
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/parser/tokenizer/keywords.js
|
|
1082
1082
|
var ContextualKeyword;
|
|
1083
1083
|
(function(ContextualKeyword2) {
|
|
1084
1084
|
const NONE = 0;
|
|
@@ -1165,7 +1165,7 @@ var ContextualKeyword;
|
|
|
1165
1165
|
ContextualKeyword2[ContextualKeyword2["_using"] = _using] = "_using";
|
|
1166
1166
|
})(ContextualKeyword || (ContextualKeyword = {}));
|
|
1167
1167
|
|
|
1168
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
1168
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/parser/tokenizer/types.js
|
|
1169
1169
|
var TokenType;
|
|
1170
1170
|
(function(TokenType2) {
|
|
1171
1171
|
const PRECEDENCE_MASK = 15;
|
|
@@ -1642,7 +1642,7 @@ function formatTokenType(tokenType) {
|
|
|
1642
1642
|
}
|
|
1643
1643
|
}
|
|
1644
1644
|
|
|
1645
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
1645
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/parser/tokenizer/state.js
|
|
1646
1646
|
var Scope = class {
|
|
1647
1647
|
constructor(startTokenIndex, endTokenIndex, isFunctionScope) {
|
|
1648
1648
|
this.startTokenIndex = startTokenIndex;
|
|
@@ -1772,7 +1772,7 @@ var State = class _State {
|
|
|
1772
1772
|
}
|
|
1773
1773
|
};
|
|
1774
1774
|
|
|
1775
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
1775
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/parser/util/charcodes.js
|
|
1776
1776
|
var charCodes;
|
|
1777
1777
|
(function(charCodes2) {
|
|
1778
1778
|
const backSpace = 8;
|
|
@@ -1985,7 +1985,7 @@ var charCodes;
|
|
|
1985
1985
|
charCodes2[charCodes2["paragraphSeparator"] = paragraphSeparator] = "paragraphSeparator";
|
|
1986
1986
|
})(charCodes || (charCodes = {}));
|
|
1987
1987
|
|
|
1988
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
1988
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/parser/traverser/base.js
|
|
1989
1989
|
var isJSXEnabled;
|
|
1990
1990
|
var isTypeScriptEnabled;
|
|
1991
1991
|
var isFlowEnabled;
|
|
@@ -2031,7 +2031,7 @@ function initParser(inputCode, isJSXEnabledArg, isTypeScriptEnabledArg, isFlowEn
|
|
|
2031
2031
|
isFlowEnabled = isFlowEnabledArg;
|
|
2032
2032
|
}
|
|
2033
2033
|
|
|
2034
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
2034
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/parser/traverser/util.js
|
|
2035
2035
|
function isContextual(contextualKeyword) {
|
|
2036
2036
|
return state.contextualKeyword === contextualKeyword;
|
|
2037
2037
|
}
|
|
@@ -2096,7 +2096,7 @@ function unexpected(message = "Unexpected token", pos = state.start) {
|
|
|
2096
2096
|
finishToken(TokenType.eof);
|
|
2097
2097
|
}
|
|
2098
2098
|
|
|
2099
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
2099
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/parser/util/whitespace.js
|
|
2100
2100
|
var WHITESPACE_CHARS = [
|
|
2101
2101
|
9,
|
|
2102
2102
|
11,
|
|
@@ -2141,7 +2141,7 @@ for (const char of WHITESPACE_CHARS) {
|
|
|
2141
2141
|
IS_WHITESPACE[char] = 1;
|
|
2142
2142
|
}
|
|
2143
2143
|
|
|
2144
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
2144
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/parser/util/identifier.js
|
|
2145
2145
|
function computeIsIdentifierChar(code) {
|
|
2146
2146
|
if (code < 48) return code === 36;
|
|
2147
2147
|
if (code < 58) return true;
|
|
@@ -2169,7 +2169,7 @@ for (let numChar = charCodes.digit0; numChar <= charCodes.digit9; numChar++) {
|
|
|
2169
2169
|
IS_IDENTIFIER_START[numChar] = 0;
|
|
2170
2170
|
}
|
|
2171
2171
|
|
|
2172
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
2172
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/parser/tokenizer/readWordTree.js
|
|
2173
2173
|
var READ_WORD_TREE = new Int32Array([
|
|
2174
2174
|
// ""
|
|
2175
2175
|
-1,
|
|
@@ -11469,7 +11469,7 @@ var READ_WORD_TREE = new Int32Array([
|
|
|
11469
11469
|
-1
|
|
11470
11470
|
]);
|
|
11471
11471
|
|
|
11472
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
11472
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/parser/tokenizer/readWord.js
|
|
11473
11473
|
function readWord() {
|
|
11474
11474
|
let treePos = 0;
|
|
11475
11475
|
let code = 0;
|
|
@@ -11519,7 +11519,7 @@ function readWord() {
|
|
|
11519
11519
|
finishToken(TokenType.name);
|
|
11520
11520
|
}
|
|
11521
11521
|
|
|
11522
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
11522
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/parser/tokenizer/index.js
|
|
11523
11523
|
var IdentifierRole;
|
|
11524
11524
|
(function(IdentifierRole2) {
|
|
11525
11525
|
const Access = 0;
|
|
@@ -12227,7 +12227,7 @@ function skipWord() {
|
|
|
12227
12227
|
}
|
|
12228
12228
|
}
|
|
12229
12229
|
|
|
12230
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
12230
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/util/getImportExportSpecifierInfo.js
|
|
12231
12231
|
function getImportExportSpecifierInfo(tokens, index = tokens.currentIndex()) {
|
|
12232
12232
|
let endIndex = index + 1;
|
|
12233
12233
|
if (isSpecifierEnd(tokens, endIndex)) {
|
|
@@ -12273,7 +12273,7 @@ function isSpecifierEnd(tokens, index) {
|
|
|
12273
12273
|
return token.type === TokenType.braceR || token.type === TokenType.comma;
|
|
12274
12274
|
}
|
|
12275
12275
|
|
|
12276
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
12276
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/parser/plugins/jsx/xhtml.js
|
|
12277
12277
|
var xhtml_default = /* @__PURE__ */ new Map([
|
|
12278
12278
|
["quot", '"'],
|
|
12279
12279
|
["amp", "&"],
|
|
@@ -12530,7 +12530,7 @@ var xhtml_default = /* @__PURE__ */ new Map([
|
|
|
12530
12530
|
["diams", "\u2666"]
|
|
12531
12531
|
]);
|
|
12532
12532
|
|
|
12533
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
12533
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/util/getJSXPragmaInfo.js
|
|
12534
12534
|
function getJSXPragmaInfo(options) {
|
|
12535
12535
|
const [base, suffix] = splitPragma(options.jsxPragma || "React.createElement");
|
|
12536
12536
|
const [fragmentBase, fragmentSuffix] = splitPragma(options.jsxFragmentPragma || "React.Fragment");
|
|
@@ -12544,7 +12544,7 @@ function splitPragma(pragma) {
|
|
|
12544
12544
|
return [pragma.slice(0, dotIndex), pragma.slice(dotIndex)];
|
|
12545
12545
|
}
|
|
12546
12546
|
|
|
12547
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
12547
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/transformers/Transformer.js
|
|
12548
12548
|
var Transformer = class {
|
|
12549
12549
|
// Return true if anything was processed, false otherwise.
|
|
12550
12550
|
getPrefixCode() {
|
|
@@ -12558,7 +12558,7 @@ var Transformer = class {
|
|
|
12558
12558
|
}
|
|
12559
12559
|
};
|
|
12560
12560
|
|
|
12561
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
12561
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/transformers/JSXTransformer.js
|
|
12562
12562
|
var JSXTransformer = class _JSXTransformer extends Transformer {
|
|
12563
12563
|
// State for calculating the line number of each JSX tag in development.
|
|
12564
12564
|
__init() {
|
|
@@ -12881,9 +12881,9 @@ var JSXTransformer = class _JSXTransformer extends Transformer {
|
|
|
12881
12881
|
}
|
|
12882
12882
|
this.tokens.removeToken();
|
|
12883
12883
|
this.tokens.removeToken();
|
|
12884
|
-
const
|
|
12884
|
+
const capture = this.tokens.beginCapture();
|
|
12885
12885
|
this.processPropValue();
|
|
12886
|
-
keyCode = this.tokens.
|
|
12886
|
+
keyCode = this.tokens.endCapture(capture);
|
|
12887
12887
|
continue;
|
|
12888
12888
|
} else {
|
|
12889
12889
|
this.processPropName(propName);
|
|
@@ -13139,7 +13139,7 @@ function isHexDigit(code) {
|
|
|
13139
13139
|
return code >= charCodes.digit0 && code <= charCodes.digit9 || code >= charCodes.lowercaseA && code <= charCodes.lowercaseF || code >= charCodes.uppercaseA && code <= charCodes.uppercaseF;
|
|
13140
13140
|
}
|
|
13141
13141
|
|
|
13142
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
13142
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/util/getNonTypeIdentifiers.js
|
|
13143
13143
|
function getNonTypeIdentifiers(tokens, options) {
|
|
13144
13144
|
const jsxPragmaInfo = getJSXPragmaInfo(options);
|
|
13145
13145
|
const nonTypeIdentifiers = /* @__PURE__ */ new Set();
|
|
@@ -13165,7 +13165,7 @@ function getNonTypeIdentifiers(tokens, options) {
|
|
|
13165
13165
|
return nonTypeIdentifiers;
|
|
13166
13166
|
}
|
|
13167
13167
|
|
|
13168
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
13168
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/CJSImportProcessor.js
|
|
13169
13169
|
var CJSImportProcessor = class _CJSImportProcessor {
|
|
13170
13170
|
__init() {
|
|
13171
13171
|
this.nonTypeIdentifiers = /* @__PURE__ */ new Set();
|
|
@@ -13759,7 +13759,7 @@ function skipSource(line, index, sourcesIndex, sourceLine, sourceColumn, namesIn
|
|
|
13759
13759
|
return sourcesIndex === prev[SOURCES_INDEX] && sourceLine === prev[SOURCE_LINE] && sourceColumn === prev[SOURCE_COLUMN] && namesIndex === (prev.length === 5 ? prev[NAMES_INDEX] : NO_NAME);
|
|
13760
13760
|
}
|
|
13761
13761
|
|
|
13762
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
13762
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/computeSourceMap.js
|
|
13763
13763
|
function computeSourceMap({ code: generatedCode, mappings: rawMappings }, filePath, options, source, tokens) {
|
|
13764
13764
|
const sourceColumns = computeSourceColumns(source, tokens);
|
|
13765
13765
|
const map = new GenMapping({ file: options.compiledFilename });
|
|
@@ -13813,7 +13813,7 @@ function computeSourceColumns(code, tokens) {
|
|
|
13813
13813
|
return sourceColumns;
|
|
13814
13814
|
}
|
|
13815
13815
|
|
|
13816
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
13816
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/HelperManager.js
|
|
13817
13817
|
var HELPERS = {
|
|
13818
13818
|
require: `
|
|
13819
13819
|
import {createRequire as CREATE_REQUIRE_NAME} from "module";
|
|
@@ -13995,7 +13995,7 @@ var HelperManager = class _HelperManager {
|
|
|
13995
13995
|
}
|
|
13996
13996
|
};
|
|
13997
13997
|
|
|
13998
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
13998
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/identifyShadowedGlobals.js
|
|
13999
13999
|
function identifyShadowedGlobals(tokens, scopes, globalNames) {
|
|
14000
14000
|
if (!hasShadowedGlobals(tokens, globalNames)) {
|
|
14001
14001
|
return;
|
|
@@ -14054,7 +14054,7 @@ function markShadowedForScope(scope, tokens, name) {
|
|
|
14054
14054
|
}
|
|
14055
14055
|
}
|
|
14056
14056
|
|
|
14057
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
14057
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/util/getIdentifierNames.js
|
|
14058
14058
|
function getIdentifierNames(code, tokens) {
|
|
14059
14059
|
const names = [];
|
|
14060
14060
|
for (const token of tokens) {
|
|
@@ -14065,7 +14065,7 @@ function getIdentifierNames(code, tokens) {
|
|
|
14065
14065
|
return names;
|
|
14066
14066
|
}
|
|
14067
14067
|
|
|
14068
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
14068
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/NameManager.js
|
|
14069
14069
|
var NameManager = class _NameManager {
|
|
14070
14070
|
__init() {
|
|
14071
14071
|
this.usedNames = /* @__PURE__ */ new Set();
|
|
@@ -14092,10 +14092,10 @@ var NameManager = class _NameManager {
|
|
|
14092
14092
|
}
|
|
14093
14093
|
};
|
|
14094
14094
|
|
|
14095
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
14095
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/Options.js
|
|
14096
14096
|
var import_ts_interface_checker = __toESM(require_dist());
|
|
14097
14097
|
|
|
14098
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
14098
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/Options-gen-types.js
|
|
14099
14099
|
var t = __toESM(require_dist());
|
|
14100
14100
|
var Transform = t.union(
|
|
14101
14101
|
t.lit("jsx"),
|
|
@@ -14131,13 +14131,13 @@ var exportedTypeSuite = {
|
|
|
14131
14131
|
};
|
|
14132
14132
|
var Options_gen_types_default = exportedTypeSuite;
|
|
14133
14133
|
|
|
14134
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
14134
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/Options.js
|
|
14135
14135
|
var { Options: OptionsChecker } = (0, import_ts_interface_checker.createCheckers)(Options_gen_types_default);
|
|
14136
14136
|
function validateOptions(options) {
|
|
14137
14137
|
OptionsChecker.strictCheck(options);
|
|
14138
14138
|
}
|
|
14139
14139
|
|
|
14140
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
14140
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/parser/traverser/lval.js
|
|
14141
14141
|
function parseSpread() {
|
|
14142
14142
|
next();
|
|
14143
14143
|
parseMaybeAssign(false);
|
|
@@ -14262,7 +14262,7 @@ function parseMaybeDefault(isBlockScope, leftAlreadyParsed = false) {
|
|
|
14262
14262
|
state.tokens[eqIndex].rhsEndIndex = state.tokens.length;
|
|
14263
14263
|
}
|
|
14264
14264
|
|
|
14265
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
14265
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/parser/plugins/typescript.js
|
|
14266
14266
|
function tsIsIdentifier() {
|
|
14267
14267
|
return match(TokenType.name);
|
|
14268
14268
|
}
|
|
@@ -15523,7 +15523,7 @@ function tsParseMaybeDecoratorArguments() {
|
|
|
15523
15523
|
baseParseMaybeDecoratorArguments();
|
|
15524
15524
|
}
|
|
15525
15525
|
|
|
15526
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
15526
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/parser/plugins/jsx/index.js
|
|
15527
15527
|
function jsxReadToken() {
|
|
15528
15528
|
let sawNewline = false;
|
|
15529
15529
|
let sawNonWhitespace = false;
|
|
@@ -15777,7 +15777,7 @@ function nextJSXExprToken() {
|
|
|
15777
15777
|
jsxReadToken();
|
|
15778
15778
|
}
|
|
15779
15779
|
|
|
15780
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
15780
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/parser/plugins/types.js
|
|
15781
15781
|
function typedParseConditional(noIn) {
|
|
15782
15782
|
if (match(TokenType.question)) {
|
|
15783
15783
|
const nextType = lookaheadType();
|
|
@@ -15798,7 +15798,7 @@ function typedParseParenItem() {
|
|
|
15798
15798
|
}
|
|
15799
15799
|
}
|
|
15800
15800
|
|
|
15801
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
15801
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/parser/traverser/expression.js
|
|
15802
15802
|
var StopState = class {
|
|
15803
15803
|
constructor(stop) {
|
|
15804
15804
|
this.stop = stop;
|
|
@@ -16494,7 +16494,7 @@ function parseModuleExpression() {
|
|
|
16494
16494
|
parseBlockBody(TokenType.braceR);
|
|
16495
16495
|
}
|
|
16496
16496
|
|
|
16497
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
16497
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/parser/plugins/flow.js
|
|
16498
16498
|
function isMaybeDefaultImport(lookahead) {
|
|
16499
16499
|
return (lookahead.type === TokenType.name || !!(lookahead.type & TokenType.IS_KEYWORD)) && lookahead.contextualKeyword !== ContextualKeyword._from;
|
|
16500
16500
|
}
|
|
@@ -17339,7 +17339,7 @@ function flowParseEnumMember() {
|
|
|
17339
17339
|
}
|
|
17340
17340
|
}
|
|
17341
17341
|
|
|
17342
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
17342
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/parser/traverser/statement.js
|
|
17343
17343
|
function parseTopLevel() {
|
|
17344
17344
|
parseBlockBody(TokenType.eof);
|
|
17345
17345
|
state.scopes.push(new Scope(0, state.tokens.length, true));
|
|
@@ -18297,7 +18297,7 @@ function maybeParseImportAttributes() {
|
|
|
18297
18297
|
}
|
|
18298
18298
|
}
|
|
18299
18299
|
|
|
18300
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
18300
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/parser/traverser/index.js
|
|
18301
18301
|
function parseFile() {
|
|
18302
18302
|
if (state.pos === 0 && input.charCodeAt(0) === charCodes.numberSign && input.charCodeAt(1) === charCodes.exclamationMark) {
|
|
18303
18303
|
skipLineComment(2);
|
|
@@ -18306,7 +18306,7 @@ function parseFile() {
|
|
|
18306
18306
|
return parseTopLevel();
|
|
18307
18307
|
}
|
|
18308
18308
|
|
|
18309
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
18309
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/parser/index.js
|
|
18310
18310
|
var File = class {
|
|
18311
18311
|
constructor(tokens, scopes) {
|
|
18312
18312
|
this.tokens = tokens;
|
|
@@ -18325,7 +18325,7 @@ function parse(input2, isJSXEnabled2, isTypeScriptEnabled2, isFlowEnabled2) {
|
|
|
18325
18325
|
return result;
|
|
18326
18326
|
}
|
|
18327
18327
|
|
|
18328
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
18328
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/util/isAsyncOperation.js
|
|
18329
18329
|
function isAsyncOperation(tokens) {
|
|
18330
18330
|
let index = tokens.currentIndex();
|
|
18331
18331
|
let depth = 0;
|
|
@@ -18348,7 +18348,7 @@ function isAsyncOperation(tokens) {
|
|
|
18348
18348
|
return false;
|
|
18349
18349
|
}
|
|
18350
18350
|
|
|
18351
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
18351
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/TokenProcessor.js
|
|
18352
18352
|
var TokenProcessor = class _TokenProcessor {
|
|
18353
18353
|
__init() {
|
|
18354
18354
|
this.resultCode = "";
|
|
@@ -18401,6 +18401,28 @@ var TokenProcessor = class _TokenProcessor {
|
|
|
18401
18401
|
this.resultCode = snapshot.resultCode;
|
|
18402
18402
|
return result;
|
|
18403
18403
|
}
|
|
18404
|
+
/**
|
|
18405
|
+
* Divert output into a fresh buffer; endCapture returns it and restores the
|
|
18406
|
+
* saved output. Replaces snapshot + dangerouslyGetAndRemoveCodeSinceSnapshot
|
|
18407
|
+
* for JSX `key=` props: resultCode is a `+=` rope, and slicing it flattens the
|
|
18408
|
+
* whole output once per key prop, quadratic on multi-MB pages.
|
|
18409
|
+
* The tokens emitted during a capture get no resultMappings entry: their code
|
|
18410
|
+
* is re-emitted elsewhere, and an offset into the scratch buffer would stall
|
|
18411
|
+
* computeSourceMap's forward walk for every later token.
|
|
18412
|
+
*/
|
|
18413
|
+
beginCapture() {
|
|
18414
|
+
const saved = { resultCode: this.resultCode, tokenIndex: this.tokenIndex };
|
|
18415
|
+
this.resultCode = "";
|
|
18416
|
+
return saved;
|
|
18417
|
+
}
|
|
18418
|
+
endCapture(saved) {
|
|
18419
|
+
const captured = this.resultCode;
|
|
18420
|
+
for (let i = saved.tokenIndex; i < this.tokenIndex; i++) {
|
|
18421
|
+
this.resultMappings[i] = void 0;
|
|
18422
|
+
}
|
|
18423
|
+
this.resultCode = saved.resultCode;
|
|
18424
|
+
return captured;
|
|
18425
|
+
}
|
|
18404
18426
|
reset() {
|
|
18405
18427
|
this.resultCode = "";
|
|
18406
18428
|
this.resultMappings = new Array(this.tokens.length);
|
|
@@ -18630,7 +18652,7 @@ var TokenProcessor = class _TokenProcessor {
|
|
|
18630
18652
|
}
|
|
18631
18653
|
};
|
|
18632
18654
|
|
|
18633
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
18655
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/util/getClassInfo.js
|
|
18634
18656
|
function getClassInfo(rootTransformer, tokens, nameManager, disableESTransforms) {
|
|
18635
18657
|
const snapshot = tokens.snapshot();
|
|
18636
18658
|
const headerInfo = processClassHeader(tokens);
|
|
@@ -18863,7 +18885,7 @@ function skipFieldName(tokens) {
|
|
|
18863
18885
|
}
|
|
18864
18886
|
}
|
|
18865
18887
|
|
|
18866
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
18888
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/util/elideImportEquals.js
|
|
18867
18889
|
function elideImportEquals(tokens) {
|
|
18868
18890
|
tokens.removeInitialToken();
|
|
18869
18891
|
tokens.removeToken();
|
|
@@ -18881,7 +18903,7 @@ function elideImportEquals(tokens) {
|
|
|
18881
18903
|
}
|
|
18882
18904
|
}
|
|
18883
18905
|
|
|
18884
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
18906
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/util/getDeclarationInfo.js
|
|
18885
18907
|
var EMPTY_DECLARATION_INFO = {
|
|
18886
18908
|
typeDeclarations: /* @__PURE__ */ new Set(),
|
|
18887
18909
|
valueDeclarations: /* @__PURE__ */ new Set()
|
|
@@ -18902,7 +18924,7 @@ function getDeclarationInfo(tokens) {
|
|
|
18902
18924
|
return { typeDeclarations, valueDeclarations };
|
|
18903
18925
|
}
|
|
18904
18926
|
|
|
18905
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
18927
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/util/isExportFrom.js
|
|
18906
18928
|
function isExportFrom(tokens) {
|
|
18907
18929
|
let closeBraceIndex = tokens.currentIndex();
|
|
18908
18930
|
while (!tokens.matches1AtIndex(closeBraceIndex, TokenType.braceR)) {
|
|
@@ -18911,7 +18933,7 @@ function isExportFrom(tokens) {
|
|
|
18911
18933
|
return tokens.matchesContextualAtIndex(closeBraceIndex + 1, ContextualKeyword._from) && tokens.matches1AtIndex(closeBraceIndex + 2, TokenType.string);
|
|
18912
18934
|
}
|
|
18913
18935
|
|
|
18914
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
18936
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/util/removeMaybeImportAttributes.js
|
|
18915
18937
|
function removeMaybeImportAttributes(tokens) {
|
|
18916
18938
|
if (tokens.matches2(TokenType._with, TokenType.braceL) || tokens.matches2(TokenType.name, TokenType.braceL) && tokens.matchesContextual(ContextualKeyword._assert)) {
|
|
18917
18939
|
tokens.removeToken();
|
|
@@ -18921,7 +18943,7 @@ function removeMaybeImportAttributes(tokens) {
|
|
|
18921
18943
|
}
|
|
18922
18944
|
}
|
|
18923
18945
|
|
|
18924
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
18946
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/util/shouldElideDefaultExport.js
|
|
18925
18947
|
function shouldElideDefaultExport(isTypeScriptTransformEnabled, keepUnusedImports, tokens, declarationInfo) {
|
|
18926
18948
|
if (!isTypeScriptTransformEnabled || keepUnusedImports) {
|
|
18927
18949
|
return false;
|
|
@@ -18942,7 +18964,7 @@ function shouldElideDefaultExport(isTypeScriptTransformEnabled, keepUnusedImport
|
|
|
18942
18964
|
return declarationInfo.typeDeclarations.has(exportedName) && !declarationInfo.valueDeclarations.has(exportedName);
|
|
18943
18965
|
}
|
|
18944
18966
|
|
|
18945
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
18967
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/transformers/CJSImportTransformer.js
|
|
18946
18968
|
var CJSImportTransformer = class _CJSImportTransformer extends Transformer {
|
|
18947
18969
|
__init() {
|
|
18948
18970
|
this.hadExport = false;
|
|
@@ -19670,7 +19692,7 @@ var CJSImportTransformer = class _CJSImportTransformer extends Transformer {
|
|
|
19670
19692
|
}
|
|
19671
19693
|
};
|
|
19672
19694
|
|
|
19673
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
19695
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/transformers/ESMImportTransformer.js
|
|
19674
19696
|
var ESMImportTransformer = class extends Transformer {
|
|
19675
19697
|
constructor(tokens, nameManager, helperManager, reactHotLoaderTransformer, isTypeScriptTransformEnabled, isFlowTransformEnabled, keepUnusedImports, options) {
|
|
19676
19698
|
super();
|
|
@@ -19947,7 +19969,7 @@ var ESMImportTransformer = class extends Transformer {
|
|
|
19947
19969
|
}
|
|
19948
19970
|
};
|
|
19949
19971
|
|
|
19950
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
19972
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/transformers/FlowTransformer.js
|
|
19951
19973
|
var FlowTransformer = class extends Transformer {
|
|
19952
19974
|
constructor(rootTransformer, tokens, isImportsTransformEnabled) {
|
|
19953
19975
|
super();
|
|
@@ -20101,7 +20123,7 @@ var FlowTransformer = class extends Transformer {
|
|
|
20101
20123
|
}
|
|
20102
20124
|
};
|
|
20103
20125
|
|
|
20104
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
20126
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/transformers/JestHoistTransformer.js
|
|
20105
20127
|
function _optionalChain(ops) {
|
|
20106
20128
|
let lastAccessLHS = void 0;
|
|
20107
20129
|
let value = ops[0];
|
|
@@ -20194,7 +20216,7 @@ var JestHoistTransformer = class _JestHoistTransformer extends Transformer {
|
|
|
20194
20216
|
}
|
|
20195
20217
|
};
|
|
20196
20218
|
|
|
20197
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
20219
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/transformers/NumericSeparatorTransformer.js
|
|
20198
20220
|
var NumericSeparatorTransformer = class extends Transformer {
|
|
20199
20221
|
constructor(tokens) {
|
|
20200
20222
|
super();
|
|
@@ -20213,7 +20235,7 @@ var NumericSeparatorTransformer = class extends Transformer {
|
|
|
20213
20235
|
}
|
|
20214
20236
|
};
|
|
20215
20237
|
|
|
20216
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
20238
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/transformers/OptionalCatchBindingTransformer.js
|
|
20217
20239
|
var OptionalCatchBindingTransformer = class extends Transformer {
|
|
20218
20240
|
constructor(tokens, nameManager) {
|
|
20219
20241
|
super();
|
|
@@ -20231,7 +20253,7 @@ var OptionalCatchBindingTransformer = class extends Transformer {
|
|
|
20231
20253
|
}
|
|
20232
20254
|
};
|
|
20233
20255
|
|
|
20234
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
20256
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/transformers/OptionalChainingNullishTransformer.js
|
|
20235
20257
|
var OptionalChainingNullishTransformer = class extends Transformer {
|
|
20236
20258
|
constructor(tokens, nameManager) {
|
|
20237
20259
|
super();
|
|
@@ -20356,7 +20378,7 @@ var OptionalChainingNullishTransformer = class extends Transformer {
|
|
|
20356
20378
|
}
|
|
20357
20379
|
};
|
|
20358
20380
|
|
|
20359
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
20381
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/transformers/ReactDisplayNameTransformer.js
|
|
20360
20382
|
var ReactDisplayNameTransformer = class extends Transformer {
|
|
20361
20383
|
constructor(rootTransformer, tokens, importProcessor, options) {
|
|
20362
20384
|
super();
|
|
@@ -20470,7 +20492,7 @@ var ReactDisplayNameTransformer = class extends Transformer {
|
|
|
20470
20492
|
}
|
|
20471
20493
|
};
|
|
20472
20494
|
|
|
20473
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
20495
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/transformers/ReactHotLoaderTransformer.js
|
|
20474
20496
|
var ReactHotLoaderTransformer = class _ReactHotLoaderTransformer extends Transformer {
|
|
20475
20497
|
__init() {
|
|
20476
20498
|
this.extractedDefaultExportName = null;
|
|
@@ -20529,7 +20551,7 @@ ${namesToRegister.map(
|
|
|
20529
20551
|
}
|
|
20530
20552
|
};
|
|
20531
20553
|
|
|
20532
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
20554
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/util/isIdentifier.js
|
|
20533
20555
|
var RESERVED_WORDS = /* @__PURE__ */ new Set([
|
|
20534
20556
|
// Reserved keywords as of ECMAScript 2015
|
|
20535
20557
|
"break",
|
|
@@ -20596,7 +20618,7 @@ function isIdentifier(name) {
|
|
|
20596
20618
|
return !RESERVED_WORDS.has(name);
|
|
20597
20619
|
}
|
|
20598
20620
|
|
|
20599
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
20621
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/transformers/TypeScriptTransformer.js
|
|
20600
20622
|
var TypeScriptTransformer = class extends Transformer {
|
|
20601
20623
|
constructor(rootTransformer, tokens, isImportsTransformEnabled) {
|
|
20602
20624
|
super();
|
|
@@ -20822,7 +20844,7 @@ var TypeScriptTransformer = class extends Transformer {
|
|
|
20822
20844
|
}
|
|
20823
20845
|
};
|
|
20824
20846
|
|
|
20825
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
20847
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/transformers/RootTransformer.js
|
|
20826
20848
|
var RootTransformer = class _RootTransformer {
|
|
20827
20849
|
__init() {
|
|
20828
20850
|
this.transformers = [];
|
|
@@ -21203,7 +21225,7 @@ var RootTransformer = class _RootTransformer {
|
|
|
21203
21225
|
}
|
|
21204
21226
|
};
|
|
21205
21227
|
|
|
21206
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
21228
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/util/formatTokens.js
|
|
21207
21229
|
var import_lines_and_columns = __toESM(require_build());
|
|
21208
21230
|
function formatTokens(code, tokens) {
|
|
21209
21231
|
if (tokens.length === 0) {
|
|
@@ -21264,7 +21286,7 @@ function truncate(s, length) {
|
|
|
21264
21286
|
}
|
|
21265
21287
|
}
|
|
21266
21288
|
|
|
21267
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
21289
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/util/getTSImportedNames.js
|
|
21268
21290
|
function getTSImportedNames(tokens) {
|
|
21269
21291
|
const importedNames = /* @__PURE__ */ new Set();
|
|
21270
21292
|
for (let i = 0; i < tokens.tokens.length; i++) {
|
|
@@ -21318,7 +21340,7 @@ function collectNamesForNamedImport(tokens, index, importedNames) {
|
|
|
21318
21340
|
}
|
|
21319
21341
|
}
|
|
21320
21342
|
|
|
21321
|
-
// ../../node_modules/.pnpm/sucrase@3.35.
|
|
21343
|
+
// ../../node_modules/.pnpm/sucrase@3.35.1_patch_hash=fc9f9736e1a6ae90ed6d8b2712d872bc61d7e4b0a5523ded4886e0d216b9a47b/node_modules/sucrase/dist/esm/index.js
|
|
21322
21344
|
function getVersion() {
|
|
21323
21345
|
return "3.35.1";
|
|
21324
21346
|
}
|
package/dist/index.js
CHANGED
|
@@ -46071,6 +46071,10 @@ var NodeEnum = /* @__PURE__ */ ((NodeEnum2) => {
|
|
|
46071
46071
|
NodeEnum2["dropboxUploadFile"] = "DROPBOX_UPLOAD_FILE";
|
|
46072
46072
|
NodeEnum2["dynamics365Action"] = "DYNAMICS365_ACTION";
|
|
46073
46073
|
NodeEnum2["dynamics365Query"] = "DYNAMICS365_QUERY";
|
|
46074
|
+
NodeEnum2["egnyteAction"] = "EGNYTE_ACTION";
|
|
46075
|
+
NodeEnum2["egnyteDownloadFile"] = "EGNYTE_DOWNLOAD_FILE";
|
|
46076
|
+
NodeEnum2["egnyteListFolder"] = "EGNYTE_LIST_FOLDER";
|
|
46077
|
+
NodeEnum2["egnyteUploadFile"] = "EGNYTE_UPLOAD_FILE";
|
|
46074
46078
|
NodeEnum2["emailReceived"] = "EMAIL_RECEIVED";
|
|
46075
46079
|
NodeEnum2["entraIdAction"] = "ENTRA_ID_ACTION";
|
|
46076
46080
|
NodeEnum2["error"] = "ERROR";
|
|
@@ -46408,13 +46412,7 @@ var automationNodesSchema = external_exports.array(automationNodeSchema);
|
|
|
46408
46412
|
var iterationStateSchema = external_exports.object({
|
|
46409
46413
|
iteration: external_exports.number().int(),
|
|
46410
46414
|
iteratee: external_exports.any().nonoptional(),
|
|
46411
|
-
state: external_exports.lazy(() => automationStateSchema)
|
|
46412
|
-
/**
|
|
46413
|
-
* Set when a completed iteration's `state` is compacted to `{}` to keep the
|
|
46414
|
-
* run-state blob from growing with every iteration. Preserves the one fact
|
|
46415
|
-
* the end-of-run rollup needs from a discarded state.
|
|
46416
|
-
*/
|
|
46417
|
-
errored: external_exports.boolean().optional()
|
|
46415
|
+
state: external_exports.lazy(() => automationStateSchema)
|
|
46418
46416
|
});
|
|
46419
46417
|
var automationNodeStateOutcomeSchema = external_exports.enum(["success", "failure", "skipped", "errored", "loop", "expired"]).optional();
|
|
46420
46418
|
var automationNodeStateSchema = external_exports.lazy(
|
|
@@ -60802,6 +60800,9 @@ var pageFiles = (v) => {
|
|
|
60802
60800
|
"meta.json": json3(meta3)
|
|
60803
60801
|
};
|
|
60804
60802
|
};
|
|
60803
|
+
var libraryFiles = (v) => ({
|
|
60804
|
+
"code.tsx": v.code
|
|
60805
|
+
});
|
|
60805
60806
|
var automationFiles = (v) => ({
|
|
60806
60807
|
"code.json": json3({
|
|
60807
60808
|
maxConcurrentRuns: v.maxConcurrentRuns,
|
|
@@ -60854,6 +60855,9 @@ var pageInput = (files) => {
|
|
|
60854
60855
|
if (codeEntry == null) throw new Error("Missing local code file.");
|
|
60855
60856
|
return { ...meta3, code: codeEntry[1] };
|
|
60856
60857
|
};
|
|
60858
|
+
var libraryInput = (files) => ({
|
|
60859
|
+
code: fileBySuffix(files, ".tsx")
|
|
60860
|
+
});
|
|
60857
60861
|
var automationInput = (files) => {
|
|
60858
60862
|
const doc = JSON.parse(fileBySuffix(files, ".json"));
|
|
60859
60863
|
return { maxConcurrentRuns: doc.maxConcurrentRuns, elements: doc.elements };
|
|
@@ -61151,6 +61155,102 @@ ${findings2.map((f) => ` ${f}`).join("\n")}`
|
|
|
61151
61155
|
};
|
|
61152
61156
|
var webPageSource = (client) => pageSource(client, "webPage");
|
|
61153
61157
|
var printablePageSource = (client) => pageSource(client, "printablePage");
|
|
61158
|
+
var librarySource = (client) => ({
|
|
61159
|
+
type: "Library",
|
|
61160
|
+
list: async (workspaceId) => {
|
|
61161
|
+
const data = await client.graphql(
|
|
61162
|
+
`query SdkLibraries($workspaceId: String!) {
|
|
61163
|
+
libraries(condition: { workspaceId: $workspaceId }, includeArchived: NO) {
|
|
61164
|
+
nodes {
|
|
61165
|
+
id name
|
|
61166
|
+
libraryVersions(orderBy: [VERSION_NUMBER_DESC], first: 1) { nodes { versionNumber code } }
|
|
61167
|
+
libraryDeployedVersion { versionNumber }
|
|
61168
|
+
}
|
|
61169
|
+
}
|
|
61170
|
+
}`,
|
|
61171
|
+
{ workspaceId }
|
|
61172
|
+
);
|
|
61173
|
+
return data.libraries.nodes.flatMap((library) => {
|
|
61174
|
+
const latest = library.libraryVersions.nodes[0];
|
|
61175
|
+
if (latest == null) return [];
|
|
61176
|
+
return [
|
|
61177
|
+
{
|
|
61178
|
+
id: library.id,
|
|
61179
|
+
name: library.name,
|
|
61180
|
+
latestVersion: latest.versionNumber,
|
|
61181
|
+
deployedVersion: library.libraryDeployedVersion?.versionNumber ?? null,
|
|
61182
|
+
workspaceId,
|
|
61183
|
+
latest
|
|
61184
|
+
}
|
|
61185
|
+
];
|
|
61186
|
+
});
|
|
61187
|
+
},
|
|
61188
|
+
head: async (id) => {
|
|
61189
|
+
const data = await client.graphql(
|
|
61190
|
+
`query SdkLibraryHead($id: String!) {
|
|
61191
|
+
library(id: $id) {
|
|
61192
|
+
workspaceId
|
|
61193
|
+
libraryVersions(orderBy: [VERSION_NUMBER_DESC], first: 1) { nodes { versionNumber } }
|
|
61194
|
+
libraryDeployedVersion { versionNumber }
|
|
61195
|
+
}
|
|
61196
|
+
}`,
|
|
61197
|
+
{ id }
|
|
61198
|
+
);
|
|
61199
|
+
if (data.library == null) return null;
|
|
61200
|
+
return {
|
|
61201
|
+
latestVersion: data.library.libraryVersions.nodes[0]?.versionNumber ?? 0,
|
|
61202
|
+
deployedVersion: data.library.libraryDeployedVersion?.versionNumber ?? null,
|
|
61203
|
+
workspaceId: data.library.workspaceId
|
|
61204
|
+
};
|
|
61205
|
+
},
|
|
61206
|
+
version: async (id, versionNumber) => {
|
|
61207
|
+
const data = await client.graphql(
|
|
61208
|
+
`query SdkLibraryVersion($libraryId: String!, $versionNumber: Int!) {
|
|
61209
|
+
libraryVersion(libraryId: $libraryId, versionNumber: $versionNumber) { versionNumber code }
|
|
61210
|
+
}`,
|
|
61211
|
+
{ libraryId: id, versionNumber }
|
|
61212
|
+
);
|
|
61213
|
+
return data.libraryVersion;
|
|
61214
|
+
},
|
|
61215
|
+
files: libraryFiles,
|
|
61216
|
+
save: async (id, input2, options) => {
|
|
61217
|
+
const data = await client.graphql(
|
|
61218
|
+
`mutation SdkCreateLibraryVersion($expectedLatestVersion: Int, $libraryId: String!, $message: String, $code: String!) {
|
|
61219
|
+
createLibraryVersion(input: { expectedLatestVersion: $expectedLatestVersion, libraryVersion: {
|
|
61220
|
+
libraryId: $libraryId, message: $message, code: $code
|
|
61221
|
+
}}) { libraryVersion { versionNumber } }
|
|
61222
|
+
}`,
|
|
61223
|
+
{
|
|
61224
|
+
expectedLatestVersion: options.expectedLatestVersion,
|
|
61225
|
+
libraryId: id,
|
|
61226
|
+
message: options.message,
|
|
61227
|
+
code: input2.code
|
|
61228
|
+
}
|
|
61229
|
+
);
|
|
61230
|
+
const versionNumber = data.createLibraryVersion?.libraryVersion?.versionNumber;
|
|
61231
|
+
if (versionNumber == null) {
|
|
61232
|
+
throw new Error("createLibraryVersion returned no version.");
|
|
61233
|
+
}
|
|
61234
|
+
return versionNumber;
|
|
61235
|
+
},
|
|
61236
|
+
deploy: async (id, versionNumber) => {
|
|
61237
|
+
const build = await client.trpc("library.build", { libraryId: id, versionNumber });
|
|
61238
|
+
if (build.error != null) {
|
|
61239
|
+
throw new Error(
|
|
61240
|
+
`Library ${id} v${String(versionNumber)} failed to build, so it was not deployed:
|
|
61241
|
+
${build.error}`
|
|
61242
|
+
);
|
|
61243
|
+
}
|
|
61244
|
+
await client.graphql(
|
|
61245
|
+
`mutation SdkDeployLibrary($libraryId: String!, $versionNumber: Int!) {
|
|
61246
|
+
updateLibraryDeployedVersion(input: { libraryId: $libraryId, patch: { versionNumber: $versionNumber } }) {
|
|
61247
|
+
libraryDeployedVersion { versionNumber }
|
|
61248
|
+
}
|
|
61249
|
+
}`,
|
|
61250
|
+
{ libraryId: id, versionNumber }
|
|
61251
|
+
);
|
|
61252
|
+
}
|
|
61253
|
+
});
|
|
61154
61254
|
var automationSource = (client) => ({
|
|
61155
61255
|
type: "Automation",
|
|
61156
61256
|
list: async (workspaceId) => {
|
|
@@ -63055,6 +63155,10 @@ var OverAIClient = class {
|
|
|
63055
63155
|
list: (workspaceId) => printablePageSource(this).list(workspaceId),
|
|
63056
63156
|
create: (input2) => createPage(this, "createPrintablePage", input2)
|
|
63057
63157
|
};
|
|
63158
|
+
/** No `create`: libraries are in early access, and only OverAI support creates them. */
|
|
63159
|
+
libraries = {
|
|
63160
|
+
list: (workspaceId) => librarySource(this).list(workspaceId)
|
|
63161
|
+
};
|
|
63058
63162
|
automations = {
|
|
63059
63163
|
list: (workspaceId) => automationSource(this).list(workspaceId),
|
|
63060
63164
|
create: (input2) => createAutomation(this, input2)
|
|
@@ -63092,6 +63196,10 @@ var OverAIClient = class {
|
|
|
63092
63196
|
...printablePageRender(this, id)
|
|
63093
63197
|
};
|
|
63094
63198
|
}
|
|
63199
|
+
/** Its `deploy` builds the version first and throws the build error instead of deploying. */
|
|
63200
|
+
library(id) {
|
|
63201
|
+
return codeResource(librarySource(this), id);
|
|
63202
|
+
}
|
|
63095
63203
|
automation(id) {
|
|
63096
63204
|
return {
|
|
63097
63205
|
...versionedResource(automationSource(this), id),
|
|
@@ -64317,6 +64425,7 @@ var CLONE_DIRS = {
|
|
|
64317
64425
|
function: "functions",
|
|
64318
64426
|
webPage: "web-pages",
|
|
64319
64427
|
printablePage: "printable-pages",
|
|
64428
|
+
library: "libraries",
|
|
64320
64429
|
automation: "automations",
|
|
64321
64430
|
agent: "agents"
|
|
64322
64431
|
};
|
|
@@ -64331,6 +64440,7 @@ var versioned = (type, id) => {
|
|
|
64331
64440
|
if (type === "function") return client.fn(id);
|
|
64332
64441
|
if (type === "webPage") return client.page(id);
|
|
64333
64442
|
if (type === "printablePage") return client.printablePage(id);
|
|
64443
|
+
if (type === "library") return client.library(id);
|
|
64334
64444
|
if (type === "automation") return client.automation(id);
|
|
64335
64445
|
return client.agent(id);
|
|
64336
64446
|
};
|
|
@@ -64376,6 +64486,13 @@ var printablePageAdapter = sdkAdapter({
|
|
|
64376
64486
|
files: pageFiles,
|
|
64377
64487
|
input: pageInput
|
|
64378
64488
|
});
|
|
64489
|
+
var libraryAdapter = sdkAdapter({
|
|
64490
|
+
type: "library",
|
|
64491
|
+
collection: () => cliClient().libraries,
|
|
64492
|
+
resource: (id) => cliClient().library(id),
|
|
64493
|
+
files: libraryFiles,
|
|
64494
|
+
input: libraryInput
|
|
64495
|
+
});
|
|
64379
64496
|
var automationAdapter = sdkAdapter({
|
|
64380
64497
|
type: "automation",
|
|
64381
64498
|
collection: () => cliClient().automations,
|
|
@@ -64395,6 +64512,7 @@ var allAdapters = [
|
|
|
64395
64512
|
functionAdapter,
|
|
64396
64513
|
webPageAdapter,
|
|
64397
64514
|
printablePageAdapter,
|
|
64515
|
+
libraryAdapter,
|
|
64398
64516
|
agentAdapter
|
|
64399
64517
|
];
|
|
64400
64518
|
var adapterFor = (type) => {
|
|
@@ -65575,6 +65693,7 @@ var ROUTE_BY_TYPE = {
|
|
|
65575
65693
|
function: "functions",
|
|
65576
65694
|
webPage: "web-pages",
|
|
65577
65695
|
printablePage: "printable-pages",
|
|
65696
|
+
library: "libraries",
|
|
65578
65697
|
agent: "agents"
|
|
65579
65698
|
};
|
|
65580
65699
|
var ROUTE_BY_TABLE = {
|
|
@@ -65585,6 +65704,7 @@ var ROUTE_BY_TABLE = {
|
|
|
65585
65704
|
automation: "automations",
|
|
65586
65705
|
table_space: "table-spaces",
|
|
65587
65706
|
data_file: "data-files",
|
|
65707
|
+
library: "libraries",
|
|
65588
65708
|
agent: "agents",
|
|
65589
65709
|
integration: "integrations",
|
|
65590
65710
|
data_stream: "data-streams",
|
|
@@ -67041,6 +67161,8 @@ around a clone-sync mismatch; use the correct workspace folder.
|
|
|
67041
67161
|
inside meta.json; leave outputSchema "" when the response shape is
|
|
67042
67162
|
unspecified. Older meta.json files without callerAccess keep the latest saved
|
|
67043
67163
|
policy on push.
|
|
67164
|
+
- Libraries: <slug>.<id>.tsx, the whole module. \`overai deploy\` builds it
|
|
67165
|
+
first (see \`overai best-practices libraries\`).
|
|
67044
67166
|
- Automations: the elements document (see \`overai best-practices automations\`,
|
|
67045
67167
|
section "elements").
|
|
67046
67168
|
|
|
@@ -69104,6 +69226,8 @@ The toggle exposes **all** resources in that workspace to the page's runtime \u2
|
|
|
69104
69226
|
|
|
69105
69227
|
End users in a workspace (added by managers from the "User access" button in the upper right of the Workspace Overview page, which opens a modal listing Builders and End users) authenticate by email + magic link and then land on the "homepage". Platform emails to End users show their latest active organization's name and photo, with OverAI in the footer; invitations use the destination organization.
|
|
69106
69228
|
|
|
69229
|
+
End-user workspace views, previews, and portal pages use the organization's photo as the browser tab icon, falling back to OverAI when no photo is set. Builder and admin screens keep the OverAI icon.
|
|
69230
|
+
|
|
69107
69231
|
The homepage is set by a Workspace Manager on the Workspace Overview page by choosing a Web Page as the homepage.
|
|
69108
69232
|
|
|
69109
69233
|
A workspace's **End user access** setting (Managers, from the \u22EF menu on the Workspace Overview page) picks one of two modes. **App** (the default) drops End users on the homepage with no page navigation. **Pages** adds a navigator to the top bar listing every deployed web page in the workspace, and a workspace without a homepage lands on its first listed page. Any page can be marked **Hidden** (Managers and Editors, same modal) to leave it out of the navigator while staying viewable by link \u2014 for detail pages reached from another page rather than browsed to.
|
|
@@ -69205,6 +69329,7 @@ var readGuides = (name2, section) => {
|
|
|
69205
69329
|
var REVIEW_TOPICS = {
|
|
69206
69330
|
webPage: ["webPages"],
|
|
69207
69331
|
printablePage: ["printablePages"],
|
|
69332
|
+
library: ["libraries"],
|
|
69208
69333
|
automation: ["automations"],
|
|
69209
69334
|
function: ["functions"]
|
|
69210
69335
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@overaihq/cli",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.3",
|
|
4
4
|
"description": "Create, edit, deploy, and run OverAI workspace resources from the command line",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://overai.com",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"access": "public"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@overaihq/sdk": "0.6.
|
|
23
|
+
"@overaihq/sdk": "0.6.2",
|
|
24
24
|
"@perygee/common": "0.0.0",
|
|
25
25
|
"@types/node": "^24.19.2",
|
|
26
26
|
"@types/proper-lockfile": "^4.1.4",
|