@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/index.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",
|
|
@@ -6396,7 +6406,7 @@
|
|
|
6396
6406
|
"imports": [],
|
|
6397
6407
|
"exports": [],
|
|
6398
6408
|
"inputs": {},
|
|
6399
|
-
"bytes":
|
|
6409
|
+
"bytes": 4679945
|
|
6400
6410
|
},
|
|
6401
6411
|
"dist/index.js": {
|
|
6402
6412
|
"imports": [
|
|
@@ -6700,6 +6710,11 @@
|
|
|
6700
6710
|
"kind": "import-statement",
|
|
6701
6711
|
"external": true
|
|
6702
6712
|
},
|
|
6713
|
+
{
|
|
6714
|
+
"path": "node:diagnostics_channel",
|
|
6715
|
+
"kind": "import-statement",
|
|
6716
|
+
"external": true
|
|
6717
|
+
},
|
|
6703
6718
|
{
|
|
6704
6719
|
"path": "@cortexkit/claustrum-client",
|
|
6705
6720
|
"kind": "import-statement",
|
|
@@ -6730,6 +6745,11 @@
|
|
|
6730
6745
|
"kind": "import-statement",
|
|
6731
6746
|
"external": true
|
|
6732
6747
|
},
|
|
6748
|
+
{
|
|
6749
|
+
"path": "node:diagnostics_channel",
|
|
6750
|
+
"kind": "import-statement",
|
|
6751
|
+
"external": true
|
|
6752
|
+
},
|
|
6733
6753
|
{
|
|
6734
6754
|
"path": "node:fs/promises",
|
|
6735
6755
|
"kind": "import-statement",
|
|
@@ -7709,7 +7729,7 @@
|
|
|
7709
7729
|
"bytesInOutput": 2906
|
|
7710
7730
|
},
|
|
7711
7731
|
"../core/dist/common-auth-embedded/logger/engine.js": {
|
|
7712
|
-
"bytesInOutput":
|
|
7732
|
+
"bytesInOutput": 8863
|
|
7713
7733
|
},
|
|
7714
7734
|
"../core/dist/common-auth-embedded/logger/index.js": {
|
|
7715
7735
|
"bytesInOutput": 646
|
|
@@ -7814,7 +7834,7 @@
|
|
|
7814
7834
|
"bytesInOutput": 6693
|
|
7815
7835
|
},
|
|
7816
7836
|
"../core/dist/common-auth-embedded/claustrum/insula.js": {
|
|
7817
|
-
"bytesInOutput":
|
|
7837
|
+
"bytesInOutput": 14939
|
|
7818
7838
|
},
|
|
7819
7839
|
"../core/dist/common-auth-embedded/util/any-signal.js": {
|
|
7820
7840
|
"bytesInOutput": 1146
|
|
@@ -7829,7 +7849,7 @@
|
|
|
7829
7849
|
"bytesInOutput": 970
|
|
7830
7850
|
},
|
|
7831
7851
|
"../core/dist/common-auth-embedded/claustrum/custody.js": {
|
|
7832
|
-
"bytesInOutput":
|
|
7852
|
+
"bytesInOutput": 26854
|
|
7833
7853
|
},
|
|
7834
7854
|
"../core/dist/common-auth-embedded/quota/pending.js": {
|
|
7835
7855
|
"bytesInOutput": 1682
|
|
@@ -7847,7 +7867,7 @@
|
|
|
7847
7867
|
"bytesInOutput": 33679
|
|
7848
7868
|
},
|
|
7849
7869
|
"../core/dist/common-auth-embedded/claustrum/hub.js": {
|
|
7850
|
-
"bytesInOutput":
|
|
7870
|
+
"bytesInOutput": 38587
|
|
7851
7871
|
},
|
|
7852
7872
|
"../core/dist/common-auth-embedded/claustrum/index.js": {
|
|
7853
7873
|
"bytesInOutput": 4669
|
|
@@ -7934,7 +7954,7 @@
|
|
|
7934
7954
|
"bytesInOutput": 2923
|
|
7935
7955
|
},
|
|
7936
7956
|
"src/common-auth-embedded/logger/engine.js": {
|
|
7937
|
-
"bytesInOutput":
|
|
7957
|
+
"bytesInOutput": 8385
|
|
7938
7958
|
},
|
|
7939
7959
|
"src/common-auth-embedded/logger/index.js": {
|
|
7940
7960
|
"bytesInOutput": 168
|
|
@@ -7973,7 +7993,7 @@
|
|
|
7973
7993
|
"bytesInOutput": 17863
|
|
7974
7994
|
},
|
|
7975
7995
|
"src/plugin/logger.ts": {
|
|
7976
|
-
"bytesInOutput":
|
|
7996
|
+
"bytesInOutput": 3600
|
|
7977
7997
|
},
|
|
7978
7998
|
"src/plugin/index.ts": {
|
|
7979
7999
|
"bytesInOutput": 28506
|
|
@@ -8360,7 +8380,7 @@
|
|
|
8360
8380
|
"bytesInOutput": 0
|
|
8361
8381
|
}
|
|
8362
8382
|
},
|
|
8363
|
-
"bytes":
|
|
8383
|
+
"bytes": 2115004
|
|
8364
8384
|
}
|
|
8365
8385
|
}
|
|
8366
8386
|
}
|
package/dist/server.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),
|