@cortexkit/opencode-antigravity-auth 3.0.20 → 3.0.21
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/cli.js +75 -32
- package/dist/cli.js.map +3 -3
- package/dist/cli.meta.json +31 -11
- package/dist/index.js +75 -32
- package/dist/index.js.map +3 -3
- package/dist/index.meta.json +31 -11
- package/dist/server.js +75 -32
- package/dist/server.js.map +3 -3
- package/dist/server.meta.json +1 -1
- package/dist/src/common-auth-embedded/claustrum/custody.js +25 -0
- package/dist/src/common-auth-embedded/claustrum/hub.js +20 -1
- package/dist/src/common-auth-embedded/claustrum/insula.js +6 -0
- package/dist/src/common-auth-embedded/quota-sidebar/index.d.ts +86 -0
- package/dist/src/common-auth-embedded/quota-sidebar/index.tsx +630 -0
- package/dist/src/common-auth-embedded/source-output.json +37 -17
- package/dist/src/ga/tui/host-ga.d.ts.map +1 -1
- package/dist/src/ga/tui/host-ga.js +2 -2
- package/dist/src/ga/tui/host-ga.js.map +1 -1
- package/dist/src/plugin/__fixtures__/verified-store.js +2 -2
- package/dist/src/tui/quota-layout.d.ts +4 -58
- package/dist/src/tui/quota-layout.d.ts.map +1 -1
- package/dist/src/tui/quota-layout.js +4 -90
- package/dist/src/tui/quota-layout.js.map +1 -1
- package/dist/src/tui/sidebar-frame.d.ts +4 -34
- package/dist/src/tui/sidebar-frame.d.ts.map +1 -1
- package/dist/src/tui/sidebar-frame.js +91 -167
- package/dist/src/tui/sidebar-frame.js.map +1 -1
- package/dist/src/tui.js +2 -2
- package/dist/src/tui.js.map +1 -1
- package/dist/tui-build-map.json +27 -13
- package/dist/tui-ga-build-map.json +28 -13
- package/package.json +2 -2
- package/src/common-auth-embedded/claustrum/custody.js +25 -0
- package/src/common-auth-embedded/claustrum/hub.js +20 -1
- package/src/common-auth-embedded/claustrum/insula.js +6 -0
- package/src/common-auth-embedded/quota-sidebar/index.d.ts +86 -0
- package/src/common-auth-embedded/quota-sidebar/index.tsx +630 -0
- package/src/common-auth-embedded/source-output.json +37 -17
- package/src/tui-compiled/common-auth-embedded/quota-sidebar/index.js +666 -0
- package/src/tui-compiled/tui/quota-layout.js +5 -330
- package/src/tui-compiled/tui/sidebar-frame.js +241 -466
- package/src/tui-compiled/tui.js +2 -2
- package/src/tui-ga-compiled/host-ga.js +2 -2
- package/src/tui-ga-compiled/shared/ced204104a639c9c-sidebar-frame.js +241 -466
- package/src/tui-ga-compiled/shared/dd4c9e1a907f8ef0-quota-layout.js +5 -330
- package/src/tui-ga-compiled/shared/e4ec36f367492969-index.js +666 -0
- package/src/tui-ga-raw/host-ga.tsx +2 -2
- package/src/tui-ga-raw/shared/ced204104a639c9c-sidebar-frame.tsx +211 -399
- package/src/tui-ga-raw/shared/dd4c9e1a907f8ef0-quota-layout.tsx +10 -301
- package/src/tui-ga-raw/shared/e4ec36f367492969-index.tsx +630 -0
- package/src/tui-raw/common-auth-embedded/quota-sidebar/index.tsx +630 -0
- package/src/tui-raw/tui/quota-layout.tsx +10 -301
- package/src/tui-raw/tui/sidebar-frame.tsx +211 -399
- package/src/tui-raw/tui.tsx +2 -2
- package/src/tui.tsx +2 -2
package/dist/cli.meta.json
CHANGED
|
@@ -1742,7 +1742,7 @@
|
|
|
1742
1742
|
"format": "esm"
|
|
1743
1743
|
},
|
|
1744
1744
|
"../core/dist/common-auth-embedded/claustrum/insula.js": {
|
|
1745
|
-
"bytes":
|
|
1745
|
+
"bytes": 20137,
|
|
1746
1746
|
"imports": [
|
|
1747
1747
|
{
|
|
1748
1748
|
"path": "node:path",
|
|
@@ -1845,8 +1845,13 @@
|
|
|
1845
1845
|
"format": "esm"
|
|
1846
1846
|
},
|
|
1847
1847
|
"../core/dist/common-auth-embedded/claustrum/custody.js": {
|
|
1848
|
-
"bytes":
|
|
1848
|
+
"bytes": 31616,
|
|
1849
1849
|
"imports": [
|
|
1850
|
+
{
|
|
1851
|
+
"path": "node:diagnostics_channel",
|
|
1852
|
+
"kind": "import-statement",
|
|
1853
|
+
"external": true
|
|
1854
|
+
},
|
|
1850
1855
|
{
|
|
1851
1856
|
"path": "@cortexkit/claustrum-client",
|
|
1852
1857
|
"kind": "import-statement",
|
|
@@ -2054,13 +2059,18 @@
|
|
|
2054
2059
|
"format": "esm"
|
|
2055
2060
|
},
|
|
2056
2061
|
"../core/dist/common-auth-embedded/claustrum/hub.js": {
|
|
2057
|
-
"bytes":
|
|
2062
|
+
"bytes": 45993,
|
|
2058
2063
|
"imports": [
|
|
2059
2064
|
{
|
|
2060
2065
|
"path": "node:crypto",
|
|
2061
2066
|
"kind": "import-statement",
|
|
2062
2067
|
"external": true
|
|
2063
2068
|
},
|
|
2069
|
+
{
|
|
2070
|
+
"path": "node:diagnostics_channel",
|
|
2071
|
+
"kind": "import-statement",
|
|
2072
|
+
"external": true
|
|
2073
|
+
},
|
|
2064
2074
|
{
|
|
2065
2075
|
"path": "node:fs/promises",
|
|
2066
2076
|
"kind": "import-statement",
|
|
@@ -4305,7 +4315,7 @@
|
|
|
4305
4315
|
"imports": [],
|
|
4306
4316
|
"exports": [],
|
|
4307
4317
|
"inputs": {},
|
|
4308
|
-
"bytes":
|
|
4318
|
+
"bytes": 3154877
|
|
4309
4319
|
},
|
|
4310
4320
|
"dist/cli.js": {
|
|
4311
4321
|
"imports": [
|
|
@@ -4584,6 +4594,11 @@
|
|
|
4584
4594
|
"kind": "import-statement",
|
|
4585
4595
|
"external": true
|
|
4586
4596
|
},
|
|
4597
|
+
{
|
|
4598
|
+
"path": "node:diagnostics_channel",
|
|
4599
|
+
"kind": "import-statement",
|
|
4600
|
+
"external": true
|
|
4601
|
+
},
|
|
4587
4602
|
{
|
|
4588
4603
|
"path": "@cortexkit/claustrum-client",
|
|
4589
4604
|
"kind": "import-statement",
|
|
@@ -4614,6 +4629,11 @@
|
|
|
4614
4629
|
"kind": "import-statement",
|
|
4615
4630
|
"external": true
|
|
4616
4631
|
},
|
|
4632
|
+
{
|
|
4633
|
+
"path": "node:diagnostics_channel",
|
|
4634
|
+
"kind": "import-statement",
|
|
4635
|
+
"external": true
|
|
4636
|
+
},
|
|
4617
4637
|
{
|
|
4618
4638
|
"path": "node:fs/promises",
|
|
4619
4639
|
"kind": "import-statement",
|
|
@@ -5217,7 +5237,7 @@
|
|
|
5217
5237
|
"bytesInOutput": 2906
|
|
5218
5238
|
},
|
|
5219
5239
|
"../core/dist/common-auth-embedded/logger/engine.js": {
|
|
5220
|
-
"bytesInOutput":
|
|
5240
|
+
"bytesInOutput": 8863
|
|
5221
5241
|
},
|
|
5222
5242
|
"../core/dist/common-auth-embedded/logger/index.js": {
|
|
5223
5243
|
"bytesInOutput": 646
|
|
@@ -5322,7 +5342,7 @@
|
|
|
5322
5342
|
"bytesInOutput": 6693
|
|
5323
5343
|
},
|
|
5324
5344
|
"../core/dist/common-auth-embedded/claustrum/insula.js": {
|
|
5325
|
-
"bytesInOutput":
|
|
5345
|
+
"bytesInOutput": 14939
|
|
5326
5346
|
},
|
|
5327
5347
|
"../core/dist/common-auth-embedded/util/any-signal.js": {
|
|
5328
5348
|
"bytesInOutput": 1146
|
|
@@ -5337,7 +5357,7 @@
|
|
|
5337
5357
|
"bytesInOutput": 970
|
|
5338
5358
|
},
|
|
5339
5359
|
"../core/dist/common-auth-embedded/claustrum/custody.js": {
|
|
5340
|
-
"bytesInOutput":
|
|
5360
|
+
"bytesInOutput": 26854
|
|
5341
5361
|
},
|
|
5342
5362
|
"../core/dist/common-auth-embedded/quota/pending.js": {
|
|
5343
5363
|
"bytesInOutput": 1682
|
|
@@ -5355,7 +5375,7 @@
|
|
|
5355
5375
|
"bytesInOutput": 33679
|
|
5356
5376
|
},
|
|
5357
5377
|
"../core/dist/common-auth-embedded/claustrum/hub.js": {
|
|
5358
|
-
"bytesInOutput":
|
|
5378
|
+
"bytesInOutput": 38584
|
|
5359
5379
|
},
|
|
5360
5380
|
"../core/dist/common-auth-embedded/claustrum/index.js": {
|
|
5361
5381
|
"bytesInOutput": 4669
|
|
@@ -5442,7 +5462,7 @@
|
|
|
5442
5462
|
"bytesInOutput": 2923
|
|
5443
5463
|
},
|
|
5444
5464
|
"src/common-auth-embedded/logger/engine.js": {
|
|
5445
|
-
"bytesInOutput":
|
|
5465
|
+
"bytesInOutput": 8385
|
|
5446
5466
|
},
|
|
5447
5467
|
"src/common-auth-embedded/logger/index.js": {
|
|
5448
5468
|
"bytesInOutput": 168
|
|
@@ -5481,7 +5501,7 @@
|
|
|
5481
5501
|
"bytesInOutput": 14132
|
|
5482
5502
|
},
|
|
5483
5503
|
"src/plugin/logger.ts": {
|
|
5484
|
-
"bytesInOutput":
|
|
5504
|
+
"bytesInOutput": 3416
|
|
5485
5505
|
},
|
|
5486
5506
|
"src/cli.ts": {
|
|
5487
5507
|
"bytesInOutput": 23209
|
|
@@ -5607,7 +5627,7 @@
|
|
|
5607
5627
|
"bytesInOutput": 1955
|
|
5608
5628
|
}
|
|
5609
5629
|
},
|
|
5610
|
-
"bytes":
|
|
5630
|
+
"bytes": 1184003
|
|
5611
5631
|
}
|
|
5612
5632
|
}
|
|
5613
5633
|
}
|
package/dist/index.js
CHANGED
|
@@ -16361,7 +16361,7 @@ function createEngine(options) {
|
|
|
16361
16361
|
});
|
|
16362
16362
|
}, 500);
|
|
16363
16363
|
}
|
|
16364
|
-
function emit(
|
|
16364
|
+
function emit(channel3, level, message, data) {
|
|
16365
16365
|
if (logFileSource === void 0 && captureSink === void 0)
|
|
16366
16366
|
return;
|
|
16367
16367
|
try {
|
|
@@ -16374,10 +16374,10 @@ function createEngine(options) {
|
|
|
16374
16374
|
} catch {
|
|
16375
16375
|
scrubbedData = "[unserializable]";
|
|
16376
16376
|
}
|
|
16377
|
-
const line = `[${(/* @__PURE__ */ new Date()).toISOString()}] ${level.toUpperCase()} [${
|
|
16377
|
+
const line = `[${(/* @__PURE__ */ new Date()).toISOString()}] ${level.toUpperCase()} [${channel3}] ${scrubbedMessage}` + (data === void 0 ? "" : safeSerialize(scrubbedData)) + "\n";
|
|
16378
16378
|
try {
|
|
16379
16379
|
captureSink?.({
|
|
16380
|
-
channel,
|
|
16380
|
+
channel: channel3,
|
|
16381
16381
|
level,
|
|
16382
16382
|
message: scrubbedMessage,
|
|
16383
16383
|
data: scrubbedData
|
|
@@ -16397,13 +16397,13 @@ function createEngine(options) {
|
|
|
16397
16397
|
} catch {
|
|
16398
16398
|
}
|
|
16399
16399
|
}
|
|
16400
|
-
function createLogger5(
|
|
16400
|
+
function createLogger5(channel3) {
|
|
16401
16401
|
return {
|
|
16402
|
-
error: (m, d) => emit(
|
|
16403
|
-
warn: (m, d) => emit(
|
|
16404
|
-
info: (m, d) => emit(
|
|
16405
|
-
debug: (m, d) => emit(
|
|
16406
|
-
trace: (m, d) => emit(
|
|
16402
|
+
error: (m, d) => emit(channel3, "error", m, d),
|
|
16403
|
+
warn: (m, d) => emit(channel3, "warn", m, d),
|
|
16404
|
+
info: (m, d) => emit(channel3, "info", m, d),
|
|
16405
|
+
debug: (m, d) => emit(channel3, "debug", m, d),
|
|
16406
|
+
trace: (m, d) => emit(channel3, "trace", m, d)
|
|
16407
16407
|
};
|
|
16408
16408
|
}
|
|
16409
16409
|
function reset() {
|
|
@@ -16441,8 +16441,8 @@ function setLogLevel(l) {
|
|
|
16441
16441
|
function flushLogs() {
|
|
16442
16442
|
return defaultEngine.flushLogs();
|
|
16443
16443
|
}
|
|
16444
|
-
function createLogger2(
|
|
16445
|
-
return defaultEngine.createLogger(
|
|
16444
|
+
function createLogger2(channel3) {
|
|
16445
|
+
return defaultEngine.createLogger(channel3);
|
|
16446
16446
|
}
|
|
16447
16447
|
async function flushForTest() {
|
|
16448
16448
|
return defaultEngine.flushLogs();
|
|
@@ -20650,6 +20650,8 @@ var init_insula = __esm({
|
|
|
20650
20650
|
...typeof entry.source === "string" && { source: entry.source }
|
|
20651
20651
|
}
|
|
20652
20652
|
};
|
|
20653
|
+
if (entry.stale !== void 0 && (!record2(entry.stale) || entry.stale.class !== "local_source_unavailable"))
|
|
20654
|
+
return { miss: "upstream-failed", reading };
|
|
20653
20655
|
return now >= fetchedAt + MAX_AGE || entry.stale !== void 0 ? { miss: "stale", reading } : { reading };
|
|
20654
20656
|
}
|
|
20655
20657
|
if (this.#completeProviders.has(provider2))
|
|
@@ -21492,6 +21494,7 @@ var init_shutdown = __esm({
|
|
|
21492
21494
|
});
|
|
21493
21495
|
|
|
21494
21496
|
// ../core/dist/common-auth-embedded/claustrum/custody.js
|
|
21497
|
+
import { channel } from "node:diagnostics_channel";
|
|
21495
21498
|
import { ClaustrumCredentialError as ClaustrumCredentialError3 } from "@cortexkit/claustrum-client";
|
|
21496
21499
|
function isScopedCredentialRotation(served, current) {
|
|
21497
21500
|
return current !== void 0 && !current.fromKeptReceipt && !served.fromKeptReceipt && current.credentialId === served.credentialId && current.accountIdentity === served.accountIdentity && current.recordVersion !== served.recordVersion;
|
|
@@ -21605,7 +21608,7 @@ function grantReachOf(listed) {
|
|
|
21605
21608
|
tuples: Object.freeze(grantTuples.map(({ selectorKind, selector, operation }) => Object.freeze({ selectorKind, selector, operation })))
|
|
21606
21609
|
});
|
|
21607
21610
|
}
|
|
21608
|
-
var defaultLogger, SERVING_MARGIN_MS, KEPT_RECEIPT_MARGIN_MS, ClaustrumScopedCustody;
|
|
21611
|
+
var defaultLogger, phaseDiagnostics, SERVING_MARGIN_MS, KEPT_RECEIPT_MARGIN_MS, ClaustrumScopedCustody;
|
|
21609
21612
|
var init_custody = __esm({
|
|
21610
21613
|
"../core/dist/common-auth-embedded/claustrum/custody.js"() {
|
|
21611
21614
|
"use strict";
|
|
@@ -21617,6 +21620,7 @@ var init_custody = __esm({
|
|
|
21617
21620
|
init_shutdown();
|
|
21618
21621
|
init_watch();
|
|
21619
21622
|
defaultLogger = createLogger2("claustrum");
|
|
21623
|
+
phaseDiagnostics = channel("common-auth.claustrum.phases");
|
|
21620
21624
|
SERVING_MARGIN_MS = 3e5;
|
|
21621
21625
|
KEPT_RECEIPT_MARGIN_MS = 6e4;
|
|
21622
21626
|
ClaustrumScopedCustody = class {
|
|
@@ -21720,6 +21724,11 @@ var init_custody = __esm({
|
|
|
21720
21724
|
}
|
|
21721
21725
|
async #token(signal) {
|
|
21722
21726
|
this.#check(signal);
|
|
21727
|
+
if (phaseDiagnostics.hasSubscribers)
|
|
21728
|
+
phaseDiagnostics.publish({
|
|
21729
|
+
logger: this.#logger,
|
|
21730
|
+
phase: "token read begin"
|
|
21731
|
+
});
|
|
21723
21732
|
const pending = this.#readToken();
|
|
21724
21733
|
this.#tokenReads.add(pending);
|
|
21725
21734
|
let value;
|
|
@@ -21727,6 +21736,11 @@ var init_custody = __esm({
|
|
|
21727
21736
|
value = await pending;
|
|
21728
21737
|
} finally {
|
|
21729
21738
|
this.#tokenReads.delete(pending);
|
|
21739
|
+
if (phaseDiagnostics.hasSubscribers)
|
|
21740
|
+
phaseDiagnostics.publish({
|
|
21741
|
+
logger: this.#logger,
|
|
21742
|
+
phase: "token read end"
|
|
21743
|
+
});
|
|
21730
21744
|
}
|
|
21731
21745
|
this.#check(signal);
|
|
21732
21746
|
if (!/^[0-9a-f]{64}$/.test(value.token) || !Number.isSafeInteger(value.token_generation) || value.token_generation < 1) {
|
|
@@ -21788,11 +21802,22 @@ var init_custody = __esm({
|
|
|
21788
21802
|
this.#kept.clear();
|
|
21789
21803
|
throw error;
|
|
21790
21804
|
}
|
|
21805
|
+
if (phaseDiagnostics.hasSubscribers)
|
|
21806
|
+
phaseDiagnostics.publish({
|
|
21807
|
+
logger: this.#logger,
|
|
21808
|
+
phase: "list scoped begin"
|
|
21809
|
+
});
|
|
21791
21810
|
try {
|
|
21792
21811
|
inventory = await this.#call(() => this.#client.listScoped(token), signal);
|
|
21793
21812
|
} catch (error) {
|
|
21794
21813
|
this.listFailed(error);
|
|
21795
21814
|
throw error;
|
|
21815
|
+
} finally {
|
|
21816
|
+
if (phaseDiagnostics.hasSubscribers)
|
|
21817
|
+
phaseDiagnostics.publish({
|
|
21818
|
+
logger: this.#logger,
|
|
21819
|
+
phase: "list scoped end"
|
|
21820
|
+
});
|
|
21796
21821
|
}
|
|
21797
21822
|
const skipped = [];
|
|
21798
21823
|
const refused2 = [];
|
|
@@ -23812,6 +23837,7 @@ var init_consumer = __esm({
|
|
|
23812
23837
|
|
|
23813
23838
|
// ../core/dist/common-auth-embedded/claustrum/hub.js
|
|
23814
23839
|
import { createHash as createHash8 } from "node:crypto";
|
|
23840
|
+
import { channel as channel2 } from "node:diagnostics_channel";
|
|
23815
23841
|
import { readdir, stat as stat6 } from "node:fs/promises";
|
|
23816
23842
|
import { dirname as dirname10, join as join7, resolve as resolve9 } from "node:path";
|
|
23817
23843
|
function canonicalJson3(value, path5 = /* @__PURE__ */ new Set()) {
|
|
@@ -24478,7 +24504,24 @@ var init_hub = __esm({
|
|
|
24478
24504
|
throw closed("Claustrum hub member has no base view");
|
|
24479
24505
|
if (base instanceof Error)
|
|
24480
24506
|
throw base;
|
|
24481
|
-
|
|
24507
|
+
let seed;
|
|
24508
|
+
if (!base.file) {
|
|
24509
|
+
const phaseDiagnostics2 = channel2("common-auth.claustrum.phases");
|
|
24510
|
+
if (phaseDiagnostics2.hasSubscribers)
|
|
24511
|
+
phaseDiagnostics2.publish({
|
|
24512
|
+
logger: this.#logger,
|
|
24513
|
+
phase: `seed read ${entry.provider} begin`
|
|
24514
|
+
});
|
|
24515
|
+
try {
|
|
24516
|
+
seed = await this.#seed(entry);
|
|
24517
|
+
} finally {
|
|
24518
|
+
if (phaseDiagnostics2.hasSubscribers)
|
|
24519
|
+
phaseDiagnostics2.publish({
|
|
24520
|
+
logger: this.#logger,
|
|
24521
|
+
phase: `seed read ${entry.provider} end`
|
|
24522
|
+
});
|
|
24523
|
+
}
|
|
24524
|
+
}
|
|
24482
24525
|
const roster = await refreshVaultRoster({
|
|
24483
24526
|
path: entry.path,
|
|
24484
24527
|
custody: { discover: async () => share },
|
|
@@ -29286,7 +29329,7 @@ function createEngine2(options) {
|
|
|
29286
29329
|
});
|
|
29287
29330
|
}, 500);
|
|
29288
29331
|
}
|
|
29289
|
-
function emit(
|
|
29332
|
+
function emit(channel3, level, message, data) {
|
|
29290
29333
|
if (logFileSource === void 0 && captureSink === void 0)
|
|
29291
29334
|
return;
|
|
29292
29335
|
try {
|
|
@@ -29299,10 +29342,10 @@ function createEngine2(options) {
|
|
|
29299
29342
|
} catch {
|
|
29300
29343
|
scrubbedData = "[unserializable]";
|
|
29301
29344
|
}
|
|
29302
|
-
const line = `[${(/* @__PURE__ */ new Date()).toISOString()}] ${level.toUpperCase()} [${
|
|
29345
|
+
const line = `[${(/* @__PURE__ */ new Date()).toISOString()}] ${level.toUpperCase()} [${channel3}] ${scrubbedMessage}` + (data === void 0 ? "" : safeSerialize2(scrubbedData)) + "\n";
|
|
29303
29346
|
try {
|
|
29304
29347
|
captureSink?.({
|
|
29305
|
-
channel,
|
|
29348
|
+
channel: channel3,
|
|
29306
29349
|
level,
|
|
29307
29350
|
message: scrubbedMessage,
|
|
29308
29351
|
data: scrubbedData
|
|
@@ -29322,13 +29365,13 @@ function createEngine2(options) {
|
|
|
29322
29365
|
} catch {
|
|
29323
29366
|
}
|
|
29324
29367
|
}
|
|
29325
|
-
function createLogger5(
|
|
29368
|
+
function createLogger5(channel3) {
|
|
29326
29369
|
return {
|
|
29327
|
-
error: (m, d) => emit(
|
|
29328
|
-
warn: (m, d) => emit(
|
|
29329
|
-
info: (m, d) => emit(
|
|
29330
|
-
debug: (m, d) => emit(
|
|
29331
|
-
trace: (m, d) => emit(
|
|
29370
|
+
error: (m, d) => emit(channel3, "error", m, d),
|
|
29371
|
+
warn: (m, d) => emit(channel3, "warn", m, d),
|
|
29372
|
+
info: (m, d) => emit(channel3, "info", m, d),
|
|
29373
|
+
debug: (m, d) => emit(channel3, "debug", m, d),
|
|
29374
|
+
trace: (m, d) => emit(channel3, "trace", m, d)
|
|
29332
29375
|
};
|
|
29333
29376
|
}
|
|
29334
29377
|
function reset() {
|
|
@@ -33519,10 +33562,10 @@ function createLocationLogger(options) {
|
|
|
33519
33562
|
const engine = createLoggerInstance2({
|
|
33520
33563
|
level: () => configuredLevel,
|
|
33521
33564
|
extraSecretKeys: isProviderSecretKey,
|
|
33522
|
-
captureSink: ({ channel, level, message, data }) => {
|
|
33565
|
+
captureSink: ({ channel: channel3, level, message, data }) => {
|
|
33523
33566
|
const extra = data !== null && typeof data === "object" && !Array.isArray(data) ? Object.fromEntries(Object.entries(data)) : void 0;
|
|
33524
33567
|
emit({
|
|
33525
|
-
service:
|
|
33568
|
+
service: channel3,
|
|
33526
33569
|
level: level === "trace" ? "debug" : level,
|
|
33527
33570
|
message,
|
|
33528
33571
|
extra
|
|
@@ -33531,12 +33574,12 @@ function createLocationLogger(options) {
|
|
|
33531
33574
|
});
|
|
33532
33575
|
return {
|
|
33533
33576
|
createLogger(module) {
|
|
33534
|
-
const
|
|
33577
|
+
const channel3 = engine.createLogger(`antigravity.${module}`);
|
|
33535
33578
|
return {
|
|
33536
|
-
debug: (message, extra) =>
|
|
33537
|
-
info: (message, extra) =>
|
|
33538
|
-
warn: (message, extra) =>
|
|
33539
|
-
error: (message, extra) =>
|
|
33579
|
+
debug: (message, extra) => channel3.debug(message, extra),
|
|
33580
|
+
info: (message, extra) => channel3.info(message, extra),
|
|
33581
|
+
warn: (message, extra) => channel3.warn(message, extra),
|
|
33582
|
+
error: (message, extra) => channel3.error(message, extra)
|
|
33540
33583
|
};
|
|
33541
33584
|
},
|
|
33542
33585
|
setLevel(level) {
|
|
@@ -33577,10 +33620,10 @@ function initLogger3(client) {
|
|
|
33577
33620
|
setLogSink(getLegacyLogger().coreLogSink);
|
|
33578
33621
|
}
|
|
33579
33622
|
function createLogger4(module) {
|
|
33580
|
-
let
|
|
33623
|
+
let channel3;
|
|
33581
33624
|
const log16 = (level, message, extra) => {
|
|
33582
|
-
|
|
33583
|
-
|
|
33625
|
+
channel3 ??= getLegacyLogger().createLogger(module);
|
|
33626
|
+
channel3[level](message, extra);
|
|
33584
33627
|
};
|
|
33585
33628
|
return {
|
|
33586
33629
|
debug: (message, extra) => log16("debug", message, extra),
|