@dsh-teamwork/dsh-teamwork 0.8.3 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,6 +10,7 @@ export type TaskState = z.infer<typeof taskSchema>;
10
10
  declare module '@deepseek-ai/dsh-session-projection/types' {
11
11
  interface SessionProjectionMap {
12
12
  teamworkTask: TaskState;
13
+ teamworkStep: StepState;
13
14
  }
14
15
  }
15
16
  export declare const taskProjection: {
@@ -58,6 +59,66 @@ export declare const taskProjection: {
58
59
  };
59
60
  stateVersion: number;
60
61
  };
62
+ declare const stepSchema: z.ZodObject<{
63
+ turn: z.ZodNumber;
64
+ count: z.ZodNumber;
65
+ tool: z.ZodString;
66
+ target: z.ZodString;
67
+ }, z.core.$strip>;
68
+ export type StepState = z.infer<typeof stepSchema>;
69
+ /** What a tool call works on, as the phone's session view names it; '' when its arguments name nothing. */
70
+ export declare function stepTarget(args: string): string;
71
+ /**
72
+ * The running turn's progress for the phone's session list: how many tool calls
73
+ * it has made and what the latest works on. A new turn starts at zero and an
74
+ * ended one clears, so an idle session says nothing.
75
+ */
76
+ export declare const stepProjection: {
77
+ key: "teamworkStep";
78
+ stateSchema: z.ZodObject<{
79
+ turn: z.ZodNumber;
80
+ count: z.ZodNumber;
81
+ tool: z.ZodString;
82
+ target: z.ZodString;
83
+ }, z.core.$strip>;
84
+ init: () => {
85
+ turn: number;
86
+ count: number;
87
+ tool: string;
88
+ target: string;
89
+ };
90
+ apply: (state: NoInfer<{
91
+ turn: number;
92
+ count: number;
93
+ tool: string;
94
+ target: string;
95
+ }>, event: import("@deepseek-ai/dsh-session").SessionEvent) => {
96
+ turn: number;
97
+ count: number;
98
+ tool: string;
99
+ target: string;
100
+ };
101
+ wire: {
102
+ viewSchema: z.ZodObject<{
103
+ turn: z.ZodNumber;
104
+ count: z.ZodNumber;
105
+ tool: z.ZodString;
106
+ target: z.ZodString;
107
+ }, z.core.$strip>;
108
+ view: (state: NoInfer<{
109
+ turn: number;
110
+ count: number;
111
+ tool: string;
112
+ target: string;
113
+ }>) => {
114
+ turn: number;
115
+ count: number;
116
+ tool: string;
117
+ target: string;
118
+ };
119
+ };
120
+ stateVersion: number;
121
+ };
61
122
  export declare function outcomeText(outcome: string): string;
62
123
  export declare function recoveryHint(code: string | null, outcome: string): "登录或凭据无效:团队模型请 /teamwork login;本地模型请检查本地凭据。" | "模型限流:稍后再显式继续,不自动重复任务。" | "工具条件不满足:运行 /teamwork tools 和 /teamwork plugins 检查。" | "模型连接或服务异常:检查连接后显式继续;原始任务可能已经执行部分操作。" | "任务已取消;历史与已完成的文件修改保留,继续前请检查现有结果。" | "任务未完成:查看 DSH 会话错误,检查权限、工具与已有修改后再继续。" | "达到输出上限:检查结果后使用 /teamwork continue <后续指令>。" | "继续时发送新的后续指令;不会回滚文件或清空历史。";
63
124
  export declare function assertIdle(agent: Pick<Agent, 'status' | 'inbox'>): void;
@@ -1 +1 @@
1
- {"version":3,"file":"task-session.d.ts","sourceRoot":"","sources":["../../src/task-session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAEpD,QAAA,MAAM,UAAU;;;;;iBAAmG,CAAC;AACpH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AACnD,OAAO,QAAQ,2CAA2C,CAAC;IAAE,UAAU,oBAAoB;QAAG,YAAY,EAAE,SAAS,CAAA;KAAE;CAAE;AACzH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAW+B,CAAC;AAC3D,wBAAgB,WAAW,CAAC,OAAO,EAAC,MAAM,UAAiN;AAC3P,wBAAgB,YAAY,CAAC,IAAI,EAAC,MAAM,GAAC,IAAI,EAAE,OAAO,EAAC,MAAM,gUAS5D;AACD,wBAAgB,UAAU,CAAC,KAAK,EAAC,IAAI,CAAC,KAAK,EAAC,QAAQ,GAAC,OAAO,CAAC,QAG5D;AACD,qBAAa,WAAW;IAIV,OAAO,CAAC,OAAO;IAAgC,OAAO,CAAC,WAAW;IAAuB,OAAO,CAAC,GAAG;IAHhH,OAAO,CAAC,OAAO,CAA0D;IACzE,OAAO,CAAC,IAAI,CAAsB;IAClC,OAAO,CAAC,aAAa,CAA6B;gBAC9B,OAAO,EAAE,CAAC,KAAK,EAAC,KAAK,KAAG,OAAO,CAAC,IAAI,CAAC,EAAU,WAAW,EAAC,CAAC,KAAK,EAAC,KAAK,KAAG,MAAM,EAAS,GAAG,GAAC,MAAI,MAAe;IACpI,MAAM,CAAC,KAAK,EAAC,KAAK;IAKlB,MAAM,CAAC,KAAK,EAAC,KAAK,EAAC,OAAO,EAAC,MAAM;IAK3B,MAAM,CAAC,KAAK,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,UAAM;CAiBjD;AACD,eAAO,MAAM,gBAAgB,icAA6E,CAAC"}
1
+ {"version":3,"file":"task-session.d.ts","sourceRoot":"","sources":["../../src/task-session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAEpD,QAAA,MAAM,UAAU;;;;;iBAAmG,CAAC;AACpH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AACnD,OAAO,QAAQ,2CAA2C,CAAC;IAAE,UAAU,oBAAoB;QAAG,YAAY,EAAE,SAAS,CAAC;QAAC,YAAY,EAAE,SAAS,CAAA;KAAE;CAAE;AAClJ,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAW+B,CAAC;AAC3D,QAAA,MAAM,UAAU;;;;;iBAAiF,CAAC;AAClG,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAGnD,2GAA2G;AAC3G,wBAAgB,UAAU,CAAC,IAAI,EAAC,MAAM,UASrC;AACD;;;;GAIG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQ+B,CAAC;AAC3D,wBAAgB,WAAW,CAAC,OAAO,EAAC,MAAM,UAAiN;AAC3P,wBAAgB,YAAY,CAAC,IAAI,EAAC,MAAM,GAAC,IAAI,EAAE,OAAO,EAAC,MAAM,gUAS5D;AACD,wBAAgB,UAAU,CAAC,KAAK,EAAC,IAAI,CAAC,KAAK,EAAC,QAAQ,GAAC,OAAO,CAAC,QAG5D;AACD,qBAAa,WAAW;IAIV,OAAO,CAAC,OAAO;IAAgC,OAAO,CAAC,WAAW;IAAuB,OAAO,CAAC,GAAG;IAHhH,OAAO,CAAC,OAAO,CAA0D;IACzE,OAAO,CAAC,IAAI,CAAsB;IAClC,OAAO,CAAC,aAAa,CAA6B;gBAC9B,OAAO,EAAE,CAAC,KAAK,EAAC,KAAK,KAAG,OAAO,CAAC,IAAI,CAAC,EAAU,WAAW,EAAC,CAAC,KAAK,EAAC,KAAK,KAAG,MAAM,EAAS,GAAG,GAAC,MAAI,MAAe;IACpI,MAAM,CAAC,KAAK,EAAC,KAAK;IAKlB,MAAM,CAAC,KAAK,EAAC,KAAK,EAAC,OAAO,EAAC,MAAM;IAK3B,MAAM,CAAC,KAAK,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,UAAM;CAiBjD;AACD,eAAO,MAAM,gBAAgB,icAA6E,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Follows a token file written by the host's supervisor, as on a cloud computer: reads it now, and again whenever
3
+ * it changes, including when it is replaced. `onToken` hears the trimmed contents only when they change; a missing
4
+ * or empty file is no token. Polling (`watchFile`) is used because a supervisor replaces the file atomically,
5
+ * which a directory watch can miss.
6
+ */
7
+ export declare function watchTokenFile(path: string, onToken: (token: string | undefined) => Promise<void>, onError: (error: Error) => void, intervalMs?: number): {
8
+ ready: Promise<void>;
9
+ stop: () => void;
10
+ };
11
+ //# sourceMappingURL=token-file.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"token-file.d.ts","sourceRoot":"","sources":["../../src/token-file.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,KAAK,OAAO,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,EAAE,UAAU,SAAO;;;EAiBrJ"}
package/lib/web/client.js CHANGED
@@ -37,9 +37,6 @@ function currentSessionTracker(list) {
37
37
  };
38
38
  }
39
39
 
40
- // src/web/TeamworkPanel.tsx
41
- var import_react4 = require("react");
42
-
43
40
  // ui/src/root.tsx
44
41
  var import_react = require("react");
45
42
 
@@ -49,22 +46,25 @@ var css = String.raw`
49
46
  .twui {
50
47
  --twui-font: var(--dsw-font-family, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif);
51
48
  --twui-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
52
- --twui-fg: var(--dsw-alias-label-primary, #1b2033);
53
- --twui-fg-muted: var(--dsw-alias-label-secondary, #565c73);
54
- --twui-fg-subtle: var(--dsw-alias-label-tertiary, #868ba0);
55
- --twui-bg: var(--dsw-alias-bg-base, #fbfaf8);
49
+ --twui-fg: var(--dsw-alias-label-primary, #0a0a0b);
50
+ --twui-fg-muted: var(--dsw-alias-label-secondary, #5c5c66);
51
+ --twui-fg-subtle: var(--dsw-alias-label-tertiary, #8e8e98);
52
+ --twui-bg: var(--dsw-alias-bg-base, #ffffff);
56
53
  --twui-surface: var(--dsw-alias-bg-layer-1, #ffffff);
57
- --twui-surface-muted: var(--dsw-alias-bg-layer-2, #f4f3f0);
58
- --twui-hover: var(--dsw-alias-interactive-bg-hover, rgba(27, 32, 51, 0.06));
59
- --twui-border: var(--dsw-alias-border-l2, #e7e5e0);
60
- --twui-border-strong: var(--dsw-alias-border-l3, #d5d3cd);
54
+ --twui-surface-muted: var(--dsw-alias-bg-layer-2, #f7f7f8);
55
+ --twui-hover: var(--dsw-alias-interactive-bg-hover, rgba(10, 10, 11, 0.05));
56
+ --twui-border: var(--dsw-alias-border-l2, #e8e8ea);
57
+ --twui-border-strong: var(--dsw-alias-border-l3, #d9d9de);
61
58
  --twui-accent: var(--dsw-alias-state-business-primary, #1e2f6d);
62
- --twui-primary: var(--dsw-alias-button-primary-fill, #1b2033);
59
+ --twui-primary: var(--dsw-alias-button-primary-fill, #0a0a0b);
63
60
  --twui-primary-fg: var(--dsw-alias-label-primary-inverted, #ffffff);
64
- --twui-success: var(--dsw-alias-state-success-primary, #1f8a4c);
65
- --twui-warning: var(--dsw-alias-state-warn-primary, #a8650a);
66
- --twui-danger: var(--dsw-alias-state-error-primary, #c9372c);
67
- --twui-focus: var(--dsw-focus-ring-color, #6a7bd1);
61
+ --twui-success: var(--dsw-alias-state-success-primary, #15803d);
62
+ --twui-warning: var(--dsw-alias-state-warn-primary, #a16207);
63
+ --twui-danger: var(--dsw-alias-state-error-primary, #c2261d);
64
+ --twui-brand: #1e2f6d;
65
+ --twui-brand-fg: #ffffff;
66
+ --twui-signal: #e8a33d;
67
+ --twui-focus: var(--dsw-focus-ring-color, #3b4f9a);
68
68
  --twui-radius-sm: var(--dsw-radius-sm, 6px);
69
69
  --twui-radius-md: var(--dsw-radius-md, 8px);
70
70
  --twui-radius-lg: var(--dsw-radius-lg, 12px);
@@ -80,21 +80,24 @@ var css = String.raw`
80
80
  }
81
81
  @media (prefers-color-scheme: dark) {
82
82
  .twui {
83
- --twui-fg: var(--dsw-alias-label-primary, #eceef5);
84
- --twui-fg-muted: var(--dsw-alias-label-secondary, #b0b5c8);
85
- --twui-fg-subtle: var(--dsw-alias-label-tertiary, #82889f);
86
- --twui-bg: var(--dsw-alias-bg-base, #131726);
87
- --twui-surface: var(--dsw-alias-bg-layer-1, #1a1f33);
88
- --twui-surface-muted: var(--dsw-alias-bg-layer-2, #222842);
83
+ --twui-fg: var(--dsw-alias-label-primary, #f4f4f5);
84
+ --twui-fg-muted: var(--dsw-alias-label-secondary, #a1a1aa);
85
+ --twui-fg-subtle: var(--dsw-alias-label-tertiary, #71717a);
86
+ --twui-bg: var(--dsw-alias-bg-base, #0b0b0c);
87
+ --twui-surface: var(--dsw-alias-bg-layer-1, #141416);
88
+ --twui-surface-muted: var(--dsw-alias-bg-layer-2, #1d1d20);
89
89
  --twui-hover: var(--dsw-alias-interactive-bg-hover, rgba(255, 255, 255, 0.07));
90
90
  --twui-border: var(--dsw-alias-border-l2, rgba(255, 255, 255, 0.09));
91
91
  --twui-border-strong: var(--dsw-alias-border-l3, rgba(255, 255, 255, 0.15));
92
92
  --twui-accent: var(--dsw-alias-state-business-primary, #a9b6ef);
93
- --twui-primary: var(--dsw-alias-button-primary-fill, #eceef5);
94
- --twui-primary-fg: var(--dsw-alias-label-primary-inverted, #131726);
95
- --twui-success: var(--dsw-alias-state-success-primary, #4cc27f);
96
- --twui-warning: var(--dsw-alias-state-warn-primary, #e6a640);
97
- --twui-danger: var(--dsw-alias-state-error-primary, #ff7b6e);
93
+ --twui-primary: var(--dsw-alias-button-primary-fill, #f4f4f5);
94
+ --twui-primary-fg: var(--dsw-alias-label-primary-inverted, #0b0b0c);
95
+ --twui-success: var(--dsw-alias-state-success-primary, #6ee7a0);
96
+ --twui-warning: var(--dsw-alias-state-warn-primary, #f0b44c);
97
+ --twui-danger: var(--dsw-alias-state-error-primary, #f87171);
98
+ --twui-focus: var(--dsw-focus-ring-color, #9db0f0);
99
+ --twui-brand: #3b4f9a;
100
+ --twui-signal: #f0b44c;
98
101
  --twui-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
99
102
  }
100
103
  }
@@ -141,6 +144,9 @@ var css = String.raw`
141
144
  .twui-badge[data-tone="warning"] { color: var(--twui-warning); background: color-mix(in srgb, var(--twui-warning) 12%, transparent); }
142
145
  .twui-badge[data-tone="danger"] { color: var(--twui-danger); background: color-mix(in srgb, var(--twui-danger) 10%, transparent); }
143
146
  .twui-badge[data-tone="accent"] { color: var(--twui-accent); background: color-mix(in srgb, var(--twui-accent) 10%, transparent); }
147
+ .twui-badge[data-tone="brand"] { color: var(--twui-brand-fg); background: var(--twui-brand); font-weight: 600; }
148
+ /* A lone attention dot beside a label (a button, a status line). */
149
+ .twui-signal-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--twui-signal); flex: none; }
144
150
  .twui-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
145
151
  .twui-badge[data-outline] { background: transparent; border: 1px solid var(--twui-border-strong); }
146
152
 
@@ -312,6 +318,7 @@ var css = String.raw`
312
318
  .twui-footer-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
313
319
  .twui-footer-name { font-weight: 500; }
314
320
  .twui-footer-service { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
321
+ .twui-footer-service .twui-signal-dot { display: inline-block; margin-right: 6px; vertical-align: 1px; }
315
322
  .twui-footer-actions { margin-left: auto; gap: 4px; }
316
323
  .twui-footer-actions .twui-badge { background: transparent; font-size: 11px; height: 20px; padding: 0 4px; }
317
324
  .twui-footer-actions .twui-btn { font-size: 11px; height: 24px; padding-inline: 6px; }
@@ -325,7 +332,7 @@ var css = String.raw`
325
332
  .twui-resource-toolbar .twui-tab[aria-selected="true"] { background: var(--twui-fill); }
326
333
  .twui-resource-list .twui-item { border: 0; border-bottom: 1px solid var(--twui-border); border-radius: 0; box-shadow: none; background: transparent; }
327
334
  .twui-resource-list .twui-item-main { padding: 24px 2px; align-items: center; }
328
- .twui-resource-list .twui-tile { width: 42px; height: 42px; color: var(--twui-accent); align-self: start; }
335
+ .twui-resource-list .twui-tile { width: 42px; height: 42px; color: var(--twui-fg-muted); align-self: start; }
329
336
  .twui-resource-list .twui-item-subtitle { font: inherit; font-size: 11px; padding: 1px 6px; border-radius: 4px; background: var(--twui-fill); color: var(--twui-fg-muted); }
330
337
  .twui-resource-list .twui-item-tags { margin-top: 8px; }
331
338
  .twui-resource-list .twui-item-title { font-size: 15px; font-weight: 500; }
@@ -373,9 +380,15 @@ function join(...names) {
373
380
 
374
381
  // ui/src/brand.tsx
375
382
  var import_jsx_runtime2 = require("react/jsx-runtime");
376
- var MARK = "M206.84 178.37L203.20 176.51L197.50 174.07L191.54 172.04L185.35 170.41L178.93 169.17L172.31 168.32L165.50 167.86L158.53 167.77L151.41 168.06L144.16 168.72L136.80 169.75L129.35 171.13L121.82 172.87L114.23 174.96L109.15 176.54L98.77 180.09L95.30 181.17L90.18 182.60L86.83 183.42L81.88 184.48L77.03 185.31L72.29 185.93L67.65 186.34L61.63 186.57L57.23 186.50L51.52 186.10L47.35 185.57L41.96 184.58L36.75 183.26L31.71 181.62L34.49 185.76L37.47 189.81L40.64 193.76L44.00 197.60L47.54 201.33L51.26 204.95L55.15 208.44L59.21 211.81L63.44 215.04L67.84 218.14L72.39 221.10L77.09 223.91L81.95 226.57L86.95 229.08L94.72 232.53L102.79 235.59L111.15 238.26L119.80 240.51L125.70 241.78L134.78 243.30L140.96 244.06L144.09 244.36L173.55 246.46L180.99 247.20L187.94 248.12L194.39 249.29L200.32 250.79L203.07 251.68L205.68 252.68L209.32 254.39L212.63 256.39L215.59 258.72L218.18 261.38L219.71 263.37L223.20 305.34L228.75 306.83L233.12 307.74L237.50 308.33L241.25 308.55L245.00 308.50L249.38 308.10L253.75 307.35L258.75 306.16L268.56 303.21L246.40 256.22L246.73 253.74L247.28 251.31L248.06 248.95L249.61 245.50L250.90 243.25L252.39 241.04L254.06 238.85L255.91 236.70L257.94 234.56L260.13 232.43L264.98 228.19L270.41 223.93L277.92 218.50L302.38 201.94L304.94 200.12L309.92 196.37L317.01 190.52L321.49 186.47L327.85 180.20L333.75 173.71L339.20 167.02L344.20 160.15L347.28 155.48L350.15 150.75L352.81 145.96L355.27 141.12L357.52 136.24L359.57 131.33L361.40 126.38L363.02 121.41L364.43 116.42L365.63 111.42L366.61 106.41L367.38 101.41L367.94 96.41L368.27 91.43L364.74 95.37L360.88 99.12L356.71 102.68L353.38 105.22L348.64 108.41L344.87 110.67L339.54 113.49L335.33 115.45L330.91 117.29L326.31 118.98L321.50 120.54L318.18 121.50L313.04 122.82L309.49 123.63L298.73 125.74L293.54 126.91L285.93 128.90L278.54 131.16L271.39 133.69L264.50 136.48L257.89 139.53L253.65 141.71L249.55 144.00L245.59 146.40L239.93 150.20L236.35 152.87L232.93 155.65L228.12 160.01L225.13 163.04L222.32 166.18L218.46 171.06L215.04 176.17L212.07 181.49ZM0.00 299.31L6.29 300.81L19.95 304.97L27.09 306.81L30.85 307.55L34.71 308.11L38.64 308.45L42.44 308.56L45.78 308.48L49.55 308.17L52.80 307.74L56.57 307.06L60.13 306.25L63.75 305.29L76.43 301.42L80.87 300.19L85.96 299.11L90.20 298.63L92.48 298.57L95.22 298.67L97.56 298.92L100.48 299.40L106.29 300.81L119.95 304.97L126.98 306.78L130.85 307.55L134.55 308.09L137.85 308.40L141.64 308.56L145.61 308.49L149.55 308.17L153.42 307.64L157.20 306.93L160.85 306.07L164.44 305.10L179.80 300.47L183.48 299.58L186.92 298.96L190.65 298.61L194.30 298.61L198.04 298.98L202.57 299.84L194.87 271.11L192.61 271.07L189.26 271.14L185.49 271.44L182.24 271.86L178.58 272.51L174.89 273.34L171.27 274.29L157.98 278.34L153.04 279.67L149.99 280.33L147.56 280.72L144.76 280.99L142.48 281.06L140.20 281.00L137.40 280.73L134.98 280.35L131.93 279.70L127.00 278.38L113.68 274.32L109.51 273.23L105.83 272.42L102.03 271.77L98.93 271.39L95.61 271.14L92.44 271.07L88.64 271.18L84.71 271.52L80.85 272.08L77.09 272.82L69.95 274.66L55.73 278.98L49.99 280.33L47.09 280.78L44.76 280.99L42.48 281.06L39.73 280.97L35.96 280.52L31.93 279.70L27.57 278.54L16.42 275.11L10.94 273.58L5.08 272.28L0.00 271.51ZM284.83 299.31L289.73 298.66L292.48 298.57L295.69 298.71L299.01 299.13L302.00 299.72L305.73 300.65L319.95 304.97L327.09 306.81L330.85 307.55L334.71 308.11L338.64 308.45L342.44 308.56L345.78 308.48L349.71 308.16L353.42 307.64L357.31 306.90L364.44 305.10L379.25 300.61L382.97 299.69L385.96 299.11L389.73 298.66L392.93 298.57L396.15 298.75L400.00 299.31L400.00 271.51L395.61 271.14L390.85 271.08L386.27 271.36L381.47 271.98L377.09 272.82L372.66 273.91L367.92 275.26L357.41 278.50L352.52 279.80L347.56 280.72L345.22 280.96L342.93 281.06L340.65 281.02L338.34 280.84L335.96 280.52L332.97 279.94L327.57 278.54L316.46 275.13L311.57 273.75L306.45 272.55L301.11 271.64L297.98 271.30L294.99 271.12L289.43 271.13L283.78 271.64L277.70 272.69Z";
383
+ var BRAND_FLUKE = "M185.89 163.76C162.65 148.53 128.19 148.57 93.22 161.01C68.77 169.86 48.13 170.02 31.16 163.85C49.59 192.62 84.41 213.93 127.56 217.69C158.83 220.04 182.52 219.82 192.45 234.01L198.98 312.7L249.02 299.3L215.33 227.88C216.83 210.63 237.46 198.97 263.37 181.3C298.85 156.47 318.35 120.6 319.93 86.47C308.32 100.31 290.36 110.48 264.77 115.04C228.26 121.76 198.39 138.96 185.89 163.76Z";
384
+ var BRAND_SURFACE = "M-6.66 286.12L-4.69 285.14L-2.69 284.13L-0.66 283.12L1.41 282.11L3.52 281.13L5.66 280.19L7.83 279.31L10.05 278.49L12.3 277.77L14.59 277.16L16.91 276.66L19.26 276.3L21.62 276.07L24 276L26.38 276.07L28.74 276.3L31.09 276.66L33.41 277.16L35.7 277.77L37.95 278.49L40.17 279.31L42.34 280.19L44.48 281.13L46.59 282.11L48.66 283.12L50.69 284.13L52.69 285.14L54.66 286.12L56.59 287.06L58.48 287.94L60.34 288.76L62.17 289.5L63.95 290.16L65.7 290.72L67.41 291.18L69.09 291.54L70.74 291.8L72.38 291.95L74 292L75.62 291.95L77.26 291.8L78.91 291.54L80.59 291.18L82.3 290.72L84.05 290.16L85.83 289.5L87.66 288.76L89.52 287.94L91.41 287.06L93.34 286.12L95.31 285.14L97.31 284.13L99.34 283.12L101.41 282.11L103.52 281.13L105.66 280.19L107.83 279.31L110.05 278.49L112.3 277.77L114.59 277.16L116.91 276.66L119.26 276.3L121.62 276.07L124 276L126.38 276.07L128.74 276.3L131.09 276.66L133.41 277.16L135.7 277.77L137.95 278.49L140.17 279.31L142.34 280.19L144.48 281.13L146.59 282.11L148.66 283.12L150.69 284.13L152.69 285.14L154.66 286.12L156.59 287.06L158.48 287.94L160.34 288.76L162.17 289.5L163.95 290.16L165.7 290.72L167.41 291.18L169.09 291.54L170.74 291.8L172.38 291.95L174 292L175.62 291.95L177.26 291.8L178.91 291.54L180.59 291.18L182.3 290.72L184.05 290.16L185.83 289.5L187.66 288.76L189.52 287.94L191.41 287.06L193.34 286.12L195.31 285.14L197.31 284.13L199.34 283.12L201.41 282.11L203.52 281.13L205.66 280.19L207.83 279.31L210.05 278.49L212.3 277.77L214.59 277.16L216.91 276.66L219.26 276.3L221.62 276.07L224 276L226.38 276.07L228.74 276.3L231.09 276.66L233.41 277.16L235.7 277.77L237.95 278.49L240.17 279.31L242.34 280.19L244.48 281.13L246.59 282.11L248.66 283.12L250.69 284.13L252.69 285.14L254.66 286.12L256.59 287.06L258.48 287.94L260.34 288.76L262.17 289.5L263.95 290.16L265.7 290.72L267.41 291.18L269.09 291.54L270.74 291.8L272.38 291.95L274 292L275.62 291.95L277.26 291.8L278.91 291.54L280.59 291.18L282.3 290.72L284.05 290.16L285.83 289.5L287.66 288.76L289.52 287.94L291.41 287.06L293.34 286.12L295.31 285.14L297.31 284.13L299.34 283.12L301.41 282.11L303.52 281.13L305.66 280.19L307.83 279.31L310.05 278.49L312.3 277.77L314.59 277.16L316.91 276.66L319.26 276.3L321.62 276.07L324 276L326.38 276.07L328.74 276.3L331.09 276.66L333.41 277.16L335.7 277.77L337.95 278.49L340.17 279.31L342.34 280.19L344.48 281.13L346.59 282.11L348.66 283.12L350.69 284.13L352.69 285.14L354.66 286.12L356.59 287.06L358.48 287.94L360.34 288.76L362.17 289.5L363.95 290.16L365.7 290.72L367.41 291.18L369.09 291.54L370.74 291.8L372.38 291.95L374 292L375.62 291.95L377.26 291.8L378.91 291.54L380.59 291.18L382.3 290.72L384.05 290.16L385.83 289.5L387.66 288.76L389.52 287.94L391.41 287.06L393.34 286.12L395.31 285.14L397.31 284.13L399.34 283.12L401.41 282.11L406.59 292.94L404.66 293.88L402.69 294.86L400.69 295.87L398.66 296.88L396.59 297.89L394.48 298.87L392.34 299.81L390.17 300.69L387.95 301.51L385.7 302.23L383.41 302.84L381.09 303.34L378.74 303.7L376.38 303.93L374 304L371.62 303.93L369.26 303.7L366.91 303.34L364.59 302.84L362.3 302.23L360.05 301.51L357.83 300.69L355.66 299.81L353.52 298.87L351.41 297.89L349.34 296.88L347.31 295.87L345.31 294.86L343.34 293.88L341.41 292.94L339.52 292.06L337.66 291.24L335.83 290.5L334.05 289.84L332.3 289.28L330.59 288.82L328.91 288.46L327.26 288.2L325.62 288.05L324 288L322.38 288.05L320.74 288.2L319.09 288.46L317.41 288.82L315.7 289.28L313.95 289.84L312.17 290.5L310.34 291.24L308.48 292.06L306.59 292.94L304.66 293.88L302.69 294.86L300.69 295.87L298.66 296.88L296.59 297.89L294.48 298.87L292.34 299.81L290.17 300.69L287.95 301.51L285.7 302.23L283.41 302.84L281.09 303.34L278.74 303.7L276.38 303.93L274 304L271.62 303.93L269.26 303.7L266.91 303.34L264.59 302.84L262.3 302.23L260.05 301.51L257.83 300.69L255.66 299.81L253.52 298.87L251.41 297.89L249.34 296.88L247.31 295.87L245.31 294.86L243.34 293.88L241.41 292.94L239.52 292.06L237.66 291.24L235.83 290.5L234.05 289.84L232.3 289.28L230.59 288.82L228.91 288.46L227.26 288.2L225.62 288.05L224 288L222.38 288.05L220.74 288.2L219.09 288.46L217.41 288.82L215.7 289.28L213.95 289.84L212.17 290.5L210.34 291.24L208.48 292.06L206.59 292.94L204.66 293.88L202.69 294.86L200.69 295.87L198.66 296.88L196.59 297.89L194.48 298.87L192.34 299.81L190.17 300.69L187.95 301.51L185.7 302.23L183.41 302.84L181.09 303.34L178.74 303.7L176.38 303.93L174 304L171.62 303.93L169.26 303.7L166.91 303.34L164.59 302.84L162.3 302.23L160.05 301.51L157.83 300.69L155.66 299.81L153.52 298.87L151.41 297.89L149.34 296.88L147.31 295.87L145.31 294.86L143.34 293.88L141.41 292.94L139.52 292.06L137.66 291.24L135.83 290.5L134.05 289.84L132.3 289.28L130.59 288.82L128.91 288.46L127.26 288.2L125.62 288.05L124 288L122.38 288.05L120.74 288.2L119.09 288.46L117.41 288.82L115.7 289.28L113.95 289.84L112.17 290.5L110.34 291.24L108.48 292.06L106.59 292.94L104.66 293.88L102.69 294.86L100.69 295.87L98.66 296.88L96.59 297.89L94.48 298.87L92.34 299.81L90.17 300.69L87.95 301.51L85.7 302.23L83.41 302.84L81.09 303.34L78.74 303.7L76.38 303.93L74 304L71.62 303.93L69.26 303.7L66.91 303.34L64.59 302.84L62.3 302.23L60.05 301.51L57.83 300.69L55.66 299.81L53.52 298.87L51.41 297.89L49.34 296.88L47.31 295.87L45.31 294.86L43.34 293.88L41.41 292.94L39.52 292.06L37.66 291.24L35.83 290.5L34.05 289.84L32.3 289.28L30.59 288.82L28.91 288.46L27.26 288.2L25.62 288.05L24 288L22.38 288.05L20.74 288.2L19.09 288.46L17.41 288.82L15.7 289.28L13.95 289.84L12.17 290.5L10.34 291.24L8.48 292.06L6.59 292.94L4.66 293.88L2.69 294.86L0.69 295.87L-1.34 296.88Z";
385
+ var BRAND_SWELL = "M-5.18 331.11L-3.2 330.5L-1.2 329.87L0.82 329.24L2.85 328.62L4.91 328.02L6.97 327.45L9.06 326.93L11.16 326.44L13.27 326.02L15.4 325.66L17.54 325.38L19.69 325.17L21.84 325.04L24 325L26.16 325.04L28.31 325.17L30.46 325.38L32.6 325.66L34.73 326.02L36.84 326.44L38.94 326.93L41.03 327.45L43.09 328.02L45.15 328.62L47.18 329.24L49.2 329.87L51.2 330.5L53.18 331.11L55.15 331.71L57.09 332.28L59.03 332.81L60.94 333.3L62.84 333.73L64.73 334.11L66.6 334.43L68.46 334.68L70.31 334.86L72.16 334.96L74 335L75.84 334.96L77.69 334.86L79.54 334.68L81.4 334.43L83.27 334.11L85.16 333.73L87.06 333.3L88.97 332.81L90.91 332.28L92.85 331.71L94.82 331.11L96.8 330.5L98.8 329.87L100.82 329.24L102.85 328.62L104.91 328.02L106.97 327.45L109.06 326.93L111.16 326.44L113.27 326.02L115.4 325.66L117.54 325.38L119.69 325.17L121.84 325.04L124 325L126.16 325.04L128.31 325.17L130.46 325.38L132.6 325.66L134.73 326.02L136.84 326.44L138.94 326.93L141.03 327.45L143.09 328.02L145.15 328.62L147.18 329.24L149.2 329.87L151.2 330.5L153.18 331.11L155.15 331.71L157.09 332.28L159.03 332.81L160.94 333.3L162.84 333.73L164.73 334.11L166.6 334.43L168.46 334.68L170.31 334.86L172.16 334.96L174 335L175.84 334.96L177.69 334.86L179.54 334.68L181.4 334.43L183.27 334.11L185.16 333.73L187.06 333.3L188.97 332.81L190.91 332.28L192.85 331.71L194.82 331.11L196.8 330.5L198.8 329.87L200.82 329.24L202.85 328.62L204.91 328.02L206.97 327.45L209.06 326.93L211.16 326.44L213.27 326.02L215.4 325.66L217.54 325.38L219.69 325.17L221.84 325.04L224 325L226.16 325.04L228.31 325.17L230.46 325.38L232.6 325.66L234.73 326.02L236.84 326.44L238.94 326.93L241.03 327.45L243.09 328.02L245.15 328.62L247.18 329.24L249.2 329.87L251.2 330.5L253.18 331.11L255.15 331.71L257.09 332.28L259.03 332.81L260.94 333.3L262.84 333.73L264.73 334.11L266.6 334.43L268.46 334.68L270.31 334.86L272.16 334.96L274 335L275.84 334.96L277.69 334.86L279.54 334.68L281.4 334.43L283.27 334.11L285.16 333.73L287.06 333.3L288.97 332.81L290.91 332.28L292.85 331.71L294.82 331.11L296.8 330.5L298.8 329.87L300.82 329.24L302.85 328.62L304.91 328.02L306.97 327.45L309.06 326.93L311.16 326.44L313.27 326.02L315.4 325.66L317.54 325.38L319.69 325.17L321.84 325.04L324 325L326.16 325.04L328.31 325.17L330.46 325.38L332.6 325.66L334.73 326.02L336.84 326.44L338.94 326.93L341.03 327.45L343.09 328.02L345.15 328.62L347.18 329.24L349.2 329.87L351.2 330.5L353.18 331.11L355.15 331.71L357.09 332.28L359.03 332.81L360.94 333.3L362.84 333.73L364.73 334.11L366.6 334.43L368.46 334.68L370.31 334.86L372.16 334.96L374 335L375.84 334.96L377.69 334.86L379.54 334.68L381.4 334.43L383.27 334.11L385.16 333.73L387.06 333.3L388.97 332.81L390.91 332.28L392.85 331.71L394.82 331.11L396.8 330.5L398.8 329.87L400.82 329.24L402.85 328.62L405.15 336.29L403.18 336.89L401.2 337.5L399.2 338.13L397.18 338.76L395.15 339.38L393.09 339.98L391.03 340.55L388.94 341.07L386.84 341.56L384.73 341.98L382.6 342.34L380.46 342.62L378.31 342.83L376.16 342.96L374 343L371.84 342.96L369.69 342.83L367.54 342.62L365.4 342.34L363.27 341.98L361.16 341.56L359.06 341.07L356.97 340.55L354.91 339.98L352.85 339.38L350.82 338.76L348.8 338.13L346.8 337.5L344.82 336.89L342.85 336.29L340.91 335.72L338.97 335.19L337.06 334.7L335.16 334.27L333.27 333.89L331.4 333.57L329.54 333.32L327.69 333.14L325.84 333.04L324 333L322.16 333.04L320.31 333.14L318.46 333.32L316.6 333.57L314.73 333.89L312.84 334.27L310.94 334.7L309.03 335.19L307.09 335.72L305.15 336.29L303.18 336.89L301.2 337.5L299.2 338.13L297.18 338.76L295.15 339.38L293.09 339.98L291.03 340.55L288.94 341.07L286.84 341.56L284.73 341.98L282.6 342.34L280.46 342.62L278.31 342.83L276.16 342.96L274 343L271.84 342.96L269.69 342.83L267.54 342.62L265.4 342.34L263.27 341.98L261.16 341.56L259.06 341.07L256.97 340.55L254.91 339.98L252.85 339.38L250.82 338.76L248.8 338.13L246.8 337.5L244.82 336.89L242.85 336.29L240.91 335.72L238.97 335.19L237.06 334.7L235.16 334.27L233.27 333.89L231.4 333.57L229.54 333.32L227.69 333.14L225.84 333.04L224 333L222.16 333.04L220.31 333.14L218.46 333.32L216.6 333.57L214.73 333.89L212.84 334.27L210.94 334.7L209.03 335.19L207.09 335.72L205.15 336.29L203.18 336.89L201.2 337.5L199.2 338.13L197.18 338.76L195.15 339.38L193.09 339.98L191.03 340.55L188.94 341.07L186.84 341.56L184.73 341.98L182.6 342.34L180.46 342.62L178.31 342.83L176.16 342.96L174 343L171.84 342.96L169.69 342.83L167.54 342.62L165.4 342.34L163.27 341.98L161.16 341.56L159.06 341.07L156.97 340.55L154.91 339.98L152.85 339.38L150.82 338.76L148.8 338.13L146.8 337.5L144.82 336.89L142.85 336.29L140.91 335.72L138.97 335.19L137.06 334.7L135.16 334.27L133.27 333.89L131.4 333.57L129.54 333.32L127.69 333.14L125.84 333.04L124 333L122.16 333.04L120.31 333.14L118.46 333.32L116.6 333.57L114.73 333.89L112.84 334.27L110.94 334.7L109.03 335.19L107.09 335.72L105.15 336.29L103.18 336.89L101.2 337.5L99.2 338.13L97.18 338.76L95.15 339.38L93.09 339.98L91.03 340.55L88.94 341.07L86.84 341.56L84.73 341.98L82.6 342.34L80.46 342.62L78.31 342.83L76.16 342.96L74 343L71.84 342.96L69.69 342.83L67.54 342.62L65.4 342.34L63.27 341.98L61.16 341.56L59.06 341.07L56.97 340.55L54.91 339.98L52.85 339.38L50.82 338.76L48.8 338.13L46.8 337.5L44.82 336.89L42.85 336.29L40.91 335.72L38.97 335.19L37.06 334.7L35.16 334.27L33.27 333.89L31.4 333.57L29.54 333.32L27.69 333.14L25.84 333.04L24 333L22.16 333.04L20.31 333.14L18.46 333.32L16.6 333.57L14.73 333.89L12.84 334.27L10.94 334.7L9.03 335.19L7.09 335.72L5.15 336.29L3.18 336.89L1.2 337.5L-0.8 338.13L-2.82 338.76ZM-4.63 367.72L-2.64 367.29L-0.64 366.85L1.37 366.41L3.39 365.98L5.41 365.57L7.45 365.18L9.5 364.81L11.55 364.48L13.62 364.19L15.68 363.95L17.76 363.76L19.84 363.61L21.92 363.53L24 363.5L26.08 363.53L28.16 363.61L30.24 363.76L32.32 363.95L34.38 364.19L36.45 364.48L38.5 364.81L40.55 365.18L42.59 365.57L44.61 365.98L46.63 366.41L48.64 366.85L50.64 367.29L52.63 367.72L54.61 368.15L56.59 368.55L58.55 368.93L60.5 369.27L62.45 369.58L64.38 369.86L66.32 370.08L68.24 370.26L70.16 370.39L72.08 370.47L74 370.5L75.92 370.47L77.84 370.39L79.76 370.26L81.68 370.08L83.62 369.86L85.55 369.58L87.5 369.27L89.45 368.93L91.41 368.55L93.39 368.15L95.37 367.72L97.36 367.29L99.36 366.85L101.37 366.41L103.39 365.98L105.41 365.57L107.45 365.18L109.5 364.81L111.55 364.48L113.62 364.19L115.68 363.95L117.76 363.76L119.84 363.61L121.92 363.53L124 363.5L126.08 363.53L128.16 363.61L130.24 363.76L132.32 363.95L134.38 364.19L136.45 364.48L138.5 364.81L140.55 365.18L142.59 365.57L144.61 365.98L146.63 366.41L148.64 366.85L150.64 367.29L152.63 367.72L154.61 368.15L156.59 368.55L158.55 368.93L160.5 369.27L162.45 369.58L164.38 369.86L166.32 370.08L168.24 370.26L170.16 370.39L172.08 370.47L174 370.5L175.92 370.47L177.84 370.39L179.76 370.26L181.68 370.08L183.62 369.86L185.55 369.58L187.5 369.27L189.45 368.93L191.41 368.55L193.39 368.15L195.37 367.72L197.36 367.29L199.36 366.85L201.37 366.41L203.39 365.98L205.41 365.57L207.45 365.18L209.5 364.81L211.55 364.48L213.62 364.19L215.68 363.95L217.76 363.76L219.84 363.61L221.92 363.53L224 363.5L226.08 363.53L228.16 363.61L230.24 363.76L232.32 363.95L234.38 364.19L236.45 364.48L238.5 364.81L240.55 365.18L242.59 365.57L244.61 365.98L246.63 366.41L248.64 366.85L250.64 367.29L252.63 367.72L254.61 368.15L256.59 368.55L258.55 368.93L260.5 369.27L262.45 369.58L264.38 369.86L266.32 370.08L268.24 370.26L270.16 370.39L272.08 370.47L274 370.5L275.92 370.47L277.84 370.39L279.76 370.26L281.68 370.08L283.62 369.86L285.55 369.58L287.5 369.27L289.45 368.93L291.41 368.55L293.39 368.15L295.37 367.72L297.36 367.29L299.36 366.85L301.37 366.41L303.39 365.98L305.41 365.57L307.45 365.18L309.5 364.81L311.55 364.48L313.62 364.19L315.68 363.95L317.76 363.76L319.84 363.61L321.92 363.53L324 363.5L326.08 363.53L328.16 363.61L330.24 363.76L332.32 363.95L334.38 364.19L336.45 364.48L338.5 364.81L340.55 365.18L342.59 365.57L344.61 365.98L346.63 366.41L348.64 366.85L350.64 367.29L352.63 367.72L354.61 368.15L356.59 368.55L358.55 368.93L360.5 369.27L362.45 369.58L364.38 369.86L366.32 370.08L368.24 370.26L370.16 370.39L372.08 370.47L374 370.5L375.92 370.47L377.84 370.39L379.76 370.26L381.68 370.08L383.62 369.86L385.55 369.58L387.5 369.27L389.45 368.93L391.41 368.55L393.39 368.15L395.37 367.72L397.36 367.29L399.36 366.85L401.37 366.41L403.39 365.98L404.61 371.85L402.63 372.28L400.64 372.71L398.64 373.15L396.63 373.59L394.61 374.02L392.59 374.43L390.55 374.82L388.5 375.19L386.45 375.52L384.38 375.81L382.32 376.05L380.24 376.24L378.16 376.39L376.08 376.47L374 376.5L371.92 376.47L369.84 376.39L367.76 376.24L365.68 376.05L363.62 375.81L361.55 375.52L359.5 375.19L357.45 374.82L355.41 374.43L353.39 374.02L351.37 373.59L349.36 373.15L347.36 372.71L345.37 372.28L343.39 371.85L341.41 371.45L339.45 371.07L337.5 370.73L335.55 370.42L333.62 370.14L331.68 369.92L329.76 369.74L327.84 369.61L325.92 369.53L324 369.5L322.08 369.53L320.16 369.61L318.24 369.74L316.32 369.92L314.38 370.14L312.45 370.42L310.5 370.73L308.55 371.07L306.59 371.45L304.61 371.85L302.63 372.28L300.64 372.71L298.64 373.15L296.63 373.59L294.61 374.02L292.59 374.43L290.55 374.82L288.5 375.19L286.45 375.52L284.38 375.81L282.32 376.05L280.24 376.24L278.16 376.39L276.08 376.47L274 376.5L271.92 376.47L269.84 376.39L267.76 376.24L265.68 376.05L263.62 375.81L261.55 375.52L259.5 375.19L257.45 374.82L255.41 374.43L253.39 374.02L251.37 373.59L249.36 373.15L247.36 372.71L245.37 372.28L243.39 371.85L241.41 371.45L239.45 371.07L237.5 370.73L235.55 370.42L233.62 370.14L231.68 369.92L229.76 369.74L227.84 369.61L225.92 369.53L224 369.5L222.08 369.53L220.16 369.61L218.24 369.74L216.32 369.92L214.38 370.14L212.45 370.42L210.5 370.73L208.55 371.07L206.59 371.45L204.61 371.85L202.63 372.28L200.64 372.71L198.64 373.15L196.63 373.59L194.61 374.02L192.59 374.43L190.55 374.82L188.5 375.19L186.45 375.52L184.38 375.81L182.32 376.05L180.24 376.24L178.16 376.39L176.08 376.47L174 376.5L171.92 376.47L169.84 376.39L167.76 376.24L165.68 376.05L163.62 375.81L161.55 375.52L159.5 375.19L157.45 374.82L155.41 374.43L153.39 374.02L151.37 373.59L149.36 373.15L147.36 372.71L145.37 372.28L143.39 371.85L141.41 371.45L139.45 371.07L137.5 370.73L135.55 370.42L133.62 370.14L131.68 369.92L129.76 369.74L127.84 369.61L125.92 369.53L124 369.5L122.08 369.53L120.16 369.61L118.24 369.74L116.32 369.92L114.38 370.14L112.45 370.42L110.5 370.73L108.55 371.07L106.59 371.45L104.61 371.85L102.63 372.28L100.64 372.71L98.64 373.15L96.63 373.59L94.61 374.02L92.59 374.43L90.55 374.82L88.5 375.19L86.45 375.52L84.38 375.81L82.32 376.05L80.24 376.24L78.16 376.39L76.08 376.47L74 376.5L71.92 376.47L69.84 376.39L67.76 376.24L65.68 376.05L63.62 375.81L61.55 375.52L59.5 375.19L57.45 374.82L55.41 374.43L53.39 374.02L51.37 373.59L49.36 373.15L47.36 372.71L45.37 372.28L43.39 371.85L41.41 371.45L39.45 371.07L37.5 370.73L35.55 370.42L33.62 370.14L31.68 369.92L29.76 369.74L27.84 369.61L25.92 369.53L24 369.5L22.08 369.53L20.16 369.61L18.24 369.74L16.32 369.92L14.38 370.14L12.45 370.42L10.5 370.73L8.55 371.07L6.59 371.45L4.61 371.85L2.63 372.28L0.64 372.71L-1.36 373.15L-3.37 373.59Z";
386
+ var SEA = "M-4 291.5L-2 290.5L0 289.5L2 288.5L4 287.53L6 286.59L8 285.71L10 284.9L12 284.17L14 283.53L16 282.99L18 282.56L20 282.25L22 282.06L24 282L26 282.06L28 282.25L30 282.56L32 282.99L34 283.53L36 284.17L38 284.9L40 285.71L42 286.59L44 287.53L46 288.5L48 289.5L50 290.5L52 291.5L54 292.47L56 293.41L58 294.29L60 295.1L62 295.83L64 296.47L66 297.01L68 297.44L70 297.75L72 297.94L74 298L76 297.94L78 297.75L80 297.44L82 297.01L84 296.47L86 295.83L88 295.1L90 294.29L92 293.41L94 292.47L96 291.5L98 290.5L100 289.5L102 288.5L104 287.53L106 286.59L108 285.71L110 284.9L112 284.17L114 283.53L116 282.99L118 282.56L120 282.25L122 282.06L124 282L126 282.06L128 282.25L130 282.56L132 282.99L134 283.53L136 284.17L138 284.9L140 285.71L142 286.59L144 287.53L146 288.5L148 289.5L150 290.5L152 291.5L154 292.47L156 293.41L158 294.29L160 295.1L162 295.83L164 296.47L166 297.01L168 297.44L170 297.75L172 297.94L174 298L176 297.94L178 297.75L180 297.44L182 297.01L184 296.47L186 295.83L188 295.1L190 294.29L192 293.41L194 292.47L196 291.5L198 290.5L200 289.5L202 288.5L204 287.53L206 286.59L208 285.71L210 284.9L212 284.17L214 283.53L216 282.99L218 282.56L220 282.25L222 282.06L224 282L226 282.06L228 282.25L230 282.56L232 282.99L234 283.53L236 284.17L238 284.9L240 285.71L242 286.59L244 287.53L246 288.5L248 289.5L250 290.5L252 291.5L254 292.47L256 293.41L258 294.29L260 295.1L262 295.83L264 296.47L266 297.01L268 297.44L270 297.75L272 297.94L274 298L276 297.94L278 297.75L280 297.44L282 297.01L284 296.47L286 295.83L288 295.1L290 294.29L292 293.41L294 292.47L296 291.5L298 290.5L300 289.5L302 288.5L304 287.53L306 286.59L308 285.71L310 284.9L312 284.17L314 283.53L316 282.99L318 282.56L320 282.25L322 282.06L324 282L326 282.06L328 282.25L330 282.56L332 282.99L334 283.53L336 284.17L338 284.9L340 285.71L342 286.59L344 287.53L346 288.5L348 289.5L350 290.5L352 291.5L354 292.47L356 293.41L358 294.29L360 295.1L362 295.83L364 296.47L366 297.01L368 297.44L370 297.75L372 297.94L374 298L376 297.94L378 297.75L380 297.44L382 297.01L384 296.47L386 295.83L388 295.1L390 294.29L392 293.41L394 292.47L396 291.5L398 290.5L400 289.5L402 288.5L404 287.53L404 404L-4 404Z";
377
387
  var BRAND_INDIGO = "#1E2F6D";
378
388
  var BRAND_PAPER = "#F8F5EF";
389
+ var SEA_DEEP = "#111A42";
390
+ var SEA_SURFACE = "#7B91D4";
391
+ var SEA_SWELL = "#2B3F86";
379
392
  function BrandMark({ size = 32, title }) {
380
393
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
381
394
  "svg",
@@ -390,7 +403,10 @@ function BrandMark({ size = 32, title }) {
390
403
  children: [
391
404
  title && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("title", { children: title }),
392
405
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { width: "400", height: "400", fill: BRAND_INDIGO }),
393
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { fill: BRAND_PAPER, d: MARK })
406
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { fill: BRAND_PAPER, d: BRAND_FLUKE }),
407
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { fill: SEA_DEEP, d: SEA }),
408
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { fill: SEA_SURFACE, d: BRAND_SURFACE }),
409
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { fill: SEA_SWELL, d: BRAND_SWELL })
394
410
  ]
395
411
  }
396
412
  );
@@ -768,6 +784,9 @@ function Select({ id, label, value, options, onChange, onActivate, disabled = fa
768
784
  ] });
769
785
  }
770
786
 
787
+ // src/web/TeamworkPanel.tsx
788
+ var import_react4 = require("react");
789
+
771
790
  // node_modules/.pnpm/qrcode-generator@2.0.4/node_modules/qrcode-generator/dist/qrcode.mjs
772
791
  var qrcode = function(typeNumber, errorCorrectionLevel) {
773
792
  const PAD0 = 236;
@@ -3000,13 +3019,17 @@ function Header({ state, page, team, selectTeam, navigate }) {
3000
3019
  !!state.teams.length && /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
3001
3020
  /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "chevronRight", size: 14 }),
3002
3021
  /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Select, { label: "选择团队", value: team, onActivate: () => navigate("resources"), onChange: selectTeam, options: [{ value: "all", label: "全部团队" }, ...state.teams.map((t) => ({ value: t.id, label: t.name, description: t.role === "admin" ? "管理员" : "成员" }))] })
3003
- ] })
3022
+ ] }),
3023
+ state.teams.find((t) => t.id === team)?.role === "admin" && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Badge, { tone: "brand", children: "管理员" })
3004
3024
  ] })
3005
3025
  ] }),
3006
3026
  /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "twui-row twui-header-actions", children: [
3007
3027
  /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Button, { variant: "ghost", icon: "smartphone", "aria-current": page === "devices" ? "page" : void 0, onClick: () => navigate("devices"), children: [
3008
3028
  "手机连接",
3009
- pending ? ` · ${pending}` : ""
3029
+ pending ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
3030
+ ` · ${pending}`,
3031
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "twui-signal-dot", "aria-hidden": "true" })
3032
+ ] }) : null
3010
3033
  ] }),
3011
3034
  /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Button, { variant: "ghost", icon: "settings", "aria-current": page === "profile" ? "page" : void 0, onClick: () => navigate("profile"), children: "我的账号" })
3012
3035
  ] })
@@ -3014,18 +3037,22 @@ function Header({ state, page, team, selectTeam, navigate }) {
3014
3037
  }
3015
3038
  function Quota({ team }) {
3016
3039
  const [label, setLabel] = (0, import_react4.useState)("预算加载中…");
3040
+ const [exhausted, setExhausted] = (0, import_react4.useState)(false);
3017
3041
  (0, import_react4.useEffect)(() => {
3018
3042
  let active = true;
3019
3043
  let timer;
3020
3044
  const load = async () => {
3021
3045
  let next = "预算暂不可用";
3046
+ let out = false;
3022
3047
  try {
3023
3048
  const q = await api.quota(team);
3049
+ out = q.exhausted;
3024
3050
  next = q.exhausted ? "预算已用尽" : q.state === "unconfirmed" ? "预算待核实" : q.state === "known" && q.remaining !== null ? `预算剩余 ${q.remaining} 积分` : q.tokenLimited ? "已设 Token 上限" : "未设预算上限";
3025
3051
  } catch {
3026
3052
  }
3027
3053
  if (active) {
3028
3054
  setLabel(next);
3055
+ setExhausted(out);
3029
3056
  timer = setTimeout(load, 3e4);
3030
3057
  }
3031
3058
  };
@@ -3035,7 +3062,10 @@ function Quota({ team }) {
3035
3062
  clearTimeout(timer);
3036
3063
  };
3037
3064
  }, [team]);
3038
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "twui-footer-service", role: "status", title: "所选团队中我的预算;模型或上游仍可能有其他限制。切换资源团队不改变当前会话。", children: label });
3065
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("span", { className: "twui-footer-service", role: "status", title: "所选团队中我的预算;模型或上游仍可能有其他限制。切换资源团队不改变当前会话。", children: [
3066
+ exhausted && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "twui-signal-dot", "aria-hidden": "true" }),
3067
+ label
3068
+ ] });
3039
3069
  }
3040
3070
  function Footer({ state, team, run }) {
3041
3071
  const [busy, setBusy] = (0, import_react4.useState)(false);
@@ -3378,8 +3408,7 @@ function apply(ctx) {
3378
3408
  );
3379
3409
  ctx.slots.inject("main", () => ctx.slots.register({ name: "main", key: PANEL_ID }, () => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(TeamworkPanel, { host: host2 })));
3380
3410
  }
3381
- var BRAND_MARK = "M206.84 178.37L203.20 176.51L197.50 174.07L191.54 172.04L185.35 170.41L178.93 169.17L172.31 168.32L165.50 167.86L158.53 167.77L151.41 168.06L144.16 168.72L136.80 169.75L129.35 171.13L121.82 172.87L114.23 174.96L109.15 176.54L98.77 180.09L95.30 181.17L90.18 182.60L86.83 183.42L81.88 184.48L77.03 185.31L72.29 185.93L67.65 186.34L61.63 186.57L57.23 186.50L51.52 186.10L47.35 185.57L41.96 184.58L36.75 183.26L31.71 181.62L34.49 185.76L37.47 189.81L40.64 193.76L44.00 197.60L47.54 201.33L51.26 204.95L55.15 208.44L59.21 211.81L63.44 215.04L67.84 218.14L72.39 221.10L77.09 223.91L81.95 226.57L86.95 229.08L94.72 232.53L102.79 235.59L111.15 238.26L119.80 240.51L125.70 241.78L134.78 243.30L140.96 244.06L144.09 244.36L173.55 246.46L180.99 247.20L187.94 248.12L194.39 249.29L200.32 250.79L203.07 251.68L205.68 252.68L209.32 254.39L212.63 256.39L215.59 258.72L218.18 261.38L219.71 263.37L223.20 305.34L228.75 306.83L233.12 307.74L237.50 308.33L241.25 308.55L245.00 308.50L249.38 308.10L253.75 307.35L258.75 306.16L268.56 303.21L246.40 256.22L246.73 253.74L247.28 251.31L248.06 248.95L249.61 245.50L250.90 243.25L252.39 241.04L254.06 238.85L255.91 236.70L257.94 234.56L260.13 232.43L264.98 228.19L270.41 223.93L277.92 218.50L302.38 201.94L304.94 200.12L309.92 196.37L317.01 190.52L321.49 186.47L327.85 180.20L333.75 173.71L339.20 167.02L344.20 160.15L347.28 155.48L350.15 150.75L352.81 145.96L355.27 141.12L357.52 136.24L359.57 131.33L361.40 126.38L363.02 121.41L364.43 116.42L365.63 111.42L366.61 106.41L367.38 101.41L367.94 96.41L368.27 91.43L364.74 95.37L360.88 99.12L356.71 102.68L353.38 105.22L348.64 108.41L344.87 110.67L339.54 113.49L335.33 115.45L330.91 117.29L326.31 118.98L321.50 120.54L318.18 121.50L313.04 122.82L309.49 123.63L298.73 125.74L293.54 126.91L285.93 128.90L278.54 131.16L271.39 133.69L264.50 136.48L257.89 139.53L253.65 141.71L249.55 144.00L245.59 146.40L239.93 150.20L236.35 152.87L232.93 155.65L228.12 160.01L225.13 163.04L222.32 166.18L218.46 171.06L215.04 176.17L212.07 181.49ZM0.00 299.31L6.29 300.81L19.95 304.97L27.09 306.81L30.85 307.55L34.71 308.11L38.64 308.45L42.44 308.56L45.78 308.48L49.55 308.17L52.80 307.74L56.57 307.06L60.13 306.25L63.75 305.29L76.43 301.42L80.87 300.19L85.96 299.11L90.20 298.63L92.48 298.57L95.22 298.67L97.56 298.92L100.48 299.40L106.29 300.81L119.95 304.97L126.98 306.78L130.85 307.55L134.55 308.09L137.85 308.40L141.64 308.56L145.61 308.49L149.55 308.17L153.42 307.64L157.20 306.93L160.85 306.07L164.44 305.10L179.80 300.47L183.48 299.58L186.92 298.96L190.65 298.61L194.30 298.61L198.04 298.98L202.57 299.84L194.87 271.11L192.61 271.07L189.26 271.14L185.49 271.44L182.24 271.86L178.58 272.51L174.89 273.34L171.27 274.29L157.98 278.34L153.04 279.67L149.99 280.33L147.56 280.72L144.76 280.99L142.48 281.06L140.20 281.00L137.40 280.73L134.98 280.35L131.93 279.70L127.00 278.38L113.68 274.32L109.51 273.23L105.83 272.42L102.03 271.77L98.93 271.39L95.61 271.14L92.44 271.07L88.64 271.18L84.71 271.52L80.85 272.08L77.09 272.82L69.95 274.66L55.73 278.98L49.99 280.33L47.09 280.78L44.76 280.99L42.48 281.06L39.73 280.97L35.96 280.52L31.93 279.70L27.57 278.54L16.42 275.11L10.94 273.58L5.08 272.28L0.00 271.51ZM284.83 299.31L289.73 298.66L292.48 298.57L295.69 298.71L299.01 299.13L302.00 299.72L305.73 300.65L319.95 304.97L327.09 306.81L330.85 307.55L334.71 308.11L338.64 308.45L342.44 308.56L345.78 308.48L349.71 308.16L353.42 307.64L357.31 306.90L364.44 305.10L379.25 300.61L382.97 299.69L385.96 299.11L389.73 298.66L392.93 298.57L396.15 298.75L400.00 299.31L400.00 271.51L395.61 271.14L390.85 271.08L386.27 271.36L381.47 271.98L377.09 272.82L372.66 273.91L367.92 275.26L357.41 278.50L352.52 279.80L347.56 280.72L345.22 280.96L342.93 281.06L340.65 281.02L338.34 280.84L335.96 280.52L332.97 279.94L327.57 278.54L316.46 275.13L311.57 273.75L306.45 272.55L301.11 271.64L297.98 271.30L294.99 271.12L289.43 271.13L283.78 271.64L277.70 272.69Z";
3382
3411
  function TeamIcon({ size, active }) {
3383
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("svg", { width: size, height: size, viewBox: "0 0 400 400", role: "img", "aria-label": "DSH Teamwork", style: { flex: "none", display: "block", color: active ? "var(--dsw-alias-state-business-primary)" : "inherit" }, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("path", { fill: "currentColor", d: BRAND_MARK }) });
3412
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("svg", { width: size, height: size, viewBox: "0 0 400 400", role: "img", "aria-label": "DSH Teamwork", style: { flex: "none", display: "block", color: active ? "var(--dsw-alias-state-business-primary)" : "inherit" }, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("path", { fill: "currentColor", d: `${BRAND_FLUKE}${BRAND_SURFACE}${BRAND_SWELL}` }) });
3384
3413
  }
3385
3414
  return module.exports; } });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dsh-teamwork/dsh-teamwork",
3
- "version": "0.8.3",
4
- "description": "Team collaboration plugin for DeepSeek Harness",
3
+ "version": "0.9.0",
4
+ "description": "Shared team models, agent presets, and approved plugins for DeepSeek Harness",
5
5
  "icon": "icon.svg",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
@@ -19,7 +19,11 @@
19
19
  "icon.svg",
20
20
  "cordis.patch.yml",
21
21
  "LICENSE",
22
- "NOTICE"
22
+ "NOTICE",
23
+ "README.zh-CN.md",
24
+ "docs",
25
+ "assets/readme",
26
+ "screenshots.json"
23
27
  ],
24
28
  "peerDependencies": {
25
29
  "@deepseek-ai/cordis": "~4.1.0",
@@ -85,6 +89,21 @@
85
89
  "./client": "./lib/web/client.js",
86
90
  "./package.json": "./package.json"
87
91
  },
92
+ "homepage": "https://www.dshteamwork.com",
93
+ "bugs": {
94
+ "url": "https://github.com/dsh-teamwork/dsh-teamwork/issues"
95
+ },
96
+ "keywords": [
97
+ "deepseek-harness",
98
+ "dsh-plugin",
99
+ "teamwork",
100
+ "collaboration",
101
+ "team-configuration",
102
+ "agent-presets",
103
+ "plugin-sharing",
104
+ "usage",
105
+ "budgets"
106
+ ],
88
107
  "scripts": {
89
108
  "build": "tsc && node scripts/build-web.mjs",
90
109
  "watch": "tsc -w & node scripts/build-web.mjs --watch",
@@ -0,0 +1,5 @@
1
+ [
2
+ "assets/readme/teamwork-panel.png",
3
+ "assets/readme/review-and-publish.png",
4
+ "assets/readme/versions-and-backups.png"
5
+ ]