@itphx/synth-shared 0.8.8 → 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.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2026 itphx
3
+ Copyright (c) 2026 Дмитрий Рамазанов <ramazanov_dv@mail.ru>
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
6
6
  associated documentation files (the "Software"), to deal in the Software without restriction, including
package/LICENSE.ru.md ADDED
@@ -0,0 +1,31 @@
1
+ # Лицензия MIT (перевод)
2
+
3
+ > **Внимание.** Этот файл — неофициальный перевод лицензии MIT на русский язык,
4
+ > предоставленный исключительно в информационных целях. Юридическую силу имеет
5
+ > оригинальный текст на английском языке — файл [LICENSE](./LICENSE).
6
+ > При любых расхождениях приоритет имеет английская версия.
7
+
8
+ MIT License
9
+
10
+ Copyright (c) 2026 Дмитрий Рамазанов <ramazanov_dv@mail.ru>
11
+
12
+ Настоящим предоставляется бесплатное разрешение любому лицу, получившему копию
13
+ данного программного обеспечения и сопутствующих файлов документации (далее —
14
+ «Программное обеспечение»), безвозмездно распоряжаться Программным обеспечением
15
+ без ограничений, включая, помимо прочего, права на использование, копирование,
16
+ изменение, объединение, публикацию, распространение, сублицензирование и/или
17
+ продажу копий Программного обеспечения, а также разрешать лицам, которым
18
+ предоставляется Программное обеспечение, делать то же самое при соблюдении
19
+ следующих условий:
20
+
21
+ Указанное выше уведомление об авторских правах и настоящее уведомление о
22
+ разрешении должны быть включены во все копии или существенные части
23
+ Программного обеспечения.
24
+
25
+ ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ ПРЕДОСТАВЛЯЕТСЯ «КАК ЕСТЬ», БЕЗ КАКИХ-ЛИБО ГАРАНТИЙ,
26
+ ЯВНЫХ ИЛИ ПОДРАЗУМЕВАЕМЫХ, ВКЛЮЧАЯ, ПОМИМО ПРОЧЕГО, ГАРАНТИИ ТОВАРНОЙ
27
+ ПРИГОДНОСТИ, ПРИГОДНОСТИ ДЛЯ ОПРЕДЕЛЁННОЙ ЦЕЛИ И НЕНАРУШЕНИЯ ПРАВ. НИ В КАКОМ
28
+ СЛУЧАЕ АВТОРЫ ИЛИ ПРАВООБЛАДАТЕЛИ НЕ НЕСУТ ОТВЕТСТВЕННОСТИ ПО КАКИМ-ЛИБО
29
+ ИСКАМ, УБЫТКАМ ИЛИ ИНЫМ ОБЯЗАТЕЛЬСТВАМ, БУДЬ ТО ПО ДОГОВОРУ, ДЕЛИКТУ ИЛИ ИНЫМ
30
+ ОСНОВАНИЯМ, ВОЗНИКАЮЩИМ ИЗ ПРОГРАММНОГО ОБЕСПЕЧЕНИЯ, В СВЯЗИ С НИМ ИЛИ В
31
+ РЕЗУЛЬТАТЕ ЕГО ИСПОЛЬЗОВАНИЯ ИЛИ ИНЫХ ДЕЙСТВИЙ С НИМ.
@@ -40,7 +40,7 @@ export const defaultConfig = {
40
40
  ui: {
41
41
  port: 5002,
42
42
  backendUrl: 'http://localhost:5000',
43
- theme: 'flexoki',
43
+ theme: 'synthesis',
44
44
  themeMode: 'system',
45
45
  locale: 'ru',
46
46
  },
@@ -71,7 +71,7 @@ export const runnerConfigSchema = z.object({
71
71
  export const uiConfigSchema = z.object({
72
72
  port: z.number().int().min(1).max(65535).default(5002),
73
73
  backendUrl: z.string().default('http://localhost:5000'),
74
- theme: z.string().default('flexoki'),
74
+ theme: z.string().default('synthesis'),
75
75
  themeMode: z.enum(['system', 'light', 'dark']).default('system'),
76
76
  locale: z.string().default('ru'),
77
77
  });
@@ -7,10 +7,10 @@ export declare const projectRoleSchema: z.ZodNativeEnum<typeof ProjectRole>;
7
7
  export declare const statusMessageTypeSchema: z.ZodNativeEnum<typeof StatusMessageType>;
8
8
  /** Zod-схемы канонических ключей иконок/цветов (единые для project и session). */
9
9
  export declare const projectIconKeySchema: z.ZodEnum<["code", "terminal", "rocket", "flask", "gamepad", "briefcase", "home", "globe", "leaf", "shield", "palette", "server", "phone", "database", "lightbulb", "music", "camera", "book", "heart", "folder", "chat", "cpu", "file", "file-code", "docs", "task", "todo", "bug", "robot", "brain", "git", "repo", "test", "chart", "star", "image", "calendar"]>;
10
- export declare const projectColorKeySchema: z.ZodEnum<["keyword", "string", "number", "type", "comment", "error", "primary", "success"]>;
11
- /** true, если значение — канонический ключ иконки (без алиасов; для записи). */
10
+ export declare const projectColorKeySchema: z.ZodEnum<["a1", "a2", "a3", "a4", "a5", "a6", "a7", "a8", "a9", "a10", "a11", "a12", "a13", "a14", "a15", "a16"]>;
11
+ /** true, если значение — канонический ключ иконки (для записи и чтения). */
12
12
  export declare function isProjectIconKey(value: unknown): value is ProjectIconKey;
13
- /** true, если значение — канонический ключ цвета (без алиасов; для записи). */
13
+ /** true, если значение — канонический ключ цвета (без алиасов; для записи и чтения). */
14
14
  export declare function isProjectColorKey(value: unknown): value is ProjectColorKey;
15
15
  /**
16
16
  * Нормализация иконки при ЧТЕНИИ. Канонический ключ → как есть; всё прочее
@@ -18,8 +18,8 @@ export declare function isProjectColorKey(value: unknown): value is ProjectColor
18
18
  */
19
19
  export declare function normalizeIconKey(value: unknown): ProjectIconKey | undefined;
20
20
  /**
21
- * Нормализация цвета при ЧТЕНИИ: канонический ключ или legacy-алиас → ключ
22
- * палитры; всё прочее → `undefined`.
21
+ * Нормализация цвета при ЧТЕНИИ: канонический ключ палитры → как есть; всё
22
+ * прочее (включая legacy-алиасы) → `undefined`.
23
23
  */
24
24
  export declare function normalizeColorKey(value: unknown): ProjectColorKey | undefined;
25
25
  export declare const tokenUsageSchema: z.ZodObject<{
@@ -124,7 +124,7 @@ export declare const sessionCreateSchema: z.ZodObject<{
124
124
  name: z.ZodOptional<z.ZodString>;
125
125
  title: z.ZodOptional<z.ZodString>;
126
126
  icon: z.ZodNullable<z.ZodOptional<z.ZodEnum<["code", "terminal", "rocket", "flask", "gamepad", "briefcase", "home", "globe", "leaf", "shield", "palette", "server", "phone", "database", "lightbulb", "music", "camera", "book", "heart", "folder", "chat", "cpu", "file", "file-code", "docs", "task", "todo", "bug", "robot", "brain", "git", "repo", "test", "chart", "star", "image", "calendar"]>>>;
127
- color: z.ZodNullable<z.ZodOptional<z.ZodEnum<["keyword", "string", "number", "type", "comment", "error", "primary", "success"]>>>;
127
+ color: z.ZodNullable<z.ZodOptional<z.ZodEnum<["a1", "a2", "a3", "a4", "a5", "a6", "a7", "a8", "a9", "a10", "a11", "a12", "a13", "a14", "a15", "a16"]>>>;
128
128
  projectId: z.ZodOptional<z.ZodString>;
129
129
  engine: z.ZodDefault<z.ZodEnum<["synth", "opencode", "cline"]>>;
130
130
  settings: z.ZodOptional<z.ZodObject<{
@@ -217,7 +217,7 @@ export declare const sessionCreateSchema: z.ZodObject<{
217
217
  name?: string | undefined;
218
218
  title?: string | undefined;
219
219
  icon?: "task" | "code" | "terminal" | "rocket" | "flask" | "gamepad" | "briefcase" | "home" | "globe" | "leaf" | "shield" | "palette" | "server" | "phone" | "database" | "lightbulb" | "music" | "camera" | "book" | "heart" | "folder" | "chat" | "cpu" | "file" | "file-code" | "docs" | "todo" | "bug" | "robot" | "brain" | "git" | "repo" | "test" | "chart" | "star" | "image" | "calendar" | null | undefined;
220
- color?: "string" | "number" | "type" | "keyword" | "comment" | "error" | "primary" | "success" | null | undefined;
220
+ color?: "a1" | "a2" | "a3" | "a4" | "a5" | "a6" | "a7" | "a8" | "a9" | "a10" | "a11" | "a12" | "a13" | "a14" | "a15" | "a16" | null | undefined;
221
221
  projectId?: string | undefined;
222
222
  settings?: {
223
223
  temperature: number;
@@ -252,7 +252,7 @@ export declare const sessionCreateSchema: z.ZodObject<{
252
252
  name?: string | undefined;
253
253
  title?: string | undefined;
254
254
  icon?: "task" | "code" | "terminal" | "rocket" | "flask" | "gamepad" | "briefcase" | "home" | "globe" | "leaf" | "shield" | "palette" | "server" | "phone" | "database" | "lightbulb" | "music" | "camera" | "book" | "heart" | "folder" | "chat" | "cpu" | "file" | "file-code" | "docs" | "todo" | "bug" | "robot" | "brain" | "git" | "repo" | "test" | "chart" | "star" | "image" | "calendar" | null | undefined;
255
- color?: "string" | "number" | "type" | "keyword" | "comment" | "error" | "primary" | "success" | null | undefined;
255
+ color?: "a1" | "a2" | "a3" | "a4" | "a5" | "a6" | "a7" | "a8" | "a9" | "a10" | "a11" | "a12" | "a13" | "a14" | "a15" | "a16" | null | undefined;
256
256
  projectId?: string | undefined;
257
257
  engine?: "synth" | "opencode" | "cline" | undefined;
258
258
  settings?: {
@@ -288,7 +288,7 @@ export declare const sessionCreateSchema: z.ZodObject<{
288
288
  export declare const sessionUpdateSchema: z.ZodObject<{
289
289
  name: z.ZodOptional<z.ZodString>;
290
290
  icon: z.ZodNullable<z.ZodOptional<z.ZodEnum<["code", "terminal", "rocket", "flask", "gamepad", "briefcase", "home", "globe", "leaf", "shield", "palette", "server", "phone", "database", "lightbulb", "music", "camera", "book", "heart", "folder", "chat", "cpu", "file", "file-code", "docs", "task", "todo", "bug", "robot", "brain", "git", "repo", "test", "chart", "star", "image", "calendar"]>>>;
291
- color: z.ZodNullable<z.ZodOptional<z.ZodEnum<["keyword", "string", "number", "type", "comment", "error", "primary", "success"]>>>;
291
+ color: z.ZodNullable<z.ZodOptional<z.ZodEnum<["a1", "a2", "a3", "a4", "a5", "a6", "a7", "a8", "a9", "a10", "a11", "a12", "a13", "a14", "a15", "a16"]>>>;
292
292
  projectId: z.ZodOptional<z.ZodString>;
293
293
  engine: z.ZodOptional<z.ZodEnum<["synth", "opencode", "cline"]>>;
294
294
  settings: z.ZodOptional<z.ZodObject<{
@@ -379,7 +379,7 @@ export declare const sessionUpdateSchema: z.ZodObject<{
379
379
  }, "strip", z.ZodTypeAny, {
380
380
  name?: string | undefined;
381
381
  icon?: "task" | "code" | "terminal" | "rocket" | "flask" | "gamepad" | "briefcase" | "home" | "globe" | "leaf" | "shield" | "palette" | "server" | "phone" | "database" | "lightbulb" | "music" | "camera" | "book" | "heart" | "folder" | "chat" | "cpu" | "file" | "file-code" | "docs" | "todo" | "bug" | "robot" | "brain" | "git" | "repo" | "test" | "chart" | "star" | "image" | "calendar" | null | undefined;
382
- color?: "string" | "number" | "type" | "keyword" | "comment" | "error" | "primary" | "success" | null | undefined;
382
+ color?: "a1" | "a2" | "a3" | "a4" | "a5" | "a6" | "a7" | "a8" | "a9" | "a10" | "a11" | "a12" | "a13" | "a14" | "a15" | "a16" | null | undefined;
383
383
  projectId?: string | undefined;
384
384
  engine?: "synth" | "opencode" | "cline" | undefined;
385
385
  settings?: z.objectOutputType<{
@@ -414,7 +414,7 @@ export declare const sessionUpdateSchema: z.ZodObject<{
414
414
  }, {
415
415
  name?: string | undefined;
416
416
  icon?: "task" | "code" | "terminal" | "rocket" | "flask" | "gamepad" | "briefcase" | "home" | "globe" | "leaf" | "shield" | "palette" | "server" | "phone" | "database" | "lightbulb" | "music" | "camera" | "book" | "heart" | "folder" | "chat" | "cpu" | "file" | "file-code" | "docs" | "todo" | "bug" | "robot" | "brain" | "git" | "repo" | "test" | "chart" | "star" | "image" | "calendar" | null | undefined;
417
- color?: "string" | "number" | "type" | "keyword" | "comment" | "error" | "primary" | "success" | null | undefined;
417
+ color?: "a1" | "a2" | "a3" | "a4" | "a5" | "a6" | "a7" | "a8" | "a9" | "a10" | "a11" | "a12" | "a13" | "a14" | "a15" | "a16" | null | undefined;
418
418
  projectId?: string | undefined;
419
419
  engine?: "synth" | "opencode" | "cline" | undefined;
420
420
  settings?: z.objectInputType<{
@@ -490,7 +490,7 @@ export declare const projectCreateSchema: z.ZodObject<{
490
490
  name: z.ZodString;
491
491
  description: z.ZodDefault<z.ZodString>;
492
492
  icon: z.ZodNullable<z.ZodOptional<z.ZodEnum<["code", "terminal", "rocket", "flask", "gamepad", "briefcase", "home", "globe", "leaf", "shield", "palette", "server", "phone", "database", "lightbulb", "music", "camera", "book", "heart", "folder", "chat", "cpu", "file", "file-code", "docs", "task", "todo", "bug", "robot", "brain", "git", "repo", "test", "chart", "star", "image", "calendar"]>>>;
493
- color: z.ZodNullable<z.ZodOptional<z.ZodEnum<["keyword", "string", "number", "type", "comment", "error", "primary", "success"]>>>;
493
+ color: z.ZodNullable<z.ZodOptional<z.ZodEnum<["a1", "a2", "a3", "a4", "a5", "a6", "a7", "a8", "a9", "a10", "a11", "a12", "a13", "a14", "a15", "a16"]>>>;
494
494
  workspace: z.ZodOptional<z.ZodString>;
495
495
  repos: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
496
496
  id: z.ZodOptional<z.ZodString>;
@@ -525,7 +525,7 @@ export declare const projectCreateSchema: z.ZodObject<{
525
525
  description: string;
526
526
  workspace?: string | undefined;
527
527
  icon?: "task" | "code" | "terminal" | "rocket" | "flask" | "gamepad" | "briefcase" | "home" | "globe" | "leaf" | "shield" | "palette" | "server" | "phone" | "database" | "lightbulb" | "music" | "camera" | "book" | "heart" | "folder" | "chat" | "cpu" | "file" | "file-code" | "docs" | "todo" | "bug" | "robot" | "brain" | "git" | "repo" | "test" | "chart" | "star" | "image" | "calendar" | null | undefined;
528
- color?: "string" | "number" | "type" | "keyword" | "comment" | "error" | "primary" | "success" | null | undefined;
528
+ color?: "a1" | "a2" | "a3" | "a4" | "a5" | "a6" | "a7" | "a8" | "a9" | "a10" | "a11" | "a12" | "a13" | "a14" | "a15" | "a16" | null | undefined;
529
529
  repos?: (string | {
530
530
  path: string;
531
531
  type?: "https" | "ssh" | undefined;
@@ -540,7 +540,7 @@ export declare const projectCreateSchema: z.ZodObject<{
540
540
  name: string;
541
541
  workspace?: string | undefined;
542
542
  icon?: "task" | "code" | "terminal" | "rocket" | "flask" | "gamepad" | "briefcase" | "home" | "globe" | "leaf" | "shield" | "palette" | "server" | "phone" | "database" | "lightbulb" | "music" | "camera" | "book" | "heart" | "folder" | "chat" | "cpu" | "file" | "file-code" | "docs" | "todo" | "bug" | "robot" | "brain" | "git" | "repo" | "test" | "chart" | "star" | "image" | "calendar" | null | undefined;
543
- color?: "string" | "number" | "type" | "keyword" | "comment" | "error" | "primary" | "success" | null | undefined;
543
+ color?: "a1" | "a2" | "a3" | "a4" | "a5" | "a6" | "a7" | "a8" | "a9" | "a10" | "a11" | "a12" | "a13" | "a14" | "a15" | "a16" | null | undefined;
544
544
  description?: string | undefined;
545
545
  repos?: (string | {
546
546
  path: string;
@@ -559,7 +559,7 @@ export declare const projectUpdateSchema: z.ZodObject<{
559
559
  currentTask: z.ZodOptional<z.ZodString>;
560
560
  invariants: z.ZodOptional<z.ZodString>;
561
561
  icon: z.ZodNullable<z.ZodOptional<z.ZodEnum<["code", "terminal", "rocket", "flask", "gamepad", "briefcase", "home", "globe", "leaf", "shield", "palette", "server", "phone", "database", "lightbulb", "music", "camera", "book", "heart", "folder", "chat", "cpu", "file", "file-code", "docs", "task", "todo", "bug", "robot", "brain", "git", "repo", "test", "chart", "star", "image", "calendar"]>>>;
562
- color: z.ZodNullable<z.ZodOptional<z.ZodEnum<["keyword", "string", "number", "type", "comment", "error", "primary", "success"]>>>;
562
+ color: z.ZodNullable<z.ZodOptional<z.ZodEnum<["a1", "a2", "a3", "a4", "a5", "a6", "a7", "a8", "a9", "a10", "a11", "a12", "a13", "a14", "a15", "a16"]>>>;
563
563
  workspace: z.ZodOptional<z.ZodString>;
564
564
  repos: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
565
565
  id: z.ZodOptional<z.ZodString>;
@@ -593,7 +593,7 @@ export declare const projectUpdateSchema: z.ZodObject<{
593
593
  workspace?: string | undefined;
594
594
  name?: string | undefined;
595
595
  icon?: "task" | "code" | "terminal" | "rocket" | "flask" | "gamepad" | "briefcase" | "home" | "globe" | "leaf" | "shield" | "palette" | "server" | "phone" | "database" | "lightbulb" | "music" | "camera" | "book" | "heart" | "folder" | "chat" | "cpu" | "file" | "file-code" | "docs" | "todo" | "bug" | "robot" | "brain" | "git" | "repo" | "test" | "chart" | "star" | "image" | "calendar" | null | undefined;
596
- color?: "string" | "number" | "type" | "keyword" | "comment" | "error" | "primary" | "success" | null | undefined;
596
+ color?: "a1" | "a2" | "a3" | "a4" | "a5" | "a6" | "a7" | "a8" | "a9" | "a10" | "a11" | "a12" | "a13" | "a14" | "a15" | "a16" | null | undefined;
597
597
  description?: string | undefined;
598
598
  repos?: (string | {
599
599
  path: string;
@@ -611,7 +611,7 @@ export declare const projectUpdateSchema: z.ZodObject<{
611
611
  workspace?: string | undefined;
612
612
  name?: string | undefined;
613
613
  icon?: "task" | "code" | "terminal" | "rocket" | "flask" | "gamepad" | "briefcase" | "home" | "globe" | "leaf" | "shield" | "palette" | "server" | "phone" | "database" | "lightbulb" | "music" | "camera" | "book" | "heart" | "folder" | "chat" | "cpu" | "file" | "file-code" | "docs" | "todo" | "bug" | "robot" | "brain" | "git" | "repo" | "test" | "chart" | "star" | "image" | "calendar" | null | undefined;
614
- color?: "string" | "number" | "type" | "keyword" | "comment" | "error" | "primary" | "success" | null | undefined;
614
+ color?: "a1" | "a2" | "a3" | "a4" | "a5" | "a6" | "a7" | "a8" | "a9" | "a10" | "a11" | "a12" | "a13" | "a14" | "a15" | "a16" | null | undefined;
615
615
  description?: string | undefined;
616
616
  repos?: (string | {
617
617
  path: string;
@@ -8,31 +8,11 @@ export const statusMessageTypeSchema = z.nativeEnum(StatusMessageType);
8
8
  /** Zod-схемы канонических ключей иконок/цветов (единые для project и session). */
9
9
  export const projectIconKeySchema = z.enum(PROJECT_ICON_KEYS);
10
10
  export const projectColorKeySchema = z.enum(PROJECT_COLOR_KEYS);
11
- /**
12
- * Legacy-алиасы цветов (нормализация при ЧТЕНИИ, не при записи):
13
- * `blue→primary`, `red→error`, `green→success`, а также CSS-переменные
14
- * `--primary`/`--status-info`/`--syntax-*`, которыми пользуются агенты.
15
- * `--status-info` отдельного ключа не имеет — трактуем как `primary`.
16
- */
17
- const COLOR_KEY_ALIASES = {
18
- blue: 'primary',
19
- red: 'error',
20
- green: 'success',
21
- '--primary': 'primary',
22
- '--status-info': 'primary',
23
- '--syntax-keyword': 'keyword',
24
- '--syntax-string': 'string',
25
- '--syntax-number': 'number',
26
- '--syntax-type': 'type',
27
- '--syntax-comment': 'comment',
28
- '--status-error': 'error',
29
- '--status-success': 'success',
30
- };
31
- /** true, если значение — канонический ключ иконки (без алиасов; для записи). */
11
+ /** true, если значение — канонический ключ иконки (для записи и чтения). */
32
12
  export function isProjectIconKey(value) {
33
13
  return typeof value === 'string' && PROJECT_ICON_KEYS.includes(value);
34
14
  }
35
- /** true, если значение — канонический ключ цвета (без алиасов; для записи). */
15
+ /** true, если значение — канонический ключ цвета (без алиасов; для записи и чтения). */
36
16
  export function isProjectColorKey(value) {
37
17
  return typeof value === 'string' && PROJECT_COLOR_KEYS.includes(value);
38
18
  }
@@ -44,14 +24,11 @@ export function normalizeIconKey(value) {
44
24
  return isProjectIconKey(value) ? value : undefined;
45
25
  }
46
26
  /**
47
- * Нормализация цвета при ЧТЕНИИ: канонический ключ или legacy-алиас → ключ
48
- * палитры; всё прочее → `undefined`.
27
+ * Нормализация цвета при ЧТЕНИИ: канонический ключ палитры → как есть; всё
28
+ * прочее (включая legacy-алиасы) → `undefined`.
49
29
  */
50
30
  export function normalizeColorKey(value) {
51
- if (typeof value !== 'string')
52
- return undefined;
53
- const canonical = COLOR_KEY_ALIASES[value] ?? value;
54
- return isProjectColorKey(canonical) ? canonical : undefined;
31
+ return isProjectColorKey(value) ? value : undefined;
55
32
  }
56
33
  export const tokenUsageSchema = z.object({
57
34
  inputTokens: z.number().int().min(0),
@@ -604,7 +604,7 @@ export interface Session {
604
604
  title?: string;
605
605
  /** Канонический ключ иконки (PROJECT_ICON_KEYS); legacy-значения → undefined. */
606
606
  icon?: string;
607
- /** Канонический ключ цвета (PROJECT_COLOR_KEYS); legacy-значения нормализуются. */
607
+ /** Канонический ключ цвета (PROJECT_COLOR_KEYS); невалидные значения сбрасываются. */
608
608
  color?: string;
609
609
  sessionOrigin: SessionOrigin;
610
610
  parentId?: string;
@@ -805,8 +805,11 @@ export interface Project {
805
805
  */
806
806
  export declare const PROJECT_ICON_KEYS: readonly ["code", "terminal", "rocket", "flask", "gamepad", "briefcase", "home", "globe", "leaf", "shield", "palette", "server", "phone", "database", "lightbulb", "music", "camera", "book", "heart", "folder", "chat", "cpu", "file", "file-code", "docs", "task", "todo", "bug", "robot", "brain", "git", "repo", "test", "chart", "star", "image", "calendar"];
807
807
  export type ProjectIconKey = (typeof PROJECT_ICON_KEYS)[number];
808
- /** Канонические ключи цветов проектов и сессий (единый список для server и UI). */
809
- export declare const PROJECT_COLOR_KEYS: readonly ["keyword", "string", "number", "type", "comment", "error", "primary", "success"];
808
+ /**
809
+ * Канонические ключи цветов проектов и сессий — 16 цветов палитры темы
810
+ * (`palette.colors[].key` в `a1..a16`; единый список для server и UI).
811
+ */
812
+ export declare const PROJECT_COLOR_KEYS: readonly ["a1", "a2", "a3", "a4", "a5", "a6", "a7", "a8", "a9", "a10", "a11", "a12", "a13", "a14", "a15", "a16"];
810
813
  export type ProjectColorKey = (typeof PROJECT_COLOR_KEYS)[number];
811
814
  export interface PlanColumn {
812
815
  id: string;
@@ -141,16 +141,15 @@ export const PROJECT_ICON_KEYS = [
141
141
  'image',
142
142
  'calendar',
143
143
  ];
144
- /** Канонические ключи цветов проектов и сессий (единый список для server и UI). */
144
+ /**
145
+ * Канонические ключи цветов проектов и сессий — 16 цветов палитры темы
146
+ * (`palette.colors[].key` в `a1..a16`; единый список для server и UI).
147
+ */
145
148
  export const PROJECT_COLOR_KEYS = [
146
- 'keyword',
147
- 'string',
148
- 'number',
149
- 'type',
150
- 'comment',
151
- 'error',
152
- 'primary',
153
- 'success',
149
+ 'a1', 'a2', 'a3', 'a4',
150
+ 'a5', 'a6', 'a7', 'a8',
151
+ 'a9', 'a10', 'a11', 'a12',
152
+ 'a13', 'a14', 'a15', 'a16',
154
153
  ];
155
154
  // --- Currency ---
156
155
  /** Валюта цен моделей. Отсутствует у модели → валюта провайдера → USD. */
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SYNTH_VERSION = "0.8.8";
1
+ export declare const SYNTH_VERSION = "0.9.0";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const SYNTH_VERSION = '0.8.8';
1
+ export const SYNTH_VERSION = '0.9.0';
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@itphx/synth-shared",
3
- "version": "0.8.8",
3
+ "version": "0.9.0",
4
+ "license": "MIT",
4
5
  "type": "module",
5
6
  "main": "./dist/index.js",
6
7
  "types": "./dist/index.d.ts",