@liberseek/boft-cli-linux-x64 0.8.3 → 0.8.5
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/README.md +1 -1
- package/app/codexhost-distribution.json +1 -1
- package/app/console-server.mjs +117 -13
- package/app/console-web.js +713 -129
- package/app/desktop-controller.mjs +713 -42
- package/app/host-runtime.mjs +2535 -855
- package/app/plugins/antigravity/plugin.mjs +437 -67
- package/app/plugins/claude-code/plugin.mjs +758 -248
- package/app/plugins/codebuddy/plugin.mjs +348 -156
- package/app/plugins/codex-usage/plugin.mjs +258 -106
- package/app/plugins/copilot/assets/icon.png +0 -0
- package/app/plugins/copilot/manifest.json +26 -0
- package/app/plugins/copilot/plugin.mjs +34651 -0
- package/app/plugins/cursor-cli/plugin.mjs +20905 -44961
- package/app/plugins/deepseek-harness/plugin.mjs +195 -53
- package/app/plugins/enabled.json +1 -0
- package/app/plugins/grok/plugin.mjs +584 -138
- package/app/plugins/hermes/plugin.mjs +134 -13
- package/app/plugins/kimi-code/plugin.mjs +145 -26
- package/app/plugins/kiro-cli/plugin.mjs +145 -26
- package/app/plugins/muse/plugin.mjs +132 -14
- package/app/plugins/omp/plugin.mjs +2245 -2040
- package/app/plugins/opencode/plugin.mjs +196 -72
- package/app/plugins/pi/plugin.mjs +2643 -2309
- package/app/plugins/qoder/plugin.mjs +162 -40
- package/app/plugins/qoder-cn/plugin.mjs +162 -40
- package/app/plugins/workbuddy/plugin.mjs +609 -180
- package/app/plugins/zcode/plugin.mjs +192 -44
- package/app/renderer-extension.js +3405 -429
- package/bin/boft +0 -0
- package/libexec/boft-shim +0 -0
- package/libexec/boft-updater +0 -0
- package/package.json +1 -1
package/app/console-web.js
CHANGED
|
@@ -3105,10 +3105,10 @@
|
|
|
3105
3105
|
const shape = def.shape;
|
|
3106
3106
|
const propValues = {};
|
|
3107
3107
|
for (const key in shape) {
|
|
3108
|
-
const
|
|
3109
|
-
if (
|
|
3108
|
+
const field2 = shape[key]._zod;
|
|
3109
|
+
if (field2.values) {
|
|
3110
3110
|
propValues[key] ?? (propValues[key] = /* @__PURE__ */ new Set());
|
|
3111
|
-
for (const v of
|
|
3111
|
+
for (const v of field2.values)
|
|
3112
3112
|
propValues[key].add(v);
|
|
3113
3113
|
}
|
|
3114
3114
|
}
|
|
@@ -14768,10 +14768,19 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14768
14768
|
var project = external_exports.string().min(1).max(4096);
|
|
14769
14769
|
var usageStatisticsParamsSchema = external_exports.strictObject({
|
|
14770
14770
|
range: external_exports.enum(USAGE_STATISTICS_RANGES),
|
|
14771
|
+
/** Display timezone for ranges, dates and hourly buckets; omitted means the Host's local zone. */
|
|
14772
|
+
timeZone: external_exports.string().min(1).max(128).refine((value) => {
|
|
14773
|
+
try {
|
|
14774
|
+
new Intl.DateTimeFormat("en", { timeZone: value });
|
|
14775
|
+
return true;
|
|
14776
|
+
} catch {
|
|
14777
|
+
return false;
|
|
14778
|
+
}
|
|
14779
|
+
}, "Unsupported usage statistics timezone").optional(),
|
|
14771
14780
|
harness: harness.optional(),
|
|
14772
14781
|
model: model.nullable().optional(),
|
|
14773
14782
|
project: project.nullable().optional(),
|
|
14774
|
-
/** One
|
|
14783
|
+
/** One date in the query timezone inside the range. */
|
|
14775
14784
|
date: localDate.optional()
|
|
14776
14785
|
});
|
|
14777
14786
|
var usageStatisticsTotalsSchema = external_exports.strictObject({
|
|
@@ -14780,6 +14789,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14780
14789
|
cachedInputTokens: count,
|
|
14781
14790
|
cacheWriteInputTokens: count,
|
|
14782
14791
|
cacheKnownInputTokens: count,
|
|
14792
|
+
cacheHitCachedInputTokens: count,
|
|
14793
|
+
cacheHitInputTokens: count,
|
|
14783
14794
|
outputTokens: count,
|
|
14784
14795
|
reasoningOutputTokens: count,
|
|
14785
14796
|
/** USD at the public price, summed over the priced requests only. */
|
|
@@ -14807,7 +14818,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14807
14818
|
});
|
|
14808
14819
|
var usageStatisticsResultSchema = external_exports.strictObject({
|
|
14809
14820
|
range: external_exports.enum(USAGE_STATISTICS_RANGES),
|
|
14810
|
-
/** First
|
|
14821
|
+
/** First date in the query timezone (Host local when omitted); null for all time. */
|
|
14811
14822
|
from: localDate.nullable(),
|
|
14812
14823
|
to: localDate,
|
|
14813
14824
|
/** The filters these figures apply, echoed so a late answer to older filters is recognised. */
|
|
@@ -14847,7 +14858,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14847
14858
|
totals: usageStatisticsTotalsSchema,
|
|
14848
14859
|
/** Each date and Harness of the range: every filter except the day. */
|
|
14849
14860
|
daily: external_exports.array(external_exports.strictObject({ date: localDate, harness, ...totals })).max(2e5),
|
|
14850
|
-
/**
|
|
14861
|
+
/** Weekday (0 = Sunday) and hour in the query timezone, all filters applied. */
|
|
14851
14862
|
hourly: external_exports.array(external_exports.strictObject({
|
|
14852
14863
|
weekday: external_exports.number().int().min(0).max(6),
|
|
14853
14864
|
hour: external_exports.number().int().min(0).max(23),
|
|
@@ -14887,6 +14898,51 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14887
14898
|
var threadPrewarmDiscardParamsSchema = external_exports.object({ threadId: hostThreadIdSchema });
|
|
14888
14899
|
var threadPrewarmDiscardResultSchema = external_exports.object({ discarded: external_exports.boolean() });
|
|
14889
14900
|
|
|
14901
|
+
// ../shared-contracts/dist/thread-questions.js
|
|
14902
|
+
var field = external_exports.discriminatedUnion("type", [
|
|
14903
|
+
external_exports.object({
|
|
14904
|
+
id: external_exports.string().min(1),
|
|
14905
|
+
type: external_exports.literal("choice"),
|
|
14906
|
+
prompt: external_exports.string(),
|
|
14907
|
+
options: external_exports.array(external_exports.object({
|
|
14908
|
+
value: external_exports.string().min(1),
|
|
14909
|
+
label: external_exports.string(),
|
|
14910
|
+
description: external_exports.string().optional()
|
|
14911
|
+
})).min(1),
|
|
14912
|
+
multiple: external_exports.boolean(),
|
|
14913
|
+
allowOther: external_exports.boolean(),
|
|
14914
|
+
optional: external_exports.boolean()
|
|
14915
|
+
}),
|
|
14916
|
+
external_exports.object({
|
|
14917
|
+
id: external_exports.string().min(1),
|
|
14918
|
+
type: external_exports.literal("text"),
|
|
14919
|
+
prompt: external_exports.string(),
|
|
14920
|
+
multiline: external_exports.boolean(),
|
|
14921
|
+
secret: external_exports.literal(false),
|
|
14922
|
+
optional: external_exports.boolean(),
|
|
14923
|
+
placeholder: external_exports.string().optional(),
|
|
14924
|
+
prefill: external_exports.string().optional()
|
|
14925
|
+
})
|
|
14926
|
+
]);
|
|
14927
|
+
var threadQuestionSchema = external_exports.object({
|
|
14928
|
+
interactionId: external_exports.string().min(1),
|
|
14929
|
+
turnId: external_exports.string().min(1),
|
|
14930
|
+
title: external_exports.string().optional(),
|
|
14931
|
+
questions: external_exports.array(field).min(1)
|
|
14932
|
+
}).refine(({ questions }) => questions.some((q) => q.type === "choice" && q.multiple), {
|
|
14933
|
+
message: "Shared cards require at least one multi-select question"
|
|
14934
|
+
});
|
|
14935
|
+
var threadQuestionsListParamsSchema = external_exports.strictObject({ threadId: external_exports.string().min(1) });
|
|
14936
|
+
var threadQuestionsResultSchema = external_exports.object({ questions: external_exports.array(threadQuestionSchema) });
|
|
14937
|
+
var threadQuestionRespondParamsSchema = external_exports.strictObject({
|
|
14938
|
+
threadId: external_exports.string().min(1),
|
|
14939
|
+
turnId: external_exports.string().min(1),
|
|
14940
|
+
interactionId: external_exports.string().min(1),
|
|
14941
|
+
answers: external_exports.record(external_exports.string(), external_exports.array(external_exports.string())),
|
|
14942
|
+
cancelled: external_exports.boolean().default(false)
|
|
14943
|
+
});
|
|
14944
|
+
var threadQuestionRespondResultSchema = external_exports.object({ accepted: external_exports.literal(true) });
|
|
14945
|
+
|
|
14890
14946
|
// ../shared-contracts/dist/harness-plugins.js
|
|
14891
14947
|
var HARNESS_PLUGIN_MANIFEST_MAX_BYTES = 32 * 1024;
|
|
14892
14948
|
var HARNESS_PLUGIN_ICON_MAX_BYTES = 128 * 1024;
|
|
@@ -14990,6 +15046,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14990
15046
|
"codexhost/harness/display-settings/set",
|
|
14991
15047
|
"codexhost/harness/inspect",
|
|
14992
15048
|
"codexhost/harness/installation",
|
|
15049
|
+
"codexhost/harness/installation/start",
|
|
15050
|
+
"codexhost/harness/installation/status",
|
|
14993
15051
|
"codexhost/harness/launch-settings/get",
|
|
14994
15052
|
"codexhost/harness/launch-settings/set",
|
|
14995
15053
|
HARNESS_LONG_CONTEXT_GET_METHOD,
|
|
@@ -15069,7 +15127,18 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15069
15127
|
var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
|
|
15070
15128
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
15071
15129
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
15130
|
+
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
15131
|
+
var composerIndicatorsSchema = external_exports.array(external_exports.object({
|
|
15132
|
+
kind: external_exports.literal("countdown"),
|
|
15133
|
+
id: external_exports.string().min(1).max(64),
|
|
15134
|
+
expiresAtUnix: nonNegativeSafeIntegerSchema,
|
|
15135
|
+
label: indicatorTextSchema(256).optional(),
|
|
15136
|
+
tooltip: indicatorTextSchema(1024).optional()
|
|
15137
|
+
}).strict()).max(2).refine((entries) => new Set(entries.map(({ id }) => id)).size === entries.length, {
|
|
15138
|
+
message: "Composer indicator IDs must be unique"
|
|
15139
|
+
});
|
|
15072
15140
|
var threadUsageSnapshotSchema = external_exports.object({
|
|
15141
|
+
composerIndicators: composerIndicatorsSchema.optional(),
|
|
15073
15142
|
inputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15074
15143
|
cachedInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15075
15144
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
@@ -15495,7 +15564,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15495
15564
|
}).strict().optional(),
|
|
15496
15565
|
input: external_exports.object({
|
|
15497
15566
|
image: external_exports.boolean()
|
|
15498
|
-
}).strict().optional()
|
|
15567
|
+
}).strict().optional(),
|
|
15568
|
+
/** True only when `turn.steer` delivers input into the active Turn through a native primitive. */
|
|
15569
|
+
steer: external_exports.boolean().optional()
|
|
15499
15570
|
}).strict();
|
|
15500
15571
|
var harnessConfigurationStateSchema = external_exports.object({
|
|
15501
15572
|
effectiveModel: harnessModelRefSchema.optional(),
|
|
@@ -15543,7 +15614,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15543
15614
|
var harnessInspectParamsSchema = external_exports.object({
|
|
15544
15615
|
harnessId: harnessIdSchema,
|
|
15545
15616
|
cwd: nonBlankTextSchema2.max(16384).optional(),
|
|
15546
|
-
refresh: external_exports.boolean().optional()
|
|
15617
|
+
refresh: external_exports.boolean().optional(),
|
|
15618
|
+
/** `availability` asks only whether the Harness can run; see `InspectHarnessInput.purpose`. */
|
|
15619
|
+
purpose: external_exports.literal("availability").optional()
|
|
15547
15620
|
}).strict();
|
|
15548
15621
|
var harnessWebUiOpenParamsSchema = external_exports.object({
|
|
15549
15622
|
harnessId: harnessIdSchema
|
|
@@ -15628,13 +15701,25 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15628
15701
|
seen.add(thread.threadId);
|
|
15629
15702
|
}
|
|
15630
15703
|
});
|
|
15704
|
+
var threadSteeringInspectParamsSchema = external_exports.object({
|
|
15705
|
+
threadId: hostThreadIdSchema,
|
|
15706
|
+
/** The text about to be steered; a Harness command always stops and restarts. */
|
|
15707
|
+
text: external_exports.string().optional()
|
|
15708
|
+
}).strict();
|
|
15709
|
+
var threadSteerDeliverySchema = external_exports.enum(["activeTurn", "newTurn"]);
|
|
15710
|
+
var threadSteeringInspectResultSchema = external_exports.object({
|
|
15711
|
+
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
15712
|
+
}).strict();
|
|
15631
15713
|
|
|
15632
15714
|
// ../shared-contracts/dist/harness-route.js
|
|
15633
15715
|
var harnessPluginRouteSchema = external_exports.object({
|
|
15634
15716
|
harnessId: harnessPluginIdSchema,
|
|
15635
15717
|
model: harnessModelRefSchema.optional(),
|
|
15636
15718
|
thinkingOptionId: harnessThinkingOptionIdSchema.optional(),
|
|
15637
|
-
permissionModeId: harnessPermissionModeIdSchema.optional()
|
|
15719
|
+
permissionModeId: harnessPermissionModeIdSchema.optional(),
|
|
15720
|
+
/** A draft prewarm create: stays unsubmitted until the user's first Turn.
|
|
15721
|
+
* Desktop forwards only the Model of a main-process prewarm to thread/start. */
|
|
15722
|
+
prewarm: external_exports.literal(true).optional()
|
|
15638
15723
|
}).strict();
|
|
15639
15724
|
|
|
15640
15725
|
// ../shared-contracts/dist/harness-launch-settings.js
|
|
@@ -15653,7 +15738,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15653
15738
|
}).strict();
|
|
15654
15739
|
|
|
15655
15740
|
// ../shared-contracts/dist/harness-installation.js
|
|
15656
|
-
var
|
|
15741
|
+
var HARNESS_INSTALLATION_START_METHOD = "codexhost/harness/installation/start";
|
|
15742
|
+
var HARNESS_INSTALLATION_STATUS_METHOD = "codexhost/harness/installation/status";
|
|
15657
15743
|
var harnessInstallationParamsSchema = external_exports.object({
|
|
15658
15744
|
harnessId: harnessIdSchema,
|
|
15659
15745
|
action: external_exports.enum(["check", "update", "install"])
|
|
@@ -15663,6 +15749,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15663
15749
|
latestVersion: external_exports.string().min(1).max(128),
|
|
15664
15750
|
updateAvailable: external_exports.boolean(),
|
|
15665
15751
|
canUpdate: external_exports.boolean(),
|
|
15752
|
+
/** Defaults to CLI; some Harnesses ship only inside a desktop application. */
|
|
15753
|
+
versionKind: external_exports.enum(["cli", "application"]).optional(),
|
|
15754
|
+
/** Official download opened by the user; does not imply an automatic installation. */
|
|
15755
|
+
manualUpdateUrl: external_exports.url().max(2048).refine((value) => /^https:\/\/[^/?#@]+(?:[/?#]|$)/iu.test(value), "Manual updates require a credential-free HTTPS URL").optional(),
|
|
15666
15756
|
// Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
|
|
15667
15757
|
message: external_exports.string().max(2048).optional(),
|
|
15668
15758
|
messageCode: external_exports.string().min(1).max(128).optional(),
|
|
@@ -15670,6 +15760,20 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15670
15760
|
notice: harnessLocalizedTextSchema.optional(),
|
|
15671
15761
|
latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
|
|
15672
15762
|
}).strict();
|
|
15763
|
+
var harnessInstallationTaskParamsSchema = external_exports.object({ taskId: external_exports.string().uuid() }).strict();
|
|
15764
|
+
var harnessInstallationTaskSchema = external_exports.discriminatedUnion("status", [
|
|
15765
|
+
external_exports.object({ taskId: external_exports.string().uuid(), status: external_exports.literal("running") }).strict(),
|
|
15766
|
+
external_exports.object({
|
|
15767
|
+
taskId: external_exports.string().uuid(),
|
|
15768
|
+
status: external_exports.literal("succeeded"),
|
|
15769
|
+
result: harnessInstallationStateSchema
|
|
15770
|
+
}).strict(),
|
|
15771
|
+
external_exports.object({
|
|
15772
|
+
taskId: external_exports.string().uuid(),
|
|
15773
|
+
status: external_exports.literal("failed"),
|
|
15774
|
+
error: external_exports.object({ code: external_exports.number().int(), message: external_exports.string().min(1).max(2048) }).strict()
|
|
15775
|
+
}).strict()
|
|
15776
|
+
]);
|
|
15673
15777
|
|
|
15674
15778
|
// ../shared-contracts/dist/codex-accounts.js
|
|
15675
15779
|
var accountIdSchema = external_exports.string().min(1).max(256).regex(/^[A-Za-z0-9._~-]+$/u);
|
|
@@ -16134,6 +16238,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16134
16238
|
["path", { d: "M12 13.5V8" }]
|
|
16135
16239
|
];
|
|
16136
16240
|
|
|
16241
|
+
// ../../node_modules/lucide/dist/esm/icons/calendar-clock.mjs
|
|
16242
|
+
var CalendarClock = [
|
|
16243
|
+
["path", { d: "M16 14v2.2l1.6 1" }],
|
|
16244
|
+
["path", { d: "M16 2v3" }],
|
|
16245
|
+
["path", { d: "M21 7.338V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h2.338" }],
|
|
16246
|
+
["path", { d: "M3 9h5.859" }],
|
|
16247
|
+
["path", { d: "M8 2v3" }],
|
|
16248
|
+
["circle", { cx: "16", cy: "16", r: "6" }]
|
|
16249
|
+
];
|
|
16250
|
+
|
|
16137
16251
|
// ../../node_modules/lucide/dist/esm/icons/circle-check.mjs
|
|
16138
16252
|
var CircleCheck = [
|
|
16139
16253
|
["circle", { cx: "12", cy: "12", r: "10" }],
|
|
@@ -16489,6 +16603,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16489
16603
|
routes: Route,
|
|
16490
16604
|
gateway: Network,
|
|
16491
16605
|
updates: CircleArrowUp,
|
|
16606
|
+
schedules: CalendarClock,
|
|
16492
16607
|
about: Info,
|
|
16493
16608
|
info: Info,
|
|
16494
16609
|
"external-link": ExternalLink,
|
|
@@ -18435,6 +18550,8 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
18435
18550
|
harness: "Harness",
|
|
18436
18551
|
model: "Model",
|
|
18437
18552
|
project: "Project",
|
|
18553
|
+
host: "Machine",
|
|
18554
|
+
localHost: "This machine",
|
|
18438
18555
|
filterModel: "Filter by model",
|
|
18439
18556
|
filterProject: "Filter by project",
|
|
18440
18557
|
unknownModel: "Unknown model",
|
|
@@ -18618,6 +18735,8 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
18618
18735
|
harness: "Harness",
|
|
18619
18736
|
model: "\u6A21\u578B",
|
|
18620
18737
|
project: "\u9879\u76EE",
|
|
18738
|
+
host: "\u673A\u5668",
|
|
18739
|
+
localHost: "\u672C\u673A",
|
|
18621
18740
|
filterModel: "\u6309\u6A21\u578B\u7B5B\u9009",
|
|
18622
18741
|
filterProject: "\u6309\u9879\u76EE\u7B5B\u9009",
|
|
18623
18742
|
unknownModel: "\u672A\u77E5\u6A21\u578B",
|
|
@@ -19382,6 +19501,26 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
19382
19501
|
};
|
|
19383
19502
|
}
|
|
19384
19503
|
|
|
19504
|
+
// src/renderer-installation-client.ts
|
|
19505
|
+
async function runRendererInstallation(send, input) {
|
|
19506
|
+
const params = harnessInstallationParamsSchema.parse(input);
|
|
19507
|
+
const options = { priority: "background", timeoutMs: 15e3 };
|
|
19508
|
+
let task = harnessInstallationTaskSchema.parse(
|
|
19509
|
+
await send(HARNESS_INSTALLATION_START_METHOD, params, options)
|
|
19510
|
+
);
|
|
19511
|
+
const taskId = task.taskId;
|
|
19512
|
+
while (task.status === "running") {
|
|
19513
|
+
await new Promise((resolve) => globalThis.setTimeout(resolve, 500));
|
|
19514
|
+
task = harnessInstallationTaskSchema.parse(
|
|
19515
|
+
await send(HARNESS_INSTALLATION_STATUS_METHOD, { taskId }, options)
|
|
19516
|
+
);
|
|
19517
|
+
if (task.taskId !== taskId) throw new Error("Harness installation task identity changed");
|
|
19518
|
+
}
|
|
19519
|
+
if (task.status === "failed")
|
|
19520
|
+
throw Object.assign(new Error(task.error.message), { code: task.error.code });
|
|
19521
|
+
return task.result;
|
|
19522
|
+
}
|
|
19523
|
+
|
|
19385
19524
|
// src/renderer-request-sender.ts
|
|
19386
19525
|
var RendererMethodUnavailableError = class extends Error {
|
|
19387
19526
|
constructor(method, cause) {
|
|
@@ -19531,7 +19670,15 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
19531
19670
|
};
|
|
19532
19671
|
const inspectHarness = async (input, options) => {
|
|
19533
19672
|
const params = harnessInspectParamsSchema.parse(input);
|
|
19534
|
-
|
|
19673
|
+
let result;
|
|
19674
|
+
try {
|
|
19675
|
+
result = await manager.sendRequest(HARNESS_INSPECT_METHOD, params, options);
|
|
19676
|
+
} catch (error51) {
|
|
19677
|
+
if (!params.purpose || !isInvalidParams(error51)) throw error51;
|
|
19678
|
+
const full = { ...params };
|
|
19679
|
+
delete full.purpose;
|
|
19680
|
+
result = await manager.sendRequest(HARNESS_INSPECT_METHOD, full, options);
|
|
19681
|
+
}
|
|
19535
19682
|
return harnessInspectionSchema.parse(result);
|
|
19536
19683
|
};
|
|
19537
19684
|
const inspectHarnessCommands = async (input) => {
|
|
@@ -19571,13 +19718,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
19571
19718
|
};
|
|
19572
19719
|
return Object.freeze({
|
|
19573
19720
|
async installation(input) {
|
|
19574
|
-
return
|
|
19575
|
-
await manager.sendRequest(
|
|
19576
|
-
HARNESS_INSTALLATION_METHOD,
|
|
19577
|
-
harnessInstallationParamsSchema.parse(input),
|
|
19578
|
-
{ priority: "interactive" }
|
|
19579
|
-
)
|
|
19580
|
-
);
|
|
19721
|
+
return runRendererInstallation(manager.sendRequest, input);
|
|
19581
19722
|
},
|
|
19582
19723
|
async getHarnessDisplaySettings() {
|
|
19583
19724
|
return harnessDisplaySettingsSchema.parse(
|
|
@@ -19822,6 +19963,9 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
19822
19963
|
}
|
|
19823
19964
|
});
|
|
19824
19965
|
}
|
|
19966
|
+
function isInvalidParams(error51) {
|
|
19967
|
+
return typeof error51 === "object" && error51 !== null && "code" in error51 && error51.code === -32602;
|
|
19968
|
+
}
|
|
19825
19969
|
|
|
19826
19970
|
// src/settings/accounts.css
|
|
19827
19971
|
var accounts_default = `.settings-harness-account__logo {
|
|
@@ -20789,6 +20933,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
20789
20933
|
runtimeCapabilityNotInstalled: "This runtime capability is not installed yet.",
|
|
20790
20934
|
sessionImportTitle: "Session Import",
|
|
20791
20935
|
sessionImportHarness: "Harness",
|
|
20936
|
+
sessionImportSelectHost: "Select the Host to import sessions from",
|
|
20792
20937
|
sessionImportDescription: "Sessions keep their original project path. If a folder is not in the Codex sidebar, add it as a project first. Original history remains managed by the Harness.",
|
|
20793
20938
|
sessionImportAvailabilityNote: "Available Harnesses come from the selected Host. If activity is unknown, close the session in its native client before importing to avoid concurrent writes.",
|
|
20794
20939
|
sessionImportRefresh: "Refresh",
|
|
@@ -20928,10 +21073,17 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
20928
21073
|
connectionInstallRunning: "Installing on the selected Host. You can leave this page; login or setup may still be required afterward.",
|
|
20929
21074
|
harnessVersion: harnessVersionEnglish,
|
|
20930
21075
|
harnessVersionTitle: "Harness CLI version",
|
|
21076
|
+
harnessVersionApplicationTitle: "Application version",
|
|
20931
21077
|
harnessVersionCurrent: "Current version",
|
|
20932
21078
|
harnessVersionLatest: "Latest version",
|
|
20933
21079
|
harnessVersionChecking: "Checking versions\u2026",
|
|
21080
|
+
harnessVersionAvailable: "Update available",
|
|
20934
21081
|
harnessVersionUpdate: "Update",
|
|
21082
|
+
harnessVersionDownloadUpdate: "Download update",
|
|
21083
|
+
harnessUpdateAll: "Update all",
|
|
21084
|
+
harnessUpdateAllProgress: "Updating",
|
|
21085
|
+
harnessUpdateAllDescription: "Update all eligible Harnesses on the selected Host.",
|
|
21086
|
+
harnessUpdateAllResult: "Updated {succeeded}; failed {failed}.",
|
|
20935
21087
|
harnessVersionUpdating: "Updating\u2026",
|
|
20936
21088
|
harnessVersionUpToDate: "Up to date",
|
|
20937
21089
|
harnessVersionUpdated: "Update verified. New sessions will use the new version.",
|
|
@@ -20972,7 +21124,6 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
20972
21124
|
updateLatestVersion: "Latest version",
|
|
20973
21125
|
updateUpToDate: "You are up to date.",
|
|
20974
21126
|
updateAvailable: "A new version is available.",
|
|
20975
|
-
updateWindowsManualRequired: "Automatic updates are unavailable on Windows. Update manually below.",
|
|
20976
21127
|
updateAndRestart: "Update",
|
|
20977
21128
|
updateChecking: "Checking for updates...",
|
|
20978
21129
|
updateDownloading: "Downloading update...",
|
|
@@ -20988,7 +21139,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
20988
21139
|
updateRetry: "Retry",
|
|
20989
21140
|
updateManualNpmDescription: "To update manually, quit BOFT CLI and run this command:",
|
|
20990
21141
|
updateWindowsNpmDescription: "Automatic updates are unavailable on Windows. Quit BOFT CLI and run this command in a terminal:",
|
|
20991
|
-
updateWindowsInstallerDescription: "
|
|
21142
|
+
updateWindowsInstallerDescription: "To update manually, download and run the installer for this system.",
|
|
20992
21143
|
updateManualTitle: "Manual update",
|
|
20993
21144
|
updateManualFallbackDescription: "The automatic update did not complete. Run this command in a terminal instead, then quit Codex and relaunch it with boft.",
|
|
20994
21145
|
updateCopyCommand: "Copy",
|
|
@@ -21097,6 +21248,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
21097
21248
|
runtimeCapabilityNotInstalled: "\u8FD0\u884C\u65F6\u5C1A\u672A\u5B89\u88C5\u8BE5\u9879\u80FD\u529B\uFF0C\u56E0\u6B64\u6682\u4E0D\u53EF\u7528\u3002",
|
|
21098
21249
|
sessionImportTitle: "\u4F1A\u8BDD\u5BFC\u5165",
|
|
21099
21250
|
sessionImportHarness: "Harness",
|
|
21251
|
+
sessionImportSelectHost: "\u8BF7\u9009\u62E9\u8981\u5BFC\u5165\u4F1A\u8BDD\u7684 Host",
|
|
21100
21252
|
sessionImportDescription: "\u4F1A\u8BDD\u5C06\u4FDD\u7559\u539F\u59CB\u9879\u76EE\u8DEF\u5F84\uFF1B\u82E5\u8BE5\u6587\u4EF6\u5939\u5C1A\u672A\u51FA\u73B0\u5728 Codex \u4FA7\u680F\uFF0C\u8BF7\u5148\u5C06\u5176\u6DFB\u52A0\u4E3A\u9879\u76EE\u3002\u539F\u59CB\u5386\u53F2\u4ECD\u7531 Harness \u7BA1\u7406\u3002",
|
|
21101
21253
|
sessionImportAvailabilityNote: "\u53EF\u9009 Harness \u6765\u81EA\u5F53\u524D Host\u3002\u8FD0\u884C\u72B6\u6001\u672A\u77E5\u65F6\uFF0C\u8BF7\u5148\u5728\u539F\u751F\u5BA2\u6237\u7AEF\u5173\u95ED\u8BE5\u4F1A\u8BDD\u518D\u5BFC\u5165\uFF0C\u907F\u514D\u540C\u65F6\u5199\u5165\u3002",
|
|
21102
21254
|
sessionImportRefresh: "\u5237\u65B0",
|
|
@@ -21109,7 +21261,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
21109
21261
|
sessionImportPageSize: "\u6BCF\u9875:",
|
|
21110
21262
|
sessionImportPrevious: "\u4E0A\u4E00\u9875",
|
|
21111
21263
|
sessionImportNext: "\u4E0B\u4E00\u9875",
|
|
21112
|
-
sessionImportPageSummary: "{
|
|
21264
|
+
sessionImportPageSummary: "\u7B2C {page} / {pages} \u9875 \xB7 \u5171 {total} \u6761",
|
|
21113
21265
|
sessionImportLoadFailed: "\u65E0\u6CD5\u8BFB\u53D6\u5F53\u524D Host \u4E0A\u7684\u4F1A\u8BDD\uFF0C\u8BF7\u68C0\u67E5\u76EE\u5F55\u8BBF\u95EE\u6743\u9650\u6216\u91CD\u590D\u7684\u4F1A\u8BDD ID \u540E\u91CD\u8BD5\u3002",
|
|
21114
21266
|
sessionImportFailed: "\u65E0\u6CD5\u5BFC\u5165\u8BE5\u4F1A\u8BDD\u3002",
|
|
21115
21267
|
sessionImportUntitled: "\u672A\u547D\u540D\u4F1A\u8BDD",
|
|
@@ -21236,10 +21388,17 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
21236
21388
|
connectionInstallRunning: "\u6B63\u5728\u6240\u9009 Host \u4E0A\u5B89\u88C5\uFF0C\u79BB\u5F00\u9875\u9762\u4E0D\u4F1A\u4E2D\u65AD\u3002\u5B89\u88C5\u540E\u53EF\u80FD\u4ECD\u9700\u767B\u5F55\u6216\u914D\u7F6E\u3002",
|
|
21237
21389
|
harnessVersion: harnessVersionChinese,
|
|
21238
21390
|
harnessVersionTitle: "Harness CLI \u7248\u672C",
|
|
21391
|
+
harnessVersionApplicationTitle: "\u5E94\u7528\u7248\u672C",
|
|
21239
21392
|
harnessVersionCurrent: "\u5F53\u524D\u7248\u672C",
|
|
21240
21393
|
harnessVersionLatest: "\u6700\u65B0\u7248\u672C",
|
|
21241
21394
|
harnessVersionChecking: "\u6B63\u5728\u68C0\u67E5\u7248\u672C\u2026",
|
|
21395
|
+
harnessVersionAvailable: "\u6709\u66F4\u65B0",
|
|
21242
21396
|
harnessVersionUpdate: "\u66F4\u65B0",
|
|
21397
|
+
harnessVersionDownloadUpdate: "\u4E0B\u8F7D\u66F4\u65B0",
|
|
21398
|
+
harnessUpdateAll: "\u5168\u90E8\u66F4\u65B0",
|
|
21399
|
+
harnessUpdateAllProgress: "\u66F4\u65B0\u4E2D",
|
|
21400
|
+
harnessUpdateAllDescription: "\u66F4\u65B0\u5F53\u524D Host \u4E0A\u652F\u6301\u81EA\u52A8\u66F4\u65B0\u4E14\u6709\u65B0\u7248\u672C\u7684 Harness\u3002",
|
|
21401
|
+
harnessUpdateAllResult: "\u5DF2\u66F4\u65B0 {succeeded} \u9879\uFF0C{failed} \u9879\u5931\u8D25\u3002",
|
|
21243
21402
|
harnessVersionUpdating: "\u6B63\u5728\u66F4\u65B0\u2026",
|
|
21244
21403
|
harnessVersionUpToDate: "\u5DF2\u662F\u6700\u65B0",
|
|
21245
21404
|
harnessVersionUpdated: "\u5DF2\u786E\u8BA4\u66F4\u65B0\u6210\u529F\uFF0C\u65B0\u4F1A\u8BDD\u5C06\u4F7F\u7528\u65B0\u7248\u672C\u3002",
|
|
@@ -21280,7 +21439,6 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
21280
21439
|
updateLatestVersion: "\u6700\u65B0\u7248\u672C",
|
|
21281
21440
|
updateUpToDate: "\u5F53\u524D\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",
|
|
21282
21441
|
updateAvailable: "\u6709\u65B0\u7248\u672C\u53EF\u7528\u3002",
|
|
21283
|
-
updateWindowsManualRequired: "Windows \u6682\u4E0D\u652F\u6301\u81EA\u52A8\u66F4\u65B0\uFF0C\u8BF7\u5728\u4E0B\u65B9\u624B\u52A8\u66F4\u65B0\u3002",
|
|
21284
21442
|
updateAndRestart: "\u66F4\u65B0",
|
|
21285
21443
|
updateChecking: "\u6B63\u5728\u68C0\u67E5\u66F4\u65B0...",
|
|
21286
21444
|
updateDownloading: "\u6B63\u5728\u4E0B\u8F7D\u66F4\u65B0...",
|
|
@@ -21296,7 +21454,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
21296
21454
|
updateRetry: "\u91CD\u8BD5",
|
|
21297
21455
|
updateManualNpmDescription: "\u5982\u9700\u624B\u52A8\u66F4\u65B0\uFF0C\u8BF7\u5728\u7EC8\u7AEF\u8FD0\u884C\u4EE5\u4E0B\u547D\u4EE4\u3002\u66F4\u65B0\u5B8C\u6210\u540E\uFF0C\u8BF7\u9000\u51FA Codex \u5E76\u901A\u8FC7 boft \u91CD\u65B0\u542F\u52A8\u3002",
|
|
21298
21456
|
updateWindowsNpmDescription: "Windows \u6682\u4E0D\u652F\u6301\u81EA\u52A8\u66F4\u65B0\u3002\u8BF7\u9000\u51FA BOFT CLI\uFF0C\u5728\u7EC8\u7AEF\u8FD0\u884C\u4EE5\u4E0B\u547D\u4EE4\u5B8C\u6210\u66F4\u65B0\u3002",
|
|
21299
|
-
updateWindowsInstallerDescription: "
|
|
21457
|
+
updateWindowsInstallerDescription: "\u5982\u9700\u624B\u52A8\u66F4\u65B0\uFF0C\u8BF7\u4E0B\u8F7D\u5E76\u8FD0\u884C\u9002\u7528\u4E8E\u5F53\u524D\u7CFB\u7EDF\u7684\u5B89\u88C5\u5305\u3002",
|
|
21300
21458
|
updateManualTitle: "\u624B\u52A8\u66F4\u65B0",
|
|
21301
21459
|
updateManualFallbackDescription: "\u81EA\u52A8\u66F4\u65B0\u672A\u80FD\u5B8C\u6210\uFF0C\u8BF7\u6539\u7528\u4E0B\u5217\u547D\u4EE4\u5728\u7EC8\u7AEF\u624B\u52A8\u66F4\u65B0\u3002\u5B8C\u6210\u540E\u8BF7\u9000\u51FA Codex \u5E76\u901A\u8FC7 boft \u91CD\u65B0\u542F\u52A8\u3002",
|
|
21302
21460
|
updateCopyCommand: "\u590D\u5236",
|
|
@@ -21371,6 +21529,34 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
21371
21529
|
return names.size === 1 ? names.values().next().value ?? model2 : model2;
|
|
21372
21530
|
}
|
|
21373
21531
|
|
|
21532
|
+
// src/console/usage/usage-hosts.ts
|
|
21533
|
+
var LOCAL_USAGE_HOST_ID = "local";
|
|
21534
|
+
function usageHostOptions(hosts, localLabel, selected) {
|
|
21535
|
+
const options = [{ key: LOCAL_USAGE_HOST_ID, label: localLabel }];
|
|
21536
|
+
const seen = /* @__PURE__ */ new Set([LOCAL_USAGE_HOST_ID]);
|
|
21537
|
+
const add = (hostId2, label) => {
|
|
21538
|
+
if (hostId2.length === 0 || seen.has(hostId2)) return;
|
|
21539
|
+
seen.add(hostId2);
|
|
21540
|
+
options.push({ key: hostId2, label: label !== void 0 && label.length > 0 ? label : hostId2 });
|
|
21541
|
+
};
|
|
21542
|
+
for (const host of hosts ?? []) add(host.hostId, host.label);
|
|
21543
|
+
if (!seen.has(selected)) add(selected, void 0);
|
|
21544
|
+
return options;
|
|
21545
|
+
}
|
|
21546
|
+
function createLatestKeyGuard() {
|
|
21547
|
+
let generation = 0;
|
|
21548
|
+
let key;
|
|
21549
|
+
return {
|
|
21550
|
+
begin(next) {
|
|
21551
|
+
generation += 1;
|
|
21552
|
+
key = next;
|
|
21553
|
+
const mine = generation;
|
|
21554
|
+
const selected = next;
|
|
21555
|
+
return () => generation === mine && Object.is(key, selected);
|
|
21556
|
+
}
|
|
21557
|
+
};
|
|
21558
|
+
}
|
|
21559
|
+
|
|
21374
21560
|
// src/renderer-usage-control.ts
|
|
21375
21561
|
var ENGLISH_USAGE_MESSAGES = Object.freeze({
|
|
21376
21562
|
usage: "Usage",
|
|
@@ -21460,6 +21646,8 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
21460
21646
|
cachedInputTokens: 0,
|
|
21461
21647
|
cacheWriteInputTokens: 0,
|
|
21462
21648
|
cacheKnownInputTokens: 0,
|
|
21649
|
+
cacheHitCachedInputTokens: 0,
|
|
21650
|
+
cacheHitInputTokens: 0,
|
|
21463
21651
|
outputTokens: 0,
|
|
21464
21652
|
reasoningOutputTokens: 0,
|
|
21465
21653
|
costUsd: 0,
|
|
@@ -21473,6 +21661,8 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
21473
21661
|
target.cachedInputTokens += source.cachedInputTokens;
|
|
21474
21662
|
target.cacheWriteInputTokens += source.cacheWriteInputTokens;
|
|
21475
21663
|
target.cacheKnownInputTokens += source.cacheKnownInputTokens;
|
|
21664
|
+
target.cacheHitCachedInputTokens += source.cacheHitCachedInputTokens;
|
|
21665
|
+
target.cacheHitInputTokens += source.cacheHitInputTokens;
|
|
21476
21666
|
target.outputTokens += source.outputTokens;
|
|
21477
21667
|
target.reasoningOutputTokens += source.reasoningOutputTokens;
|
|
21478
21668
|
target.costUsd += source.costUsd;
|
|
@@ -21527,7 +21717,9 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
21527
21717
|
};
|
|
21528
21718
|
}
|
|
21529
21719
|
function cacheHitRate(totals2) {
|
|
21530
|
-
return totals2.
|
|
21720
|
+
return totals2.cacheHitInputTokens > 0 ? formatRendererCacheHitRate(
|
|
21721
|
+
totals2.cacheHitCachedInputTokens / totals2.cacheHitInputTokens * 100
|
|
21722
|
+
) : "\u2014";
|
|
21531
21723
|
}
|
|
21532
21724
|
function formatMeasure(measure, value, locale = "en") {
|
|
21533
21725
|
return measure === "cost" ? money(value) : count2(value, locale);
|
|
@@ -21691,7 +21883,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
21691
21883
|
var DECIMAL = /^(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/iu;
|
|
21692
21884
|
function modelPriceDraft(key, price) {
|
|
21693
21885
|
const prices = Object.fromEntries(
|
|
21694
|
-
MODEL_PRICE_FIELDS.map((
|
|
21886
|
+
MODEL_PRICE_FIELDS.map((field2) => [field2, price?.[field2]?.toString() ?? ""])
|
|
21695
21887
|
);
|
|
21696
21888
|
return { model: key, prices };
|
|
21697
21889
|
}
|
|
@@ -21702,18 +21894,18 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
21702
21894
|
return { error: { kind: "duplicate", key } };
|
|
21703
21895
|
}
|
|
21704
21896
|
const price = {};
|
|
21705
|
-
for (const
|
|
21706
|
-
const text = draft.prices[
|
|
21897
|
+
for (const field2 of MODEL_PRICE_FIELDS) {
|
|
21898
|
+
const text = draft.prices[field2].trim();
|
|
21707
21899
|
if (text === "") {
|
|
21708
|
-
if (
|
|
21709
|
-
return { error: { kind: "priceRequired", field } };
|
|
21900
|
+
if (field2 === "input" || field2 === "output")
|
|
21901
|
+
return { error: { kind: "priceRequired", field: field2 } };
|
|
21710
21902
|
continue;
|
|
21711
21903
|
}
|
|
21712
21904
|
const value = Number(text);
|
|
21713
21905
|
if (!DECIMAL.test(text) || !Number.isFinite(value)) {
|
|
21714
|
-
return { error: { kind: "priceInvalid", field } };
|
|
21906
|
+
return { error: { kind: "priceInvalid", field: field2 } };
|
|
21715
21907
|
}
|
|
21716
|
-
price[
|
|
21908
|
+
price[field2] = value;
|
|
21717
21909
|
}
|
|
21718
21910
|
return {
|
|
21719
21911
|
change: {
|
|
@@ -21733,7 +21925,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
21733
21925
|
}
|
|
21734
21926
|
function formatPrice(messages, price) {
|
|
21735
21927
|
return MODEL_PRICE_FIELDS.map(
|
|
21736
|
-
(
|
|
21928
|
+
(field2) => `${messages.fields[field2]} ${price[field2] ?? messages.unset}`
|
|
21737
21929
|
).join(" \xB7 ");
|
|
21738
21930
|
}
|
|
21739
21931
|
function draftErrorText(messages, error51) {
|
|
@@ -21801,18 +21993,18 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
21801
21993
|
function renderEditor(modelId, view, isCurrent) {
|
|
21802
21994
|
const existing = view.entries.find((entry) => entry.key === modelId);
|
|
21803
21995
|
const draft = modelPriceDraft(modelId, existing?.price ?? null);
|
|
21804
|
-
const
|
|
21996
|
+
const field2 = (label, value, placeholder = "") => h(document2, "input", {
|
|
21805
21997
|
type: "text",
|
|
21806
21998
|
className: "console-input",
|
|
21807
21999
|
value,
|
|
21808
22000
|
placeholder,
|
|
21809
22001
|
"aria-label": label
|
|
21810
22002
|
});
|
|
21811
|
-
const model2 =
|
|
22003
|
+
const model2 = field2(messages.model, modelId);
|
|
21812
22004
|
model2.readOnly = true;
|
|
21813
22005
|
const prices = Object.fromEntries(
|
|
21814
22006
|
MODEL_PRICE_FIELDS.map((name) => {
|
|
21815
|
-
const input =
|
|
22007
|
+
const input = field2(
|
|
21816
22008
|
messages.fields[name],
|
|
21817
22009
|
draft.prices[name],
|
|
21818
22010
|
name === "input" || name === "output" ? messages.required : messages.notSet
|
|
@@ -22624,8 +22816,8 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
22624
22816
|
for (const cell of options.cells) {
|
|
22625
22817
|
const key = options.singleDay ? cell.hour : cell.weekday * 24 + cell.hour;
|
|
22626
22818
|
const totals2 = byHour.get(key) ?? emptyTotals();
|
|
22627
|
-
for (const
|
|
22628
|
-
totals2[
|
|
22819
|
+
for (const field2 of Object.keys(totals2))
|
|
22820
|
+
totals2[field2] += cell.totals[field2];
|
|
22629
22821
|
byHour.set(key, totals2);
|
|
22630
22822
|
}
|
|
22631
22823
|
const max = Math.max(0, ...[...byHour.values()].map((totals2) => measured(totals2, measure)));
|
|
@@ -22731,6 +22923,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
22731
22923
|
const range = text("range");
|
|
22732
22924
|
const measure = text("measure");
|
|
22733
22925
|
const granularity = text("granularity");
|
|
22926
|
+
const hostId2 = text("hostId");
|
|
22734
22927
|
const harness2 = text("harness");
|
|
22735
22928
|
const model2 = text("model");
|
|
22736
22929
|
const project2 = text("project");
|
|
@@ -22739,6 +22932,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
22739
22932
|
...range && USAGE_STATISTICS_RANGES.includes(range) ? { range } : {},
|
|
22740
22933
|
...measure && MEASURES.includes(measure) ? { measure } : {},
|
|
22741
22934
|
...granularity === "day" || granularity === "week" || granularity === "month" ? { granularity } : {},
|
|
22935
|
+
...hostId2 !== void 0 && hostId2.length > 0 ? { hostId: hostId2 } : {},
|
|
22742
22936
|
...harness2 !== void 0 ? { harness: harness2 } : {},
|
|
22743
22937
|
...model2 !== void 0 ? { model: model2 } : {},
|
|
22744
22938
|
...project2 !== void 0 ? { project: project2 } : {},
|
|
@@ -22777,7 +22971,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
22777
22971
|
day.setDate(day.getDate() - (day.getDay() + 6) % 7);
|
|
22778
22972
|
return isoDate(day);
|
|
22779
22973
|
}
|
|
22780
|
-
function createUsageStatisticsPage(consoleMessages2, request, pageLocale) {
|
|
22974
|
+
function createUsageStatisticsPage(consoleMessages2, request, pageLocale, usageHosts) {
|
|
22781
22975
|
const messages = consoleMessages2.usageStatistics;
|
|
22782
22976
|
return Object.freeze({
|
|
22783
22977
|
id: "usage-statistics",
|
|
@@ -22786,10 +22980,12 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
22786
22980
|
mount(context) {
|
|
22787
22981
|
const document2 = context.content.ownerDocument;
|
|
22788
22982
|
const locale = pageLocale ?? (document2.documentElement.lang || "en");
|
|
22983
|
+
const timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
22789
22984
|
const count3 = (value) => count2(value, locale);
|
|
22790
22985
|
const tokenCount2 = (totals2, value) => tokenCount(totals2, value, locale);
|
|
22791
22986
|
const saved = readView();
|
|
22792
22987
|
const view = {
|
|
22988
|
+
hostId: saved.hostId ?? LOCAL_USAGE_HOST_ID,
|
|
22793
22989
|
range: saved.range ?? "30d",
|
|
22794
22990
|
measure: saved.measure ?? "cost",
|
|
22795
22991
|
granularity: saved.granularity ?? null,
|
|
@@ -22820,7 +23016,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
22820
23016
|
let projectLabel = /* @__PURE__ */ new Map();
|
|
22821
23017
|
const projectName = (key) => key === UNKNOWN ? messages.unknownProject : projectLabel.get(key) ?? baseName(key);
|
|
22822
23018
|
const measureLabel = (measure) => measure === "cost" ? messages.cost : messages.tokens;
|
|
22823
|
-
const dateFormat = (options) => new Intl.DateTimeFormat(locale, options);
|
|
23019
|
+
const dateFormat = (options) => new Intl.DateTimeFormat(locale, { ...options, timeZone });
|
|
22824
23020
|
const shortDate = dateFormat({ month: "short", day: "numeric" });
|
|
22825
23021
|
const longDate = dateFormat({
|
|
22826
23022
|
year: "numeric",
|
|
@@ -22839,10 +23035,51 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
22839
23035
|
const prices = createModelPricesDialog(
|
|
22840
23036
|
document2,
|
|
22841
23037
|
consoleMessages2,
|
|
22842
|
-
request,
|
|
23038
|
+
(method, params2) => request(method, params2, view.hostId),
|
|
22843
23039
|
context.signal,
|
|
22844
23040
|
load
|
|
22845
23041
|
);
|
|
23042
|
+
let offeredHosts = usageHosts ? [] : void 0;
|
|
23043
|
+
const hostCombo = new ComboBox(document2, {
|
|
23044
|
+
label: messages.host,
|
|
23045
|
+
searchLabel: messages.search,
|
|
23046
|
+
emptyLabel: messages.noMatches,
|
|
23047
|
+
signal: context.signal,
|
|
23048
|
+
searchable: false,
|
|
23049
|
+
display: (option) => `${messages.host} \xB7 ${option.label}`,
|
|
23050
|
+
onChange: (key) => {
|
|
23051
|
+
if (key === view.hostId) return;
|
|
23052
|
+
view.hostId = key;
|
|
23053
|
+
view.harness = "";
|
|
23054
|
+
view.model = "";
|
|
23055
|
+
view.project = "";
|
|
23056
|
+
date5 = null;
|
|
23057
|
+
unpricedOnly = false;
|
|
23058
|
+
result = null;
|
|
23059
|
+
error51 = null;
|
|
23060
|
+
loadedAt = 0;
|
|
23061
|
+
names.clear();
|
|
23062
|
+
save();
|
|
23063
|
+
hostOptions();
|
|
23064
|
+
render();
|
|
23065
|
+
void refreshHarnessNames();
|
|
23066
|
+
load();
|
|
23067
|
+
}
|
|
23068
|
+
});
|
|
23069
|
+
const hostOptions = () => {
|
|
23070
|
+
const options = usageHostOptions(offeredHosts, messages.localHost, view.hostId);
|
|
23071
|
+
hostCombo.element.hidden = options.length < 2;
|
|
23072
|
+
hostCombo.update(options, view.hostId === LOCAL_USAGE_HOST_ID ? "" : view.hostId);
|
|
23073
|
+
};
|
|
23074
|
+
const offerHosts = () => {
|
|
23075
|
+
if (!usageHosts) return;
|
|
23076
|
+
void usageHosts().then((hosts) => {
|
|
23077
|
+
if (context.signal.aborted) return;
|
|
23078
|
+
offeredHosts = hosts;
|
|
23079
|
+
hostOptions();
|
|
23080
|
+
}).catch(() => void 0);
|
|
23081
|
+
};
|
|
23082
|
+
hostOptions();
|
|
22846
23083
|
const updated = h(document2, "span", { className: "console-muted console-usage-updated" });
|
|
22847
23084
|
const refresh = h(
|
|
22848
23085
|
document2,
|
|
@@ -22855,7 +23092,10 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
22855
23092
|
},
|
|
22856
23093
|
createRendererSettingsIcon("refresh", 16)
|
|
22857
23094
|
);
|
|
22858
|
-
refresh.addEventListener("click", () =>
|
|
23095
|
+
refresh.addEventListener("click", () => {
|
|
23096
|
+
offerHosts();
|
|
23097
|
+
load();
|
|
23098
|
+
});
|
|
22859
23099
|
const auto = new ComboBox(document2, {
|
|
22860
23100
|
label: messages.autoRefresh,
|
|
22861
23101
|
searchLabel: messages.search,
|
|
@@ -22894,6 +23134,7 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
22894
23134
|
document2,
|
|
22895
23135
|
"div",
|
|
22896
23136
|
{ className: "console-usage-toolbar" },
|
|
23137
|
+
hostCombo.element,
|
|
22897
23138
|
updated,
|
|
22898
23139
|
refresh,
|
|
22899
23140
|
auto.element,
|
|
@@ -22939,8 +23180,8 @@ th[aria-sort] .console-usage-sort__mark {
|
|
|
22939
23180
|
save();
|
|
22940
23181
|
load();
|
|
22941
23182
|
}
|
|
22942
|
-
function toggleFilter(
|
|
22943
|
-
view[
|
|
23183
|
+
function toggleFilter(field2, key) {
|
|
23184
|
+
view[field2] = view[field2] === key ? "" : key;
|
|
22944
23185
|
changed();
|
|
22945
23186
|
}
|
|
22946
23187
|
function selectDate(next) {
|
|
@@ -23345,7 +23586,7 @@ ${messages.creditsCoverage}: ${value.reportedRequests} / ${row.requests}` : void
|
|
|
23345
23586
|
{
|
|
23346
23587
|
key: "hit",
|
|
23347
23588
|
label: messages.cacheHit,
|
|
23348
|
-
sort: (row) => row.
|
|
23589
|
+
sort: (row) => row.cacheHitInputTokens > 0 ? row.cacheHitCachedInputTokens / row.cacheHitInputTokens : -1,
|
|
23349
23590
|
cell: (row) => cacheHitRate(row)
|
|
23350
23591
|
},
|
|
23351
23592
|
{
|
|
@@ -23356,8 +23597,8 @@ ${messages.creditsCoverage}: ${value.reportedRequests} / ${row.requests}` : void
|
|
|
23356
23597
|
}
|
|
23357
23598
|
];
|
|
23358
23599
|
}
|
|
23359
|
-
function rowFilter(
|
|
23360
|
-
const selected = view[
|
|
23600
|
+
function rowFilter(field2, key, label, detail) {
|
|
23601
|
+
const selected = view[field2] === key;
|
|
23361
23602
|
const button2 = focusKey(
|
|
23362
23603
|
h(
|
|
23363
23604
|
document2,
|
|
@@ -23371,9 +23612,9 @@ ${detail}` : ""}`
|
|
|
23371
23612
|
},
|
|
23372
23613
|
label
|
|
23373
23614
|
),
|
|
23374
|
-
`${
|
|
23615
|
+
`${field2}:row:${key}`
|
|
23375
23616
|
);
|
|
23376
|
-
button2.addEventListener("click", () => toggleFilter(
|
|
23617
|
+
button2.addEventListener("click", () => toggleFilter(field2, key));
|
|
23377
23618
|
return button2;
|
|
23378
23619
|
}
|
|
23379
23620
|
function panel(title, content, extra = null, wide = false) {
|
|
@@ -23532,7 +23773,6 @@ ${detail}` : ""}`
|
|
|
23532
23773
|
}
|
|
23533
23774
|
function hourlyPanel(data) {
|
|
23534
23775
|
const singleDay = data.filters.date !== null || data.range === "today";
|
|
23535
|
-
const zone = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
23536
23776
|
return panel(
|
|
23537
23777
|
singleDay ? messages.hourlyDay : messages.hourly,
|
|
23538
23778
|
hourlyChart(document2, {
|
|
@@ -23547,7 +23787,7 @@ ${detail}` : ""}`
|
|
|
23547
23787
|
weekStartsOnMonday: !locale.startsWith("en"),
|
|
23548
23788
|
labels: { cost: messages.cost, tokens: messages.tokens }
|
|
23549
23789
|
}),
|
|
23550
|
-
h(document2, "span", { className: "console-muted console-usage-zone" },
|
|
23790
|
+
h(document2, "span", { className: "console-muted console-usage-zone" }, timeZone)
|
|
23551
23791
|
);
|
|
23552
23792
|
}
|
|
23553
23793
|
function sessionsPanel(title, rows, tableKey) {
|
|
@@ -23694,6 +23934,7 @@ ${detail}` : ""}`
|
|
|
23694
23934
|
const project2 = filterValue(view.project);
|
|
23695
23935
|
return {
|
|
23696
23936
|
range: view.range,
|
|
23937
|
+
timeZone,
|
|
23697
23938
|
...view.harness ? { harness: view.harness } : {},
|
|
23698
23939
|
...model2 !== void 0 ? { model: model2 } : {},
|
|
23699
23940
|
...project2 !== void 0 ? { project: project2 } : {},
|
|
@@ -23706,10 +23947,26 @@ ${detail}` : ""}`
|
|
|
23706
23947
|
if (result && !result.reading.complete) poll = window.setTimeout(load, POLL_MS);
|
|
23707
23948
|
else if (view.autoRefreshMs > 0) poll = window.setTimeout(load, view.autoRefreshMs);
|
|
23708
23949
|
}
|
|
23950
|
+
const harnessNamesRead = createLatestKeyGuard();
|
|
23951
|
+
async function refreshHarnessNames() {
|
|
23952
|
+
const hostId2 = view.hostId;
|
|
23953
|
+
const isCurrent = harnessNamesRead.begin(hostId2);
|
|
23954
|
+
names.clear();
|
|
23955
|
+
try {
|
|
23956
|
+
const value = await request(HARNESS_PLUGIN_LIST_METHOD2, {}, hostId2);
|
|
23957
|
+
if (!isCurrent()) return;
|
|
23958
|
+
for (const plugin of harnessPluginListResultSchema.parse(value).plugins) {
|
|
23959
|
+
names.set(plugin.id, plugin.name);
|
|
23960
|
+
}
|
|
23961
|
+
} catch {
|
|
23962
|
+
if (!isCurrent()) return;
|
|
23963
|
+
}
|
|
23964
|
+
if (!context.signal.aborted) render();
|
|
23965
|
+
}
|
|
23709
23966
|
function load() {
|
|
23710
23967
|
window.clearTimeout(poll);
|
|
23711
23968
|
const requested = params();
|
|
23712
|
-
void context.runLatest(() => request(USAGE_STATISTICS_METHOD, requested), {
|
|
23969
|
+
void context.runLatest(() => request(USAGE_STATISTICS_METHOD, requested, view.hostId), {
|
|
23713
23970
|
success(value) {
|
|
23714
23971
|
const parsed = usageStatisticsResultSchema.safeParse(value);
|
|
23715
23972
|
if (parsed.success) {
|
|
@@ -23734,12 +23991,8 @@ ${detail}` : ""}`
|
|
|
23734
23991
|
}
|
|
23735
23992
|
context.content.replaceChildren(header, prices.element, filters, notices, body);
|
|
23736
23993
|
render();
|
|
23737
|
-
|
|
23738
|
-
|
|
23739
|
-
names.set(plugin.id, plugin.name);
|
|
23740
|
-
}
|
|
23741
|
-
if (!context.signal.aborted) render();
|
|
23742
|
-
}).catch(() => void 0);
|
|
23994
|
+
offerHosts();
|
|
23995
|
+
void refreshHarnessNames();
|
|
23743
23996
|
load();
|
|
23744
23997
|
return () => {
|
|
23745
23998
|
window.clearTimeout(poll);
|
|
@@ -24200,8 +24453,8 @@ ${detail}` : ""}`
|
|
|
24200
24453
|
return input;
|
|
24201
24454
|
}
|
|
24202
24455
|
function createNumberField(document2, input) {
|
|
24203
|
-
const
|
|
24204
|
-
|
|
24456
|
+
const field2 = document2.createElement("div");
|
|
24457
|
+
field2.className = "flex h-8 shrink-0 items-center gap-1.5 rounded-md border border-settings-border bg-settings-surface px-2.5 transition-colors focus-within:border-settings-focus data-[invalid=true]:border-settings-danger";
|
|
24205
24458
|
const control = document2.createElement("input");
|
|
24206
24459
|
control.type = "number";
|
|
24207
24460
|
control.id = input.id;
|
|
@@ -24214,8 +24467,8 @@ ${detail}` : ""}`
|
|
|
24214
24467
|
unit.className = "text-xs text-settings-muted";
|
|
24215
24468
|
unit.setAttribute("aria-hidden", "true");
|
|
24216
24469
|
unit.textContent = input.unit;
|
|
24217
|
-
|
|
24218
|
-
return { field, control };
|
|
24470
|
+
field2.append(control, unit);
|
|
24471
|
+
return { field: field2, control };
|
|
24219
24472
|
}
|
|
24220
24473
|
|
|
24221
24474
|
// src/settings/remote-connections-dialogs.ts
|
|
@@ -24299,7 +24552,7 @@ ${detail}` : ""}`
|
|
|
24299
24552
|
);
|
|
24300
24553
|
if (!dialog) return;
|
|
24301
24554
|
const document2 = options.container.ownerDocument;
|
|
24302
|
-
const
|
|
24555
|
+
const field2 = (label, value, placeholder = "", hint = "") => {
|
|
24303
24556
|
const wrapper = remoteElement(document2, "div", "settings-credential-dialog__field");
|
|
24304
24557
|
const input = remoteElement(document2, "input");
|
|
24305
24558
|
input.id = preferenceId("remote-field");
|
|
@@ -24319,13 +24572,13 @@ ${detail}` : ""}`
|
|
|
24319
24572
|
dialog.body.append(wrapper);
|
|
24320
24573
|
return input;
|
|
24321
24574
|
};
|
|
24322
|
-
const name =
|
|
24575
|
+
const name = field2(t("\u540D\u79F0", "Name"), previous?.displayName ?? "");
|
|
24323
24576
|
name.required = true;
|
|
24324
24577
|
const addressHint = t(
|
|
24325
24578
|
"user@hostname\uFF0C\u6216 ~/.ssh/config \u4E2D\u7684\u4E3B\u673A\u522B\u540D",
|
|
24326
24579
|
"user@hostname, or a host alias from ~/.ssh/config"
|
|
24327
24580
|
);
|
|
24328
|
-
const hostname3 =
|
|
24581
|
+
const hostname3 = field2(
|
|
24329
24582
|
t("SSH \u5730\u5740", "SSH address"),
|
|
24330
24583
|
previous?.sshHost ?? "",
|
|
24331
24584
|
"user@hostname",
|
|
@@ -24334,7 +24587,7 @@ ${detail}` : ""}`
|
|
|
24334
24587
|
hostname3.required = true;
|
|
24335
24588
|
hostname3.pattern = "[^\\s\\-]\\S*";
|
|
24336
24589
|
hostname3.title = addressHint;
|
|
24337
|
-
const port =
|
|
24590
|
+
const port = field2(
|
|
24338
24591
|
t("\u7AEF\u53E3\uFF08\u53EF\u9009\uFF09", "Port (optional)"),
|
|
24339
24592
|
previous?.sshPort?.toString() ?? "",
|
|
24340
24593
|
"22"
|
|
@@ -24343,7 +24596,7 @@ ${detail}` : ""}`
|
|
|
24343
24596
|
port.min = "1";
|
|
24344
24597
|
port.max = "65535";
|
|
24345
24598
|
port.step = "1";
|
|
24346
|
-
const identity =
|
|
24599
|
+
const identity = field2(
|
|
24347
24600
|
t("\u79C1\u94A5\u8DEF\u5F84\uFF08\u53EF\u9009\uFF09", "Identity file (optional)"),
|
|
24348
24601
|
previous?.identity ?? "",
|
|
24349
24602
|
"~/.ssh/id_ed25519"
|
|
@@ -25379,7 +25632,7 @@ ${detail}` : ""}`
|
|
|
25379
25632
|
}
|
|
25380
25633
|
|
|
25381
25634
|
// src/settings/harness-version-panel.ts
|
|
25382
|
-
function createHarnessVersionPanel(document2, messages, signal, agent, client) {
|
|
25635
|
+
function createHarnessVersionPanel(document2, messages, signal, agent, client, onChange = () => void 0) {
|
|
25383
25636
|
const panel = document2.createElement("section");
|
|
25384
25637
|
panel.className = "settings-harness-version";
|
|
25385
25638
|
panel.dataset.harnessVersion = agent;
|
|
@@ -25405,37 +25658,67 @@ ${detail}` : ""}`
|
|
|
25405
25658
|
panel.append(heading, versions, status, actions, note);
|
|
25406
25659
|
let state;
|
|
25407
25660
|
let busy = false;
|
|
25661
|
+
let updating = false;
|
|
25408
25662
|
let unsupported = false;
|
|
25663
|
+
let updatePromise = null;
|
|
25409
25664
|
const render = () => {
|
|
25665
|
+
heading.textContent = state?.versionKind === "application" ? messages.harnessVersionApplicationTitle : messages.harnessVersionTitle;
|
|
25410
25666
|
current.textContent = `${messages.harnessVersionCurrent}: ${state?.currentVersion ?? "\u2014"}`;
|
|
25411
25667
|
latest.textContent = `${messages.harnessVersionLatest}: ${harnessVersionLabel(state, messages.harnessVersion)}`;
|
|
25412
25668
|
update.disabled = busy || signal.aborted || !state?.canUpdate || !state.updateAvailable;
|
|
25669
|
+
const manualUrl = !state?.canUpdate && state?.updateAvailable ? state.manualUpdateUrl : void 0;
|
|
25670
|
+
actions.replaceChildren(update);
|
|
25671
|
+
update.hidden = !busy && !signal.aborted && Boolean(manualUrl);
|
|
25672
|
+
if (update.hidden && manualUrl) {
|
|
25673
|
+
const download2 = document2.createElement("a");
|
|
25674
|
+
download2.className = "settings-command-button settings-command-button--secondary";
|
|
25675
|
+
download2.dataset.harnessVersionAction = "download-update";
|
|
25676
|
+
download2.textContent = messages.harnessVersionDownloadUpdate;
|
|
25677
|
+
download2.href = manualUrl;
|
|
25678
|
+
download2.target = "_blank";
|
|
25679
|
+
download2.rel = "noopener noreferrer";
|
|
25680
|
+
actions.append(download2);
|
|
25681
|
+
}
|
|
25413
25682
|
update.textContent = state?.canUpdate && state.latestVersion !== "Unknown" && !state.updateAvailable ? messages.harnessVersionUpToDate : messages.harnessVersionUpdate;
|
|
25414
25683
|
const detail = harnessVersionNote(state, messages.harnessVersion);
|
|
25415
|
-
note.textContent = detail ? `${detail} ${messages.harnessVersionNote}` : messages.harnessVersionNote;
|
|
25684
|
+
note.textContent = detail ? !state?.canUpdate ? detail : `${detail} ${messages.harnessVersionNote}` : messages.harnessVersionNote;
|
|
25416
25685
|
};
|
|
25417
25686
|
const run = async (action) => {
|
|
25418
|
-
if (busy || unsupported || signal.aborted) return;
|
|
25419
|
-
if (action === "update" && (!state?.canUpdate || !state.updateAvailable)) return;
|
|
25687
|
+
if (busy || unsupported || signal.aborted) return false;
|
|
25688
|
+
if (action === "update" && (!state?.canUpdate || !state.updateAvailable)) return false;
|
|
25420
25689
|
busy = true;
|
|
25690
|
+
updating = action === "update";
|
|
25691
|
+
onChange();
|
|
25421
25692
|
status.textContent = action === "check" ? messages.harnessVersionChecking : messages.harnessVersionUpdating;
|
|
25422
25693
|
render();
|
|
25423
25694
|
try {
|
|
25424
25695
|
const result = await client.run(action);
|
|
25425
|
-
if (signal.aborted) return;
|
|
25696
|
+
if (signal.aborted) return false;
|
|
25426
25697
|
state = result;
|
|
25427
25698
|
status.textContent = !result.canUpdate ? messages.harnessVersionManual : action === "update" ? result.updateAvailable ? messages.harnessVersionFailed : messages.harnessVersionUpdated : "";
|
|
25699
|
+
return result.canUpdate && !result.updateAvailable;
|
|
25428
25700
|
} catch (error51) {
|
|
25429
|
-
if (signal.aborted) return;
|
|
25701
|
+
if (signal.aborted) return false;
|
|
25430
25702
|
unsupported = typeof error51 === "object" && error51 !== null && "code" in error51 && (error51.code === -32601 || error51.code === -32078);
|
|
25431
25703
|
status.textContent = unsupported ? messages.harnessVersionUnsupported : messages.harnessVersionFailed;
|
|
25432
25704
|
if (state) state = { ...state, canUpdate: false };
|
|
25705
|
+
return false;
|
|
25433
25706
|
} finally {
|
|
25434
25707
|
busy = false;
|
|
25435
|
-
|
|
25708
|
+
updating = false;
|
|
25709
|
+
if (!signal.aborted) {
|
|
25710
|
+
render();
|
|
25711
|
+
onChange();
|
|
25712
|
+
}
|
|
25436
25713
|
}
|
|
25437
25714
|
};
|
|
25438
|
-
|
|
25715
|
+
const updateVersion = () => {
|
|
25716
|
+
updatePromise ??= run("update").finally(() => {
|
|
25717
|
+
updatePromise = null;
|
|
25718
|
+
});
|
|
25719
|
+
return updatePromise;
|
|
25720
|
+
};
|
|
25721
|
+
update.addEventListener("click", () => void updateVersion());
|
|
25439
25722
|
const owner = document2.defaultView;
|
|
25440
25723
|
let checkFrame = null;
|
|
25441
25724
|
let checkTimer = null;
|
|
@@ -25462,7 +25745,95 @@ ${detail}` : ""}`
|
|
|
25462
25745
|
} else {
|
|
25463
25746
|
void run("check");
|
|
25464
25747
|
}
|
|
25465
|
-
return
|
|
25748
|
+
return {
|
|
25749
|
+
element: panel,
|
|
25750
|
+
get state() {
|
|
25751
|
+
return state;
|
|
25752
|
+
},
|
|
25753
|
+
get updating() {
|
|
25754
|
+
return updating;
|
|
25755
|
+
},
|
|
25756
|
+
update: updateVersion
|
|
25757
|
+
};
|
|
25758
|
+
}
|
|
25759
|
+
|
|
25760
|
+
// src/settings/connection-versions.ts
|
|
25761
|
+
function createConnectionVersions(document2, messages, signal, diagnostics, onChange) {
|
|
25762
|
+
const panels = /* @__PURE__ */ new Map();
|
|
25763
|
+
const installation = diagnostics?.installation?.bind(diagnostics);
|
|
25764
|
+
return {
|
|
25765
|
+
get(hostId2, agent) {
|
|
25766
|
+
if (!installation || signal.aborted) return void 0;
|
|
25767
|
+
const key = JSON.stringify([hostId2, agent]);
|
|
25768
|
+
let panel = panels.get(key);
|
|
25769
|
+
if (!panel) {
|
|
25770
|
+
panel = createHarnessVersionPanel(
|
|
25771
|
+
document2,
|
|
25772
|
+
messages,
|
|
25773
|
+
signal,
|
|
25774
|
+
agent,
|
|
25775
|
+
{
|
|
25776
|
+
run: (action) => installation(hostId2, agent, action)
|
|
25777
|
+
},
|
|
25778
|
+
onChange
|
|
25779
|
+
);
|
|
25780
|
+
panels.set(key, panel);
|
|
25781
|
+
}
|
|
25782
|
+
return panel;
|
|
25783
|
+
}
|
|
25784
|
+
};
|
|
25785
|
+
}
|
|
25786
|
+
|
|
25787
|
+
// src/settings/connection-updates.ts
|
|
25788
|
+
function createConnectionUpdates(document2, messages, signal, onChange) {
|
|
25789
|
+
const batches = /* @__PURE__ */ new Map();
|
|
25790
|
+
const eligible = (panels) => panels.filter((panel) => panel.state?.updateAvailable && panel.state.canUpdate);
|
|
25791
|
+
const start = async (hostId2, panels) => {
|
|
25792
|
+
if (signal.aborted || batches.get(hostId2)?.running) return;
|
|
25793
|
+
const targets = eligible(panels);
|
|
25794
|
+
if (!targets.length) return;
|
|
25795
|
+
const batch = { running: true, total: targets.length, succeeded: 0, failed: 0 };
|
|
25796
|
+
batches.set(hostId2, batch);
|
|
25797
|
+
onChange();
|
|
25798
|
+
await Promise.all(
|
|
25799
|
+
targets.map(async (panel) => {
|
|
25800
|
+
try {
|
|
25801
|
+
if (await panel.update()) batch.succeeded++;
|
|
25802
|
+
else batch.failed++;
|
|
25803
|
+
} catch {
|
|
25804
|
+
batch.failed++;
|
|
25805
|
+
}
|
|
25806
|
+
if (!signal.aborted) onChange();
|
|
25807
|
+
})
|
|
25808
|
+
);
|
|
25809
|
+
batch.running = false;
|
|
25810
|
+
if (!signal.aborted) onChange();
|
|
25811
|
+
};
|
|
25812
|
+
return {
|
|
25813
|
+
createControls(hostId2, panels) {
|
|
25814
|
+
const batch = batches.get(hostId2);
|
|
25815
|
+
const count3 = eligible(panels).length;
|
|
25816
|
+
const button2 = document2.createElement("button");
|
|
25817
|
+
button2.type = "button";
|
|
25818
|
+
button2.className = "settings-command-button settings-command-button--secondary settings-connection-update-all";
|
|
25819
|
+
button2.dataset.connectionAction = "update-all";
|
|
25820
|
+
button2.disabled = signal.aborted || Boolean(batch?.running) || !count3;
|
|
25821
|
+
button2.title = messages.harnessUpdateAllDescription;
|
|
25822
|
+
const label = batch?.running ? `${messages.harnessUpdateAllProgress} ${batch.succeeded + batch.failed}/${batch.total}` : count3 ? `${messages.harnessUpdateAll} (${count3})` : messages.harnessUpdateAll;
|
|
25823
|
+
button2.append(createRendererSettingsIcon("download", 15), label);
|
|
25824
|
+
button2.addEventListener("click", () => {
|
|
25825
|
+
if (!button2.disabled) void start(hostId2, panels);
|
|
25826
|
+
});
|
|
25827
|
+
const result = document2.createElement("p");
|
|
25828
|
+
result.className = "settings-connection-update-result";
|
|
25829
|
+
result.setAttribute("role", "status");
|
|
25830
|
+
result.hidden = !batch || batch.running;
|
|
25831
|
+
if (batch && !batch.running) {
|
|
25832
|
+
result.textContent = messages.harnessUpdateAllResult.replace("{succeeded}", String(batch.succeeded)).replace("{failed}", String(batch.failed));
|
|
25833
|
+
}
|
|
25834
|
+
return { button: button2, result };
|
|
25835
|
+
}
|
|
25836
|
+
};
|
|
25466
25837
|
}
|
|
25467
25838
|
|
|
25468
25839
|
// src/settings/selection-scroll.ts
|
|
@@ -25732,6 +26103,7 @@ ${error51.stderrTail}`] : []
|
|
|
25732
26103
|
status.dataset.connectionTone = connectionStatusTone(item.availability, item.error !== null);
|
|
25733
26104
|
status.setAttribute("role", "cell");
|
|
25734
26105
|
status.textContent = item.error?.code === "authenticationRequired" ? messages.connectionLoginRequired : item.error?.code === "configurationRequired" ? messages.connectionConfigurationRequired : connectionStatusLabel(item.availability, messages, item.error !== null);
|
|
26106
|
+
const version2 = item.version;
|
|
25735
26107
|
const action = document2.createElement("div");
|
|
25736
26108
|
action.className = "settings-connection-row__action";
|
|
25737
26109
|
action.setAttribute("role", "cell");
|
|
@@ -25747,6 +26119,31 @@ ${error51.stderrTail}`] : []
|
|
|
25747
26119
|
action.append(viewError);
|
|
25748
26120
|
}
|
|
25749
26121
|
if (longContext) action.append(longContext);
|
|
26122
|
+
if (version2?.state?.updateAvailable && !version2.updating) {
|
|
26123
|
+
const available = document2.createElement("span");
|
|
26124
|
+
available.className = "settings-connection-version-available";
|
|
26125
|
+
available.textContent = messages.harnessVersionAvailable;
|
|
26126
|
+
available.title = `${messages.harnessVersionCurrent}: ${version2.state.currentVersion ?? "\u2014"}
|
|
26127
|
+
${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages.harnessVersion)}`;
|
|
26128
|
+
action.append(available);
|
|
26129
|
+
}
|
|
26130
|
+
if (version2?.state?.updateAvailable && version2.state.canUpdate) {
|
|
26131
|
+
const update = document2.createElement("button");
|
|
26132
|
+
update.type = "button";
|
|
26133
|
+
update.className = "settings-connection-install-link";
|
|
26134
|
+
update.dataset.connectionAction = "update";
|
|
26135
|
+
update.disabled = version2.updating;
|
|
26136
|
+
update.title = messages.harnessVersionUpdate;
|
|
26137
|
+
update.setAttribute("aria-label", `${messages.harnessVersionUpdate}: ${item.name}`);
|
|
26138
|
+
update.append(createRendererSettingsIcon("download", 17));
|
|
26139
|
+
update.addEventListener("click", (event) => {
|
|
26140
|
+
event.stopPropagation();
|
|
26141
|
+
if (update.disabled) return;
|
|
26142
|
+
void version2.update();
|
|
26143
|
+
select();
|
|
26144
|
+
});
|
|
26145
|
+
action.append(update);
|
|
26146
|
+
}
|
|
25750
26147
|
if (group) {
|
|
25751
26148
|
const toggle = document2.createElement("button");
|
|
25752
26149
|
toggle.type = "button";
|
|
@@ -26064,9 +26461,7 @@ ${error51.stderrTail}`] : []
|
|
|
26064
26461
|
let selectedHostId = null;
|
|
26065
26462
|
let selectedItemKey = null;
|
|
26066
26463
|
let launchControls = null;
|
|
26067
|
-
const versionPanels = /* @__PURE__ */ new Map();
|
|
26068
26464
|
const longContextControls = /* @__PURE__ */ new Map();
|
|
26069
|
-
const updatingVersions = /* @__PURE__ */ new Set();
|
|
26070
26465
|
const hostNames = /* @__PURE__ */ new Map();
|
|
26071
26466
|
let latestSnapshot = null;
|
|
26072
26467
|
let disposeHostScroller = () => void 0;
|
|
@@ -26113,7 +26508,15 @@ ${error51.stderrTail}`] : []
|
|
|
26113
26508
|
return element;
|
|
26114
26509
|
};
|
|
26115
26510
|
const diagnostics = getDiagnostics();
|
|
26511
|
+
const versions = createConnectionVersions(
|
|
26512
|
+
document2,
|
|
26513
|
+
messages,
|
|
26514
|
+
context.signal,
|
|
26515
|
+
diagnostics,
|
|
26516
|
+
scheduleRender
|
|
26517
|
+
);
|
|
26116
26518
|
const installs = diagnostics ? harnessInstallStore(diagnostics) : null;
|
|
26519
|
+
const updates = createConnectionUpdates(document2, messages, context.signal, scheduleRender);
|
|
26117
26520
|
const runRefresh = () => {
|
|
26118
26521
|
if (pending || !diagnostics) return;
|
|
26119
26522
|
pending = true;
|
|
@@ -26249,10 +26652,13 @@ ${error51.stderrTail}`] : []
|
|
|
26249
26652
|
const agent = item.agentSnapshot?.agent;
|
|
26250
26653
|
if (!agent) return item;
|
|
26251
26654
|
const state = installs?.get(selectedHost.hostId, agent);
|
|
26655
|
+
const availability = state?.status ?? item.availability;
|
|
26656
|
+
const version2 = item.agentSnapshot?.availability !== "notInstalled" && availability !== "installing" && availability !== "checking" ? versions.get(selectedHost.hostId, agent) : void 0;
|
|
26252
26657
|
return {
|
|
26253
26658
|
...item,
|
|
26254
26659
|
...state ? { availability: state.status } : {},
|
|
26255
|
-
...
|
|
26660
|
+
...version2 ? { version: version2 } : {},
|
|
26661
|
+
...version2?.updating ? { availability: "updating" } : {},
|
|
26256
26662
|
...state?.error ? { installError: state.error } : {},
|
|
26257
26663
|
...diagnostics?.installation && harnessHasInstallCommands(item.agentSnapshot?.plugin) ? {
|
|
26258
26664
|
install: () => {
|
|
@@ -26289,30 +26695,7 @@ ${error51.stderrTail}`] : []
|
|
|
26289
26695
|
openExternalUrl
|
|
26290
26696
|
);
|
|
26291
26697
|
launchControls = { hostId: selectedHost.hostId, itemKey: item.key, element };
|
|
26292
|
-
|
|
26293
|
-
const installation = diagnostics?.installation?.bind(diagnostics);
|
|
26294
|
-
if (agent && item.agentSnapshot?.availability !== "notInstalled" && item.availability !== "installing" && item.availability !== "checking" && installation) {
|
|
26295
|
-
const key = JSON.stringify([selectedHost.hostId, agent]);
|
|
26296
|
-
let panel = versionPanels.get(key);
|
|
26297
|
-
if (!panel) {
|
|
26298
|
-
const hostId2 = selectedHost.hostId;
|
|
26299
|
-
panel = createHarnessVersionPanel(document2, messages, context.signal, agent, {
|
|
26300
|
-
async run(action) {
|
|
26301
|
-
if (action !== "update") return installation(hostId2, agent, action);
|
|
26302
|
-
updatingVersions.add(key);
|
|
26303
|
-
if (diagnostics) render(diagnostics.snapshot());
|
|
26304
|
-
try {
|
|
26305
|
-
return await installation(hostId2, agent, action);
|
|
26306
|
-
} finally {
|
|
26307
|
-
updatingVersions.delete(key);
|
|
26308
|
-
if (!context.signal.aborted && diagnostics) render(diagnostics.snapshot());
|
|
26309
|
-
}
|
|
26310
|
-
}
|
|
26311
|
-
});
|
|
26312
|
-
versionPanels.set(key, panel);
|
|
26313
|
-
}
|
|
26314
|
-
inspector.append(panel);
|
|
26315
|
-
}
|
|
26698
|
+
if (item.version) inspector.append(item.version.element);
|
|
26316
26699
|
};
|
|
26317
26700
|
for (const pinnedItem of items.filter((item) => !item.agentSnapshot)) {
|
|
26318
26701
|
const row = createConnectionRow(
|
|
@@ -26507,7 +26890,14 @@ ${error51.stderrTail}`] : []
|
|
|
26507
26890
|
}
|
|
26508
26891
|
const selectedItem = items.find((item) => item.key === selectedItemKey) ?? items[0];
|
|
26509
26892
|
if (selectedItem) selectItem(selectedItem);
|
|
26510
|
-
|
|
26893
|
+
const updateControls = updates.createControls(
|
|
26894
|
+
selectedHost.hostId,
|
|
26895
|
+
items.flatMap((item) => item.version ? [item.version] : [])
|
|
26896
|
+
);
|
|
26897
|
+
const hostHeader = document2.createElement("div");
|
|
26898
|
+
hostHeader.className = "settings-connection-host-header";
|
|
26899
|
+
hostHeader.append(hostStrip, updateControls.button);
|
|
26900
|
+
list.append(hostHeader, updateControls.result, tableHeader, rows);
|
|
26511
26901
|
layout.append(list, inspector);
|
|
26512
26902
|
content.replaceChildren(layout);
|
|
26513
26903
|
disposeHostScroller = configureHostScroller(
|
|
@@ -26799,6 +27189,50 @@ ${error51.stderrTail}`] : []
|
|
|
26799
27189
|
};
|
|
26800
27190
|
setRefreshLabel(false);
|
|
26801
27191
|
header.append(headingCopy, refresh);
|
|
27192
|
+
let selectedHostId;
|
|
27193
|
+
let availableHostIds = [];
|
|
27194
|
+
let displayedHostId = "";
|
|
27195
|
+
let hostsLocked = false;
|
|
27196
|
+
const hostButtons = [];
|
|
27197
|
+
const hostLabel = document2.createElement("div");
|
|
27198
|
+
hostLabel.className = "settings-session-import-host";
|
|
27199
|
+
const hostCaption = document2.createElement("span");
|
|
27200
|
+
hostCaption.textContent = "Host";
|
|
27201
|
+
const hostOptions = document2.createElement("div");
|
|
27202
|
+
hostOptions.className = "settings-connection-host-tabs";
|
|
27203
|
+
hostOptions.setAttribute("role", "group");
|
|
27204
|
+
hostOptions.setAttribute("aria-label", "Host");
|
|
27205
|
+
hostLabel.append(hostCaption, hostOptions);
|
|
27206
|
+
const lockHosts = (locked) => {
|
|
27207
|
+
hostsLocked = locked;
|
|
27208
|
+
for (const button2 of hostButtons) button2.disabled = locked;
|
|
27209
|
+
};
|
|
27210
|
+
const renderHosts = (client) => {
|
|
27211
|
+
const current = selectedHostId ?? (client ? client.hostId ?? "local" : "");
|
|
27212
|
+
availableHostIds = [
|
|
27213
|
+
.../* @__PURE__ */ new Set([
|
|
27214
|
+
...getDiagnostics()?.snapshot().hosts.map(({ hostId: hostId2 }) => hostId2) ?? [],
|
|
27215
|
+
...current ? [current] : []
|
|
27216
|
+
])
|
|
27217
|
+
];
|
|
27218
|
+
displayedHostId = current;
|
|
27219
|
+
const scrollLeft = hostOptions.scrollLeft;
|
|
27220
|
+
hostOptions.replaceChildren();
|
|
27221
|
+
hostButtons.length = 0;
|
|
27222
|
+
for (const hostId2 of availableHostIds) {
|
|
27223
|
+
const button2 = document2.createElement("button");
|
|
27224
|
+
button2.type = "button";
|
|
27225
|
+
button2.className = "settings-connection-host-tab";
|
|
27226
|
+
button2.dataset.sessionImportHost = hostId2;
|
|
27227
|
+
button2.textContent = connectionHostName(hostId2, messages);
|
|
27228
|
+
button2.setAttribute("aria-pressed", String(hostId2 === current));
|
|
27229
|
+
button2.disabled = hostsLocked;
|
|
27230
|
+
button2.addEventListener("click", () => selectHost(hostId2));
|
|
27231
|
+
hostButtons.push(button2);
|
|
27232
|
+
hostOptions.append(button2);
|
|
27233
|
+
}
|
|
27234
|
+
hostOptions.scrollLeft = scrollLeft;
|
|
27235
|
+
};
|
|
26802
27236
|
const harness2 = document2.createElement("div");
|
|
26803
27237
|
harness2.className = "settings-session-import-harness";
|
|
26804
27238
|
const harnessOptions = document2.createElement("div");
|
|
@@ -26851,6 +27285,7 @@ ${error51.stderrTail}`] : []
|
|
|
26851
27285
|
const listControls = createSessionImportListControls(document2, messages, () => load());
|
|
26852
27286
|
context.content.append(
|
|
26853
27287
|
header,
|
|
27288
|
+
hostLabel,
|
|
26854
27289
|
harness2,
|
|
26855
27290
|
listControls.searchForm,
|
|
26856
27291
|
importStatus,
|
|
@@ -26862,6 +27297,7 @@ ${error51.stderrTail}`] : []
|
|
|
26862
27297
|
let importingId = null;
|
|
26863
27298
|
let actions = [];
|
|
26864
27299
|
const updateImportActions = () => {
|
|
27300
|
+
lockHosts(importingId !== null);
|
|
26865
27301
|
listControls.setBusy(importingId !== null, importingId !== null);
|
|
26866
27302
|
for (const button2 of sourceButtons) button2.disabled = importingId !== null;
|
|
26867
27303
|
for (const { button: button2, candidate } of actions) {
|
|
@@ -26882,7 +27318,10 @@ ${error51.stderrTail}`] : []
|
|
|
26882
27318
|
listControls.setTotal(0);
|
|
26883
27319
|
candidates = [];
|
|
26884
27320
|
actions = [];
|
|
26885
|
-
const status = createStatus(
|
|
27321
|
+
const status = createStatus(
|
|
27322
|
+
document2,
|
|
27323
|
+
!displayedHostId && availableHostIds.length > 1 ? messages.sessionImportSelectHost : messages.sessionImportUnavailable
|
|
27324
|
+
);
|
|
26886
27325
|
content.replaceChildren(status);
|
|
26887
27326
|
if (focus) {
|
|
26888
27327
|
status.tabIndex = -1;
|
|
@@ -26960,6 +27399,7 @@ ${error51.stderrTail}`] : []
|
|
|
26960
27399
|
retry.className = "settings-command-button";
|
|
26961
27400
|
retry.dataset.sessionImportAction = "retry-open";
|
|
26962
27401
|
const setRetrying = (pending) => {
|
|
27402
|
+
lockHosts(pending);
|
|
26963
27403
|
listControls.setBusy(pending, pending);
|
|
26964
27404
|
for (const button2 of sourceButtons) button2.disabled = pending;
|
|
26965
27405
|
retry.disabled = pending;
|
|
@@ -27112,23 +27552,21 @@ ${error51.stderrTail}`] : []
|
|
|
27112
27552
|
const load = () => {
|
|
27113
27553
|
if (importingId !== null || context.signal.aborted) return;
|
|
27114
27554
|
loadedClient = null;
|
|
27115
|
-
const client = getClient();
|
|
27116
|
-
|
|
27117
|
-
|
|
27118
|
-
|
|
27119
|
-
|
|
27120
|
-
|
|
27121
|
-
|
|
27122
|
-
|
|
27123
|
-
refresh.disabled = true;
|
|
27124
|
-
setRefreshLabel(true);
|
|
27125
|
-
content.replaceChildren(createStatus(document2, messages.sessionImportRefreshing));
|
|
27555
|
+
const client = getClient(selectedHostId);
|
|
27556
|
+
renderHosts(client);
|
|
27557
|
+
listControls.setBusy(client !== null);
|
|
27558
|
+
refresh.disabled = client !== null;
|
|
27559
|
+
setRefreshLabel(client !== null);
|
|
27560
|
+
if (client)
|
|
27561
|
+
content.replaceChildren(createStatus(document2, messages.sessionImportRefreshing));
|
|
27562
|
+
else renderUnavailable();
|
|
27126
27563
|
const requestedHarness = selectedHarness;
|
|
27127
27564
|
const pageParams = listControls.params();
|
|
27128
27565
|
void context.runLatest(
|
|
27129
27566
|
async (signal) => {
|
|
27567
|
+
if (!client) throw new RendererSessionImportUnavailableError();
|
|
27130
27568
|
const missing = new Set(
|
|
27131
|
-
getDiagnostics()?.snapshot().hosts.find(({ hostId: hostId2 }) => hostId2 === "local")?.agents.filter(({ availability }) => availability === "notInstalled").map(({ agent }) => agent)
|
|
27569
|
+
getDiagnostics()?.snapshot().hosts.find(({ hostId: hostId2 }) => hostId2 === (client.hostId ?? "local"))?.agents.filter(({ availability }) => availability === "notInstalled").map(({ agent }) => agent)
|
|
27132
27570
|
);
|
|
27133
27571
|
const harnesses = (await client.listSessionImportSources()).harnesses.filter(
|
|
27134
27572
|
({ harnessId }) => !missing.has(harnessId)
|
|
@@ -27169,6 +27607,19 @@ ${error51.stderrTail}`] : []
|
|
|
27169
27607
|
}
|
|
27170
27608
|
);
|
|
27171
27609
|
};
|
|
27610
|
+
const selectHost = (hostId2) => {
|
|
27611
|
+
if (hostsLocked || !availableHostIds.includes(hostId2) || hostId2 === selectedHostId) return;
|
|
27612
|
+
selectedHostId = hostId2;
|
|
27613
|
+
selectedHarness = null;
|
|
27614
|
+
sources = [];
|
|
27615
|
+
candidates = [];
|
|
27616
|
+
actions = [];
|
|
27617
|
+
importStatus.replaceChildren();
|
|
27618
|
+
listControls.reset();
|
|
27619
|
+
renderHarnessOptions();
|
|
27620
|
+
load();
|
|
27621
|
+
hostButtons.find((button2) => button2.dataset.sessionImportHost === hostId2)?.focus();
|
|
27622
|
+
};
|
|
27172
27623
|
refresh.addEventListener("click", load);
|
|
27173
27624
|
load();
|
|
27174
27625
|
return void 0;
|
|
@@ -27487,14 +27938,14 @@ ${error51.stderrTail}`] : []
|
|
|
27487
27938
|
description: messages.idleReleaseTimeoutDescription,
|
|
27488
27939
|
controlId: minutesId
|
|
27489
27940
|
});
|
|
27490
|
-
const { field, control: minutes } = createNumberField(document2, {
|
|
27941
|
+
const { field: field2, control: minutes } = createNumberField(document2, {
|
|
27491
27942
|
id: minutesId,
|
|
27492
27943
|
describedBy: timeout.description.id,
|
|
27493
27944
|
unit: messages.idleReleaseMinutes,
|
|
27494
27945
|
min: IDLE_RELEASE_TIMEOUT_MINUTES_MIN,
|
|
27495
27946
|
max: IDLE_RELEASE_TIMEOUT_MINUTES_MAX
|
|
27496
27947
|
});
|
|
27497
|
-
timeout.item.append(
|
|
27948
|
+
timeout.item.append(field2);
|
|
27498
27949
|
timeout.item.id = preferenceId("idle-release-timeout");
|
|
27499
27950
|
enabled.setAttribute("aria-controls", timeout.item.id);
|
|
27500
27951
|
card.append(toggle.item, timeout.item);
|
|
@@ -27515,7 +27966,7 @@ ${error51.stderrTail}`] : []
|
|
|
27515
27966
|
statusText.textContent = value === "applied" ? "" : statusMessages[value];
|
|
27516
27967
|
};
|
|
27517
27968
|
const setInvalid = (invalid) => {
|
|
27518
|
-
|
|
27969
|
+
field2.dataset.invalid = String(invalid);
|
|
27519
27970
|
timeout.description.dataset.invalid = String(invalid);
|
|
27520
27971
|
timeout.description.textContent = invalid ? messages.idleReleaseInvalid : messages.idleReleaseTimeoutDescription;
|
|
27521
27972
|
minutes.setAttribute("aria-invalid", String(invalid));
|
|
@@ -29395,6 +29846,43 @@ ${error51.stderrTail}`] : []
|
|
|
29395
29846
|
});
|
|
29396
29847
|
}
|
|
29397
29848
|
|
|
29849
|
+
// src/settings/harness-schedules-page.ts
|
|
29850
|
+
function createHarnessSchedulesPage(messages, options) {
|
|
29851
|
+
const t = (zh, en) => messages.locale === "zh-CN" ? zh : en;
|
|
29852
|
+
return {
|
|
29853
|
+
id: "harness-schedules",
|
|
29854
|
+
label: t("\u5B9A\u65F6\u4EFB\u52A1", "Schedules"),
|
|
29855
|
+
icon: "schedules",
|
|
29856
|
+
mount(context) {
|
|
29857
|
+
const navigate = () => {
|
|
29858
|
+
context.content.replaceChildren();
|
|
29859
|
+
void context.runLatest((signal) => options.openSchedules(signal), {
|
|
29860
|
+
success() {
|
|
29861
|
+
},
|
|
29862
|
+
failure() {
|
|
29863
|
+
const document2 = context.content.ownerDocument;
|
|
29864
|
+
const status = document2.createElement("p");
|
|
29865
|
+
status.setAttribute("role", "status");
|
|
29866
|
+
status.className = "text-sm text-settings-muted";
|
|
29867
|
+
status.textContent = t(
|
|
29868
|
+
"\u65E0\u6CD5\u6253\u5F00\u5B98\u65B9\u5B9A\u65F6\u4EFB\u52A1\u9875\uFF0C\u8BF7\u91CD\u8BD5\u6216\u4ECE\u5B98\u65B9\u4FA7\u680F\u8FDB\u5165\u3002",
|
|
29869
|
+
"Could not open the official schedules page. Retry or use the Desktop sidebar."
|
|
29870
|
+
);
|
|
29871
|
+
const retry = document2.createElement("button");
|
|
29872
|
+
retry.type = "button";
|
|
29873
|
+
retry.className = "rounded-lg px-3 py-2 text-sm text-settings-text hover:bg-settings-hover focus-visible:outline-2 focus-visible:outline-settings-focus";
|
|
29874
|
+
retry.textContent = t("\u91CD\u8BD5", "Retry");
|
|
29875
|
+
retry.addEventListener("click", navigate);
|
|
29876
|
+
context.content.replaceChildren(status, retry);
|
|
29877
|
+
}
|
|
29878
|
+
});
|
|
29879
|
+
};
|
|
29880
|
+
navigate();
|
|
29881
|
+
return void 0;
|
|
29882
|
+
}
|
|
29883
|
+
};
|
|
29884
|
+
}
|
|
29885
|
+
|
|
29398
29886
|
// src/settings/update-request.ts
|
|
29399
29887
|
var RENDERER_UPDATE_REQUEST_TIMEOUT_MS = 15e3;
|
|
29400
29888
|
var RendererUpdateRequestTimeoutError = class extends Error {
|
|
@@ -29805,8 +30293,9 @@ ${error51.stderrTail}`] : []
|
|
|
29805
30293
|
const starBanner = updateStarBanner(document2, messages);
|
|
29806
30294
|
context.content.append(header, metadata, panel, controls, starBanner, notes);
|
|
29807
30295
|
const setManualFallback = (fallback) => {
|
|
29808
|
-
controls.className =
|
|
29809
|
-
|
|
30296
|
+
controls.className = fallback ? "settings-update-controls" : "settings-update-controls is-quiet";
|
|
30297
|
+
const windowsNpm = windows && installationValue.textContent === messages.updateInstallationNpm;
|
|
30298
|
+
manualNpmDescription.textContent = fallback ? windowsNpm ? messages.updateWindowsNpmDescription : messages.updateManualFallbackDescription : windowsNpm ? messages.updateWindowsNpmDescription : messages.updateManualNpmDescription;
|
|
29810
30299
|
manualNpmDescription.className = fallback ? "settings-update-manual-description is-fallback" : "settings-update-manual-description";
|
|
29811
30300
|
};
|
|
29812
30301
|
let pollTimer;
|
|
@@ -29958,10 +30447,13 @@ ${error51.stderrTail}`] : []
|
|
|
29958
30447
|
panel.dataset.updateState = view;
|
|
29959
30448
|
panel.replaceChildren();
|
|
29960
30449
|
setManualFallback(Boolean(result.error) || actionableStatus !== null);
|
|
29961
|
-
const title = actionableStatus ? messages.updateFailed : result.error ? messages.updateFailed : result.updateAvailable ? messages.
|
|
29962
|
-
const
|
|
30450
|
+
const title = actionableStatus ? messages.updateFailed : result.error ? messages.updateFailed : result.updateAvailable ? messages.updateAvailable : messages.updateUpToDate;
|
|
30451
|
+
const inlineUpdate = !result.error && !actionableStatus && result.updateAvailable;
|
|
30452
|
+
if (inlineUpdate) panel.dataset.inline = "";
|
|
30453
|
+
else delete panel.dataset.inline;
|
|
30454
|
+
const head = createPanelHead(document2, view, title);
|
|
29963
30455
|
const buttons = [];
|
|
29964
|
-
if (
|
|
30456
|
+
if (result.updateAvailable && result.installationAvailable && (!windows || result.installation !== "npm")) {
|
|
29965
30457
|
const update = document2.createElement("button");
|
|
29966
30458
|
update.type = "button";
|
|
29967
30459
|
update.className = "settings-command-button";
|
|
@@ -30019,7 +30511,7 @@ ${error51.stderrTail}`] : []
|
|
|
30019
30511
|
}
|
|
30020
30512
|
});
|
|
30021
30513
|
}
|
|
30022
|
-
function createDefaultRendererSettingsPages(messages = DEFAULT_RENDERER_SETTINGS_MESSAGES, getUpdateClient = () => null, getDiagnostics = () => null, getAccountClient = () => null, getSessionImportClient = () => null, openImportedThread = () => Promise.reject(new Error("Imported Thread navigation is unavailable")), getLoadedSessionsClient = () => null, getRemoteConnections = () => null, requestUsageStatistics = () => Promise.reject(new Error("Local Host connection is unavailable"))) {
|
|
30514
|
+
function createDefaultRendererSettingsPages(messages = DEFAULT_RENDERER_SETTINGS_MESSAGES, getUpdateClient = () => null, getDiagnostics = () => null, getAccountClient = () => null, getSessionImportClient = () => null, openImportedThread = () => Promise.reject(new Error("Imported Thread navigation is unavailable")), getLoadedSessionsClient = () => null, getRemoteConnections = () => null, requestUsageStatistics = () => Promise.reject(new Error("Local Host connection is unavailable")), usageStatisticsHosts, harnessSchedules) {
|
|
30023
30515
|
return Object.freeze([
|
|
30024
30516
|
createConnectionsSettingsPage(messages, getDiagnostics, void 0, getRemoteConnections, () => {
|
|
30025
30517
|
const client = getUpdateClient();
|
|
@@ -30027,6 +30519,7 @@ ${error51.stderrTail}`] : []
|
|
|
30027
30519
|
}),
|
|
30028
30520
|
createRemoteConnectionsPage(messages, getRemoteConnections),
|
|
30029
30521
|
createAccountsSettingsPage(messages, getAccountClient),
|
|
30522
|
+
...harnessSchedules ? [createHarnessSchedulesPage(messages, harnessSchedules)] : [],
|
|
30030
30523
|
createSessionImportSettingsPage(
|
|
30031
30524
|
messages,
|
|
30032
30525
|
getSessionImportClient,
|
|
@@ -30036,7 +30529,8 @@ ${error51.stderrTail}`] : []
|
|
|
30036
30529
|
createUsageStatisticsPage(
|
|
30037
30530
|
consoleMessages(messages.locale),
|
|
30038
30531
|
requestUsageStatistics,
|
|
30039
|
-
messages.locale
|
|
30532
|
+
messages.locale,
|
|
30533
|
+
usageStatisticsHosts
|
|
30040
30534
|
),
|
|
30041
30535
|
createAppearanceSettingsPage(messages, getLoadedSessionsClient),
|
|
30042
30536
|
createPluginsSettingsPage(messages, getDiagnostics),
|
|
@@ -30576,6 +31070,49 @@ ${error51.stderrTail}`] : []
|
|
|
30576
31070
|
outline-offset: 2px;
|
|
30577
31071
|
}
|
|
30578
31072
|
|
|
31073
|
+
.settings-session-import-harness + .settings-page-description {
|
|
31074
|
+
margin-top: 0;
|
|
31075
|
+
margin-bottom: 4px;
|
|
31076
|
+
}
|
|
31077
|
+
|
|
31078
|
+
.settings-session-import-availability-note {
|
|
31079
|
+
margin-top: 0;
|
|
31080
|
+
}
|
|
31081
|
+
|
|
31082
|
+
.settings-session-import-host {
|
|
31083
|
+
display: flex;
|
|
31084
|
+
align-items: center;
|
|
31085
|
+
min-width: 0;
|
|
31086
|
+
gap: 12px;
|
|
31087
|
+
margin: -12px 0 12px;
|
|
31088
|
+
color: var(--settings-muted);
|
|
31089
|
+
font-size: 13px;
|
|
31090
|
+
}
|
|
31091
|
+
|
|
31092
|
+
.settings-session-import-host > span,
|
|
31093
|
+
.settings-session-import-host + .settings-session-import-harness > span {
|
|
31094
|
+
flex: none;
|
|
31095
|
+
min-width: 60px;
|
|
31096
|
+
}
|
|
31097
|
+
|
|
31098
|
+
.settings-session-import-host > .settings-connection-host-tabs {
|
|
31099
|
+
flex: 1;
|
|
31100
|
+
}
|
|
31101
|
+
|
|
31102
|
+
.settings-session-import-host .settings-connection-host-tab {
|
|
31103
|
+
height: 34px;
|
|
31104
|
+
padding: 0 12px;
|
|
31105
|
+
font-size: 13px;
|
|
31106
|
+
}
|
|
31107
|
+
|
|
31108
|
+
.settings-session-import-host .settings-connection-host-tab:disabled {
|
|
31109
|
+
opacity: 0.38;
|
|
31110
|
+
cursor: not-allowed;
|
|
31111
|
+
}
|
|
31112
|
+
|
|
31113
|
+
.settings-session-import-host + .settings-session-import-harness {
|
|
31114
|
+
margin-top: 0;
|
|
31115
|
+
}
|
|
30579
31116
|
.settings-session-import-search,
|
|
30580
31117
|
.settings-session-import-pagination {
|
|
30581
31118
|
display: flex;
|
|
@@ -30835,6 +31372,20 @@ ${error51.stderrTail}`] : []
|
|
|
30835
31372
|
gap: 16px;
|
|
30836
31373
|
}
|
|
30837
31374
|
|
|
31375
|
+
.settings-connections-content {
|
|
31376
|
+
container: settings-connections / inline-size;
|
|
31377
|
+
}
|
|
31378
|
+
|
|
31379
|
+
@container settings-connections (max-width: 780px) {
|
|
31380
|
+
.settings-connections-layout {
|
|
31381
|
+
grid-template-columns: minmax(0, 1fr);
|
|
31382
|
+
}
|
|
31383
|
+
|
|
31384
|
+
.settings-connection-inspector {
|
|
31385
|
+
position: static;
|
|
31386
|
+
}
|
|
31387
|
+
}
|
|
31388
|
+
|
|
30838
31389
|
.settings-connection-list {
|
|
30839
31390
|
overflow: hidden;
|
|
30840
31391
|
background: var(--settings-surface);
|
|
@@ -30842,14 +31393,36 @@ ${error51.stderrTail}`] : []
|
|
|
30842
31393
|
border-radius: 10px;
|
|
30843
31394
|
}
|
|
30844
31395
|
|
|
31396
|
+
.settings-connection-host-header {
|
|
31397
|
+
display: flex;
|
|
31398
|
+
align-items: center;
|
|
31399
|
+
min-width: 0;
|
|
31400
|
+
border-bottom: 1px solid var(--settings-divider);
|
|
31401
|
+
}
|
|
31402
|
+
|
|
31403
|
+
.settings-connection-update-all {
|
|
31404
|
+
flex: none;
|
|
31405
|
+
margin-right: 10px;
|
|
31406
|
+
white-space: nowrap;
|
|
31407
|
+
}
|
|
31408
|
+
|
|
31409
|
+
.settings-connection-update-result {
|
|
31410
|
+
margin: 0;
|
|
31411
|
+
padding: 7px 10px;
|
|
31412
|
+
color: var(--settings-muted);
|
|
31413
|
+
font-size: 11px;
|
|
31414
|
+
line-height: 18px;
|
|
31415
|
+
border-bottom: 1px solid var(--settings-divider);
|
|
31416
|
+
}
|
|
31417
|
+
|
|
30845
31418
|
.settings-connection-host-strip {
|
|
30846
31419
|
display: grid;
|
|
31420
|
+
flex: 1;
|
|
30847
31421
|
grid-template-columns: 28px minmax(0, 1fr) 28px;
|
|
30848
31422
|
align-items: center;
|
|
30849
31423
|
min-width: 0;
|
|
30850
31424
|
gap: 6px;
|
|
30851
31425
|
padding: 10px 12px;
|
|
30852
|
-
border-bottom: 1px solid var(--settings-divider);
|
|
30853
31426
|
}
|
|
30854
31427
|
|
|
30855
31428
|
.settings-connection-host-scroll {
|
|
@@ -30995,7 +31568,8 @@ ${error51.stderrTail}`] : []
|
|
|
30995
31568
|
background: var(--settings-hover);
|
|
30996
31569
|
}
|
|
30997
31570
|
|
|
30998
|
-
.settings-connection-host-tab[aria-selected="true"]
|
|
31571
|
+
.settings-connection-host-tab[aria-selected="true"],
|
|
31572
|
+
.settings-connection-host-tab[aria-pressed="true"] {
|
|
30999
31573
|
color: var(--settings-text);
|
|
31000
31574
|
font-weight: 600;
|
|
31001
31575
|
background: var(--settings-active);
|
|
@@ -31109,6 +31683,14 @@ ${error51.stderrTail}`] : []
|
|
|
31109
31683
|
line-height: 18px;
|
|
31110
31684
|
}
|
|
31111
31685
|
|
|
31686
|
+
.settings-connection-version-available {
|
|
31687
|
+
flex: none;
|
|
31688
|
+
color: var(--settings-muted);
|
|
31689
|
+
font-size: 10px;
|
|
31690
|
+
line-height: 16px;
|
|
31691
|
+
white-space: nowrap;
|
|
31692
|
+
}
|
|
31693
|
+
|
|
31112
31694
|
.settings-connection-row__status::before {
|
|
31113
31695
|
width: 6px;
|
|
31114
31696
|
height: 6px;
|
|
@@ -31145,6 +31727,7 @@ ${error51.stderrTail}`] : []
|
|
|
31145
31727
|
justify-content: flex-end;
|
|
31146
31728
|
min-width: 0;
|
|
31147
31729
|
gap: 4px;
|
|
31730
|
+
white-space: nowrap;
|
|
31148
31731
|
}
|
|
31149
31732
|
|
|
31150
31733
|
.settings-connection-row__handle {
|
|
@@ -33027,7 +33610,7 @@ ${error51.stderrTail}`] : []
|
|
|
33027
33610
|
`;
|
|
33028
33611
|
|
|
33029
33612
|
// src/settings/tailwind.css
|
|
33030
|
-
var tailwind_default = '@layer properties, theme, base, components, utilities;\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-content:"";--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}}}@layer theme{:root,:host{--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--tracking-tight:-.025em;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1)}}@layer utilities{.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.top-full{top:100%}.left-0{left:0}.z-20{z-index:20}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-0{margin:0}.mx-2{margin-inline:calc(var(--spacing) * 2)}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-7{margin-top:calc(var(--spacing) * 7)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-16{margin-top:calc(var(--spacing) * 16)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.ml-1{margin-left:var(--spacing)}.ml-\\[45px\\]{margin-left:45px}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.list-item{display:list-item}.table{display:table}.size-1\\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-8{height:calc(var(--spacing) * 8)}.min-h-6{min-height:calc(var(--spacing) * 6)}.min-h-\\[60px\\]{min-height:60px}.w-9{width:calc(var(--spacing) * 9)}.w-14{width:calc(var(--spacing) * 14)}.w-80{width:calc(var(--spacing) * 80)}.w-full{width:100%}.w-px{width:1px}.max-w-64{max-width:calc(var(--spacing) * 64)}.min-w-0{min-width:0}.flex-shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-help{cursor:help}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-disc{list-style-type:disc}.appearance-none{appearance:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.overflow-x-auto{overflow-x:auto}.rounded-\\[10px\\]{border-radius:10px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-settings-border{border-color:var(--settings-border)}.border-settings-divider{border-color:var(--settings-divider)}.bg-settings-panel{background-color:var(--settings-panel)}.bg-settings-subtle{background-color:var(--settings-subtle)}.bg-settings-surface{background-color:var(--settings-surface)}.bg-settings-surface-hover{background-color:var(--settings-surface-hover)}.bg-transparent{background-color:#0000}.p-0{padding:0}.p-4{padding:calc(var(--spacing) * 4)}.\\!px-0{padding-inline:0!important}.px-1{padding-inline:var(--spacing)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pl-4{padding-left:calc(var(--spacing) * 4)}.\\!text-right{text-align:right!important}.text-left{text-align:left}.text-right{text-align:right}.align-top{vertical-align:top}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[11px\\]{font-size:11px}.text-\\[13px\\]{font-size:13px}.leading-5{--tw-leading:calc(var(--spacing) * 5);line-height:calc(var(--spacing) * 5)}.leading-7{--tw-leading:calc(var(--spacing) * 7);line-height:calc(var(--spacing) * 7)}.leading-\\[18px\\]{--tw-leading:18px;line-height:18px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.text-wrap{text-wrap:wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-pre-wrap{white-space:pre-wrap}.text-settings-muted{color:var(--settings-muted)}.text-settings-subtle{color:var(--settings-subtle)}.text-settings-text{color:var(--settings-text)}.lowercase{text-transform:lowercase}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.opacity-0{opacity:0}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_10px_30px_rgb\\(0_0_0\\/0\\.22\\)\\]{--tw-shadow:0 10px 30px var(--tw-shadow-color,#00000038);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-settings-border{--tw-ring-color:var(--settings-border)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.outline-none{--tw-outline-style:none;outline-style:none}.ring-inset{--tw-ring-inset:inset}.group-focus-within\\:visible:is(:where(.group):focus-within *){visibility:visible}.group-focus-within\\:opacity-100:is(:where(.group):focus-within *){opacity:1}@media (hover:hover){.group-hover\\:visible:is(:where(.group):hover *){visibility:visible}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.group-data-\\[state\\=failed\\]\\/status\\:bg-settings-danger:is(:where(.group\\/status)[data-state=failed] *){background-color:var(--settings-danger)}.group-data-\\[state\\=unavailable\\]\\/status\\:bg-settings-warning:is(:where(.group\\/status)[data-state=unavailable] *){background-color:var(--settings-warning)}.marker\\:text-settings-subtle ::marker{color:var(--settings-subtle)}.marker\\:text-settings-subtle::marker{color:var(--settings-subtle)}.marker\\:text-settings-subtle ::-webkit-details-marker{color:var(--settings-subtle)}.marker\\:text-settings-subtle::-webkit-details-marker{color:var(--settings-subtle)}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:top-0\\.5:before{content:var(--tw-content);top:calc(var(--spacing) * .5)}.before\\:left-0\\.5:before{content:var(--tw-content);left:calc(var(--spacing) * .5)}.before\\:size-4:before{content:var(--tw-content);width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.before\\:rounded-full:before{content:var(--tw-content);border-radius:3.40282e38px}.before\\:bg-white:before{content:var(--tw-content);background-color:#fff}.before\\:shadow-\\[0_1px_2px_rgb\\(0_0_0\\/0\\.3\\)\\]:before{content:var(--tw-content);--tw-shadow:0 1px 2px var(--tw-shadow-color,#0000004d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.before\\:transition-transform:before{content:var(--tw-content);transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.first\\:border-t-0:first-child{border-top-style:var(--tw-border-style);border-top-width:0}.first-of-type\\:mt-0:first-of-type{margin-top:0}.checked\\:bg-settings-focus:checked{background-color:var(--settings-focus)}.checked\\:ring-transparent:checked{--tw-ring-color:transparent}.checked\\:before\\:translate-x-4:checked:before{content:var(--tw-content);--tw-translate-x:calc(var(--spacing) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.focus-within\\:border-settings-focus:focus-within{border-color:var(--settings-focus)}@media (hover:hover){.hover\\:text-settings-text:hover{color:var(--settings-text)}}.focus-visible\\:text-settings-text:focus-visible{color:var(--settings-text)}.focus-visible\\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.focus-visible\\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\\:outline-settings-focus:focus-visible{outline-color:var(--settings-focus)}.data-\\[invalid\\=true\\]\\:border-settings-danger[data-invalid=true]{border-color:var(--settings-danger)}.data-\\[invalid\\=true\\]\\:text-settings-danger[data-invalid=true],.data-\\[state\\=failed\\]\\:text-settings-danger[data-state=failed]{color:var(--settings-danger)}.data-\\[state\\=unavailable\\]\\:text-settings-warning[data-state=unavailable]{color:var(--settings-warning)}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@layer properties{\n *, ::before, ::after, ::backdrop{--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-alpha:100%;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-offset-width:0;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-drop-shadow-alpha:100%;--tw-content:"";--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}}\n';
|
|
33613
|
+
var tailwind_default = '@layer properties, theme, base, components, utilities;\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-content:"";--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}}}@layer theme{:root,:host{--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--tracking-tight:-.025em;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1)}}@layer utilities{.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.top-full{top:100%}.left-0{left:0}.z-20{z-index:20}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-0{margin:0}.mx-2{margin-inline:calc(var(--spacing) * 2)}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-7{margin-top:calc(var(--spacing) * 7)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-16{margin-top:calc(var(--spacing) * 16)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.ml-1{margin-left:var(--spacing)}.ml-\\[45px\\]{margin-left:45px}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.list-item{display:list-item}.table{display:table}.size-1\\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-8{height:calc(var(--spacing) * 8)}.min-h-6{min-height:calc(var(--spacing) * 6)}.min-h-\\[60px\\]{min-height:60px}.w-9{width:calc(var(--spacing) * 9)}.w-14{width:calc(var(--spacing) * 14)}.w-80{width:calc(var(--spacing) * 80)}.w-full{width:100%}.w-px{width:1px}.max-w-64{max-width:calc(var(--spacing) * 64)}.min-w-0{min-width:0}.flex-shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-help{cursor:help}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-disc{list-style-type:disc}.appearance-none{appearance:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.overflow-x-auto{overflow-x:auto}.rounded-\\[10px\\]{border-radius:10px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-settings-border{border-color:var(--settings-border)}.border-settings-divider{border-color:var(--settings-divider)}.bg-settings-panel{background-color:var(--settings-panel)}.bg-settings-subtle{background-color:var(--settings-subtle)}.bg-settings-surface{background-color:var(--settings-surface)}.bg-settings-surface-hover{background-color:var(--settings-surface-hover)}.bg-transparent{background-color:#0000}.p-0{padding:0}.p-4{padding:calc(var(--spacing) * 4)}.\\!px-0{padding-inline:0!important}.px-1{padding-inline:var(--spacing)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pl-4{padding-left:calc(var(--spacing) * 4)}.\\!text-right{text-align:right!important}.text-left{text-align:left}.text-right{text-align:right}.align-top{vertical-align:top}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[11px\\]{font-size:11px}.text-\\[13px\\]{font-size:13px}.leading-5{--tw-leading:calc(var(--spacing) * 5);line-height:calc(var(--spacing) * 5)}.leading-7{--tw-leading:calc(var(--spacing) * 7);line-height:calc(var(--spacing) * 7)}.leading-\\[18px\\]{--tw-leading:18px;line-height:18px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.text-wrap{text-wrap:wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-pre-wrap{white-space:pre-wrap}.text-settings-muted{color:var(--settings-muted)}.text-settings-subtle{color:var(--settings-subtle)}.text-settings-text{color:var(--settings-text)}.lowercase{text-transform:lowercase}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.opacity-0{opacity:0}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_10px_30px_rgb\\(0_0_0\\/0\\.22\\)\\]{--tw-shadow:0 10px 30px var(--tw-shadow-color,#00000038);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-settings-border{--tw-ring-color:var(--settings-border)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.outline-none{--tw-outline-style:none;outline-style:none}.ring-inset{--tw-ring-inset:inset}.group-focus-within\\:visible:is(:where(.group):focus-within *){visibility:visible}.group-focus-within\\:opacity-100:is(:where(.group):focus-within *){opacity:1}@media (hover:hover){.group-hover\\:visible:is(:where(.group):hover *){visibility:visible}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.group-data-\\[state\\=failed\\]\\/status\\:bg-settings-danger:is(:where(.group\\/status)[data-state=failed] *){background-color:var(--settings-danger)}.group-data-\\[state\\=unavailable\\]\\/status\\:bg-settings-warning:is(:where(.group\\/status)[data-state=unavailable] *){background-color:var(--settings-warning)}.marker\\:text-settings-subtle ::marker{color:var(--settings-subtle)}.marker\\:text-settings-subtle::marker{color:var(--settings-subtle)}.marker\\:text-settings-subtle ::-webkit-details-marker{color:var(--settings-subtle)}.marker\\:text-settings-subtle::-webkit-details-marker{color:var(--settings-subtle)}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:top-0\\.5:before{content:var(--tw-content);top:calc(var(--spacing) * .5)}.before\\:left-0\\.5:before{content:var(--tw-content);left:calc(var(--spacing) * .5)}.before\\:size-4:before{content:var(--tw-content);width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.before\\:rounded-full:before{content:var(--tw-content);border-radius:3.40282e38px}.before\\:bg-white:before{content:var(--tw-content);background-color:#fff}.before\\:shadow-\\[0_1px_2px_rgb\\(0_0_0\\/0\\.3\\)\\]:before{content:var(--tw-content);--tw-shadow:0 1px 2px var(--tw-shadow-color,#0000004d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.before\\:transition-transform:before{content:var(--tw-content);transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.first\\:border-t-0:first-child{border-top-style:var(--tw-border-style);border-top-width:0}.first-of-type\\:mt-0:first-of-type{margin-top:0}.checked\\:bg-settings-focus:checked{background-color:var(--settings-focus)}.checked\\:ring-transparent:checked{--tw-ring-color:transparent}.checked\\:before\\:translate-x-4:checked:before{content:var(--tw-content);--tw-translate-x:calc(var(--spacing) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.focus-within\\:border-settings-focus:focus-within{border-color:var(--settings-focus)}@media (hover:hover){.hover\\:bg-settings-hover:hover{background-color:var(--settings-hover)}.hover\\:text-settings-text:hover{color:var(--settings-text)}}.focus-visible\\:text-settings-text:focus-visible{color:var(--settings-text)}.focus-visible\\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.focus-visible\\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\\:outline-settings-focus:focus-visible{outline-color:var(--settings-focus)}.data-\\[invalid\\=true\\]\\:border-settings-danger[data-invalid=true]{border-color:var(--settings-danger)}.data-\\[invalid\\=true\\]\\:text-settings-danger[data-invalid=true],.data-\\[state\\=failed\\]\\:text-settings-danger[data-state=failed]{color:var(--settings-danger)}.data-\\[state\\=unavailable\\]\\:text-settings-warning[data-state=unavailable]{color:var(--settings-warning)}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@layer properties{\n *, ::before, ::after, ::backdrop{--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-alpha:100%;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-offset-width:0;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-drop-shadow-alpha:100%;--tw-content:"";--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}}\n';
|
|
33031
33614
|
|
|
33032
33615
|
// src/console/app.ts
|
|
33033
33616
|
function required2(pages, id) {
|
|
@@ -33281,6 +33864,7 @@ ${console_default}`
|
|
|
33281
33864
|
lucide/dist/esm/defaultAttributes.mjs:
|
|
33282
33865
|
lucide/dist/esm/createElement.mjs:
|
|
33283
33866
|
lucide/dist/esm/icons/boxes.mjs:
|
|
33867
|
+
lucide/dist/esm/icons/calendar-clock.mjs:
|
|
33284
33868
|
lucide/dist/esm/icons/circle-check.mjs:
|
|
33285
33869
|
lucide/dist/esm/icons/check.mjs:
|
|
33286
33870
|
lucide/dist/esm/icons/chevron-down.mjs:
|