@openspecui/core 3.10.0 → 3.11.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.
Files changed (76) hide show
  1. package/dist/{document-translation-BZ5QKjN0.d.mts → document-translation-AlZtjOt5.d.mts} +10 -7
  2. package/dist/{document-translation-BrE402YR.mjs → document-translation-Dnl1lz2K.mjs} +1 -1
  3. package/dist/document-translation.d.mts +2 -2
  4. package/dist/document-translation.mjs +2 -2
  5. package/dist/hosted-app.d.mts +1 -1
  6. package/dist/hosted-app.mjs +1 -1
  7. package/dist/index.d.mts +47 -37
  8. package/dist/index.mjs +240 -59
  9. package/dist/{local-download-profiles-BppI_PAq.mjs → local-download-profiles-CNDtMG2s.mjs} +7 -3
  10. package/dist/{local-download-profiles-Qu1932tV.d.mts → local-download-profiles-DISrU0mw.d.mts} +5 -1
  11. package/dist/local-download-profiles.d.mts +2 -2
  12. package/dist/local-download-profiles.mjs +1 -1
  13. package/dist/markdown-facts.d.mts +1 -1
  14. package/dist/markdown-facts.mjs +1 -1
  15. package/dist/{markdown-reading-DvLPaaY1.d.mts → markdown-reading-BaHZTf5f.d.mts} +1 -1
  16. package/dist/{markdown-reading-DYBp7qoI.mjs → markdown-reading-DSlcirYV.mjs} +1 -1
  17. package/dist/markdown-reading.d.mts +2 -2
  18. package/dist/markdown-reading.mjs +2 -2
  19. package/dist/{notifications-9vbSJQ8N.mjs → notifications-Xs9VPFWD.mjs} +2 -2
  20. package/dist/{notifications-D7tcKw71.d.mts → notifications-gGjGaYsF.d.mts} +9 -9
  21. package/dist/notifications.d.mts +2 -2
  22. package/dist/notifications.mjs +3 -3
  23. package/dist/{openspec-annotations-DVbFBz5J.d.mts → openspec-annotations-DYyP_HQh.d.mts} +2 -2
  24. package/dist/{openspec-annotations-BxBoWlyv.mjs → openspec-annotations-dNJentSE.mjs} +2 -2
  25. package/dist/openspec-annotations.d.mts +3 -3
  26. package/dist/openspec-annotations.mjs +3 -3
  27. package/dist/{openspec-projection-Bby9mX80.d.mts → openspec-projection-BojcJ9zl.d.mts} +3 -3
  28. package/dist/{openspec-projection-Cd6oydiK.mjs → openspec-projection-yqwKIKnp.mjs} +2 -2
  29. package/dist/openspec-projection.d.mts +5 -5
  30. package/dist/openspec-projection.mjs +4 -4
  31. package/dist/opsx-display-path.d.mts +1 -1
  32. package/dist/opsx-display-path.mjs +1 -1
  33. package/dist/{opsx-entity-DUJvjvrv.d.mts → opsx-entity-BdyGTVs_.d.mts} +19 -19
  34. package/dist/opsx-entity.d.mts +2 -2
  35. package/dist/opsx-entity.mjs +1 -1
  36. package/dist/{opsx-schema-detail-CUG4dYdw.d.mts → opsx-schema-detail-Cf8YIflR.d.mts} +1 -1
  37. package/dist/opsx-schema-detail.d.mts +3 -3
  38. package/dist/opsx-schema-detail.mjs +1 -1
  39. package/dist/{schemas-CqgvXgGV.d.mts → schemas-DV6yABO9.d.mts} +52 -44
  40. package/dist/{sounds-DABkmyg9.d.mts → sounds-C906qHTJ.d.mts} +5 -5
  41. package/dist/sounds.d.mts +1 -1
  42. package/dist/sounds.mjs +1 -1
  43. package/dist/{terminal-audio-DVz0HA2H.mjs → terminal-audio-CUs0sqEO.mjs} +1 -1
  44. package/dist/{terminal-audio-CDyXOIWx.d.mts → terminal-audio-D6dE8O1_.d.mts} +2 -2
  45. package/dist/terminal-audio.d.mts +2 -2
  46. package/dist/terminal-audio.mjs +2 -2
  47. package/dist/terminal-control.d.mts +2 -2
  48. package/dist/terminal-control.mjs +1 -1
  49. package/dist/{terminal-invocation-BnsT7ae7.d.mts → terminal-invocation-Cz0vfgkw.d.mts} +39 -39
  50. package/dist/terminal-invocation.d.mts +1 -1
  51. package/dist/terminal-invocation.mjs +1 -1
  52. package/dist/terminal-theme.d.mts +1 -1
  53. package/dist/terminal-theme.mjs +1 -1
  54. package/dist/translation-language-pair-D6f5u70K.mjs +51 -0
  55. package/dist/translation-language-pair-DaSvW83F.d.mts +18 -0
  56. package/dist/translation-language-pair.d.mts +2 -0
  57. package/dist/translation-language-pair.mjs +3 -0
  58. package/dist/{translator-C3LT7PqW.mjs → translator-B0T5VL9k.mjs} +94 -2
  59. package/dist/translator-tTXEGRdz.d.mts +1884 -0
  60. package/dist/translator.d.mts +2 -2
  61. package/dist/translator.mjs +2 -2
  62. package/package.json +9 -3
  63. package/dist/translator-C3W7bTIN.d.mts +0 -780
  64. /package/dist/{hosted-app-CxpQvD1s.mjs → hosted-app-CNZhVLM_.mjs} +0 -0
  65. /package/dist/{hosted-app-FuxG4-qA.d.mts → hosted-app-CegGJlNp.d.mts} +0 -0
  66. /package/dist/{markdown-facts-B5RvYPKF.mjs → markdown-facts-DbE1F2LD.mjs} +0 -0
  67. /package/dist/{markdown-facts-DUsbNcjh.d.mts → markdown-facts-DempqdIX.d.mts} +0 -0
  68. /package/dist/{opsx-display-path-Bf89ZyM5.mjs → opsx-display-path-Cw-5MTRg.mjs} +0 -0
  69. /package/dist/{opsx-display-path-CbO6K0Qq.d.mts → opsx-display-path-Ky9qnntM.d.mts} +0 -0
  70. /package/dist/{opsx-entity-BR_6djiM.mjs → opsx-entity-C_51ZEuP.mjs} +0 -0
  71. /package/dist/{opsx-schema-detail-5Wv1oWLT.mjs → opsx-schema-detail-Bu415_NB.mjs} +0 -0
  72. /package/dist/{sounds-CB_gpY-y.mjs → sounds-50cYk5b0.mjs} +0 -0
  73. /package/dist/{terminal-control-CNcEd9Rl.mjs → terminal-control-CYZhk7FM.mjs} +0 -0
  74. /package/dist/{terminal-invocation-wUmtJMPl.mjs → terminal-invocation-IopdwXKL.mjs} +0 -0
  75. /package/dist/{terminal-theme-CHkfTDk4.mjs → terminal-theme-BquTqZIO.mjs} +0 -0
  76. /package/dist/{terminal-theme-x_vAHvok.d.mts → terminal-theme-CH-VSrAq.d.mts} +0 -0
@@ -13,8 +13,8 @@ declare const PtySessionInfoSchema: z.ZodObject<{
13
13
  closeTip: z.ZodOptional<z.ZodString>;
14
14
  closeCallbackUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
15
15
  }, "strip", z.ZodTypeAny, {
16
- title: string;
17
16
  id: string;
17
+ title: string;
18
18
  command: string;
19
19
  args: string[];
20
20
  platform: "windows" | "macos" | "common";
@@ -23,8 +23,8 @@ declare const PtySessionInfoSchema: z.ZodObject<{
23
23
  closeTip?: string | undefined;
24
24
  closeCallbackUrl?: string | Record<string, string> | undefined;
25
25
  }, {
26
- title: string;
27
26
  id: string;
27
+ title: string;
28
28
  command: string;
29
29
  args: string[];
30
30
  platform: "windows" | "macos" | "common";
@@ -315,8 +315,8 @@ declare const PtyListResponseSchema: z.ZodObject<{
315
315
  closeTip: z.ZodOptional<z.ZodString>;
316
316
  closeCallbackUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
317
317
  }, "strip", z.ZodTypeAny, {
318
- title: string;
319
318
  id: string;
319
+ title: string;
320
320
  command: string;
321
321
  args: string[];
322
322
  platform: "windows" | "macos" | "common";
@@ -325,8 +325,8 @@ declare const PtyListResponseSchema: z.ZodObject<{
325
325
  closeTip?: string | undefined;
326
326
  closeCallbackUrl?: string | Record<string, string> | undefined;
327
327
  }, {
328
- title: string;
329
328
  id: string;
329
+ title: string;
330
330
  command: string;
331
331
  args: string[];
332
332
  platform: "windows" | "macos" | "common";
@@ -338,8 +338,8 @@ declare const PtyListResponseSchema: z.ZodObject<{
338
338
  }, "strip", z.ZodTypeAny, {
339
339
  type: "list";
340
340
  sessions: {
341
- title: string;
342
341
  id: string;
342
+ title: string;
343
343
  command: string;
344
344
  args: string[];
345
345
  platform: "windows" | "macos" | "common";
@@ -351,8 +351,8 @@ declare const PtyListResponseSchema: z.ZodObject<{
351
351
  }, {
352
352
  type: "list";
353
353
  sessions: {
354
- title: string;
355
354
  id: string;
355
+ title: string;
356
356
  command: string;
357
357
  args: string[];
358
358
  platform: "windows" | "macos" | "common";
@@ -463,12 +463,12 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
463
463
  value: number | null;
464
464
  type: "progress";
465
465
  sessionId: string;
466
- state: "clear" | "set" | "warning" | "error" | "indeterminate";
466
+ state: "set" | "clear" | "warning" | "error" | "indeterminate";
467
467
  }, {
468
468
  value: number | null;
469
469
  type: "progress";
470
470
  sessionId: string;
471
- state: "clear" | "set" | "warning" | "error" | "indeterminate";
471
+ state: "set" | "clear" | "warning" | "error" | "indeterminate";
472
472
  }>, z.ZodObject<{
473
473
  type: z.ZodLiteral<"prompt-state">;
474
474
  sessionId: z.ZodString;
@@ -521,8 +521,8 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
521
521
  closeTip: z.ZodOptional<z.ZodString>;
522
522
  closeCallbackUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
523
523
  }, "strip", z.ZodTypeAny, {
524
- title: string;
525
524
  id: string;
525
+ title: string;
526
526
  command: string;
527
527
  args: string[];
528
528
  platform: "windows" | "macos" | "common";
@@ -531,8 +531,8 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
531
531
  closeTip?: string | undefined;
532
532
  closeCallbackUrl?: string | Record<string, string> | undefined;
533
533
  }, {
534
- title: string;
535
534
  id: string;
535
+ title: string;
536
536
  command: string;
537
537
  args: string[];
538
538
  platform: "windows" | "macos" | "common";
@@ -544,8 +544,8 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
544
544
  }, "strip", z.ZodTypeAny, {
545
545
  type: "list";
546
546
  sessions: {
547
- title: string;
548
547
  id: string;
548
+ title: string;
549
549
  command: string;
550
550
  args: string[];
551
551
  platform: "windows" | "macos" | "common";
@@ -557,8 +557,8 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
557
557
  }, {
558
558
  type: "list";
559
559
  sessions: {
560
- title: string;
561
560
  id: string;
561
+ title: string;
562
562
  command: string;
563
563
  args: string[];
564
564
  platform: "windows" | "macos" | "common";
@@ -605,15 +605,15 @@ declare const TerminalShellProfileSchema: z.ZodObject<{
605
605
  source: z.ZodDefault<z.ZodEnum<["builtin", "custom"]>>;
606
606
  quoteStyle: z.ZodDefault<z.ZodEnum<["posix", "cmd", "powershell"]>>;
607
607
  }, "strip", z.ZodTypeAny, {
608
+ id: string;
608
609
  label: string;
609
610
  source: "custom" | "builtin";
610
- id: string;
611
611
  command: string;
612
612
  args: string[];
613
613
  quoteStyle: "posix" | "cmd" | "powershell";
614
614
  }, {
615
- label: string;
616
615
  id: string;
616
+ label: string;
617
617
  command: string;
618
618
  source?: "custom" | "builtin" | undefined;
619
619
  args?: string[] | undefined;
@@ -633,17 +633,17 @@ declare const TerminalCommandFieldSchema: z.ZodObject<{
633
633
  }, "strip", z.ZodTypeAny, {
634
634
  options: string[];
635
635
  type: "boolean" | "text" | "textarea" | "select";
636
- label: string;
637
636
  id: string;
638
637
  required: boolean;
638
+ label: string;
639
639
  advanced: boolean;
640
640
  description?: string | undefined;
641
641
  placeholder?: string | undefined;
642
642
  defaultValue?: string | boolean | undefined;
643
643
  }, {
644
644
  type: "boolean" | "text" | "textarea" | "select";
645
- label: string;
646
645
  id: string;
646
+ label: string;
647
647
  options?: string[] | undefined;
648
648
  required?: boolean | undefined;
649
649
  description?: string | undefined;
@@ -1000,17 +1000,17 @@ declare const TerminalSpawnCommandSchema: z.ZodObject<{
1000
1000
  }, "strip", z.ZodTypeAny, {
1001
1001
  options: string[];
1002
1002
  type: "boolean" | "text" | "textarea" | "select";
1003
- label: string;
1004
1003
  id: string;
1005
1004
  required: boolean;
1005
+ label: string;
1006
1006
  advanced: boolean;
1007
1007
  description?: string | undefined;
1008
1008
  placeholder?: string | undefined;
1009
1009
  defaultValue?: string | boolean | undefined;
1010
1010
  }, {
1011
1011
  type: "boolean" | "text" | "textarea" | "select";
1012
- label: string;
1013
1012
  id: string;
1013
+ label: string;
1014
1014
  options?: string[] | undefined;
1015
1015
  required?: boolean | undefined;
1016
1016
  description?: string | undefined;
@@ -1172,9 +1172,9 @@ declare const TerminalSpawnCommandSchema: z.ZodObject<{
1172
1172
  shellProfileId: z.ZodOptional<z.ZodString>;
1173
1173
  source: z.ZodDefault<z.ZodEnum<["builtin", "custom"]>>;
1174
1174
  }, "strip", z.ZodTypeAny, {
1175
+ id: string;
1175
1176
  label: string;
1176
1177
  source: "custom" | "builtin";
1177
- id: string;
1178
1178
  command: string;
1179
1179
  args: ({
1180
1180
  value: string;
@@ -1192,9 +1192,9 @@ declare const TerminalSpawnCommandSchema: z.ZodObject<{
1192
1192
  fields: {
1193
1193
  options: string[];
1194
1194
  type: "boolean" | "text" | "textarea" | "select";
1195
- label: string;
1196
1195
  id: string;
1197
1196
  required: boolean;
1197
+ label: string;
1198
1198
  advanced: boolean;
1199
1199
  description?: string | undefined;
1200
1200
  placeholder?: string | undefined;
@@ -1236,11 +1236,10 @@ declare const TerminalSpawnCommandSchema: z.ZodObject<{
1236
1236
  } | undefined;
1237
1237
  shellProfileId?: string | undefined;
1238
1238
  }, {
1239
- label: string;
1240
1239
  id: string;
1240
+ label: string;
1241
1241
  command: string;
1242
1242
  source?: "custom" | "builtin" | undefined;
1243
- description?: string | undefined;
1244
1243
  args?: ({
1245
1244
  value: string;
1246
1245
  kind: "literal";
@@ -1254,10 +1253,11 @@ declare const TerminalSpawnCommandSchema: z.ZodObject<{
1254
1253
  fieldId: string;
1255
1254
  flag: string;
1256
1255
  })[] | undefined;
1256
+ description?: string | undefined;
1257
1257
  fields?: {
1258
1258
  type: "boolean" | "text" | "textarea" | "select";
1259
- label: string;
1260
1259
  id: string;
1260
+ label: string;
1261
1261
  options?: string[] | undefined;
1262
1262
  required?: boolean | undefined;
1263
1263
  description?: string | undefined;
@@ -1311,15 +1311,15 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1311
1311
  source: z.ZodDefault<z.ZodEnum<["builtin", "custom"]>>;
1312
1312
  quoteStyle: z.ZodDefault<z.ZodEnum<["posix", "cmd", "powershell"]>>;
1313
1313
  }, "strip", z.ZodTypeAny, {
1314
+ id: string;
1314
1315
  label: string;
1315
1316
  source: "custom" | "builtin";
1316
- id: string;
1317
1317
  command: string;
1318
1318
  args: string[];
1319
1319
  quoteStyle: "posix" | "cmd" | "powershell";
1320
1320
  }, {
1321
- label: string;
1322
1321
  id: string;
1322
+ label: string;
1323
1323
  command: string;
1324
1324
  source?: "custom" | "builtin" | undefined;
1325
1325
  args?: string[] | undefined;
@@ -1380,17 +1380,17 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1380
1380
  }, "strip", z.ZodTypeAny, {
1381
1381
  options: string[];
1382
1382
  type: "boolean" | "text" | "textarea" | "select";
1383
- label: string;
1384
1383
  id: string;
1385
1384
  required: boolean;
1385
+ label: string;
1386
1386
  advanced: boolean;
1387
1387
  description?: string | undefined;
1388
1388
  placeholder?: string | undefined;
1389
1389
  defaultValue?: string | boolean | undefined;
1390
1390
  }, {
1391
1391
  type: "boolean" | "text" | "textarea" | "select";
1392
- label: string;
1393
1392
  id: string;
1393
+ label: string;
1394
1394
  options?: string[] | undefined;
1395
1395
  required?: boolean | undefined;
1396
1396
  description?: string | undefined;
@@ -1552,9 +1552,9 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1552
1552
  shellProfileId: z.ZodOptional<z.ZodString>;
1553
1553
  source: z.ZodDefault<z.ZodEnum<["builtin", "custom"]>>;
1554
1554
  }, "strip", z.ZodTypeAny, {
1555
+ id: string;
1555
1556
  label: string;
1556
1557
  source: "custom" | "builtin";
1557
- id: string;
1558
1558
  command: string;
1559
1559
  args: ({
1560
1560
  value: string;
@@ -1572,9 +1572,9 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1572
1572
  fields: {
1573
1573
  options: string[];
1574
1574
  type: "boolean" | "text" | "textarea" | "select";
1575
- label: string;
1576
1575
  id: string;
1577
1576
  required: boolean;
1577
+ label: string;
1578
1578
  advanced: boolean;
1579
1579
  description?: string | undefined;
1580
1580
  placeholder?: string | undefined;
@@ -1616,11 +1616,10 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1616
1616
  } | undefined;
1617
1617
  shellProfileId?: string | undefined;
1618
1618
  }, {
1619
- label: string;
1620
1619
  id: string;
1620
+ label: string;
1621
1621
  command: string;
1622
1622
  source?: "custom" | "builtin" | undefined;
1623
- description?: string | undefined;
1624
1623
  args?: ({
1625
1624
  value: string;
1626
1625
  kind: "literal";
@@ -1634,10 +1633,11 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1634
1633
  fieldId: string;
1635
1634
  flag: string;
1636
1635
  })[] | undefined;
1636
+ description?: string | undefined;
1637
1637
  fields?: {
1638
1638
  type: "boolean" | "text" | "textarea" | "select";
1639
- label: string;
1640
1639
  id: string;
1640
+ label: string;
1641
1641
  options?: string[] | undefined;
1642
1642
  required?: boolean | undefined;
1643
1643
  description?: string | undefined;
@@ -1682,17 +1682,17 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1682
1682
  }>, "many">>;
1683
1683
  }, "strip", z.ZodTypeAny, {
1684
1684
  customShellProfiles: {
1685
+ id: string;
1685
1686
  label: string;
1686
1687
  source: "custom" | "builtin";
1687
- id: string;
1688
1688
  command: string;
1689
1689
  args: string[];
1690
1690
  quoteStyle: "posix" | "cmd" | "powershell";
1691
1691
  }[];
1692
1692
  customSpawnCommands: {
1693
+ id: string;
1693
1694
  label: string;
1694
1695
  source: "custom" | "builtin";
1695
- id: string;
1696
1696
  command: string;
1697
1697
  args: ({
1698
1698
  value: string;
@@ -1710,9 +1710,9 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1710
1710
  fields: {
1711
1711
  options: string[];
1712
1712
  type: "boolean" | "text" | "textarea" | "select";
1713
- label: string;
1714
1713
  id: string;
1715
1714
  required: boolean;
1715
+ label: string;
1716
1716
  advanced: boolean;
1717
1717
  description?: string | undefined;
1718
1718
  placeholder?: string | undefined;
@@ -1758,19 +1758,18 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1758
1758
  }, {
1759
1759
  defaultShellProfileId?: string | undefined;
1760
1760
  customShellProfiles?: {
1761
- label: string;
1762
1761
  id: string;
1762
+ label: string;
1763
1763
  command: string;
1764
1764
  source?: "custom" | "builtin" | undefined;
1765
1765
  args?: string[] | undefined;
1766
1766
  quoteStyle?: "posix" | "cmd" | "powershell" | undefined;
1767
1767
  }[] | undefined;
1768
1768
  customSpawnCommands?: {
1769
- label: string;
1770
1769
  id: string;
1770
+ label: string;
1771
1771
  command: string;
1772
1772
  source?: "custom" | "builtin" | undefined;
1773
- description?: string | undefined;
1774
1773
  args?: ({
1775
1774
  value: string;
1776
1775
  kind: "literal";
@@ -1784,10 +1783,11 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1784
1783
  fieldId: string;
1785
1784
  flag: string;
1786
1785
  })[] | undefined;
1786
+ description?: string | undefined;
1787
1787
  fields?: {
1788
1788
  type: "boolean" | "text" | "textarea" | "select";
1789
- label: string;
1790
1789
  id: string;
1790
+ label: string;
1791
1791
  options?: string[] | undefined;
1792
1792
  required?: boolean | undefined;
1793
1793
  description?: string | undefined;
@@ -1,2 +1,2 @@
1
- import { A as renderTerminalSpawnCommand, C as TerminalSpawnCommand, D as getTerminalCommandParameters, E as getTerminalCommandDefaultValues, M as resolveTerminalShellDefaults, O as quoteTerminalShellArg, S as TerminalShellQuoteStyleSchema, T as fieldsToTerminalCommandParameters, _ as TerminalShellDefaults, a as TerminalCommandBuilder, b as TerminalShellProfileSchema, c as TerminalCommandFieldSchema, d as TerminalCommandJsonSchema, f as TerminalCommandJsonSchemaProperty, g as TerminalInvocationSettingsSchema, h as TerminalInvocationSettings, i as TerminalCommandArgument, j as renderTerminalSpawnCommandLine, k as renderTerminalCommandArgs, l as TerminalCommandFieldValue, m as TerminalCommandRenderResult, n as TERMINAL_COMMAND_FIELD_TYPE_VALUES, o as TerminalCommandBuilderPart, p as TerminalCommandParameters, r as TERMINAL_SHELL_QUOTE_STYLE_VALUES, s as TerminalCommandField, t as BUILTIN_TERMINAL_SPAWN_COMMANDS, u as TerminalCommandFieldValues, v as TerminalShellEnv, w as TerminalSpawnCommandSchema, x as TerminalShellQuoteStyle, y as TerminalShellProfile } from "./terminal-invocation-BnsT7ae7.mjs";
1
+ import { A as renderTerminalSpawnCommand, C as TerminalSpawnCommand, D as getTerminalCommandParameters, E as getTerminalCommandDefaultValues, M as resolveTerminalShellDefaults, O as quoteTerminalShellArg, S as TerminalShellQuoteStyleSchema, T as fieldsToTerminalCommandParameters, _ as TerminalShellDefaults, a as TerminalCommandBuilder, b as TerminalShellProfileSchema, c as TerminalCommandFieldSchema, d as TerminalCommandJsonSchema, f as TerminalCommandJsonSchemaProperty, g as TerminalInvocationSettingsSchema, h as TerminalInvocationSettings, i as TerminalCommandArgument, j as renderTerminalSpawnCommandLine, k as renderTerminalCommandArgs, l as TerminalCommandFieldValue, m as TerminalCommandRenderResult, n as TERMINAL_COMMAND_FIELD_TYPE_VALUES, o as TerminalCommandBuilderPart, p as TerminalCommandParameters, r as TERMINAL_SHELL_QUOTE_STYLE_VALUES, s as TerminalCommandField, t as BUILTIN_TERMINAL_SPAWN_COMMANDS, u as TerminalCommandFieldValues, v as TerminalShellEnv, w as TerminalSpawnCommandSchema, x as TerminalShellQuoteStyle, y as TerminalShellProfile } from "./terminal-invocation-Cz0vfgkw.mjs";
2
2
  export { BUILTIN_TERMINAL_SPAWN_COMMANDS, TERMINAL_COMMAND_FIELD_TYPE_VALUES, TERMINAL_SHELL_QUOTE_STYLE_VALUES, TerminalCommandArgument, TerminalCommandBuilder, TerminalCommandBuilderPart, TerminalCommandField, TerminalCommandFieldSchema, TerminalCommandFieldValue, TerminalCommandFieldValues, TerminalCommandJsonSchema, TerminalCommandJsonSchemaProperty, TerminalCommandParameters, TerminalCommandRenderResult, TerminalInvocationSettings, TerminalInvocationSettingsSchema, TerminalShellDefaults, TerminalShellEnv, TerminalShellProfile, TerminalShellProfileSchema, TerminalShellQuoteStyle, TerminalShellQuoteStyleSchema, TerminalSpawnCommand, TerminalSpawnCommandSchema, fieldsToTerminalCommandParameters, getTerminalCommandDefaultValues, getTerminalCommandParameters, quoteTerminalShellArg, renderTerminalCommandArgs, renderTerminalSpawnCommand, renderTerminalSpawnCommandLine, resolveTerminalShellDefaults };
@@ -1,3 +1,3 @@
1
- import { a as TerminalInvocationSettingsSchema, c as TerminalSpawnCommandSchema, d as getTerminalCommandParameters, f as quoteTerminalShellArg, g as resolveTerminalShellDefaults, h as renderTerminalSpawnCommandLine, i as TerminalCommandFieldSchema, l as fieldsToTerminalCommandParameters, m as renderTerminalSpawnCommand, n as TERMINAL_COMMAND_FIELD_TYPE_VALUES, o as TerminalShellProfileSchema, p as renderTerminalCommandArgs, r as TERMINAL_SHELL_QUOTE_STYLE_VALUES, s as TerminalShellQuoteStyleSchema, t as BUILTIN_TERMINAL_SPAWN_COMMANDS, u as getTerminalCommandDefaultValues } from "./terminal-invocation-wUmtJMPl.mjs";
1
+ import { a as TerminalInvocationSettingsSchema, c as TerminalSpawnCommandSchema, d as getTerminalCommandParameters, f as quoteTerminalShellArg, g as resolveTerminalShellDefaults, h as renderTerminalSpawnCommandLine, i as TerminalCommandFieldSchema, l as fieldsToTerminalCommandParameters, m as renderTerminalSpawnCommand, n as TERMINAL_COMMAND_FIELD_TYPE_VALUES, o as TerminalShellProfileSchema, p as renderTerminalCommandArgs, r as TERMINAL_SHELL_QUOTE_STYLE_VALUES, s as TerminalShellQuoteStyleSchema, t as BUILTIN_TERMINAL_SPAWN_COMMANDS, u as getTerminalCommandDefaultValues } from "./terminal-invocation-IopdwXKL.mjs";
2
2
 
3
3
  export { BUILTIN_TERMINAL_SPAWN_COMMANDS, TERMINAL_COMMAND_FIELD_TYPE_VALUES, TERMINAL_SHELL_QUOTE_STYLE_VALUES, TerminalCommandFieldSchema, TerminalInvocationSettingsSchema, TerminalShellProfileSchema, TerminalShellQuoteStyleSchema, TerminalSpawnCommandSchema, fieldsToTerminalCommandParameters, getTerminalCommandDefaultValues, getTerminalCommandParameters, quoteTerminalShellArg, renderTerminalCommandArgs, renderTerminalSpawnCommand, renderTerminalSpawnCommandLine, resolveTerminalShellDefaults };
@@ -1,2 +1,2 @@
1
- import { a as TERMINAL_THEME_VALUES, i as TERMINAL_THEME_MODE_VALUES, n as DEFAULT_TERMINAL_LIGHT_THEME, o as TerminalThemeId, r as DEFAULT_TERMINAL_THEME_MODE, s as TerminalThemeMode, t as DEFAULT_TERMINAL_DARK_THEME } from "./terminal-theme-x_vAHvok.mjs";
1
+ import { a as TERMINAL_THEME_VALUES, i as TERMINAL_THEME_MODE_VALUES, n as DEFAULT_TERMINAL_LIGHT_THEME, o as TerminalThemeId, r as DEFAULT_TERMINAL_THEME_MODE, s as TerminalThemeMode, t as DEFAULT_TERMINAL_DARK_THEME } from "./terminal-theme-CH-VSrAq.mjs";
2
2
  export { DEFAULT_TERMINAL_DARK_THEME, DEFAULT_TERMINAL_LIGHT_THEME, DEFAULT_TERMINAL_THEME_MODE, TERMINAL_THEME_MODE_VALUES, TERMINAL_THEME_VALUES, TerminalThemeId, TerminalThemeMode };
@@ -1,3 +1,3 @@
1
- import { a as TERMINAL_THEME_VALUES, i as TERMINAL_THEME_MODE_VALUES, n as DEFAULT_TERMINAL_LIGHT_THEME, r as DEFAULT_TERMINAL_THEME_MODE, t as DEFAULT_TERMINAL_DARK_THEME } from "./terminal-theme-CHkfTDk4.mjs";
1
+ import { a as TERMINAL_THEME_VALUES, i as TERMINAL_THEME_MODE_VALUES, n as DEFAULT_TERMINAL_LIGHT_THEME, r as DEFAULT_TERMINAL_THEME_MODE, t as DEFAULT_TERMINAL_DARK_THEME } from "./terminal-theme-BquTqZIO.mjs";
2
2
 
3
3
  export { DEFAULT_TERMINAL_DARK_THEME, DEFAULT_TERMINAL_LIGHT_THEME, DEFAULT_TERMINAL_THEME_MODE, TERMINAL_THEME_MODE_VALUES, TERMINAL_THEME_VALUES };
@@ -0,0 +1,51 @@
1
+ //#region src/translation-language-pair.ts
2
+ const OPUS_MT_DIRECTION_PATTERN = /^opus-mt-([a-z]{2,3})-([a-z]{2,3})$/i;
3
+ function inferLocalDirectionalModelLanguagePair(model) {
4
+ const modelName = model?.trim().split("/").pop();
5
+ if (!modelName) return null;
6
+ const match = OPUS_MT_DIRECTION_PATTERN.exec(modelName);
7
+ if (!match) return null;
8
+ const [, sourceLanguage, targetLanguage] = match;
9
+ if (!sourceLanguage || !targetLanguage) return null;
10
+ return {
11
+ sourceLanguage: normalizeLanguageCode(sourceLanguage),
12
+ targetLanguage: normalizeLanguageCode(targetLanguage)
13
+ };
14
+ }
15
+ function checkLocalDirectionalModelLanguagePair(input) {
16
+ const expected = inferLocalDirectionalModelLanguagePair(input.model);
17
+ if (!expected) return { supported: true };
18
+ if (!areCompatibleLanguageTags(expected.targetLanguage, input.targetLanguage)) return {
19
+ supported: false,
20
+ expected,
21
+ message: `Selected local model supports ${formatLanguagePair(expected)}, but document translation is configured for target ${input.targetLanguage}.`
22
+ };
23
+ if (input.sourceLanguage && !areCompatibleLanguageTags(expected.sourceLanguage, input.sourceLanguage)) return {
24
+ supported: false,
25
+ expected,
26
+ message: `Selected local model supports ${formatLanguagePair(expected)}, but document segment was detected as ${input.sourceLanguage} -> ${input.targetLanguage}.`
27
+ };
28
+ return {
29
+ supported: true,
30
+ expected
31
+ };
32
+ }
33
+ function areCompatibleLanguageTags(expected, actual) {
34
+ const expectedNormalized = normalizeLanguageTag(expected);
35
+ const actualNormalized = normalizeLanguageTag(actual);
36
+ if (!expectedNormalized || !actualNormalized) return false;
37
+ if (expectedNormalized === actualNormalized) return true;
38
+ return expectedNormalized.split("-")[0] === actualNormalized.split("-")[0];
39
+ }
40
+ function normalizeLanguageCode(language) {
41
+ return language.trim().toLowerCase().replace(/_/g, "-");
42
+ }
43
+ function normalizeLanguageTag(language) {
44
+ return normalizeLanguageCode(language);
45
+ }
46
+ function formatLanguagePair(pair) {
47
+ return `${pair.sourceLanguage} -> ${pair.targetLanguage}`;
48
+ }
49
+
50
+ //#endregion
51
+ export { inferLocalDirectionalModelLanguagePair as n, checkLocalDirectionalModelLanguagePair as t };
@@ -0,0 +1,18 @@
1
+ //#region src/translation-language-pair.d.ts
2
+ interface TranslationLanguagePair {
3
+ sourceLanguage: string;
4
+ targetLanguage: string;
5
+ }
6
+ interface LocalDirectionalModelLanguagePairCheck {
7
+ supported: boolean;
8
+ expected?: TranslationLanguagePair;
9
+ message?: string;
10
+ }
11
+ declare function inferLocalDirectionalModelLanguagePair(model: string | undefined): TranslationLanguagePair | null;
12
+ declare function checkLocalDirectionalModelLanguagePair(input: {
13
+ model: string | undefined;
14
+ sourceLanguage?: string;
15
+ targetLanguage: string;
16
+ }): LocalDirectionalModelLanguagePairCheck;
17
+ //#endregion
18
+ export { inferLocalDirectionalModelLanguagePair as i, TranslationLanguagePair as n, checkLocalDirectionalModelLanguagePair as r, LocalDirectionalModelLanguagePairCheck as t };
@@ -0,0 +1,2 @@
1
+ import { i as inferLocalDirectionalModelLanguagePair, n as TranslationLanguagePair, r as checkLocalDirectionalModelLanguagePair, t as LocalDirectionalModelLanguagePairCheck } from "./translation-language-pair-DaSvW83F.mjs";
2
+ export { LocalDirectionalModelLanguagePairCheck, TranslationLanguagePair, checkLocalDirectionalModelLanguagePair, inferLocalDirectionalModelLanguagePair };
@@ -0,0 +1,3 @@
1
+ import { n as inferLocalDirectionalModelLanguagePair, t as checkLocalDirectionalModelLanguagePair } from "./translation-language-pair-D6f5u70K.mjs";
2
+
3
+ export { checkLocalDirectionalModelLanguagePair, inferLocalDirectionalModelLanguagePair };
@@ -23,7 +23,11 @@ const LocalModelDownloadStatusSchema = z.enum([
23
23
  const TranslationDownloadFilePlanSchema = z.object({
24
24
  path: z.string().min(1),
25
25
  sizeBytes: z.number().int().nonnegative().optional(),
26
- required: z.boolean()
26
+ required: z.boolean(),
27
+ etag: z.string().min(1).optional(),
28
+ revision: z.string().min(1).optional(),
29
+ sourceUrl: z.string().min(1).optional(),
30
+ raw: z.unknown().optional()
27
31
  });
28
32
  const TranslationDownloadGroupPlanSchema = z.object({
29
33
  id: z.string().min(1),
@@ -32,14 +36,97 @@ const TranslationDownloadGroupPlanSchema = z.object({
32
36
  profile: z.string().min(1).optional(),
33
37
  dtype: z.string().min(1).optional(),
34
38
  estimatedTotalBytes: z.number().int().nonnegative().optional(),
39
+ baseGroupId: z.string().min(1).optional(),
40
+ commitHash: z.string().min(1).optional(),
41
+ shortCommitHash: z.string().min(1).optional(),
42
+ rootDir: z.string().min(1).optional(),
43
+ status: LocalModelDownloadStatusSchema.optional(),
44
+ progress: z.number().min(0).max(1).optional(),
45
+ bytesDownloaded: z.number().int().nonnegative().optional(),
46
+ totalBytes: z.number().int().nonnegative().optional(),
47
+ resumable: z.boolean().optional(),
48
+ error: z.string().optional(),
35
49
  selectable: z.boolean(),
36
50
  selected: z.boolean(),
37
51
  files: z.array(TranslationDownloadFilePlanSchema)
38
52
  });
53
+ const LocalModelProfileStatusSchema = z.enum([
54
+ "idle",
55
+ "loading",
56
+ "ready",
57
+ "error"
58
+ ]);
59
+ const LocalModelProfileManifestFileSchema = z.object({
60
+ path: z.string().min(1),
61
+ sizeBytes: z.number().int().nonnegative().optional(),
62
+ required: z.boolean(),
63
+ etag: z.string().min(1).optional(),
64
+ revision: z.string().min(1).optional(),
65
+ sourceUrl: z.string().min(1).optional(),
66
+ raw: z.unknown().optional()
67
+ });
68
+ const LocalModelProfileManifestGroupSchema = z.object({
69
+ id: z.string().min(1),
70
+ baseGroupId: z.string().min(1),
71
+ label: z.string().min(1),
72
+ displayLabel: z.string().min(1),
73
+ description: z.string().optional(),
74
+ profile: z.string().min(1).optional(),
75
+ dtype: z.string().min(1).optional(),
76
+ commitHash: z.string().min(1),
77
+ shortCommitHash: z.string().min(1),
78
+ rootDir: z.string().min(1),
79
+ estimatedTotalBytes: z.number().int().nonnegative().optional(),
80
+ selectable: z.boolean(),
81
+ files: z.array(LocalModelProfileManifestFileSchema)
82
+ });
83
+ const LocalModelProfileManifestSchema = z.object({
84
+ modelId: z.string().min(1),
85
+ source: z.literal("huggingface"),
86
+ endpoint: z.string().default(""),
87
+ revision: z.string().min(1),
88
+ commitHash: z.string().min(1),
89
+ shortCommitHash: z.string().min(1),
90
+ fetchedAt: z.number().int().nonnegative(),
91
+ updatedAt: z.number().int().nonnegative(),
92
+ raw: z.unknown().optional(),
93
+ groups: z.record(z.string(), LocalModelProfileManifestGroupSchema).default({}),
94
+ groupOrder: z.array(z.string().min(1)).default([])
95
+ });
96
+ const LocalModelLifecycleFileStateSchema = z.object({
97
+ path: z.string().min(1),
98
+ sizeBytes: z.number().int().nonnegative().optional(),
99
+ downloadedBytes: z.number().int().nonnegative().optional(),
100
+ required: z.boolean().default(true),
101
+ status: LocalModelDownloadStatusSchema.default("not-downloaded"),
102
+ updatedAt: z.number().int().nonnegative().optional(),
103
+ error: z.string().optional()
104
+ });
105
+ const LocalModelLifecycleGroupStateSchema = z.object({
106
+ groupId: z.string().min(1),
107
+ baseGroupId: z.string().min(1).optional(),
108
+ status: LocalModelDownloadStatusSchema.default("not-downloaded"),
109
+ rootDir: z.string().min(1).optional(),
110
+ bytesDownloaded: z.number().int().nonnegative().optional(),
111
+ totalBytes: z.number().int().nonnegative().optional(),
112
+ progress: z.number().min(0).max(1).optional(),
113
+ resumable: z.boolean().default(false),
114
+ error: z.string().optional(),
115
+ installedAt: z.number().int().nonnegative().optional(),
116
+ updatedAt: z.number().int().nonnegative().optional(),
117
+ files: z.array(LocalModelLifecycleFileStateSchema).default([])
118
+ });
119
+ const LocalModelProfileLoadStateSchema = z.object({
120
+ status: LocalModelProfileStatusSchema.default("idle"),
121
+ message: z.string().optional(),
122
+ error: z.string().optional(),
123
+ updatedAt: z.number().int().nonnegative().optional()
124
+ });
39
125
  const LocalModelAssetLogSchema = z.object({
40
126
  engineId: z.literal("local"),
41
127
  modelId: z.string().min(1),
42
128
  selectedGroupId: z.string().min(1).optional(),
129
+ groupId: z.string().min(1).optional(),
43
130
  status: LocalModelDownloadStatusSchema,
44
131
  message: z.string(),
45
132
  progress: z.number().min(0).max(1).optional(),
@@ -64,8 +151,10 @@ const LocalModelAssetPlanSnapshotSchema = z.object({
64
151
  });
65
152
  const LocalModelAssetStateSchema = z.object({
66
153
  modelId: z.string().min(1),
154
+ version: z.literal(2).default(2),
67
155
  status: LocalModelDownloadStatusSchema.default("not-downloaded"),
68
156
  selected: z.boolean().default(false),
157
+ selectedGroupId: z.string().min(1).optional(),
69
158
  installedAt: z.number().int().nonnegative().optional(),
70
159
  updatedAt: z.number().int().nonnegative().optional(),
71
160
  bytesDownloaded: z.number().int().nonnegative().optional(),
@@ -73,6 +162,9 @@ const LocalModelAssetStateSchema = z.object({
73
162
  progress: z.number().min(0).max(1).optional(),
74
163
  resumable: z.boolean().default(false),
75
164
  error: z.string().optional(),
165
+ profileLoad: LocalModelProfileLoadStateSchema.default(LocalModelProfileLoadStateSchema.parse({})),
166
+ profileManifest: LocalModelProfileManifestSchema.optional(),
167
+ groupsState: z.record(z.string(), LocalModelLifecycleGroupStateSchema).default({}),
76
168
  plan: LocalModelAssetPlanSnapshotSchema.optional(),
77
169
  files: z.array(z.object({
78
170
  path: z.string().min(1),
@@ -144,4 +236,4 @@ const BatchTranslateEventSchema = z.object({
144
236
  });
145
237
 
146
238
  //#endregion
147
- export { TranslationLocalSettingsSchema as _, LocalModelAssetPlanSnapshotSchema as a, SERVICE_TRANSLATION_ENGINE_IDS as c, TRANSLATION_ENGINE_MANIFESTS as d, TRANSLATOR_CONTRACT_VERSION as f, TranslationEngineIdSchema as g, TranslationEngineGlobalSettingsSchema as h, LocalModelAssetLogSchema as i, ServiceTranslationEngineIdSchema as l, TranslationDownloadGroupPlanSchema as m, BatchTranslateInputSchema as n, LocalModelAssetStateSchema as o, TranslationDownloadFilePlanSchema as p, DEFAULT_TRANSLATION_ENGINE_ID as r, LocalModelDownloadStatusSchema as s, BatchTranslateEventSchema as t, TRANSLATION_ENGINE_IDS as u, TranslationOpenAISettingsSchema as v, getTranslationEngineManifest as y };
239
+ export { TranslationEngineIdSchema as C, getTranslationEngineManifest as E, TranslationEngineGlobalSettingsSchema as S, TranslationOpenAISettingsSchema as T, TRANSLATION_ENGINE_IDS as _, LocalModelAssetPlanSnapshotSchema as a, TranslationDownloadFilePlanSchema as b, LocalModelLifecycleFileStateSchema as c, LocalModelProfileManifestFileSchema as d, LocalModelProfileManifestGroupSchema as f, ServiceTranslationEngineIdSchema as g, SERVICE_TRANSLATION_ENGINE_IDS as h, LocalModelAssetLogSchema as i, LocalModelLifecycleGroupStateSchema as l, LocalModelProfileStatusSchema as m, BatchTranslateInputSchema as n, LocalModelAssetStateSchema as o, LocalModelProfileManifestSchema as p, DEFAULT_TRANSLATION_ENGINE_ID as r, LocalModelDownloadStatusSchema as s, BatchTranslateEventSchema as t, LocalModelProfileLoadStateSchema as u, TRANSLATION_ENGINE_MANIFESTS as v, TranslationLocalSettingsSchema as w, TranslationDownloadGroupPlanSchema as x, TRANSLATOR_CONTRACT_VERSION as y };