@dereekb/dbx-cli 13.13.0 → 13.15.0
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/firebase-api-manifest/main.js +65 -7
- package/firebase-api-manifest/package.json +3 -3
- package/generate-firestore-indexes/main.js +2 -2
- package/generate-firestore-indexes/package.json +2 -2
- package/generate-mcp-manifest/main.js +94 -14
- package/generate-mcp-manifest/package.json +3 -3
- package/index.cjs.js +142 -10
- package/index.esm.js +134 -11
- package/lint-cache/package.json +2 -2
- package/manifest-extract/index.cjs.js +138 -4
- package/manifest-extract/index.esm.js +138 -4
- package/manifest-extract/package.json +2 -2
- package/manifest-extract/src/lib/types.d.ts +19 -0
- package/package.json +15 -6
- package/src/lib/manifest/types.d.ts +136 -0
- package/src/lib/util/output.d.ts +11 -3
- package/test/package.json +9 -9
package/index.cjs.js
CHANGED
|
@@ -351,11 +351,17 @@ function _ts_generator$1f(thisArg, body) {
|
|
|
351
351
|
/client_secret[=:]\s*\S+/gi,
|
|
352
352
|
/id_token[=:]\s*\S+/gi
|
|
353
353
|
];
|
|
354
|
+
/**
|
|
355
|
+
* Default per-request HTTP timeout in milliseconds, applied when no explicit `--timeout` is set.
|
|
356
|
+
*
|
|
357
|
+
* Without a default, the HTTP layer's `fetch` waits indefinitely on an unresponsive server, which
|
|
358
|
+
* surfaces as a CLI (or CI test) that hangs forever rather than failing with a clear error.
|
|
359
|
+
*/ var DEFAULT_CLI_HTTP_TIMEOUT_MS = 60000;
|
|
354
360
|
var _outputOptions = {};
|
|
355
361
|
var _secretPatterns = _to_consumable_array$Z(DEFAULT_CLI_SECRET_PATTERNS);
|
|
356
362
|
var _errorMapper;
|
|
357
363
|
var _verbose = false;
|
|
358
|
-
var _timeoutMs;
|
|
364
|
+
var _timeoutMs = DEFAULT_CLI_HTTP_TIMEOUT_MS;
|
|
359
365
|
/**
|
|
360
366
|
* Configures output options from parsed CLI arguments.
|
|
361
367
|
*
|
|
@@ -410,7 +416,8 @@ var _timeoutMs;
|
|
|
410
416
|
* @returns The fetch Response.
|
|
411
417
|
*/ function tracedFetch(fetcher, input, init) {
|
|
412
418
|
return _async_to_generator$1f(function() {
|
|
413
|
-
var _ref, fetchImpl, timeoutMs, method, url, controller, timeoutHandle, finalInit,
|
|
419
|
+
var _ref, fetchImpl, timeoutMs, method, url, controller, timeoutHandle, finalInit, // Don't let the abort timer itself keep the Node event loop (or a test worker) alive.
|
|
420
|
+
_timeoutHandle_unref, localController, e;
|
|
414
421
|
return _ts_generator$1f(this, function(_state) {
|
|
415
422
|
switch(_state.label){
|
|
416
423
|
case 0:
|
|
@@ -426,12 +433,13 @@ var _timeoutMs;
|
|
|
426
433
|
}
|
|
427
434
|
verboseLog("".concat(method, " ").concat(url));
|
|
428
435
|
finalInit = init;
|
|
429
|
-
if (timeoutMs != null && (init === null || init === void 0 ? void 0 : init.signal) == null) {
|
|
436
|
+
if (timeoutMs != null && timeoutMs > 0 && (init === null || init === void 0 ? void 0 : init.signal) == null) {
|
|
430
437
|
localController = new AbortController();
|
|
431
438
|
controller = localController;
|
|
432
439
|
timeoutHandle = setTimeout(function() {
|
|
433
440
|
return localController.abort();
|
|
434
441
|
}, timeoutMs);
|
|
442
|
+
(_timeoutHandle_unref = timeoutHandle.unref) === null || _timeoutHandle_unref === void 0 ? void 0 : _timeoutHandle_unref.call(timeoutHandle);
|
|
435
443
|
finalInit = _object_spread_props$t(_object_spread$L({}, init), {
|
|
436
444
|
signal: localController.signal
|
|
437
445
|
});
|
|
@@ -478,12 +486,13 @@ var _timeoutMs;
|
|
|
478
486
|
/**
|
|
479
487
|
* Sets the process-wide HTTP timeout (in milliseconds) honored by the HTTP layer.
|
|
480
488
|
*
|
|
481
|
-
*
|
|
482
|
-
*
|
|
489
|
+
* The HTTP helpers thread a positive value into an `AbortController` so individual `fetch` calls
|
|
490
|
+
* cancel after the configured duration. `undefined` falls back to {@link DEFAULT_CLI_HTTP_TIMEOUT_MS};
|
|
491
|
+
* `0` (or a negative value) disables the timeout entirely (the request waits indefinitely).
|
|
483
492
|
*
|
|
484
|
-
* @param ms - Timeout in ms, or `undefined` to
|
|
493
|
+
* @param ms - Timeout in ms, `0`/negative to disable, or `undefined` to fall back to the default.
|
|
485
494
|
*/ function setCliTimeoutMs(ms) {
|
|
486
|
-
_timeoutMs = ms;
|
|
495
|
+
_timeoutMs = ms === undefined ? DEFAULT_CLI_HTTP_TIMEOUT_MS : ms;
|
|
487
496
|
}
|
|
488
497
|
/**
|
|
489
498
|
* @returns The current process-wide HTTP timeout in ms, or `undefined` when unset.
|
|
@@ -9286,7 +9295,8 @@ function _ts_generator$_(thisArg, body) {
|
|
|
9286
9295
|
// Configure verbose/timeout as early as possible so HTTP calls made from this very
|
|
9287
9296
|
// middleware (OIDC discovery + token refresh) honor the flags.
|
|
9288
9297
|
setCliVerbose(Boolean(argv.verbose));
|
|
9289
|
-
|
|
9298
|
+
// No `--timeout` flag → undefined → the default timeout applies. `--timeout 0` disables it.
|
|
9299
|
+
setCliTimeoutMs(typeof argv.timeout === 'number' ? argv.timeout * 1000 : undefined);
|
|
9290
9300
|
command = (_argv__ = argv._) === null || _argv__ === void 0 ? void 0 : _argv__[0];
|
|
9291
9301
|
if (typeof command === 'string' && input.skipCommands.has(command)) {
|
|
9292
9302
|
return [
|
|
@@ -9672,7 +9682,8 @@ function _ts_generator$Z(thisArg, body) {
|
|
|
9672
9682
|
// (auth, env, doctor, output) — which bypass the auth middleware via skipCommands —
|
|
9673
9683
|
// still respect `--verbose` and `--timeout`.
|
|
9674
9684
|
setCliVerbose(Boolean(argv.verbose));
|
|
9675
|
-
|
|
9685
|
+
// No `--timeout` flag → undefined → the default timeout applies. `--timeout 0` disables it.
|
|
9686
|
+
setCliTimeoutMs(typeof argv.timeout === 'number' ? argv.timeout * 1000 : undefined);
|
|
9676
9687
|
commandPath = argv._ ? argv._.map(String) : [];
|
|
9677
9688
|
topCommand = commandPath[0];
|
|
9678
9689
|
setDumpDir = argv.setDumpDir;
|
|
@@ -10450,7 +10461,7 @@ function _ts_generator$X(thisArg, body) {
|
|
|
10450
10461
|
}).option('timeout', {
|
|
10451
10462
|
type: 'number',
|
|
10452
10463
|
global: true,
|
|
10453
|
-
describe: 'Per-HTTP-request timeout in seconds (aborts via AbortController)'
|
|
10464
|
+
describe: 'Per-HTTP-request timeout in seconds (default 60; 0 disables; aborts via AbortController)'
|
|
10454
10465
|
}).option('data-help', {
|
|
10455
10466
|
type: 'string',
|
|
10456
10467
|
choices: [
|
|
@@ -11530,6 +11541,118 @@ function parseJsonData(rawData) {
|
|
|
11530
11541
|
var isDefault = specifier == null || specifier === '_';
|
|
11531
11542
|
return isDefault ? "".concat(modelType, ".").concat(call, "._") : "".concat(modelType, ".").concat(call, ".").concat(specifier);
|
|
11532
11543
|
}
|
|
11544
|
+
/**
|
|
11545
|
+
* Default specifier key used when a handler is not behind a specifier router.
|
|
11546
|
+
*
|
|
11547
|
+
* Mirrors `DEFAULT_SPECIFIER_KEY` in `@dereekb/firebase-server/mcp` — kept in sync so the
|
|
11548
|
+
* build-time renderer composes the same tool names as the runtime generator.
|
|
11549
|
+
*/ var DEFAULT_SPECIFIER_KEY = '_';
|
|
11550
|
+
/**
|
|
11551
|
+
* Soft limit for an MCP tool name. Mirrors `MCP_TOOL_NAME_WARN_LENGTH` in
|
|
11552
|
+
* `@dereekb/firebase-server/mcp`. Names over this are flagged at manifest-generation time.
|
|
11553
|
+
*/ var MCP_TOOL_NAME_WARN_LENGTH = 55;
|
|
11554
|
+
/**
|
|
11555
|
+
* Hard limit for an MCP tool name. Mirrors `MCP_TOOL_NAME_MAX_LENGTH` in
|
|
11556
|
+
* `@dereekb/firebase-server/mcp`. Remote MCP clients reject a `tools/list` payload containing any
|
|
11557
|
+
* tool whose `name` exceeds this, so manifest generation fails when a name is over the cap.
|
|
11558
|
+
*/ var MCP_TOOL_NAME_MAX_LENGTH = 64;
|
|
11559
|
+
/**
|
|
11560
|
+
* Builds the MCP tool name for a (modelSegment, callType, specifier) triple.
|
|
11561
|
+
*
|
|
11562
|
+
* Mirrors `buildMcpToolName` in `@dereekb/firebase-server/mcp` so the build-time manifest validation
|
|
11563
|
+
* sees the same names the runtime advertises. The call-type segment is only emitted for the default
|
|
11564
|
+
* (`_`) specifier; named specifiers drop it (`worker-syncCheckHqEmployee`).
|
|
11565
|
+
*
|
|
11566
|
+
* @param modelSegment - The model segment of the name (model type, or a per-model override).
|
|
11567
|
+
* @param callType - The call type / verb.
|
|
11568
|
+
* @param specifier - The specifier key, or `_` / undefined for the default entry.
|
|
11569
|
+
* @returns The hyphen-joined tool name.
|
|
11570
|
+
*
|
|
11571
|
+
* @example
|
|
11572
|
+
* ```ts
|
|
11573
|
+
* buildMcpToolName('worker', 'update', 'syncCheckHqEmployee'); // 'worker-syncCheckHqEmployee'
|
|
11574
|
+
* ```
|
|
11575
|
+
*/ function buildMcpToolName(modelSegment, callType, specifier) {
|
|
11576
|
+
var isDefault = specifier == null || specifier === DEFAULT_SPECIFIER_KEY;
|
|
11577
|
+
return isDefault ? "".concat(modelSegment, "-").concat(callType) : "".concat(modelSegment, "-").concat(specifier);
|
|
11578
|
+
}
|
|
11579
|
+
/**
|
|
11580
|
+
* Classifies a tool name's length against the soft/hard MCP name-length limits.
|
|
11581
|
+
*
|
|
11582
|
+
* Mirrors `validateMcpToolName` in `@dereekb/firebase-server/mcp`.
|
|
11583
|
+
*
|
|
11584
|
+
* @param name - The fully-resolved tool name.
|
|
11585
|
+
* @returns The length classification — `error` over {@link MCP_TOOL_NAME_MAX_LENGTH}, `warn` over
|
|
11586
|
+
* {@link MCP_TOOL_NAME_WARN_LENGTH}, otherwise `ok`.
|
|
11587
|
+
*
|
|
11588
|
+
* @example
|
|
11589
|
+
* ```ts
|
|
11590
|
+
* validateMcpToolName('worker-create').level; // 'ok'
|
|
11591
|
+
* ```
|
|
11592
|
+
*/ function validateMcpToolName(name) {
|
|
11593
|
+
var length = name.length;
|
|
11594
|
+
var level = 'ok';
|
|
11595
|
+
if (length > MCP_TOOL_NAME_MAX_LENGTH) {
|
|
11596
|
+
level = 'error';
|
|
11597
|
+
} else if (length > MCP_TOOL_NAME_WARN_LENGTH) {
|
|
11598
|
+
level = 'warn';
|
|
11599
|
+
}
|
|
11600
|
+
return {
|
|
11601
|
+
name: name,
|
|
11602
|
+
length: length,
|
|
11603
|
+
level: level
|
|
11604
|
+
};
|
|
11605
|
+
}
|
|
11606
|
+
/**
|
|
11607
|
+
* Single-character abbreviations for the standard CRUDQ + invoke call types.
|
|
11608
|
+
*
|
|
11609
|
+
* Mirrors `MCP_CALL_TYPE_ABBREVIATIONS` in `@dereekb/firebase-server/mcp` so the build-time renderer
|
|
11610
|
+
* disambiguates colliding names exactly like the runtime generator.
|
|
11611
|
+
*/ var MCP_CALL_TYPE_ABBREVIATIONS = {
|
|
11612
|
+
create: 'c',
|
|
11613
|
+
read: 'r',
|
|
11614
|
+
update: 'u',
|
|
11615
|
+
delete: 'd',
|
|
11616
|
+
query: 'q',
|
|
11617
|
+
invoke: 'i'
|
|
11618
|
+
};
|
|
11619
|
+
/**
|
|
11620
|
+
* Abbreviates a call type for a disambiguated tool name; a custom call type is returned unchanged.
|
|
11621
|
+
*
|
|
11622
|
+
* Mirrors `abbreviateMcpCallType` in `@dereekb/firebase-server/mcp`.
|
|
11623
|
+
*
|
|
11624
|
+
* @param callType - The call type / verb.
|
|
11625
|
+
* @returns The single-character abbreviation, or the original string for a custom call type.
|
|
11626
|
+
*
|
|
11627
|
+
* @example
|
|
11628
|
+
* ```ts
|
|
11629
|
+
* abbreviateMcpCallType('update'); // 'u'
|
|
11630
|
+
* ```
|
|
11631
|
+
*/ function abbreviateMcpCallType(callType) {
|
|
11632
|
+
var _MCP_CALL_TYPE_ABBREVIATIONS_callType;
|
|
11633
|
+
return (_MCP_CALL_TYPE_ABBREVIATIONS_callType = MCP_CALL_TYPE_ABBREVIATIONS[callType]) !== null && _MCP_CALL_TYPE_ABBREVIATIONS_callType !== void 0 ? _MCP_CALL_TYPE_ABBREVIATIONS_callType : callType;
|
|
11634
|
+
}
|
|
11635
|
+
/**
|
|
11636
|
+
* Builds the disambiguated MCP tool name — the form used only when {@link buildMcpToolName} collides
|
|
11637
|
+
* with another visible tool. Named specifiers re-insert the abbreviated call type
|
|
11638
|
+
* (`worker-u-syncCheckHqEmployee`); default (`_`) specifiers already carry the full call type and are
|
|
11639
|
+
* returned unchanged.
|
|
11640
|
+
*
|
|
11641
|
+
* Mirrors `buildDisambiguatedMcpToolName` in `@dereekb/firebase-server/mcp`.
|
|
11642
|
+
*
|
|
11643
|
+
* @param modelSegment - The model segment of the name (model type, or a per-model override).
|
|
11644
|
+
* @param callType - The call type / verb.
|
|
11645
|
+
* @param specifier - The specifier key, or `_` / undefined for the default entry.
|
|
11646
|
+
* @returns The hyphen-joined disambiguated tool name.
|
|
11647
|
+
*
|
|
11648
|
+
* @example
|
|
11649
|
+
* ```ts
|
|
11650
|
+
* buildDisambiguatedMcpToolName('worker', 'update', 'syncCheckHqEmployee'); // 'worker-u-syncCheckHqEmployee'
|
|
11651
|
+
* ```
|
|
11652
|
+
*/ function buildDisambiguatedMcpToolName(modelSegment, callType, specifier) {
|
|
11653
|
+
var isDefault = specifier == null || specifier === DEFAULT_SPECIFIER_KEY;
|
|
11654
|
+
return isDefault ? "".concat(modelSegment, "-").concat(callType) : "".concat(modelSegment, "-").concat(abbreviateMcpCallType(callType), "-").concat(specifier);
|
|
11655
|
+
}
|
|
11533
11656
|
|
|
11534
11657
|
/**
|
|
11535
11658
|
* One entry in `<cluster>.scan[]`. Mirrors the shape of the legacy
|
|
@@ -56822,6 +56945,7 @@ exports.DBX_DOCS_UI_EXAMPLES_SCAN_CONFIG_FILENAME = DBX_DOCS_UI_EXAMPLES_SCAN_CO
|
|
|
56822
56945
|
exports.DBX_DOCS_UI_EXAMPLE_USE_KINDS = DBX_DOCS_UI_EXAMPLE_USE_KINDS;
|
|
56823
56946
|
exports.DEFAULT_ACTIONS_SCAN_OUT_PATH = DEFAULT_ACTIONS_SCAN_OUT_PATH;
|
|
56824
56947
|
exports.DEFAULT_ACTION_COMMAND_NAME = DEFAULT_ACTION_COMMAND_NAME;
|
|
56948
|
+
exports.DEFAULT_CLI_HTTP_TIMEOUT_MS = DEFAULT_CLI_HTTP_TIMEOUT_MS;
|
|
56825
56949
|
exports.DEFAULT_CLI_OIDC_SCOPES = DEFAULT_CLI_OIDC_SCOPES;
|
|
56826
56950
|
exports.DEFAULT_CLI_REDIRECT_URI = DEFAULT_CLI_REDIRECT_URI;
|
|
56827
56951
|
exports.DEFAULT_CLI_SECRET_PATTERNS = DEFAULT_CLI_SECRET_PATTERNS;
|
|
@@ -56837,6 +56961,7 @@ exports.DEFAULT_MODEL_INFO_COMMAND_NAME = DEFAULT_MODEL_INFO_COMMAND_NAME;
|
|
|
56837
56961
|
exports.DEFAULT_MODEL_SNAPSHOT_FIELDS_SCAN_OUT_PATH = DEFAULT_MODEL_SNAPSHOT_FIELDS_SCAN_OUT_PATH;
|
|
56838
56962
|
exports.DEFAULT_PIPES_SCAN_OUT_PATH = DEFAULT_PIPES_SCAN_OUT_PATH;
|
|
56839
56963
|
exports.DEFAULT_SCAN_OUT_PATH = DEFAULT_SCAN_OUT_PATH;
|
|
56964
|
+
exports.DEFAULT_SPECIFIER_KEY = DEFAULT_SPECIFIER_KEY;
|
|
56840
56965
|
exports.DEFAULT_UI_COMPONENTS_SCAN_OUT_PATH = DEFAULT_UI_COMPONENTS_SCAN_OUT_PATH;
|
|
56841
56966
|
exports.DEFAULT_UTILS_SCAN_OUT_PATH = DEFAULT_UTILS_SCAN_OUT_PATH;
|
|
56842
56967
|
exports.DOWNSTREAM_CLUSTERS = DOWNSTREAM_CLUSTERS;
|
|
@@ -56891,7 +57016,10 @@ exports.ForgeFieldsScanSection = ForgeFieldsScanSection;
|
|
|
56891
57016
|
exports.GET_COMMAND = GET_COMMAND;
|
|
56892
57017
|
exports.GET_MANY_COMMAND = GET_MANY_COMMAND;
|
|
56893
57018
|
exports.MAX_MODEL_ACCESS_MULTI_READ_KEYS = MAX_MODEL_ACCESS_MULTI_READ_KEYS;
|
|
57019
|
+
exports.MCP_CALL_TYPE_ABBREVIATIONS = MCP_CALL_TYPE_ABBREVIATIONS;
|
|
56894
57020
|
exports.MCP_MANIFEST_VERSION = MCP_MANIFEST_VERSION;
|
|
57021
|
+
exports.MCP_TOOL_NAME_MAX_LENGTH = MCP_TOOL_NAME_MAX_LENGTH;
|
|
57022
|
+
exports.MCP_TOOL_NAME_WARN_LENGTH = MCP_TOOL_NAME_WARN_LENGTH;
|
|
56895
57023
|
exports.MODEL_ARCHETYPES = MODEL_ARCHETYPES;
|
|
56896
57024
|
exports.MODEL_ARCHETYPE_ADDON_SLUGS = MODEL_ARCHETYPE_ADDON_SLUGS;
|
|
56897
57025
|
exports.MODEL_ARCHETYPE_SYNC_MODES = MODEL_ARCHETYPE_SYNC_MODES;
|
|
@@ -56946,6 +57074,7 @@ exports.WORKSPACE_AUTH_APPS = WORKSPACE_AUTH_APPS;
|
|
|
56946
57074
|
exports.WORKSPACE_AUTH_CLAIMS = WORKSPACE_AUTH_CLAIMS;
|
|
56947
57075
|
exports.WORKSPACE_FACTORY_SCAN_EXCLUDE = WORKSPACE_FACTORY_SCAN_EXCLUDE;
|
|
56948
57076
|
exports.WORKSPACE_FACTORY_SCAN_INCLUDE = WORKSPACE_FACTORY_SCAN_INCLUDE;
|
|
57077
|
+
exports.abbreviateMcpCallType = abbreviateMcpCallType;
|
|
56949
57078
|
exports.applyEnvVarOverrides = applyEnvVarOverrides;
|
|
56950
57079
|
exports.buildActionCommands = buildActionCommands;
|
|
56951
57080
|
exports.buildActionsManifest = buildActionsManifest;
|
|
@@ -56953,6 +57082,7 @@ exports.buildAuthorizationUrl = buildAuthorizationUrl;
|
|
|
56953
57082
|
exports.buildCliPaths = buildCliPaths;
|
|
56954
57083
|
exports.buildCssUtilitiesManifest = buildCssUtilitiesManifest;
|
|
56955
57084
|
exports.buildDbxDocsUiExamplesManifest = buildDbxDocsUiExamplesManifest;
|
|
57085
|
+
exports.buildDisambiguatedMcpToolName = buildDisambiguatedMcpToolName;
|
|
56956
57086
|
exports.buildDispatcherCreditByName = buildDispatcherCreditByName;
|
|
56957
57087
|
exports.buildDumpFilePath = buildDumpFilePath;
|
|
56958
57088
|
exports.buildErrorOutput = buildErrorOutput;
|
|
@@ -56960,6 +57090,7 @@ exports.buildFiltersManifest = buildFiltersManifest;
|
|
|
56960
57090
|
exports.buildForgeFieldsManifest = buildForgeFieldsManifest;
|
|
56961
57091
|
exports.buildManifest = buildManifest;
|
|
56962
57092
|
exports.buildManifestCommands = buildManifestCommands;
|
|
57093
|
+
exports.buildMcpToolName = buildMcpToolName;
|
|
56963
57094
|
exports.buildModelDecodeCommand = buildModelDecodeCommand;
|
|
56964
57095
|
exports.buildModelInfoCommand = buildModelInfoCommand;
|
|
56965
57096
|
exports.buildModelSnapshotFieldsManifest = buildModelSnapshotFieldsManifest;
|
|
@@ -57197,6 +57328,7 @@ exports.toFilterEntryInfo = toFilterEntryInfo;
|
|
|
57197
57328
|
exports.toFormFieldInfo = toFormFieldInfo;
|
|
57198
57329
|
exports.tracedFetch = tracedFetch;
|
|
57199
57330
|
exports.unwrapFenced = unwrapFenced;
|
|
57331
|
+
exports.validateMcpToolName = validateMcpToolName;
|
|
57200
57332
|
exports.verboseLog = verboseLog;
|
|
57201
57333
|
exports.withCallModelArgs = withCallModelArgs;
|
|
57202
57334
|
exports.withEnv = withEnv;
|
package/index.esm.js
CHANGED
|
@@ -349,11 +349,17 @@ function _ts_generator$1f(thisArg, body) {
|
|
|
349
349
|
/client_secret[=:]\s*\S+/gi,
|
|
350
350
|
/id_token[=:]\s*\S+/gi
|
|
351
351
|
];
|
|
352
|
+
/**
|
|
353
|
+
* Default per-request HTTP timeout in milliseconds, applied when no explicit `--timeout` is set.
|
|
354
|
+
*
|
|
355
|
+
* Without a default, the HTTP layer's `fetch` waits indefinitely on an unresponsive server, which
|
|
356
|
+
* surfaces as a CLI (or CI test) that hangs forever rather than failing with a clear error.
|
|
357
|
+
*/ var DEFAULT_CLI_HTTP_TIMEOUT_MS = 60000;
|
|
352
358
|
var _outputOptions = {};
|
|
353
359
|
var _secretPatterns = _to_consumable_array$Z(DEFAULT_CLI_SECRET_PATTERNS);
|
|
354
360
|
var _errorMapper;
|
|
355
361
|
var _verbose = false;
|
|
356
|
-
var _timeoutMs;
|
|
362
|
+
var _timeoutMs = DEFAULT_CLI_HTTP_TIMEOUT_MS;
|
|
357
363
|
/**
|
|
358
364
|
* Configures output options from parsed CLI arguments.
|
|
359
365
|
*
|
|
@@ -408,7 +414,8 @@ var _timeoutMs;
|
|
|
408
414
|
* @returns The fetch Response.
|
|
409
415
|
*/ function tracedFetch(fetcher, input, init) {
|
|
410
416
|
return _async_to_generator$1f(function() {
|
|
411
|
-
var _ref, fetchImpl, timeoutMs, method, url, controller, timeoutHandle, finalInit,
|
|
417
|
+
var _ref, fetchImpl, timeoutMs, method, url, controller, timeoutHandle, finalInit, // Don't let the abort timer itself keep the Node event loop (or a test worker) alive.
|
|
418
|
+
_timeoutHandle_unref, localController, e;
|
|
412
419
|
return _ts_generator$1f(this, function(_state) {
|
|
413
420
|
switch(_state.label){
|
|
414
421
|
case 0:
|
|
@@ -424,12 +431,13 @@ var _timeoutMs;
|
|
|
424
431
|
}
|
|
425
432
|
verboseLog("".concat(method, " ").concat(url));
|
|
426
433
|
finalInit = init;
|
|
427
|
-
if (timeoutMs != null && (init === null || init === void 0 ? void 0 : init.signal) == null) {
|
|
434
|
+
if (timeoutMs != null && timeoutMs > 0 && (init === null || init === void 0 ? void 0 : init.signal) == null) {
|
|
428
435
|
localController = new AbortController();
|
|
429
436
|
controller = localController;
|
|
430
437
|
timeoutHandle = setTimeout(function() {
|
|
431
438
|
return localController.abort();
|
|
432
439
|
}, timeoutMs);
|
|
440
|
+
(_timeoutHandle_unref = timeoutHandle.unref) === null || _timeoutHandle_unref === void 0 ? void 0 : _timeoutHandle_unref.call(timeoutHandle);
|
|
433
441
|
finalInit = _object_spread_props$t(_object_spread$L({}, init), {
|
|
434
442
|
signal: localController.signal
|
|
435
443
|
});
|
|
@@ -476,12 +484,13 @@ var _timeoutMs;
|
|
|
476
484
|
/**
|
|
477
485
|
* Sets the process-wide HTTP timeout (in milliseconds) honored by the HTTP layer.
|
|
478
486
|
*
|
|
479
|
-
*
|
|
480
|
-
*
|
|
487
|
+
* The HTTP helpers thread a positive value into an `AbortController` so individual `fetch` calls
|
|
488
|
+
* cancel after the configured duration. `undefined` falls back to {@link DEFAULT_CLI_HTTP_TIMEOUT_MS};
|
|
489
|
+
* `0` (or a negative value) disables the timeout entirely (the request waits indefinitely).
|
|
481
490
|
*
|
|
482
|
-
* @param ms - Timeout in ms, or `undefined` to
|
|
491
|
+
* @param ms - Timeout in ms, `0`/negative to disable, or `undefined` to fall back to the default.
|
|
483
492
|
*/ function setCliTimeoutMs(ms) {
|
|
484
|
-
_timeoutMs = ms;
|
|
493
|
+
_timeoutMs = ms === undefined ? DEFAULT_CLI_HTTP_TIMEOUT_MS : ms;
|
|
485
494
|
}
|
|
486
495
|
/**
|
|
487
496
|
* @returns The current process-wide HTTP timeout in ms, or `undefined` when unset.
|
|
@@ -9284,7 +9293,8 @@ function _ts_generator$_(thisArg, body) {
|
|
|
9284
9293
|
// Configure verbose/timeout as early as possible so HTTP calls made from this very
|
|
9285
9294
|
// middleware (OIDC discovery + token refresh) honor the flags.
|
|
9286
9295
|
setCliVerbose(Boolean(argv.verbose));
|
|
9287
|
-
|
|
9296
|
+
// No `--timeout` flag → undefined → the default timeout applies. `--timeout 0` disables it.
|
|
9297
|
+
setCliTimeoutMs(typeof argv.timeout === 'number' ? argv.timeout * 1000 : undefined);
|
|
9288
9298
|
command = (_argv__ = argv._) === null || _argv__ === void 0 ? void 0 : _argv__[0];
|
|
9289
9299
|
if (typeof command === 'string' && input.skipCommands.has(command)) {
|
|
9290
9300
|
return [
|
|
@@ -9670,7 +9680,8 @@ function _ts_generator$Z(thisArg, body) {
|
|
|
9670
9680
|
// (auth, env, doctor, output) — which bypass the auth middleware via skipCommands —
|
|
9671
9681
|
// still respect `--verbose` and `--timeout`.
|
|
9672
9682
|
setCliVerbose(Boolean(argv.verbose));
|
|
9673
|
-
|
|
9683
|
+
// No `--timeout` flag → undefined → the default timeout applies. `--timeout 0` disables it.
|
|
9684
|
+
setCliTimeoutMs(typeof argv.timeout === 'number' ? argv.timeout * 1000 : undefined);
|
|
9674
9685
|
commandPath = argv._ ? argv._.map(String) : [];
|
|
9675
9686
|
topCommand = commandPath[0];
|
|
9676
9687
|
setDumpDir = argv.setDumpDir;
|
|
@@ -10448,7 +10459,7 @@ function _ts_generator$X(thisArg, body) {
|
|
|
10448
10459
|
}).option('timeout', {
|
|
10449
10460
|
type: 'number',
|
|
10450
10461
|
global: true,
|
|
10451
|
-
describe: 'Per-HTTP-request timeout in seconds (aborts via AbortController)'
|
|
10462
|
+
describe: 'Per-HTTP-request timeout in seconds (default 60; 0 disables; aborts via AbortController)'
|
|
10452
10463
|
}).option('data-help', {
|
|
10453
10464
|
type: 'string',
|
|
10454
10465
|
choices: [
|
|
@@ -11528,6 +11539,118 @@ function parseJsonData(rawData) {
|
|
|
11528
11539
|
var isDefault = specifier == null || specifier === '_';
|
|
11529
11540
|
return isDefault ? "".concat(modelType, ".").concat(call, "._") : "".concat(modelType, ".").concat(call, ".").concat(specifier);
|
|
11530
11541
|
}
|
|
11542
|
+
/**
|
|
11543
|
+
* Default specifier key used when a handler is not behind a specifier router.
|
|
11544
|
+
*
|
|
11545
|
+
* Mirrors `DEFAULT_SPECIFIER_KEY` in `@dereekb/firebase-server/mcp` — kept in sync so the
|
|
11546
|
+
* build-time renderer composes the same tool names as the runtime generator.
|
|
11547
|
+
*/ var DEFAULT_SPECIFIER_KEY = '_';
|
|
11548
|
+
/**
|
|
11549
|
+
* Soft limit for an MCP tool name. Mirrors `MCP_TOOL_NAME_WARN_LENGTH` in
|
|
11550
|
+
* `@dereekb/firebase-server/mcp`. Names over this are flagged at manifest-generation time.
|
|
11551
|
+
*/ var MCP_TOOL_NAME_WARN_LENGTH = 55;
|
|
11552
|
+
/**
|
|
11553
|
+
* Hard limit for an MCP tool name. Mirrors `MCP_TOOL_NAME_MAX_LENGTH` in
|
|
11554
|
+
* `@dereekb/firebase-server/mcp`. Remote MCP clients reject a `tools/list` payload containing any
|
|
11555
|
+
* tool whose `name` exceeds this, so manifest generation fails when a name is over the cap.
|
|
11556
|
+
*/ var MCP_TOOL_NAME_MAX_LENGTH = 64;
|
|
11557
|
+
/**
|
|
11558
|
+
* Builds the MCP tool name for a (modelSegment, callType, specifier) triple.
|
|
11559
|
+
*
|
|
11560
|
+
* Mirrors `buildMcpToolName` in `@dereekb/firebase-server/mcp` so the build-time manifest validation
|
|
11561
|
+
* sees the same names the runtime advertises. The call-type segment is only emitted for the default
|
|
11562
|
+
* (`_`) specifier; named specifiers drop it (`worker-syncCheckHqEmployee`).
|
|
11563
|
+
*
|
|
11564
|
+
* @param modelSegment - The model segment of the name (model type, or a per-model override).
|
|
11565
|
+
* @param callType - The call type / verb.
|
|
11566
|
+
* @param specifier - The specifier key, or `_` / undefined for the default entry.
|
|
11567
|
+
* @returns The hyphen-joined tool name.
|
|
11568
|
+
*
|
|
11569
|
+
* @example
|
|
11570
|
+
* ```ts
|
|
11571
|
+
* buildMcpToolName('worker', 'update', 'syncCheckHqEmployee'); // 'worker-syncCheckHqEmployee'
|
|
11572
|
+
* ```
|
|
11573
|
+
*/ function buildMcpToolName(modelSegment, callType, specifier) {
|
|
11574
|
+
var isDefault = specifier == null || specifier === DEFAULT_SPECIFIER_KEY;
|
|
11575
|
+
return isDefault ? "".concat(modelSegment, "-").concat(callType) : "".concat(modelSegment, "-").concat(specifier);
|
|
11576
|
+
}
|
|
11577
|
+
/**
|
|
11578
|
+
* Classifies a tool name's length against the soft/hard MCP name-length limits.
|
|
11579
|
+
*
|
|
11580
|
+
* Mirrors `validateMcpToolName` in `@dereekb/firebase-server/mcp`.
|
|
11581
|
+
*
|
|
11582
|
+
* @param name - The fully-resolved tool name.
|
|
11583
|
+
* @returns The length classification — `error` over {@link MCP_TOOL_NAME_MAX_LENGTH}, `warn` over
|
|
11584
|
+
* {@link MCP_TOOL_NAME_WARN_LENGTH}, otherwise `ok`.
|
|
11585
|
+
*
|
|
11586
|
+
* @example
|
|
11587
|
+
* ```ts
|
|
11588
|
+
* validateMcpToolName('worker-create').level; // 'ok'
|
|
11589
|
+
* ```
|
|
11590
|
+
*/ function validateMcpToolName(name) {
|
|
11591
|
+
var length = name.length;
|
|
11592
|
+
var level = 'ok';
|
|
11593
|
+
if (length > MCP_TOOL_NAME_MAX_LENGTH) {
|
|
11594
|
+
level = 'error';
|
|
11595
|
+
} else if (length > MCP_TOOL_NAME_WARN_LENGTH) {
|
|
11596
|
+
level = 'warn';
|
|
11597
|
+
}
|
|
11598
|
+
return {
|
|
11599
|
+
name: name,
|
|
11600
|
+
length: length,
|
|
11601
|
+
level: level
|
|
11602
|
+
};
|
|
11603
|
+
}
|
|
11604
|
+
/**
|
|
11605
|
+
* Single-character abbreviations for the standard CRUDQ + invoke call types.
|
|
11606
|
+
*
|
|
11607
|
+
* Mirrors `MCP_CALL_TYPE_ABBREVIATIONS` in `@dereekb/firebase-server/mcp` so the build-time renderer
|
|
11608
|
+
* disambiguates colliding names exactly like the runtime generator.
|
|
11609
|
+
*/ var MCP_CALL_TYPE_ABBREVIATIONS = {
|
|
11610
|
+
create: 'c',
|
|
11611
|
+
read: 'r',
|
|
11612
|
+
update: 'u',
|
|
11613
|
+
delete: 'd',
|
|
11614
|
+
query: 'q',
|
|
11615
|
+
invoke: 'i'
|
|
11616
|
+
};
|
|
11617
|
+
/**
|
|
11618
|
+
* Abbreviates a call type for a disambiguated tool name; a custom call type is returned unchanged.
|
|
11619
|
+
*
|
|
11620
|
+
* Mirrors `abbreviateMcpCallType` in `@dereekb/firebase-server/mcp`.
|
|
11621
|
+
*
|
|
11622
|
+
* @param callType - The call type / verb.
|
|
11623
|
+
* @returns The single-character abbreviation, or the original string for a custom call type.
|
|
11624
|
+
*
|
|
11625
|
+
* @example
|
|
11626
|
+
* ```ts
|
|
11627
|
+
* abbreviateMcpCallType('update'); // 'u'
|
|
11628
|
+
* ```
|
|
11629
|
+
*/ function abbreviateMcpCallType(callType) {
|
|
11630
|
+
var _MCP_CALL_TYPE_ABBREVIATIONS_callType;
|
|
11631
|
+
return (_MCP_CALL_TYPE_ABBREVIATIONS_callType = MCP_CALL_TYPE_ABBREVIATIONS[callType]) !== null && _MCP_CALL_TYPE_ABBREVIATIONS_callType !== void 0 ? _MCP_CALL_TYPE_ABBREVIATIONS_callType : callType;
|
|
11632
|
+
}
|
|
11633
|
+
/**
|
|
11634
|
+
* Builds the disambiguated MCP tool name — the form used only when {@link buildMcpToolName} collides
|
|
11635
|
+
* with another visible tool. Named specifiers re-insert the abbreviated call type
|
|
11636
|
+
* (`worker-u-syncCheckHqEmployee`); default (`_`) specifiers already carry the full call type and are
|
|
11637
|
+
* returned unchanged.
|
|
11638
|
+
*
|
|
11639
|
+
* Mirrors `buildDisambiguatedMcpToolName` in `@dereekb/firebase-server/mcp`.
|
|
11640
|
+
*
|
|
11641
|
+
* @param modelSegment - The model segment of the name (model type, or a per-model override).
|
|
11642
|
+
* @param callType - The call type / verb.
|
|
11643
|
+
* @param specifier - The specifier key, or `_` / undefined for the default entry.
|
|
11644
|
+
* @returns The hyphen-joined disambiguated tool name.
|
|
11645
|
+
*
|
|
11646
|
+
* @example
|
|
11647
|
+
* ```ts
|
|
11648
|
+
* buildDisambiguatedMcpToolName('worker', 'update', 'syncCheckHqEmployee'); // 'worker-u-syncCheckHqEmployee'
|
|
11649
|
+
* ```
|
|
11650
|
+
*/ function buildDisambiguatedMcpToolName(modelSegment, callType, specifier) {
|
|
11651
|
+
var isDefault = specifier == null || specifier === DEFAULT_SPECIFIER_KEY;
|
|
11652
|
+
return isDefault ? "".concat(modelSegment, "-").concat(callType) : "".concat(modelSegment, "-").concat(abbreviateMcpCallType(callType), "-").concat(specifier);
|
|
11653
|
+
}
|
|
11531
11654
|
|
|
11532
11655
|
/**
|
|
11533
11656
|
* One entry in `<cluster>.scan[]`. Mirrors the shape of the legacy
|
|
@@ -56779,4 +56902,4 @@ function printPaginatedOutput(input) {
|
|
|
56779
56902
|
})();
|
|
56780
56903
|
}
|
|
56781
56904
|
|
|
56782
|
-
export { ACTIONS_SCAN_CONFIG_FILENAME, ACTION_ENTRY_ROLES, ACTION_ROLE_ORDER, ActionDirectiveEntry, ActionEntry, ActionInputEntry, ActionManifest, ActionOutputEntry, ActionStateEntry, ActionStoreEntry, ActionStoreMethodEntry, ActionStoreObservableEntry, ActionsScanConfig, ActionsScanSection, BUILTIN_AUTH_CLAIMS, BUILTIN_AUTH_ROLES, BUILTIN_AUTH_SCOPES, CALL_MODEL_API_PATH, CALL_PASSTHROUGH_COMMAND, CLI_EXIT_CODE_AUTH, CLI_EXIT_CODE_HANDLER, CORE_TOPICS, CORE_TOPICS_SET, CSS_UTILITIES_SCAN_CONFIG_FILENAME, CSS_UTILITY_ROLES, CSS_UTILITY_SCOPES, CliError, CssUtilitiesScanConfig, CssUtilitiesScanSection, CssUtilityDeclaration, CssUtilityEntry, CssUtilityManifest, DBX_ACTION_STATE_VALUES, DBX_DOCS_UI_EXAMPLES_SCAN_CONFIG_FILENAME, DBX_DOCS_UI_EXAMPLE_USE_KINDS, DEFAULT_ACTIONS_SCAN_OUT_PATH, DEFAULT_ACTION_COMMAND_NAME, DEFAULT_CLI_OIDC_SCOPES, DEFAULT_CLI_REDIRECT_URI, DEFAULT_CLI_SECRET_PATTERNS, DEFAULT_CSS_UTILITIES_SCAN_OUT_PATH, DEFAULT_DBX_DOCS_UI_EXAMPLES_SCAN_OUT_PATH, DEFAULT_FILTERS_SCAN_OUT_PATH, DEFAULT_FORGE_FIELDS_SCAN_OUT_PATH, DEFAULT_MANIFEST_HELP_DATA_FORMAT, DEFAULT_MANIFEST_HELP_MODE, DEFAULT_MANIFEST_MODEL_COMMAND_NAME, DEFAULT_MODEL_DECODE_COMMAND_NAME, DEFAULT_MODEL_INFO_COMMAND_NAME, DEFAULT_MODEL_SNAPSHOT_FIELDS_SCAN_OUT_PATH, DEFAULT_PIPES_SCAN_OUT_PATH, DEFAULT_SCAN_OUT_PATH, DEFAULT_UI_COMPONENTS_SCAN_OUT_PATH, DEFAULT_UTILS_SCAN_OUT_PATH, DOWNSTREAM_CLUSTERS, DUMP_MERGE_MODES, DUMP_OUTPUT_MODES, DbxDocsUiExampleEntry, DbxDocsUiExampleManifest, DbxDocsUiExampleUseEntry, DbxDocsUiExamplesScanConfig, DbxDocsUiExamplesScanSection, DbxMcpConfig, EMPTY_ACTION_REGISTRY, EMPTY_AUTH_REGISTRY, EMPTY_CSS_UTILITY_REGISTRY, EMPTY_DBX_DOCS_UI_EXAMPLES_REGISTRY, EMPTY_FILTER_REGISTRY, EMPTY_FORGE_FIELD_REGISTRY, EMPTY_MODEL_SNAPSHOT_FIELD_REGISTRY, EMPTY_PIPE_REGISTRY, EMPTY_SEMANTIC_TYPE_REGISTRY, EMPTY_TOKEN_REGISTRY, EMPTY_UI_COMPONENT_REGISTRY, EMPTY_UTIL_REGISTRY, ExtractedDbxDocsUiExampleEntrySchema, ExtractedEntrySchema, ExtractedForgeFieldEntrySchema, ExtractedUiEntrySchema, FILTERS_SCAN_CONFIG_FILENAME, FILTER_KINDS, FILTER_KIND_ORDER, FIREBASE_MODELS, FIREBASE_MODEL_GROUPS, FORGE_FIELDS_SCAN_CONFIG_FILENAME, FORGE_FIELD_ARRAY_OUTPUTS, FORGE_FIELD_COMPOSITE_SUFFIXES, FORGE_FIELD_TIERS, FORGE_FIELD_WRAPPER_PATTERNS, FORM_FIELDS, FORM_TIER_ORDER, FilterDirectiveEntry, FilterEntry, FilterInputEntry, FilterManifest, FilterPatternEntry, FiltersScanConfig, FiltersScanSection, ForgeFieldEntry, ForgeFieldManifest, ForgeFieldPropertyEntry, ForgeFieldsScanConfig, ForgeFieldsScanSection, GET_COMMAND, GET_MANY_COMMAND, MAX_MODEL_ACCESS_MULTI_READ_KEYS, MCP_MANIFEST_VERSION, MODEL_ARCHETYPES, MODEL_ARCHETYPE_ADDON_SLUGS, MODEL_ARCHETYPE_SYNC_MODES, MODEL_SNAPSHOT_FIELDS_SCAN_CONFIG_FILENAME, MODEL_SNAPSHOT_FIELD_KINDS, MODEL_WRITE_OIDC_SCOPES, MULTIPLE_PAGES_OUTPUT_MODES, ModelSnapshotFieldEntry, ModelSnapshotFieldManifest, ModelSnapshotFieldParamEntry, ModelSnapshotFieldsScanConfig, ModelSnapshotFieldsScanSection, PIPES_SCAN_CONFIG_FILENAME, PIPE_CATEGORIES, PIPE_CATEGORY_ORDER, PIPE_PURITIES, PROMPT_CANCELLED_ERROR_CODE, PipeArgEntry, PipeEntry, PipeManifest, PipesScanConfig, PipesScanSection, RESERVED_MODEL_FOLDERS, SCAN_CONFIG_FILENAME$1 as SCAN_CONFIG_FILENAME, SERVICE_TOKEN_REQUIRED_OIDC_SCOPES, STANDARD_GLOBAL_OPTION_NAMES, SemanticTypeEntry, SemanticTypeManifest, SemanticTypeScanConfig, TOKEN_ROLES, TOKEN_SOURCES, TokenDefaults, TokenEntry, TokenManifest, UI_COMPONENTS_SCAN_CONFIG_FILENAME, UI_COMPONENT_CATEGORIES, UI_COMPONENT_KINDS, UTILS_SCAN_CONFIG_FILENAME, UTIL_KINDS, UiComponentEntry, UiComponentInputEntry, UiComponentManifest, UiComponentOutputEntry, UiComponentsScanConfig, UiComponentsScanSection, UtilEntry, UtilManifest, UtilParamEntry, UtilsScanConfig, UtilsScanSection, WORKSPACE_AUTH_APPS, WORKSPACE_AUTH_CLAIMS, WORKSPACE_FACTORY_SCAN_EXCLUDE, WORKSPACE_FACTORY_SCAN_INCLUDE, applyEnvVarOverrides, buildActionCommands, buildActionsManifest, buildAuthorizationUrl, buildCliPaths, buildCssUtilitiesManifest, buildDbxDocsUiExamplesManifest, buildDispatcherCreditByName, buildDumpFilePath, buildErrorOutput, buildFiltersManifest, buildForgeFieldsManifest, buildManifest, buildManifestCommands, buildModelDecodeCommand, buildModelInfoCommand, buildModelSnapshotFieldsManifest, buildOidcDiscoveryCandidates, buildPipesManifest, buildScanProject, buildUiComponentsManifest, buildUtilsManifest, callModelOverHttp, clearDownstreamCatalogCache, collectClassPropertiesWithInheritance, configureCliErrorMapper, configureCliSecretPatterns, configureOutputOptions, createActionCommand, createActionRegistry, createActionRegistryFromEntries, createAuthCommand, createAuthMiddleware, createAuthRegistryFromEntries, createCallModelCommand, createCli, createCliContext, createCliTokenCacheStore, createContextSlot, createCssUtilityRegistry, createCssUtilityRegistryFromEntries, createDbxDocsUiExamplesRegistry, createDbxDocsUiExamplesRegistryFromEntries, createDoctorCommand, createEnvCommand, createFilterRegistry, createFilterRegistryFromEntries, createForgeFieldRegistry, createForgeFieldRegistryFromEntries, createModelSnapshotFieldRegistry, createModelSnapshotFieldRegistryFromEntries, createOutputCommand, createOutputMiddleware, createPassthroughAuthMiddleware, createPipeRegistry, createPipeRegistryFromEntries, createSemanticTypeRegistry, createSemanticTypeRegistryFromEntries, createTokenRegistry, createTokenRegistryFromEntries, createUiComponentRegistry, createUiComponentRegistryFromEntries, createUtilRegistry, createUtilRegistryFromEntries, decodeFirestoreModelKey, defaultDoctorChecks, defaultGlobber, defaultReadFile, deriveOptionalFromName, detectDataHelpFormat, detectHelpMode, discoverDownstreamFirebasePackages, discoverDownstreamPackages, discoverOidcMetadata, dumpTimestamp, exchangeAuthorizationCode, expandModelKeys, extractActionEntries, extractAngularInputs, extractAngularOutputs, extractAuthEntries, extractCssUtilityEntries, extractDbxDocsUiExampleEntries, extractEntries, extractFilterEntries, extractForgeFieldEntries, extractModelSnapshotFieldEntries, extractModels, extractPipeEntries, extractUiEntries, extractUtilEntries, fetchSessionInfo, fetchUserInfo, filterReadOnlyModelScopes, findAndLoadConfig, findCliEnvDefault, findCliModelManifestEntry, flattenList, generateOAuthState, generatePkceMaterial, getBundledManifestsDirectory, getCliContext, getCliEnvVarName, getCliTimeoutMs, getDefaultBundledActionManifestPaths, getDefaultBundledCssUtilityManifestPaths, getDefaultBundledDbxDocsUiExamplesManifestPaths, getDefaultBundledFilterManifestPaths, getDefaultBundledForgeFieldManifestPaths, getDefaultBundledManifestPaths, getDefaultBundledModelFirebaseIndexManifestPaths, getDefaultBundledModelSnapshotFieldManifestPaths, getDefaultBundledPipeManifestPaths, getDefaultBundledTokenManifestPaths, getDefaultBundledUiManifestPaths, getDefaultBundledUtilManifestPaths, getDownstreamCatalog, getFirebaseBucketKeyedByIdModels, getFirebaseDistrictKeyedByIdModels, getFirebaseExternalIdKeyedByIdModels, getFirebaseModel, getFirebaseModelByPrefix, getFirebaseModelGroup, getFirebaseModelGroups, getFirebaseModels, getFirebaseModelsByArchetype, getFirebasePrefixCatalog, getFirebaseRegionKeyedByIdModels, getFirebaseSubcollectionsOf, getFirebaseUserKeyedByIdModels, getFirebaseUserRelatedModels, getModelArchetypeBySlug, getModelArchetypesByAxisValue, getModelArchetypesByCollectionKind, getModelArchetypesBySyncMode, getModelOverHttp, getMultipleModelsOverHttp, getMultipleModelsOverHttpChunked, getOutputOptions, globToRegex, isCliEnvConfigComplete, isCliVerbose, isCoreTopic, isStdinSentinel, isTokenExpired, isVisibleProperty, iterateDbxCliCallModel, loadActionManifests, loadActionRegistry, loadAuthRegistry, loadCliConfig, loadCssUtilityRegistry, loadDbxDocsUiExamplesManifests, loadDbxDocsUiExamplesRegistry, loadFilterManifests, loadFilterRegistry, loadForgeFieldManifests, loadForgeFieldRegistry, loadModelFirebaseIndexManifests, loadModelFirebaseIndexRegistry, loadModelSnapshotFieldManifests, loadModelSnapshotFieldRegistry, loadPackageName, loadPipeManifests, loadPipeRegistry, loadScanSection, loadSemanticTypeManifests, loadSemanticTypeRegistry, loadTokenManifests, loadTokenRegistry, loadUiComponentManifests, loadUiComponentRegistry, loadUtilManifests, loadUtilRegistry, maskEnv, maskSecret, mcpManifestKey, mergeCliConfig, mergeCliEnvWithDefault, mergeOutputConfig, openStreamingDump, outputError, outputResult, packageNameToSlug, parseAnnotation, parseDeclarations$1 as parseDeclarations, parseGetArgs, parseGetManyArgs, parsePastedRedirect, parseScanArgs, pickFields, promptLine, readAllStdin, readDirectiveDecorator, readEnvTokenEntry, readPropertyDescription, readSelector, readStdinTokens, readStringProperty, refreshAccessToken, renderDecodedKey, renderModelManifestEntry, renderModelManifestFields, renderModelManifestList, requireCliContext, resolveActiveEnvName, resolveCliEnv, resolveCliEnvOrThrow, resolveCliModel, resolveDemoClaimsPath, resolveExplicitFirebasePackages, resolveModelArchetype, resolveOutputConfig, resolvePerModelGetKey, revokeToken, runActionsScanCli, runCli, runCssUtilitiesScanCli, runDbxDocsUiExamplesScanCli, runFiltersScanCli, runForgeFieldsScanCli, runModelFirebaseIndexScanCli, runModelSnapshotFieldsScanCli, runPaginatedList, runPipesScanCli, runScanCli, runScanCliBase, runUiComponentsScanCli, runUtilsScanCli, sanitizeString, saveCliConfig, scanFactoryReferences, serializeActionManifest, serializeCssUtilityManifest, serializeDbxDocsUiExamplesManifest, serializeFilterManifest, serializeForgeFieldManifest, serializeManifest, serializeModelSnapshotFieldsManifest, serializePipeManifest, serializeUiComponentManifest, serializeUtilManifest, setCliContext, setCliTimeoutMs, setCliVerbose, splitListTagText$1 as splitListTagText, toActionEntryInfo, toFilterEntryInfo, toFormFieldInfo, tracedFetch, unwrapFenced, verboseLog, withCallModelArgs, withEnv, withMultiplePages, withOutput, withServiceTokenScopes, wrapCommandHandler, wrapSyncCommandHandler };
|
|
56905
|
+
export { ACTIONS_SCAN_CONFIG_FILENAME, ACTION_ENTRY_ROLES, ACTION_ROLE_ORDER, ActionDirectiveEntry, ActionEntry, ActionInputEntry, ActionManifest, ActionOutputEntry, ActionStateEntry, ActionStoreEntry, ActionStoreMethodEntry, ActionStoreObservableEntry, ActionsScanConfig, ActionsScanSection, BUILTIN_AUTH_CLAIMS, BUILTIN_AUTH_ROLES, BUILTIN_AUTH_SCOPES, CALL_MODEL_API_PATH, CALL_PASSTHROUGH_COMMAND, CLI_EXIT_CODE_AUTH, CLI_EXIT_CODE_HANDLER, CORE_TOPICS, CORE_TOPICS_SET, CSS_UTILITIES_SCAN_CONFIG_FILENAME, CSS_UTILITY_ROLES, CSS_UTILITY_SCOPES, CliError, CssUtilitiesScanConfig, CssUtilitiesScanSection, CssUtilityDeclaration, CssUtilityEntry, CssUtilityManifest, DBX_ACTION_STATE_VALUES, DBX_DOCS_UI_EXAMPLES_SCAN_CONFIG_FILENAME, DBX_DOCS_UI_EXAMPLE_USE_KINDS, DEFAULT_ACTIONS_SCAN_OUT_PATH, DEFAULT_ACTION_COMMAND_NAME, DEFAULT_CLI_HTTP_TIMEOUT_MS, DEFAULT_CLI_OIDC_SCOPES, DEFAULT_CLI_REDIRECT_URI, DEFAULT_CLI_SECRET_PATTERNS, DEFAULT_CSS_UTILITIES_SCAN_OUT_PATH, DEFAULT_DBX_DOCS_UI_EXAMPLES_SCAN_OUT_PATH, DEFAULT_FILTERS_SCAN_OUT_PATH, DEFAULT_FORGE_FIELDS_SCAN_OUT_PATH, DEFAULT_MANIFEST_HELP_DATA_FORMAT, DEFAULT_MANIFEST_HELP_MODE, DEFAULT_MANIFEST_MODEL_COMMAND_NAME, DEFAULT_MODEL_DECODE_COMMAND_NAME, DEFAULT_MODEL_INFO_COMMAND_NAME, DEFAULT_MODEL_SNAPSHOT_FIELDS_SCAN_OUT_PATH, DEFAULT_PIPES_SCAN_OUT_PATH, DEFAULT_SCAN_OUT_PATH, DEFAULT_SPECIFIER_KEY, DEFAULT_UI_COMPONENTS_SCAN_OUT_PATH, DEFAULT_UTILS_SCAN_OUT_PATH, DOWNSTREAM_CLUSTERS, DUMP_MERGE_MODES, DUMP_OUTPUT_MODES, DbxDocsUiExampleEntry, DbxDocsUiExampleManifest, DbxDocsUiExampleUseEntry, DbxDocsUiExamplesScanConfig, DbxDocsUiExamplesScanSection, DbxMcpConfig, EMPTY_ACTION_REGISTRY, EMPTY_AUTH_REGISTRY, EMPTY_CSS_UTILITY_REGISTRY, EMPTY_DBX_DOCS_UI_EXAMPLES_REGISTRY, EMPTY_FILTER_REGISTRY, EMPTY_FORGE_FIELD_REGISTRY, EMPTY_MODEL_SNAPSHOT_FIELD_REGISTRY, EMPTY_PIPE_REGISTRY, EMPTY_SEMANTIC_TYPE_REGISTRY, EMPTY_TOKEN_REGISTRY, EMPTY_UI_COMPONENT_REGISTRY, EMPTY_UTIL_REGISTRY, ExtractedDbxDocsUiExampleEntrySchema, ExtractedEntrySchema, ExtractedForgeFieldEntrySchema, ExtractedUiEntrySchema, FILTERS_SCAN_CONFIG_FILENAME, FILTER_KINDS, FILTER_KIND_ORDER, FIREBASE_MODELS, FIREBASE_MODEL_GROUPS, FORGE_FIELDS_SCAN_CONFIG_FILENAME, FORGE_FIELD_ARRAY_OUTPUTS, FORGE_FIELD_COMPOSITE_SUFFIXES, FORGE_FIELD_TIERS, FORGE_FIELD_WRAPPER_PATTERNS, FORM_FIELDS, FORM_TIER_ORDER, FilterDirectiveEntry, FilterEntry, FilterInputEntry, FilterManifest, FilterPatternEntry, FiltersScanConfig, FiltersScanSection, ForgeFieldEntry, ForgeFieldManifest, ForgeFieldPropertyEntry, ForgeFieldsScanConfig, ForgeFieldsScanSection, GET_COMMAND, GET_MANY_COMMAND, MAX_MODEL_ACCESS_MULTI_READ_KEYS, MCP_CALL_TYPE_ABBREVIATIONS, MCP_MANIFEST_VERSION, MCP_TOOL_NAME_MAX_LENGTH, MCP_TOOL_NAME_WARN_LENGTH, MODEL_ARCHETYPES, MODEL_ARCHETYPE_ADDON_SLUGS, MODEL_ARCHETYPE_SYNC_MODES, MODEL_SNAPSHOT_FIELDS_SCAN_CONFIG_FILENAME, MODEL_SNAPSHOT_FIELD_KINDS, MODEL_WRITE_OIDC_SCOPES, MULTIPLE_PAGES_OUTPUT_MODES, ModelSnapshotFieldEntry, ModelSnapshotFieldManifest, ModelSnapshotFieldParamEntry, ModelSnapshotFieldsScanConfig, ModelSnapshotFieldsScanSection, PIPES_SCAN_CONFIG_FILENAME, PIPE_CATEGORIES, PIPE_CATEGORY_ORDER, PIPE_PURITIES, PROMPT_CANCELLED_ERROR_CODE, PipeArgEntry, PipeEntry, PipeManifest, PipesScanConfig, PipesScanSection, RESERVED_MODEL_FOLDERS, SCAN_CONFIG_FILENAME$1 as SCAN_CONFIG_FILENAME, SERVICE_TOKEN_REQUIRED_OIDC_SCOPES, STANDARD_GLOBAL_OPTION_NAMES, SemanticTypeEntry, SemanticTypeManifest, SemanticTypeScanConfig, TOKEN_ROLES, TOKEN_SOURCES, TokenDefaults, TokenEntry, TokenManifest, UI_COMPONENTS_SCAN_CONFIG_FILENAME, UI_COMPONENT_CATEGORIES, UI_COMPONENT_KINDS, UTILS_SCAN_CONFIG_FILENAME, UTIL_KINDS, UiComponentEntry, UiComponentInputEntry, UiComponentManifest, UiComponentOutputEntry, UiComponentsScanConfig, UiComponentsScanSection, UtilEntry, UtilManifest, UtilParamEntry, UtilsScanConfig, UtilsScanSection, WORKSPACE_AUTH_APPS, WORKSPACE_AUTH_CLAIMS, WORKSPACE_FACTORY_SCAN_EXCLUDE, WORKSPACE_FACTORY_SCAN_INCLUDE, abbreviateMcpCallType, applyEnvVarOverrides, buildActionCommands, buildActionsManifest, buildAuthorizationUrl, buildCliPaths, buildCssUtilitiesManifest, buildDbxDocsUiExamplesManifest, buildDisambiguatedMcpToolName, buildDispatcherCreditByName, buildDumpFilePath, buildErrorOutput, buildFiltersManifest, buildForgeFieldsManifest, buildManifest, buildManifestCommands, buildMcpToolName, buildModelDecodeCommand, buildModelInfoCommand, buildModelSnapshotFieldsManifest, buildOidcDiscoveryCandidates, buildPipesManifest, buildScanProject, buildUiComponentsManifest, buildUtilsManifest, callModelOverHttp, clearDownstreamCatalogCache, collectClassPropertiesWithInheritance, configureCliErrorMapper, configureCliSecretPatterns, configureOutputOptions, createActionCommand, createActionRegistry, createActionRegistryFromEntries, createAuthCommand, createAuthMiddleware, createAuthRegistryFromEntries, createCallModelCommand, createCli, createCliContext, createCliTokenCacheStore, createContextSlot, createCssUtilityRegistry, createCssUtilityRegistryFromEntries, createDbxDocsUiExamplesRegistry, createDbxDocsUiExamplesRegistryFromEntries, createDoctorCommand, createEnvCommand, createFilterRegistry, createFilterRegistryFromEntries, createForgeFieldRegistry, createForgeFieldRegistryFromEntries, createModelSnapshotFieldRegistry, createModelSnapshotFieldRegistryFromEntries, createOutputCommand, createOutputMiddleware, createPassthroughAuthMiddleware, createPipeRegistry, createPipeRegistryFromEntries, createSemanticTypeRegistry, createSemanticTypeRegistryFromEntries, createTokenRegistry, createTokenRegistryFromEntries, createUiComponentRegistry, createUiComponentRegistryFromEntries, createUtilRegistry, createUtilRegistryFromEntries, decodeFirestoreModelKey, defaultDoctorChecks, defaultGlobber, defaultReadFile, deriveOptionalFromName, detectDataHelpFormat, detectHelpMode, discoverDownstreamFirebasePackages, discoverDownstreamPackages, discoverOidcMetadata, dumpTimestamp, exchangeAuthorizationCode, expandModelKeys, extractActionEntries, extractAngularInputs, extractAngularOutputs, extractAuthEntries, extractCssUtilityEntries, extractDbxDocsUiExampleEntries, extractEntries, extractFilterEntries, extractForgeFieldEntries, extractModelSnapshotFieldEntries, extractModels, extractPipeEntries, extractUiEntries, extractUtilEntries, fetchSessionInfo, fetchUserInfo, filterReadOnlyModelScopes, findAndLoadConfig, findCliEnvDefault, findCliModelManifestEntry, flattenList, generateOAuthState, generatePkceMaterial, getBundledManifestsDirectory, getCliContext, getCliEnvVarName, getCliTimeoutMs, getDefaultBundledActionManifestPaths, getDefaultBundledCssUtilityManifestPaths, getDefaultBundledDbxDocsUiExamplesManifestPaths, getDefaultBundledFilterManifestPaths, getDefaultBundledForgeFieldManifestPaths, getDefaultBundledManifestPaths, getDefaultBundledModelFirebaseIndexManifestPaths, getDefaultBundledModelSnapshotFieldManifestPaths, getDefaultBundledPipeManifestPaths, getDefaultBundledTokenManifestPaths, getDefaultBundledUiManifestPaths, getDefaultBundledUtilManifestPaths, getDownstreamCatalog, getFirebaseBucketKeyedByIdModels, getFirebaseDistrictKeyedByIdModels, getFirebaseExternalIdKeyedByIdModels, getFirebaseModel, getFirebaseModelByPrefix, getFirebaseModelGroup, getFirebaseModelGroups, getFirebaseModels, getFirebaseModelsByArchetype, getFirebasePrefixCatalog, getFirebaseRegionKeyedByIdModels, getFirebaseSubcollectionsOf, getFirebaseUserKeyedByIdModels, getFirebaseUserRelatedModels, getModelArchetypeBySlug, getModelArchetypesByAxisValue, getModelArchetypesByCollectionKind, getModelArchetypesBySyncMode, getModelOverHttp, getMultipleModelsOverHttp, getMultipleModelsOverHttpChunked, getOutputOptions, globToRegex, isCliEnvConfigComplete, isCliVerbose, isCoreTopic, isStdinSentinel, isTokenExpired, isVisibleProperty, iterateDbxCliCallModel, loadActionManifests, loadActionRegistry, loadAuthRegistry, loadCliConfig, loadCssUtilityRegistry, loadDbxDocsUiExamplesManifests, loadDbxDocsUiExamplesRegistry, loadFilterManifests, loadFilterRegistry, loadForgeFieldManifests, loadForgeFieldRegistry, loadModelFirebaseIndexManifests, loadModelFirebaseIndexRegistry, loadModelSnapshotFieldManifests, loadModelSnapshotFieldRegistry, loadPackageName, loadPipeManifests, loadPipeRegistry, loadScanSection, loadSemanticTypeManifests, loadSemanticTypeRegistry, loadTokenManifests, loadTokenRegistry, loadUiComponentManifests, loadUiComponentRegistry, loadUtilManifests, loadUtilRegistry, maskEnv, maskSecret, mcpManifestKey, mergeCliConfig, mergeCliEnvWithDefault, mergeOutputConfig, openStreamingDump, outputError, outputResult, packageNameToSlug, parseAnnotation, parseDeclarations$1 as parseDeclarations, parseGetArgs, parseGetManyArgs, parsePastedRedirect, parseScanArgs, pickFields, promptLine, readAllStdin, readDirectiveDecorator, readEnvTokenEntry, readPropertyDescription, readSelector, readStdinTokens, readStringProperty, refreshAccessToken, renderDecodedKey, renderModelManifestEntry, renderModelManifestFields, renderModelManifestList, requireCliContext, resolveActiveEnvName, resolveCliEnv, resolveCliEnvOrThrow, resolveCliModel, resolveDemoClaimsPath, resolveExplicitFirebasePackages, resolveModelArchetype, resolveOutputConfig, resolvePerModelGetKey, revokeToken, runActionsScanCli, runCli, runCssUtilitiesScanCli, runDbxDocsUiExamplesScanCli, runFiltersScanCli, runForgeFieldsScanCli, runModelFirebaseIndexScanCli, runModelSnapshotFieldsScanCli, runPaginatedList, runPipesScanCli, runScanCli, runScanCliBase, runUiComponentsScanCli, runUtilsScanCli, sanitizeString, saveCliConfig, scanFactoryReferences, serializeActionManifest, serializeCssUtilityManifest, serializeDbxDocsUiExamplesManifest, serializeFilterManifest, serializeForgeFieldManifest, serializeManifest, serializeModelSnapshotFieldsManifest, serializePipeManifest, serializeUiComponentManifest, serializeUtilManifest, setCliContext, setCliTimeoutMs, setCliVerbose, splitListTagText$1 as splitListTagText, toActionEntryInfo, toFilterEntryInfo, toFormFieldInfo, tracedFetch, unwrapFenced, validateMcpToolName, verboseLog, withCallModelArgs, withEnv, withMultiplePages, withOutput, withServiceTokenScopes, wrapCommandHandler, wrapSyncCommandHandler };
|
package/lint-cache/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-cli-lint-cache",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.15.0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"devDependencies": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"eslint": "10.4.0"
|
|
9
9
|
},
|
|
10
10
|
"peerDependencies": {
|
|
11
|
-
"@dereekb/util": "13.
|
|
11
|
+
"@dereekb/util": "13.15.0",
|
|
12
12
|
"yargs": "^18.0.0"
|
|
13
13
|
}
|
|
14
14
|
}
|