@awsless/cli 0.1.12 → 0.1.14
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.js +237 -122
- package/dist/handlers/icon.js +15 -1
- package/dist/handlers/pubsub-publisher.js +17 -3
- package/dist/handlers/pubsub-server.js +48 -26
- package/dist/test-global-setup.js +5 -1
- package/package.json +13 -13
package/dist/bin.js
CHANGED
|
@@ -6,39 +6,60 @@ var __defProp = Object.defineProperty;
|
|
|
6
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
7
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
8
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
function __accessProp(key) {
|
|
10
|
+
return this[key];
|
|
11
|
+
}
|
|
12
|
+
var __toESMCache_node;
|
|
13
|
+
var __toESMCache_esm;
|
|
9
14
|
var __toESM = (mod, isNodeMode, target) => {
|
|
15
|
+
var canCache = mod != null && typeof mod === "object";
|
|
16
|
+
if (canCache) {
|
|
17
|
+
var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
|
|
18
|
+
var cached = cache.get(mod);
|
|
19
|
+
if (cached)
|
|
20
|
+
return cached;
|
|
21
|
+
}
|
|
10
22
|
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
11
23
|
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
12
24
|
for (let key of __getOwnPropNames(mod))
|
|
13
25
|
if (!__hasOwnProp.call(to, key))
|
|
14
26
|
__defProp(to, key, {
|
|
15
|
-
get: (
|
|
27
|
+
get: __accessProp.bind(mod, key),
|
|
16
28
|
enumerable: true
|
|
17
29
|
});
|
|
30
|
+
if (canCache)
|
|
31
|
+
cache.set(mod, to);
|
|
18
32
|
return to;
|
|
19
33
|
};
|
|
20
|
-
var __moduleCache = /* @__PURE__ */ new WeakMap;
|
|
21
34
|
var __toCommonJS = (from) => {
|
|
22
|
-
var entry = __moduleCache.get(from), desc;
|
|
35
|
+
var entry = (__moduleCache ??= new WeakMap).get(from), desc;
|
|
23
36
|
if (entry)
|
|
24
37
|
return entry;
|
|
25
38
|
entry = __defProp({}, "__esModule", { value: true });
|
|
26
|
-
if (from && typeof from === "object" || typeof from === "function")
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
39
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
40
|
+
for (var key of __getOwnPropNames(from))
|
|
41
|
+
if (!__hasOwnProp.call(entry, key))
|
|
42
|
+
__defProp(entry, key, {
|
|
43
|
+
get: __accessProp.bind(from, key),
|
|
44
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
45
|
+
});
|
|
46
|
+
}
|
|
31
47
|
__moduleCache.set(from, entry);
|
|
32
48
|
return entry;
|
|
33
49
|
};
|
|
50
|
+
var __moduleCache;
|
|
34
51
|
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
52
|
+
var __returnValue = (v) => v;
|
|
53
|
+
function __exportSetter(name, newValue) {
|
|
54
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
55
|
+
}
|
|
35
56
|
var __export = (target, all) => {
|
|
36
57
|
for (var name in all)
|
|
37
58
|
__defProp(target, name, {
|
|
38
59
|
get: all[name],
|
|
39
60
|
enumerable: true,
|
|
40
61
|
configurable: true,
|
|
41
|
-
set: (
|
|
62
|
+
set: __exportSetter.bind(all, name)
|
|
42
63
|
});
|
|
43
64
|
};
|
|
44
65
|
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
@@ -832,7 +853,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
832
853
|
this._exitCallback = (err) => {
|
|
833
854
|
if (err.code !== "commander.executeSubCommandAsync") {
|
|
834
855
|
throw err;
|
|
835
|
-
}
|
|
856
|
+
}
|
|
836
857
|
};
|
|
837
858
|
}
|
|
838
859
|
return this;
|
|
@@ -3069,7 +3090,7 @@ var require_cell = __commonJS((exports, module) => {
|
|
|
3069
3090
|
let content = utils.truncate(this.content, 10, this.truncate);
|
|
3070
3091
|
if (!lineNum) {
|
|
3071
3092
|
info(`${this.y}-${this.x}: ${this.rowSpan - lineNum}x${this.colSpan} Cell ${content}`);
|
|
3072
|
-
}
|
|
3093
|
+
}
|
|
3073
3094
|
let padLen = Math.max(this.height - this.lines.length, 0);
|
|
3074
3095
|
let padTop;
|
|
3075
3096
|
switch (this.vAlign) {
|
|
@@ -26838,7 +26859,7 @@ var require_node_gyp_build_optional_packages = __commonJS((exports, module) => {
|
|
|
26838
26859
|
|
|
26839
26860
|
// ../../node_modules/.pnpm/msgpackr-extract@3.0.4/node_modules/msgpackr-extract/index.js
|
|
26840
26861
|
var require_msgpackr_extract = __commonJS((exports, module) => {
|
|
26841
|
-
var __dirname = "/Users/
|
|
26862
|
+
var __dirname = "/Users/work/Code/awsless/node_modules/.pnpm/msgpackr-extract@3.0.4/node_modules/msgpackr-extract";
|
|
26842
26863
|
module.exports = require_node_gyp_build_optional_packages()(__dirname);
|
|
26843
26864
|
});
|
|
26844
26865
|
|
|
@@ -39706,7 +39727,7 @@ var require_src3 = __commonJS((exports) => {
|
|
|
39706
39727
|
|
|
39707
39728
|
// ../../node_modules/.pnpm/@grpc+grpc-js@1.12.6/node_modules/@grpc/grpc-js/build/src/channelz.js
|
|
39708
39729
|
var require_channelz = __commonJS((exports) => {
|
|
39709
|
-
var __dirname = "/Users/
|
|
39730
|
+
var __dirname = "/Users/work/Code/awsless/node_modules/.pnpm/@grpc+grpc-js@1.12.6/node_modules/@grpc/grpc-js/build/src";
|
|
39710
39731
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39711
39732
|
exports.registerChannelzSocket = exports.registerChannelzServer = exports.registerChannelzSubchannel = exports.registerChannelzChannel = exports.ChannelzCallTrackerStub = exports.ChannelzCallTracker = exports.ChannelzChildrenTrackerStub = exports.ChannelzChildrenTracker = exports.ChannelzTrace = exports.ChannelzTraceStub = undefined;
|
|
39712
39733
|
exports.unregisterChannelzRef = unregisterChannelzRef;
|
|
@@ -57210,7 +57231,7 @@ var require_zipEntries = __commonJS((exports, module) => {
|
|
|
57210
57231
|
if (this.centralDirRecords !== this.files.length) {
|
|
57211
57232
|
if (this.centralDirRecords !== 0 && this.files.length === 0) {
|
|
57212
57233
|
throw new Error("Corrupted zip or bug: expected " + this.centralDirRecords + " records in central dir, got " + this.files.length);
|
|
57213
|
-
}
|
|
57234
|
+
}
|
|
57214
57235
|
}
|
|
57215
57236
|
},
|
|
57216
57237
|
readEndOfCentral: function() {
|
|
@@ -74431,7 +74452,7 @@ WD9f
|
|
|
74431
74452
|
|
|
74432
74453
|
// ../../node_modules/.pnpm/ioredis@5.10.1_supports-color@8.1.1/node_modules/ioredis/built/utils/index.js
|
|
74433
74454
|
var require_utils5 = __commonJS((exports) => {
|
|
74434
|
-
var __dirname = "/Users/
|
|
74455
|
+
var __dirname = "/Users/work/Code/awsless/node_modules/.pnpm/ioredis@5.10.1_supports-color@8.1.1/node_modules/ioredis/built/utils";
|
|
74435
74456
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
74436
74457
|
exports.noop = exports.defaults = exports.Debug = exports.getPackageMeta = exports.zipMap = exports.CONNECTION_CLOSED_ERROR_MSG = exports.shuffle = exports.sample = exports.resolveTLSProfile = exports.parseURL = exports.optimizeErrorStack = exports.toArg = exports.convertMapToArray = exports.convertObjectToArray = exports.timeout = exports.packObject = exports.isInt = exports.wrapMultiResult = exports.convertBufferToString = undefined;
|
|
74437
74458
|
var fs_1 = __require("fs");
|
|
@@ -74717,7 +74738,7 @@ var require_argumentParsers = __commonJS((exports) => {
|
|
|
74717
74738
|
|
|
74718
74739
|
// ../../node_modules/.pnpm/ioredis@5.10.1_supports-color@8.1.1/node_modules/ioredis/built/Command.js
|
|
74719
74740
|
var require_Command = __commonJS((exports) => {
|
|
74720
|
-
var __dirname = "/Users/
|
|
74741
|
+
var __dirname = "/Users/work/Code/awsless/node_modules/.pnpm/ioredis@5.10.1_supports-color@8.1.1/node_modules/ioredis/built";
|
|
74721
74742
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
74722
74743
|
var commands_1 = require_built();
|
|
74723
74744
|
var calculateSlot = require_lib4();
|
|
@@ -95364,7 +95385,7 @@ var require_db_util = __commonJS((exports) => {
|
|
|
95364
95385
|
|
|
95365
95386
|
// ../../node_modules/.pnpm/redis-memory-server@0.16.1_supports-color@8.1.1/node_modules/redis-memory-server/lib/util/RedisInstance.js
|
|
95366
95387
|
var require_RedisInstance = __commonJS((exports) => {
|
|
95367
|
-
var __dirname = "/Users/
|
|
95388
|
+
var __dirname = "/Users/work/Code/awsless/node_modules/.pnpm/redis-memory-server@0.16.1_supports-color@8.1.1/node_modules/redis-memory-server/lib/util";
|
|
95368
95389
|
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P3, generator) {
|
|
95369
95390
|
function adopt(value) {
|
|
95370
95391
|
return value instanceof P3 ? value : new P3(function(resolve3) {
|
|
@@ -101278,7 +101299,7 @@ var require_unbzip2_stream = __commonJS((exports, module) => {
|
|
|
101278
101299
|
stream2.queue(d5);
|
|
101279
101300
|
if (d5 !== null) {
|
|
101280
101301
|
outlength += d5.length;
|
|
101281
|
-
}
|
|
101302
|
+
}
|
|
101282
101303
|
});
|
|
101283
101304
|
} catch (e4) {
|
|
101284
101305
|
stream2.emit("error", e4);
|
|
@@ -114494,7 +114515,7 @@ var getSanitizedDevTypeScriptVersion = (version2 = "") => {
|
|
|
114494
114515
|
};
|
|
114495
114516
|
|
|
114496
114517
|
// ../../node_modules/.pnpm/@aws-sdk+util-user-agent-node@3.973.14_aws-crt@1.30.0_supports-color@8.1.1_/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptUserAgentPair.js
|
|
114497
|
-
var __dirname = "/Users/
|
|
114518
|
+
var __dirname = "/Users/work/Code/awsless/node_modules/.pnpm/@aws-sdk+util-user-agent-node@3.973.14_aws-crt@1.30.0_supports-color@8.1.1_/node_modules/@aws-sdk/util-user-agent-node/dist-es";
|
|
114498
114519
|
var tscVersion;
|
|
114499
114520
|
var TS_PACKAGE_JSON = join7("node_modules", "typescript", "package.json");
|
|
114500
114521
|
var getTypeScriptUserAgentPair = async () => {
|
|
@@ -131571,6 +131592,17 @@ var $forEachNodeInTopologicalOrder = sort.forEachNodeInTopologicalOrder;
|
|
|
131571
131592
|
var $topologicalSort = sort.topologicalSort;
|
|
131572
131593
|
var $topologicalGenerations = sort.topologicalGenerations;
|
|
131573
131594
|
var $forEachTopologicalGeneration = sort.forEachTopologicalGeneration;
|
|
131595
|
+
// ../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm/sha1.js
|
|
131596
|
+
import { createHash as createHash3 } from "crypto";
|
|
131597
|
+
function sha1(bytes) {
|
|
131598
|
+
if (Array.isArray(bytes)) {
|
|
131599
|
+
bytes = Buffer.from(bytes);
|
|
131600
|
+
} else if (typeof bytes === "string") {
|
|
131601
|
+
bytes = Buffer.from(bytes, "utf8");
|
|
131602
|
+
}
|
|
131603
|
+
return createHash3("sha1").update(bytes).digest();
|
|
131604
|
+
}
|
|
131605
|
+
var sha1_default = sha1;
|
|
131574
131606
|
|
|
131575
131607
|
// ../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm/regex.js
|
|
131576
131608
|
var regex_default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;
|
|
@@ -131636,18 +131668,6 @@ function v35(version2, hash, value, namespace, buf, offset) {
|
|
|
131636
131668
|
return unsafeStringify(bytes);
|
|
131637
131669
|
}
|
|
131638
131670
|
|
|
131639
|
-
// ../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm/sha1.js
|
|
131640
|
-
import { createHash as createHash3 } from "crypto";
|
|
131641
|
-
function sha1(bytes) {
|
|
131642
|
-
if (Array.isArray(bytes)) {
|
|
131643
|
-
bytes = Buffer.from(bytes);
|
|
131644
|
-
} else if (typeof bytes === "string") {
|
|
131645
|
-
bytes = Buffer.from(bytes, "utf8");
|
|
131646
|
-
}
|
|
131647
|
-
return createHash3("sha1").update(bytes).digest();
|
|
131648
|
-
}
|
|
131649
|
-
var sha1_default = sha1;
|
|
131650
|
-
|
|
131651
131671
|
// ../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm/v5.js
|
|
131652
131672
|
function v5(value, namespace, buf, offset) {
|
|
131653
131673
|
return v35(80, sha1_default, value, namespace, buf, offset);
|
|
@@ -141113,8 +141133,6 @@ if (!nativeAccelerationDisabled) {
|
|
|
141113
141133
|
try {
|
|
141114
141134
|
if (true)
|
|
141115
141135
|
extractor = require_msgpackr_extract();
|
|
141116
|
-
else
|
|
141117
|
-
;
|
|
141118
141136
|
if (extractor)
|
|
141119
141137
|
setExtractor(extractor.extractStrings);
|
|
141120
141138
|
} catch (error3) {}
|
|
@@ -158931,14 +158949,10 @@ var searchFeature = defineFeature({
|
|
|
158931
158949
|
await ctx.write("search.d.ts", gen, true);
|
|
158932
158950
|
},
|
|
158933
158951
|
onApp(ctx) {
|
|
158934
|
-
const
|
|
158935
|
-
return Object.
|
|
158936
|
-
stackName: stack.name,
|
|
158937
|
-
id,
|
|
158938
|
-
props: props2
|
|
158939
|
-
}));
|
|
158952
|
+
const hasIndexes = ctx.stackConfigs.some((stack) => {
|
|
158953
|
+
return Object.keys(stack.searchs ?? {}).length > 0;
|
|
158940
158954
|
});
|
|
158941
|
-
if (
|
|
158955
|
+
if (!hasIndexes) {
|
|
158942
158956
|
return;
|
|
158943
158957
|
}
|
|
158944
158958
|
const group4 = new Group(ctx.base, "search", "main");
|
|
@@ -158995,12 +159009,21 @@ var searchFeature = defineFeature({
|
|
|
158995
159009
|
actions: ["es:ESHttp*"],
|
|
158996
159010
|
resources: [openSearch.arn.pipe((arn) => `${arn}/*`)]
|
|
158997
159011
|
});
|
|
158998
|
-
|
|
158999
|
-
|
|
159000
|
-
|
|
159001
|
-
|
|
159002
|
-
|
|
159003
|
-
|
|
159012
|
+
ctx.shared.set("search", "endpoint", openSearch.endpointV2);
|
|
159013
|
+
},
|
|
159014
|
+
onStack(ctx) {
|
|
159015
|
+
const indexes = Object.entries(ctx.stackConfig.searchs ?? {});
|
|
159016
|
+
if (indexes.length === 0) {
|
|
159017
|
+
return;
|
|
159018
|
+
}
|
|
159019
|
+
const endpoint = ctx.shared.get("search", "endpoint");
|
|
159020
|
+
for (const [id, props] of indexes) {
|
|
159021
|
+
const group4 = new Group(ctx.stack, "search", id);
|
|
159022
|
+
new SearchIndex(group4, "index", {
|
|
159023
|
+
endpoint,
|
|
159024
|
+
index: formatSearchIndexName(ctx.stackConfig.name, id),
|
|
159025
|
+
mappings: JSON.stringify(resolveSearchMappings(props) ?? {}),
|
|
159026
|
+
settings: JSON.stringify(props.settings ?? {})
|
|
159004
159027
|
}, {
|
|
159005
159028
|
retainOnDelete: ctx.appConfig.removal === "retain",
|
|
159006
159029
|
replaceOnChanges: ["endpoint", "index"]
|
|
@@ -167643,36 +167666,51 @@ var dashboardHtml = `<!doctype html>
|
|
|
167643
167666
|
<title>awsless dev</title>
|
|
167644
167667
|
<style>
|
|
167645
167668
|
:root {
|
|
167646
|
-
--bg:
|
|
167647
|
-
--panel:
|
|
167648
|
-
--
|
|
167649
|
-
--
|
|
167650
|
-
--
|
|
167669
|
+
--bg: hsl(220 20% 5% / 1);
|
|
167670
|
+
--panel: hsl(220 20% 8%);
|
|
167671
|
+
--hover: hsl(220 20% 12%);
|
|
167672
|
+
--border: hsl(220 18% 15%);
|
|
167673
|
+
--border-strong: hsl(220 16% 22%);
|
|
167674
|
+
--text: #ecedf2;
|
|
167675
|
+
--muted: #8b90a1;
|
|
167651
167676
|
--accent: #ff9000;
|
|
167652
|
-
--good: #
|
|
167653
|
-
--bad: #
|
|
167677
|
+
--good: #3dd68c;
|
|
167678
|
+
--bad: #ff6166;
|
|
167679
|
+
--font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Helvetica, Arial, sans-serif;
|
|
167680
|
+
--font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
|
|
167654
167681
|
font-size: 14px;
|
|
167682
|
+
color-scheme: dark;
|
|
167655
167683
|
}
|
|
167656
167684
|
* { box-sizing: border-box; }
|
|
167685
|
+
::selection { background: rgb(255 144 0 / 25%); }
|
|
167686
|
+
::-webkit-scrollbar { width: 8px; height: 8px; }
|
|
167687
|
+
::-webkit-scrollbar-track { background: transparent; }
|
|
167688
|
+
::-webkit-scrollbar-thumb { background: rgb(255 255 255 / 10%); border-radius: 999px; }
|
|
167689
|
+
::-webkit-scrollbar-thumb:hover { background: rgb(255 255 255 / 18%); }
|
|
167690
|
+
:focus-visible { outline: 2px solid rgb(255 144 0 / 55%); outline-offset: 1px; }
|
|
167657
167691
|
body {
|
|
167658
167692
|
margin: 0;
|
|
167659
|
-
font-family:
|
|
167693
|
+
font-family: var(--font-sans);
|
|
167694
|
+
-webkit-font-smoothing: antialiased;
|
|
167660
167695
|
background: var(--bg);
|
|
167661
167696
|
color: var(--text);
|
|
167662
167697
|
display: grid;
|
|
167663
|
-
grid-template-columns:
|
|
167698
|
+
grid-template-columns: 232px 1fr;
|
|
167664
167699
|
height: 100vh;
|
|
167665
167700
|
}
|
|
167666
|
-
body.with-events { grid-template-columns:
|
|
167701
|
+
body.with-events { grid-template-columns: 232px 1fr 320px; }
|
|
167702
|
+
button { transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
|
|
167703
|
+
input, select, textarea { transition: border-color 0.15s ease, box-shadow 0.15s ease; }
|
|
167667
167704
|
aside {
|
|
167668
167705
|
border-left: 1px solid var(--border);
|
|
167669
167706
|
overflow-y: auto;
|
|
167670
167707
|
padding: 12px;
|
|
167671
167708
|
}
|
|
167672
167709
|
aside h3 {
|
|
167673
|
-
font-size:
|
|
167710
|
+
font-size: 10px;
|
|
167711
|
+
font-weight: 500;
|
|
167674
167712
|
text-transform: uppercase;
|
|
167675
|
-
letter-spacing:
|
|
167713
|
+
letter-spacing: 0.08em;
|
|
167676
167714
|
color: var(--muted);
|
|
167677
167715
|
margin: 8px 8px 12px;
|
|
167678
167716
|
}
|
|
@@ -167680,10 +167718,12 @@ var dashboardHtml = `<!doctype html>
|
|
|
167680
167718
|
border-bottom: 1px solid var(--border);
|
|
167681
167719
|
padding: 8px;
|
|
167682
167720
|
font-size: 12px;
|
|
167721
|
+
font-family: var(--font-mono);
|
|
167683
167722
|
}
|
|
167723
|
+
aside .event:last-child { border-bottom: none; }
|
|
167684
167724
|
aside .event .head { display: flex; gap: 8px; align-items: baseline; }
|
|
167685
167725
|
aside .event .time { color: var(--muted); }
|
|
167686
|
-
aside .event .topic { font-weight:
|
|
167726
|
+
aside .event .topic { font-weight: 600; }
|
|
167687
167727
|
aside .event .type { color: var(--muted); }
|
|
167688
167728
|
aside .event .body {
|
|
167689
167729
|
color: var(--muted);
|
|
@@ -167703,19 +167743,20 @@ var dashboardHtml = `<!doctype html>
|
|
|
167703
167743
|
.logs {
|
|
167704
167744
|
background: var(--panel);
|
|
167705
167745
|
border: 1px solid var(--border);
|
|
167706
|
-
border-radius:
|
|
167707
|
-
padding:
|
|
167746
|
+
border-radius: 10px;
|
|
167747
|
+
padding: 10px 12px;
|
|
167708
167748
|
margin-top: 8px;
|
|
167709
167749
|
max-height: 420px;
|
|
167710
167750
|
overflow-y: auto;
|
|
167711
167751
|
font-size: 12px;
|
|
167752
|
+
font-family: var(--font-mono);
|
|
167712
167753
|
}
|
|
167713
167754
|
.logs .line { display: flex; gap: 8px; padding: 1px 0; }
|
|
167714
167755
|
.logs .time { color: var(--muted); flex-shrink: 0; }
|
|
167715
167756
|
.logs .route { color: var(--accent); word-break: break-all; }
|
|
167716
167757
|
.logs .text { white-space: pre-wrap; word-break: break-word; }
|
|
167717
167758
|
.logs .line.error .text, .logs .entry.error .text { color: var(--bad); }
|
|
167718
|
-
.logs .entry { padding:
|
|
167759
|
+
.logs .entry { padding: 6px 0; }
|
|
167719
167760
|
.logs .entry + .entry, .logs .line + .entry, .logs .entry + .line { border-top: 1px solid var(--border); }
|
|
167720
167761
|
.logs .entry .meta { display: flex; gap: 8px; margin-bottom: 2px; }
|
|
167721
167762
|
/* Every group is its own card, with a shared grid inside: the name
|
|
@@ -167725,8 +167766,8 @@ var dashboardHtml = `<!doctype html>
|
|
|
167725
167766
|
.config-group {
|
|
167726
167767
|
background: var(--panel);
|
|
167727
167768
|
border: 1px solid var(--border);
|
|
167728
|
-
border-radius:
|
|
167729
|
-
padding:
|
|
167769
|
+
border-radius: 10px;
|
|
167770
|
+
padding: 16px 18px;
|
|
167730
167771
|
}
|
|
167731
167772
|
.config-group h3 { margin: 0 0 12px; }
|
|
167732
167773
|
.config-fields {
|
|
@@ -167736,7 +167777,7 @@ var dashboardHtml = `<!doctype html>
|
|
|
167736
167777
|
align-items: center;
|
|
167737
167778
|
}
|
|
167738
167779
|
.config-fields .field { display: contents; }
|
|
167739
|
-
.config-fields .name { color: var(--muted); overflow-wrap: anywhere; }
|
|
167780
|
+
.config-fields .name { color: var(--muted); overflow-wrap: anywhere; font-family: var(--font-mono); font-size: 12.5px; }
|
|
167740
167781
|
.config-fields input {
|
|
167741
167782
|
background: var(--bg);
|
|
167742
167783
|
color: var(--text);
|
|
@@ -167745,17 +167786,23 @@ var dashboardHtml = `<!doctype html>
|
|
|
167745
167786
|
padding: 6px 10px;
|
|
167746
167787
|
font: inherit;
|
|
167747
167788
|
}
|
|
167789
|
+
.config-fields input:hover { border-color: var(--border-strong); }
|
|
167790
|
+
.config-fields input:focus { border-color: #5b6272; box-shadow: 0 0 0 3px rgb(255 255 255 / 14%); outline: none; }
|
|
167748
167791
|
.config-fields input::placeholder { color: var(--muted); }
|
|
167749
167792
|
.groups { display: flex; flex-wrap: wrap; gap: 4px 16px; }
|
|
167750
167793
|
.groups .group { display: flex; align-items: center; gap: 4px; cursor: pointer; }
|
|
167751
167794
|
nav {
|
|
167752
167795
|
border-right: 1px solid var(--border);
|
|
167753
167796
|
overflow-y: auto;
|
|
167754
|
-
padding: 12px;
|
|
167797
|
+
padding: 14px 12px;
|
|
167798
|
+
/* The menu scrolls, but never shows a permanent scrollbar. */
|
|
167799
|
+
scrollbar-width: none;
|
|
167755
167800
|
}
|
|
167801
|
+
nav::-webkit-scrollbar { display: none; }
|
|
167756
167802
|
nav h1 {
|
|
167757
167803
|
font-size: 15px;
|
|
167758
|
-
|
|
167804
|
+
font-family: var(--font-mono);
|
|
167805
|
+
margin: 4px 8px 18px;
|
|
167759
167806
|
cursor: pointer;
|
|
167760
167807
|
}
|
|
167761
167808
|
/* The same two-tone logo as the cli: bold AWS in the brand orange,
|
|
@@ -167765,25 +167812,27 @@ var dashboardHtml = `<!doctype html>
|
|
|
167765
167812
|
nav h1 .cmd { color: var(--muted); font-weight: normal; }
|
|
167766
167813
|
nav h3 {
|
|
167767
167814
|
font-size: 10px;
|
|
167815
|
+
font-weight: 500;
|
|
167768
167816
|
text-transform: uppercase;
|
|
167769
|
-
letter-spacing:
|
|
167817
|
+
letter-spacing: 0.08em;
|
|
167770
167818
|
color: var(--muted);
|
|
167771
|
-
margin:
|
|
167819
|
+
margin: 18px 8px 6px;
|
|
167772
167820
|
}
|
|
167773
167821
|
nav button {
|
|
167774
167822
|
display: flex;
|
|
167775
167823
|
align-items: center;
|
|
167776
|
-
gap:
|
|
167824
|
+
gap: 9px;
|
|
167777
167825
|
width: 100%;
|
|
167778
167826
|
background: none;
|
|
167779
167827
|
border: none;
|
|
167780
|
-
color: var(--
|
|
167828
|
+
color: var(--muted);
|
|
167781
167829
|
font: inherit;
|
|
167830
|
+
font-size: 13.5px;
|
|
167782
167831
|
padding: 6px 8px;
|
|
167783
167832
|
border-radius: 6px;
|
|
167784
167833
|
cursor: pointer;
|
|
167785
167834
|
}
|
|
167786
|
-
nav button .count { margin-left: auto; }
|
|
167835
|
+
nav button .count { margin-left: auto; font-size: 12px; }
|
|
167787
167836
|
nav button.reseed { margin-top: auto; color: var(--muted); }
|
|
167788
167837
|
nav button.reseed:disabled { cursor: default; }
|
|
167789
167838
|
.icon {
|
|
@@ -167792,34 +167841,37 @@ var dashboardHtml = `<!doctype html>
|
|
|
167792
167841
|
flex-shrink: 0;
|
|
167793
167842
|
display: inline-flex;
|
|
167794
167843
|
color: var(--muted);
|
|
167844
|
+
transition: color 0.15s ease;
|
|
167795
167845
|
}
|
|
167796
167846
|
.icon svg { width: 100%; height: 100%; }
|
|
167797
167847
|
nav button.active .icon, .row:hover .icon { color: var(--accent); }
|
|
167798
|
-
main h2 { display: flex; align-items: center; gap:
|
|
167799
|
-
main h2 .icon { width:
|
|
167800
|
-
nav button:hover { background: var(--
|
|
167801
|
-
nav button.active { background: var(--
|
|
167848
|
+
main h2 { display: flex; align-items: center; gap: 9px; }
|
|
167849
|
+
main h2 .icon { width: 18px; height: 18px; }
|
|
167850
|
+
nav button:hover { background: var(--hover); color: var(--text); }
|
|
167851
|
+
nav button.active { background: var(--hover); color: var(--text); }
|
|
167802
167852
|
nav button .count { color: var(--muted); }
|
|
167803
|
-
main { padding:
|
|
167804
|
-
main h2 { margin: 0 0 4px; font-size:
|
|
167805
|
-
main .detail { color: var(--muted); margin-bottom: 16px; word-break: break-all; }
|
|
167853
|
+
main { padding: 24px 28px; overflow-y: auto; }
|
|
167854
|
+
main h2 { margin: 0 0 4px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
|
|
167855
|
+
main .detail { color: var(--muted); margin-bottom: 16px; word-break: break-all; font-size: 13px; }
|
|
167806
167856
|
main .back {
|
|
167807
167857
|
display: inline-block;
|
|
167808
167858
|
background: none;
|
|
167809
167859
|
border: none;
|
|
167810
167860
|
color: var(--muted);
|
|
167811
167861
|
font: inherit;
|
|
167862
|
+
font-size: 13px;
|
|
167812
167863
|
padding: 0;
|
|
167813
167864
|
margin-bottom: 12px;
|
|
167814
167865
|
cursor: pointer;
|
|
167815
167866
|
}
|
|
167816
|
-
main .back:hover { color: var(--
|
|
167867
|
+
main .back:hover { color: var(--text); }
|
|
167817
167868
|
main h3 {
|
|
167818
167869
|
font-size: 11px;
|
|
167870
|
+
font-weight: 500;
|
|
167819
167871
|
text-transform: uppercase;
|
|
167820
|
-
letter-spacing:
|
|
167872
|
+
letter-spacing: 0.08em;
|
|
167821
167873
|
color: var(--muted);
|
|
167822
|
-
margin:
|
|
167874
|
+
margin: 26px 0 8px;
|
|
167823
167875
|
}
|
|
167824
167876
|
.feed .row { cursor: default; }
|
|
167825
167877
|
.feed .empty { padding: 8px; }
|
|
@@ -167832,9 +167884,15 @@ var dashboardHtml = `<!doctype html>
|
|
|
167832
167884
|
padding: 6px 10px;
|
|
167833
167885
|
font: inherit;
|
|
167834
167886
|
}
|
|
167887
|
+
.filters input:hover, .filters select:hover { border-color: var(--border-strong); }
|
|
167888
|
+
.filters input:focus, .filters select:focus {
|
|
167889
|
+
border-color: #5b6272;
|
|
167890
|
+
box-shadow: 0 0 0 3px rgb(255 255 255 / 14%);
|
|
167891
|
+
outline: none;
|
|
167892
|
+
}
|
|
167835
167893
|
.filters input { flex: 1; }
|
|
167836
167894
|
.filters input::placeholder { color: var(--muted); }
|
|
167837
|
-
.filters .count { color: var(--muted); align-self: center; white-space: nowrap; }
|
|
167895
|
+
.filters .count { color: var(--muted); align-self: center; white-space: nowrap; font-size: 13px; }
|
|
167838
167896
|
/* The stack & name columns share one grid across every row, so the
|
|
167839
167897
|
names line up no matter how long each stack name is. */
|
|
167840
167898
|
.rows { display: grid; grid-template-columns: fit-content(280px) 1fr auto; }
|
|
@@ -167848,15 +167906,29 @@ var dashboardHtml = `<!doctype html>
|
|
|
167848
167906
|
text-align: left;
|
|
167849
167907
|
background: none;
|
|
167850
167908
|
border: none;
|
|
167851
|
-
border-bottom: 1px solid var(--border);
|
|
167852
167909
|
color: var(--text);
|
|
167853
167910
|
font: inherit;
|
|
167854
|
-
padding:
|
|
167911
|
+
padding: 9px 10px;
|
|
167855
167912
|
cursor: pointer;
|
|
167913
|
+
border-radius: 8px;
|
|
167914
|
+
position: relative;
|
|
167915
|
+
transition: background 0.15s ease;
|
|
167856
167916
|
}
|
|
167857
|
-
|
|
167917
|
+
/* The separator is its own straight hairline instead of a border,
|
|
167918
|
+
so the rounded hover highlight never bends the line at the ends. */
|
|
167919
|
+
.row::after {
|
|
167920
|
+
content: '';
|
|
167921
|
+
position: absolute;
|
|
167922
|
+
left: 0;
|
|
167923
|
+
right: 0;
|
|
167924
|
+
bottom: 0;
|
|
167925
|
+
height: 1px;
|
|
167926
|
+
background: var(--border);
|
|
167927
|
+
}
|
|
167928
|
+
.row:last-child::after { display: none; }
|
|
167929
|
+
.row:hover { background: var(--hover); }
|
|
167858
167930
|
a.row { text-decoration: none; }
|
|
167859
|
-
.health { display: flex; flex-wrap: wrap; gap: 8px; margin:
|
|
167931
|
+
.health { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
|
|
167860
167932
|
.health .chip {
|
|
167861
167933
|
display: inline-flex;
|
|
167862
167934
|
align-items: center;
|
|
@@ -167866,9 +167938,16 @@ var dashboardHtml = `<!doctype html>
|
|
|
167866
167938
|
border-radius: 999px;
|
|
167867
167939
|
padding: 4px 12px;
|
|
167868
167940
|
font-size: 12px;
|
|
167941
|
+
font-family: var(--font-mono);
|
|
167942
|
+
}
|
|
167943
|
+
.health .dot {
|
|
167944
|
+
width: 7px;
|
|
167945
|
+
height: 7px;
|
|
167946
|
+
border-radius: 50%;
|
|
167947
|
+
background: var(--good);
|
|
167948
|
+
flex-shrink: 0;
|
|
167869
167949
|
}
|
|
167870
|
-
.health .
|
|
167871
|
-
.health .chip.down { border-color: var(--bad); }
|
|
167950
|
+
.health .chip.down { border-color: rgb(255 97 102 / 45%); background: rgb(255 97 102 / 8%); }
|
|
167872
167951
|
.health .chip.down .dot { background: var(--bad); }
|
|
167873
167952
|
.health .chip .detail-text { color: var(--muted); }
|
|
167874
167953
|
.home-cols {
|
|
@@ -167903,23 +167982,26 @@ var dashboardHtml = `<!doctype html>
|
|
|
167903
167982
|
.overlay {
|
|
167904
167983
|
position: fixed;
|
|
167905
167984
|
inset: 0;
|
|
167906
|
-
background: rgb(0 0 0 /
|
|
167985
|
+
background: rgb(0 0 0 / 60%);
|
|
167986
|
+
backdrop-filter: blur(6px);
|
|
167987
|
+
-webkit-backdrop-filter: blur(6px);
|
|
167907
167988
|
display: flex;
|
|
167908
167989
|
align-items: center;
|
|
167909
167990
|
justify-content: center;
|
|
167910
167991
|
z-index: 50;
|
|
167911
167992
|
}
|
|
167912
167993
|
.overlay .modal {
|
|
167913
|
-
background: var(--
|
|
167914
|
-
border: 1px solid var(--border);
|
|
167915
|
-
border-radius:
|
|
167994
|
+
background: var(--panel);
|
|
167995
|
+
border: 1px solid var(--border-strong);
|
|
167996
|
+
border-radius: 12px;
|
|
167997
|
+
box-shadow: 0 12px 48px rgb(0 0 0 / 60%);
|
|
167916
167998
|
width: min(760px, 92vw);
|
|
167917
167999
|
max-height: 82vh;
|
|
167918
168000
|
overflow-y: auto;
|
|
167919
|
-
padding:
|
|
168001
|
+
padding: 18px 22px;
|
|
167920
168002
|
}
|
|
167921
168003
|
.overlay .modal-head { display: flex; align-items: baseline; gap: 10px; }
|
|
167922
|
-
.overlay .modal-head h3 { margin: 0; }
|
|
168004
|
+
.overlay .modal-head h3 { margin: 0; font-family: var(--font-mono); }
|
|
167923
168005
|
.overlay .modal-head .detail { color: var(--muted); font-size: 12px; }
|
|
167924
168006
|
.overlay .modal-head button {
|
|
167925
168007
|
margin-left: auto;
|
|
@@ -167928,8 +168010,10 @@ var dashboardHtml = `<!doctype html>
|
|
|
167928
168010
|
color: var(--muted);
|
|
167929
168011
|
font-size: 16px;
|
|
167930
168012
|
cursor: pointer;
|
|
168013
|
+
border-radius: 6px;
|
|
168014
|
+
padding: 2px 8px;
|
|
167931
168015
|
}
|
|
167932
|
-
.overlay .modal-head button:hover { color: var(--text); }
|
|
168016
|
+
.overlay .modal-head button:hover { color: var(--text); background: var(--hover); }
|
|
167933
168017
|
/* The tree rows reuse the log entry format, the guide marks the
|
|
167934
168018
|
parent-child steps of the chain. */
|
|
167935
168019
|
.trace-tree { max-height: none; }
|
|
@@ -167942,13 +168026,17 @@ var dashboardHtml = `<!doctype html>
|
|
|
167942
168026
|
overflow: hidden;
|
|
167943
168027
|
text-overflow: ellipsis;
|
|
167944
168028
|
white-space: nowrap;
|
|
168029
|
+
font-family: var(--font-mono);
|
|
168030
|
+
font-size: 12.5px;
|
|
167945
168031
|
}
|
|
167946
168032
|
.row .id {
|
|
167947
|
-
font-weight:
|
|
168033
|
+
font-weight: 500;
|
|
167948
168034
|
min-width: 0;
|
|
167949
168035
|
overflow: hidden;
|
|
167950
168036
|
text-overflow: ellipsis;
|
|
167951
168037
|
white-space: nowrap;
|
|
168038
|
+
font-family: var(--font-mono);
|
|
168039
|
+
font-size: 12.5px;
|
|
167952
168040
|
}
|
|
167953
168041
|
.row .info {
|
|
167954
168042
|
color: var(--muted);
|
|
@@ -167957,13 +168045,14 @@ var dashboardHtml = `<!doctype html>
|
|
|
167957
168045
|
text-overflow: ellipsis;
|
|
167958
168046
|
white-space: nowrap;
|
|
167959
168047
|
max-width: 100%;
|
|
168048
|
+
font-size: 12.5px;
|
|
167960
168049
|
}
|
|
167961
168050
|
.email-body {
|
|
167962
168051
|
width: 100%;
|
|
167963
168052
|
min-height: 480px;
|
|
167964
168053
|
background: #fff;
|
|
167965
168054
|
border: 1px solid var(--border);
|
|
167966
|
-
border-radius:
|
|
168055
|
+
border-radius: 10px;
|
|
167967
168056
|
margin-top: 12px;
|
|
167968
168057
|
}
|
|
167969
168058
|
textarea {
|
|
@@ -167972,47 +168061,58 @@ var dashboardHtml = `<!doctype html>
|
|
|
167972
168061
|
background: var(--panel);
|
|
167973
168062
|
color: var(--text);
|
|
167974
168063
|
border: 1px solid var(--border);
|
|
167975
|
-
border-radius:
|
|
167976
|
-
padding:
|
|
167977
|
-
font:
|
|
168064
|
+
border-radius: 10px;
|
|
168065
|
+
padding: 12px;
|
|
168066
|
+
font-family: var(--font-mono);
|
|
168067
|
+
font-size: 12.5px;
|
|
167978
168068
|
resize: vertical;
|
|
167979
168069
|
}
|
|
168070
|
+
textarea:hover { border-color: var(--border-strong); }
|
|
168071
|
+
textarea:focus { border-color: #5b6272; box-shadow: 0 0 0 3px rgb(255 255 255 / 14%); outline: none; }
|
|
167980
168072
|
.actions { margin: 12px 0; display: flex; gap: 8px; align-items: center; }
|
|
167981
|
-
.actions .status { color: var(--muted); }
|
|
168073
|
+
.actions .status { color: var(--muted); font-size: 13px; }
|
|
168074
|
+
/* Action buttons in the x.ai style: white pill primary, outlined
|
|
168075
|
+
ghost secondary. */
|
|
167982
168076
|
button.primary {
|
|
167983
|
-
background:
|
|
167984
|
-
color: #
|
|
168077
|
+
background: #fff;
|
|
168078
|
+
color: #0a0a0a;
|
|
167985
168079
|
border: none;
|
|
167986
|
-
border-radius:
|
|
167987
|
-
padding: 7px
|
|
168080
|
+
border-radius: 999px;
|
|
168081
|
+
padding: 7px 18px;
|
|
167988
168082
|
font: inherit;
|
|
167989
|
-
font-weight:
|
|
168083
|
+
font-weight: 500;
|
|
167990
168084
|
cursor: pointer;
|
|
167991
168085
|
}
|
|
168086
|
+
button.primary:hover { background: #d9d9de; }
|
|
167992
168087
|
button.primary:disabled { opacity: 0.5; cursor: wait; }
|
|
167993
168088
|
button.secondary {
|
|
167994
|
-
background:
|
|
168089
|
+
background: transparent;
|
|
167995
168090
|
color: var(--text);
|
|
167996
|
-
border: 1px solid var(--border);
|
|
167997
|
-
border-radius:
|
|
167998
|
-
padding: 6px
|
|
168091
|
+
border: 1px solid var(--border-strong);
|
|
168092
|
+
border-radius: 999px;
|
|
168093
|
+
padding: 6px 18px;
|
|
167999
168094
|
font: inherit;
|
|
168000
168095
|
cursor: pointer;
|
|
168001
168096
|
}
|
|
168097
|
+
button.secondary:hover { background: var(--hover); border-color: #3d3d44; }
|
|
168002
168098
|
pre.result {
|
|
168003
168099
|
background: var(--panel);
|
|
168004
168100
|
border: 1px solid var(--border);
|
|
168005
|
-
border-radius:
|
|
168006
|
-
padding: 12px;
|
|
168101
|
+
border-radius: 10px;
|
|
168102
|
+
padding: 12px 14px;
|
|
168007
168103
|
overflow-x: auto;
|
|
168008
168104
|
white-space: pre-wrap;
|
|
168009
168105
|
word-break: break-word;
|
|
168106
|
+
font-family: var(--font-mono);
|
|
168107
|
+
font-size: 12.5px;
|
|
168010
168108
|
}
|
|
168011
|
-
pre.result.error { border-color:
|
|
168012
|
-
|
|
168109
|
+
pre.result.error { border-color: rgb(255 97 102 / 45%); color: var(--bad); }
|
|
168110
|
+
/* Tables in the vercel style: horizontal hairlines only, quiet
|
|
168111
|
+
uppercase headers. */
|
|
168112
|
+
table { border-collapse: collapse; width: 100%; font-family: var(--font-mono); font-size: 12.5px; }
|
|
168013
168113
|
th, td {
|
|
168014
|
-
border: 1px solid var(--border);
|
|
168015
|
-
padding:
|
|
168114
|
+
border-bottom: 1px solid var(--border);
|
|
168115
|
+
padding: 8px 12px;
|
|
168016
168116
|
text-align: left;
|
|
168017
168117
|
vertical-align: top;
|
|
168018
168118
|
max-width: 360px;
|
|
@@ -168020,7 +168120,16 @@ var dashboardHtml = `<!doctype html>
|
|
|
168020
168120
|
text-overflow: ellipsis;
|
|
168021
168121
|
white-space: nowrap;
|
|
168022
168122
|
}
|
|
168023
|
-
th {
|
|
168123
|
+
th {
|
|
168124
|
+
color: var(--muted);
|
|
168125
|
+
font-weight: 500;
|
|
168126
|
+
font-family: var(--font-sans);
|
|
168127
|
+
font-size: 11px;
|
|
168128
|
+
text-transform: uppercase;
|
|
168129
|
+
letter-spacing: 0.08em;
|
|
168130
|
+
}
|
|
168131
|
+
tbody tr { transition: background 0.15s ease; }
|
|
168132
|
+
tbody tr:hover { background: var(--hover); }
|
|
168024
168133
|
td:hover { white-space: normal; word-break: break-all; }
|
|
168025
168134
|
.empty { color: var(--muted); }
|
|
168026
168135
|
</style>
|
|
@@ -169371,15 +169480,21 @@ const render = () => {
|
|
|
169371
169480
|
nav.append(reseed)
|
|
169372
169481
|
}
|
|
169373
169482
|
|
|
169483
|
+
// Every view renders into its own container: navigating detaches
|
|
169484
|
+
// the old one, so a slow async panel (like a table scan) finishing
|
|
169485
|
+
// after the switch appends into a dead node instead of the screen.
|
|
169374
169486
|
const main = document.getElementById('main')
|
|
169375
169487
|
main.innerHTML = ''
|
|
169376
169488
|
|
|
169489
|
+
const page = $('div')
|
|
169490
|
+
main.append(page)
|
|
169491
|
+
|
|
169377
169492
|
if (view.resource) {
|
|
169378
|
-
renderResource(
|
|
169493
|
+
renderResource(page)
|
|
169379
169494
|
} else if (view.kind) {
|
|
169380
|
-
renderList(
|
|
169495
|
+
renderList(page)
|
|
169381
169496
|
} else {
|
|
169382
|
-
renderHome(
|
|
169497
|
+
renderHome(page)
|
|
169383
169498
|
}
|
|
169384
169499
|
}
|
|
169385
169500
|
|
|
@@ -178016,7 +178131,7 @@ ${job.error.stack.split(`
|
|
|
178016
178131
|
stream2.shift();
|
|
178017
178132
|
} else if (stream2.length > 0) {
|
|
178018
178133
|
this._BOMseen = true;
|
|
178019
|
-
}
|
|
178134
|
+
}
|
|
178020
178135
|
}
|
|
178021
178136
|
return codePointsToString(stream2);
|
|
178022
178137
|
}
|
package/dist/handlers/icon.js
CHANGED
|
@@ -3,15 +3,29 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
function __accessProp(key) {
|
|
7
|
+
return this[key];
|
|
8
|
+
}
|
|
9
|
+
var __toESMCache_node;
|
|
10
|
+
var __toESMCache_esm;
|
|
6
11
|
var __toESM = (mod, isNodeMode, target) => {
|
|
12
|
+
var canCache = mod != null && typeof mod === "object";
|
|
13
|
+
if (canCache) {
|
|
14
|
+
var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
|
|
15
|
+
var cached = cache.get(mod);
|
|
16
|
+
if (cached)
|
|
17
|
+
return cached;
|
|
18
|
+
}
|
|
7
19
|
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
8
20
|
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
9
21
|
for (let key of __getOwnPropNames(mod))
|
|
10
22
|
if (!__hasOwnProp.call(to, key))
|
|
11
23
|
__defProp(to, key, {
|
|
12
|
-
get: (
|
|
24
|
+
get: __accessProp.bind(mod, key),
|
|
13
25
|
enumerable: true
|
|
14
26
|
});
|
|
27
|
+
if (canCache)
|
|
28
|
+
cache.set(mod, to);
|
|
15
29
|
return to;
|
|
16
30
|
};
|
|
17
31
|
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
@@ -4,15 +4,29 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
function __accessProp(key) {
|
|
8
|
+
return this[key];
|
|
9
|
+
}
|
|
10
|
+
var __toESMCache_node;
|
|
11
|
+
var __toESMCache_esm;
|
|
7
12
|
var __toESM = (mod, isNodeMode, target) => {
|
|
13
|
+
var canCache = mod != null && typeof mod === "object";
|
|
14
|
+
if (canCache) {
|
|
15
|
+
var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
|
|
16
|
+
var cached = cache.get(mod);
|
|
17
|
+
if (cached)
|
|
18
|
+
return cached;
|
|
19
|
+
}
|
|
8
20
|
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
9
21
|
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
10
22
|
for (let key of __getOwnPropNames(mod))
|
|
11
23
|
if (!__hasOwnProp.call(to, key))
|
|
12
24
|
__defProp(to, key, {
|
|
13
|
-
get: (
|
|
25
|
+
get: __accessProp.bind(mod, key),
|
|
14
26
|
enumerable: true
|
|
15
27
|
});
|
|
28
|
+
if (canCache)
|
|
29
|
+
cache.set(mod, to);
|
|
16
30
|
return to;
|
|
17
31
|
};
|
|
18
32
|
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
@@ -4527,7 +4541,7 @@ WD9f
|
|
|
4527
4541
|
|
|
4528
4542
|
// ../../node_modules/.pnpm/ioredis@5.10.1_supports-color@8.1.1/node_modules/ioredis/built/utils/index.js
|
|
4529
4543
|
var require_utils2 = __commonJS((exports) => {
|
|
4530
|
-
var __dirname = "/Users/
|
|
4544
|
+
var __dirname = "/Users/work/Code/awsless/node_modules/.pnpm/ioredis@5.10.1_supports-color@8.1.1/node_modules/ioredis/built/utils";
|
|
4531
4545
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4532
4546
|
exports.noop = exports.defaults = exports.Debug = exports.getPackageMeta = exports.zipMap = exports.CONNECTION_CLOSED_ERROR_MSG = exports.shuffle = exports.sample = exports.resolveTLSProfile = exports.parseURL = exports.optimizeErrorStack = exports.toArg = exports.convertMapToArray = exports.convertObjectToArray = exports.timeout = exports.packObject = exports.isInt = exports.wrapMultiResult = exports.convertBufferToString = undefined;
|
|
4533
4547
|
var fs_1 = __require("fs");
|
|
@@ -4813,7 +4827,7 @@ var require_argumentParsers = __commonJS((exports) => {
|
|
|
4813
4827
|
|
|
4814
4828
|
// ../../node_modules/.pnpm/ioredis@5.10.1_supports-color@8.1.1/node_modules/ioredis/built/Command.js
|
|
4815
4829
|
var require_Command = __commonJS((exports) => {
|
|
4816
|
-
var __dirname = "/Users/
|
|
4830
|
+
var __dirname = "/Users/work/Code/awsless/node_modules/.pnpm/ioredis@5.10.1_supports-color@8.1.1/node_modules/ioredis/built";
|
|
4817
4831
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4818
4832
|
var commands_1 = require_built();
|
|
4819
4833
|
var calculateSlot = require_lib();
|
|
@@ -5,56 +5,78 @@ var __defProp = Object.defineProperty;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
function __accessProp(key) {
|
|
9
|
+
return this[key];
|
|
10
|
+
}
|
|
8
11
|
var __reExport = (target, mod, secondTarget) => {
|
|
9
|
-
|
|
12
|
+
var keys = __getOwnPropNames(mod);
|
|
13
|
+
for (let key of keys)
|
|
10
14
|
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
11
15
|
__defProp(target, key, {
|
|
12
|
-
get: (
|
|
16
|
+
get: __accessProp.bind(mod, key),
|
|
13
17
|
enumerable: true
|
|
14
18
|
});
|
|
15
19
|
if (secondTarget) {
|
|
16
|
-
for (let key of
|
|
20
|
+
for (let key of keys)
|
|
17
21
|
if (!__hasOwnProp.call(secondTarget, key) && key !== "default")
|
|
18
22
|
__defProp(secondTarget, key, {
|
|
19
|
-
get: (
|
|
23
|
+
get: __accessProp.bind(mod, key),
|
|
20
24
|
enumerable: true
|
|
21
25
|
});
|
|
22
26
|
return secondTarget;
|
|
23
27
|
}
|
|
24
28
|
};
|
|
29
|
+
var __toESMCache_node;
|
|
30
|
+
var __toESMCache_esm;
|
|
25
31
|
var __toESM = (mod, isNodeMode, target) => {
|
|
32
|
+
var canCache = mod != null && typeof mod === "object";
|
|
33
|
+
if (canCache) {
|
|
34
|
+
var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
|
|
35
|
+
var cached = cache.get(mod);
|
|
36
|
+
if (cached)
|
|
37
|
+
return cached;
|
|
38
|
+
}
|
|
26
39
|
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
27
40
|
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
28
41
|
for (let key of __getOwnPropNames(mod))
|
|
29
42
|
if (!__hasOwnProp.call(to, key))
|
|
30
43
|
__defProp(to, key, {
|
|
31
|
-
get: (
|
|
44
|
+
get: __accessProp.bind(mod, key),
|
|
32
45
|
enumerable: true
|
|
33
46
|
});
|
|
47
|
+
if (canCache)
|
|
48
|
+
cache.set(mod, to);
|
|
34
49
|
return to;
|
|
35
50
|
};
|
|
36
|
-
var __moduleCache = /* @__PURE__ */ new WeakMap;
|
|
37
51
|
var __toCommonJS = (from) => {
|
|
38
|
-
var entry = __moduleCache.get(from), desc;
|
|
52
|
+
var entry = (__moduleCache ??= new WeakMap).get(from), desc;
|
|
39
53
|
if (entry)
|
|
40
54
|
return entry;
|
|
41
55
|
entry = __defProp({}, "__esModule", { value: true });
|
|
42
|
-
if (from && typeof from === "object" || typeof from === "function")
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
56
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
57
|
+
for (var key of __getOwnPropNames(from))
|
|
58
|
+
if (!__hasOwnProp.call(entry, key))
|
|
59
|
+
__defProp(entry, key, {
|
|
60
|
+
get: __accessProp.bind(from, key),
|
|
61
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
62
|
+
});
|
|
63
|
+
}
|
|
47
64
|
__moduleCache.set(from, entry);
|
|
48
65
|
return entry;
|
|
49
66
|
};
|
|
67
|
+
var __moduleCache;
|
|
50
68
|
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
69
|
+
var __returnValue = (v) => v;
|
|
70
|
+
function __exportSetter(name, newValue) {
|
|
71
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
72
|
+
}
|
|
51
73
|
var __export = (target, all) => {
|
|
52
74
|
for (var name in all)
|
|
53
75
|
__defProp(target, name, {
|
|
54
76
|
get: all[name],
|
|
55
77
|
enumerable: true,
|
|
56
78
|
configurable: true,
|
|
57
|
-
set: (
|
|
79
|
+
set: __exportSetter.bind(all, name)
|
|
58
80
|
});
|
|
59
81
|
};
|
|
60
82
|
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
@@ -26611,9 +26633,9 @@ var init_getSanitizedDevTypeScriptVersion = __esm(() => {
|
|
|
26611
26633
|
});
|
|
26612
26634
|
|
|
26613
26635
|
// ../../node_modules/.pnpm/@aws-sdk+util-user-agent-node@3.973.14_aws-crt@1.30.0_supports-color@8.1.1_/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptUserAgentPair.js
|
|
26614
|
-
import { readFile as
|
|
26636
|
+
import { readFile as readFile4 } from "fs/promises";
|
|
26615
26637
|
import { join as join5 } from "path";
|
|
26616
|
-
var __dirname = "/Users/
|
|
26638
|
+
var __dirname = "/Users/work/Code/awsless/node_modules/.pnpm/@aws-sdk+util-user-agent-node@3.973.14_aws-crt@1.30.0_supports-color@8.1.1_/node_modules/@aws-sdk/util-user-agent-node/dist-es", tscVersion, TS_PACKAGE_JSON, getTypeScriptUserAgentPair = async () => {
|
|
26617
26639
|
if (tscVersion === null) {
|
|
26618
26640
|
return;
|
|
26619
26641
|
} else if (typeof tscVersion === "string") {
|
|
@@ -26633,7 +26655,7 @@ var __dirname = "/Users/ivandasilveira/Sites/@awsless/node_modules/.pnpm/@aws-sd
|
|
|
26633
26655
|
for (const nodeModulesParentDir of nodeModulesParentDirs) {
|
|
26634
26656
|
try {
|
|
26635
26657
|
const appPackageJsonPath = join5(nodeModulesParentDir, "package.json");
|
|
26636
|
-
const packageJson = await
|
|
26658
|
+
const packageJson = await readFile4(appPackageJsonPath, "utf-8");
|
|
26637
26659
|
const { dependencies, devDependencies } = JSON.parse(packageJson);
|
|
26638
26660
|
const version2 = devDependencies?.typescript ?? dependencies?.typescript;
|
|
26639
26661
|
if (typeof version2 !== "string") {
|
|
@@ -26651,7 +26673,7 @@ var __dirname = "/Users/ivandasilveira/Sites/@awsless/node_modules/.pnpm/@aws-sd
|
|
|
26651
26673
|
for (const nodeModulesParentDir of nodeModulesParentDirs) {
|
|
26652
26674
|
try {
|
|
26653
26675
|
const tsPackageJsonPath = join5(nodeModulesParentDir, TS_PACKAGE_JSON);
|
|
26654
|
-
const packageJson = await
|
|
26676
|
+
const packageJson = await readFile4(tsPackageJsonPath, "utf-8");
|
|
26655
26677
|
const { version: version2 } = JSON.parse(packageJson);
|
|
26656
26678
|
const sanitizedVersion2 = getSanitizedTypeScriptVersion(version2);
|
|
26657
26679
|
if (typeof sanitizedVersion2 !== "string") {
|
|
@@ -37023,7 +37045,7 @@ ${job.error.stack.split(`
|
|
|
37023
37045
|
stream2.shift();
|
|
37024
37046
|
} else if (stream2.length > 0) {
|
|
37025
37047
|
this._BOMseen = true;
|
|
37026
|
-
}
|
|
37048
|
+
}
|
|
37027
37049
|
}
|
|
37028
37050
|
return codePointsToString(stream2);
|
|
37029
37051
|
}
|
|
@@ -937715,8 +937737,8 @@ GFS4: `);
|
|
|
937715
937737
|
fs4.createReadStream = createReadStream;
|
|
937716
937738
|
fs4.createWriteStream = createWriteStream;
|
|
937717
937739
|
var fs$readFile = fs4.readFile;
|
|
937718
|
-
fs4.readFile =
|
|
937719
|
-
function
|
|
937740
|
+
fs4.readFile = readFile5;
|
|
937741
|
+
function readFile5(path, options, cb) {
|
|
937720
937742
|
if (typeof options === "function")
|
|
937721
937743
|
cb = options, options = null;
|
|
937722
937744
|
return go$readFile(path, options, cb);
|
|
@@ -945836,7 +945858,7 @@ var require_unbzip2_stream = __commonJS((exports, module) => {
|
|
|
945836
945858
|
stream2.queue(d4);
|
|
945837
945859
|
if (d4 !== null) {
|
|
945838
945860
|
outlength += d4.length;
|
|
945839
|
-
}
|
|
945861
|
+
}
|
|
945840
945862
|
});
|
|
945841
945863
|
} catch (e5) {
|
|
945842
945864
|
stream2.emit("error", e5);
|
|
@@ -955604,7 +955626,7 @@ var require_spawn = __commonJS((exports) => {
|
|
|
955604
955626
|
|
|
955605
955627
|
// ../../node_modules/.pnpm/dynamo-db-local@10.3.0/node_modules/dynamo-db-local/build/node/module.js
|
|
955606
955628
|
var require_module = __commonJS((exports) => {
|
|
955607
|
-
var __dirname = "/Users/
|
|
955629
|
+
var __dirname = "/Users/work/Code/awsless/node_modules/.pnpm/dynamo-db-local@10.3.0/node_modules/dynamo-db-local/build/node";
|
|
955608
955630
|
Object.defineProperty(exports, "__esModule", {
|
|
955609
955631
|
value: true
|
|
955610
955632
|
});
|
|
@@ -981532,7 +981554,7 @@ WD9f
|
|
|
981532
981554
|
|
|
981533
981555
|
// ../../node_modules/.pnpm/ioredis@5.10.1_supports-color@8.1.1/node_modules/ioredis/built/utils/index.js
|
|
981534
981556
|
var require_utils4 = __commonJS((exports) => {
|
|
981535
|
-
var __dirname = "/Users/
|
|
981557
|
+
var __dirname = "/Users/work/Code/awsless/node_modules/.pnpm/ioredis@5.10.1_supports-color@8.1.1/node_modules/ioredis/built/utils";
|
|
981536
981558
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
981537
981559
|
exports.noop = exports.defaults = exports.Debug = exports.getPackageMeta = exports.zipMap = exports.CONNECTION_CLOSED_ERROR_MSG = exports.shuffle = exports.sample = exports.resolveTLSProfile = exports.parseURL = exports.optimizeErrorStack = exports.toArg = exports.convertMapToArray = exports.convertObjectToArray = exports.timeout = exports.packObject = exports.isInt = exports.wrapMultiResult = exports.convertBufferToString = undefined;
|
|
981538
981560
|
var fs_1 = __require("fs");
|
|
@@ -981818,7 +981840,7 @@ var require_argumentParsers = __commonJS((exports) => {
|
|
|
981818
981840
|
|
|
981819
981841
|
// ../../node_modules/.pnpm/ioredis@5.10.1_supports-color@8.1.1/node_modules/ioredis/built/Command.js
|
|
981820
981842
|
var require_Command = __commonJS((exports) => {
|
|
981821
|
-
var __dirname = "/Users/
|
|
981843
|
+
var __dirname = "/Users/work/Code/awsless/node_modules/.pnpm/ioredis@5.10.1_supports-color@8.1.1/node_modules/ioredis/built";
|
|
981822
981844
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
981823
981845
|
var commands_1 = require_built();
|
|
981824
981846
|
var calculateSlot = require_lib3();
|
|
@@ -1001183,7 +1001205,7 @@ var require_db_util = __commonJS((exports) => {
|
|
|
1001183
1001205
|
|
|
1001184
1001206
|
// ../../node_modules/.pnpm/redis-memory-server@0.16.1_supports-color@8.1.1/node_modules/redis-memory-server/lib/util/RedisInstance.js
|
|
1001185
1001207
|
var require_RedisInstance = __commonJS((exports) => {
|
|
1001186
|
-
var __dirname = "/Users/
|
|
1001208
|
+
var __dirname = "/Users/work/Code/awsless/node_modules/.pnpm/redis-memory-server@0.16.1_supports-color@8.1.1/node_modules/redis-memory-server/lib/util";
|
|
1001187
1001209
|
var __awaiter2 = exports && exports.__awaiter || function(thisArg, _arguments, P4, generator) {
|
|
1001188
1001210
|
function adopt(value) {
|
|
1001189
1001211
|
return value instanceof P4 ? value : new P4(function(resolve) {
|
|
@@ -1015614,7 +1015636,7 @@ ${job.error.stack.split(`
|
|
|
1015614
1015636
|
stream3.shift();
|
|
1015615
1015637
|
} else if (stream3.length > 0) {
|
|
1015616
1015638
|
this._BOMseen = true;
|
|
1015617
|
-
}
|
|
1015639
|
+
}
|
|
1015618
1015640
|
}
|
|
1015619
1015641
|
return codePointsToString(stream3);
|
|
1015620
1015642
|
}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __returnValue = (v) => v;
|
|
4
|
+
function __exportSetter(name, newValue) {
|
|
5
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
6
|
+
}
|
|
3
7
|
var __export = (target, all) => {
|
|
4
8
|
for (var name in all)
|
|
5
9
|
__defProp(target, name, {
|
|
6
10
|
get: all[name],
|
|
7
11
|
enumerable: true,
|
|
8
12
|
configurable: true,
|
|
9
|
-
set: (
|
|
13
|
+
set: __exportSetter.bind(all, name)
|
|
10
14
|
});
|
|
11
15
|
};
|
|
12
16
|
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awsless/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.14",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"@opensearch-project/opensearch": "^2.13.0",
|
|
39
39
|
"rolldown": "1.2.1",
|
|
40
40
|
"vitest": "4.1.10",
|
|
41
|
-
"@awsless/
|
|
42
|
-
"@awsless/
|
|
41
|
+
"@awsless/dynamodb-server": "^0.1.10",
|
|
42
|
+
"@awsless/ts-file-cache": "^0.0.16"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@awsless/big-float": "^0.1.7",
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
"@awsless/dynamodb": "^0.3.25",
|
|
48
48
|
"@awsless/json": "^0.0.11",
|
|
49
49
|
"@awsless/lambda": "^0.0.48",
|
|
50
|
-
"@awsless/s3": "^0.0.22",
|
|
51
50
|
"@awsless/validate": "^0.2.0",
|
|
51
|
+
"@awsless/weak-cache": "^0.0.1",
|
|
52
52
|
"awsless": "^0.1.4",
|
|
53
|
-
"@awsless/
|
|
53
|
+
"@awsless/s3": "^0.0.22"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@aws-sdk/client-cloudformation": "^3.369.0",
|
|
@@ -108,25 +108,25 @@
|
|
|
108
108
|
"zip-a-folder": "^3.1.6",
|
|
109
109
|
"zod": "^3.24.2",
|
|
110
110
|
"zod-to-json-schema": "^3.24.3",
|
|
111
|
-
"@awsless/big-float": "^0.1.7",
|
|
112
111
|
"@awsless/cloudwatch": "^0.0.1",
|
|
112
|
+
"@awsless/big-float": "^0.1.7",
|
|
113
|
+
"@awsless/clui": "^0.0.9",
|
|
113
114
|
"@awsless/duration": "^0.0.4",
|
|
114
|
-
"@awsless/json": "^0.0.11",
|
|
115
115
|
"@awsless/dynamodb": "^0.3.25",
|
|
116
116
|
"@awsless/iot": "^0.0.5",
|
|
117
|
-
"@awsless/
|
|
117
|
+
"@awsless/json": "^0.0.11",
|
|
118
|
+
"@awsless/lambda": "^0.0.48",
|
|
118
119
|
"@awsless/open-search": "^0.0.28",
|
|
120
|
+
"@awsless/redis": "^0.1.13",
|
|
121
|
+
"@awsless/s3": "^0.0.22",
|
|
119
122
|
"@awsless/scheduler": "^0.0.5",
|
|
120
123
|
"@awsless/size": "^0.0.2",
|
|
121
124
|
"@awsless/sns": "^0.0.11",
|
|
122
|
-
"@awsless/validate": "^0.2.0",
|
|
123
|
-
"@awsless/redis": "^0.1.13",
|
|
124
|
-
"@awsless/sqs": "^0.0.24",
|
|
125
|
-
"@awsless/lambda": "^0.0.48",
|
|
126
125
|
"@awsless/ssm": "^0.0.8",
|
|
127
126
|
"@awsless/weak-cache": "^0.0.1",
|
|
127
|
+
"@awsless/sqs": "^0.0.24",
|
|
128
128
|
"awsless": "^0.1.4",
|
|
129
|
-
"@awsless/
|
|
129
|
+
"@awsless/validate": "^0.2.0"
|
|
130
130
|
},
|
|
131
131
|
"scripts": {
|
|
132
132
|
"test": "bun cli/build-handlers.ts && pnpm vitest",
|