@wowyuarm/dsh-agent-team 0.1.15 → 0.2.1
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 +8 -4
- package/README.zh.md +8 -4
- package/cordis.patch.yml +26 -12
- package/package.json +52 -47
- package/packages/agent-team/lib/attachments.js +63 -4
- package/packages/agent-team/lib/compaction-engine.js +18 -0
- package/packages/agent-team/lib/context-continuity-host.js +198 -4
- package/packages/agent-team/lib/context-judge.js +150 -0
- package/packages/agent-team/lib/context-source.js +11 -6
- package/packages/agent-team/lib/environment-check.js +102 -0
- package/packages/agent-team/lib/human-profile.js +23 -37
- package/packages/agent-team/lib/index.js +510 -99
- package/packages/agent-team/lib/installed-manifest.js +32 -0
- package/packages/agent-team/lib/invariant.js +36 -12
- package/packages/agent-team/lib/ledger.js +37 -1
- package/packages/agent-team/lib/member-context.js +2 -4
- package/packages/agent-team/lib/member-runtime.js +2 -1
- package/packages/agent-team/lib/member-time-context.js +2 -4
- package/packages/agent-team/lib/recovery.js +53 -4
- package/packages/agent-team/lib/typert.host.js +225 -54
- package/packages/agent-team/lib/typert.remote-client.d.ts +5 -1
- package/packages/agent-team/lib/typert.remote-client.d.ts.map +1 -1
- package/packages/agent-team/lib/typert.remote-client.js +127 -39
- package/packages/agent-team/lib/types/attachments.d.ts +32 -2
- package/packages/agent-team/lib/types/attachments.d.ts.map +1 -1
- package/packages/agent-team/lib/types/compaction-engine.d.ts +19 -0
- package/packages/agent-team/lib/types/compaction-engine.d.ts.map +1 -0
- package/packages/agent-team/lib/types/context-continuity-host.d.ts +131 -4
- package/packages/agent-team/lib/types/context-continuity-host.d.ts.map +1 -1
- package/packages/agent-team/lib/types/context-judge.d.ts +82 -0
- package/packages/agent-team/lib/types/context-judge.d.ts.map +1 -0
- package/packages/agent-team/lib/types/context-source.d.ts +7 -4
- package/packages/agent-team/lib/types/context-source.d.ts.map +1 -1
- package/packages/agent-team/lib/types/environment-check.d.ts +66 -0
- package/packages/agent-team/lib/types/environment-check.d.ts.map +1 -0
- package/packages/agent-team/lib/types/human-profile.d.ts +21 -27
- package/packages/agent-team/lib/types/human-profile.d.ts.map +1 -1
- package/packages/agent-team/lib/types/index.d.ts +281 -18
- package/packages/agent-team/lib/types/index.d.ts.map +1 -1
- package/packages/agent-team/lib/types/installed-manifest.d.ts +16 -0
- package/packages/agent-team/lib/types/installed-manifest.d.ts.map +1 -0
- package/packages/agent-team/lib/types/invariant.d.ts +27 -5
- package/packages/agent-team/lib/types/invariant.d.ts.map +1 -1
- package/packages/agent-team/lib/types/ledger.d.ts +12 -0
- package/packages/agent-team/lib/types/ledger.d.ts.map +1 -1
- package/packages/agent-team/lib/types/member-context.d.ts.map +1 -1
- package/packages/agent-team/lib/types/member-runtime.d.ts +1 -1
- package/packages/agent-team/lib/types/member-runtime.d.ts.map +1 -1
- package/packages/agent-team/lib/types/member-time-context.d.ts.map +1 -1
- package/packages/agent-team/lib/types/recovery.d.ts +19 -6
- package/packages/agent-team/lib/types/recovery.d.ts.map +1 -1
- package/packages/agent-team/lib/types/types/entities.d.ts +1 -8
- package/packages/agent-team/lib/types/types/entities.d.ts.map +1 -1
- package/packages/agent-team/lib/types/types/requests-results.d.ts +94 -2
- package/packages/agent-team/lib/types/types/requests-results.d.ts.map +1 -1
- package/packages/agent-team/lib/types/types.d.ts +9 -0
- package/packages/agent-team/lib/types/types.d.ts.map +1 -1
- package/packages/client-agent-team/lib/client.js +1264 -383
- package/packages/client-agent-team/lib/client.js.map +1 -1
- package/packages/client-agent-team/lib/types/client/EnvironmentCheck.d.ts +18 -0
- package/packages/client-agent-team/lib/types/client/EnvironmentCheck.d.ts.map +1 -0
- package/packages/client-agent-team/lib/types/client/EnvironmentCheck.js +58 -0
- package/packages/client-agent-team/lib/types/client/TeamAgentsPanel.js +0 -5
- package/packages/client-agent-team/lib/types/client/TeamPresenceDot.d.ts +1 -1
- package/packages/client-agent-team/lib/types/client/TeamPresenceDot.d.ts.map +1 -1
- package/packages/client-agent-team/lib/types/client/TeamPresenceDot.js +2 -7
- package/packages/client-agent-team/lib/types/client/TeamSettingsSection.d.ts +26 -0
- package/packages/client-agent-team/lib/types/client/TeamSettingsSection.d.ts.map +1 -0
- package/packages/client-agent-team/lib/types/client/TeamSettingsSection.js +195 -0
- package/packages/client-agent-team/lib/types/client/attachment-preview.d.ts +7 -11
- package/packages/client-agent-team/lib/types/client/attachment-preview.d.ts.map +1 -1
- package/packages/client-agent-team/lib/types/client/attachment-preview.js +13 -3
- package/packages/client-agent-team/lib/types/client/context-judge.d.ts +64 -0
- package/packages/client-agent-team/lib/types/client/context-judge.d.ts.map +1 -0
- package/packages/client-agent-team/lib/types/client/context-judge.js +78 -0
- package/packages/client-agent-team/lib/types/client/environment-check.d.ts +65 -0
- package/packages/client-agent-team/lib/types/client/environment-check.d.ts.map +1 -0
- package/packages/client-agent-team/lib/types/client/environment-check.js +78 -0
- package/packages/client-agent-team/lib/types/client/index.d.ts.map +1 -1
- package/packages/client-agent-team/lib/types/client/index.js +84 -11
- package/packages/client-agent-team/lib/types/client/judge-form.d.ts +99 -0
- package/packages/client-agent-team/lib/types/client/judge-form.d.ts.map +1 -0
- package/packages/client-agent-team/lib/types/client/judge-form.js +208 -0
- package/packages/client-agent-team/lib/types/client/locales.d.ts +70 -14
- package/packages/client-agent-team/lib/types/client/locales.d.ts.map +1 -1
- package/packages/client-agent-team/lib/types/client/locales.js +76 -14
- package/packages/tool-agent-team/README.md +6 -3
- package/packages/tool-agent-team/README.zh.md +6 -3
- package/packages/tool-agent-team/lib/context-tools.js +148 -164
- package/packages/tool-agent-team/lib/index.js +17 -2
- package/packages/tool-agent-team/lib/types/context-tools.d.ts +32 -7
- package/packages/tool-agent-team/lib/types/context-tools.d.ts.map +1 -1
- package/packages/tool-agent-team/lib/types/index.d.ts.map +1 -1
- package/packages/agent-team/lib/pressure-policy.js +0 -230
- package/packages/agent-team/lib/types/pressure-policy.d.ts +0 -130
- package/packages/agent-team/lib/types/pressure-policy.d.ts.map +0 -1
- package/packages/client-agent-team/lib/types/client/HumanSettingsSection.d.ts +0 -15
- package/packages/client-agent-team/lib/types/client/HumanSettingsSection.d.ts.map +0 -1
- package/packages/client-agent-team/lib/types/client/HumanSettingsSection.js +0 -115
|
@@ -8,7 +8,7 @@ window.__ModuleLoader__.load({
|
|
|
8
8
|
let _deepseek_ai_dsh_client_ui_primitives = require("@deepseek-ai/dsh-client-ui-primitives");
|
|
9
9
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
10
|
let _deepseek_ai_dsh_api_gateway_client = require("@deepseek-ai/dsh-api-gateway/client");
|
|
11
|
-
//#region
|
|
11
|
+
//#region ../../../dsh-agent-team/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
|
|
12
12
|
var _a$1;
|
|
13
13
|
function $constructor(name, initializer, params) {
|
|
14
14
|
function init(inst, def) {
|
|
@@ -67,7 +67,7 @@ window.__ModuleLoader__.load({
|
|
|
67
67
|
return globalConfig;
|
|
68
68
|
}
|
|
69
69
|
//#endregion
|
|
70
|
-
//#region
|
|
70
|
+
//#region ../../../dsh-agent-team/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
|
|
71
71
|
function getEnumValues(entries) {
|
|
72
72
|
const numericValues = Object.values(entries).filter((v) => typeof v === "number");
|
|
73
73
|
return Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
|
|
@@ -379,7 +379,7 @@ window.__ModuleLoader__.load({
|
|
|
379
379
|
return { ...iss };
|
|
380
380
|
}
|
|
381
381
|
//#endregion
|
|
382
|
-
//#region
|
|
382
|
+
//#region ../../../dsh-agent-team/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
|
|
383
383
|
const initializer$1 = (inst, def) => {
|
|
384
384
|
inst.name = "$ZodError";
|
|
385
385
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -439,7 +439,7 @@ window.__ModuleLoader__.load({
|
|
|
439
439
|
return fieldErrors;
|
|
440
440
|
}
|
|
441
441
|
//#endregion
|
|
442
|
-
//#region
|
|
442
|
+
//#region ../../../dsh-agent-team/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js
|
|
443
443
|
const _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
444
444
|
const ctx = _ctx ? {
|
|
445
445
|
..._ctx,
|
|
@@ -553,7 +553,7 @@ window.__ModuleLoader__.load({
|
|
|
553
553
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
554
554
|
};
|
|
555
555
|
//#endregion
|
|
556
|
-
//#region
|
|
556
|
+
//#region ../../../dsh-agent-team/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.js
|
|
557
557
|
/**
|
|
558
558
|
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
559
559
|
* (timestamps embedded in the id). Use {@link cuid2} instead.
|
|
@@ -618,7 +618,7 @@ window.__ModuleLoader__.load({
|
|
|
618
618
|
const lowercase = /^[^A-Z]*$/;
|
|
619
619
|
const uppercase = /^[^a-z]*$/;
|
|
620
620
|
//#endregion
|
|
621
|
-
//#region
|
|
621
|
+
//#region ../../../dsh-agent-team/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.js
|
|
622
622
|
const $ZodCheck = /*@__PURE__*/ $constructor("$ZodCheck", (inst, def) => {
|
|
623
623
|
var _a;
|
|
624
624
|
inst._zod ?? (inst._zod = {});
|
|
@@ -976,7 +976,7 @@ window.__ModuleLoader__.load({
|
|
|
976
976
|
};
|
|
977
977
|
});
|
|
978
978
|
//#endregion
|
|
979
|
-
//#region
|
|
979
|
+
//#region ../../../dsh-agent-team/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/doc.js
|
|
980
980
|
var Doc = class {
|
|
981
981
|
constructor(args = []) {
|
|
982
982
|
this.content = [];
|
|
@@ -1007,14 +1007,14 @@ window.__ModuleLoader__.load({
|
|
|
1007
1007
|
}
|
|
1008
1008
|
};
|
|
1009
1009
|
//#endregion
|
|
1010
|
-
//#region
|
|
1010
|
+
//#region ../../../dsh-agent-team/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.js
|
|
1011
1011
|
const version = {
|
|
1012
1012
|
major: 4,
|
|
1013
1013
|
minor: 4,
|
|
1014
1014
|
patch: 3
|
|
1015
1015
|
};
|
|
1016
1016
|
//#endregion
|
|
1017
|
-
//#region
|
|
1017
|
+
//#region ../../../dsh-agent-team/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js
|
|
1018
1018
|
const $ZodType = /*@__PURE__*/ $constructor("$ZodType", (inst, def) => {
|
|
1019
1019
|
var _a;
|
|
1020
1020
|
inst ?? (inst = {});
|
|
@@ -2151,7 +2151,7 @@ window.__ModuleLoader__.load({
|
|
|
2151
2151
|
}
|
|
2152
2152
|
}
|
|
2153
2153
|
//#endregion
|
|
2154
|
-
//#region
|
|
2154
|
+
//#region ../../../dsh-agent-team/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
|
|
2155
2155
|
var _a;
|
|
2156
2156
|
var $ZodRegistry = class {
|
|
2157
2157
|
constructor() {
|
|
@@ -2198,7 +2198,7 @@ window.__ModuleLoader__.load({
|
|
|
2198
2198
|
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
|
|
2199
2199
|
const globalRegistry = globalThis.__zod_globalRegistry;
|
|
2200
2200
|
//#endregion
|
|
2201
|
-
//#region
|
|
2201
|
+
//#region ../../../dsh-agent-team/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
|
|
2202
2202
|
// @__NO_SIDE_EFFECTS__
|
|
2203
2203
|
function _string(Class, params) {
|
|
2204
2204
|
return new Class({
|
|
@@ -2710,7 +2710,7 @@ window.__ModuleLoader__.load({
|
|
|
2710
2710
|
return ch;
|
|
2711
2711
|
}
|
|
2712
2712
|
//#endregion
|
|
2713
|
-
//#region
|
|
2713
|
+
//#region ../../../dsh-agent-team/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.js
|
|
2714
2714
|
function initializeContext(params) {
|
|
2715
2715
|
let target = params?.target ?? "draft-2020-12";
|
|
2716
2716
|
if (target === "draft-4") target = "draft-04";
|
|
@@ -3003,7 +3003,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
3003
3003
|
return finalize(ctx, schema);
|
|
3004
3004
|
};
|
|
3005
3005
|
//#endregion
|
|
3006
|
-
//#region
|
|
3006
|
+
//#region ../../../dsh-agent-team/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.js
|
|
3007
3007
|
const formatMap = {
|
|
3008
3008
|
guid: "uuid",
|
|
3009
3009
|
url: "uri",
|
|
@@ -3235,7 +3235,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
3235
3235
|
seen.ref = def.innerType;
|
|
3236
3236
|
};
|
|
3237
3237
|
//#endregion
|
|
3238
|
-
//#region
|
|
3238
|
+
//#region ../../../dsh-agent-team/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.js
|
|
3239
3239
|
const ZodISODateTime = /*@__PURE__*/ $constructor("ZodISODateTime", (inst, def) => {
|
|
3240
3240
|
$ZodISODateTime.init(inst, def);
|
|
3241
3241
|
ZodStringFormat.init(inst, def);
|
|
@@ -3265,7 +3265,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
3265
3265
|
return /* @__PURE__ */ _isoDuration(ZodISODuration, params);
|
|
3266
3266
|
}
|
|
3267
3267
|
//#endregion
|
|
3268
|
-
//#region
|
|
3268
|
+
//#region ../../../dsh-agent-team/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.js
|
|
3269
3269
|
const initializer = (inst, issues) => {
|
|
3270
3270
|
$ZodError.init(inst, issues);
|
|
3271
3271
|
inst.name = "ZodError";
|
|
@@ -3287,7 +3287,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
3287
3287
|
};
|
|
3288
3288
|
const ZodRealError = /*@__PURE__*/ $constructor("ZodError", initializer, { Parent: Error });
|
|
3289
3289
|
//#endregion
|
|
3290
|
-
//#region
|
|
3290
|
+
//#region ../../../dsh-agent-team/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.js
|
|
3291
3291
|
const parse = /* @__PURE__ */ _parse(ZodRealError);
|
|
3292
3292
|
const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
3293
3293
|
const safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -3301,7 +3301,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
3301
3301
|
const safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
3302
3302
|
const safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
3303
3303
|
//#endregion
|
|
3304
|
-
//#region
|
|
3304
|
+
//#region ../../../dsh-agent-team/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
|
|
3305
3305
|
const _installedGroups = /* @__PURE__ */ new WeakMap();
|
|
3306
3306
|
function _installLazyMethods(inst, group, methods) {
|
|
3307
3307
|
const proto = Object.getPrototypeOf(inst);
|
|
@@ -4161,8 +4161,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
4161
4161
|
"kind": string().readonly(),
|
|
4162
4162
|
"path": string().readonly()
|
|
4163
4163
|
}).readonly().optional(),
|
|
4164
|
-
"sessionId": intersection(string(), unknown()).readonly().optional()
|
|
4165
|
-
"remediable": boolean().readonly().optional()
|
|
4164
|
+
"sessionId": intersection(string(), unknown()).readonly().optional()
|
|
4166
4165
|
}).readonly().optional(),
|
|
4167
4166
|
"capabilityWarnings": union([_undefined(), array(object({
|
|
4168
4167
|
"name": string().readonly(),
|
|
@@ -4483,8 +4482,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
4483
4482
|
"kind": string().readonly(),
|
|
4484
4483
|
"path": string().readonly()
|
|
4485
4484
|
}).readonly().optional(),
|
|
4486
|
-
"sessionId": intersection(string(), unknown()).readonly().optional()
|
|
4487
|
-
"remediable": boolean().readonly().optional()
|
|
4485
|
+
"sessionId": intersection(string(), unknown()).readonly().optional()
|
|
4488
4486
|
}).readonly().optional(),
|
|
4489
4487
|
"capabilityWarnings": union([_undefined(), array(object({
|
|
4490
4488
|
"name": string().readonly(),
|
|
@@ -4492,6 +4490,24 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
4492
4490
|
}))]).readonly().optional()
|
|
4493
4491
|
}).readonly()
|
|
4494
4492
|
});
|
|
4493
|
+
let _wowyuarm_dsh_agent_team_agentTeam_contextJudge_parameter_0$schema$value;
|
|
4494
|
+
const _wowyuarm_dsh_agent_team_agentTeam_contextJudge_parameter_0$schema = () => _wowyuarm_dsh_agent_team_agentTeam_contextJudge_parameter_0$schema$value ??= object({});
|
|
4495
|
+
let _wowyuarm_dsh_agent_team_agentTeam_contextJudge_result$schema$value;
|
|
4496
|
+
const _wowyuarm_dsh_agent_team_agentTeam_contextJudge_result$schema = () => _wowyuarm_dsh_agent_team_agentTeam_contextJudge_result$schema$value ??= object({
|
|
4497
|
+
"enabled": boolean().readonly(),
|
|
4498
|
+
"reason": union([
|
|
4499
|
+
_undefined(),
|
|
4500
|
+
literal("unavailable"),
|
|
4501
|
+
literal("no-key")
|
|
4502
|
+
]).readonly().optional(),
|
|
4503
|
+
"detail": union([_undefined(), string()]).readonly().optional(),
|
|
4504
|
+
"keyEnv": string().readonly(),
|
|
4505
|
+
"gate": object({
|
|
4506
|
+
"tokens": number().readonly(),
|
|
4507
|
+
"idleMs": number().readonly(),
|
|
4508
|
+
"judgeTimeoutMs": number().readonly()
|
|
4509
|
+
}).readonly()
|
|
4510
|
+
});
|
|
4495
4511
|
let _wowyuarm_dsh_agent_team_agentTeam_createChannel_parameter_0$schema$value;
|
|
4496
4512
|
const _wowyuarm_dsh_agent_team_agentTeam_createChannel_parameter_0$schema = () => _wowyuarm_dsh_agent_team_agentTeam_createChannel_parameter_0$schema$value ??= object({
|
|
4497
4513
|
"requestId": intersection(string(), unknown()).readonly(),
|
|
@@ -4518,6 +4534,24 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
4518
4534
|
}).readonly(),
|
|
4519
4535
|
"memberIds": array(intersection(string(), unknown())).readonly()
|
|
4520
4536
|
});
|
|
4537
|
+
let _wowyuarm_dsh_agent_team_agentTeam_environment_parameter_0$schema$value;
|
|
4538
|
+
const _wowyuarm_dsh_agent_team_agentTeam_environment_parameter_0$schema = () => _wowyuarm_dsh_agent_team_agentTeam_environment_parameter_0$schema$value ??= object({});
|
|
4539
|
+
let _wowyuarm_dsh_agent_team_agentTeam_environment_result$schema$value;
|
|
4540
|
+
const _wowyuarm_dsh_agent_team_agentTeam_environment_result$schema = () => _wowyuarm_dsh_agent_team_agentTeam_environment_result$schema$value ??= object({
|
|
4541
|
+
"verdict": union([
|
|
4542
|
+
literal("ok"),
|
|
4543
|
+
literal("out-of-range"),
|
|
4544
|
+
literal("undetermined")
|
|
4545
|
+
]).readonly(),
|
|
4546
|
+
"reason": union([_undefined(), string()]).readonly().optional(),
|
|
4547
|
+
"bundleVersion": union([_undefined(), string()]).readonly().optional(),
|
|
4548
|
+
"dshVersion": union([_undefined(), string()]).readonly().optional(),
|
|
4549
|
+
"certifiedDshVersion": union([_undefined(), string()]).readonly().optional(),
|
|
4550
|
+
"supportRange": union([_undefined(), object({
|
|
4551
|
+
"lower": string().readonly(),
|
|
4552
|
+
"upper": string().readonly()
|
|
4553
|
+
})]).readonly().optional()
|
|
4554
|
+
});
|
|
4521
4555
|
let _wowyuarm_dsh_agent_team_agentTeam_getAttachment_parameter_0$schema$value;
|
|
4522
4556
|
const _wowyuarm_dsh_agent_team_agentTeam_getAttachment_parameter_0$schema = () => _wowyuarm_dsh_agent_team_agentTeam_getAttachment_parameter_0$schema$value ??= object({ "attachmentId": intersection(string(), unknown()).readonly() });
|
|
4523
4557
|
let _wowyuarm_dsh_agent_team_agentTeam_getAttachment_result$schema$value;
|
|
@@ -4776,8 +4810,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
4776
4810
|
"kind": string().readonly(),
|
|
4777
4811
|
"path": string().readonly()
|
|
4778
4812
|
}).readonly().optional(),
|
|
4779
|
-
"sessionId": intersection(string(), unknown()).readonly().optional()
|
|
4780
|
-
"remediable": boolean().readonly().optional()
|
|
4813
|
+
"sessionId": intersection(string(), unknown()).readonly().optional()
|
|
4781
4814
|
}).readonly().optional(),
|
|
4782
4815
|
"capabilityWarnings": union([_undefined(), array(object({
|
|
4783
4816
|
"name": string().readonly(),
|
|
@@ -5049,7 +5082,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
5049
5082
|
literal("unavailable"),
|
|
5050
5083
|
literal("rollover"),
|
|
5051
5084
|
literal("keep"),
|
|
5052
|
-
literal("
|
|
5085
|
+
literal("compact-now")
|
|
5053
5086
|
]).readonly(),
|
|
5054
5087
|
"guidance": string().readonly()
|
|
5055
5088
|
}).readonly().optional()
|
|
@@ -5113,8 +5146,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
5113
5146
|
"kind": string().readonly(),
|
|
5114
5147
|
"path": string().readonly()
|
|
5115
5148
|
}).readonly().optional(),
|
|
5116
|
-
"sessionId": intersection(string(), unknown()).readonly().optional()
|
|
5117
|
-
"remediable": boolean().readonly().optional()
|
|
5149
|
+
"sessionId": intersection(string(), unknown()).readonly().optional()
|
|
5118
5150
|
}).readonly().optional(),
|
|
5119
5151
|
"capabilityWarnings": union([_undefined(), array(object({
|
|
5120
5152
|
"name": string().readonly(),
|
|
@@ -5656,8 +5688,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
5656
5688
|
"kind": string().readonly(),
|
|
5657
5689
|
"path": string().readonly()
|
|
5658
5690
|
}).readonly().optional(),
|
|
5659
|
-
"sessionId": intersection(string(), unknown()).readonly().optional()
|
|
5660
|
-
"remediable": boolean().readonly().optional()
|
|
5691
|
+
"sessionId": intersection(string(), unknown()).readonly().optional()
|
|
5661
5692
|
}).readonly().optional(),
|
|
5662
5693
|
"capabilityWarnings": union([_undefined(), array(object({
|
|
5663
5694
|
"name": string().readonly(),
|
|
@@ -5771,6 +5802,25 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
5771
5802
|
"messageCount": number().readonly(),
|
|
5772
5803
|
"lastActivityAt": string().readonly()
|
|
5773
5804
|
})).readonly(),
|
|
5805
|
+
"activeTaskThreads": array(object({
|
|
5806
|
+
"taskRef": intersection(string(), unknown()).readonly(),
|
|
5807
|
+
"threadRef": intersection(string(), unknown()).readonly(),
|
|
5808
|
+
"channelRef": intersection(string(), unknown()).readonly(),
|
|
5809
|
+
"taskNumber": number().readonly().optional(),
|
|
5810
|
+
"status": union([
|
|
5811
|
+
literal("done"),
|
|
5812
|
+
literal("todo"),
|
|
5813
|
+
literal("in_progress"),
|
|
5814
|
+
literal("in_review"),
|
|
5815
|
+
literal("closed")
|
|
5816
|
+
]).readonly(),
|
|
5817
|
+
"subject": string().readonly(),
|
|
5818
|
+
"members": array(object({
|
|
5819
|
+
"memberId": intersection(string(), unknown()).readonly(),
|
|
5820
|
+
"name": string().readonly()
|
|
5821
|
+
})).readonly(),
|
|
5822
|
+
"lastActivityAt": string().readonly()
|
|
5823
|
+
})).readonly(),
|
|
5774
5824
|
"claims": array(object({
|
|
5775
5825
|
"claimRef": intersection(string(), unknown()).readonly(),
|
|
5776
5826
|
"taskRef": intersection(string(), unknown()).readonly(),
|
|
@@ -5853,7 +5903,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
5853
5903
|
},
|
|
5854
5904
|
sourceLocation: {
|
|
5855
5905
|
"file": "packages/agent-team/src/index.ts",
|
|
5856
|
-
"line":
|
|
5906
|
+
"line": 1079,
|
|
5857
5907
|
"column": 9
|
|
5858
5908
|
}
|
|
5859
5909
|
},
|
|
@@ -5880,7 +5930,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
5880
5930
|
},
|
|
5881
5931
|
sourceLocation: {
|
|
5882
5932
|
"file": "packages/agent-team/src/index.ts",
|
|
5883
|
-
"line":
|
|
5933
|
+
"line": 1069,
|
|
5884
5934
|
"column": 9
|
|
5885
5935
|
}
|
|
5886
5936
|
},
|
|
@@ -5907,7 +5957,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
5907
5957
|
},
|
|
5908
5958
|
sourceLocation: {
|
|
5909
5959
|
"file": "packages/agent-team/src/index.ts",
|
|
5910
|
-
"line":
|
|
5960
|
+
"line": 1586,
|
|
5911
5961
|
"column": 9
|
|
5912
5962
|
}
|
|
5913
5963
|
},
|
|
@@ -5934,7 +5984,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
5934
5984
|
},
|
|
5935
5985
|
sourceLocation: {
|
|
5936
5986
|
"file": "packages/agent-team/src/index.ts",
|
|
5937
|
-
"line":
|
|
5987
|
+
"line": 1876,
|
|
5938
5988
|
"column": 9
|
|
5939
5989
|
}
|
|
5940
5990
|
},
|
|
@@ -5963,7 +6013,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
5963
6013
|
},
|
|
5964
6014
|
sourceLocation: {
|
|
5965
6015
|
"file": "packages/agent-team/src/index.ts",
|
|
5966
|
-
"line":
|
|
6016
|
+
"line": 1002,
|
|
5967
6017
|
"column": 11
|
|
5968
6018
|
}
|
|
5969
6019
|
},
|
|
@@ -5990,7 +6040,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
5990
6040
|
},
|
|
5991
6041
|
sourceLocation: {
|
|
5992
6042
|
"file": "packages/agent-team/src/index.ts",
|
|
5993
|
-
"line":
|
|
6043
|
+
"line": 1597,
|
|
5994
6044
|
"column": 9
|
|
5995
6045
|
}
|
|
5996
6046
|
},
|
|
@@ -6017,10 +6067,38 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6017
6067
|
},
|
|
6018
6068
|
sourceLocation: {
|
|
6019
6069
|
"file": "packages/agent-team/src/index.ts",
|
|
6020
|
-
"line":
|
|
6070
|
+
"line": 1214,
|
|
6021
6071
|
"column": 9
|
|
6022
6072
|
}
|
|
6023
6073
|
},
|
|
6074
|
+
{
|
|
6075
|
+
id: "@wowyuarm/dsh-agent-team#agentTeam/contextJudge",
|
|
6076
|
+
service: "agentTeam",
|
|
6077
|
+
namespace: "agentTeam",
|
|
6078
|
+
method: "contextJudge",
|
|
6079
|
+
implementation: "contextJudgeForClient",
|
|
6080
|
+
invocation: { kind: "direct" },
|
|
6081
|
+
parameters: [{
|
|
6082
|
+
name: "_request",
|
|
6083
|
+
wire: "_request",
|
|
6084
|
+
source: "json",
|
|
6085
|
+
codec: {
|
|
6086
|
+
mode: "strict",
|
|
6087
|
+
typeSymbol: "@wowyuarm/dsh-agent-team/types#AgentTeamContextJudgeRequest",
|
|
6088
|
+
create: _wowyuarm_dsh_agent_team_agentTeam_contextJudge_parameter_0$schema
|
|
6089
|
+
}
|
|
6090
|
+
}],
|
|
6091
|
+
result: {
|
|
6092
|
+
mode: "strict",
|
|
6093
|
+
typeSymbol: "@wowyuarm/dsh-agent-team/types#AgentTeamContextJudgeResult",
|
|
6094
|
+
create: _wowyuarm_dsh_agent_team_agentTeam_contextJudge_result$schema
|
|
6095
|
+
},
|
|
6096
|
+
sourceLocation: {
|
|
6097
|
+
"file": "packages/agent-team/src/index.ts",
|
|
6098
|
+
"line": 1742,
|
|
6099
|
+
"column": 3
|
|
6100
|
+
}
|
|
6101
|
+
},
|
|
6024
6102
|
{
|
|
6025
6103
|
id: "@wowyuarm/dsh-agent-team#agentTeam/createChannel",
|
|
6026
6104
|
service: "agentTeam",
|
|
@@ -6044,10 +6122,38 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6044
6122
|
},
|
|
6045
6123
|
sourceLocation: {
|
|
6046
6124
|
"file": "packages/agent-team/src/index.ts",
|
|
6047
|
-
"line":
|
|
6125
|
+
"line": 1042,
|
|
6048
6126
|
"column": 9
|
|
6049
6127
|
}
|
|
6050
6128
|
},
|
|
6129
|
+
{
|
|
6130
|
+
id: "@wowyuarm/dsh-agent-team#agentTeam/environment",
|
|
6131
|
+
service: "agentTeam",
|
|
6132
|
+
namespace: "agentTeam",
|
|
6133
|
+
method: "environment",
|
|
6134
|
+
implementation: "environmentForClient",
|
|
6135
|
+
invocation: { kind: "direct" },
|
|
6136
|
+
parameters: [{
|
|
6137
|
+
name: "_request",
|
|
6138
|
+
wire: "_request",
|
|
6139
|
+
source: "json",
|
|
6140
|
+
codec: {
|
|
6141
|
+
mode: "strict",
|
|
6142
|
+
typeSymbol: "@wowyuarm/dsh-agent-team/types#AgentTeamEnvironmentRequest",
|
|
6143
|
+
create: _wowyuarm_dsh_agent_team_agentTeam_environment_parameter_0$schema
|
|
6144
|
+
}
|
|
6145
|
+
}],
|
|
6146
|
+
result: {
|
|
6147
|
+
mode: "strict",
|
|
6148
|
+
typeSymbol: "@wowyuarm/dsh-agent-team/types#AgentTeamEnvironmentResult",
|
|
6149
|
+
create: _wowyuarm_dsh_agent_team_agentTeam_environment_result$schema
|
|
6150
|
+
},
|
|
6151
|
+
sourceLocation: {
|
|
6152
|
+
"file": "packages/agent-team/src/index.ts",
|
|
6153
|
+
"line": 1783,
|
|
6154
|
+
"column": 3
|
|
6155
|
+
}
|
|
6156
|
+
},
|
|
6051
6157
|
{
|
|
6052
6158
|
id: "@wowyuarm/dsh-agent-team#agentTeam/getAttachment",
|
|
6053
6159
|
service: "agentTeam",
|
|
@@ -6071,7 +6177,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6071
6177
|
},
|
|
6072
6178
|
sourceLocation: {
|
|
6073
6179
|
"file": "packages/agent-team/src/index.ts",
|
|
6074
|
-
"line":
|
|
6180
|
+
"line": 1724,
|
|
6075
6181
|
"column": 9
|
|
6076
6182
|
}
|
|
6077
6183
|
},
|
|
@@ -6098,7 +6204,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6098
6204
|
},
|
|
6099
6205
|
sourceLocation: {
|
|
6100
6206
|
"file": "packages/agent-team/src/index.ts",
|
|
6101
|
-
"line":
|
|
6207
|
+
"line": 1816,
|
|
6102
6208
|
"column": 9
|
|
6103
6209
|
}
|
|
6104
6210
|
},
|
|
@@ -6126,7 +6232,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6126
6232
|
},
|
|
6127
6233
|
sourceLocation: {
|
|
6128
6234
|
"file": "packages/agent-team/src/index.ts",
|
|
6129
|
-
"line":
|
|
6235
|
+
"line": 1788,
|
|
6130
6236
|
"column": 3
|
|
6131
6237
|
}
|
|
6132
6238
|
},
|
|
@@ -6153,7 +6259,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6153
6259
|
},
|
|
6154
6260
|
sourceLocation: {
|
|
6155
6261
|
"file": "packages/agent-team/src/index.ts",
|
|
6156
|
-
"line":
|
|
6262
|
+
"line": 1885,
|
|
6157
6263
|
"column": 3
|
|
6158
6264
|
}
|
|
6159
6265
|
},
|
|
@@ -6180,7 +6286,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6180
6286
|
},
|
|
6181
6287
|
sourceLocation: {
|
|
6182
6288
|
"file": "packages/agent-team/src/index.ts",
|
|
6183
|
-
"line":
|
|
6289
|
+
"line": 1617,
|
|
6184
6290
|
"column": 9
|
|
6185
6291
|
}
|
|
6186
6292
|
},
|
|
@@ -6207,7 +6313,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6207
6313
|
},
|
|
6208
6314
|
sourceLocation: {
|
|
6209
6315
|
"file": "packages/agent-team/src/index.ts",
|
|
6210
|
-
"line":
|
|
6316
|
+
"line": 1637,
|
|
6211
6317
|
"column": 9
|
|
6212
6318
|
}
|
|
6213
6319
|
},
|
|
@@ -6234,7 +6340,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6234
6340
|
},
|
|
6235
6341
|
sourceLocation: {
|
|
6236
6342
|
"file": "packages/agent-team/src/index.ts",
|
|
6237
|
-
"line":
|
|
6343
|
+
"line": 1646,
|
|
6238
6344
|
"column": 9
|
|
6239
6345
|
}
|
|
6240
6346
|
},
|
|
@@ -6262,7 +6368,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6262
6368
|
},
|
|
6263
6369
|
sourceLocation: {
|
|
6264
6370
|
"file": "packages/agent-team/src/index.ts",
|
|
6265
|
-
"line":
|
|
6371
|
+
"line": 992,
|
|
6266
6372
|
"column": 3
|
|
6267
6373
|
}
|
|
6268
6374
|
},
|
|
@@ -6289,7 +6395,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6289
6395
|
},
|
|
6290
6396
|
sourceLocation: {
|
|
6291
6397
|
"file": "packages/agent-team/src/index.ts",
|
|
6292
|
-
"line":
|
|
6398
|
+
"line": 1607,
|
|
6293
6399
|
"column": 9
|
|
6294
6400
|
}
|
|
6295
6401
|
},
|
|
@@ -6316,7 +6422,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6316
6422
|
},
|
|
6317
6423
|
sourceLocation: {
|
|
6318
6424
|
"file": "packages/agent-team/src/index.ts",
|
|
6319
|
-
"line":
|
|
6425
|
+
"line": 1707,
|
|
6320
6426
|
"column": 9
|
|
6321
6427
|
}
|
|
6322
6428
|
},
|
|
@@ -6343,7 +6449,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6343
6449
|
},
|
|
6344
6450
|
sourceLocation: {
|
|
6345
6451
|
"file": "packages/agent-team/src/index.ts",
|
|
6346
|
-
"line":
|
|
6452
|
+
"line": 1808,
|
|
6347
6453
|
"column": 9
|
|
6348
6454
|
}
|
|
6349
6455
|
},
|
|
@@ -6370,7 +6476,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6370
6476
|
},
|
|
6371
6477
|
sourceLocation: {
|
|
6372
6478
|
"file": "packages/agent-team/src/index.ts",
|
|
6373
|
-
"line":
|
|
6479
|
+
"line": 1892,
|
|
6374
6480
|
"column": 9
|
|
6375
6481
|
}
|
|
6376
6482
|
},
|
|
@@ -6397,7 +6503,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6397
6503
|
},
|
|
6398
6504
|
sourceLocation: {
|
|
6399
6505
|
"file": "packages/agent-team/src/index.ts",
|
|
6400
|
-
"line":
|
|
6506
|
+
"line": 1144,
|
|
6401
6507
|
"column": 9
|
|
6402
6508
|
}
|
|
6403
6509
|
},
|
|
@@ -6424,7 +6530,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6424
6530
|
},
|
|
6425
6531
|
sourceLocation: {
|
|
6426
6532
|
"file": "packages/agent-team/src/index.ts",
|
|
6427
|
-
"line":
|
|
6533
|
+
"line": 1628,
|
|
6428
6534
|
"column": 9
|
|
6429
6535
|
}
|
|
6430
6536
|
},
|
|
@@ -6451,7 +6557,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6451
6557
|
},
|
|
6452
6558
|
sourceLocation: {
|
|
6453
6559
|
"file": "packages/agent-team/src/index.ts",
|
|
6454
|
-
"line":
|
|
6560
|
+
"line": 1824,
|
|
6455
6561
|
"column": 9
|
|
6456
6562
|
}
|
|
6457
6563
|
},
|
|
@@ -6478,7 +6584,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6478
6584
|
},
|
|
6479
6585
|
sourceLocation: {
|
|
6480
6586
|
"file": "packages/agent-team/src/index.ts",
|
|
6481
|
-
"line":
|
|
6587
|
+
"line": 1870,
|
|
6482
6588
|
"column": 9
|
|
6483
6589
|
}
|
|
6484
6590
|
},
|
|
@@ -6505,7 +6611,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6505
6611
|
},
|
|
6506
6612
|
sourceLocation: {
|
|
6507
6613
|
"file": "packages/agent-team/src/index.ts",
|
|
6508
|
-
"line":
|
|
6614
|
+
"line": 966,
|
|
6509
6615
|
"column": 3
|
|
6510
6616
|
}
|
|
6511
6617
|
},
|
|
@@ -6532,7 +6638,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6532
6638
|
},
|
|
6533
6639
|
sourceLocation: {
|
|
6534
6640
|
"file": "packages/agent-team/src/index.ts",
|
|
6535
|
-
"line":
|
|
6641
|
+
"line": 979,
|
|
6536
6642
|
"column": 3
|
|
6537
6643
|
}
|
|
6538
6644
|
},
|
|
@@ -6559,7 +6665,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6559
6665
|
},
|
|
6560
6666
|
sourceLocation: {
|
|
6561
6667
|
"file": "packages/agent-team/src/index.ts",
|
|
6562
|
-
"line":
|
|
6668
|
+
"line": 1655,
|
|
6563
6669
|
"column": 9
|
|
6564
6670
|
}
|
|
6565
6671
|
},
|
|
@@ -6586,7 +6692,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6586
6692
|
},
|
|
6587
6693
|
sourceLocation: {
|
|
6588
6694
|
"file": "packages/agent-team/src/index.ts",
|
|
6589
|
-
"line":
|
|
6695
|
+
"line": 1846,
|
|
6590
6696
|
"column": 9
|
|
6591
6697
|
}
|
|
6592
6698
|
},
|
|
@@ -6613,7 +6719,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6613
6719
|
},
|
|
6614
6720
|
sourceLocation: {
|
|
6615
6721
|
"file": "packages/agent-team/src/index.ts",
|
|
6616
|
-
"line":
|
|
6722
|
+
"line": 1910,
|
|
6617
6723
|
"column": 3
|
|
6618
6724
|
}
|
|
6619
6725
|
},
|
|
@@ -6640,7 +6746,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6640
6746
|
},
|
|
6641
6747
|
sourceLocation: {
|
|
6642
6748
|
"file": "packages/agent-team/src/index.ts",
|
|
6643
|
-
"line":
|
|
6749
|
+
"line": 1903,
|
|
6644
6750
|
"column": 3
|
|
6645
6751
|
}
|
|
6646
6752
|
},
|
|
@@ -6667,7 +6773,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6667
6773
|
},
|
|
6668
6774
|
sourceLocation: {
|
|
6669
6775
|
"file": "packages/agent-team/src/index.ts",
|
|
6670
|
-
"line":
|
|
6776
|
+
"line": 1054,
|
|
6671
6777
|
"column": 9
|
|
6672
6778
|
}
|
|
6673
6779
|
},
|
|
@@ -6694,7 +6800,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6694
6800
|
},
|
|
6695
6801
|
sourceLocation: {
|
|
6696
6802
|
"file": "packages/agent-team/src/index.ts",
|
|
6697
|
-
"line":
|
|
6803
|
+
"line": 1527,
|
|
6698
6804
|
"column": 9
|
|
6699
6805
|
}
|
|
6700
6806
|
},
|
|
@@ -6721,7 +6827,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6721
6827
|
},
|
|
6722
6828
|
sourceLocation: {
|
|
6723
6829
|
"file": "packages/agent-team/src/index.ts",
|
|
6724
|
-
"line":
|
|
6830
|
+
"line": 1917,
|
|
6725
6831
|
"column": 3
|
|
6726
6832
|
}
|
|
6727
6833
|
}
|
|
@@ -6729,12 +6835,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6729
6835
|
};
|
|
6730
6836
|
//#endregion
|
|
6731
6837
|
//#region src/client/human-identity.ts
|
|
6732
|
-
const INITIAL = {
|
|
6838
|
+
const INITIAL$2 = {
|
|
6733
6839
|
status: "loading",
|
|
6734
6840
|
updateAvailable: false
|
|
6735
6841
|
};
|
|
6736
6842
|
var TeamHumanIdentity = class {
|
|
6737
|
-
snapshot = INITIAL;
|
|
6843
|
+
snapshot = INITIAL$2;
|
|
6738
6844
|
listeners = /* @__PURE__ */ new Set();
|
|
6739
6845
|
reading;
|
|
6740
6846
|
loader;
|
|
@@ -6823,6 +6929,184 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6823
6929
|
return (0, react.useSyncExternalStore)(identity.subscribe, identity.getSnapshot, identity.getSnapshot);
|
|
6824
6930
|
}
|
|
6825
6931
|
//#endregion
|
|
6932
|
+
//#region src/client/environment-check.ts
|
|
6933
|
+
const INITIAL$1 = { status: "loading" };
|
|
6934
|
+
var TeamEnvironmentCheck = class {
|
|
6935
|
+
snapshot = INITIAL$1;
|
|
6936
|
+
listeners = /* @__PURE__ */ new Set();
|
|
6937
|
+
reading;
|
|
6938
|
+
loader;
|
|
6939
|
+
constructor(loader) {
|
|
6940
|
+
this.loader = loader;
|
|
6941
|
+
}
|
|
6942
|
+
getSnapshot = () => this.snapshot;
|
|
6943
|
+
/**
|
|
6944
|
+
* Observe the check, starting the first read when nobody has read yet.
|
|
6945
|
+
* @param listener - invoked after every snapshot replacement.
|
|
6946
|
+
* @returns the disposer removing this listener.
|
|
6947
|
+
*/
|
|
6948
|
+
subscribe = (listener) => {
|
|
6949
|
+
this.listeners.add(listener);
|
|
6950
|
+
if (this.snapshot.status === "loading" && this.reading === void 0) this.refresh();
|
|
6951
|
+
return () => {
|
|
6952
|
+
this.listeners.delete(listener);
|
|
6953
|
+
};
|
|
6954
|
+
};
|
|
6955
|
+
/**
|
|
6956
|
+
* Read the Host projection. Concurrent callers share one round trip, and a
|
|
6957
|
+
* failed read keeps the last accepted report — the block never blanks out
|
|
6958
|
+
* over a background read.
|
|
6959
|
+
* @returns settlement of this read (or of the read already in flight).
|
|
6960
|
+
*/
|
|
6961
|
+
refresh() {
|
|
6962
|
+
if (this.reading !== void 0) return this.reading;
|
|
6963
|
+
const reading = this.read().finally(() => {
|
|
6964
|
+
if (this.reading === reading) this.reading = void 0;
|
|
6965
|
+
});
|
|
6966
|
+
this.reading = reading;
|
|
6967
|
+
return reading;
|
|
6968
|
+
}
|
|
6969
|
+
dispose() {
|
|
6970
|
+
this.listeners.clear();
|
|
6971
|
+
}
|
|
6972
|
+
async read() {
|
|
6973
|
+
let report;
|
|
6974
|
+
try {
|
|
6975
|
+
const result = await this.loader.loadEnvironment();
|
|
6976
|
+
if (!result.ok) {
|
|
6977
|
+
this.fail();
|
|
6978
|
+
return;
|
|
6979
|
+
}
|
|
6980
|
+
report = result.value;
|
|
6981
|
+
} catch {
|
|
6982
|
+
this.fail();
|
|
6983
|
+
return;
|
|
6984
|
+
}
|
|
6985
|
+
this.commit({
|
|
6986
|
+
status: "ready",
|
|
6987
|
+
report
|
|
6988
|
+
});
|
|
6989
|
+
}
|
|
6990
|
+
/**
|
|
6991
|
+
* Settle a read that produced no report, so a reader stops waiting on a
|
|
6992
|
+
* `loading` that will never finish. A report that already stands is left
|
|
6993
|
+
* untouched: a failed background read never blanks the block.
|
|
6994
|
+
*/
|
|
6995
|
+
fail() {
|
|
6996
|
+
if (this.snapshot.report === void 0) this.commit({ status: "ready" });
|
|
6997
|
+
}
|
|
6998
|
+
commit(snapshot) {
|
|
6999
|
+
this.snapshot = snapshot;
|
|
7000
|
+
for (const listener of this.listeners) listener();
|
|
7001
|
+
}
|
|
7002
|
+
};
|
|
7003
|
+
/** Subscribe one rendered block to the environment check. */
|
|
7004
|
+
function useEnvironmentCheck(environment) {
|
|
7005
|
+
return (0, react.useSyncExternalStore)(environment.subscribe, environment.getSnapshot, environment.getSnapshot);
|
|
7006
|
+
}
|
|
7007
|
+
//#endregion
|
|
7008
|
+
//#region \0dsh-css:/home/yu/projects/release-0.2.1/packages/client-agent-team/src/client/environment-check.module.css.mjs
|
|
7009
|
+
const css$15 = ".kWho4W_block{align-items:flex-start;gap:8px;display:flex}.kWho4W_icon{color:var(--dsw-alias-label-tertiary);flex:none;width:16px;height:16px;margin-top:2px}.kWho4W_body{flex-direction:column;gap:4px;min-width:0;display:flex}.kWho4W_title{color:var(--dsw-alias-label-secondary);margin:0;font-size:13px;line-height:20px}.kWho4W_detail{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:18px}.kWho4W_action{margin:2px 0 0;font-size:12px;line-height:18px}.kWho4W_link{color:var(--dsw-alias-brand-primary);text-decoration:none}.kWho4W_link:hover{text-decoration:underline}.kWho4W_link:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}.kWho4W_block[data-environment=ok] .kWho4W_icon{color:var(--dsw-alias-state-success-primary)}.kWho4W_block[data-environment=out-of-range]{background:var(--dsw-alias-state-warn-tertiary);border-radius:var(--dsw-radius-md,12px);gap:10px;padding:12px}.kWho4W_block[data-environment=out-of-range] .kWho4W_icon,.kWho4W_block[data-environment=out-of-range] .kWho4W_title{color:var(--dsw-alias-state-warn-label)}";
|
|
7010
|
+
const tagId$15 = "@wowyuarm/dsh-agent-team/environment-check.module.css";
|
|
7011
|
+
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$15) + "]") === null) {
|
|
7012
|
+
const tag = document.createElement("style");
|
|
7013
|
+
tag.dataset.plugin = "@wowyuarm/dsh-agent-team";
|
|
7014
|
+
tag.dataset.pluginCss = tagId$15;
|
|
7015
|
+
tag.textContent = css$15;
|
|
7016
|
+
document.head.appendChild(tag);
|
|
7017
|
+
}
|
|
7018
|
+
var environment_check_module_css_default = {
|
|
7019
|
+
"action": "kWho4W_action",
|
|
7020
|
+
"block": "kWho4W_block",
|
|
7021
|
+
"body": "kWho4W_body",
|
|
7022
|
+
"detail": "kWho4W_detail",
|
|
7023
|
+
"icon": "kWho4W_icon",
|
|
7024
|
+
"link": "kWho4W_link",
|
|
7025
|
+
"title": "kWho4W_title"
|
|
7026
|
+
};
|
|
7027
|
+
//#endregion
|
|
7028
|
+
//#region src/client/EnvironmentCheck.tsx
|
|
7029
|
+
/** The three glyphs, drawn at the 16px seat the settings page uses for state marks. */
|
|
7030
|
+
const ICONS$1 = {
|
|
7031
|
+
ok: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M3 8.5 6.5 12 13 4.5" }),
|
|
7032
|
+
warn: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
7033
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M8 2.5 14.6 13.6H1.4z" }),
|
|
7034
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M8 6.6v3.2" }),
|
|
7035
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M8 11.9h.01" })
|
|
7036
|
+
] }),
|
|
7037
|
+
unknown: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("circle", {
|
|
7038
|
+
cx: "8",
|
|
7039
|
+
cy: "8",
|
|
7040
|
+
r: "6"
|
|
7041
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M5.6 8h4.8" })] })
|
|
7042
|
+
};
|
|
7043
|
+
function EnvironmentIcon({ glyph }) {
|
|
7044
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
7045
|
+
className: environment_check_module_css_default.icon,
|
|
7046
|
+
viewBox: "0 0 16 16",
|
|
7047
|
+
fill: "none",
|
|
7048
|
+
stroke: "currentColor",
|
|
7049
|
+
strokeWidth: "1.5",
|
|
7050
|
+
strokeLinecap: "round",
|
|
7051
|
+
strokeLinejoin: "round",
|
|
7052
|
+
"aria-hidden": "true",
|
|
7053
|
+
children: ICONS$1[glyph]
|
|
7054
|
+
});
|
|
7055
|
+
}
|
|
7056
|
+
/** The release notes this bundle's own repository keeps, one click from the version footnote. */
|
|
7057
|
+
const RELEASE_NOTES_URL = "https://github.com/wowyuarm/dsh-agent-team/releases";
|
|
7058
|
+
function EnvironmentCheck({ t, environment }) {
|
|
7059
|
+
const { report } = useEnvironmentCheck(environment);
|
|
7060
|
+
if (report === void 0) return null;
|
|
7061
|
+
const range = report.supportRange;
|
|
7062
|
+
const running = report.dshVersion;
|
|
7063
|
+
const certified = report.certifiedDshVersion;
|
|
7064
|
+
const bundleVersion = report.bundleVersion;
|
|
7065
|
+
const tested = certified !== void 0 && bundleVersion !== void 0 && bundleVersion !== "unknown";
|
|
7066
|
+
const title = report.verdict === "ok" ? t("environmentOkTitle") : report.verdict === "out-of-range" ? t("environmentOutOfRangeTitle") : t("environmentUndeterminedTitle");
|
|
7067
|
+
const lines = [];
|
|
7068
|
+
if (report.verdict === "ok") {
|
|
7069
|
+
if (running !== void 0) lines.push(t("environmentOkDetail", { version: running }));
|
|
7070
|
+
} else if (report.verdict === "out-of-range") {
|
|
7071
|
+
if (running !== void 0) lines.push(t("environmentOutOfRangeDetail", { version: running }));
|
|
7072
|
+
if (range !== void 0) lines.push(t("environmentRange", {
|
|
7073
|
+
lower: range.lower,
|
|
7074
|
+
upper: range.upper
|
|
7075
|
+
}));
|
|
7076
|
+
if (tested && certified !== void 0 && bundleVersion !== void 0) lines.push(t("environmentTested", {
|
|
7077
|
+
bundle: bundleVersion,
|
|
7078
|
+
dsh: certified
|
|
7079
|
+
}));
|
|
7080
|
+
} else lines.push(t("environmentUndeterminedDetail"));
|
|
7081
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
7082
|
+
className: environment_check_module_css_default.block,
|
|
7083
|
+
"data-environment": report.verdict,
|
|
7084
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(EnvironmentIcon, { glyph: report.verdict === "ok" ? "ok" : report.verdict === "out-of-range" ? "warn" : "unknown" }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
7085
|
+
className: environment_check_module_css_default.body,
|
|
7086
|
+
children: [
|
|
7087
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
7088
|
+
className: environment_check_module_css_default.title,
|
|
7089
|
+
children: title
|
|
7090
|
+
}),
|
|
7091
|
+
lines.map((line, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
7092
|
+
className: environment_check_module_css_default.detail,
|
|
7093
|
+
children: line
|
|
7094
|
+
}, index)),
|
|
7095
|
+
report.verdict !== "ok" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
7096
|
+
className: environment_check_module_css_default.action,
|
|
7097
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
|
|
7098
|
+
className: environment_check_module_css_default.link,
|
|
7099
|
+
href: RELEASE_NOTES_URL,
|
|
7100
|
+
target: "_blank",
|
|
7101
|
+
rel: "noreferrer",
|
|
7102
|
+
children: t("environmentReleaseNotes")
|
|
7103
|
+
})
|
|
7104
|
+
})
|
|
7105
|
+
]
|
|
7106
|
+
})]
|
|
7107
|
+
});
|
|
7108
|
+
}
|
|
7109
|
+
//#endregion
|
|
6826
7110
|
//#region src/client/avatar-image.ts
|
|
6827
7111
|
function useAvatarImage(url) {
|
|
6828
7112
|
const [broken, setBroken] = (0, react.useState)(void 0);
|
|
@@ -6834,9 +7118,85 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6834
7118
|
};
|
|
6835
7119
|
}
|
|
6836
7120
|
//#endregion
|
|
6837
|
-
//#region
|
|
6838
|
-
const
|
|
6839
|
-
|
|
7121
|
+
//#region src/client/context-judge.ts
|
|
7122
|
+
const INITIAL = { status: "loading" };
|
|
7123
|
+
var TeamContextJudgeCheck = class {
|
|
7124
|
+
snapshot = INITIAL;
|
|
7125
|
+
listeners = /* @__PURE__ */ new Set();
|
|
7126
|
+
reading;
|
|
7127
|
+
loader;
|
|
7128
|
+
constructor(loader) {
|
|
7129
|
+
this.loader = loader;
|
|
7130
|
+
}
|
|
7131
|
+
getSnapshot = () => this.snapshot;
|
|
7132
|
+
/**
|
|
7133
|
+
* Observe the status, starting the first read when nobody has read yet.
|
|
7134
|
+
* @param listener - invoked after every snapshot replacement.
|
|
7135
|
+
* @returns the disposer removing this listener.
|
|
7136
|
+
*/
|
|
7137
|
+
subscribe = (listener) => {
|
|
7138
|
+
this.listeners.add(listener);
|
|
7139
|
+
if (this.snapshot.status === "loading" && this.reading === void 0) this.refresh();
|
|
7140
|
+
return () => {
|
|
7141
|
+
this.listeners.delete(listener);
|
|
7142
|
+
};
|
|
7143
|
+
};
|
|
7144
|
+
/**
|
|
7145
|
+
* Read the Host status. Concurrent callers share one round trip, and a failed
|
|
7146
|
+
* read keeps the last accepted report — the block never blanks out over a
|
|
7147
|
+
* background read.
|
|
7148
|
+
* @returns settlement of this read (or of the read already in flight).
|
|
7149
|
+
*/
|
|
7150
|
+
refresh() {
|
|
7151
|
+
if (this.reading !== void 0) return this.reading;
|
|
7152
|
+
const reading = this.read().finally(() => {
|
|
7153
|
+
if (this.reading === reading) this.reading = void 0;
|
|
7154
|
+
});
|
|
7155
|
+
this.reading = reading;
|
|
7156
|
+
return reading;
|
|
7157
|
+
}
|
|
7158
|
+
dispose() {
|
|
7159
|
+
this.listeners.clear();
|
|
7160
|
+
}
|
|
7161
|
+
async read() {
|
|
7162
|
+
let report;
|
|
7163
|
+
try {
|
|
7164
|
+
const result = await this.loader.loadContextJudge();
|
|
7165
|
+
if (!result.ok) {
|
|
7166
|
+
this.fail();
|
|
7167
|
+
return;
|
|
7168
|
+
}
|
|
7169
|
+
report = result.value;
|
|
7170
|
+
} catch {
|
|
7171
|
+
this.fail();
|
|
7172
|
+
return;
|
|
7173
|
+
}
|
|
7174
|
+
this.commit({
|
|
7175
|
+
status: "ready",
|
|
7176
|
+
report
|
|
7177
|
+
});
|
|
7178
|
+
}
|
|
7179
|
+
/**
|
|
7180
|
+
* Settle a read that produced no report, so a reader stops waiting on a
|
|
7181
|
+
* `loading` that will never finish. A report that already stands is left
|
|
7182
|
+
* untouched: a failed background read never blanks the block.
|
|
7183
|
+
*/
|
|
7184
|
+
fail() {
|
|
7185
|
+
if (this.snapshot.report === void 0) this.commit({ status: "ready" });
|
|
7186
|
+
}
|
|
7187
|
+
commit(snapshot) {
|
|
7188
|
+
this.snapshot = snapshot;
|
|
7189
|
+
for (const listener of this.listeners) listener();
|
|
7190
|
+
}
|
|
7191
|
+
};
|
|
7192
|
+
/** Subscribe one rendered block to the judge status. */
|
|
7193
|
+
function useContextJudge(judge) {
|
|
7194
|
+
return (0, react.useSyncExternalStore)(judge.subscribe, judge.getSnapshot, judge.getSnapshot);
|
|
7195
|
+
}
|
|
7196
|
+
//#endregion
|
|
7197
|
+
//#region \0dsh-css:/home/yu/projects/release-0.2.1/packages/client-agent-team/src/client/team-settings.module.css.mjs
|
|
7198
|
+
const css$14 = ".b2IEWG_section{max-width:760px;color:var(--dsw-alias-label-primary);flex-direction:column;gap:12px;display:flex;container-type:inline-size}.b2IEWG_heading{margin:0;font-size:18px;font-weight:600}.b2IEWG_intro{color:var(--dsw-alias-label-tertiary);margin:0;font-size:13px;line-height:20px}.b2IEWG_rows{flex-direction:column;display:flex}.b2IEWG_row{border-bottom:1px solid var(--dsw-alias-border-l2);align-items:center;gap:12px;padding:16px 0;display:flex}.b2IEWG_row:last-child{border-bottom:none}.b2IEWG_rowText{flex-direction:column;flex:1;gap:4px;min-width:0;padding-right:48px;display:flex}.b2IEWG_title{font-size:14px;line-height:22px}.b2IEWG_desc{color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:18px}.b2IEWG_controls{flex:none;align-items:center;gap:12px;display:inline-flex}.b2IEWG_nameInput{width:200px;height:36px}.b2IEWG_identity{corner-shape:round;border-radius:50%;flex:none;width:40px;height:40px}.b2IEWG_identityImage{object-fit:cover;display:block}.b2IEWG_identityFallback{background:var(--dsw-alias-state-business-primary);color:var(--dsw-static-neutral-bluish-00);justify-content:center;align-items:center;font-size:16px;font-weight:600;line-height:40px;display:inline-flex}.b2IEWG_group{border-top:1px solid var(--dsw-alias-border-l2);flex-direction:column;display:flex}.b2IEWG_groupToggle{color:var(--dsw-alias-label-primary);cursor:pointer;font:inherit;text-align:left;background:0 0;border:0;align-items:center;gap:6px;width:100%;min-width:0;padding:14px 0;display:flex}.b2IEWG_groupToggle:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}.b2IEWG_groupChevron{color:var(--dsw-alias-label-tertiary);flex:none;display:inline-flex}.b2IEWG_groupTitle{flex:none;font-size:14px;line-height:22px}.b2IEWG_status{color:var(--dsw-alias-label-tertiary);text-align:right;align-items:center;gap:4px;min-width:0;margin-left:auto;font-size:12px;line-height:18px;display:inline-flex}.b2IEWG_statusIcon{color:currentColor;flex:none;width:14px;height:14px}.b2IEWG_status[data-context-judge=enabled]{color:var(--dsw-alias-label-secondary)}.b2IEWG_status[data-context-judge=enabled] .b2IEWG_statusIcon{color:var(--dsw-alias-state-success-primary)}.b2IEWG_status[data-context-judge=unavailable]{color:var(--dsw-alias-state-warn-label)}.b2IEWG_groupBody{flex-direction:column;padding-bottom:4px;display:flex}.b2IEWG_groupHint{color:var(--dsw-alias-label-tertiary);margin:0;padding-bottom:4px;font-size:12px;line-height:18px}.b2IEWG_clearRow{flex-wrap:wrap;align-items:center;gap:8px;padding-bottom:4px;display:flex}.b2IEWG_clearHint{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:18px}.b2IEWG_environment{border-top:1px solid var(--dsw-alias-border-l2);padding-top:16px}.b2IEWG_footnote{color:var(--dsw-alias-label-tertiary);flex-wrap:wrap;align-items:center;gap:8px;font-size:12px;line-height:18px;display:flex}.b2IEWG_link{color:var(--dsw-alias-brand-primary);cursor:pointer;text-decoration:none}.b2IEWG_link:hover{text-decoration:underline}.b2IEWG_link:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}.b2IEWG_notice{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px;line-height:18px}.b2IEWG_state{color:var(--dsw-alias-label-tertiary);margin:0;font-size:13px;line-height:20px}.b2IEWG_stateAction{align-items:center;gap:12px;display:flex}@container (width<=420px){.b2IEWG_row{flex-direction:column;align-items:stretch;gap:12px}.b2IEWG_rowText{padding-right:0}.b2IEWG_nameInput{width:100%}.b2IEWG_controls,.b2IEWG_groupToggle{flex-wrap:wrap}.b2IEWG_status{text-align:left;align-items:flex-start;width:100%;margin-left:0}.b2IEWG_groupBody [class*=head]{flex-direction:column;align-items:flex-start;gap:4px}.b2IEWG_groupBody [class*=head]>*{flex:none}.b2IEWG_clearRow{flex-direction:column;align-items:flex-start}}";
|
|
7199
|
+
const tagId$14 = "@wowyuarm/dsh-agent-team/team-settings.module.css";
|
|
6840
7200
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$14) + "]") === null) {
|
|
6841
7201
|
const tag = document.createElement("style");
|
|
6842
7202
|
tag.dataset.plugin = "@wowyuarm/dsh-agent-team";
|
|
@@ -6844,36 +7204,51 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6844
7204
|
tag.textContent = css$14;
|
|
6845
7205
|
document.head.appendChild(tag);
|
|
6846
7206
|
}
|
|
6847
|
-
var
|
|
6848
|
-
"
|
|
6849
|
-
"
|
|
6850
|
-
"
|
|
6851
|
-
"
|
|
6852
|
-
"
|
|
6853
|
-
"
|
|
6854
|
-
"
|
|
6855
|
-
"
|
|
6856
|
-
"
|
|
6857
|
-
"
|
|
6858
|
-
"
|
|
6859
|
-
"
|
|
6860
|
-
"
|
|
6861
|
-
"
|
|
6862
|
-
"
|
|
6863
|
-
"
|
|
6864
|
-
"
|
|
6865
|
-
"
|
|
7207
|
+
var team_settings_module_css_default = {
|
|
7208
|
+
"clearHint": "b2IEWG_clearHint",
|
|
7209
|
+
"clearRow": "b2IEWG_clearRow",
|
|
7210
|
+
"controls": "b2IEWG_controls",
|
|
7211
|
+
"desc": "b2IEWG_desc",
|
|
7212
|
+
"environment": "b2IEWG_environment",
|
|
7213
|
+
"footnote": "b2IEWG_footnote",
|
|
7214
|
+
"group": "b2IEWG_group",
|
|
7215
|
+
"groupBody": "b2IEWG_groupBody",
|
|
7216
|
+
"groupChevron": "b2IEWG_groupChevron",
|
|
7217
|
+
"groupHint": "b2IEWG_groupHint",
|
|
7218
|
+
"groupTitle": "b2IEWG_groupTitle",
|
|
7219
|
+
"groupToggle": "b2IEWG_groupToggle",
|
|
7220
|
+
"heading": "b2IEWG_heading",
|
|
7221
|
+
"identity": "b2IEWG_identity",
|
|
7222
|
+
"identityFallback": "b2IEWG_identityFallback",
|
|
7223
|
+
"identityImage": "b2IEWG_identityImage",
|
|
7224
|
+
"intro": "b2IEWG_intro",
|
|
7225
|
+
"link": "b2IEWG_link",
|
|
7226
|
+
"nameInput": "b2IEWG_nameInput",
|
|
7227
|
+
"notice": "b2IEWG_notice",
|
|
7228
|
+
"row": "b2IEWG_row",
|
|
7229
|
+
"rowText": "b2IEWG_rowText",
|
|
7230
|
+
"rows": "b2IEWG_rows",
|
|
7231
|
+
"section": "b2IEWG_section",
|
|
7232
|
+
"state": "b2IEWG_state",
|
|
7233
|
+
"stateAction": "b2IEWG_stateAction",
|
|
7234
|
+
"status": "b2IEWG_status",
|
|
7235
|
+
"statusIcon": "b2IEWG_statusIcon",
|
|
7236
|
+
"title": "b2IEWG_title"
|
|
6866
7237
|
};
|
|
6867
7238
|
//#endregion
|
|
6868
|
-
//#region src/client/
|
|
7239
|
+
//#region src/client/TeamSettingsSection.tsx
|
|
6869
7240
|
/**
|
|
6870
|
-
* The
|
|
7241
|
+
* The Team's settings page: the Human's display name and avatar, the endpoint
|
|
7242
|
+
* the relatedness judge calls, the local environment check, and the version
|
|
6871
7243
|
* footnote.
|
|
6872
7244
|
*
|
|
6873
|
-
* The page owns no durable fact and no copy of one
|
|
6874
|
-
*
|
|
6875
|
-
*
|
|
6876
|
-
*
|
|
7245
|
+
* The page owns no durable fact and no copy of one, and it holds its two
|
|
7246
|
+
* writable groups apart because they are two different documents: identity
|
|
7247
|
+
* arrives from the shared identity projection and writes through the Team
|
|
7248
|
+
* Remote, while the judge's endpoint is one group of the Team row's settings
|
|
7249
|
+
* section and writes through the settings provider. Neither group renders the
|
|
7250
|
+
* other's fields, and a failed write in either keeps the typed value and
|
|
7251
|
+
* reports the reason it was refused.
|
|
6877
7252
|
*/
|
|
6878
7253
|
/** Host-side avatar ceiling (`ATTACHMENT_MAX_BYTES`): the settings page refuses larger files before the round trip. */
|
|
6879
7254
|
const AVATAR_MAX_BYTES = 10 * 1024 * 1024;
|
|
@@ -6895,9 +7270,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6895
7270
|
const trimmed = (name ?? "").replace(/^@/, "").trim();
|
|
6896
7271
|
return trimmed === "" ? "H" : trimmed.slice(0, 1).toUpperCase();
|
|
6897
7272
|
}
|
|
6898
|
-
function
|
|
7273
|
+
function TeamSettingsSection(props) {
|
|
6899
7274
|
const { t, identity } = props;
|
|
6900
7275
|
const profile = useHumanIdentity(identity);
|
|
7276
|
+
const judgeForm = (0, react.useSyncExternalStore)(props.judgeForm.subscribe, props.judgeForm.getSnapshot);
|
|
6901
7277
|
const [draft, setDraft] = (0, react.useState)(void 0);
|
|
6902
7278
|
const [saving, setSaving] = (0, react.useState)(false);
|
|
6903
7279
|
const [uploading, setUploading] = (0, react.useState)(false);
|
|
@@ -6942,31 +7318,31 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6942
7318
|
if (failure !== void 0) setNotice(t("humanSettingsAvatarFailed", { message: failure }));
|
|
6943
7319
|
};
|
|
6944
7320
|
const pageHeader = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h2", {
|
|
6945
|
-
className:
|
|
6946
|
-
children: t("
|
|
7321
|
+
className: team_settings_module_css_default.heading,
|
|
7322
|
+
children: t("teamSettingsTitle")
|
|
6947
7323
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
6948
|
-
className:
|
|
6949
|
-
children: t("
|
|
7324
|
+
className: team_settings_module_css_default.intro,
|
|
7325
|
+
children: t("teamSettingsIntro")
|
|
6950
7326
|
})] });
|
|
6951
7327
|
if (profile.status === "loading" && profile.name === void 0) return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6952
|
-
className:
|
|
7328
|
+
className: team_settings_module_css_default.section,
|
|
6953
7329
|
children: [pageHeader, /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
6954
|
-
className:
|
|
7330
|
+
className: team_settings_module_css_default.state,
|
|
6955
7331
|
role: "status",
|
|
6956
7332
|
children: t("humanSettingsLoading")
|
|
6957
7333
|
})]
|
|
6958
7334
|
});
|
|
6959
7335
|
if (profile.name === void 0) return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6960
|
-
className:
|
|
7336
|
+
className: team_settings_module_css_default.section,
|
|
6961
7337
|
children: [
|
|
6962
7338
|
pageHeader,
|
|
6963
7339
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
6964
|
-
className:
|
|
7340
|
+
className: team_settings_module_css_default.state,
|
|
6965
7341
|
role: "alert",
|
|
6966
7342
|
children: t("humanSettingsUnavailable", { message: profile.error ?? "" })
|
|
6967
7343
|
}),
|
|
6968
7344
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
6969
|
-
className:
|
|
7345
|
+
className: team_settings_module_css_default.stateAction,
|
|
6970
7346
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
6971
7347
|
variant: "outline",
|
|
6972
7348
|
onClick: () => {
|
|
@@ -6978,30 +7354,30 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6978
7354
|
]
|
|
6979
7355
|
});
|
|
6980
7356
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6981
|
-
className:
|
|
7357
|
+
className: team_settings_module_css_default.section,
|
|
6982
7358
|
children: [
|
|
6983
7359
|
pageHeader,
|
|
6984
7360
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6985
|
-
className:
|
|
7361
|
+
className: team_settings_module_css_default.rows,
|
|
6986
7362
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6987
|
-
className:
|
|
7363
|
+
className: team_settings_module_css_default.row,
|
|
6988
7364
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6989
|
-
className:
|
|
7365
|
+
className: team_settings_module_css_default.rowText,
|
|
6990
7366
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
6991
|
-
className:
|
|
7367
|
+
className: team_settings_module_css_default.title,
|
|
6992
7368
|
children: t("humanSettingsName")
|
|
6993
7369
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
6994
|
-
className:
|
|
7370
|
+
className: team_settings_module_css_default.desc,
|
|
6995
7371
|
children: t("humanSettingsNameHint")
|
|
6996
7372
|
})]
|
|
6997
7373
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("form", {
|
|
6998
|
-
className:
|
|
7374
|
+
className: team_settings_module_css_default.controls,
|
|
6999
7375
|
onSubmit: (event) => {
|
|
7000
7376
|
event.preventDefault();
|
|
7001
7377
|
submitName();
|
|
7002
7378
|
},
|
|
7003
7379
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Input, {
|
|
7004
|
-
className:
|
|
7380
|
+
className: team_settings_module_css_default.nameInput,
|
|
7005
7381
|
"aria-label": t("humanSettingsName"),
|
|
7006
7382
|
"aria-invalid": emptyName || void 0,
|
|
7007
7383
|
value: name,
|
|
@@ -7017,26 +7393,26 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7017
7393
|
})]
|
|
7018
7394
|
})]
|
|
7019
7395
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
7020
|
-
className:
|
|
7396
|
+
className: team_settings_module_css_default.row,
|
|
7021
7397
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
7022
|
-
className:
|
|
7398
|
+
className: team_settings_module_css_default.rowText,
|
|
7023
7399
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
7024
|
-
className:
|
|
7400
|
+
className: team_settings_module_css_default.title,
|
|
7025
7401
|
children: t("humanSettingsAvatar")
|
|
7026
7402
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
7027
|
-
className:
|
|
7403
|
+
className: team_settings_module_css_default.desc,
|
|
7028
7404
|
children: t("humanSettingsAvatarHint")
|
|
7029
7405
|
})]
|
|
7030
7406
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
7031
|
-
className:
|
|
7407
|
+
className: team_settings_module_css_default.controls,
|
|
7032
7408
|
children: [
|
|
7033
7409
|
avatar.src === void 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
7034
|
-
className: `${
|
|
7410
|
+
className: `${team_settings_module_css_default.identity} ${team_settings_module_css_default.identityFallback}`,
|
|
7035
7411
|
"data-avatar": "initial",
|
|
7036
7412
|
"aria-hidden": "true",
|
|
7037
7413
|
children: avatarInitial(profile.name)
|
|
7038
7414
|
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
|
|
7039
|
-
className: `${
|
|
7415
|
+
className: `${team_settings_module_css_default.identity} ${team_settings_module_css_default.identityImage}`,
|
|
7040
7416
|
"data-avatar": "image",
|
|
7041
7417
|
src: avatar.src,
|
|
7042
7418
|
alt: "",
|
|
@@ -7073,8 +7449,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7073
7449
|
})]
|
|
7074
7450
|
})]
|
|
7075
7451
|
}),
|
|
7452
|
+
judgeForm === void 0 ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(JudgeGroup, {
|
|
7453
|
+
t,
|
|
7454
|
+
form: judgeForm,
|
|
7455
|
+
judge: props.judge,
|
|
7456
|
+
keyConfigured: props.keyConfigured
|
|
7457
|
+
}),
|
|
7458
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
7459
|
+
className: team_settings_module_css_default.environment,
|
|
7460
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(EnvironmentCheck, {
|
|
7461
|
+
t,
|
|
7462
|
+
environment: props.environment
|
|
7463
|
+
})
|
|
7464
|
+
}),
|
|
7076
7465
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
7077
|
-
className:
|
|
7466
|
+
className: team_settings_module_css_default.footnote,
|
|
7078
7467
|
children: [
|
|
7079
7468
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("humanSettingsVersion", { version: profile.version ?? "" }) }),
|
|
7080
7469
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
@@ -7082,14 +7471,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7082
7471
|
children: "·"
|
|
7083
7472
|
}),
|
|
7084
7473
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
|
|
7085
|
-
className:
|
|
7474
|
+
className: team_settings_module_css_default.link,
|
|
7086
7475
|
href: profile.repoUrl ?? "",
|
|
7087
7476
|
target: "_blank",
|
|
7088
7477
|
rel: "noreferrer",
|
|
7089
7478
|
children: "GitHub"
|
|
7090
7479
|
}),
|
|
7091
7480
|
profile.updateAvailable && profile.latestVersion !== void 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
|
|
7092
|
-
className:
|
|
7481
|
+
className: team_settings_module_css_default.link,
|
|
7093
7482
|
href: `${profile.repoUrl ?? ""}/releases`,
|
|
7094
7483
|
target: "_blank",
|
|
7095
7484
|
rel: "noreferrer",
|
|
@@ -7098,17 +7487,419 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7098
7487
|
]
|
|
7099
7488
|
}),
|
|
7100
7489
|
emptyName && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
7101
|
-
className:
|
|
7490
|
+
className: team_settings_module_css_default.notice,
|
|
7102
7491
|
children: t("humanSettingsNameEmpty")
|
|
7103
7492
|
}),
|
|
7104
7493
|
notice === null ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
7105
|
-
className:
|
|
7494
|
+
className: team_settings_module_css_default.notice,
|
|
7106
7495
|
role: "alert",
|
|
7107
7496
|
children: notice
|
|
7108
7497
|
})
|
|
7109
7498
|
]
|
|
7110
7499
|
});
|
|
7111
7500
|
}
|
|
7501
|
+
/**
|
|
7502
|
+
* The judge's endpoint as one collapsed row: the state of jev on the line
|
|
7503
|
+
* itself, and the three controls that decide it behind a disclosure.
|
|
7504
|
+
*
|
|
7505
|
+
* Collapsed is the default because the endpoint is set once and then left
|
|
7506
|
+
* alone, while its state is worth seeing every time the page opens — so the
|
|
7507
|
+
* row carries the answer and the controls wait. The status is read rather than
|
|
7508
|
+
* derived, because a deployment may mount a judge from configuration this page
|
|
7509
|
+
* cannot see, and it states what the Host answered rather than predicting it.
|
|
7510
|
+
*/
|
|
7511
|
+
function JudgeGroup(props) {
|
|
7512
|
+
const { t, form, judge, keyConfigured } = props;
|
|
7513
|
+
const { report } = useContextJudge(judge);
|
|
7514
|
+
const state = (0, react.useSyncExternalStore)(form.subscribe, form.getSnapshot, form.getSnapshot);
|
|
7515
|
+
const actions = form.actions();
|
|
7516
|
+
const [open, setOpen] = (0, react.useState)(false);
|
|
7517
|
+
const [clearing, setClearing] = (0, react.useState)(false);
|
|
7518
|
+
const [clearFailed, setClearFailed] = (0, react.useState)(false);
|
|
7519
|
+
const configured = keyConfigured();
|
|
7520
|
+
const disabled = !state.shell.writable;
|
|
7521
|
+
const labels = {
|
|
7522
|
+
overridden: t("teamSettingsOverridden"),
|
|
7523
|
+
reset: t("teamSettingsReset"),
|
|
7524
|
+
invalid: t("teamSettingsInvalid")
|
|
7525
|
+
};
|
|
7526
|
+
const field = (name) => state.fields[name];
|
|
7527
|
+
const clear = async () => {
|
|
7528
|
+
setClearing(true);
|
|
7529
|
+
setClearFailed(false);
|
|
7530
|
+
const landed = await form.clearKey();
|
|
7531
|
+
setClearing(false);
|
|
7532
|
+
if (!landed) setClearFailed(true);
|
|
7533
|
+
};
|
|
7534
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
7535
|
+
className: team_settings_module_css_default.group,
|
|
7536
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
7537
|
+
type: "button",
|
|
7538
|
+
className: team_settings_module_css_default.groupToggle,
|
|
7539
|
+
"aria-expanded": open,
|
|
7540
|
+
onClick: () => {
|
|
7541
|
+
setOpen((value) => !value);
|
|
7542
|
+
},
|
|
7543
|
+
children: [
|
|
7544
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
7545
|
+
className: team_settings_module_css_default.groupChevron,
|
|
7546
|
+
"aria-hidden": "true",
|
|
7547
|
+
children: open ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronDownOutlineRegular, { size: 14 }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronRightOutlineRegular, { size: 14 })
|
|
7548
|
+
}),
|
|
7549
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
7550
|
+
className: team_settings_module_css_default.groupTitle,
|
|
7551
|
+
children: t("teamJudgeGroupTitle")
|
|
7552
|
+
}),
|
|
7553
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(JudgeStatus, {
|
|
7554
|
+
t,
|
|
7555
|
+
report
|
|
7556
|
+
})
|
|
7557
|
+
]
|
|
7558
|
+
}), open ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
7559
|
+
className: team_settings_module_css_default.groupBody,
|
|
7560
|
+
role: "group",
|
|
7561
|
+
"aria-label": t("teamJudgeGroupTitle"),
|
|
7562
|
+
"data-team-judge": true,
|
|
7563
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
7564
|
+
className: team_settings_module_css_default.groupHint,
|
|
7565
|
+
children: t("teamJudgeGroupHint")
|
|
7566
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_deepseek_ai_dsh_client_ui_primitives.SettingsForm, {
|
|
7567
|
+
labels: {
|
|
7568
|
+
unavailable: t("teamSettingsUnavailable"),
|
|
7569
|
+
readOnly: t("teamSettingsReadOnly"),
|
|
7570
|
+
saveFailed: t("teamSettingsSaveFailed"),
|
|
7571
|
+
save: t("teamSettingsSave"),
|
|
7572
|
+
saving: t("teamSettingsSaving")
|
|
7573
|
+
},
|
|
7574
|
+
state: state.shell,
|
|
7575
|
+
onSave: actions.save,
|
|
7576
|
+
onDiscard: actions.discard,
|
|
7577
|
+
children: [
|
|
7578
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.SettingsValueField, {
|
|
7579
|
+
id: "team-judge-api-base",
|
|
7580
|
+
label: t("teamJudgeApiBase"),
|
|
7581
|
+
text: field("apiBase").text,
|
|
7582
|
+
overridden: field("apiBase").overridden,
|
|
7583
|
+
invalid: field("apiBase").invalid,
|
|
7584
|
+
overriddenLabel: labels.overridden,
|
|
7585
|
+
resetLabel: labels.reset,
|
|
7586
|
+
invalidLabel: labels.invalid,
|
|
7587
|
+
disabled,
|
|
7588
|
+
onEdit: (text) => {
|
|
7589
|
+
actions.edit("apiBase", text);
|
|
7590
|
+
},
|
|
7591
|
+
onReset: () => {
|
|
7592
|
+
actions.resetField("apiBase");
|
|
7593
|
+
}
|
|
7594
|
+
}),
|
|
7595
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.SettingsValueField, {
|
|
7596
|
+
id: "team-judge-model",
|
|
7597
|
+
label: t("teamJudgeModel"),
|
|
7598
|
+
text: field("model").text,
|
|
7599
|
+
overridden: field("model").overridden,
|
|
7600
|
+
invalid: field("model").invalid,
|
|
7601
|
+
overriddenLabel: labels.overridden,
|
|
7602
|
+
resetLabel: labels.reset,
|
|
7603
|
+
invalidLabel: labels.invalid,
|
|
7604
|
+
disabled,
|
|
7605
|
+
onEdit: (text) => {
|
|
7606
|
+
actions.edit("model", text);
|
|
7607
|
+
},
|
|
7608
|
+
onReset: () => {
|
|
7609
|
+
actions.resetField("model");
|
|
7610
|
+
}
|
|
7611
|
+
}),
|
|
7612
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.SettingsSecretField, {
|
|
7613
|
+
id: "team-judge-api-key",
|
|
7614
|
+
label: t("teamJudgeKey"),
|
|
7615
|
+
hint: t("teamJudgeKeyHint"),
|
|
7616
|
+
text: field("apiKey").text,
|
|
7617
|
+
configured,
|
|
7618
|
+
stateLabel: configured ? t("teamJudgeKeySet") : t("teamJudgeKeyUnset"),
|
|
7619
|
+
disabled,
|
|
7620
|
+
onEdit: (text) => {
|
|
7621
|
+
actions.edit("apiKey", text);
|
|
7622
|
+
}
|
|
7623
|
+
}),
|
|
7624
|
+
configured ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
7625
|
+
className: team_settings_module_css_default.clearRow,
|
|
7626
|
+
children: [
|
|
7627
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
7628
|
+
variant: "outline",
|
|
7629
|
+
size: "sm",
|
|
7630
|
+
disabled: disabled || state.shell.dirty || clearing,
|
|
7631
|
+
onClick: () => {
|
|
7632
|
+
clear();
|
|
7633
|
+
},
|
|
7634
|
+
children: t("teamJudgeClearKey")
|
|
7635
|
+
}),
|
|
7636
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
7637
|
+
className: team_settings_module_css_default.clearHint,
|
|
7638
|
+
children: state.shell.dirty ? t("teamJudgeClearBlocked") : t("teamJudgeClearHint")
|
|
7639
|
+
}),
|
|
7640
|
+
clearFailed ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
7641
|
+
className: team_settings_module_css_default.notice,
|
|
7642
|
+
role: "status",
|
|
7643
|
+
children: t("teamJudgeClearFailed")
|
|
7644
|
+
}) : null
|
|
7645
|
+
]
|
|
7646
|
+
}) : null
|
|
7647
|
+
]
|
|
7648
|
+
})]
|
|
7649
|
+
}) : null]
|
|
7650
|
+
});
|
|
7651
|
+
}
|
|
7652
|
+
/** The three glyphs, drawn at the 16px seat the settings page uses for state marks. */
|
|
7653
|
+
const ICONS = {
|
|
7654
|
+
ok: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M3 8.5 6.5 12 13 4.5" }),
|
|
7655
|
+
off: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("circle", {
|
|
7656
|
+
cx: "8",
|
|
7657
|
+
cy: "8",
|
|
7658
|
+
r: "6"
|
|
7659
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M5.6 8h4.8" })] }),
|
|
7660
|
+
warn: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
7661
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M8 2.5 14.6 13.6H1.4z" }),
|
|
7662
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M8 6.6v3.2" }),
|
|
7663
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M8 11.9h.01" })
|
|
7664
|
+
] })
|
|
7665
|
+
};
|
|
7666
|
+
/**
|
|
7667
|
+
* The judge's live status in one line, inside the row that carries it. The
|
|
7668
|
+
* verdict is stated as text and an icon, never by color alone, and nothing is
|
|
7669
|
+
* said before the first read settles: the row then stands as a bare title.
|
|
7670
|
+
*/
|
|
7671
|
+
function JudgeStatus({ t, report }) {
|
|
7672
|
+
if (report === void 0) return null;
|
|
7673
|
+
const verdict = report.enabled ? "enabled" : report.reason ?? "unavailable";
|
|
7674
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
7675
|
+
className: team_settings_module_css_default.status,
|
|
7676
|
+
"data-context-judge": verdict,
|
|
7677
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
7678
|
+
className: team_settings_module_css_default.statusIcon,
|
|
7679
|
+
viewBox: "0 0 16 16",
|
|
7680
|
+
fill: "none",
|
|
7681
|
+
stroke: "currentColor",
|
|
7682
|
+
strokeWidth: "1.5",
|
|
7683
|
+
strokeLinecap: "round",
|
|
7684
|
+
strokeLinejoin: "round",
|
|
7685
|
+
"aria-hidden": "true",
|
|
7686
|
+
children: ICONS[report.enabled ? "ok" : report.reason === "no-key" ? "off" : "warn"]
|
|
7687
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: report.enabled ? t("teamJudgeReady") : report.reason === "no-key" ? t("teamJudgeNoKey") : t("teamJudgeUnavailable") })]
|
|
7688
|
+
});
|
|
7689
|
+
}
|
|
7690
|
+
//#endregion
|
|
7691
|
+
//#region src/client/judge-form.ts
|
|
7692
|
+
/**
|
|
7693
|
+
* The Team settings page's staged form over the judge's endpoint.
|
|
7694
|
+
*
|
|
7695
|
+
* The page edits one group of the Team row's settings section: the `jev`
|
|
7696
|
+
* endpoint the relatedness judge is mounted from. The identity fields that
|
|
7697
|
+
* share that section belong to the Human profile rows and are never rendered
|
|
7698
|
+
* here, so this form reaches its values through a projection — the shared form
|
|
7699
|
+
* model addresses one flat section, and the adapter below maps each control to
|
|
7700
|
+
* the path it really lives at.
|
|
7701
|
+
*
|
|
7702
|
+
* The key literal is the one control that is not read back: the Host redacts
|
|
7703
|
+
* it, so its draft starts blank on every load, a blank draft writes nothing,
|
|
7704
|
+
* and removing a stored literal is an explicit clear rather than an empty
|
|
7705
|
+
* string.
|
|
7706
|
+
*/
|
|
7707
|
+
/** The group inside the Team row's settings section that this form edits. */
|
|
7708
|
+
const JUDGE_GROUP = "jev";
|
|
7709
|
+
/** Where each control's value lives inside the Team row's settings section. */
|
|
7710
|
+
const FIELD_PATHS = {
|
|
7711
|
+
apiBase: [JUDGE_GROUP, "apiBase"],
|
|
7712
|
+
model: [JUDGE_GROUP, "model"],
|
|
7713
|
+
apiKey: [JUDGE_GROUP, "apiKey"]
|
|
7714
|
+
};
|
|
7715
|
+
/** Read the judge group of a section layer as a plain record. */
|
|
7716
|
+
function groupOf(layer) {
|
|
7717
|
+
if (layer === null || typeof layer !== "object") return void 0;
|
|
7718
|
+
const value = layer[JUDGE_GROUP];
|
|
7719
|
+
return value !== null && typeof value === "object" ? value : void 0;
|
|
7720
|
+
}
|
|
7721
|
+
/**
|
|
7722
|
+
* Project one section layer onto the controls this page renders. A control the
|
|
7723
|
+
* layer does not carry stays absent rather than becoming an empty string, which
|
|
7724
|
+
* is what the model reads to decide whether a field is overridden and what a
|
|
7725
|
+
* reset reverts to.
|
|
7726
|
+
* @param layer - a section, or one of its composition layers.
|
|
7727
|
+
* @returns the flat control values, or undefined when the layer carries none.
|
|
7728
|
+
*/
|
|
7729
|
+
function flatten(layer) {
|
|
7730
|
+
if (layer === null || typeof layer !== "object") return void 0;
|
|
7731
|
+
const group = groupOf(layer);
|
|
7732
|
+
const flat = {};
|
|
7733
|
+
for (const [field, path] of Object.entries(FIELD_PATHS)) if (group !== void 0 && Object.hasOwn(group, path[1])) flat[field] = group[path[1]];
|
|
7734
|
+
return flat;
|
|
7735
|
+
}
|
|
7736
|
+
/** Address one control's edit at the path it really lives at. */
|
|
7737
|
+
function locate(op) {
|
|
7738
|
+
const path = FIELD_PATHS[op.path[0]];
|
|
7739
|
+
return op.op === "set" ? {
|
|
7740
|
+
op: "set",
|
|
7741
|
+
path: [...path],
|
|
7742
|
+
value: op.value
|
|
7743
|
+
} : {
|
|
7744
|
+
op: "unset",
|
|
7745
|
+
path: [...path]
|
|
7746
|
+
};
|
|
7747
|
+
}
|
|
7748
|
+
/** The shared form model's view of this page's controls, over the real section. */
|
|
7749
|
+
var TeamJudgeScope = class {
|
|
7750
|
+
section;
|
|
7751
|
+
constructor(section) {
|
|
7752
|
+
this.section = section;
|
|
7753
|
+
}
|
|
7754
|
+
getSnapshot() {
|
|
7755
|
+
const snapshot = this.section.getSnapshot();
|
|
7756
|
+
return {
|
|
7757
|
+
status: snapshot.status,
|
|
7758
|
+
value: flatten(snapshot.value),
|
|
7759
|
+
base: flatten(snapshot.base),
|
|
7760
|
+
user: flatten(snapshot.user),
|
|
7761
|
+
writable: snapshot.writable,
|
|
7762
|
+
revision: snapshot.revision
|
|
7763
|
+
};
|
|
7764
|
+
}
|
|
7765
|
+
subscribe(listener) {
|
|
7766
|
+
return this.section.subscribe(listener);
|
|
7767
|
+
}
|
|
7768
|
+
mutate(ops, expectedRevision) {
|
|
7769
|
+
return this.section.mutate(ops.map((op) => locate(op)), expectedRevision);
|
|
7770
|
+
}
|
|
7771
|
+
};
|
|
7772
|
+
var TeamJudgeForm = class {
|
|
7773
|
+
section;
|
|
7774
|
+
judge;
|
|
7775
|
+
model;
|
|
7776
|
+
scope;
|
|
7777
|
+
store;
|
|
7778
|
+
/**
|
|
7779
|
+
* @param section - the Team row's configuration form, as the settings provider serves it.
|
|
7780
|
+
* @param judge - the status projection a landed write re-reads.
|
|
7781
|
+
*/
|
|
7782
|
+
constructor(section, judge) {
|
|
7783
|
+
this.section = section;
|
|
7784
|
+
this.judge = judge;
|
|
7785
|
+
this.scope = new TeamJudgeScope(section);
|
|
7786
|
+
this.model = new _deepseek_ai_dsh_client_ui_primitives.SettingsFormModel(this.scope, [(0, _deepseek_ai_dsh_client_ui_primitives.settingsTextField)("apiBase"), (0, _deepseek_ai_dsh_client_ui_primitives.settingsTextField)("model")], [{
|
|
7787
|
+
field: "apiKey",
|
|
7788
|
+
write: (text) => section.mutate([{
|
|
7789
|
+
op: "set",
|
|
7790
|
+
path: [...FIELD_PATHS.apiKey],
|
|
7791
|
+
value: text
|
|
7792
|
+
}])
|
|
7793
|
+
}]);
|
|
7794
|
+
this.store = this.model.bind(() => this.project());
|
|
7795
|
+
}
|
|
7796
|
+
/** The form state the page renders. */
|
|
7797
|
+
getSnapshot = () => this.store.getSnapshot();
|
|
7798
|
+
/** Observe the form state. */
|
|
7799
|
+
subscribe = (listener) => this.store.subscribe(listener);
|
|
7800
|
+
/** Stage a draft, reset a field, save every staged edit, or discard them. */
|
|
7801
|
+
actions() {
|
|
7802
|
+
return {
|
|
7803
|
+
...this.model.actions(),
|
|
7804
|
+
save: () => {
|
|
7805
|
+
this.save();
|
|
7806
|
+
}
|
|
7807
|
+
};
|
|
7808
|
+
}
|
|
7809
|
+
/**
|
|
7810
|
+
* Remove the stored key literal: the judge unmounts and the status re-reads.
|
|
7811
|
+
*
|
|
7812
|
+
* Deliberately its own write rather than a staged edit — the shared form
|
|
7813
|
+
* model has no clear for a write-only control, and an empty draft must keep
|
|
7814
|
+
* the stored literal instead of clearing it. The page only offers this while
|
|
7815
|
+
* no draft is staged, because a write moves the document revision the staged
|
|
7816
|
+
* save is fenced to.
|
|
7817
|
+
* @returns whether the Host accepted the clear.
|
|
7818
|
+
*/
|
|
7819
|
+
async clearKey() {
|
|
7820
|
+
let landed;
|
|
7821
|
+
try {
|
|
7822
|
+
landed = await this.section.mutate([{
|
|
7823
|
+
op: "unset",
|
|
7824
|
+
path: [...FIELD_PATHS.apiKey]
|
|
7825
|
+
}]);
|
|
7826
|
+
} catch {
|
|
7827
|
+
return false;
|
|
7828
|
+
}
|
|
7829
|
+
if (!landed) return false;
|
|
7830
|
+
await this.judge.refresh();
|
|
7831
|
+
return true;
|
|
7832
|
+
}
|
|
7833
|
+
dispose() {
|
|
7834
|
+
this.model.dispose();
|
|
7835
|
+
}
|
|
7836
|
+
/** Build the page's state from the model's reads and drafts. */
|
|
7837
|
+
project() {
|
|
7838
|
+
const fields = {};
|
|
7839
|
+
for (const field of Object.keys(FIELD_PATHS)) fields[field] = this.model.field(field);
|
|
7840
|
+
return {
|
|
7841
|
+
shell: this.model.shell(),
|
|
7842
|
+
fields
|
|
7843
|
+
};
|
|
7844
|
+
}
|
|
7845
|
+
/** Write every staged edit, then re-read the status the Host now serves. */
|
|
7846
|
+
async save() {
|
|
7847
|
+
await this.model.save();
|
|
7848
|
+
if (!this.model.shell().failed) await this.judge.refresh();
|
|
7849
|
+
}
|
|
7850
|
+
};
|
|
7851
|
+
/**
|
|
7852
|
+
* The form's seat on the page, as an observable rather than a value.
|
|
7853
|
+
*
|
|
7854
|
+
* The form exists only while this deployment serves a settings document, and
|
|
7855
|
+
* that service may arrive after the page's first render. A slot entry's
|
|
7856
|
+
* injected props are computed once and cached for the entry's lifetime, so a
|
|
7857
|
+
* value handed over at that moment would freeze the answer: the group would
|
|
7858
|
+
* never appear until a reload. The page therefore observes this seat, which
|
|
7859
|
+
* the service's arrival and departure both publish through.
|
|
7860
|
+
*/
|
|
7861
|
+
var TeamJudgeFormSeat = class {
|
|
7862
|
+
form;
|
|
7863
|
+
listeners = /* @__PURE__ */ new Set();
|
|
7864
|
+
getSnapshot = () => this.form;
|
|
7865
|
+
/**
|
|
7866
|
+
* Observe the form, without reading anything on subscribe: the seat carries
|
|
7867
|
+
* no remote state of its own, so a subscriber renders whatever is held now.
|
|
7868
|
+
* @param listener - invoked after every hold or release.
|
|
7869
|
+
* @returns the disposer removing this listener.
|
|
7870
|
+
*/
|
|
7871
|
+
subscribe = (listener) => {
|
|
7872
|
+
this.listeners.add(listener);
|
|
7873
|
+
return () => {
|
|
7874
|
+
this.listeners.delete(listener);
|
|
7875
|
+
};
|
|
7876
|
+
};
|
|
7877
|
+
/**
|
|
7878
|
+
* Publish the form the settings service answers with.
|
|
7879
|
+
* @param form - the form built over that service's section scope.
|
|
7880
|
+
*/
|
|
7881
|
+
hold(form) {
|
|
7882
|
+
this.form = form;
|
|
7883
|
+
this.publish();
|
|
7884
|
+
}
|
|
7885
|
+
/**
|
|
7886
|
+
* Withdraw the form when its service goes away. Only the holder of the form
|
|
7887
|
+
* in place can withdraw it, so a replacement is never cleared by the
|
|
7888
|
+
* departure of the one it replaced.
|
|
7889
|
+
* @param form - the form this caller holds.
|
|
7890
|
+
*/
|
|
7891
|
+
release(form) {
|
|
7892
|
+
if (this.form !== form) return;
|
|
7893
|
+
this.form = void 0;
|
|
7894
|
+
this.publish();
|
|
7895
|
+
}
|
|
7896
|
+
dispose() {
|
|
7897
|
+
this.listeners.clear();
|
|
7898
|
+
}
|
|
7899
|
+
publish() {
|
|
7900
|
+
for (const listener of this.listeners) listener();
|
|
7901
|
+
}
|
|
7902
|
+
};
|
|
7112
7903
|
//#endregion
|
|
7113
7904
|
//#region src/client/attachment-preview.ts
|
|
7114
7905
|
/** Base64 one file payload in chunks so large uploads stay off the call-stack limit. */
|
|
@@ -7120,8 +7911,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7120
7911
|
}
|
|
7121
7912
|
/**
|
|
7122
7913
|
* Thumbnail data URLs live in one session-wide cache: message lists re-render
|
|
7123
|
-
* often, and each miss costs a Host round-trip plus a base64 decode.
|
|
7124
|
-
*
|
|
7914
|
+
* often, and each miss costs a Host round-trip plus a base64 decode. Only a
|
|
7915
|
+
* settled answer is cached: a gone entry resolves to `null` so the chip stays
|
|
7916
|
+
* on the expired label, while an unknown failure caches nothing and lets a
|
|
7917
|
+
* later mount retry the Host.
|
|
7125
7918
|
*/
|
|
7126
7919
|
const dataUrlCache = /* @__PURE__ */ new Map();
|
|
7127
7920
|
function cachedAttachmentDataUrl(attachmentId) {
|
|
@@ -7131,7 +7924,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7131
7924
|
const cached = dataUrlCache.get(attachment.attachmentId);
|
|
7132
7925
|
if (cached !== void 0) return cached;
|
|
7133
7926
|
const result = await getAttachment({ attachmentId: attachment.attachmentId });
|
|
7134
|
-
|
|
7927
|
+
if (!result.ok) {
|
|
7928
|
+
if (result.error.code === "team/attachment-not-found") dataUrlCache.set(attachment.attachmentId, null);
|
|
7929
|
+
return null;
|
|
7930
|
+
}
|
|
7931
|
+
const url = attachment.mediaType.startsWith("image/") ? `data:${attachment.mediaType};base64,${result.value.bytesBase64}` : null;
|
|
7135
7932
|
dataUrlCache.set(attachment.attachmentId, url);
|
|
7136
7933
|
return url;
|
|
7137
7934
|
}
|
|
@@ -7560,8 +8357,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7560
8357
|
}
|
|
7561
8358
|
};
|
|
7562
8359
|
//#endregion
|
|
7563
|
-
//#region \0dsh-css:/home/yu/projects/
|
|
7564
|
-
const css$13 = ".
|
|
8360
|
+
//#region \0dsh-css:/home/yu/projects/release-0.2.1/packages/client-agent-team/src/client/team.module.css.mjs
|
|
8361
|
+
const css$13 = ".r97EGW_footerStack{flex:none;align-self:flex-end;width:100%;height:42px;margin:8px 0 0;display:flex}.r97EGW_footerAction,.r97EGW_settingsAction{border-radius:var(--dsw-radius-md,12px);box-sizing:border-box;color:var(--dsw-alias-label-primary);cursor:pointer;background:0 0;border:0;align-items:center;gap:8px;width:calc(100% + 4px);height:42px;padding:0 10px 0 8px;font-family:inherit;font-size:14px;line-height:22px;display:flex;overflow:hidden}.r97EGW_footerAction{margin:0 -2px}.r97EGW_settingsAction{margin:4px -2px}.r97EGW_footerAction:hover,.r97EGW_footerAction:focus-visible,.r97EGW_settingsAction:hover,.r97EGW_settingsAction:focus-visible{background:var(--dsw-alias-interactive-bg-hover)}.r97EGW_footerAction:focus-visible,.r97EGW_settingsAction:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-2px}.r97EGW_footerAction.r97EGW_rail,.r97EGW_settingsAction.r97EGW_rail{corner-shape:round;border-radius:50%;justify-content:center;width:36px;height:36px;padding:0}.r97EGW_footerAction.r97EGW_rail{margin:0}.r97EGW_settingsAction.r97EGW_rail{margin:8px 0 10px}.r97EGW_railStack{align-items:center;width:36px;height:36px;margin:0}";
|
|
7565
8362
|
const tagId$13 = "@wowyuarm/dsh-agent-team/team.module.css";
|
|
7566
8363
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$13) + "]") === null) {
|
|
7567
8364
|
const tag = document.createElement("style");
|
|
@@ -7571,11 +8368,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7571
8368
|
document.head.appendChild(tag);
|
|
7572
8369
|
}
|
|
7573
8370
|
var team_module_css_default = {
|
|
7574
|
-
"footerAction": "
|
|
7575
|
-
"footerStack": "
|
|
7576
|
-
"rail": "
|
|
7577
|
-
"railStack": "
|
|
7578
|
-
"settingsAction": "
|
|
8371
|
+
"footerAction": "r97EGW_footerAction",
|
|
8372
|
+
"footerStack": "r97EGW_footerStack",
|
|
8373
|
+
"rail": "r97EGW_rail",
|
|
8374
|
+
"railStack": "r97EGW_railStack",
|
|
8375
|
+
"settingsAction": "r97EGW_settingsAction"
|
|
7579
8376
|
};
|
|
7580
8377
|
//#endregion
|
|
7581
8378
|
//#region src/client/TeamFooterAction.tsx
|
|
@@ -8058,8 +8855,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
8058
8855
|
};
|
|
8059
8856
|
}
|
|
8060
8857
|
//#endregion
|
|
8061
|
-
//#region \0dsh-css:/home/yu/projects/
|
|
8062
|
-
const css$12 = ".
|
|
8858
|
+
//#region \0dsh-css:/home/yu/projects/release-0.2.1/packages/client-agent-team/src/client/state-dot.module.css.mjs
|
|
8859
|
+
const css$12 = ".QJbCsG_quiet{corner-shape:round;border-radius:50%;flex:none;display:inline-block;position:relative}.QJbCsG_quiet[data-variant=todo]{border:1px solid var(--dsw-alias-label-tertiary)}.QJbCsG_quiet[data-variant=quiet]{color:var(--dsw-alias-label-tertiary)}.QJbCsG_quiet[data-variant=quiet]:before{corner-shape:round;content:\"\";opacity:.1;background:currentColor;border-radius:50%;position:absolute;inset:0}.QJbCsG_quiet[data-variant=quiet]:after{corner-shape:round;content:\"\";background:currentColor;border-radius:50%;position:absolute;inset:20%}";
|
|
8063
8860
|
const tagId$12 = "@wowyuarm/dsh-agent-team/state-dot.module.css";
|
|
8064
8861
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$12) + "]") === null) {
|
|
8065
8862
|
const tag = document.createElement("style");
|
|
@@ -8068,7 +8865,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
8068
8865
|
tag.textContent = css$12;
|
|
8069
8866
|
document.head.appendChild(tag);
|
|
8070
8867
|
}
|
|
8071
|
-
var state_dot_module_css_default = { "quiet": "
|
|
8868
|
+
var state_dot_module_css_default = { "quiet": "QJbCsG_quiet" };
|
|
8072
8869
|
//#endregion
|
|
8073
8870
|
//#region src/client/TeamStateDot.tsx
|
|
8074
8871
|
/**
|
|
@@ -8093,8 +8890,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
8093
8890
|
});
|
|
8094
8891
|
}
|
|
8095
8892
|
//#endregion
|
|
8096
|
-
//#region \0dsh-css:/home/yu/projects/
|
|
8097
|
-
const css$11 = "
|
|
8893
|
+
//#region \0dsh-css:/home/yu/projects/release-0.2.1/packages/client-agent-team/src/client/presence.module.css.mjs
|
|
8894
|
+
const css$11 = "._x8QRq_target{flex:0 0 14px;justify-content:center;align-items:center;display:inline-flex}";
|
|
8098
8895
|
const tagId$11 = "@wowyuarm/dsh-agent-team/presence.module.css";
|
|
8099
8896
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$11) + "]") === null) {
|
|
8100
8897
|
const tag = document.createElement("style");
|
|
@@ -8103,7 +8900,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
8103
8900
|
tag.textContent = css$11;
|
|
8104
8901
|
document.head.appendChild(tag);
|
|
8105
8902
|
}
|
|
8106
|
-
var presence_module_css_default = { "target": "
|
|
8903
|
+
var presence_module_css_default = { "target": "_x8QRq_target" };
|
|
8107
8904
|
//#endregion
|
|
8108
8905
|
//#region src/client/TeamPresenceDot.tsx
|
|
8109
8906
|
function presenceLabel(status, t) {
|
|
@@ -8119,13 +8916,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
8119
8916
|
/**
|
|
8120
8917
|
* Whether the restart action can help an unavailable Member: it heals
|
|
8121
8918
|
* transient and repairable failures, but not a transient rollover window
|
|
8122
|
-
* (which resolves on its own)
|
|
8919
|
+
* (which resolves on its own).
|
|
8123
8920
|
*/
|
|
8124
8921
|
function restartOffered(status) {
|
|
8125
|
-
|
|
8126
|
-
if (diagnostic === void 0) return true;
|
|
8127
|
-
if (diagnostic.class === "rollover") return false;
|
|
8128
|
-
return !(diagnostic.class === "session-refused" && diagnostic.remediable === false);
|
|
8922
|
+
return status.diagnostic?.class !== "rollover";
|
|
8129
8923
|
}
|
|
8130
8924
|
/** Shared presence → indicator mapping for dots and avatar badges. */
|
|
8131
8925
|
function presenceDotState(presence) {
|
|
@@ -8145,8 +8939,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
8145
8939
|
});
|
|
8146
8940
|
}
|
|
8147
8941
|
//#endregion
|
|
8148
|
-
//#region \0dsh-css:/home/yu/projects/
|
|
8149
|
-
const css$10 = "html[data-agent-team-mode=team] button[class*=newSession]{display:none}html[data-agent-team-mode=team] nav[class*=panelList]{display:none}.d0xfxa_workspaceBrowser{flex-direction:column;height:100%;min-height:0;padding:0 8px 8px;display:flex}.d0xfxa_railButton{color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;padding:0;display:inline-flex}.d0xfxa_railButton:hover,.d0xfxa_railButton:focus-visible{--team-mark-ring:var(--dsw-alias-interactive-bg-hover);background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.d0xfxa_railButton:focus-visible{outline:2px solid var(--dsw-alias-label-primary);outline-offset:1px}.d0xfxa_workspaceTrigger{background:var(--dsw-alias-bg-layer-1);border:1px solid var(--dsw-alias-border-l2);box-sizing:border-box;color:var(--dsw-alias-label-primary);cursor:pointer;text-align:left;border-radius:12px;align-items:center;gap:6px;width:100%;min-height:34px;margin:0 0 2px;padding:4px 8px;font-size:14px;line-height:22px;display:flex}.d0xfxa_workspaceTrigger:hover,.d0xfxa_workspaceTrigger[aria-current=page]{background:var(--dsw-alias-interactive-bg-hover)}.d0xfxa_workspaceTrigger:focus-visible{border-color:var(--dsw-alias-brand-primary);outline:2px solid var(--dsw-alias-label-primary);outline-offset:-2px}.d0xfxa_workspaceIcon{color:var(--dsw-alias-state-business-primary);flex:0 0 16px;justify-content:center;align-items:center;height:20px;display:inline-flex}.d0xfxa_workspaceValue{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.d0xfxa_workspaceChevron{color:var(--dsw-alias-label-tertiary);flex:none;transition:transform .12s;display:inline-flex}.d0xfxa_workspaceChevronOpen{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.d0xfxa_workspaceChevron{transition:none}}.d0xfxa_emptyState{color:var(--dsw-alias-label-tertiary);margin:8px;font-size:12px;line-height:18px}.d0xfxa_inboxCard{color:var(--dsw-alias-label-primary);cursor:pointer;text-align:left;background:0 0;border:0;border-radius:12px;flex:none;align-items:center;gap:6px;width:100%;height:34px;margin:4px 0 2px;padding:0 8px;display:flex}.d0xfxa_inboxCard:hover,.d0xfxa_inboxCard:focus-visible,.d0xfxa_inboxCard[aria-current=page]{--team-mark-ring:var(--dsw-alias-interactive-bg-hover);background:var(--dsw-alias-interactive-bg-hover)}.d0xfxa_inboxCard:focus-visible{outline:2px solid var(--dsw-alias-label-primary);outline-offset:-2px}.d0xfxa_inboxCard .d0xfxa_inboxMark{color:var(--dsw-alias-label-tertiary)}.d0xfxa_inboxCardLabel{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:14px;line-height:20px;overflow:hidden}.d0xfxa_inboxMark{flex:0 0 16px;display:inline-flex;position:relative}.d0xfxa_inboxDot{background:var(--dsw-alias-state-business-primary);box-shadow:0 0 0 2px var(--team-mark-ring,var(--dsw-specific-sidebar-fill)), 0 0 0 2px var(--dsw-specific-sidebar-fill);corner-shape:round;border-radius:50%;width:8px;height:8px;position:absolute;top:-2px;left:-2px}.d0xfxa_railWorkspace{flex-direction:column;align-items:center;gap:8px;padding-top:8px;display:flex}.d0xfxa_railButton{corner-shape:round;border-radius:50%;width:36px;height:36px;position:relative}.d0xfxa_railButton[aria-current=page]{--team-mark-ring:var(--dsw-alias-interactive-bg-hover);background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.d0xfxa_workspaceSection{flex-direction:column;flex:1;gap:4px;min-height:0;margin-top:2px;display:flex;overflow-y:auto}.d0xfxa_section{flex-direction:column;display:flex}.d0xfxa_sectionHeader{align-items:center;min-height:26px;padding-right:2px;display:flex}.d0xfxa_sectionToggle{color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;border-radius:4px;align-items:center;gap:4px;min-width:0;min-height:24px;padding:0 6px;font-size:12px;line-height:18px;display:inline-flex}.d0xfxa_sectionToggle:focus-visible{outline:2px solid var(--dsw-alias-label-primary);outline-offset:1px}.d0xfxa_sectionToggle:hover .d0xfxa_sectionChevron,.d0xfxa_sectionToggle:focus-visible .d0xfxa_sectionChevron{color:var(--dsw-alias-label-primary)}.d0xfxa_sectionChevron{color:var(--dsw-alias-label-tertiary);flex:none;transition:transform .12s,color .12s}.d0xfxa_sectionToggle[aria-expanded=false] .d0xfxa_sectionChevron{transform:rotate(-90deg)}.d0xfxa_sectionTitle{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.d0xfxa_sectionActions{align-items:center;margin-left:auto;display:inline-flex}.d0xfxa_panel{flex-direction:column;display:flex}.d0xfxa_iconButton{corner-shape:round;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;border-radius:50%;justify-content:center;align-items:center;width:24px;height:24px;padding:0;display:inline-flex}.d0xfxa_iconButton:hover,.d0xfxa_iconButton:focus-visible{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.d0xfxa_iconButton:focus-visible{outline:2px solid var(--dsw-alias-label-primary);outline-offset:1px}.d0xfxa_textButton{color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;border-radius:5px;padding:2px 5px;font-size:11px;line-height:18px}.d0xfxa_textButton:hover,.d0xfxa_textButton:focus-visible{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.d0xfxa_textButton:focus-visible{outline:2px solid var(--dsw-alias-label-primary);outline-offset:1px}.d0xfxa_textButton:disabled{cursor:not-allowed;opacity:.4}.d0xfxa_channelList,.d0xfxa_agentList{flex-direction:column;gap:1px;padding:0 4px 4px;display:flex}.d0xfxa_sidebarRowDragging{opacity:.5}.d0xfxa_sidebarRowDropBefore,.d0xfxa_sidebarRowDropAfter{position:relative}.d0xfxa_sidebarRowDropBefore:before,.d0xfxa_sidebarRowDropAfter:after{content:\"\";z-index:1;background:linear-gradient(55deg, transparent calc(50% - 1px), var(--dsw-alias-state-business-primary) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 0 0 / 5px 7px no-repeat, linear-gradient(125deg, transparent calc(50% - 1px), var(--dsw-alias-state-business-primary) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 0 5px / 5px 7px no-repeat, linear-gradient(var(--dsw-alias-state-business-primary) 0 0) 4px 5px / calc(100% - 4px) 2px no-repeat;pointer-events:none;height:12px;position:absolute;left:0;right:4px}.d0xfxa_sidebarRowDropBefore:before{top:-7px}.d0xfxa_sidebarRowDropAfter:after{bottom:-7px}.d0xfxa_channelRow{color:var(--dsw-alias-label-primary);border-radius:12px;align-items:center;min-height:30px;display:flex;position:relative}.d0xfxa_channelSelect{box-sizing:border-box;color:inherit;cursor:pointer;text-align:left;background:0 0;border:0;border-radius:12px;flex:1;align-items:center;min-width:0;min-height:30px;padding:3px 4px 3px 8px;display:flex}.d0xfxa_channelSelect:focus-visible{outline:2px solid var(--dsw-alias-label-primary);outline-offset:-2px}.d0xfxa_channelName{text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:400;line-height:18px;overflow:hidden}.d0xfxa_agentRow{color:var(--dsw-alias-label-primary);border-radius:12px;align-items:center;min-height:38px;display:flex;position:relative}.d0xfxa_agentSelect{box-sizing:border-box;color:inherit;cursor:pointer;text-align:left;background:0 0;border:0;border-radius:12px;flex:1;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:0 8px;min-width:0;min-height:38px;padding:3px 4px 3px 8px;display:grid}.d0xfxa_agentSelect:focus-visible{outline:2px solid var(--dsw-alias-label-primary);outline-offset:-2px}.d0xfxa_agentSelect[aria-current=page]{background:var(--dsw-alias-interactive-bg-hover);border-radius:12px}.d0xfxa_agentRow:hover .d0xfxa_agentSelect[aria-current=page],.d0xfxa_agentRow:focus-within .d0xfxa_agentSelect[aria-current=page],.d0xfxa_agentRow[data-menu-open] .d0xfxa_agentSelect[aria-current=page]{background:0 0}.d0xfxa_agentAvatar{background:hsl(var(--team-avatar-hue,212) 42% 46%);corner-shape:round;color:#fff;cursor:default;border-radius:50%;flex:0 0 24px;justify-content:center;align-items:center;width:24px;height:24px;font-size:11px;font-weight:600;display:inline-flex;position:relative}.d0xfxa_agentAvatarBadge{background:var(--dsw-specific-sidebar-fill);corner-shape:round;box-shadow:0 0 0 1px var(--dsw-specific-sidebar-fill);border-radius:50%;justify-content:center;align-items:center;width:12px;height:12px;padding:1px;line-height:0;display:inline-flex;position:absolute;bottom:-3px;right:-3px}.d0xfxa_agentCopy{flex-direction:column;justify-content:flex-start;min-width:0;display:flex}.d0xfxa_agentCopy strong{text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:500;line-height:17px;overflow:hidden}.d0xfxa_agentCopy small{color:var(--dsw-alias-label-tertiary);text-overflow:ellipsis;white-space:nowrap;font-size:10px;line-height:13px;overflow:hidden}.d0xfxa_unavailableDot{background:var(--dsw-alias-label-tertiary);corner-shape:round;border-radius:50%;width:7px;height:7px;display:inline-block}.d0xfxa_rowMenu{flex:none;align-items:center;padding-right:4px;display:none}.d0xfxa_channelRow:hover .d0xfxa_rowMenu,.d0xfxa_channelRow:focus-within .d0xfxa_rowMenu,.d0xfxa_channelRow[data-menu-open] .d0xfxa_rowMenu,.d0xfxa_agentRow:hover .d0xfxa_rowMenu,.d0xfxa_agentRow:focus-within .d0xfxa_rowMenu,.d0xfxa_agentRow[data-menu-open] .d0xfxa_rowMenu{display:inline-flex}.d0xfxa_channelRow[data-menu-open],.d0xfxa_agentRow[data-menu-open],.d0xfxa_channelRow:hover,.d0xfxa_agentRow:hover,.d0xfxa_channelRow:focus-within,.d0xfxa_agentRow:focus-within,.d0xfxa_channelRow[aria-current=page]{background:var(--dsw-alias-interactive-bg-hover)}.d0xfxa_rowMenuButton{color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;border-radius:4px;justify-content:center;align-items:center;width:20px;height:20px;padding:0;display:inline-flex}.d0xfxa_rowMenuButton:hover,.d0xfxa_rowMenuButton:focus-visible{color:var(--dsw-alias-label-primary)}.d0xfxa_rowMenuButton:focus-visible{outline:2px solid var(--dsw-alias-label-primary);outline-offset:1px}.d0xfxa_retryError{color:var(--dsw-alias-state-error-primary);justify-content:space-between;align-items:center;gap:8px;padding:8px 12px;font-size:11px;display:flex}.d0xfxa_rowAlert{color:var(--dsw-alias-state-error-primary);overflow-wrap:anywhere;padding:2px 8px 6px;font-size:11px}.d0xfxa_error{color:var(--dsw-alias-state-error-primary);overflow-wrap:anywhere;margin:0;padding:4px 12px 6px;font-size:11px;line-height:16px}.d0xfxa_editDescription{color:var(--dsw-alias-label-secondary);margin:0 0 10px;font-size:12px;line-height:18px}.d0xfxa_editMemberList{gap:2px;display:grid}.d0xfxa_editChannelName{text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:400;line-height:18px;overflow:hidden}.d0xfxa_editHint{color:var(--dsw-alias-label-tertiary);margin:0;font-size:11px;line-height:16px}.d0xfxa_menuHint{color:var(--dsw-alias-label-tertiary);margin-left:4px;font-size:10px;line-height:14px}.d0xfxa_rowError{color:var(--dsw-alias-state-error-primary);grid-column:1/-1;margin:2px 0;font-size:11px;line-height:16px}";
|
|
8942
|
+
//#region \0dsh-css:/home/yu/projects/release-0.2.1/packages/client-agent-team/src/client/sidebar.module.css.mjs
|
|
8943
|
+
const css$10 = "html[data-agent-team-mode=team] button[class*=newSession]{display:none}html[data-agent-team-mode=team] nav[class*=panelList]{display:none}.LIpgUW_workspaceBrowser{flex-direction:column;height:100%;min-height:0;padding:0 8px 8px;display:flex}.LIpgUW_railButton{color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;padding:0;display:inline-flex}.LIpgUW_railButton:hover,.LIpgUW_railButton:focus-visible{--team-mark-ring:var(--dsw-alias-interactive-bg-hover);background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.LIpgUW_railButton:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:1px}.LIpgUW_workspaceTrigger{background:var(--dsw-alias-bg-layer-1);border:1px solid var(--dsw-alias-border-l2);border-radius:var(--dsw-radius-md,12px);box-sizing:border-box;color:var(--dsw-alias-label-primary);cursor:pointer;text-align:left;align-items:center;gap:6px;width:100%;min-height:34px;margin:0 0 2px;padding:4px 8px;font-size:14px;line-height:22px;display:flex}.LIpgUW_workspaceTrigger:hover,.LIpgUW_workspaceTrigger[aria-current=page]{background:var(--dsw-alias-interactive-bg-hover)}.LIpgUW_workspaceTrigger:focus-visible{border-color:var(--dsw-alias-brand-primary);outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-2px}.LIpgUW_workspaceIcon{color:var(--dsw-alias-state-business-primary);flex:0 0 16px;justify-content:center;align-items:center;height:20px;display:inline-flex}.LIpgUW_workspaceValue{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.LIpgUW_workspaceChevron{color:var(--dsw-alias-label-tertiary);flex:none;transition:transform .12s;display:inline-flex}.LIpgUW_workspaceChevronOpen{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.LIpgUW_workspaceChevron{transition:none}}.LIpgUW_emptyState{color:var(--dsw-alias-label-tertiary);margin:8px;font-size:12px;line-height:18px}.LIpgUW_inboxCard{border-radius:var(--dsw-radius-md,12px);color:var(--dsw-alias-label-primary);cursor:pointer;text-align:left;background:0 0;border:0;flex:none;align-items:center;gap:6px;width:100%;height:34px;margin:4px 0 2px;padding:0 8px;display:flex}.LIpgUW_inboxCard:hover,.LIpgUW_inboxCard:focus-visible,.LIpgUW_inboxCard[aria-current=page]{--team-mark-ring:var(--dsw-alias-interactive-bg-hover);background:var(--dsw-alias-interactive-bg-hover)}.LIpgUW_inboxCard:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-2px}.LIpgUW_inboxCard .LIpgUW_inboxMark{color:var(--dsw-alias-label-tertiary)}.LIpgUW_inboxCardLabel{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:14px;line-height:20px;overflow:hidden}.LIpgUW_inboxMark{flex:0 0 16px;display:inline-flex;position:relative}.LIpgUW_inboxDot{background:var(--dsw-alias-state-business-primary);box-shadow:0 0 0 2px var(--team-mark-ring,var(--dsw-specific-sidebar-fill)), 0 0 0 2px var(--dsw-specific-sidebar-fill);corner-shape:round;border-radius:50%;width:8px;height:8px;position:absolute;top:-2px;left:-2px}.LIpgUW_railWorkspace{flex-direction:column;align-items:center;gap:8px;padding-top:8px;display:flex}.LIpgUW_railButton{corner-shape:round;border-radius:50%;width:36px;height:36px;position:relative}.LIpgUW_railButton[aria-current=page]{--team-mark-ring:var(--dsw-alias-interactive-bg-hover);background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.LIpgUW_workspaceSection{flex-direction:column;flex:1;gap:4px;min-height:0;margin-top:2px;display:flex;overflow-y:auto}.LIpgUW_section{flex-direction:column;display:flex}.LIpgUW_sectionHeader{align-items:center;min-height:26px;padding-right:2px;display:flex}.LIpgUW_sectionToggle{border-radius:var(--dsw-radius-xs,4px);color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;align-items:center;gap:4px;min-width:0;min-height:24px;padding:0 6px;font-size:12px;line-height:18px;display:inline-flex}.LIpgUW_sectionToggle:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:1px}.LIpgUW_sectionToggle:hover .LIpgUW_sectionChevron,.LIpgUW_sectionToggle:focus-visible .LIpgUW_sectionChevron{color:var(--dsw-alias-label-primary)}.LIpgUW_sectionChevron{color:var(--dsw-alias-label-tertiary);flex:none;transition:transform .12s,color .12s}.LIpgUW_sectionToggle[aria-expanded=false] .LIpgUW_sectionChevron{transform:rotate(-90deg)}.LIpgUW_sectionTitle{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.LIpgUW_sectionActions{align-items:center;margin-left:auto;display:inline-flex}.LIpgUW_panel{flex-direction:column;display:flex}.LIpgUW_iconButton{corner-shape:round;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;border-radius:50%;justify-content:center;align-items:center;width:24px;height:24px;padding:0;display:inline-flex}.LIpgUW_iconButton:hover,.LIpgUW_iconButton:focus-visible{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.LIpgUW_iconButton:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:1px}.LIpgUW_textButton{border-radius:var(--dsw-radius-sm,5px);color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;padding:2px 5px;font-size:11px;line-height:18px}.LIpgUW_textButton:hover,.LIpgUW_textButton:focus-visible{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.LIpgUW_textButton:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:1px}.LIpgUW_textButton:disabled{cursor:not-allowed;opacity:.4}.LIpgUW_channelList,.LIpgUW_agentList{flex-direction:column;gap:1px;padding:0 4px 4px;display:flex}.LIpgUW_sidebarRowDragging{opacity:.5}.LIpgUW_sidebarRowDropBefore,.LIpgUW_sidebarRowDropAfter{position:relative}.LIpgUW_sidebarRowDropBefore:before,.LIpgUW_sidebarRowDropAfter:after{content:\"\";z-index:1;background:linear-gradient(55deg, transparent calc(50% - 1px), var(--dsw-alias-state-business-primary) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 0 0 / 5px 7px no-repeat, linear-gradient(125deg, transparent calc(50% - 1px), var(--dsw-alias-state-business-primary) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 0 5px / 5px 7px no-repeat, linear-gradient(var(--dsw-alias-state-business-primary) 0 0) 4px 5px / calc(100% - 4px) 2px no-repeat;pointer-events:none;height:12px;position:absolute;left:0;right:4px}.LIpgUW_sidebarRowDropBefore:before{top:-7px}.LIpgUW_sidebarRowDropAfter:after{bottom:-7px}.LIpgUW_channelRow{border-radius:var(--dsw-radius-md,12px);color:var(--dsw-alias-label-primary);align-items:center;min-height:30px;display:flex;position:relative}.LIpgUW_channelSelect{border-radius:var(--dsw-radius-md,12px);box-sizing:border-box;color:inherit;cursor:pointer;text-align:left;background:0 0;border:0;flex:1;align-items:center;min-width:0;min-height:30px;padding:3px 4px 3px 8px;display:flex}.LIpgUW_channelSelect:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-2px}.LIpgUW_channelName{text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:400;line-height:18px;overflow:hidden}.LIpgUW_agentRow{border-radius:var(--dsw-radius-md,12px);color:var(--dsw-alias-label-primary);align-items:center;min-height:38px;display:flex;position:relative}.LIpgUW_agentSelect{border-radius:var(--dsw-radius-md,12px);box-sizing:border-box;color:inherit;cursor:pointer;text-align:left;background:0 0;border:0;flex:1;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:0 8px;min-width:0;min-height:38px;padding:3px 4px 3px 8px;display:grid}.LIpgUW_agentSelect:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-2px}.LIpgUW_agentSelect[aria-current=page]{background:var(--dsw-alias-interactive-bg-hover);border-radius:var(--dsw-radius-md,12px)}.LIpgUW_agentRow:hover .LIpgUW_agentSelect[aria-current=page],.LIpgUW_agentRow:focus-within .LIpgUW_agentSelect[aria-current=page],.LIpgUW_agentRow[data-menu-open] .LIpgUW_agentSelect[aria-current=page]{background:0 0}.LIpgUW_agentAvatar{background:hsl(var(--team-avatar-hue,212) 42% 46%);corner-shape:round;color:#fff;cursor:default;border-radius:50%;flex:0 0 24px;justify-content:center;align-items:center;width:24px;height:24px;font-size:11px;font-weight:600;display:inline-flex;position:relative}.LIpgUW_agentAvatarBadge{background:var(--dsw-specific-sidebar-fill);corner-shape:round;box-shadow:0 0 0 1px var(--dsw-specific-sidebar-fill);border-radius:50%;justify-content:center;align-items:center;width:12px;height:12px;padding:1px;line-height:0;display:inline-flex;position:absolute;bottom:-3px;right:-3px}.LIpgUW_agentCopy{flex-direction:column;justify-content:flex-start;min-width:0;display:flex}.LIpgUW_agentCopy strong{text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:500;line-height:17px;overflow:hidden}.LIpgUW_agentCopy small{color:var(--dsw-alias-label-tertiary);text-overflow:ellipsis;white-space:nowrap;font-size:10px;line-height:13px;overflow:hidden}.LIpgUW_unavailableDot{background:var(--dsw-alias-label-tertiary);corner-shape:round;border-radius:50%;width:7px;height:7px;display:inline-block}.LIpgUW_rowMenu{flex:none;align-items:center;padding-right:4px;display:none}.LIpgUW_channelRow:hover .LIpgUW_rowMenu,.LIpgUW_channelRow:focus-within .LIpgUW_rowMenu,.LIpgUW_channelRow[data-menu-open] .LIpgUW_rowMenu,.LIpgUW_agentRow:hover .LIpgUW_rowMenu,.LIpgUW_agentRow:focus-within .LIpgUW_rowMenu,.LIpgUW_agentRow[data-menu-open] .LIpgUW_rowMenu{display:inline-flex}.LIpgUW_channelRow[data-menu-open],.LIpgUW_agentRow[data-menu-open],.LIpgUW_channelRow:hover,.LIpgUW_agentRow:hover,.LIpgUW_channelRow:focus-within,.LIpgUW_agentRow:focus-within,.LIpgUW_channelRow[aria-current=page]{background:var(--dsw-alias-interactive-bg-hover)}.LIpgUW_rowMenuButton{border-radius:var(--dsw-radius-xs,4px);color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;width:20px;height:20px;padding:0;display:inline-flex}.LIpgUW_rowMenuButton:hover,.LIpgUW_rowMenuButton:focus-visible{color:var(--dsw-alias-label-primary)}.LIpgUW_rowMenuButton:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:1px}.LIpgUW_retryError{color:var(--dsw-alias-state-error-primary);justify-content:space-between;align-items:center;gap:8px;padding:8px 12px;font-size:11px;display:flex}.LIpgUW_rowAlert{color:var(--dsw-alias-state-error-primary);overflow-wrap:anywhere;padding:2px 8px 6px;font-size:11px}.LIpgUW_error{color:var(--dsw-alias-state-error-primary);overflow-wrap:anywhere;margin:0;padding:4px 12px 6px;font-size:11px;line-height:16px}.LIpgUW_editDescription{color:var(--dsw-alias-label-secondary);margin:0 0 10px;font-size:12px;line-height:18px}.LIpgUW_editMemberList{gap:2px;display:grid}.LIpgUW_editChannelName{text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:400;line-height:18px;overflow:hidden}.LIpgUW_editHint{color:var(--dsw-alias-label-tertiary);margin:0;font-size:11px;line-height:16px}.LIpgUW_menuHint{color:var(--dsw-alias-label-tertiary);margin-left:4px;font-size:10px;line-height:14px}.LIpgUW_rowError{color:var(--dsw-alias-state-error-primary);grid-column:1/-1;margin:2px 0;font-size:11px;line-height:16px}";
|
|
8150
8944
|
const tagId$10 = "@wowyuarm/dsh-agent-team/sidebar.module.css";
|
|
8151
8945
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$10) + "]") === null) {
|
|
8152
8946
|
const tag = document.createElement("style");
|
|
@@ -8156,54 +8950,54 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
8156
8950
|
document.head.appendChild(tag);
|
|
8157
8951
|
}
|
|
8158
8952
|
var sidebar_module_css_default = {
|
|
8159
|
-
"agentAvatar": "
|
|
8160
|
-
"agentAvatarBadge": "
|
|
8161
|
-
"agentCopy": "
|
|
8162
|
-
"agentList": "
|
|
8163
|
-
"agentRow": "
|
|
8164
|
-
"agentSelect": "
|
|
8165
|
-
"channelList": "
|
|
8166
|
-
"channelName": "
|
|
8167
|
-
"channelRow": "
|
|
8168
|
-
"channelSelect": "
|
|
8169
|
-
"editChannelName": "
|
|
8170
|
-
"editDescription": "
|
|
8171
|
-
"editHint": "
|
|
8172
|
-
"editMemberList": "
|
|
8173
|
-
"emptyState": "
|
|
8174
|
-
"error": "
|
|
8175
|
-
"iconButton": "
|
|
8176
|
-
"inboxCard": "
|
|
8177
|
-
"inboxCardLabel": "
|
|
8178
|
-
"inboxDot": "
|
|
8179
|
-
"inboxMark": "
|
|
8180
|
-
"menuHint": "
|
|
8181
|
-
"panel": "
|
|
8182
|
-
"railButton": "
|
|
8183
|
-
"railWorkspace": "
|
|
8184
|
-
"retryError": "
|
|
8185
|
-
"rowAlert": "
|
|
8186
|
-
"rowError": "
|
|
8187
|
-
"rowMenu": "
|
|
8188
|
-
"rowMenuButton": "
|
|
8189
|
-
"section": "
|
|
8190
|
-
"sectionActions": "
|
|
8191
|
-
"sectionChevron": "
|
|
8192
|
-
"sectionHeader": "
|
|
8193
|
-
"sectionTitle": "
|
|
8194
|
-
"sectionToggle": "
|
|
8195
|
-
"sidebarRowDragging": "
|
|
8196
|
-
"sidebarRowDropAfter": "
|
|
8197
|
-
"sidebarRowDropBefore": "
|
|
8198
|
-
"textButton": "
|
|
8199
|
-
"unavailableDot": "
|
|
8200
|
-
"workspaceBrowser": "
|
|
8201
|
-
"workspaceChevron": "
|
|
8202
|
-
"workspaceChevronOpen": "
|
|
8203
|
-
"workspaceIcon": "
|
|
8204
|
-
"workspaceSection": "
|
|
8205
|
-
"workspaceTrigger": "
|
|
8206
|
-
"workspaceValue": "
|
|
8953
|
+
"agentAvatar": "LIpgUW_agentAvatar",
|
|
8954
|
+
"agentAvatarBadge": "LIpgUW_agentAvatarBadge",
|
|
8955
|
+
"agentCopy": "LIpgUW_agentCopy",
|
|
8956
|
+
"agentList": "LIpgUW_agentList",
|
|
8957
|
+
"agentRow": "LIpgUW_agentRow",
|
|
8958
|
+
"agentSelect": "LIpgUW_agentSelect",
|
|
8959
|
+
"channelList": "LIpgUW_channelList",
|
|
8960
|
+
"channelName": "LIpgUW_channelName",
|
|
8961
|
+
"channelRow": "LIpgUW_channelRow",
|
|
8962
|
+
"channelSelect": "LIpgUW_channelSelect",
|
|
8963
|
+
"editChannelName": "LIpgUW_editChannelName",
|
|
8964
|
+
"editDescription": "LIpgUW_editDescription",
|
|
8965
|
+
"editHint": "LIpgUW_editHint",
|
|
8966
|
+
"editMemberList": "LIpgUW_editMemberList",
|
|
8967
|
+
"emptyState": "LIpgUW_emptyState",
|
|
8968
|
+
"error": "LIpgUW_error",
|
|
8969
|
+
"iconButton": "LIpgUW_iconButton",
|
|
8970
|
+
"inboxCard": "LIpgUW_inboxCard",
|
|
8971
|
+
"inboxCardLabel": "LIpgUW_inboxCardLabel",
|
|
8972
|
+
"inboxDot": "LIpgUW_inboxDot",
|
|
8973
|
+
"inboxMark": "LIpgUW_inboxMark",
|
|
8974
|
+
"menuHint": "LIpgUW_menuHint",
|
|
8975
|
+
"panel": "LIpgUW_panel",
|
|
8976
|
+
"railButton": "LIpgUW_railButton",
|
|
8977
|
+
"railWorkspace": "LIpgUW_railWorkspace",
|
|
8978
|
+
"retryError": "LIpgUW_retryError",
|
|
8979
|
+
"rowAlert": "LIpgUW_rowAlert",
|
|
8980
|
+
"rowError": "LIpgUW_rowError",
|
|
8981
|
+
"rowMenu": "LIpgUW_rowMenu",
|
|
8982
|
+
"rowMenuButton": "LIpgUW_rowMenuButton",
|
|
8983
|
+
"section": "LIpgUW_section",
|
|
8984
|
+
"sectionActions": "LIpgUW_sectionActions",
|
|
8985
|
+
"sectionChevron": "LIpgUW_sectionChevron",
|
|
8986
|
+
"sectionHeader": "LIpgUW_sectionHeader",
|
|
8987
|
+
"sectionTitle": "LIpgUW_sectionTitle",
|
|
8988
|
+
"sectionToggle": "LIpgUW_sectionToggle",
|
|
8989
|
+
"sidebarRowDragging": "LIpgUW_sidebarRowDragging",
|
|
8990
|
+
"sidebarRowDropAfter": "LIpgUW_sidebarRowDropAfter",
|
|
8991
|
+
"sidebarRowDropBefore": "LIpgUW_sidebarRowDropBefore",
|
|
8992
|
+
"textButton": "LIpgUW_textButton",
|
|
8993
|
+
"unavailableDot": "LIpgUW_unavailableDot",
|
|
8994
|
+
"workspaceBrowser": "LIpgUW_workspaceBrowser",
|
|
8995
|
+
"workspaceChevron": "LIpgUW_workspaceChevron",
|
|
8996
|
+
"workspaceChevronOpen": "LIpgUW_workspaceChevronOpen",
|
|
8997
|
+
"workspaceIcon": "LIpgUW_workspaceIcon",
|
|
8998
|
+
"workspaceSection": "LIpgUW_workspaceSection",
|
|
8999
|
+
"workspaceTrigger": "LIpgUW_workspaceTrigger",
|
|
9000
|
+
"workspaceValue": "LIpgUW_workspaceValue"
|
|
8207
9001
|
};
|
|
8208
9002
|
//#endregion
|
|
8209
9003
|
//#region src/client/TeamMemberAvatar.tsx
|
|
@@ -8232,8 +9026,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
8232
9026
|
});
|
|
8233
9027
|
}
|
|
8234
9028
|
//#endregion
|
|
8235
|
-
//#region \0dsh-css:/home/yu/projects/
|
|
8236
|
-
const css$9 = ".
|
|
9029
|
+
//#region \0dsh-css:/home/yu/projects/release-0.2.1/packages/client-agent-team/src/client/member-row.module.css.mjs
|
|
9030
|
+
const css$9 = ".X5YY4G_row{border-radius:var(--dsw-radius-md,12px);grid-template-columns:24px minmax(0,1fr);align-items:center;gap:0 10px;min-height:40px;padding:8px 10px;display:grid}.X5YY4G_row:has(button){grid-template-columns:24px minmax(0,1fr) auto}.X5YY4G_row:hover{background:var(--dsw-alias-interactive-bg-hover)}.X5YY4G_copy{min-width:0;display:grid}.X5YY4G_copy strong{color:var(--dsw-alias-label-primary);text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:500;line-height:18px;overflow:hidden}.X5YY4G_copy small{color:var(--dsw-alias-label-tertiary);text-overflow:ellipsis;white-space:nowrap;font-size:11px;line-height:16px;overflow:hidden}.X5YY4G_action{justify-self:end;min-width:64px}.X5YY4G_error{color:var(--dsw-alias-state-error-primary);grid-column:2/-1;margin:2px 0 0;font-size:11px;line-height:16px}@media (width<=600px){.X5YY4G_row,.X5YY4G_row:has(button){grid-template-columns:24px minmax(0,1fr);align-items:start}.X5YY4G_action{grid-column:2;justify-self:start;margin-top:6px}}";
|
|
8237
9031
|
const tagId$9 = "@wowyuarm/dsh-agent-team/member-row.module.css";
|
|
8238
9032
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$9) + "]") === null) {
|
|
8239
9033
|
const tag = document.createElement("style");
|
|
@@ -8243,10 +9037,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
8243
9037
|
document.head.appendChild(tag);
|
|
8244
9038
|
}
|
|
8245
9039
|
var member_row_module_css_default = {
|
|
8246
|
-
"action": "
|
|
8247
|
-
"copy": "
|
|
8248
|
-
"error": "
|
|
8249
|
-
"row": "
|
|
9040
|
+
"action": "X5YY4G_action",
|
|
9041
|
+
"copy": "X5YY4G_copy",
|
|
9042
|
+
"error": "X5YY4G_error",
|
|
9043
|
+
"row": "X5YY4G_row"
|
|
8250
9044
|
};
|
|
8251
9045
|
//#endregion
|
|
8252
9046
|
//#region src/client/TeamMemberRow.tsx
|
|
@@ -8302,8 +9096,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
8302
9096
|
});
|
|
8303
9097
|
}
|
|
8304
9098
|
//#endregion
|
|
8305
|
-
//#region \0dsh-css:/home/yu/projects/
|
|
8306
|
-
const css$8 = ".
|
|
9099
|
+
//#region \0dsh-css:/home/yu/projects/release-0.2.1/packages/client-agent-team/src/client/members.module.css.mjs
|
|
9100
|
+
const css$8 = ".T91eWG_body{max-height:min(65vh,560px);overflow-y:auto}.T91eWG_content{outline:none;gap:12px;display:grid}.T91eWG_group{gap:2px;display:grid}.T91eWG_group+.T91eWG_group{border-top:1px solid var(--dsw-alias-border-l2);padding-top:10px}.T91eWG_group h3{color:var(--dsw-alias-label-secondary);margin:0 0 3px;font-size:12px;font-weight:600;line-height:18px}.T91eWG_member{margin:0 -6px}.T91eWG_state,.T91eWG_error{margin:0;padding:6px 0;font-size:12px;line-height:18px}.T91eWG_state{color:var(--dsw-alias-label-tertiary)}.T91eWG_error{color:var(--dsw-alias-state-error-primary)}@media (width<=600px){.T91eWG_body{max-height:calc(100vh - 160px)}}";
|
|
8307
9101
|
const tagId$8 = "@wowyuarm/dsh-agent-team/members.module.css";
|
|
8308
9102
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$8) + "]") === null) {
|
|
8309
9103
|
const tag = document.createElement("style");
|
|
@@ -8313,12 +9107,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
8313
9107
|
document.head.appendChild(tag);
|
|
8314
9108
|
}
|
|
8315
9109
|
var members_module_css_default = {
|
|
8316
|
-
"body": "
|
|
8317
|
-
"content": "
|
|
8318
|
-
"error": "
|
|
8319
|
-
"group": "
|
|
8320
|
-
"member": "
|
|
8321
|
-
"state": "
|
|
9110
|
+
"body": "T91eWG_body",
|
|
9111
|
+
"content": "T91eWG_content",
|
|
9112
|
+
"error": "T91eWG_error",
|
|
9113
|
+
"group": "T91eWG_group",
|
|
9114
|
+
"member": "T91eWG_member",
|
|
9115
|
+
"state": "T91eWG_state"
|
|
8322
9116
|
};
|
|
8323
9117
|
//#endregion
|
|
8324
9118
|
//#region src/client/TeamMembersAction.tsx
|
|
@@ -8435,8 +9229,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
8435
9229
|
};
|
|
8436
9230
|
};
|
|
8437
9231
|
//#endregion
|
|
8438
|
-
//#region \0dsh-css:/home/yu/projects/
|
|
8439
|
-
const css$7 = ".
|
|
9232
|
+
//#region \0dsh-css:/home/yu/projects/release-0.2.1/packages/client-agent-team/src/client/composer.module.css.mjs
|
|
9233
|
+
const css$7 = "._77YjtG_root{padding:0 var(--dsh-composer-side-clearance,16px) 8px;flex-direction:column;align-items:center;display:flex}._77YjtG_card{box-sizing:border-box;width:100%;max-width:var(--dsh-composer-card-max-width,780px);--dsw-elevation-stroke-color:var(--dsw-alias-border-l2);border-radius:var(--dsw-radius-panel,22px);background:var(--dsw-specific-input-major,var(--dsw-alias-bg-layer-1));box-shadow:var(--dsw-elevation-soft);border:0;flex-direction:column;gap:6px;padding:10px 0 0;display:flex;position:relative;container-type:inline-size}._77YjtG_inputArea{min-height:28px;position:relative}._77YjtG_inputArea textarea{box-sizing:border-box;resize:none;width:100%;min-height:28px;max-height:336px;color:var(--dsw-alias-label-primary,var(--dsw-alias-label-primary));font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;background:0 0;border:0;outline:0;padding:4px 12px 0 16px;font-size:15px;line-height:24px;display:block;overflow-y:auto}._77YjtG_inputArea textarea::placeholder{color:var(--dsw-alias-label-caption,var(--dsw-alias-label-tertiary))}._77YjtG_inputArea textarea:disabled{cursor:not-allowed;opacity:.55}._77YjtG_mentionMenu{z-index:10;border-radius:var(--dsw-radius-lg,16px);background:var(--dsw-specific-menu);max-height:min(320px,40vh);backdrop-filter:var(--dsw-menu-backdrop-filter);--dsw-elevation-stroke-color:var(--dsw-alias-border-l1);box-shadow:var(--dsw-elevation-prominent);border:0;padding:4px;position:absolute;bottom:calc(100% + 12px);left:0;right:0;overflow-y:auto}._77YjtG_mentionOption{border-radius:var(--dsw-radius-md,8px);width:100%;min-height:40px;color:var(--dsw-alias-label-primary,var(--dsw-alias-label-primary));cursor:pointer;text-align:left;background:0 0;border:0;grid-template-columns:16px minmax(0,auto) minmax(0,1fr);align-items:center;gap:8px;padding:8px 10px;font-size:14px;line-height:22px;display:grid}._77YjtG_mentionOption:hover,._77YjtG_mentionOption[aria-selected=true]{background:var(--dsw-alias-interactive-bg-hover)}._77YjtG_mentionName{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}._77YjtG_mentionAllDot{corner-shape:round;background:var(--dsw-alias-label-primary);border-radius:50%;justify-self:center;width:8px;height:8px}._77YjtG_mentionDescription{min-width:0;color:var(--dsw-alias-label-tertiary,var(--dsw-alias-label-tertiary));text-overflow:ellipsis;white-space:nowrap;overflow:hidden}._77YjtG_toolbar{justify-content:flex-end;align-items:center;gap:12px;min-height:34px;padding:2px 8px 6px;display:flex}._77YjtG_asTaskPill{border-radius:var(--dsw-radius-sm,8px);color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;flex:none;align-items:center;gap:4px;height:28px;padding:0 10px 0 8px;font-size:13px;font-weight:500;line-height:20px;display:inline-flex}._77YjtG_asTaskPill:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}._77YjtG_asTaskPill:focus-visible{box-shadow:0 0 0 2px var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary))}._77YjtG_asTaskPill:disabled{color:var(--dsw-alias-label-dimmed);cursor:default}._77YjtG_asTaskPillOn,._77YjtG_asTaskPillOn:hover:not(:disabled){background:var(--dsw-alias-button-primary-fill);color:var(--dsw-alias-label-primary-foreground)}._77YjtG_asTaskLabel{white-space:nowrap}@container (width<=560px){._77YjtG_toolbar{gap:8px}}._77YjtG_attachButton{background:var(--dsw-specific-selector);corner-shape:round;color:var(--dsw-alias-label-primary);cursor:pointer;border:0;border-radius:999px;flex:none;place-items:center;width:28px;height:28px;display:grid}._77YjtG_attachButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover-solid)}._77YjtG_attachButton:disabled{cursor:default;opacity:.5}._77YjtG_attachButton:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:1px}._77YjtG_fileInput{display:none}._77YjtG_fileChips{flex-wrap:wrap;gap:4px;margin:0;padding:4px 8px 0;list-style:none;display:flex}._77YjtG_fileChip{background:var(--dsw-alias-interactive-bg-hover);border-radius:var(--dsw-radius-sm,6px);align-items:center;gap:4px;max-width:100%;padding:2px 4px 2px 8px;display:inline-flex}._77YjtG_fileChipSize{color:var(--dsw-alias-label-tertiary);margin-left:6px}._77YjtG_imageChip{align-items:center;display:flex}._77YjtG_imageChipPreview{border:1px solid var(--dsw-alias-border-l2);border-radius:var(--dsw-radius-xs,4px);object-fit:cover;width:56px;height:40px}._77YjtG_fileChipName{text-overflow:ellipsis;white-space:nowrap;max-width:220px;font-size:11px;line-height:16px;overflow:hidden}._77YjtG_fileChipRemove{border-radius:var(--dsw-radius-xs,4px);color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;width:16px;height:16px;padding:0;font-size:12px;display:inline-flex}._77YjtG_fileChipRemove:hover,._77YjtG_fileChipRemove:focus-visible{color:var(--dsw-alias-label-primary)}._77YjtG_fileChipRemove:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:1px}._77YjtG_sendButton{background:var(--dsw-alias-button-info-fill,var(--dsw-alias-button-primary-fill));corner-shape:round;color:#fff;cursor:pointer;border:0;border-radius:999px;justify-content:center;align-items:center;width:34px;height:34px;margin-left:auto;padding:0;transition:background-color .1s,opacity .1s;display:inline-flex;transform:translateY(-2px)}._77YjtG_sendButton:hover:not(:disabled){background:var(--dsw-alias-button-info-hover,var(--dsw-alias-button-primary-hover))}._77YjtG_sendButton:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}._77YjtG_sendButton:disabled{cursor:default;opacity:.4}._77YjtG_confirmation{color:var(--dsw-alias-label-tertiary);align-self:stretch;margin:0;padding:0 16px;font-size:12px;line-height:18px}._77YjtG_notifyRow{color:var(--dsw-alias-label-tertiary,var(--dsw-alias-label-tertiary));overflow-wrap:anywhere;margin:0;padding:0 16px;font-size:12px;line-height:18px}._77YjtG_error{color:var(--dsw-alias-state-error-primary);align-self:stretch;margin:0;padding:0 4px 2px;font-size:12px;line-height:18px}@media (width<=600px){._77YjtG_mentionOption{grid-template-columns:16px minmax(0,1fr);min-height:36px;padding-block:6px}._77YjtG_mentionDescription{display:none}}@media (prefers-reduced-motion:reduce){._77YjtG_sendButton{transition:none}}";
|
|
8440
9234
|
const tagId$7 = "@wowyuarm/dsh-agent-team/composer.module.css";
|
|
8441
9235
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$7) + "]") === null) {
|
|
8442
9236
|
const tag = document.createElement("style");
|
|
@@ -8446,31 +9240,31 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
8446
9240
|
document.head.appendChild(tag);
|
|
8447
9241
|
}
|
|
8448
9242
|
var composer_module_css_default = {
|
|
8449
|
-
"asTaskLabel": "
|
|
8450
|
-
"asTaskPill": "
|
|
8451
|
-
"asTaskPillOn": "
|
|
8452
|
-
"attachButton": "
|
|
8453
|
-
"card": "
|
|
8454
|
-
"confirmation": "
|
|
8455
|
-
"error": "
|
|
8456
|
-
"fileChip": "
|
|
8457
|
-
"fileChipName": "
|
|
8458
|
-
"fileChipRemove": "
|
|
8459
|
-
"fileChipSize": "
|
|
8460
|
-
"fileChips": "
|
|
8461
|
-
"fileInput": "
|
|
8462
|
-
"imageChip": "
|
|
8463
|
-
"imageChipPreview": "
|
|
8464
|
-
"inputArea": "
|
|
8465
|
-
"mentionAllDot": "
|
|
8466
|
-
"mentionDescription": "
|
|
8467
|
-
"mentionMenu": "
|
|
8468
|
-
"mentionName": "
|
|
8469
|
-
"mentionOption": "
|
|
8470
|
-
"notifyRow": "
|
|
8471
|
-
"root": "
|
|
8472
|
-
"sendButton": "
|
|
8473
|
-
"toolbar": "
|
|
9243
|
+
"asTaskLabel": "_77YjtG_asTaskLabel",
|
|
9244
|
+
"asTaskPill": "_77YjtG_asTaskPill",
|
|
9245
|
+
"asTaskPillOn": "_77YjtG_asTaskPillOn",
|
|
9246
|
+
"attachButton": "_77YjtG_attachButton",
|
|
9247
|
+
"card": "_77YjtG_card",
|
|
9248
|
+
"confirmation": "_77YjtG_confirmation",
|
|
9249
|
+
"error": "_77YjtG_error",
|
|
9250
|
+
"fileChip": "_77YjtG_fileChip",
|
|
9251
|
+
"fileChipName": "_77YjtG_fileChipName",
|
|
9252
|
+
"fileChipRemove": "_77YjtG_fileChipRemove",
|
|
9253
|
+
"fileChipSize": "_77YjtG_fileChipSize",
|
|
9254
|
+
"fileChips": "_77YjtG_fileChips",
|
|
9255
|
+
"fileInput": "_77YjtG_fileInput",
|
|
9256
|
+
"imageChip": "_77YjtG_imageChip",
|
|
9257
|
+
"imageChipPreview": "_77YjtG_imageChipPreview",
|
|
9258
|
+
"inputArea": "_77YjtG_inputArea",
|
|
9259
|
+
"mentionAllDot": "_77YjtG_mentionAllDot",
|
|
9260
|
+
"mentionDescription": "_77YjtG_mentionDescription",
|
|
9261
|
+
"mentionMenu": "_77YjtG_mentionMenu",
|
|
9262
|
+
"mentionName": "_77YjtG_mentionName",
|
|
9263
|
+
"mentionOption": "_77YjtG_mentionOption",
|
|
9264
|
+
"notifyRow": "_77YjtG_notifyRow",
|
|
9265
|
+
"root": "_77YjtG_root",
|
|
9266
|
+
"sendButton": "_77YjtG_sendButton",
|
|
9267
|
+
"toolbar": "_77YjtG_toolbar"
|
|
8474
9268
|
};
|
|
8475
9269
|
//#endregion
|
|
8476
9270
|
//#region src/client/TeamComposer.tsx
|
|
@@ -9076,8 +9870,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
9076
9870
|
};
|
|
9077
9871
|
};
|
|
9078
9872
|
//#endregion
|
|
9079
|
-
//#region \0dsh-css:/home/yu/projects/
|
|
9080
|
-
const css$6 = ".omcBaG_surface{grid-template-rows:auto minmax(0,1fr) auto;min-width:0;height:100%;min-height:0;display:grid;overflow:hidden}.omcBaG_surfaceHeader{border-bottom:1px solid var(--dsw-alias-border-l2);min-width:0;padding:14px clamp(18px,3vw,36px) 12px}.omcBaG_headerRow{justify-content:space-between;align-items:flex-start;gap:16px;min-width:0;max-width:880px;margin:0 auto;display:flex}.omcBaG_headerCopy{min-width:0}.omcBaG_headerCopy h1{color:var(--dsw-alias-label-primary);overflow-wrap:anywhere;margin:0;font-size:20px;font-weight:600;line-height:28px}.omcBaG_headerCopy p{color:var(--dsw-alias-label-secondary);margin:3px 0 0;font-size:13px;line-height:20px}.omcBaG_headerActions{flex:none;align-items:center;gap:6px;display:flex}.omcBaG_backRow{max-width:880px;margin:0 auto 8px}.omcBaG_timeline{overscroll-behavior:contain;scrollbar-gutter:stable;min-height:0;padding:12px clamp(18px,3vw,36px) 24px;overflow:hidden auto}.omcBaG_timelineContent{flex-direction:column;min-width:0;max-width:880px;min-height:100%;margin:0 auto;display:flex}.omcBaG_emptySurface{margin:auto;padding:32px 0}.omcBaG_emptySurface .omcBaG_emptyState{text-align:center;justify-items:center}.omcBaG_timelineAction{justify-content:center;padding:2px 0 8px;display:flex}.omcBaG_messageRow{gap:10px;padding:10px 0;display:flex}.omcBaG_messageRow[data-grouped]{padding-top:2px}.omcBaG_messageRow[data-grouped] .omcBaG_messageBody>:first-child,.omcBaG_messageRow[data-grouped] .omcBaG_messageBody>:first-child>:first-child{margin-top:0}.omcBaG_messageIdentity{background:hsl(var(--team-avatar-hue,212) 42% 46%);corner-shape:round;color:#fff;border-radius:50%;flex:0 0 28px;justify-content:center;align-items:center;height:28px;font-size:12px;font-weight:600;display:flex}.omcBaG_messageRow[data-human] .omcBaG_messageIdentity{background:var(--dsw-alias-state-business-primary)}.omcBaG_messageIdentityImage{corner-shape:round;object-fit:cover;border-radius:50%;flex:0 0 28px;height:28px}.omcBaG_messageRow[data-grouped] .omcBaG_messageIdentity,.omcBaG_messageRow[data-grouped] .omcBaG_messageIdentityImage{visibility:hidden}.omcBaG_messageBody{min-width:0}.omcBaG_nameRow{flex-wrap:wrap;align-items:baseline;gap:8px;display:flex}.omcBaG_nameRow strong{color:var(--dsw-alias-label-primary);font-size:13px;font-weight:600;line-height:20px}.omcBaG_messageTime{color:var(--dsw-alias-label-tertiary);font-size:11px;line-height:20px}.omcBaG_stateCluster{flex:none;align-items:center;gap:6px;display:inline-flex}.omcBaG_statusWord{color:var(--dsw-alias-label-secondary);font-size:11px;line-height:18px}.omcBaG_entryLine{flex-wrap:wrap;align-items:center;gap:8px;max-width:100%;margin:4px 0 0;display:flex}.omcBaG_entryRow{color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;align-items:center;gap:6px;padding:2px 0;font-size:12px;line-height:18px;display:inline-flex}.omcBaG_entryRow:hover,.omcBaG_entryRow:focus-visible{color:var(--dsw-alias-label-primary)}.omcBaG_entryRow:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:2px}.omcBaG_entryArrow{align-items:center;transition:transform .12s;display:inline-flex}.omcBaG_entryRow:hover .omcBaG_entryArrow,.omcBaG_entryRow:focus-visible .omcBaG_entryArrow{transform:translate(2px)}.omcBaG_messageText{font-size:var(--dsh-content-font-size,14px);line-height:calc(22px + var(--dsh-content-font-delta,0px));white-space:pre-wrap;word-break:break-word;margin:6px 0}.omcBaG_messageClamp{max-height:calc(176px + 8 * var(--dsh-content-font-delta,0px));overflow:hidden;-webkit-mask-image:linear-gradient(#000 72%,#0000 100%);mask-image:linear-gradient(#000 72%,#0000 100%)}.omcBaG_messageExpand{color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;width:fit-content;margin-top:4px;padding:0;font-size:12px;line-height:20px;display:block}.omcBaG_messageExpand:hover,.omcBaG_messageExpand:focus-visible{color:var(--dsw-alias-label-primary);text-underline-offset:2px;outline:none;text-decoration:underline}.omcBaG_messageBody .omcBaG_messageMarkdown{font-size:var(--dsh-content-font-size,14px);line-height:calc(22px + var(--dsh-content-font-delta,0px))}.omcBaG_messageBody .omcBaG_messageMarkdown>div:first-child{color:var(--dsw-alias-label-primary);font:inherit}.omcBaG_messageBody .omcBaG_messageMarkdown p{margin:6px 0}.omcBaG_messageBody .omcBaG_messageMarkdown :where(ul,ol){margin:6px 0;padding-left:22px}.omcBaG_messageBody .omcBaG_messageMarkdown li+li{margin-top:2px}.omcBaG_messageBody .omcBaG_messageMarkdown strong{font-weight:600}.omcBaG_messageBody .omcBaG_messageMarkdown :where(h1,h2,h3,h4,h5,h6){margin:12px 0 4px}.omcBaG_messageBody .omcBaG_messageMarkdown :where(h1){font-size:calc(17px + var(--dsh-content-font-delta,0px));line-height:calc(26px + var(--dsh-content-font-delta,0px))}.omcBaG_messageBody .omcBaG_messageMarkdown :where(h2){font-size:calc(16px + var(--dsh-content-font-delta,0px));line-height:calc(24px + var(--dsh-content-font-delta,0px))}.omcBaG_messageBody .omcBaG_messageMarkdown :where(h3,h4,h5,h6){font-size:calc(15px + var(--dsh-content-font-delta,0px));line-height:calc(22px + var(--dsh-content-font-delta,0px))}.omcBaG_messageBody .omcBaG_messageMarkdown pre{margin:8px 0;padding:10px 12px;font-size:13px}.omcBaG_messageBody .omcBaG_messageMarkdown blockquote{margin:6px 0}.omcBaG_messageBody .omcBaG_messageMarkdown :where(th,td){padding-block:5px}.omcBaG_messageBody [data-document] .omcBaG_messageMarkdown{line-height:calc(24px + var(--dsh-content-font-delta,0px))}.omcBaG_messageBody [data-document] .omcBaG_messageMarkdown p,.omcBaG_messageBody [data-document] .omcBaG_messageMarkdown :where(ul,ol){margin:16px 0}.omcBaG_messageBody [data-document] .omcBaG_messageMarkdown li+li{margin-top:6px}.omcBaG_messageBody [data-document] .omcBaG_messageMarkdown li>p{margin:8px 0}.omcBaG_messageBody [data-document] .omcBaG_messageMarkdown :where(h1,h2,h3,h4,h5,h6){margin:24px 0 8px}.omcBaG_messageBody [data-document] .omcBaG_messageMarkdown :where(h2){font-size:calc(18px + var(--dsh-content-font-delta,0px));line-height:calc(26px + var(--dsh-content-font-delta,0px))}.omcBaG_messageBody [data-document] .omcBaG_messageMarkdown :where(h3){font-size:calc(17px + var(--dsh-content-font-delta,0px));line-height:calc(24px + var(--dsh-content-font-delta,0px))}.omcBaG_messageBody [data-document] .omcBaG_messageMarkdown pre,.omcBaG_messageBody [data-document] .omcBaG_messageMarkdown blockquote{margin:16px 0}.omcBaG_emptyState,.omcBaG_loadingState{color:var(--dsw-alias-label-tertiary);margin:0;padding:14px 0;font-size:13px;line-height:20px}.omcBaG_emptyState{gap:3px;display:grid}.omcBaG_emptyState strong{color:var(--dsw-alias-label-secondary);font-weight:500}.omcBaG_emptyState span{font-size:12px}.omcBaG_loadingState{align-items:center;gap:8px;display:flex}.omcBaG_loadingMark{background:var(--dsw-alias-bg-skeleton);corner-shape:round;border-radius:50%;width:8px;height:8px;animation:1.2s ease-in-out infinite omcBaG_pulse}.omcBaG_error{color:var(--dsw-alias-state-error-primary);max-width:880px;margin:0;padding-top:6px;font-size:12px;line-height:18px}.omcBaG_errorState{color:var(--dsw-alias-state-error-primary);justify-content:space-between;align-items:center;gap:8px;max-width:880px;margin:auto;padding:32px 0;font-size:12px;line-height:18px;display:flex}.omcBaG_welcomeSurface{justify-content:center;align-items:center;min-width:0;height:100%;padding:32px;display:flex}.omcBaG_welcome{text-align:center;max-width:420px}.omcBaG_welcomeEyebrow{color:var(--dsw-alias-label-tertiary);text-transform:uppercase;font-size:12px;line-height:18px}.omcBaG_welcome h1{color:var(--dsw-alias-label-primary);margin:8px 0;font-size:24px;font-weight:600;line-height:32px}.omcBaG_welcome p{color:var(--dsw-alias-label-secondary);margin:0;font-size:13px;line-height:20px}@keyframes omcBaG_pulse{0%,to{opacity:.35}50%{opacity:1}}@media (width<=600px){.omcBaG_surfaceHeader{padding:12px 12px 10px}.omcBaG_headerRow{flex-direction:column;align-items:stretch;gap:8px}.omcBaG_headerActions{flex-wrap:wrap}.omcBaG_backRow{margin-bottom:6px}.omcBaG_timeline{scrollbar-gutter:auto;padding:8px 12px 16px}.omcBaG_messageRow{padding:8px 0}}@media (prefers-reduced-motion:reduce){.omcBaG_loadingMark{animation:none}.omcBaG_entryArrow{transition:none}.omcBaG_entryRow:hover .omcBaG_entryArrow,.omcBaG_entryRow:focus-visible .omcBaG_entryArrow{transform:none}}.omcBaG_messageRun{margin:2px 0;padding:3px 0}.omcBaG_messageRow[data-grouped]:has([data-thread-entry]){margin-top:3px;padding-top:7px;position:relative}.omcBaG_messageRow[data-grouped]:has([data-thread-entry]):before{background:var(--dsw-alias-border-l2);content:\"\";height:1px;position:absolute;inset:0 0 auto 38px}.omcBaG_runDivider{border-top:1px solid var(--dsw-alias-border-l2);color:var(--dsw-alias-label-tertiary);margin:2px 0 0 38px;padding:5px 0 0;font-size:11px;line-height:16px}.omcBaG_runDivider+.omcBaG_messageRow[data-grouped]:has([data-thread-entry]){margin-top:0}.omcBaG_runDivider+.omcBaG_messageRow[data-grouped]:has([data-thread-entry]):before{content:none}.omcBaG_mention{background:color-mix(in srgb, var(--dsw-alias-state-business-primary) 12%, transparent);color:var(--dsw-alias-state-business-primary);border-radius:6px;padding:0 4px;font-weight:500;box-shadow:0 1px 2px #00000014}.omcBaG_mentionsRow{gap:4px;width:fit-content;margin-top:3px;font-size:.85em;display:flex}.omcBaG_attachmentStrip{flex-wrap:wrap;gap:6px;margin-top:4px;display:flex}.omcBaG_attachmentThumb{cursor:zoom-in;border:0;border-radius:8px;padding:0}.omcBaG_attachmentThumb img{object-fit:cover;border-radius:8px;width:128px;height:96px;display:block}.omcBaG_attachmentThumb:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary,currentColor);outline-offset:1px}.omcBaG_confirmBody{margin:0 0 8px}.omcBaG_confirmList{gap:6px;margin:0;padding-left:18px;display:grid}.omcBaG_refLink{color:var(--dsw-alias-state-business-primary);cursor:pointer;font:inherit;text-align:left;text-underline-offset:3px;background:0 0;border:none;border-radius:4px;padding:0;text-decoration:underline}.omcBaG_refLink:hover{text-decoration-thickness:2px}.omcBaG_refLink:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:1px}.omcBaG_attachmentModal{width:min(1100px,92vw)}.omcBaG_attachmentZoom{object-fit:contain;border-radius:12px;max-width:100%;max-height:78vh;margin:0 auto;display:block}.omcBaG_attachmentChip{background:var(--dsw-alias-interactive-bg-hover);border-radius:6px;align-items:baseline;gap:6px;max-width:100%;padding:3px 8px;display:inline-flex}.omcBaG_attachmentChipName{text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:17px;overflow:hidden}.omcBaG_attachmentChipSize{color:var(--dsw-alias-label-tertiary);white-space:nowrap;font-size:11px;line-height:17px}";
|
|
9873
|
+
//#region \0dsh-css:/home/yu/projects/release-0.2.1/packages/client-agent-team/src/client/conversation.module.css.mjs
|
|
9874
|
+
const css$6 = ".EPVjHa_surface{grid-template-rows:auto minmax(0,1fr) auto;min-width:0;height:100%;min-height:0;display:grid;overflow:hidden}.EPVjHa_surfaceHeader{border-bottom:1px solid var(--dsw-alias-border-l2);min-width:0;padding:14px clamp(18px,3vw,36px) 12px}.EPVjHa_headerRow{justify-content:space-between;align-items:flex-start;gap:16px;min-width:0;max-width:880px;margin:0 auto;display:flex}.EPVjHa_headerCopy{min-width:0}.EPVjHa_headerCopy h1{color:var(--dsw-alias-label-primary);overflow-wrap:anywhere;margin:0;font-size:20px;font-weight:600;line-height:28px}.EPVjHa_headerCopy p{color:var(--dsw-alias-label-secondary);margin:3px 0 0;font-size:13px;line-height:20px}.EPVjHa_headerActions{flex:none;align-items:center;gap:6px;display:flex}.EPVjHa_backRow{max-width:880px;margin:0 auto 8px}.EPVjHa_timeline{overscroll-behavior:contain;scrollbar-gutter:stable;min-height:0;padding:12px clamp(18px,3vw,36px) 24px;overflow:hidden auto}.EPVjHa_timelineContent{flex-direction:column;min-width:0;max-width:880px;min-height:100%;margin:0 auto;display:flex}.EPVjHa_emptySurface{margin:auto;padding:32px 0}.EPVjHa_emptySurface .EPVjHa_emptyState{text-align:center;justify-items:center}.EPVjHa_timelineAction{justify-content:center;padding:2px 0 8px;display:flex}.EPVjHa_messageRow{gap:10px;padding:10px 0;display:flex}.EPVjHa_messageRow[data-grouped]{padding-top:2px}.EPVjHa_messageRow[data-grouped] .EPVjHa_messageBody>:first-child,.EPVjHa_messageRow[data-grouped] .EPVjHa_messageBody>:first-child>:first-child{margin-top:0}.EPVjHa_messageIdentity{background:hsl(var(--team-avatar-hue,212) 42% 46%);corner-shape:round;color:#fff;border-radius:50%;flex:0 0 28px;justify-content:center;align-items:center;height:28px;font-size:12px;font-weight:600;display:flex}.EPVjHa_messageRow[data-human] .EPVjHa_messageIdentity{background:var(--dsw-alias-state-business-primary)}.EPVjHa_messageIdentityImage{corner-shape:round;object-fit:cover;border-radius:50%;flex:0 0 28px;height:28px}.EPVjHa_messageRow[data-grouped] .EPVjHa_messageIdentity,.EPVjHa_messageRow[data-grouped] .EPVjHa_messageIdentityImage{visibility:hidden}.EPVjHa_messageBody{min-width:0}.EPVjHa_nameRow{flex-wrap:wrap;align-items:baseline;gap:8px;display:flex}.EPVjHa_nameRow strong{color:var(--dsw-alias-label-primary);font-size:var(--dsh-content-font-size-secondary,13px);font-weight:600;line-height:calc(20px + var(--dsh-content-font-delta-secondary,0px))}.EPVjHa_messageTime{color:var(--dsw-alias-label-tertiary);font-size:11px;line-height:20px}.EPVjHa_stateCluster{flex:none;align-items:center;gap:6px;display:inline-flex}.EPVjHa_statusWord{color:var(--dsw-alias-label-secondary);font-size:11px;line-height:18px}.EPVjHa_entryLine{flex-wrap:wrap;align-items:center;gap:8px;max-width:100%;margin:4px 0 0;display:flex}.EPVjHa_entryRow{color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;align-items:center;gap:6px;padding:2px 0;font-size:12px;line-height:18px;display:inline-flex}.EPVjHa_entryRow:hover,.EPVjHa_entryRow:focus-visible{color:var(--dsw-alias-label-primary)}.EPVjHa_entryRow:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}.EPVjHa_entryArrow{align-items:center;transition:transform .12s;display:inline-flex}.EPVjHa_entryRow:hover .EPVjHa_entryArrow,.EPVjHa_entryRow:focus-visible .EPVjHa_entryArrow{transform:translate(2px)}.EPVjHa_messageText{font-size:var(--dsh-content-font-size,14px);line-height:calc(22px + var(--dsh-content-font-delta,0px));white-space:pre-wrap;word-break:break-word;margin:6px 0}.EPVjHa_messageClamp{max-height:calc(176px + 8 * var(--dsh-content-font-delta,0px));overflow:hidden;-webkit-mask-image:linear-gradient(#000 72%,#0000 100%);mask-image:linear-gradient(#000 72%,#0000 100%)}.EPVjHa_messageExpand{color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;width:fit-content;margin-top:4px;padding:0;font-size:12px;line-height:20px;display:block}.EPVjHa_messageExpand:hover,.EPVjHa_messageExpand:focus-visible{color:var(--dsw-alias-label-primary);text-underline-offset:2px;outline:none;text-decoration:underline}.EPVjHa_messageBody .EPVjHa_messageMarkdown{font-size:var(--dsh-content-font-size,14px);line-height:calc(22px + var(--dsh-content-font-delta,0px))}.EPVjHa_messageBody .EPVjHa_messageMarkdown>div:first-child{color:var(--dsw-alias-label-primary);font:inherit}.EPVjHa_messageBody .EPVjHa_messageMarkdown p{margin:6px 0}.EPVjHa_messageBody .EPVjHa_messageMarkdown :where(ul,ol){margin:6px 0;padding-left:22px}.EPVjHa_messageBody .EPVjHa_messageMarkdown li+li{margin-top:2px}.EPVjHa_messageBody .EPVjHa_messageMarkdown strong{font-weight:600}.EPVjHa_messageBody .EPVjHa_messageMarkdown :where(h1,h2,h3,h4,h5,h6){margin:12px 0 4px}.EPVjHa_messageBody .EPVjHa_messageMarkdown :where(h1){font-size:calc(17px + var(--dsh-content-font-delta,0px));line-height:calc(26px + var(--dsh-content-font-delta,0px))}.EPVjHa_messageBody .EPVjHa_messageMarkdown :where(h2){font-size:calc(16px + var(--dsh-content-font-delta,0px));line-height:calc(24px + var(--dsh-content-font-delta,0px))}.EPVjHa_messageBody .EPVjHa_messageMarkdown :where(h3,h4,h5,h6){font-size:calc(15px + var(--dsh-content-font-delta,0px));line-height:calc(22px + var(--dsh-content-font-delta,0px))}.EPVjHa_messageBody .EPVjHa_messageMarkdown pre{margin:8px 0;padding:10px 12px;font-size:13px}.EPVjHa_messageBody .EPVjHa_messageMarkdown blockquote{margin:6px 0}.EPVjHa_messageBody .EPVjHa_messageMarkdown :where(th,td){padding-block:5px}.EPVjHa_messageBody [data-document] .EPVjHa_messageMarkdown{line-height:calc(24px + var(--dsh-content-font-delta,0px))}.EPVjHa_messageBody [data-document] .EPVjHa_messageMarkdown p,.EPVjHa_messageBody [data-document] .EPVjHa_messageMarkdown :where(ul,ol){margin:16px 0}.EPVjHa_messageBody [data-document] .EPVjHa_messageMarkdown li+li{margin-top:6px}.EPVjHa_messageBody [data-document] .EPVjHa_messageMarkdown li>p{margin:8px 0}.EPVjHa_messageBody [data-document] .EPVjHa_messageMarkdown :where(h1,h2,h3,h4,h5,h6){margin:24px 0 8px}.EPVjHa_messageBody [data-document] .EPVjHa_messageMarkdown :where(h2){font-size:calc(18px + var(--dsh-content-font-delta,0px));line-height:calc(26px + var(--dsh-content-font-delta,0px))}.EPVjHa_messageBody [data-document] .EPVjHa_messageMarkdown :where(h3){font-size:calc(17px + var(--dsh-content-font-delta,0px));line-height:calc(24px + var(--dsh-content-font-delta,0px))}.EPVjHa_messageBody [data-document] .EPVjHa_messageMarkdown pre,.EPVjHa_messageBody [data-document] .EPVjHa_messageMarkdown blockquote{margin:16px 0}.EPVjHa_emptyState,.EPVjHa_loadingState{color:var(--dsw-alias-label-tertiary);margin:0;padding:14px 0;font-size:13px;line-height:20px}.EPVjHa_emptyState{gap:3px;display:grid}.EPVjHa_emptyState strong{color:var(--dsw-alias-label-secondary);font-weight:500}.EPVjHa_emptyState span{font-size:12px}.EPVjHa_loadingState{align-items:center;gap:8px;display:flex}.EPVjHa_loadingMark{background:var(--dsw-alias-bg-skeleton);corner-shape:round;border-radius:50%;width:8px;height:8px;animation:1.2s ease-in-out infinite EPVjHa_pulse}.EPVjHa_error{color:var(--dsw-alias-state-error-primary);max-width:880px;margin:0;padding-top:6px;font-size:12px;line-height:18px}.EPVjHa_errorState{color:var(--dsw-alias-state-error-primary);justify-content:space-between;align-items:center;gap:8px;max-width:880px;margin:auto;padding:32px 0;font-size:12px;line-height:18px;display:flex}.EPVjHa_welcomeSurface{justify-content:center;align-items:center;min-width:0;height:100%;padding:32px;display:flex}.EPVjHa_welcome{text-align:center;max-width:420px}.EPVjHa_welcomeEyebrow{color:var(--dsw-alias-label-tertiary);text-transform:uppercase;font-size:12px;line-height:18px}.EPVjHa_welcome h1{color:var(--dsw-alias-label-primary);margin:8px 0;font-size:24px;font-weight:600;line-height:32px}.EPVjHa_welcome p{color:var(--dsw-alias-label-secondary);margin:0;font-size:13px;line-height:20px}@keyframes EPVjHa_pulse{0%,to{opacity:.35}50%{opacity:1}}@media (width<=600px){.EPVjHa_surfaceHeader{padding:12px 12px 10px}.EPVjHa_headerRow{flex-direction:column;align-items:stretch;gap:8px}.EPVjHa_headerActions{flex-wrap:wrap}.EPVjHa_backRow{margin-bottom:6px}.EPVjHa_timeline{scrollbar-gutter:auto;padding:8px 12px 16px}.EPVjHa_messageRow{padding:8px 0}}@media (prefers-reduced-motion:reduce){.EPVjHa_loadingMark{animation:none}.EPVjHa_entryArrow{transition:none}.EPVjHa_entryRow:hover .EPVjHa_entryArrow,.EPVjHa_entryRow:focus-visible .EPVjHa_entryArrow{transform:none}}.EPVjHa_messageRun{margin:2px 0;padding:3px 0}.EPVjHa_messageRow[data-grouped]:has([data-thread-entry]){margin-top:3px;padding-top:7px;position:relative}.EPVjHa_messageRow[data-grouped]:has([data-thread-entry]):before{background:var(--dsw-alias-border-l2);content:\"\";height:1px;position:absolute;inset:0 0 auto 38px}.EPVjHa_runDivider{border-top:1px solid var(--dsw-alias-border-l2);color:var(--dsw-alias-label-tertiary);margin:2px 0 0 38px;padding:5px 0 0;font-size:11px;line-height:16px}.EPVjHa_runDivider+.EPVjHa_messageRow[data-grouped]:has([data-thread-entry]){margin-top:0}.EPVjHa_runDivider+.EPVjHa_messageRow[data-grouped]:has([data-thread-entry]):before{content:none}.EPVjHa_mention{background:color-mix(in srgb, var(--dsw-alias-state-business-primary) 12%, transparent);border-radius:var(--dsw-radius-sm,6px);color:var(--dsw-alias-state-business-primary);padding:0 4px;font-weight:500;box-shadow:0 1px 2px #00000014}.EPVjHa_mentionsRow{gap:4px;width:fit-content;margin-top:3px;font-size:.85em;display:flex}.EPVjHa_attachmentStrip{flex-wrap:wrap;gap:6px;margin-top:4px;display:flex}.EPVjHa_attachmentThumb{border-radius:var(--dsw-radius-sm,8px);cursor:zoom-in;border:0;padding:0}.EPVjHa_attachmentThumb img{border-radius:var(--dsw-radius-sm,8px);object-fit:cover;width:128px;height:96px;display:block}.EPVjHa_attachmentThumb:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:1px}.EPVjHa_confirmBody{margin:0 0 8px}.EPVjHa_confirmList{gap:6px;margin:0;padding-left:18px;display:grid}.EPVjHa_refLink{border-radius:var(--dsw-radius-xs,4px);color:var(--dsw-alias-state-business-primary);cursor:pointer;font:inherit;text-align:left;text-underline-offset:3px;background:0 0;border:none;padding:0;text-decoration:underline}.EPVjHa_refLink:hover{text-decoration-thickness:2px}.EPVjHa_refLink:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:1px}.EPVjHa_attachmentModal{width:min(1100px,92vw)}.EPVjHa_attachmentZoom{object-fit:contain;border-radius:var(--dsw-radius-md,12px);max-width:100%;max-height:78vh;margin:0 auto;display:block}.EPVjHa_attachmentChip{background:var(--dsw-alias-interactive-bg-hover);border-radius:var(--dsw-radius-sm,6px);align-items:baseline;gap:6px;max-width:100%;padding:3px 8px;display:inline-flex}.EPVjHa_attachmentChipName{text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:17px;overflow:hidden}.EPVjHa_attachmentChipSize{color:var(--dsw-alias-label-tertiary);white-space:nowrap;font-size:11px;line-height:17px}";
|
|
9081
9875
|
const tagId$6 = "@wowyuarm/dsh-agent-team/conversation.module.css";
|
|
9082
9876
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$6) + "]") === null) {
|
|
9083
9877
|
const tag = document.createElement("style");
|
|
@@ -9087,54 +9881,54 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
9087
9881
|
document.head.appendChild(tag);
|
|
9088
9882
|
}
|
|
9089
9883
|
var conversation_module_css_default = {
|
|
9090
|
-
"attachmentChip": "
|
|
9091
|
-
"attachmentChipName": "
|
|
9092
|
-
"attachmentChipSize": "
|
|
9093
|
-
"attachmentModal": "
|
|
9094
|
-
"attachmentStrip": "
|
|
9095
|
-
"attachmentThumb": "
|
|
9096
|
-
"attachmentZoom": "
|
|
9097
|
-
"backRow": "
|
|
9098
|
-
"confirmBody": "
|
|
9099
|
-
"confirmList": "
|
|
9100
|
-
"emptyState": "
|
|
9101
|
-
"emptySurface": "
|
|
9102
|
-
"entryArrow": "
|
|
9103
|
-
"entryLine": "
|
|
9104
|
-
"entryRow": "
|
|
9105
|
-
"error": "
|
|
9106
|
-
"errorState": "
|
|
9107
|
-
"headerActions": "
|
|
9108
|
-
"headerCopy": "
|
|
9109
|
-
"headerRow": "
|
|
9110
|
-
"loadingMark": "
|
|
9111
|
-
"loadingState": "
|
|
9112
|
-
"mention": "
|
|
9113
|
-
"mentionsRow": "
|
|
9114
|
-
"messageBody": "
|
|
9115
|
-
"messageClamp": "
|
|
9116
|
-
"messageExpand": "
|
|
9117
|
-
"messageIdentity": "
|
|
9118
|
-
"messageIdentityImage": "
|
|
9119
|
-
"messageMarkdown": "
|
|
9120
|
-
"messageRow": "
|
|
9121
|
-
"messageRun": "
|
|
9122
|
-
"messageText": "
|
|
9123
|
-
"messageTime": "
|
|
9124
|
-
"nameRow": "
|
|
9125
|
-
"pulse": "
|
|
9126
|
-
"refLink": "
|
|
9127
|
-
"runDivider": "
|
|
9128
|
-
"stateCluster": "
|
|
9129
|
-
"statusWord": "
|
|
9130
|
-
"surface": "
|
|
9131
|
-
"surfaceHeader": "
|
|
9132
|
-
"timeline": "
|
|
9133
|
-
"timelineAction": "
|
|
9134
|
-
"timelineContent": "
|
|
9135
|
-
"welcome": "
|
|
9136
|
-
"welcomeEyebrow": "
|
|
9137
|
-
"welcomeSurface": "
|
|
9884
|
+
"attachmentChip": "EPVjHa_attachmentChip",
|
|
9885
|
+
"attachmentChipName": "EPVjHa_attachmentChipName",
|
|
9886
|
+
"attachmentChipSize": "EPVjHa_attachmentChipSize",
|
|
9887
|
+
"attachmentModal": "EPVjHa_attachmentModal",
|
|
9888
|
+
"attachmentStrip": "EPVjHa_attachmentStrip",
|
|
9889
|
+
"attachmentThumb": "EPVjHa_attachmentThumb",
|
|
9890
|
+
"attachmentZoom": "EPVjHa_attachmentZoom",
|
|
9891
|
+
"backRow": "EPVjHa_backRow",
|
|
9892
|
+
"confirmBody": "EPVjHa_confirmBody",
|
|
9893
|
+
"confirmList": "EPVjHa_confirmList",
|
|
9894
|
+
"emptyState": "EPVjHa_emptyState",
|
|
9895
|
+
"emptySurface": "EPVjHa_emptySurface",
|
|
9896
|
+
"entryArrow": "EPVjHa_entryArrow",
|
|
9897
|
+
"entryLine": "EPVjHa_entryLine",
|
|
9898
|
+
"entryRow": "EPVjHa_entryRow",
|
|
9899
|
+
"error": "EPVjHa_error",
|
|
9900
|
+
"errorState": "EPVjHa_errorState",
|
|
9901
|
+
"headerActions": "EPVjHa_headerActions",
|
|
9902
|
+
"headerCopy": "EPVjHa_headerCopy",
|
|
9903
|
+
"headerRow": "EPVjHa_headerRow",
|
|
9904
|
+
"loadingMark": "EPVjHa_loadingMark",
|
|
9905
|
+
"loadingState": "EPVjHa_loadingState",
|
|
9906
|
+
"mention": "EPVjHa_mention",
|
|
9907
|
+
"mentionsRow": "EPVjHa_mentionsRow",
|
|
9908
|
+
"messageBody": "EPVjHa_messageBody",
|
|
9909
|
+
"messageClamp": "EPVjHa_messageClamp",
|
|
9910
|
+
"messageExpand": "EPVjHa_messageExpand",
|
|
9911
|
+
"messageIdentity": "EPVjHa_messageIdentity",
|
|
9912
|
+
"messageIdentityImage": "EPVjHa_messageIdentityImage",
|
|
9913
|
+
"messageMarkdown": "EPVjHa_messageMarkdown",
|
|
9914
|
+
"messageRow": "EPVjHa_messageRow",
|
|
9915
|
+
"messageRun": "EPVjHa_messageRun",
|
|
9916
|
+
"messageText": "EPVjHa_messageText",
|
|
9917
|
+
"messageTime": "EPVjHa_messageTime",
|
|
9918
|
+
"nameRow": "EPVjHa_nameRow",
|
|
9919
|
+
"pulse": "EPVjHa_pulse",
|
|
9920
|
+
"refLink": "EPVjHa_refLink",
|
|
9921
|
+
"runDivider": "EPVjHa_runDivider",
|
|
9922
|
+
"stateCluster": "EPVjHa_stateCluster",
|
|
9923
|
+
"statusWord": "EPVjHa_statusWord",
|
|
9924
|
+
"surface": "EPVjHa_surface",
|
|
9925
|
+
"surfaceHeader": "EPVjHa_surfaceHeader",
|
|
9926
|
+
"timeline": "EPVjHa_timeline",
|
|
9927
|
+
"timelineAction": "EPVjHa_timelineAction",
|
|
9928
|
+
"timelineContent": "EPVjHa_timelineContent",
|
|
9929
|
+
"welcome": "EPVjHa_welcome",
|
|
9930
|
+
"welcomeEyebrow": "EPVjHa_welcomeEyebrow",
|
|
9931
|
+
"welcomeSurface": "EPVjHa_welcomeSurface"
|
|
9138
9932
|
};
|
|
9139
9933
|
//#endregion
|
|
9140
9934
|
//#region src/client/TeamMessage.tsx
|
|
@@ -9638,8 +10432,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
9638
10432
|
});
|
|
9639
10433
|
}
|
|
9640
10434
|
//#endregion
|
|
9641
|
-
//#region \0dsh-css:/home/yu/projects/
|
|
9642
|
-
const css$5 = ".
|
|
10435
|
+
//#region \0dsh-css:/home/yu/projects/release-0.2.1/packages/client-agent-team/src/client/avatar-stack.module.css.mjs
|
|
10436
|
+
const css$5 = ".K1HlrW_stack{flex:none;align-items:center;display:inline-flex}.K1HlrW_avatar,.K1HlrW_avatarImage,.K1HlrW_overflow{box-shadow:0 0 0 2px var(--team-mark-ring,var(--dsw-alias-bg-base)), 0 0 0 2px var(--dsw-alias-bg-base);corner-shape:round;border-radius:50%;justify-content:center;align-items:center;width:18px;height:18px;font-size:9px;font-weight:600;display:inline-flex}.K1HlrW_avatar{background:hsl(var(--team-avatar-hue,212) 42% 46%);color:#fff}.K1HlrW_avatarImage{background:hsl(var(--team-avatar-hue,212) 42% 46%);object-fit:cover}.K1HlrW_overflow{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-secondary)}.K1HlrW_stack>:not(:first-child){margin-left:-6px}";
|
|
9643
10437
|
const tagId$5 = "@wowyuarm/dsh-agent-team/avatar-stack.module.css";
|
|
9644
10438
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$5) + "]") === null) {
|
|
9645
10439
|
const tag = document.createElement("style");
|
|
@@ -9649,10 +10443,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
9649
10443
|
document.head.appendChild(tag);
|
|
9650
10444
|
}
|
|
9651
10445
|
var avatar_stack_module_css_default = {
|
|
9652
|
-
"avatar": "
|
|
9653
|
-
"avatarImage": "
|
|
9654
|
-
"overflow": "
|
|
9655
|
-
"stack": "
|
|
10446
|
+
"avatar": "K1HlrW_avatar",
|
|
10447
|
+
"avatarImage": "K1HlrW_avatarImage",
|
|
10448
|
+
"overflow": "K1HlrW_overflow",
|
|
10449
|
+
"stack": "K1HlrW_stack"
|
|
9656
10450
|
};
|
|
9657
10451
|
//#endregion
|
|
9658
10452
|
//#region src/client/TeamAvatarStack.tsx
|
|
@@ -9720,8 +10514,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
9720
10514
|
return name.replace(/^@/, "").replace(/^member:/, "").slice(0, 1).toUpperCase();
|
|
9721
10515
|
}
|
|
9722
10516
|
//#endregion
|
|
9723
|
-
//#region \0dsh-css:/home/yu/projects/
|
|
9724
|
-
const css$4 = ".
|
|
10517
|
+
//#region \0dsh-css:/home/yu/projects/release-0.2.1/packages/client-agent-team/src/client/countBadge.module.css.mjs
|
|
10518
|
+
const css$4 = ".nk4Ika_badge{background:var(--dsw-alias-state-business-primary);box-sizing:border-box;color:var(--dsw-alias-label-primary-foreground);corner-shape:round;font-variant-numeric:tabular-nums;border-radius:999px;flex:none;justify-content:center;align-items:center;min-width:18px;height:18px;padding:0 5px;font-size:11px;font-weight:600;line-height:18px;display:inline-flex}.nk4Ika_hairline{border:1px solid var(--dsw-alias-border-l2);color:var(--dsw-alias-label-secondary);background:0 0;padding:0 4px}";
|
|
9725
10519
|
const tagId$4 = "@wowyuarm/dsh-agent-team/countBadge.module.css";
|
|
9726
10520
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$4) + "]") === null) {
|
|
9727
10521
|
const tag = document.createElement("style");
|
|
@@ -9731,8 +10525,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
9731
10525
|
document.head.appendChild(tag);
|
|
9732
10526
|
}
|
|
9733
10527
|
var countBadge_module_css_default = {
|
|
9734
|
-
"badge": "
|
|
9735
|
-
"hairline": "
|
|
10528
|
+
"badge": "nk4Ika_badge",
|
|
10529
|
+
"hairline": "nk4Ika_hairline"
|
|
9736
10530
|
};
|
|
9737
10531
|
//#endregion
|
|
9738
10532
|
//#region src/client/TeamCountBadge.tsx
|
|
@@ -9945,8 +10739,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
9945
10739
|
return blocks;
|
|
9946
10740
|
}
|
|
9947
10741
|
//#endregion
|
|
9948
|
-
//#region \0dsh-css:/home/yu/projects/
|
|
9949
|
-
const css$3 = ".
|
|
10742
|
+
//#region \0dsh-css:/home/yu/projects/release-0.2.1/packages/client-agent-team/src/client/channel.module.css.mjs
|
|
10743
|
+
const css$3 = ".a-0igq_headerMeta{color:var(--dsw-alias-label-tertiary);flex-wrap:wrap;align-items:center;gap:6px;margin-top:7px;font-size:12px;line-height:18px;display:flex}.a-0igq_headerMeta span+span:before{content:\"·\";margin-right:6px}.a-0igq_memberList{gap:2px;margin:0 -6px;display:grid}.a-0igq_modalBody{max-height:min(65vh,520px);overflow-y:auto}";
|
|
9950
10744
|
const tagId$3 = "@wowyuarm/dsh-agent-team/channel.module.css";
|
|
9951
10745
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$3) + "]") === null) {
|
|
9952
10746
|
const tag = document.createElement("style");
|
|
@@ -9956,13 +10750,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
9956
10750
|
document.head.appendChild(tag);
|
|
9957
10751
|
}
|
|
9958
10752
|
var channel_module_css_default = {
|
|
9959
|
-
"headerMeta": "
|
|
9960
|
-
"memberList": "
|
|
9961
|
-
"modalBody": "
|
|
10753
|
+
"headerMeta": "a-0igq_headerMeta",
|
|
10754
|
+
"memberList": "a-0igq_memberList",
|
|
10755
|
+
"modalBody": "a-0igq_modalBody"
|
|
9962
10756
|
};
|
|
9963
10757
|
//#endregion
|
|
9964
|
-
//#region \0dsh-css:/home/yu/projects/
|
|
9965
|
-
const css$2 = "
|
|
10758
|
+
//#region \0dsh-css:/home/yu/projects/release-0.2.1/packages/client-agent-team/src/client/thread.module.css.mjs
|
|
10759
|
+
const css$2 = ".zYkyBa_titleLine{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.zYkyBa_titleLine h1{margin:0}.zYkyBa_workSection,.zYkyBa_riskSection{max-width:880px;margin:14px auto 0}.zYkyBa_riskSection h2{color:var(--dsw-alias-state-error-primary);margin:0 0 6px;font-size:12px;font-weight:600;line-height:18px}.zYkyBa_riskRow{color:var(--dsw-alias-label-secondary);flex-wrap:nowrap;align-items:center;gap:6px;min-width:0;margin:0 0 2px;font-size:11px;line-height:16px;display:flex;overflow:hidden}.zYkyBa_riskRow>span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.zYkyBa_riskClass{color:var(--dsw-alias-state-error-primary);font-weight:600}.zYkyBa_claimList{gap:0;padding:4px 0 0 22px;display:grid}.zYkyBa_claimRow{border-radius:var(--dsw-radius-sm,6px);grid-template-columns:14px minmax(0,1fr) auto;align-items:center;column-gap:8px;min-height:30px;padding:3px 6px 5px;display:grid}.zYkyBa_claimRow:hover{background:var(--dsw-alias-interactive-bg-hover)}.zYkyBa_claimOwner{color:var(--dsw-alias-label-secondary);text-overflow:ellipsis;white-space:nowrap;grid-area:1/2;align-items:center;gap:4px;min-width:0;font-size:11px;font-weight:500;line-height:16px;display:inline-flex;overflow:hidden}.zYkyBa_claimDirection{color:var(--dsw-alias-label-primary);overflow-wrap:anywhere;grid-area:2/2;min-width:0;font-size:12px;line-height:18px}.zYkyBa_claimRowDone .zYkyBa_claimDirection{color:var(--dsw-alias-label-secondary)}.zYkyBa_claimState{color:var(--dsw-alias-label-tertiary);white-space:nowrap;grid-area:1/3;font-size:11px;line-height:18px}.zYkyBa_emptyClaims{color:var(--dsw-alias-label-tertiary);margin:0;padding:5px 6px;font-size:11px;line-height:18px}.zYkyBa_activityRow{color:var(--dsw-alias-label-tertiary);text-align:center;justify-content:center;align-items:center;gap:8px;max-width:100%;margin:4px auto;padding:5px 12px;font-size:11px;line-height:18px;display:flex}.zYkyBa_activityText{overflow-wrap:anywhere;min-width:0}.zYkyBa_activityMark{background:var(--dsw-alias-border-l3);corner-shape:round;border-radius:50%;flex:0 0 5px;width:5px;height:5px}.zYkyBa_activityRow:has(+.zYkyBa_activityRow),.zYkyBa_activityRow+.zYkyBa_activityRow{text-align:left;justify-content:flex-start;padding-left:38px}.zYkyBa_historySection{border-bottom:1px solid var(--dsw-alias-border-l2);max-width:100%;margin:0 auto 12px;padding-bottom:10px}.zYkyBa_historySection h2{color:var(--dsw-alias-label-tertiary);letter-spacing:.02em;text-transform:uppercase;margin:0 0 4px;font-size:11px;font-weight:600;line-height:16px}.zYkyBa_publicSection{min-width:0}.zYkyBa_unreadBoundary{color:var(--dsw-alias-label-tertiary);align-items:center;gap:10px;margin:10px 0 6px;font-size:11px;line-height:16px;display:flex}.zYkyBa_unreadBoundary:before,.zYkyBa_unreadBoundary:after{background:var(--dsw-alias-border-l3);content:\"\";flex:1;height:1px}.zYkyBa_unreadBoundary span{flex:none}.zYkyBa_daySeparator{color:var(--dsw-alias-label-tertiary);letter-spacing:.02em;align-items:center;gap:10px;margin:12px 0 4px;font-size:11px;line-height:16px;display:flex}.zYkyBa_daySeparator:before,.zYkyBa_daySeparator:after{background:var(--dsw-alias-border-l2);content:\"\";flex:1;height:1px}.zYkyBa_daySeparator span{flex:none}.zYkyBa_newUpdates{background:var(--dsw-specific-input-major,var(--dsw-alias-bg-layer-1));border:1px solid var(--dsw-alias-border-l2-darkmode-thin);corner-shape:round;box-shadow:var(--dsw-shadow-lv2);z-index:2;border-radius:999px;justify-content:center;align-items:center;width:fit-content;margin:8px auto;padding:4px 12px;font-size:12px;line-height:18px;display:flex;position:sticky;bottom:8px}.zYkyBa_newUpdatesJump{color:var(--dsw-alias-label-secondary);cursor:pointer;font:inherit;line-height:inherit;background:0 0;border:0;padding:0}.zYkyBa_newUpdatesJump:focus-visible{border-radius:var(--dsw-radius-sm,6px);outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}.zYkyBa_taskTitle{color:var(--dsw-alias-label-secondary);-webkit-line-clamp:1;line-clamp:1;overflow-wrap:anywhere;-webkit-box-orient:vertical;margin:2px 0 0;font-size:13px;line-height:20px;display:-webkit-box;overflow:hidden}.zYkyBa_closedBar{flex-direction:column;align-items:center;display:flex}.zYkyBa_closedNotice{color:var(--dsw-alias-label-tertiary);flex-wrap:wrap;justify-content:center;align-items:center;gap:12px;padding:10px 16px 14px;font-size:13px;line-height:20px;display:flex}@media (width<=600px){.zYkyBa_claimRow{align-items:start}.zYkyBa_activityRow{padding-inline:0}.zYkyBa_newUpdates{max-width:calc(100% - 16px)}}";
|
|
9966
10760
|
const tagId$2 = "@wowyuarm/dsh-agent-team/thread.module.css";
|
|
9967
10761
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$2) + "]") === null) {
|
|
9968
10762
|
const tag = document.createElement("style");
|
|
@@ -9972,30 +10766,30 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
9972
10766
|
document.head.appendChild(tag);
|
|
9973
10767
|
}
|
|
9974
10768
|
var thread_module_css_default = {
|
|
9975
|
-
"activityMark": "
|
|
9976
|
-
"activityRow": "
|
|
9977
|
-
"activityText": "
|
|
9978
|
-
"claimDirection": "
|
|
9979
|
-
"claimList": "
|
|
9980
|
-
"claimOwner": "
|
|
9981
|
-
"claimRow": "
|
|
9982
|
-
"claimRowDone": "
|
|
9983
|
-
"claimState": "
|
|
9984
|
-
"closedBar": "
|
|
9985
|
-
"closedNotice": "
|
|
9986
|
-
"daySeparator": "
|
|
9987
|
-
"emptyClaims": "
|
|
9988
|
-
"historySection": "
|
|
9989
|
-
"newUpdates": "
|
|
9990
|
-
"newUpdatesJump": "
|
|
9991
|
-
"publicSection": "
|
|
9992
|
-
"riskClass": "
|
|
9993
|
-
"riskRow": "
|
|
9994
|
-
"riskSection": "
|
|
9995
|
-
"taskTitle": "
|
|
9996
|
-
"titleLine": "
|
|
9997
|
-
"unreadBoundary": "
|
|
9998
|
-
"workSection": "
|
|
10769
|
+
"activityMark": "zYkyBa_activityMark",
|
|
10770
|
+
"activityRow": "zYkyBa_activityRow",
|
|
10771
|
+
"activityText": "zYkyBa_activityText",
|
|
10772
|
+
"claimDirection": "zYkyBa_claimDirection",
|
|
10773
|
+
"claimList": "zYkyBa_claimList",
|
|
10774
|
+
"claimOwner": "zYkyBa_claimOwner",
|
|
10775
|
+
"claimRow": "zYkyBa_claimRow",
|
|
10776
|
+
"claimRowDone": "zYkyBa_claimRowDone",
|
|
10777
|
+
"claimState": "zYkyBa_claimState",
|
|
10778
|
+
"closedBar": "zYkyBa_closedBar",
|
|
10779
|
+
"closedNotice": "zYkyBa_closedNotice",
|
|
10780
|
+
"daySeparator": "zYkyBa_daySeparator",
|
|
10781
|
+
"emptyClaims": "zYkyBa_emptyClaims",
|
|
10782
|
+
"historySection": "zYkyBa_historySection",
|
|
10783
|
+
"newUpdates": "zYkyBa_newUpdates",
|
|
10784
|
+
"newUpdatesJump": "zYkyBa_newUpdatesJump",
|
|
10785
|
+
"publicSection": "zYkyBa_publicSection",
|
|
10786
|
+
"riskClass": "zYkyBa_riskClass",
|
|
10787
|
+
"riskRow": "zYkyBa_riskRow",
|
|
10788
|
+
"riskSection": "zYkyBa_riskSection",
|
|
10789
|
+
"taskTitle": "zYkyBa_taskTitle",
|
|
10790
|
+
"titleLine": "zYkyBa_titleLine",
|
|
10791
|
+
"unreadBoundary": "zYkyBa_unreadBoundary",
|
|
10792
|
+
"workSection": "zYkyBa_workSection"
|
|
9999
10793
|
};
|
|
10000
10794
|
//#endregion
|
|
10001
10795
|
//#region src/client/TeamChannelPage.tsx
|
|
@@ -10587,8 +11381,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
10587
11381
|
});
|
|
10588
11382
|
}
|
|
10589
11383
|
//#endregion
|
|
10590
|
-
//#region \0dsh-css:/home/yu/projects/
|
|
10591
|
-
const css$1 = ".
|
|
11384
|
+
//#region \0dsh-css:/home/yu/projects/release-0.2.1/packages/client-agent-team/src/client/inbox.module.css.mjs
|
|
11385
|
+
const css$1 = "._1b1eOa_list{flex-direction:column;gap:2px;display:flex}._1b1eOa_headerMeta{font-variant-numeric:tabular-nums;flex-wrap:wrap;align-items:baseline;gap:0 10px;display:flex;overflow:hidden}._1b1eOa_headerUnread{color:var(--dsw-alias-label-primary);font-weight:600}._1b1eOa_row{border-radius:var(--dsw-radius-lg,8px);color:inherit;cursor:pointer;font:inherit;text-align:left;background:0 0;border:0;grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:1px 8px;width:100%;padding:8px;display:grid}._1b1eOa_row:hover,._1b1eOa_row:focus-visible{--team-mark-ring:var(--dsw-alias-interactive-bg-hover);background:var(--dsw-alias-interactive-bg-hover)}._1b1eOa_row:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-2px}._1b1eOa_rowActor{grid-area:1/1;display:flex}._1b1eOa_rowLine{grid-area:1/2;align-items:baseline;gap:2px 8px;min-width:0;display:flex;container-type:inline-size}._1b1eOa_rowCrumb{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-width:0;font-size:13px;line-height:20px;overflow:hidden}._1b1eOa_rowWorkspace{color:var(--dsw-alias-label-tertiary);font-size:12px}._1b1eOa_rowChannel{color:var(--dsw-alias-label-primary);font-weight:600}._1b1eOa_rowTask{border:1px solid var(--dsw-alias-border-l2);border-radius:var(--dsw-radius-sm,6px);color:var(--dsw-alias-label-secondary);white-space:nowrap;flex:none;margin-left:3px;padding:0 5px;font-size:11px;font-weight:600;line-height:15px}._1b1eOa_rowTime{color:var(--dsw-alias-label-tertiary);font-variant-numeric:tabular-nums;white-space:nowrap;flex:none;font-size:11px;line-height:18px}@container (width<=70px){._1b1eOa_rowTime{display:none}}._1b1eOa_rowPreview{color:var(--dsw-alias-label-secondary);text-overflow:ellipsis;white-space:nowrap;grid-area:2/2;min-width:0;font-size:13px;line-height:20px;overflow:hidden}._1b1eOa_section{flex-direction:column;display:flex}._1b1eOa_section+._1b1eOa_section{margin-top:20px}._1b1eOa_sectionTitle{color:var(--dsw-alias-label-tertiary);margin:0 0 4px;padding:0 8px 0 34px;font-size:12px;font-weight:600;line-height:18px}._1b1eOa_sectionCount{font-variant-numeric:tabular-nums;margin-left:6px}";
|
|
10592
11386
|
const tagId$1 = "@wowyuarm/dsh-agent-team/inbox.module.css";
|
|
10593
11387
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$1) + "]") === null) {
|
|
10594
11388
|
const tag = document.createElement("style");
|
|
@@ -10598,21 +11392,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
10598
11392
|
document.head.appendChild(tag);
|
|
10599
11393
|
}
|
|
10600
11394
|
var inbox_module_css_default = {
|
|
10601
|
-
"headerMeta": "
|
|
10602
|
-
"headerUnread": "
|
|
10603
|
-
"list": "
|
|
10604
|
-
"row": "
|
|
10605
|
-
"rowActor": "
|
|
10606
|
-
"rowChannel": "
|
|
10607
|
-
"rowCrumb": "
|
|
10608
|
-
"rowLine": "
|
|
10609
|
-
"rowPreview": "
|
|
10610
|
-
"rowTask": "
|
|
10611
|
-
"rowTime": "
|
|
10612
|
-
"rowWorkspace": "
|
|
10613
|
-
"section": "
|
|
10614
|
-
"sectionCount": "
|
|
10615
|
-
"sectionTitle": "
|
|
11395
|
+
"headerMeta": "_1b1eOa_headerMeta",
|
|
11396
|
+
"headerUnread": "_1b1eOa_headerUnread",
|
|
11397
|
+
"list": "_1b1eOa_list",
|
|
11398
|
+
"row": "_1b1eOa_row",
|
|
11399
|
+
"rowActor": "_1b1eOa_rowActor",
|
|
11400
|
+
"rowChannel": "_1b1eOa_rowChannel",
|
|
11401
|
+
"rowCrumb": "_1b1eOa_rowCrumb",
|
|
11402
|
+
"rowLine": "_1b1eOa_rowLine",
|
|
11403
|
+
"rowPreview": "_1b1eOa_rowPreview",
|
|
11404
|
+
"rowTask": "_1b1eOa_rowTask",
|
|
11405
|
+
"rowTime": "_1b1eOa_rowTime",
|
|
11406
|
+
"rowWorkspace": "_1b1eOa_rowWorkspace",
|
|
11407
|
+
"section": "_1b1eOa_section",
|
|
11408
|
+
"sectionCount": "_1b1eOa_sectionCount",
|
|
11409
|
+
"sectionTitle": "_1b1eOa_sectionTitle"
|
|
10616
11410
|
};
|
|
10617
11411
|
//#endregion
|
|
10618
11412
|
//#region src/client/TeamInboxPage.tsx
|
|
@@ -12545,8 +13339,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
12545
13339
|
};
|
|
12546
13340
|
}
|
|
12547
13341
|
//#endregion
|
|
12548
|
-
//#region \0dsh-css:/home/yu/projects/
|
|
12549
|
-
const css = ".
|
|
13342
|
+
//#region \0dsh-css:/home/yu/projects/release-0.2.1/packages/client-agent-team/src/client/create.module.css.mjs
|
|
13343
|
+
const css = ".qHUGnG_form{gap:16px;display:grid}.qHUGnG_modeSwitch{margin-bottom:16px}.qHUGnG_field{color:var(--dsw-alias-label-secondary);gap:6px;font-size:12px;line-height:18px;display:grid}.qHUGnG_input{box-sizing:border-box;width:100%}.qHUGnG_menuCap{max-height:min(320px,56vh)}.qHUGnG_selectTrigger{background:var(--dsw-alias-bg-layer-1);border:1px solid var(--dsw-alias-border-l2);border-radius:var(--dsw-radius-sm,8px);box-sizing:border-box;color:var(--dsw-alias-label-primary);cursor:pointer;text-align:left;justify-content:space-between;align-items:center;gap:8px;min-height:32px;padding:4px 10px;font-size:14px;line-height:22px;display:flex}.qHUGnG_selectTrigger:disabled{cursor:default;opacity:.6}.qHUGnG_selectTrigger:focus-visible{border-color:var(--dsw-alias-brand-primary);outline:none}.qHUGnG_selectValue{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.qHUGnG_chevron{color:var(--dsw-alias-label-tertiary);flex:none;transition:transform .12s;display:inline-flex}.qHUGnG_chevronOpen{transform:rotate(180deg)}.qHUGnG_memberPicker{border:0;gap:4px;max-height:220px;margin:0;padding:0;display:grid;overflow-y:auto}.qHUGnG_memberPicker legend{color:var(--dsw-alias-label-secondary);padding:0 0 6px;font-size:12px;line-height:18px}.qHUGnG_memberOption{border-radius:var(--dsw-radius-sm,6px);color:var(--dsw-alias-label-primary);grid-template-columns:auto 14px minmax(0,1fr);align-items:center;gap:0 7px;min-height:32px;padding:3px 6px;display:grid}.qHUGnG_memberOption:hover{background:var(--dsw-alias-interactive-bg-hover)}.qHUGnG_memberOption input{margin:0}.qHUGnG_memberOption small{color:var(--dsw-alias-label-tertiary);grid-column:3;font-size:10px;line-height:14px}.qHUGnG_unavailableDot{background:var(--dsw-alias-label-tertiary);corner-shape:round;border-radius:50%;justify-self:center;width:7px;height:7px;display:inline-block}.qHUGnG_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px;line-height:18px}.qHUGnG_notice{color:var(--dsw-alias-label-secondary);margin:0;font-size:12px;line-height:18px}.qHUGnG_state{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:18px}.qHUGnG_roster{gap:2px;display:grid}.qHUGnG_failure{justify-items:start;gap:8px;display:grid}.qHUGnG_dialogContent{max-height:min(70vh,560px);overflow-y:auto}@media (width<=600px){.qHUGnG_dialogContent{max-height:calc(100vh - 180px)}.qHUGnG_memberPicker{max-height:180px}}";
|
|
12550
13344
|
const tagId = "@wowyuarm/dsh-agent-team/create.module.css";
|
|
12551
13345
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
|
|
12552
13346
|
const tag = document.createElement("style");
|
|
@@ -12556,24 +13350,24 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
12556
13350
|
document.head.appendChild(tag);
|
|
12557
13351
|
}
|
|
12558
13352
|
var create_module_css_default = {
|
|
12559
|
-
"chevron": "
|
|
12560
|
-
"chevronOpen": "
|
|
12561
|
-
"dialogContent": "
|
|
12562
|
-
"error": "
|
|
12563
|
-
"failure": "
|
|
12564
|
-
"field": "
|
|
12565
|
-
"form": "
|
|
12566
|
-
"input": "
|
|
12567
|
-
"memberOption": "
|
|
12568
|
-
"memberPicker": "
|
|
12569
|
-
"menuCap": "
|
|
12570
|
-
"modeSwitch": "
|
|
12571
|
-
"notice": "
|
|
12572
|
-
"roster": "
|
|
12573
|
-
"selectTrigger": "
|
|
12574
|
-
"selectValue": "
|
|
12575
|
-
"state": "
|
|
12576
|
-
"unavailableDot": "
|
|
13353
|
+
"chevron": "qHUGnG_chevron",
|
|
13354
|
+
"chevronOpen": "qHUGnG_chevronOpen",
|
|
13355
|
+
"dialogContent": "qHUGnG_dialogContent",
|
|
13356
|
+
"error": "qHUGnG_error",
|
|
13357
|
+
"failure": "qHUGnG_failure",
|
|
13358
|
+
"field": "qHUGnG_field",
|
|
13359
|
+
"form": "qHUGnG_form",
|
|
13360
|
+
"input": "qHUGnG_input",
|
|
13361
|
+
"memberOption": "qHUGnG_memberOption",
|
|
13362
|
+
"memberPicker": "qHUGnG_memberPicker",
|
|
13363
|
+
"menuCap": "qHUGnG_menuCap",
|
|
13364
|
+
"modeSwitch": "qHUGnG_modeSwitch",
|
|
13365
|
+
"notice": "qHUGnG_notice",
|
|
13366
|
+
"roster": "qHUGnG_roster",
|
|
13367
|
+
"selectTrigger": "qHUGnG_selectTrigger",
|
|
13368
|
+
"selectValue": "qHUGnG_selectValue",
|
|
13369
|
+
"state": "qHUGnG_state",
|
|
13370
|
+
"unavailableDot": "qHUGnG_unavailableDot"
|
|
12577
13371
|
};
|
|
12578
13372
|
//#endregion
|
|
12579
13373
|
//#region src/client/TeamMemberEditor.tsx
|
|
@@ -13367,11 +14161,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
13367
14161
|
return;
|
|
13368
14162
|
}
|
|
13369
14163
|
if (result.value.status.availability === "unavailable") {
|
|
13370
|
-
const diagnostic = result.value.status.diagnostic;
|
|
13371
|
-
if (diagnostic?.class === "session-refused" && diagnostic.remediable === false) {
|
|
13372
|
-
setRowAlert(t("restartRefusedNoRestart", { detail: diagnosticText(result.value.status) }));
|
|
13373
|
-
return;
|
|
13374
|
-
}
|
|
13375
14164
|
setRowAlert(t("restartStillUnavailable", { diagnostic: diagnosticText(result.value.status) || t("statusUnavailable") }));
|
|
13376
14165
|
return;
|
|
13377
14166
|
}
|
|
@@ -14359,13 +15148,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14359
15148
|
resumeAgent: "恢复",
|
|
14360
15149
|
restartAgent: "重启",
|
|
14361
15150
|
restartStillUnavailable: "重启已执行,成员仍不可用:{diagnostic}",
|
|
14362
|
-
restartRefusedNoRestart: "会话日志被确定拒绝,修复无可用项,重启无法解决:{detail}",
|
|
14363
15151
|
restartFailed: "重启执行失败:{message}",
|
|
14364
15152
|
archiveAgent: "归档",
|
|
14365
15153
|
archiveAgentTitle: "归档 Agent:{name}",
|
|
14366
15154
|
archiveAgentNotice: "将把 {name} 从所有列表收起:会话与私有记忆保留在磁盘上、活跃 Claim 会释放,但暂无恢复入口。",
|
|
14367
15155
|
archiveAgentConfirm: "归档",
|
|
14368
|
-
archiveAgentFailed: "归档失败:{message}",
|
|
14369
15156
|
archiveChannel: "归档频道",
|
|
14370
15157
|
archiveChannelTitle: "归档频道:{name}",
|
|
14371
15158
|
archiveChannelNotice: "将把 {name} 及其全部讨论从所有列表收起:数据保留、所有成员在此频道的活跃 Claim 会释放,但暂无恢复入口。",
|
|
@@ -14406,9 +15193,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14406
15193
|
timelineLabel: "消息时间线",
|
|
14407
15194
|
taskClosedNotice: "任务已关闭,重新打开后可继续讨论",
|
|
14408
15195
|
human: "Human",
|
|
14409
|
-
|
|
14410
|
-
|
|
14411
|
-
|
|
15196
|
+
teamSettingsNav: "团队",
|
|
15197
|
+
teamSettingsTitle: "团队",
|
|
15198
|
+
teamSettingsIntro: "你在 Team 里的身份,以及 jev 要用的端点。",
|
|
14412
15199
|
humanSettingsName: "名字",
|
|
14413
15200
|
humanSettingsNameHint: "Agents 用这个名字 @ 到你;改名只对之后的消息生效。",
|
|
14414
15201
|
humanSettingsNameEmpty: "名字不能为空。",
|
|
@@ -14428,13 +15215,44 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14428
15215
|
humanSettingsUnavailable: "资料读不出来:{message}",
|
|
14429
15216
|
humanSettingsVersion: "版本 {version}",
|
|
14430
15217
|
humanSettingsUpdateAvailable: "有新版本 {version},去查看发布说明",
|
|
15218
|
+
teamJudgeGroupTitle: "jev",
|
|
15219
|
+
teamJudgeGroupHint: "判断隔了很久之后这一步是否仍是同一件事。调用发往 apiBase 下的 /systemone,换端点通常要同时换 model;留空沿用部署默认值。",
|
|
15220
|
+
teamJudgeReady: "jev 已就绪",
|
|
15221
|
+
teamJudgeNoKey: "未配置 key,填入即启用",
|
|
15222
|
+
teamJudgeUnavailable: "jev 不可用:检查 apiBase 与 model",
|
|
15223
|
+
teamJudgeApiBase: "apiBase",
|
|
15224
|
+
teamJudgeModel: "model",
|
|
15225
|
+
teamJudgeKey: "key",
|
|
15226
|
+
teamJudgeKeyHint: "只写不回显:留空保存不会改动已存的 key。",
|
|
15227
|
+
teamJudgeKeySet: "已配置",
|
|
15228
|
+
teamJudgeKeyUnset: "未配置",
|
|
15229
|
+
teamJudgeClearKey: "清除 key",
|
|
15230
|
+
teamJudgeClearHint: "清除后 jev 立即卸载,不再判断。",
|
|
15231
|
+
teamJudgeClearBlocked: "先保存,再清除。",
|
|
15232
|
+
teamJudgeClearFailed: "没能清除,请重试。",
|
|
15233
|
+
teamSettingsOverridden: "已覆盖",
|
|
15234
|
+
teamSettingsReset: "重置",
|
|
15235
|
+
teamSettingsInvalid: "这个值不被接受。",
|
|
15236
|
+
teamSettingsUnavailable: "这台部署没有提供 Team 的设置文档。",
|
|
15237
|
+
teamSettingsReadOnly: "当前设置是只读的。",
|
|
15238
|
+
teamSettingsSaveFailed: "保存没有被接受,请检查后重试。",
|
|
15239
|
+
teamSettingsSave: "保存",
|
|
15240
|
+
teamSettingsSaving: "保存中…",
|
|
15241
|
+
environmentOkTitle: "在支持范围内",
|
|
15242
|
+
environmentOkDetail: "正在运行的 DSH {version} 在我们声明的支持范围内。",
|
|
15243
|
+
environmentOutOfRangeTitle: "不在支持范围内",
|
|
15244
|
+
environmentOutOfRangeDetail: "正在运行的 DSH {version} 不在我们声明的支持范围内——这套组合未经我们认证,可能出问题。",
|
|
15245
|
+
environmentRange: "支持范围:{lower} 起、{upper} 之前。",
|
|
15246
|
+
environmentTested: "我们实测认证的组合:Agent Team {bundle} × DSH {dsh}。",
|
|
15247
|
+
environmentUndeterminedTitle: "无法判定运行环境",
|
|
15248
|
+
environmentUndeterminedDetail: "读不到正在运行的 DSH 版本,或无法确定我们的支持范围,因此不做判断。",
|
|
15249
|
+
environmentReleaseNotes: "查看发布说明",
|
|
14431
15250
|
taskStatusTodo: "待处理",
|
|
14432
15251
|
taskStatusInProgress: "进行中",
|
|
14433
15252
|
taskStatusInReview: "待验收",
|
|
14434
15253
|
taskStatusDone: "已完成",
|
|
14435
15254
|
taskStatusClosed: "已关闭",
|
|
14436
15255
|
taskLabel: "Task #{number}",
|
|
14437
|
-
taskPending: "Task …",
|
|
14438
15256
|
openTask: "打开 Task #{number}",
|
|
14439
15257
|
openThread: "打开讨论",
|
|
14440
15258
|
openTaskUnread: "打开 Task #{number}({count} 条新动态)",
|
|
@@ -14501,7 +15319,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14501
15319
|
activityReopened: "{actor} 重新打开了此 Task",
|
|
14502
15320
|
mentionConfirmation: "提及未关注成员需要确认,再次发送以继续",
|
|
14503
15321
|
memberNotFollowing: "这些成员还未关注此 Thread:{ids}",
|
|
14504
|
-
sendFailedKind: "无法发送消息({kind})",
|
|
14505
15322
|
unreadRequired: "请先读取 {count} 条未读更新,再继续修改。",
|
|
14506
15323
|
staleRevision: "Thread 已发生变化,请按最新状态重试。"
|
|
14507
15324
|
};
|
|
@@ -14571,13 +15388,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14571
15388
|
resumeAgent: "Resume",
|
|
14572
15389
|
restartAgent: "Restart",
|
|
14573
15390
|
restartStillUnavailable: "Restart ran, but the Member is still unavailable: {diagnostic}",
|
|
14574
|
-
restartRefusedNoRestart: "The session log is deterministically refused with nothing repairable; restarting cannot fix it: {detail}",
|
|
14575
15391
|
restartFailed: "Restart failed: {message}",
|
|
14576
15392
|
archiveAgent: "Archive",
|
|
14577
15393
|
archiveAgentTitle: "Archive Agent: {name}",
|
|
14578
15394
|
archiveAgentNotice: "This hides {name} from every list: the session log and private memory stay on disk and active Claims release, but there is no restore entry point yet.",
|
|
14579
15395
|
archiveAgentConfirm: "Archive",
|
|
14580
|
-
archiveAgentFailed: "Failed to archive: {message}",
|
|
14581
15396
|
archiveChannel: "Archive Channel",
|
|
14582
15397
|
archiveChannelTitle: "Archive Channel: {name}",
|
|
14583
15398
|
archiveChannelNotice: "This hides {name} and all of its discussions from every list: the data stays, every Member's active Claims in this Channel release, but there is no restore entry point yet.",
|
|
@@ -14618,9 +15433,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14618
15433
|
timelineLabel: "Message timeline",
|
|
14619
15434
|
taskClosedNotice: "This task is closed; reopen it to continue the discussion",
|
|
14620
15435
|
human: "Human",
|
|
14621
|
-
|
|
14622
|
-
|
|
14623
|
-
|
|
15436
|
+
teamSettingsNav: "Team",
|
|
15437
|
+
teamSettingsTitle: "Team",
|
|
15438
|
+
teamSettingsIntro: "Your identity in the Team, and the endpoint jev calls.",
|
|
14624
15439
|
humanSettingsName: "Name",
|
|
14625
15440
|
humanSettingsNameHint: "Agents @ you by this name; a rename applies to later messages only.",
|
|
14626
15441
|
humanSettingsNameEmpty: "A name is required.",
|
|
@@ -14640,13 +15455,44 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14640
15455
|
humanSettingsUnavailable: "The profile could not be read: {message}",
|
|
14641
15456
|
humanSettingsVersion: "Version {version}",
|
|
14642
15457
|
humanSettingsUpdateAvailable: "New version {version} available — see the release notes",
|
|
15458
|
+
teamJudgeGroupTitle: "jev",
|
|
15459
|
+
teamJudgeGroupHint: "Decides whether a step after a long absence still belongs to the same piece of work. Calls go to /systemone under the apiBase, and changing the endpoint usually means changing the model too; empty inherits the deployment default.",
|
|
15460
|
+
teamJudgeReady: "jev is ready",
|
|
15461
|
+
teamJudgeNoKey: "No key yet — enter one to enable it",
|
|
15462
|
+
teamJudgeUnavailable: "jev is unavailable: check the apiBase and model",
|
|
15463
|
+
teamJudgeApiBase: "apiBase",
|
|
15464
|
+
teamJudgeModel: "model",
|
|
15465
|
+
teamJudgeKey: "key",
|
|
15466
|
+
teamJudgeKeyHint: "Write-only: an empty field saves nothing and leaves a stored key in place.",
|
|
15467
|
+
teamJudgeKeySet: "Configured",
|
|
15468
|
+
teamJudgeKeyUnset: "Not configured",
|
|
15469
|
+
teamJudgeClearKey: "Clear key",
|
|
15470
|
+
teamJudgeClearHint: "Clearing unmounts jev immediately; nothing is judged after that.",
|
|
15471
|
+
teamJudgeClearBlocked: "Save first, then clear.",
|
|
15472
|
+
teamJudgeClearFailed: "The key could not be cleared; try again.",
|
|
15473
|
+
teamSettingsOverridden: "Overridden",
|
|
15474
|
+
teamSettingsReset: "Reset",
|
|
15475
|
+
teamSettingsInvalid: "This value is not accepted.",
|
|
15476
|
+
teamSettingsUnavailable: "This deployment does not serve the Team settings document.",
|
|
15477
|
+
teamSettingsReadOnly: "Settings are read-only right now.",
|
|
15478
|
+
teamSettingsSaveFailed: "The save was not accepted; check the values and try again.",
|
|
15479
|
+
teamSettingsSave: "Save",
|
|
15480
|
+
teamSettingsSaving: "Saving…",
|
|
15481
|
+
environmentOkTitle: "Within the supported range",
|
|
15482
|
+
environmentOkDetail: "The running DSH {version} is within the range we declare support for.",
|
|
15483
|
+
environmentOutOfRangeTitle: "Outside the supported range",
|
|
15484
|
+
environmentOutOfRangeDetail: "The running DSH {version} is outside the range we declare support for — we have not certified this combination and it may misbehave.",
|
|
15485
|
+
environmentRange: "Support range: from {lower} up to, but not including, {upper}.",
|
|
15486
|
+
environmentTested: "Certified combination: Agent Team {bundle} × DSH {dsh}.",
|
|
15487
|
+
environmentUndeterminedTitle: "Environment cannot be determined",
|
|
15488
|
+
environmentUndeterminedDetail: "The running DSH version could not be read, or our support range could not be established, so no judgement is made.",
|
|
15489
|
+
environmentReleaseNotes: "See the release notes",
|
|
14643
15490
|
taskStatusTodo: "To do",
|
|
14644
15491
|
taskStatusInProgress: "In progress",
|
|
14645
15492
|
taskStatusInReview: "In review",
|
|
14646
15493
|
taskStatusDone: "Done",
|
|
14647
15494
|
taskStatusClosed: "Closed",
|
|
14648
15495
|
taskLabel: "Task #{number}",
|
|
14649
|
-
taskPending: "Task …",
|
|
14650
15496
|
openTask: "Open Task #{number}",
|
|
14651
15497
|
openThread: "Open thread",
|
|
14652
15498
|
openTaskUnread: "Open Task #{number} ({count} new updates)",
|
|
@@ -14713,16 +15559,23 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14713
15559
|
activityReopened: "{actor} reopened this Task",
|
|
14714
15560
|
mentionConfirmation: "Mentioning an unfollowed member requires confirmation; send again to continue",
|
|
14715
15561
|
memberNotFollowing: "These Members do not follow this Thread yet: {ids}",
|
|
14716
|
-
sendFailedKind: "Unable to send message ({kind})",
|
|
14717
15562
|
unreadRequired: "Read {count} unread update(s) before changing this Thread.",
|
|
14718
15563
|
staleRevision: "This Thread changed; retry using the current state."
|
|
14719
15564
|
};
|
|
14720
15565
|
//#endregion
|
|
14721
15566
|
//#region src/client/index.ts
|
|
14722
15567
|
const NS = "team";
|
|
15568
|
+
/**
|
|
15569
|
+
* The Team Host row's settings namespace. Spelled here rather than imported,
|
|
15570
|
+
* because a client package must not depend on a Host package — the profile, the
|
|
15571
|
+
* judge's endpoint, and the gate's thresholds all live in this one row section,
|
|
15572
|
+
* and each settings page renders only the group it owns.
|
|
15573
|
+
*/
|
|
15574
|
+
const TEAM_SETTINGS_NS = "wowyuarm-agent-team-host";
|
|
14723
15575
|
const inject = [
|
|
14724
15576
|
"slots",
|
|
14725
15577
|
"workspaces",
|
|
15578
|
+
"layout",
|
|
14726
15579
|
"locale",
|
|
14727
15580
|
"remote",
|
|
14728
15581
|
"remote.session",
|
|
@@ -14850,10 +15703,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14850
15703
|
return `data:${result.value.mediaType};base64,${result.value.bytesBase64}`;
|
|
14851
15704
|
}
|
|
14852
15705
|
});
|
|
15706
|
+
const environment = new TeamEnvironmentCheck({ loadEnvironment: () => ctx.remote.agentTeam.environment({}) });
|
|
15707
|
+
const contextJudge = new TeamContextJudgeCheck({ loadContextJudge: () => ctx.remote.agentTeam.contextJudge({}) });
|
|
15708
|
+
const judgeForm = new TeamJudgeFormSeat();
|
|
14853
15709
|
ctx.effect(() => () => {
|
|
14854
15710
|
navigation.dispose();
|
|
14855
15711
|
drafts.dispose();
|
|
14856
15712
|
humanIdentity.dispose();
|
|
15713
|
+
environment.dispose();
|
|
15714
|
+
contextJudge.dispose();
|
|
15715
|
+
judgeForm.dispose();
|
|
14857
15716
|
disposeNavigation();
|
|
14858
15717
|
disposeDrafts();
|
|
14859
15718
|
}, "agent-team: navigation service");
|
|
@@ -14874,6 +15733,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14874
15733
|
restore();
|
|
14875
15734
|
};
|
|
14876
15735
|
}, "agent-team: member session restore");
|
|
15736
|
+
ctx.effect(() => {
|
|
15737
|
+
const releaseMainPanel = () => {
|
|
15738
|
+
if (navigation.getSnapshot().mode !== "team") return;
|
|
15739
|
+
if (ctx.layout.panelInfo.getSnapshot().activePanelId === null) return;
|
|
15740
|
+
ctx.layout.selectPanel(null);
|
|
15741
|
+
};
|
|
15742
|
+
const unsubscribe = navigation.subscribe(releaseMainPanel);
|
|
15743
|
+
releaseMainPanel();
|
|
15744
|
+
return unsubscribe;
|
|
15745
|
+
}, "agent-team: main panel ownership");
|
|
14877
15746
|
const changes = new TeamChangeStream(ctx.remote);
|
|
14878
15747
|
ctx.effect(() => () => changes.dispose(), "agent-team: change subscriptions");
|
|
14879
15748
|
ctx.on("connection/reset", () => {
|
|
@@ -14910,14 +15779,26 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14910
15779
|
registerModeShadow(ctx, navigation, changes, reads, drafts, humanIdentity, "sidebar.workspaces", TeamWorkspaceBrowser);
|
|
14911
15780
|
registerModeShadow(ctx, navigation, changes, reads, drafts, humanIdentity, "main", TeamConversation, void 0, "conversation");
|
|
14912
15781
|
registerModeShadow(ctx, navigation, changes, reads, drafts, humanIdentity, "sidebar.settings", TeamMembersAction, () => ({ loadMemberGroups }));
|
|
15782
|
+
ctx.inject(["configForms"], (scope) => {
|
|
15783
|
+
const form = new TeamJudgeForm(scope.configForms.get(TEAM_SETTINGS_NS), contextJudge);
|
|
15784
|
+
judgeForm.hold(form);
|
|
15785
|
+
scope.effect(() => () => {
|
|
15786
|
+
judgeForm.release(form);
|
|
15787
|
+
form.dispose();
|
|
15788
|
+
}, "agent-team: judge settings form");
|
|
15789
|
+
});
|
|
14913
15790
|
ctx.slots.inject("settings.section", () => ctx.slots.register({
|
|
14914
15791
|
name: "settings.section",
|
|
14915
|
-
id: "team-
|
|
15792
|
+
id: "team-settings",
|
|
14916
15793
|
order: 5,
|
|
14917
|
-
label: () => ctx.locale.bind(NS)("
|
|
15794
|
+
label: () => ctx.locale.bind(NS)("teamSettingsNav"),
|
|
14918
15795
|
locale: NS,
|
|
14919
15796
|
inject: () => ({
|
|
14920
15797
|
identity: humanIdentity,
|
|
15798
|
+
environment,
|
|
15799
|
+
judge: contextJudge,
|
|
15800
|
+
judgeForm,
|
|
15801
|
+
keyConfigured: () => ctx.get("configForms")?.describe().getSnapshot().view?.namespaces.find((row) => row.ns === TEAM_SETTINGS_NS)?.secrets.some((secret) => secret.path.join(".") === "jev.apiKey" && secret.set) ?? false,
|
|
14921
15802
|
saveName: async (name) => {
|
|
14922
15803
|
const saved = await ctx.remote.agentTeam.setHumanProfile({ name });
|
|
14923
15804
|
if (!saved.ok) return saved.error.message;
|
|
@@ -14943,7 +15824,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14943
15824
|
await humanIdentity.refresh();
|
|
14944
15825
|
}
|
|
14945
15826
|
})
|
|
14946
|
-
},
|
|
15827
|
+
}, TeamSettingsSection));
|
|
14947
15828
|
}
|
|
14948
15829
|
async function apply(ctx) {
|
|
14949
15830
|
const disposeRemote = await ctx.remote.$mount(TYPERT_REMOTE);
|