@mrpatronz/nexusflow 2.12.1 → 2.13.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.
Files changed (84) hide show
  1. package/dist/gui/assets/AgentsPage-DpHlroWm.js +3 -0
  2. package/dist/gui/assets/DashboardPage-BN0FQixO.js +1 -0
  3. package/dist/gui/assets/GettingStartedPage-Y4ixhR8B.js +1 -0
  4. package/dist/gui/assets/MonacoDiffAdapter-CGXPlqCv.js +1 -0
  5. package/dist/gui/assets/ProjectsPage-i8Egpjps.js +1 -0
  6. package/dist/gui/assets/ScaffoldRepoInline-tpk7a07z.js +1 -0
  7. package/dist/gui/assets/SettingsPage-BEozi7bF.js +1 -0
  8. package/dist/gui/assets/SkillsPage-M1iYmQWO.js +7 -0
  9. package/dist/gui/assets/StartWorkPage-DUC8e-My.js +1 -0
  10. package/dist/gui/assets/{StrategiesPage-DCfS-wdu.js → StrategiesPage-CXsVcMW7.js} +2 -2
  11. package/dist/gui/assets/WorkroomsPage-DypyfzgM.js +4 -0
  12. package/dist/gui/assets/WorkspacesPage-aSR6TyA2.js +16 -0
  13. package/dist/gui/assets/alert-CHAmIFAx.js +1 -0
  14. package/dist/gui/assets/alert-dialog-B6jzcNCC.js +1 -0
  15. package/dist/gui/assets/badge-BObbahyU.js +1 -0
  16. package/dist/gui/assets/button-BrcP8Wxx.js +1 -0
  17. package/dist/gui/assets/card-BMggHY3n.js +1 -0
  18. package/dist/gui/assets/chevron-down-Dy03VL1q.js +1 -0
  19. package/dist/gui/assets/{circle-plus--zM3-3r3.js → circle-plus-D0tjHKM4.js} +1 -1
  20. package/dist/gui/assets/{code-xml-DH-38Tt7.js → code-xml-DHWUQOSO.js} +1 -1
  21. package/dist/gui/assets/codicon-Brq4_Ui5.ttf +0 -0
  22. package/dist/gui/assets/editor.worker-CqMcl4Az.js +30 -0
  23. package/dist/gui/assets/index-BRvfvR0q.js +57 -0
  24. package/dist/gui/assets/index-C4GcVl9Z.css +2 -0
  25. package/dist/gui/assets/isElementDisabled-BONWqXlb.js +1 -0
  26. package/dist/gui/assets/jsx-runtime-DE3RlOCf.js +1 -0
  27. package/dist/gui/assets/{label-DC730X8s.js → label-C610MHwq.js} +1 -1
  28. package/dist/gui/assets/monaco-DLwhzYMT.js +849 -0
  29. package/dist/gui/assets/monaco-d9IpiNv7.css +1 -0
  30. package/dist/gui/assets/rolldown-runtime-hePW80VL.js +1 -0
  31. package/dist/gui/assets/shield-check-C5I2LDCK.js +1 -0
  32. package/dist/gui/assets/{square-check-big-Bj8Rf_dH.js → square-check-big-DpHMT26q.js} +1 -1
  33. package/dist/gui/assets/tabs-PHbAf5Cq.js +1 -0
  34. package/dist/gui/assets/{trash-2-CMdv3eD3.js → trash-2-BrrLX4tD.js} +1 -1
  35. package/dist/gui/assets/useAriaLabelledBy-DAWGcnTk.js +1 -0
  36. package/dist/gui/assets/useValueChanged-DfJmRF2P.js +1 -0
  37. package/dist/gui/assets/{vsc-BsVrJLSg.js → vsc-CY5HXJ8W.js} +1 -1
  38. package/dist/gui/index.html +11 -5
  39. package/dist/server.d.ts.map +1 -1
  40. package/dist/server.js +132 -31
  41. package/dist/server.js.map +1 -1
  42. package/dist/services/repository-file.d.ts +5 -0
  43. package/dist/services/repository-file.d.ts.map +1 -0
  44. package/dist/services/repository-file.js +36 -0
  45. package/dist/services/repository-file.js.map +1 -0
  46. package/dist/services/symbolService.d.ts +40 -0
  47. package/dist/services/symbolService.d.ts.map +1 -0
  48. package/dist/services/symbolService.js +687 -0
  49. package/dist/services/symbolService.js.map +1 -0
  50. package/dist/utils/detect-editors.d.ts.map +1 -1
  51. package/dist/utils/detect-editors.js +1 -0
  52. package/dist/utils/detect-editors.js.map +1 -1
  53. package/dist/utils/open-editor.d.ts +1 -1
  54. package/dist/utils/open-editor.d.ts.map +1 -1
  55. package/dist/utils/open-editor.js +5 -3
  56. package/dist/utils/open-editor.js.map +1 -1
  57. package/dist/utils/workspace-launch.d.ts +1 -1
  58. package/dist/utils/workspace-launch.d.ts.map +1 -1
  59. package/dist/utils/workspace-launch.js +2 -2
  60. package/dist/utils/workspace-launch.js.map +1 -1
  61. package/package.json +3 -1
  62. package/dist/gui/assets/AgentsPage-C7Rh_dp7.js +0 -3
  63. package/dist/gui/assets/DashboardPage-YVONGtqS.js +0 -1
  64. package/dist/gui/assets/GettingStartedPage-C2Kbvz_N.js +0 -1
  65. package/dist/gui/assets/ProjectsPage-DOpfV2Oj.js +0 -1
  66. package/dist/gui/assets/ScaffoldRepoInline-D91aitAi.js +0 -1
  67. package/dist/gui/assets/SettingsPage-BdaHN6fa.js +0 -1
  68. package/dist/gui/assets/SkillsPage-DT9lRkCg.js +0 -7
  69. package/dist/gui/assets/StartWorkPage-D932lq9x.js +0 -1
  70. package/dist/gui/assets/WorkroomsPage-BQU27nWS.js +0 -4
  71. package/dist/gui/assets/WorkspacesPage-D3TLVmq-.js +0 -13
  72. package/dist/gui/assets/alert-QnMXzwpU.js +0 -1
  73. package/dist/gui/assets/alert-dialog-YynbGyj1.js +0 -1
  74. package/dist/gui/assets/badge-DTBzXOWn.js +0 -1
  75. package/dist/gui/assets/button-CREn1mup.js +0 -1
  76. package/dist/gui/assets/card-yrg6ov8B.js +0 -1
  77. package/dist/gui/assets/chevron-down-B_Mwbim8.js +0 -1
  78. package/dist/gui/assets/git-branch-Ce0I2663.js +0 -1
  79. package/dist/gui/assets/index-er-mkc2S.css +0 -2
  80. package/dist/gui/assets/index-hTa55BQ6.js +0 -57
  81. package/dist/gui/assets/layers-j_brOuoa.js +0 -1
  82. package/dist/gui/assets/shield-check-Dd1Yv3l2.js +0 -1
  83. package/dist/gui/assets/tabs-DfW7Akjs.js +0 -1
  84. package/dist/gui/assets/useAriaLabelledBy-BmJErI5a.js +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"symbolService.js","sourceRoot":"","sources":["../../src/services/symbolService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,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ot":"","sources":["../../src/utils/detect-editors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAsClD;;;;;GAKG;AACH,wBAAsB,aAAa,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC,CAgB/D"}
1
+ {"version":3,"file":"detect-editors.d.ts","sourceRoot":"","sources":["../../src/utils/detect-editors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAuClD;;;;;GAKG;AACH,wBAAsB,aAAa,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC,CAgB/D"}
@@ -31,6 +31,7 @@ async function commandExists(command) {
31
31
  const result = await execa(command, ['--version'], {
32
32
  reject: false,
33
33
  shell: process.platform === 'win32',
34
+ windowsHide: true,
34
35
  });
35
36
  return result.exitCode === 0;
36
37
  }
@@ -1 +1 @@
1
- {"version":3,"file":"detect-editors.js","sourceRoot":"","sources":["../../src/utils/detect-editors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAI9B,uCAAuC;AACvC,MAAM,iBAAiB,GAAoF;IACzG,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE;IACpC,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,EAAE,eAAe,EAAE;IACtD,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE;IACrC,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,aAAa,EAAE;IAC/C,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,CAAC,OAAO,CAAC,EAAE;IACnE,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,OAAO,CAAC,EAAE;IAChE,EAAE,IAAI,E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5 +16,5 @@ export declare function resolveEditorTarget(editorCommand: string, workspacePath
16
16
  * Opens the workspace in the given editor or shell terminal. Throws if the editor cannot be
17
17
  * spawned so callers can surface a manual-open hint.
18
18
  */
19
- export declare function openInEditor(editorCommand: string, workspacePath: string): Promise<void>;
19
+ export declare function openInEditor(editorCommand: string, workspacePath: string, filePath?: string): Promise<void>;
20
20
  //# sourceMappingURL=open-editor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"open-editor.d.ts","sourceRoot":"","sources":["../../src/utils/open-editor.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAWH;;;GAGG;AACH,wBAAsB,mBAAmB,CACvC,aAAa,EAAE,MAAM,EACrB,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,MAAM,CAAC,CAYjB;AAED;;;GAGG;AACH,wBAAsB,YAAY,CAAC,aAAa,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAe9F"}
1
+ {"version":3,"file":"open-editor.d.ts","sourceRoot":"","sources":["../../src/utils/open-editor.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAWH;;;GAGG;AACH,wBAAsB,mBAAmB,CACvC,aAAa,EAAE,MAAM,EACrB,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,MAAM,CAAC,CAYjB;AAED;;;GAGG;AACH,wBAAsB,YAAY,CAChC,aAAa,EAAE,MAAM,EACrB,aAAa,EAAE,MAAM,EACrB,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,IAAI,CAAC,CAiBf"}
@@ -35,7 +35,7 @@ export async function resolveEditorTarget(editorCommand, workspacePath) {
35
35
  * Opens the workspace in the given editor or shell terminal. Throws if the editor cannot be
36
36
  * spawned so callers can surface a manual-open hint.
37
37
  */
38
- export async function openInEditor(editorCommand, workspacePath) {
38
+ export async function openInEditor(editorCommand, workspacePath, filePath) {
39
39
  if (editorCommand === 'powershell' || editorCommand === 'pwsh') {
40
40
  await launchWorkspaceTerminal(workspacePath, { title: 'PowerShell' });
41
41
  return;
@@ -44,10 +44,12 @@ export async function openInEditor(editorCommand, workspacePath) {
44
44
  await launchWorkspaceTerminal(workspacePath, { command: 'cmd.exe', title: 'Command Prompt' });
45
45
  return;
46
46
  }
47
- const target = await resolveEditorTarget(editorCommand, workspacePath);
47
+ const target = filePath
48
+ ? path.resolve(workspacePath, filePath)
49
+ : await resolveEditorTarget(editorCommand, workspacePath);
48
50
  const useShell = process.platform === 'win32';
49
51
  // With `shell: true` execa does not escape arguments; quote so spaces survive.
50
52
  const arg = useShell ? `"${target}"` : target;
51
- await execa(editorCommand, [arg], { stdio: 'ignore', shell: useShell });
53
+ await execa(editorCommand, [arg], { stdio: 'ignore', shell: useShell, windowsHide: true });
52
54
  }
53
55
  //# sourceMappingURL=open-editor.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"open-editor.js","sourceRoot":"","sources":["../../src/utils/open-editor.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAC9B,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,wDAAwD;AACxD,MAAM,sBAAsB,GAAG,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,eAAe,EAAE,QAAQ,EAAE,aAAa,EAAE,UAAU,CAAC,CAAC,CAAC;AAEvG;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,aAAqB,EACrB,aAAqB;IAErB,IAAI,sBAAsB,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;QAC1C,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,GAAG,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AAC,aAAa,EAAE,QAAQ,CAAC;QACvC,CAAC,CAAC,MAAM,mBAAmB,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;IAC5D,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC;IAC9C,+EAA+E;IAC/E,MAAM,GAAG,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAI,MAAM,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC;IAC9C,MAAM,KAAK,CAAC,aAAa,EAAE,CAAC,GAAG,CAAC,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;AAC7F,CAAC"}
@@ -30,7 +30,7 @@ export declare function hasDesktopProtocol(definition: Pick<DesktopDefinition, '
30
30
  export declare function detectWorkspaceLaunchTargets(platform?: NodeJS.Platform): Promise<WorkspaceLaunchTarget[]>;
31
31
  export declare function openDesktopUri(uri: string, platform?: NodeJS.Platform): Promise<void>;
32
32
  /** Launch one closed target at a validated absolute workspace directory. */
33
- export declare function launchWorkspaceTarget(targetId: string, workspacePath: string, intent?: WorkspaceLaunchIntent, platform?: NodeJS.Platform): Promise<void>;
33
+ export declare function launchWorkspaceTarget(targetId: string, workspacePath: string, intent?: WorkspaceLaunchIntent, platform?: NodeJS.Platform, filePath?: string): Promise<void>;
34
34
  /** Convert a legacy editor command to its closed target id. */
35
35
  export declare function launchTargetIdForEditorCommand(command: string): string | null;
36
36
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"workspace-launch.d.ts","sourceRoot":"","sources":["../../src/utils/workspace-launch.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EACV,OAAO,EACP,mBAAmB,EACnB,qBAAqB,EAEtB,MAAM,aAAa,CAAC;AAarB,UAAU,iBAAiB;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,OAAO,GA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4E;AAC5E,wBAAsB,qBAAqB,CACzC,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,MAAM,EACrB,MAAM,GAAE,qBAAiD,EACzD,QAAQ,kBAAmB,EAC3B,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,IAAI,CAAC,CAoCf;AAED,+DAA+D;AAC/D,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAE7E"}
@@ -181,7 +181,7 @@ export async function openDesktopUri(uri, platform = process.platform) {
181
181
  throw new Error('Desktop app launching is not supported on this platform.');
182
182
  }
183
183
  /** Launch one closed target at a validated absolute workspace directory. */
184
- export async function launchWorkspaceTarget(targetId, workspacePath, intent = { kind: 'new-workspace' }, platform = process.platform) {
184
+ export async function launchWorkspaceTarget(targetId, workspacePath, intent = { kind: 'new-workspace' }, platform = process.platform, filePath) {
185
185
  const absolutePath = path.resolve(workspacePath);
186
186
  if (!path.isAbsolute(workspacePath)) {
187
187
  throw new Error('Workspace path must be an absolute directory.');
@@ -214,7 +214,7 @@ export async function launchWorkspaceTarget(targetId, workspacePath, intent = {
214
214
  if (!detected.some((candidate) => candidate.command === editor.command && candidate.detected)) {
215
215
  throw new Error(`${editor.name} is not available on this computer.`);
216
216
  }
217
- await openInEditor(editor.command, absolutePath);
217
+ await openInEditor(editor.command, absolutePath, filePath);
218
218
  }
219
219
  /** Convert a legacy editor command to its closed target id. */
220
220
  export function launchTargetIdForEditorCommand(command) {
@@ -1 +1 @@
1
- {"version":3,"file":"workspace-launch.js","sourceRoot":"","sources":["../../src/utils/workspace-launch.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAQlC,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACp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AAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,OAAO,KAAK,MAAM,CAAC,OAAO,IAAI,SAAS,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC9F,MAAM,IAAI,KAAK,CAAC,GAAG,MAAM,CAAC,IAAI,qCAAqC,CAAC,CAAC;IACvE,CAAC;IACD,MAAM,YAAY,CAAC,MAAM,CAAC,OAAO,EAAE,YAAY,EAAE,QAAQ,CAAC,CAAC;AAC7D,CAAC;AAED,+DAA+D;AAC/D,MAAM,UAAU,8BAA8B,CAAC,OAAe;IAC5D,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,KAAK,OAAO,CAAC,EAAE,EAAE,IAAI,IAAI,CAAC;AACjF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrpatronz/nexusflow",
3
- "version": "2.12.1",
3
+ "version": "2.13.0",
4
4
  "description": "Combine multiple repos into a workspace with rich AI assistant context",
5
5
  "type": "module",
6
6
  "repository": {
@@ -66,6 +66,7 @@
66
66
  "@inquirer/prompts": "^8.5.2",
67
67
  "@modelcontextprotocol/sdk": "^1.30.0",
68
68
  "@openai/codex-sdk": "0.152.1",
69
+ "@vscode/tree-sitter-wasm": "^0.3.1",
69
70
  "chalk": "^6.0.0",
70
71
  "commander": "^15.0.0",
71
72
  "execa": "^10.0.1",
@@ -78,6 +79,7 @@
78
79
  "pm2": "^7.0.3",
79
80
  "selfsigned": "5.5.0",
80
81
  "smol-toml": "^1.8.0",
82
+ "web-tree-sitter": "^0.27.0",
81
83
  "zod": "^4.4.3"
82
84
  },
83
85
  "overrides": {
@@ -1,3 +0,0 @@
1
- import{_ as e,b as t,g as n,h as r,m as i,t as a}from"./button-CREn1mup.js";import{n as o,t as s}from"./badge-DTBzXOWn.js";import{a as ee,c as te,i as ne,n as re,o as c,r as ie,s as ae,t as oe}from"./alert-dialog-YynbGyj1.js";import{t as se}from"./trash-2-CMdv3eD3.js";import{B as ce,Dn as le,E as ue,O as de,P as l,Pn as fe,Vn as u,Y as pe,_ as d,a as f,ct as me,d as he,f as p,h as m,i as ge,kn as h,lt as _e,m as g,mn as ve,n as _,o as v,p as y,r as b,t as x,v as S,zn as ye}from"./index-hTa55BQ6.js";import{t as be}from"./card-yrg6ov8B.js";import{t as C}from"./label-DC730X8s.js";var xe=r(`file-up`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M12 12v6`,key:`3ahymv`}],[`path`,{d:`m15 15-3-3-3 3`,key:`15xj92`}]]),w=t(e(),1),T=n(),E={id:``,name:``,category:`general`,description:``,developerInstructions:``};function D(e){return e.toLowerCase().trim().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``)}function O({showToast:e}){let[t,n]=(0,w.useState)(`global`),[r,O]=(0,w.useState)(``),[Se,k]=(0,w.useState)(!1),[A,j]=(0,w.useState)(!1),[M,N]=(0,w.useState)(null),[P,F]=(0,w.useState)(E),[I,L]=(0,w.useState)(``),[R,z]=(0,w.useState)(null),[B,V]=(0,w.useState)(null),{data:H=[],isLoading:Ce,isError:we}=ue(),{data:U=[]}=_e(),W=me(t===`global`?``:t),G=pe(),K=ce(),q=l(),J=de(),Y=t!==`global`,Te=U.find(e=>e.id===t),X=!Y||Te?.assistants?.includes(`codex`),Z=Y&&X&&!W.isLoading&&!W.isError&&!!W.data;(0,w.useEffect)(()=>{if(!Y){z(null);return}W.data&&z([...W.data.enabledAgents??[]])},[Y,t,W.data]);let Q=(0,w.useMemo)(()=>{let e=r.trim().toLowerCase();return e?H.filter(t=>[t.name,t.description,t.category].some(t=>t.toLowerCase().includes(e))):H},[H,r]),Ee=new Set(R??W.data?.enabledAgents??[]);function $(){N(null),F(E),k(!0)}function De(e){N(e.id),F({id:e.id,name:e.name,category:e.category,description:e.description,developerInstructions:e.developerInstructions,model:e.model,modelReasoningEffort:e.modelReasoningEffort,sandboxMode:e.sandboxMode}),k(!0)}async function Oe(){try{let t=M??D(P.name);await G.mutateAsync({...P,id:t,name:t}),k(!1),e?.(`Codex agent saved`,`success`)}catch(t){e?.(t instanceof Error?t.message:`Failed to save agent`,`error`)}}async function ke(){try{await K.mutateAsync({toml:I,category:`general`}),j(!1),L(``),e?.(`Codex agent imported`,`success`)}catch(t){e?.(t instanceof Error?t.message:`Failed to import agent`,`error`)}}async function Ae(){if(B)try{await q.mutateAsync(B.id),V(null),e?.(`Agent deleted from the personal catalog`,`info`)}catch(t){e?.(t instanceof Error?t.message:`Failed to delete agent`,`error`)}}function je(e){if(!Z||R===null)return;let t=new Set(R);t.has(e)?t.delete(e):t.add(e),z([...t])}async function Me(){if(!(!W.data||R===null))try{await J.mutateAsync({workspaceId:t,expectedRevision:W.data.revision??0,enabledSkills:W.data.enabledSkills,enabledAgents:R,enabledCategories:W.data.enabledCategories??[]}),e?.(`Agent selection saved. Refresh the workspace to apply it.`,`success`)}catch(t){e?.(t instanceof Error?t.message:`Failed to save agent selection`,`error`)}}return(0,T.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col`,children:[(0,T.jsxs)(`header`,{className:`flex flex-wrap items-center justify-between gap-4 border-b border-border px-6 py-5`,children:[(0,T.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,T.jsx)(`div`,{className:`rounded-lg bg-primary/10 p-2 text-primary`,children:(0,T.jsx)(u,{className:`h-5 w-5`})}),(0,T.jsxs)(`div`,{children:[(0,T.jsx)(`h1`,{className:`text-xl font-bold tracking-tight`,children:`Codex Agent Library`}),(0,T.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Create and reuse project-scoped Codex custom agents.`})]})]}),(0,T.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,T.jsx)(a,{render:(0,T.jsx)(ve,{to:`/skills`}),variant:`outline`,size:`sm`,children:`Skills`}),(0,T.jsxs)(`div`,{className:`flex items-center gap-2 rounded-lg border border-border bg-muted/50 px-3 py-1.5`,children:[(0,T.jsx)(fe,{className:`h-4 w-4 text-muted-foreground`}),(0,T.jsx)(C,{htmlFor:`agent-scope`,className:`text-xs text-muted-foreground`,children:`Scope`}),(0,T.jsxs)(`select`,{id:`agent-scope`,value:t,onChange:e=>n(e.target.value),className:`cursor-pointer bg-transparent text-xs font-semibold text-foreground focus:outline-none`,children:[(0,T.jsx)(`option`,{value:`global`,children:`Personal catalog`}),U.map(e=>(0,T.jsx)(`option`,{value:e.id,children:e.id},e.id))]})]}),Y?(0,T.jsx)(a,{size:`sm`,onClick:Me,disabled:!Z||J.isPending,children:J.isPending?`Saving…`:`Save selection`}):(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)(a,{variant:`outline`,size:`sm`,onClick:()=>j(!0),children:[(0,T.jsx)(xe,{className:`mr-1.5 h-4 w-4`}),`Import TOML`]}),(0,T.jsxs)(a,{size:`sm`,onClick:$,children:[(0,T.jsx)(h,{className:`mr-1.5 h-4 w-4`}),`New agent`]})]})]})]}),(0,T.jsx)(`div`,{className:`border-b border-border/60 bg-muted/20 px-6 py-3`,children:(0,T.jsxs)(`div`,{className:`relative max-w-md`,children:[(0,T.jsx)(le,{className:`absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground`}),(0,T.jsx)(o,{value:r,onChange:e=>O(e.target.value),placeholder:`Search agents…`,className:`pl-9`})]})}),(0,T.jsx)(`main`,{className:`min-h-0 flex-1 overflow-auto p-6`,children:Ce||Y&&W.isLoading?(0,T.jsx)(`div`,{className:`flex justify-center p-12`,children:(0,T.jsx)(he,{})}):we||Y&&W.isError?(0,T.jsx)(x,{className:`border border-dashed py-12`,children:(0,T.jsxs)(b,{children:[(0,T.jsx)(f,{children:`Resources could not be loaded`}),(0,T.jsx)(_,{children:`Assignment controls remain disabled to protect the saved selection.`})]})}):Y&&!X?(0,T.jsx)(x,{className:`border border-dashed py-12`,children:(0,T.jsxs)(b,{children:[(0,T.jsx)(f,{children:`Codex is not enabled for this workspace`}),(0,T.jsx)(_,{children:`Add Codex to the workspace before assigning Codex-native agents.`})]})}):Q.length===0?(0,T.jsxs)(x,{className:`border border-dashed py-12`,children:[(0,T.jsx)(ge,{children:(0,T.jsx)(u,{className:`h-8 w-8 text-muted-foreground`})}),(0,T.jsxs)(b,{children:[(0,T.jsx)(f,{children:`No Codex agents found`}),(0,T.jsx)(_,{children:`Create an agent or import a native TOML definition.`})]}),!Y&&(0,T.jsxs)(a,{size:`sm`,onClick:$,children:[(0,T.jsx)(h,{className:`mr-1.5 h-4 w-4`}),`New agent`]})]}):(0,T.jsx)(`div`,{className:`mx-auto grid max-w-6xl grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3`,children:Q.map(e=>{let t=Ee.has(e.id);return(0,T.jsxs)(be,{className:i(`flex flex-col gap-4 p-4`,Y&&!t&&`opacity-60`),children:[(0,T.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,T.jsxs)(`div`,{children:[(0,T.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,T.jsx)(`h2`,{className:`font-semibold`,children:e.name}),(0,T.jsx)(s,{variant:`outline`,children:`Codex`})]}),(0,T.jsx)(`p`,{className:`mt-2 text-sm text-muted-foreground`,children:e.description})]}),Y?(0,T.jsxs)(a,{variant:t?`default`:`outline`,size:`sm`,onClick:()=>je(e.id),disabled:!Z,children:[(0,T.jsx)(ye,{className:i(`mr-1 h-3.5 w-3.5`,!t&&`opacity-0`)}),t?`Enabled`:`Disabled`]}):(0,T.jsxs)(`div`,{className:`flex gap-1`,children:[(0,T.jsx)(a,{variant:`ghost`,size:`icon`,"aria-label":`Edit ${e.name}`,onClick:()=>De(e),children:(0,T.jsx)(te,{className:`h-4 w-4`})}),(0,T.jsx)(a,{variant:`ghost`,size:`icon`,"aria-label":`Delete ${e.name}`,onClick:()=>V(e),children:(0,T.jsx)(se,{className:`h-4 w-4`})})]})]}),(0,T.jsxs)(`div`,{className:`flex flex-wrap gap-2 text-xs text-muted-foreground`,children:[e.sandboxMode&&(0,T.jsx)(s,{variant:`secondary`,children:e.sandboxMode}),e.modelReasoningEffort&&(0,T.jsx)(s,{variant:`secondary`,children:e.modelReasoningEffort}),e.model&&(0,T.jsx)(s,{variant:`secondary`,children:e.model})]})]},e.id)})})}),(0,T.jsx)(p,{open:Se,onOpenChange:k,children:(0,T.jsxs)(d,{className:`max-w-2xl`,children:[(0,T.jsxs)(m,{children:[(0,T.jsx)(S,{children:M?`Edit Codex agent`:`Create Codex agent`}),(0,T.jsx)(y,{children:`Only the current stable native fields are managed. Omitted settings inherit from Codex.`})]}),(0,T.jsxs)(`div`,{className:`grid gap-4 py-2`,children:[(0,T.jsxs)(`div`,{className:`grid gap-2`,children:[(0,T.jsx)(C,{htmlFor:`agent-name`,children:`Name`}),(0,T.jsx)(o,{id:`agent-name`,value:P.name,disabled:!!M,onChange:e=>F({...P,name:D(e.target.value)}),placeholder:`code-reviewer`})]}),(0,T.jsxs)(`div`,{className:`grid gap-2`,children:[(0,T.jsx)(C,{htmlFor:`agent-description`,children:`Description`}),(0,T.jsx)(o,{id:`agent-description`,value:P.description,onChange:e=>F({...P,description:e.target.value}),placeholder:`Use when reviewing a fixed diff for correctness and security.`})]}),(0,T.jsxs)(`div`,{className:`grid gap-2`,children:[(0,T.jsx)(C,{htmlFor:`agent-instructions`,children:`Developer instructions`}),(0,T.jsx)(v,{id:`agent-instructions`,value:P.developerInstructions,onChange:e=>F({...P,developerInstructions:e.target.value}),className:`min-h-48 font-mono`})]}),(0,T.jsxs)(`div`,{className:`grid grid-cols-1 gap-3 sm:grid-cols-3`,children:[(0,T.jsxs)(`div`,{className:`grid gap-2`,children:[(0,T.jsx)(C,{htmlFor:`agent-model`,children:`Model override`}),(0,T.jsx)(o,{id:`agent-model`,value:P.model??``,onChange:e=>F({...P,model:e.target.value||void 0}),placeholder:`Inherit`})]}),(0,T.jsxs)(`div`,{className:`grid gap-2`,children:[(0,T.jsx)(C,{htmlFor:`agent-effort`,children:`Reasoning`}),(0,T.jsxs)(`select`,{id:`agent-effort`,value:P.modelReasoningEffort??``,onChange:e=>F({...P,modelReasoningEffort:e.target.value||void 0}),className:`h-9 rounded-md border border-input bg-background px-3 text-sm`,children:[(0,T.jsx)(`option`,{value:``,children:`Inherit`}),(0,T.jsx)(`option`,{value:`low`,children:`Low`}),(0,T.jsx)(`option`,{value:`medium`,children:`Medium`}),(0,T.jsx)(`option`,{value:`high`,children:`High`}),(0,T.jsx)(`option`,{value:`xhigh`,children:`XHigh`}),(0,T.jsx)(`option`,{value:`max`,children:`Max`}),(0,T.jsx)(`option`,{value:`ultra`,children:`Ultra`})]})]}),(0,T.jsxs)(`div`,{className:`grid gap-2`,children:[(0,T.jsx)(C,{htmlFor:`agent-sandbox`,children:`Sandbox`}),(0,T.jsxs)(`select`,{id:`agent-sandbox`,value:P.sandboxMode??``,onChange:e=>F({...P,sandboxMode:e.target.value||void 0}),className:`h-9 rounded-md border border-input bg-background px-3 text-sm`,children:[(0,T.jsx)(`option`,{value:``,children:`Inherit`}),(0,T.jsx)(`option`,{value:`read-only`,children:`Read only`}),(0,T.jsx)(`option`,{value:`workspace-write`,children:`Workspace write`})]})]})]})]}),(0,T.jsxs)(g,{children:[(0,T.jsx)(a,{variant:`outline`,onClick:()=>k(!1),children:`Cancel`}),(0,T.jsx)(a,{onClick:Oe,disabled:G.isPending||!P.name||!P.description||!P.developerInstructions,children:G.isPending?`Saving…`:`Save agent`})]})]})}),(0,T.jsx)(p,{open:A,onOpenChange:j,children:(0,T.jsxs)(d,{className:`max-w-2xl`,children:[(0,T.jsxs)(m,{children:[(0,T.jsx)(S,{children:`Import Codex agent TOML`}),(0,T.jsx)(y,{children:`The import accepts the required native fields and supported model, reasoning, and sandbox overrides.`})]}),(0,T.jsx)(v,{value:I,onChange:e=>L(e.target.value),className:`min-h-72 font-mono`,placeholder:`name = "reviewer"
2
- description = "Use for code review."
3
- developer_instructions = "Review the fixed diff."`}),(0,T.jsxs)(g,{children:[(0,T.jsx)(a,{variant:`outline`,onClick:()=>j(!1),children:`Cancel`}),(0,T.jsx)(a,{onClick:ke,disabled:K.isPending||!I.trim(),children:K.isPending?`Importing…`:`Import agent`})]})]})}),(0,T.jsx)(oe,{open:B!==null,onOpenChange:e=>!e&&V(null),children:(0,T.jsxs)(c,{children:[(0,T.jsxs)(ee,{children:[(0,T.jsxs)(ae,{children:[`Delete “`,B?.name,`”?`]}),(0,T.jsx)(ie,{children:`This removes the agent from the personal catalog. Existing workspace copies remain until the workspace is refreshed.`})]}),(0,T.jsxs)(ne,{children:[(0,T.jsx)(re,{render:(0,T.jsx)(a,{variant:`outline`,children:`Cancel`})}),(0,T.jsx)(a,{variant:`destructive`,onClick:Ae,disabled:q.isPending,children:q.isPending?`Deleting…`:`Delete agent`})]})]})})]})}export{O as AgentsPage};
@@ -1 +0,0 @@
1
- import{_ as e,b as t,g as n,t as r}from"./button-CREn1mup.js";import{t as i}from"./code-xml-DH-38Tt7.js";import{t as a}from"./git-branch-Ce0I2663.js";import{t as o}from"./layers-j_brOuoa.js";import{t as s}from"./brand-hHByyyzq.js";import{Bn as c,D as ee,Dn as l,Fn as u,Pn as d,Sn as f,V as p,Wn as m,a as h,an as g,at as _,c as v,d as y,dt as te,fn as b,i as x,kn as S,l as C,n as w,nn as T,r as E,rn as D,t as O,tn as k,u as A,wn as j}from"./index-hTa55BQ6.js";import{t as M}from"./card-yrg6ov8B.js";var N=t(e(),1),P=n(),F=[{id:`antigravity`,name:`Google Antigravity`,shortName:`Antigravity`,cliCommand:`agy`,icon:(0,P.jsx)(T,{className:`size-4`}),getOptions:({aiDetected:e,launchTargets:t})=>[{id:`antigravity-cli`,label:`CLI in Terminal`,shortLabel:`CLI`,type:`cli`,command:`agy`,isAvailable:e.antigravity??!1,unavailableReason:`CLI "agy" not found on PATH`,icon:(0,P.jsx)(f,{size:12})},{id:`antigravity-ide`,label:`Antigravity IDE Workspace`,shortLabel:`IDE`,type:`editor`,targetId:`antigravity`,isAvailable:t.find(e=>e.id===`antigravity`)?.available??!1,unavailableReason:`Antigravity IDE not installed`,icon:(0,P.jsx)(i,{size:12})}]},{id:`claude`,name:`Claude Code`,shortName:`Claude`,cliCommand:`claude`,icon:(0,P.jsx)(`span`,{className:`grid size-5 place-items-center rounded bg-[#D97757] text-white shadow-2xs`,children:(0,P.jsx)(D,{className:`size-3`})}),getOptions:({aiDetected:e,launchTargets:t})=>[{id:`claude-cli`,label:`CLI in Terminal`,shortLabel:`CLI`,type:`cli`,command:`claude`,isAvailable:e.claude??!1,unavailableReason:`CLI "claude" not found on PATH`,icon:(0,P.jsx)(f,{size:12})},{id:`claude-desktop`,label:`Claude Desktop App`,shortLabel:`App`,type:`app`,targetId:`claude-desktop`,isAvailable:t.find(e=>e.id===`claude-desktop`)?.available??!1,unavailableReason:`Claude Desktop not detected`,icon:(0,P.jsx)(u,{size:12})}]},{id:`codex`,name:`OpenAI Codex`,shortName:`Codex`,cliCommand:`codex`,icon:(0,P.jsx)(`span`,{className:`grid size-5 place-items-center rounded bg-foreground text-background shadow-2xs`,children:(0,P.jsx)(b,{className:`size-3`})}),getOptions:({aiDetected:e,launchTargets:t})=>[{id:`codex-cli`,label:`CLI in Terminal`,shortLabel:`CLI`,type:`cli`,command:`codex`,isAvailable:e.codex??!1,unavailableReason:`CLI "codex" not found on PATH`,icon:(0,P.jsx)(f,{size:12})},{id:`codex-desktop`,label:`Codex Desktop App`,shortLabel:`App`,type:`app`,targetId:`codex-desktop`,isAvailable:t.find(e=>e.id===`codex-desktop`)?.available??!1,unavailableReason:`Codex Desktop not detected`,icon:(0,P.jsx)(u,{size:12})}]},{id:`copilot`,name:`GitHub Copilot`,shortName:`Copilot`,cliCommand:`copilot`,icon:(0,P.jsx)(`span`,{className:`grid size-5 place-items-center rounded bg-gradient-to-tr from-purple-600 via-indigo-500 to-blue-600 text-white shadow-2xs`,children:(0,P.jsx)(g,{className:`size-3`})}),getOptions:({aiDetected:e,launchTargets:t})=>[{id:`copilot-cli`,label:`Copilot CLI in Terminal`,shortLabel:`CLI`,type:`cli`,command:`copilot`,isAvailable:e.copilot??!1,icon:(0,P.jsx)(f,{size:12})},{id:`copilot-vscode`,label:`VS Code with Copilot`,shortLabel:`VS Code`,type:`editor`,targetId:`vscode`,isAvailable:t.find(e=>e.id===`vscode`)?.available??!1,unavailableReason:`VS Code not detected`,icon:(0,P.jsx)(i,{size:12})}]}];function I({workspaces:e,workspaceStatuses:t,workspacesLoading:n=!1,onOpenWorkspace:i,onNewWorkspace:u,showToast:f}){let g=ee(),b=_(),T=p(),[D,I]=(0,N.useState)(``),[L,R]=(0,N.useState)(!1),[z,B]=(0,N.useState)(``),V=e.find(e=>e.branchName===z)??e[0],H=e.filter(e=>`${e.branchName} ${e.description??``} ${e.repos.join(` `)}`.toLowerCase().includes(D.trim().toLowerCase())&&(!L||(t[e.branchName]?.changedFiles??0)>0)),[U,W]=(0,N.useState)(null),G=e.flatMap(e=>t[e.branchName]?[t[e.branchName]]:[]),K=G.reduce((e,t)=>e+(t.changedFiles||0),0),q=G.filter(e=>e.changedFiles>0).length,J=e.filter(e=>(e.mode??`worktree`)===`worktree`).length,Y=e.filter(e=>e.mode===`in-place`).length,X=(0,N.useMemo)(()=>{let t=new Map;return e.forEach(e=>{(e.repos||[]).forEach(e=>{let n=v(e),r=t.get(e);r?r.count+=1:t.set(e,{name:n,path:e,count:1})})}),Array.from(t.values())},[e]),Z=(0,N.useMemo)(()=>{let e={};return(g.data??[]).forEach(t=>{e[t.name]=t.detected}),e},[g.data]),Q=(0,N.useMemo)(()=>b.data??[],[b.data]),$=(0,N.useMemo)(()=>F.map(e=>{let t=e.getOptions({aiDetected:Z,launchTargets:Q}),n=t.filter(e=>e.isAvailable),r=n[0]||t[0],i=n.length>0,a=`Not found`,o=`neutral`;return n.length>1?(a=`${n.map(e=>e.shortLabel).join(` & `)} Ready`,o=`success`):n.length===1&&(a=`${n[0].shortLabel} Ready`,o=`success`),{harness:e,allOptions:t,availableOptions:n,primaryOption:r,isAnyAvailable:i,statusLabel:a,statusTone:o}}),[Z,Q]),ne=async(e,t)=>{if(U)return;let n=V;if(!n){f?.(`No active workspace available to launch harness in.`,`error`);return}let r=`${e.id}:${t.id}`;W(r);try{t.type===`cli`?(await T.mutateAsync({workspaceId:n.branchName,assistant:e.id,command:t.command}),f?.(`Launched ${e.name} (${t.label}) for ${n.branchName}`,`success`)):t.targetId&&(await te(`/api/workspace/${encodeURIComponent(n.branchName)}/launch`,{method:`POST`,body:JSON.stringify({targetId:t.targetId})}),f?.(`Opened ${n.branchName} in ${e.name} (${t.label})`,`success`))}catch(t){f?.(`Failed to launch ${e.name}: ${t instanceof Error?t.message:String(t)}`,`error`)}finally{W(null)}};return(0,P.jsxs)(`div`,{className:`context-home mx-auto max-w-7xl space-y-7 pb-10`,children:[(0,P.jsxs)(`header`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,P.jsxs)(`div`,{className:`flex items-center gap-2 text-xs text-muted-foreground`,children:[(0,P.jsx)(o,{size:15}),(0,P.jsx)(`span`,{children:s}),(0,P.jsx)(`span`,{className:`opacity-40`,children:`/`}),(0,P.jsx)(`span`,{className:`text-foreground`,children:`Overview`})]}),(0,P.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Your next idea starts here.`})]}),(0,P.jsxs)(`section`,{className:`context-hero relative overflow-hidden rounded-2xl border border-border p-6 sm:p-9 lg:p-11`,children:[(0,P.jsxs)(`div`,{className:`relative z-10 max-w-2xl`,children:[(0,P.jsxs)(`div`,{className:`mb-5 flex items-center gap-2 text-[10px] font-semibold uppercase tracking-[0.22em] text-primary`,children:[(0,P.jsx)(k,{size:23}),` A space for what’s next`]}),(0,P.jsxs)(`h1`,{className:`text-4xl font-semibold leading-[1.08] tracking-[-0.055em] sm:text-5xl lg:text-6xl`,children:[`Many repositories.`,(0,P.jsx)(`br`,{}),(0,P.jsx)(`span`,{className:`context-hero-accent`,children:`One clear direction.`})]}),(0,P.jsx)(`p`,{className:`mt-5 max-w-md text-sm leading-relaxed text-muted-foreground`,children:`Bring your code, context, and AI assistants together. Pick up a workspace, follow an idea, and make your next move.`}),(0,P.jsxs)(`div`,{className:`mt-7 flex flex-wrap gap-3`,children:[(0,P.jsxs)(r,{onClick:u,className:`h-10 rounded-lg px-5`,children:[(0,P.jsx)(S,{size:16}),` Start work `,(0,P.jsx)(m,{size:15})]}),V&&(0,P.jsxs)(r,{variant:`outline`,className:`h-10 max-w-full rounded-lg`,onClick:()=>i(V.branchName),children:[(0,P.jsxs)(`span`,{className:`truncate`,children:[`Open `,V.branchName]}),(0,P.jsx)(m,{size:14})]})]})]}),(0,P.jsx)(`div`,{className:`context-hero-signature pointer-events-none absolute right-10 top-1/2 hidden -translate-y-1/2 opacity-20 xl:block`,"aria-hidden":`true`,children:(0,P.jsx)(k,{size:220})}),(0,P.jsxs)(`div`,{className:`relative mt-9 flex flex-wrap gap-x-6 gap-y-2 border-t border-border pt-4 text-[10px] font-medium uppercase tracking-[0.12em] text-muted-foreground`,children:[(0,P.jsx)(`span`,{children:`Isolated workspaces`}),(0,P.jsx)(`span`,{children:`Shared knowledge`}),(0,P.jsx)(`span`,{children:`Your choice of AI`})]})]}),(0,P.jsx)(`div`,{className:`grid grid-cols-2 gap-3 lg:grid-cols-4`,children:[{label:`Workspaces`,value:n?`—`:e.length,detail:`${J} worktrees · ${Y} in-place`,icon:o},{label:`Connected repositories`,value:n?`—`:X.length,detail:`Across your workspaces`,icon:d},{label:`Changed files`,value:G.length?K:`—`,detail:`${q} workspaces with changes`,icon:a},{label:`Available assistants`,value:g.isLoading||b.isLoading?`—`:$.filter(e=>e.isAnyAvailable).length,detail:`Choose how you work`,icon:j}].map(({label:e,value:t,detail:n,icon:r})=>(0,P.jsxs)(M,{className:`context-metric gap-0 rounded-xl p-4 sm:p-5`,children:[(0,P.jsxs)(`div`,{className:`flex items-center justify-between gap-2 text-xs text-muted-foreground`,children:[(0,P.jsx)(`span`,{children:e}),(0,P.jsx)(r,{size:15,className:`text-primary`})]}),(0,P.jsx)(`div`,{className:`my-3 text-3xl font-semibold tracking-tight tabular-nums`,children:t}),(0,P.jsx)(`p`,{className:`text-[11px] text-muted-foreground`,children:n})]},e))}),(0,P.jsxs)(`div`,{className:`grid items-start gap-7 xl:grid-cols-[minmax(0,1fr)_310px]`,children:[(0,P.jsxs)(`section`,{className:`min-w-0`,"aria-labelledby":`workspaces-heading`,children:[(0,P.jsxs)(`div`,{className:`mb-4 flex items-center justify-between gap-3`,children:[(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`h2`,{id:`workspaces-heading`,className:`text-lg font-semibold tracking-tight`,children:`Your workspaces`}),(0,P.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:`A little context. A lot of possibility.`})]}),(0,P.jsxs)(r,{variant:`ghost`,size:`sm`,onClick:u,children:[(0,P.jsx)(S,{size:14}),` New`]})]}),(0,P.jsxs)(`div`,{className:`mb-4 flex flex-wrap items-center gap-2`,children:[(0,P.jsxs)(`label`,{className:`flex min-w-0 flex-1 items-center gap-2 rounded-lg border border-input bg-card px-3`,children:[(0,P.jsx)(l,{size:15,className:`shrink-0 text-muted-foreground`}),(0,P.jsx)(`input`,{"aria-label":`Search workspaces`,value:D,onChange:e=>I(e.target.value),placeholder:`Find a workspace or repository…`,className:`h-10 w-full min-w-0 bg-transparent text-xs outline-none`})]}),(0,P.jsxs)(r,{variant:L?`secondary`:`outline`,className:`h-10 rounded-lg`,"aria-pressed":L,onClick:()=>R(!L),children:[(0,P.jsx)(a,{size:14}),` With changes`]})]}),n?(0,P.jsx)(M,{className:`p-10`,children:(0,P.jsx)(y,{"aria-label":`Loading workspaces`,className:`mx-auto size-5`})}):e.length?H.length?(0,P.jsx)(`div`,{className:`space-y-3`,children:H.map(e=>{let n=t[e.branchName],r=e.mode===`in-place`||!n?null:C(n.syncStatus);return(0,P.jsxs)(`button`,{type:`button`,onClick:()=>i(e.branchName),className:`context-workspace group w-full rounded-xl border border-border bg-card p-5 text-left transition duration-200 hover:border-primary/50 hover:bg-accent/30 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring`,children:[(0,P.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,P.jsxs)(`div`,{className:`flex min-w-0 items-center gap-3`,children:[(0,P.jsx)(`span`,{className:`grid size-10 shrink-0 place-items-center rounded-lg border border-border bg-primary/5 text-primary`,children:(0,P.jsx)(d,{size:19})}),(0,P.jsxs)(`div`,{className:`min-w-0`,children:[(0,P.jsx)(`h3`,{className:`truncate text-sm font-semibold`,children:e.branchName}),(0,P.jsx)(`span`,{className:`text-[10px] text-muted-foreground`,children:e.mode===`in-place`?`In-place workspace`:`Isolated worktree`})]})]}),(0,P.jsx)(m,{size:17,className:`mt-2 shrink-0 text-muted-foreground transition-transform group-hover:translate-x-1 group-hover:text-primary`})]}),e.description&&(0,P.jsx)(`p`,{className:`mt-3 line-clamp-2 text-xs leading-relaxed text-muted-foreground`,children:e.description}),(0,P.jsx)(`div`,{className:`mt-4 flex flex-wrap items-center gap-2`,children:e.repos.map(e=>(0,P.jsx)(`span`,{className:`rounded-md bg-muted px-2 py-1 font-mono text-[10px] text-muted-foreground`,children:v(e)},e))}),(0,P.jsxs)(`div`,{className:`mt-4 flex flex-wrap items-center gap-x-4 gap-y-2 border-t border-border/60 pt-3 text-[11px] text-muted-foreground`,children:[(0,P.jsx)(`span`,{className:n?.changedFiles?`text-warning-foreground`:``,children:n?n.changedFiles?`${n.changedFiles} changed files`:`Working tree clean`:`Status pending`}),r&&(0,P.jsx)(`span`,{children:r.label}),!!n?.runningServices&&(0,P.jsxs)(`span`,{className:`text-success-foreground`,children:[n.runningServices,` services running`]}),(0,P.jsx)(`span`,{className:`ml-auto`,children:`Open workspace`})]})]},e.id)})}):(0,P.jsxs)(M,{className:`rounded-xl p-8 text-center`,children:[(0,P.jsx)(`p`,{className:`text-sm`,children:`No workspaces match this view.`}),(0,P.jsx)(r,{variant:`ghost`,className:`mt-3`,onClick:()=>{I(``),R(!1)},children:`Clear filters`})]}):(0,P.jsx)(M,{className:`rounded-xl border-dashed`,children:(0,P.jsxs)(O,{children:[(0,P.jsxs)(E,{children:[(0,P.jsx)(x,{variant:`icon`,children:(0,P.jsx)(d,{})}),(0,P.jsx)(h,{children:`Make room for your next idea`}),(0,P.jsx)(w,{children:`Create a workspace to bring repositories and assistant context together.`})]}),(0,P.jsxs)(r,{onClick:u,children:[(0,P.jsx)(S,{size:15}),` Create your first workspace`]})]})})]}),(0,P.jsxs)(`aside`,{className:`rounded-xl border border-border bg-card p-5`,"aria-labelledby":`assistants-heading`,children:[(0,P.jsxs)(`div`,{className:`mb-5`,children:[(0,P.jsxs)(`div`,{className:`mb-3 flex items-center gap-2 text-[10px] font-semibold uppercase tracking-[0.16em] text-primary`,children:[(0,P.jsx)(j,{size:14}),` Ready when you are`]}),(0,P.jsx)(`h2`,{id:`assistants-heading`,className:`text-lg font-semibold tracking-tight`,children:`Your AI, your way.`}),(0,P.jsx)(`p`,{className:`mt-2 text-xs leading-relaxed text-muted-foreground`,children:`Launch an assistant with the right workspace already in place.`})]}),(0,P.jsx)(`label`,{className:`block text-[11px] font-medium text-muted-foreground`,htmlFor:`launch-workspace`,children:`Launch into`}),(0,P.jsxs)(`select`,{id:`launch-workspace`,value:V?.branchName??``,onChange:e=>B(e.target.value),disabled:!e.length||!!U,className:`mt-2 mb-5 h-9 w-full min-w-0 rounded-md border border-input bg-background px-2 text-xs focus-visible:outline-ring`,children:[!e.length&&(0,P.jsx)(`option`,{value:``,children:`Create a workspace first`}),e.map(e=>(0,P.jsx)(`option`,{value:e.branchName,children:e.branchName},e.id))]}),(0,P.jsx)(`div`,{className:`divide-y divide-border`,children:$.map(({harness:e,availableOptions:t,isAnyAvailable:n,statusTone:i})=>(0,P.jsxs)(`div`,{className:`py-4 first:pt-0 last:pb-0`,children:[(0,P.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,P.jsxs)(`div`,{className:`flex items-center gap-2.5`,children:[e.icon,(0,P.jsx)(`h3`,{className:`text-xs font-semibold`,children:e.shortName})]}),(0,P.jsx)(A,{tone:i,children:g.isLoading||b.isLoading?`Checking`:g.isError||b.isError?`Check failed`:n?`Available`:`Not detected`})]}),(0,P.jsx)(`div`,{className:`mt-3 flex flex-wrap gap-2`,children:t.map(t=>(0,P.jsxs)(r,{variant:`outline`,size:`xs`,disabled:!!U||!V,onClick:()=>void ne(e,t),title:`Open ${e.name} in ${V?.branchName??`a workspace`}`,children:[U===`${e.id}:${t.id}`?(0,P.jsx)(y,{className:`size-3`}):t.icon,t.shortLabel,(0,P.jsx)(m,{size:11})]},t.id))})]},e.id))})]})]}),X.length>0&&(0,P.jsxs)(`section`,{className:`border-t border-border pt-5`,children:[(0,P.jsxs)(`div`,{className:`mb-3 flex items-center gap-2 text-xs font-medium text-muted-foreground`,children:[(0,P.jsx)(c,{size:14}),` Connected repositories`]}),(0,P.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:X.map(e=>(0,P.jsxs)(`button`,{onClick:()=>{I(e.path),R(!1),document.getElementById(`workspaces-heading`)?.scrollIntoView({block:`start`})},title:e.path,className:`flex items-center gap-2 rounded-lg border border-border bg-card px-3 py-2 text-xs transition-colors hover:border-primary/50 focus-visible:outline-ring`,children:[(0,P.jsx)(d,{size:13,className:`text-primary`}),e.name,(0,P.jsx)(`span`,{className:`text-muted-foreground`,children:e.count})]},e.path))})]})]})}export{I as DashboardPage};
@@ -1 +0,0 @@
1
- import{g as e,t}from"./button-CREn1mup.js";import{t as n}from"./circle-plus--zM3-3r3.js";import{t as r}from"./brand-hHByyyzq.js";import{Tn as i}from"./index-hTa55BQ6.js";var a=e();function o({config:e,onCreateWorkspace:o,onModifySettings:s}){return(0,a.jsxs)(`div`,{className:`max-w-4xl mx-auto animate-fade-in`,children:[(0,a.jsxs)(`header`,{className:`mb-10`,children:[(0,a.jsx)(`div`,{className:`inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-primary/10 text-primary border border-primary/20 text-xs font-semibold uppercase tracking-wider mb-4`,children:`Getting Started Guide`}),(0,a.jsxs)(`h1`,{className:`text-3xl font-bold tracking-tight text-foreground mb-2`,children:[`Welcome to `,r]}),(0,a.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[r,` orchestrates multi-repository developer environments. It combines isolated Git worktrees, automatic code analyzer sweeps, and background process running into a single dashboard.`]})]}),(0,a.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-8 mb-10`,children:[(0,a.jsxs)(`div`,{className:`bg-card border border-border rounded-xl p-6 shadow-sm space-y-6`,children:[(0,a.jsxs)(`h2`,{className:`text-lg font-semibold text-foreground mb-4`,children:[r,` Workflows`]}),(0,a.jsxs)(`div`,{className:`flex gap-4`,children:[(0,a.jsx)(`div`,{className:`flex size-8 shrink-0 items-center justify-center rounded-full bg-primary/10 border border-primary/20 text-primary font-bold text-sm`,children:`1`}),(0,a.jsxs)(`div`,{children:[(0,a.jsx)(`h3`,{className:`text-sm font-semibold text-foreground`,children:`Configure Folders`}),(0,a.jsxs)(`p`,{className:`text-xs text-muted-foreground mt-1`,children:[`Specify your Development folder (where repositories live) and Workspaces folder. These are currently set to:`,(0,a.jsx)(`code`,{className:`block mt-1 text-[10px] text-primary break-all`,children:e.devDir||`Not Configured`})]})]})]}),(0,a.jsxs)(`div`,{className:`flex gap-4`,children:[(0,a.jsx)(`div`,{className:`flex size-8 shrink-0 items-center justify-center rounded-full bg-primary/10 border border-primary/20 text-primary font-bold text-sm`,children:`2`}),(0,a.jsxs)(`div`,{children:[(0,a.jsx)(`h3`,{className:`text-sm font-semibold text-foreground`,children:`Build Workspaces`}),(0,a.jsxs)(`p`,{className:`text-xs text-muted-foreground mt-1`,children:[`Choose repositories and feature branch. `,r,` checks out dependencies under a unified workspace directory using Git Worktrees, keeping original projects clean.`]})]})]}),(0,a.jsxs)(`div`,{className:`flex gap-4`,children:[(0,a.jsx)(`div`,{className:`flex size-8 shrink-0 items-center justify-center rounded-full bg-primary/10 border border-primary/20 text-primary font-bold text-sm`,children:`3`}),(0,a.jsxs)(`div`,{children:[(0,a.jsx)(`h3`,{className:`text-sm font-semibold text-foreground`,children:`Align AI Context`}),(0,a.jsxs)(`p`,{className:`text-xs text-muted-foreground mt-1`,children:[r,` writes files like `,(0,a.jsx)(`code`,{children:`CLAUDE.md`}),`, `,(0,a.jsx)(`code`,{children:`.cursorrules`}),`, `,(0,a.jsx)(`code`,{children:`AGENTS.md`}),` prompting the LLM to inspect project relations and list key assumptions and questions before coding.`]})]})]})]}),(0,a.jsxs)(`div`,{className:`bg-card border border-border rounded-xl p-6 shadow-sm flex flex-col justify-between`,children:[(0,a.jsxs)(`div`,{children:[(0,a.jsx)(`h2`,{className:`text-lg font-semibold text-foreground mb-4`,children:`Current Configuration`}),(0,a.jsxs)(`div`,{className:`space-y-3 text-xs`,children:[(0,a.jsxs)(`div`,{className:`flex justify-between py-1.5 border-b border-border`,children:[(0,a.jsx)(`span`,{className:`text-muted-foreground`,children:`Dev Folder:`}),(0,a.jsx)(`span`,{className:`text-foreground font-mono text-[10px] truncate max-w-[200px]`,children:e.devDir})]}),(0,a.jsxs)(`div`,{className:`flex justify-between py-1.5 border-b border-border`,children:[(0,a.jsx)(`span`,{className:`text-muted-foreground`,children:`Workspaces Folder:`}),(0,a.jsx)(`span`,{className:`text-foreground font-mono text-[10px] truncate max-w-[200px]`,children:e.workspacesDir})]}),(0,a.jsxs)(`div`,{className:`flex justify-between py-1.5 border-b border-border`,children:[(0,a.jsx)(`span`,{className:`text-muted-foreground`,children:`Preferred AI:`}),(0,a.jsx)(`span`,{className:`text-primary font-semibold uppercase`,children:e.defaultAssistant||`None`})]}),(0,a.jsxs)(`div`,{className:`flex justify-between py-1.5`,children:[(0,a.jsx)(`span`,{className:`text-muted-foreground`,children:`Scan Depth:`}),(0,a.jsxs)(`span`,{className:`text-foreground font-semibold`,children:[e.scanDepth,` levels`]})]})]})]}),(0,a.jsxs)(`div`,{className:`pt-6 border-t border-border flex flex-col gap-2`,children:[(0,a.jsxs)(t,{className:`w-full gap-2`,onClick:o,children:[(0,a.jsx)(n,{size:14}),` Create a Workspace`]}),(0,a.jsxs)(t,{variant:`outline`,className:`w-full gap-2`,onClick:s,children:[(0,a.jsx)(i,{size:14,className:`text-muted-foreground`}),` Modify Settings`]})]})]})]})]})}export{o as GettingStartedPage};
@@ -1 +0,0 @@
1
- import{_ as e,b as t,g as n,t as r}from"./button-CREn1mup.js";import{n as i,t as a}from"./badge-DTBzXOWn.js";import{n as o,t as s}from"./ScaffoldRepoInline-D91aitAi.js";import{a as c,c as l,i as u,n as d,o as f,r as p,s as m,t as h}from"./alert-dialog-YynbGyj1.js";import{t as g}from"./trash-2-CMdv3eD3.js";import{An as _,I as ee,Pn as v,U as y,_ as b,a as x,d as S,f as C,g as w,h as T,hn as E,i as D,j as O,kn as k,lt as A,m as j,n as M,p as N,q as P,r as F,rt as I,t as L,v as te}from"./index-hTa55BQ6.js";var R=t(e(),1),z=n(),B={editingId:null,name:``,description:``,repoPaths:[]};function V(){let e=E(),t=y(),n=P(),V=A(),H=O(),U=I(),W=ee(),[G,K]=(0,R.useState)(null),[q,J]=(0,R.useState)(null),[Y,X]=(0,R.useState)(null),Z=(0,R.useMemo)(()=>{let e={};for(let t of V.data??[])t.projectId&&(e[t.projectId]=(e[t.projectId]??0)+1);return e},[V.data]),Q=()=>{J(null),K(B)},ne=e=>{J(null),K({editingId:e.id,name:e.name,description:e.description??``,repoPaths:e.repos.map(e=>e.path)})},re=e=>{K(t=>t&&{...t,repoPaths:t.repoPaths.includes(e.path)?t.repoPaths.filter(t=>t!==e.path):[...t.repoPaths,e.path]})},ie=async()=>{if(G){J(null);try{G.editingId?await U.mutateAsync({id:G.editingId,name:G.name,description:G.description||null,repos:G.repoPaths}):await H.mutateAsync({name:G.name,description:G.description||void 0,repos:G.repoPaths}),K(null)}catch(e){J(e instanceof Error?e.message:String(e))}}},ae=async()=>{if(Y)try{await W.mutateAsync(Y.id)}finally{X(null)}},oe=!!(G&&G.name.trim()&&G.repoPaths.length>0),$=H.isPending||U.isPending;return(0,z.jsxs)(`div`,{className:`mx-auto max-w-4xl animate-fade-in`,children:[(0,z.jsxs)(`header`,{className:`mb-6 flex flex-col sm:flex-row sm:items-center justify-between gap-4 border-b border-border/70 pb-4`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`h1`,{className:`text-xl font-bold tracking-tight text-foreground`,children:`Projects`}),(0,z.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:`Named groups of repositories you start work from. Registered once, reused for every feature workspace.`})]}),(0,z.jsxs)(r,{onClick:Q,className:`gap-1.5 shadow-sm`,children:[(0,z.jsx)(k,{size:15}),` New project`]})]}),t.isLoading?(0,z.jsx)(`div`,{className:`flex justify-center py-20`,children:(0,z.jsx)(S,{className:`size-6`})}):(t.data??[]).length===0?(0,z.jsxs)(L,{className:`border border-border border-dashed`,children:[(0,z.jsxs)(F,{children:[(0,z.jsx)(D,{variant:`icon`,children:(0,z.jsx)(v,{})}),(0,z.jsx)(x,{children:`No projects yet`}),(0,z.jsx)(M,{children:`Register your first project to start work without re-picking repositories every time.`})]}),(0,z.jsxs)(r,{onClick:Q,children:[(0,z.jsx)(k,{}),` New project`]})]}):(0,z.jsx)(`ul`,{className:`flex flex-col gap-3`,children:(t.data??[]).map(t=>(0,z.jsx)(`li`,{className:`rounded-xl border border-border/80 bg-card/70 backdrop-blur-md p-4 transition-all duration-200 hover:border-primary/40 hover:shadow-xs`,children:(0,z.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,z.jsxs)(`div`,{className:`min-w-0`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsx)(`h2`,{className:`truncate text-sm font-semibold`,children:t.name}),(Z[t.id]??0)>0&&(0,z.jsxs)(a,{variant:`secondary`,children:[Z[t.id],` workspace`,Z[t.id]===1?``:`s`]})]}),t.description&&(0,z.jsx)(`p`,{className:`mt-0.5 truncate text-sm text-muted-foreground`,children:t.description}),(0,z.jsx)(`ul`,{className:`mt-2 flex flex-col gap-0.5`,children:t.repos.map(e=>(0,z.jsxs)(`li`,{className:`truncate font-mono text-xs text-muted-foreground`,children:[e.path,(0,z.jsxs)(`span`,{className:`ml-2 text-muted-foreground/60`,children:[`[`,e.defaultBranch,`]`]})]},e.path))})]}),(0,z.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1.5`,children:[(0,z.jsxs)(r,{size:`sm`,onClick:()=>e(`/new?project=${encodeURIComponent(t.id)}`),children:[(0,z.jsx)(_,{}),` Start work`]}),(0,z.jsx)(r,{size:`icon-sm`,variant:`ghost`,"aria-label":`Edit ${t.name}`,onClick:()=>ne(t),children:(0,z.jsx)(l,{})}),(0,z.jsx)(r,{size:`icon-sm`,variant:`ghost`,"aria-label":`Remove ${t.name}`,onClick:()=>X(t),children:(0,z.jsx)(g,{})})]})]})},t.id))}),(0,z.jsx)(C,{open:G!==null,onOpenChange:e=>!e&&K(null),children:(0,z.jsxs)(b,{className:`max-w-lg`,children:[(0,z.jsxs)(T,{children:[(0,z.jsx)(te,{children:G?.editingId?`Edit project`:`New project`}),(0,z.jsx)(N,{children:`A project is a reusable group of source repositories. Removing one later never touches disk.`})]}),(0,z.jsxs)(w,{className:`space-y-4`,children:[(0,z.jsxs)(`label`,{className:`block`,children:[(0,z.jsx)(`span`,{className:`mb-1 block text-sm font-medium`,children:`Name`}),(0,z.jsx)(i,{value:G?.name??``,onChange:e=>K(t=>t&&{...t,name:e.target.value}),placeholder:`e.g. Acme Billing`,autoFocus:!0})]}),(0,z.jsxs)(`label`,{className:`block`,children:[(0,z.jsxs)(`span`,{className:`mb-1 block text-sm font-medium`,children:[`Description `,(0,z.jsx)(`span`,{className:`font-normal text-muted-foreground`,children:`(optional)`})]}),(0,z.jsx)(i,{value:G?.description??``,onChange:e=>K(t=>t&&{...t,description:e.target.value}),placeholder:`What this group of repos is for`})]}),(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`span`,{className:`mb-1 block text-sm font-medium`,children:`Repositories`}),(0,z.jsx)(o,{repos:n.data??[],selectedPaths:G?.repoPaths??[],onToggle:re,loading:n.isLoading,emptyHint:`No repositories found in your dev directory.`}),(0,z.jsx)(s,{onCreated:e=>K(t=>t&&{...t,repoPaths:[...t.repoPaths,e.path]})})]}),q&&(0,z.jsx)(`p`,{className:`text-sm text-destructive-foreground`,children:q})]}),(0,z.jsxs)(j,{children:[(0,z.jsx)(r,{variant:`outline`,onClick:()=>K(null),children:`Cancel`}),(0,z.jsxs)(r,{onClick:ie,disabled:!oe||$,children:[$?(0,z.jsx)(S,{}):null,G?.editingId?`Save changes`:`Create project`]})]})]})}),(0,z.jsx)(h,{open:Y!==null,onOpenChange:e=>!e&&X(null),children:(0,z.jsxs)(f,{children:[(0,z.jsxs)(c,{children:[(0,z.jsxs)(m,{children:[`Remove “`,Y?.name,`”?`]}),(0,z.jsx)(p,{children:`This only removes the project from the registry — repositories and workspaces on disk are not touched.`})]}),(0,z.jsxs)(u,{children:[(0,z.jsx)(d,{render:(0,z.jsx)(r,{variant:`outline`,children:`Cancel`})}),(0,z.jsxs)(r,{variant:`destructive`,onClick:ae,disabled:W.isPending,children:[W.isPending?(0,z.jsx)(S,{}):null,`Remove project`]})]})]})})]})}export{V as ProjectsPage};
@@ -1 +0,0 @@
1
- import{_ as e,b as t,c as n,d as r,f as i,g as a,h as o,i as s,l as c,m as l,o as u,p as d,t as f}from"./button-CREn1mup.js";import{En as p,Jn as m,Kt as h,Ln as g,Wt as _,Xt as v,Yt as ee,_n as te,bt as ne,c as re,i as ie,l as ae,n as y,nn as oe,o as se,rn as ce,s as le,sn as ue,xt as de}from"./badge-DTBzXOWn.js";import{t as fe}from"./useAriaLabelledBy-BmJErI5a.js";import{Dn as b,Ft as pe,M as x,d as S,u as me}from"./index-hTa55BQ6.js";var C=o(`folder-plus`,[[`path`,{d:`M12 10v6`,key:`1bos4e`}],[`path`,{d:`M9 13h6`,key:`1uhe8q`}],[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),w=t(e(),1),T=w.createContext({disabled:!1});function he(){return w.useContext(T)}function ge(e){if(!e)return null;for(let t of e.elements){let e=t.tagName;if(e===`BUTTON`||e===`INPUT`){let e=t;if(e.type===`submit`)return e}}return null}function E(e){return{checked(t){return e.indeterminate?{}:t?{"data-checked":``}:{"data-unchecked":``}},...ae}}var D=w.createContext(void 0);function _e(){return w.useContext(D)}var O=w.createContext(void 0);function k(){let e=w.useContext(O);if(e===void 0)throw Error(d(14));return e}var A=a(),ve=`data-parent`,ye=w.forwardRef(function(e,t){let{checked:a,className:o,defaultChecked:l=!1,"aria-labelledby":d,disabled:f=!1,form:m,id:h,indeterminate:_=!1,inputRef:ae,name:y,onCheckedChange:b,parent:x=!1,readOnly:S=!1,render:me,required:C=!1,uncheckedValue:T,value:D,nativeButton:k=!1,style:ye,...j}=e,{clearErrors:M}=le(),{disabled:N,name:be,setDirty:xe,setFilled:P,setFocused:Se,setTouched:Ce,state:we,validationMode:Te,validityData:Ee,validation:De}=re(),Oe=he(),{labelId:ke,controlId:Ae,registerControlId:F,getDescriptionProps:je}=se(),I=_e(),L=I?.allValues===void 0?void 0:I.parent,R=L!==void 0,z=N||Oe.disabled||I?.disabled||f,B=be??y,V=D??B,Me=v(),Ne=v(),H=h||Ae;R&&(x?H=Ne:V===void 0?H||=Ne:H=`${L.id}-${V}`);let U={};R&&(x?U=L.getParentProps():V!==void 0&&(U=L.getChildProps(V)));let{checked:Pe=a,indeterminate:Fe=_,onCheckedChange:Ie,...Le}=U,W=I?.value,G=w.useRef(null),K=i(()=>Symbol()),q=w.useRef(!1),{getButtonProps:Re,buttonRef:ze}=oe({disabled:z,native:k}),J=I?.validation??De,[Y,Be]=p({controlled:V!==void 0&&W!==void 0&&!x?W.includes(V):Pe,default:l,name:`Checkbox`,state:`checked`}),X=R?!!Pe:Y,Z=R&&Fe||_;ue(()=>{F!==c&&(q.current=!0,F(K.current,H))},[H,F,K]),w.useEffect(()=>{let e=K.current;return()=>{!q.current||F===c||(q.current=!1,F(e,void 0))}},[F,K]),ie(G,Me,Y,void 0,!I&&!z,y);let Q=w.useRef(null),Ve=J.registerInput,He=I?V:void 0,Ue=w.useCallback(e=>Ve(e,{controlRef:G,value:He}),[Ve,He]),We=r(ae,Q,x?void 0:Ue),Ge=fe(d,ke,Q,!k,H??void 0);ue(()=>{Q.current&&(Q.current.indeterminate=Z,Y&&P(!0))},[Y,Z,P]),pe(Y,()=>{I||(M(B),P(Y),xe(Y!==Ee.initialValue),J.change(Y))});let Ke=u({checked:Y,disabled:z,form:m,name:x?void 0:B,id:k?void 0:H??void 0,required:C,ref:We,style:B?de:ne,tabIndex:-1,type:`checkbox`,"aria-hidden":!0,onChange(e){if(e.nativeEvent.defaultPrevented)return;if(S){e.preventDefault();return}let t=e.currentTarget.checked,n=ee(g,e.nativeEvent);if(b?.(t,n),!n.isCanceled&&(Ie?.(t,n),!n.isCanceled&&(Be(t),V!==void 0&&I!==void 0&&!x&&!R))){let e=t?[...I.value,V]:I.value.filter(e=>e!==V);I.setValue(e,n)}},onClick(e){e.stopPropagation()},onFocus(){G.current?.focus()}},D===void 0?n:{value:(I?Y&&D:D)||``},je,e=>J.getValidationProps(z,e));w.useEffect(()=>{if(!L||V===void 0)return;let e=L.disabledStatesRef.current;return e.set(V,z),()=>{e.delete(V)}},[L,z,V]);let $=w.useMemo(()=>({...we,checked:X,disabled:z,readOnly:S,required:C,indeterminate:Z}),[we,X,z,S,C,Z]),qe=E($),Je=s(`span`,e,{state:$,ref:[ze,G,t],props:[{id:k?H??void 0:Me,role:`checkbox`,"aria-checked":Z?`mixed`:X,"aria-readonly":S||void 0,"aria-required":C||void 0,"aria-labelledby":Ge,[ve]:x?``:void 0,onFocus(){z||Se(!0)},onBlur(){let e=Q.current;e&&(Ce(!0),Se(!1),Te===`onBlur`&&J.commit(I?W:e.checked))},onKeyDown(e){if(e.key!==`Enter`||(e.preventBaseUIHandler(),e.defaultPrevented))return;let t=Q.current?.form??null,n=e.currentTarget,r=e.nativeEvent,i=e.preventDefault,a=r.preventDefault,o=!1;e.preventDefault=()=>{o=!0,i.call(e)},r.preventDefault=()=>{o=!0,a.call(r)},a.call(r),te(n).queueMicrotask(()=>{e.preventDefault=i,r.preventDefault=a,o||ge(t)?.click()})},onClick(e){if(S||z)return;e.preventDefault();let t=Q.current;t&&ce(t,e)}},j,Le,Re,je,e=>J.getValidationProps(z,e)],stateAttributesMapping:qe});return(0,A.jsxs)(O.Provider,{value:$,children:[Je,!Y&&!I&&B&&!x&&T!==void 0&&(0,A.jsx)(`input`,{type:`hidden`,form:m,name:B,value:T,disabled:z}),(0,A.jsx)(`input`,{...Ke,suppressHydrationWarning:!0})]})}),j=w.forwardRef(function(e,t){let{render:n,className:r,style:i,keepMounted:a=!1,...o}=e,c=k(),l=c.checked||c.indeterminate,{mounted:u,transitionStatus:d,setMounted:f}=h(l),p=w.useRef(null),g={...c,transitionStatus:d};_({open:l,ref:p,onComplete(){l||f(!1)}});let v={...E(c),...m},ee=a||u,te=s(`span`,e,{ref:[t,p],state:g,stateAttributesMapping:v,props:o});return ee?te:null});function M({className:e,...t}){return(0,A.jsx)(ye,{className:l(`relative inline-flex size-4.5 shrink-0 items-center justify-center rounded-[.25rem] border border-input bg-background not-dark:bg-clip-padding shadow-xs/5 outline-none ring-ring transition-shadow before:pointer-events-none before:absolute before:inset-0 before:rounded-[3px] not-data-disabled:not-data-checked:not-aria-invalid:before:shadow-[0_1px_--theme(--color-black/4%)] focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:ring-offset-background aria-invalid:border-destructive/36 focus-visible:aria-invalid:border-destructive/64 focus-visible:aria-invalid:ring-destructive/48 data-disabled:opacity-64 sm:size-4 dark:not-data-checked:bg-input/32 dark:aria-invalid:ring-destructive/24 dark:not-data-disabled:not-data-checked:not-aria-invalid:before:shadow-[0_-1px_--theme(--color-white/6%)] [[data-disabled],[data-checked],[aria-invalid]]:shadow-none`,e),"data-slot":`checkbox`,...t,children:(0,A.jsx)(j,{className:`-inset-px absolute flex items-center justify-center rounded-[.25rem] text-primary-foreground data-unchecked:hidden data-checked:bg-primary data-indeterminate:text-foreground`,"data-slot":`checkbox-indicator`,render:(e,t)=>(0,A.jsx)(`span`,{...e,children:t.indeterminate?(0,A.jsx)(`svg`,{className:`size-3.5 sm:size-3`,fill:`none`,height:`24`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`3`,viewBox:`0 0 24 24`,width:`24`,xmlns:`http://www.w3.org/2000/svg`,children:(0,A.jsx)(`path`,{d:`M5.252 12h13.496`})}):(0,A.jsx)(`svg`,{className:`size-3.5 sm:size-3`,fill:`none`,height:`24`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`3`,viewBox:`0 0 24 24`,width:`24`,xmlns:`http://www.w3.org/2000/svg`,children:(0,A.jsx)(`path`,{d:`M5.252 12.7 10.2 18.63 18.748 5.37`})})})})})}function N({repos:e,selectedPaths:t,onToggle:n,loading:r,emptyHint:i,className:a,freshnessMap:o}){let[s,c]=(0,w.useState)(``),u=(0,w.useMemo)(()=>{let t=s.trim().toLowerCase();return t?e.filter(e=>e.name.toLowerCase().includes(t)||e.path.toLowerCase().includes(t)):e},[e,s]);return(0,A.jsxs)(`div`,{className:l(`flex flex-col gap-2`,a),children:[(0,A.jsxs)(`div`,{className:`relative`,children:[(0,A.jsx)(b,{className:`absolute top-1/2 left-2.5 size-4 -translate-y-1/2 text-muted-foreground`}),(0,A.jsx)(y,{value:s,onChange:e=>c(e.target.value),placeholder:`Filter repositories…`,className:`pl-8`,"aria-label":`Filter repositories`})]}),(0,A.jsx)(`div`,{className:`max-h-56 overflow-y-auto rounded-lg border border-border`,children:r?(0,A.jsx)(`p`,{className:`p-3 text-sm text-muted-foreground`,children:`Scanning for repositories…`}):u.length===0?(0,A.jsx)(`p`,{className:`p-3 text-sm text-muted-foreground`,children:i??`No repositories found.`}):(0,A.jsx)(`ul`,{className:`divide-y divide-border`,children:u.map(e=>{let r=t.includes(e.path),i=o?.[e.path];return(0,A.jsx)(`li`,{children:(0,A.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-3 px-3 py-2 hover:bg-accent`,children:[(0,A.jsx)(M,{checked:r,onCheckedChange:()=>n(e),"aria-label":e.name}),(0,A.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,A.jsx)(`span`,{className:`block truncate text-sm font-medium`,children:e.name}),(0,A.jsx)(`span`,{className:`block truncate font-mono text-xs text-muted-foreground`,children:e.path})]}),(0,A.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[i&&(0,A.jsx)(me,{tone:i.status===`up-to-date`?`success`:i.status===`behind`?`warning`:i.status===`diverged`?`danger`:i.status===`ahead`?`info`:`neutral`,title:i.message,children:i.status===`behind`?`↓ ${i.behind} behind`:i.status===`up-to-date`?`Up to date`:i.status===`diverged`?`Diverged`:i.status===`ahead`?`↑ ${i.ahead} ahead`:`Local`}),(0,A.jsx)(`span`,{className:`font-mono text-xs text-muted-foreground`,children:e.defaultBranch})]})]})},e.path)})})})]})}function be({onCreated:e}){let[t,n]=(0,w.useState)(!1),[r,i]=(0,w.useState)(``),[a,o]=(0,w.useState)(null),s=x(),c=async()=>{o(null);try{let{repo:t}=await s.mutateAsync(r.trim());i(``),n(!1),e(t)}catch(e){o(e instanceof Error?e.message:String(e))}};return t?(0,A.jsxs)(`div`,{className:`mt-1.5 flex flex-col gap-1.5`,children:[(0,A.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,A.jsx)(y,{value:r,onChange:e=>i(e.target.value),onKeyDown:e=>e.key===`Enter`&&r.trim()&&c(),placeholder:`new-repo-name`,className:`h-7 font-mono text-xs`,"aria-label":`New repository name`,autoFocus:!0}),(0,A.jsxs)(f,{size:`xs`,onClick:c,disabled:!r.trim()||s.isPending,children:[s.isPending?(0,A.jsx)(S,{}):null,`Create`]}),(0,A.jsx)(f,{size:`xs`,variant:`ghost`,onClick:()=>{n(!1),o(null)},children:`Cancel`})]}),a&&(0,A.jsx)(`p`,{className:`text-xs text-destructive-foreground`,children:a})]}):(0,A.jsxs)(`button`,{type:`button`,onClick:()=>n(!0),className:`mt-1.5 inline-flex cursor-pointer items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground`,children:[(0,A.jsx)(C,{className:`size-3.5`}),` Scaffold a brand-new repository`]})}export{N as n,M as r,be as t};
@@ -1 +0,0 @@
1
- import{_ as e,b as t,c as n,d as r,g as i,i as a,m as o,p as s,t as c}from"./button-CREn1mup.js";import{En as l,Ln as u,Xt as d,Yt as f,a as p,bt as m,c as ee,i as te,l as h,n as g,nn as _,o as v,rn as ne,s as re,sn as ie,t as y,xt as ae}from"./badge-DTBzXOWn.js";import{t as b}from"./useAriaLabelledBy-BmJErI5a.js";import{C as x,Ft as oe,On as S,S as C,b as w,d as T,kt as E,w as D,x as O,xn as k,zn as A}from"./index-hTa55BQ6.js";import{t as j}from"./card-yrg6ov8B.js";import{t as M}from"./label-DC730X8s.js";import{t as N}from"./alert-QnMXzwpU.js";var P=i();function F({className:e,orientation:t=`horizontal`,...n}){return(0,P.jsx)(E,{className:o(`shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:not-[[class^='h-']]:not-[[class*='_h-']]:self-stretch`,e),"data-slot":`separator`,orientation:t,...n})}var I=t(e(),1),L=I.createContext(void 0);function R(){let e=I.useContext(L);if(e===void 0)throw Error(s(63));return e}var z={...h,checked(e){return e?{"data-checked":``}:{"data-unchecked":``}}},B=I.forwardRef(function(e,t){let{checked:i,className:o,defaultChecked:s,"aria-labelledby":c,form:h,id:g,inputRef:y,name:x,nativeButton:S=!1,onCheckedChange:C,readOnly:w=!1,required:T=!1,disabled:E=!1,render:D,uncheckedValue:O,value:k,style:A,...j}=e,{clearErrors:M}=re(),{state:N,setTouched:F,setDirty:R,validityData:B,setFilled:V,setFocused:H,validationMode:U,disabled:se,name:ce,validation:W}=ee(),{labelId:le}=v(),G=se||E,K=ce??x,q=I.useRef(null),ue=r(q,y,W.inputRef),J=I.useRef(null),Y=d(),X=p({id:g,implicit:!1,controlRef:J}),Z=S?void 0:X,[Q,de]=l({controlled:i,default:!!s,name:`Switch`,state:`checked`});te(J,Y,Q,void 0,!G,x),ie(()=>{q.current&&V(q.current.checked)},[V]),oe(Q,()=>{M(K),R(Q!==B.initialValue),V(Q),W.change(Q)});let{getButtonProps:fe,buttonRef:pe}=_({disabled:G,native:S}),me=b(c,le,q,!S,Z),he={id:S?X:Y,role:`switch`,"aria-checked":Q,"aria-readonly":w||void 0,"aria-required":T||void 0,"aria-labelledby":me,onFocus(){G||H(!0)},onBlur(){let e=q.current;!e||G||(F(!0),H(!1),U===`onBlur`&&W.commit(e.checked))},onClick(e){if(w||G)return;e.preventDefault();let t=q.current;t&&ne(t,e)}},ge={...W.getValidationProps(G),checked:Q,disabled:G,form:h,id:Z,name:K,required:T,style:K?ae:m,tabIndex:-1,type:`checkbox`,"aria-hidden":!0,ref:ue,onChange(e){if(e.nativeEvent.defaultPrevented)return;if(w){e.preventDefault();return}let t=e.currentTarget.checked,n=f(u,e.nativeEvent);C?.(t,n),!n.isCanceled&&de(t)},onClick(e){e.stopPropagation()},onFocus(){J.current?.focus()},...k===void 0?n:{value:k}},$=I.useMemo(()=>({...N,checked:Q,disabled:G,readOnly:w,required:T}),[N,Q,G,w,T]),_e=a(`span`,e,{state:$,ref:[t,J,pe],props:[he,j,fe,e=>W.getValidationProps(G,e)],stateAttributesMapping:z});return(0,P.jsxs)(L.Provider,{value:$,children:[_e,!Q&&K&&O!==void 0&&(0,P.jsx)(`input`,{type:`hidden`,form:h,name:K,value:O,disabled:G}),(0,P.jsx)(`input`,{...ge,suppressHydrationWarning:!0})]})}),V=I.forwardRef(function(e,t){let{render:n,className:r,style:i,...o}=e,s=R();return a(`span`,e,{state:s,ref:t,stateAttributesMapping:z,props:o})});function H({className:e,...t}){return(0,P.jsx)(B,{className:o(`inline-flex h-[calc(var(--thumb-size)+2px)] w-[calc(var(--thumb-size)*2-2px)] shrink-0 cursor-pointer items-center rounded-full p-px outline-none transition-[background-color,box-shadow] duration-200 [--thumb-size:--spacing(5)] focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background data-checked:bg-primary data-unchecked:bg-input data-disabled:cursor-not-allowed data-disabled:opacity-64 sm:[--thumb-size:--spacing(4)]`,e),"data-slot":`switch`,...t,children:(0,P.jsx)(V,{className:o(`pointer-events-none block aspect-square h-full origin-left in-[[role=switch]:active,[data-slot=label]:active,[data-slot=field-label]:active]:not-data-disabled:scale-x-110 in-[[role=switch]:active,[data-slot=label]:active,[data-slot=field-label]:active]:rounded-[var(--thumb-size)/calc(var(--thumb-size)*1.1)] rounded-(--thumb-size) bg-background shadow-sm/5 will-change-transform [transition:translate_.15s,border-radius_.15s,scale_.1s_.1s,transform-origin_.15s] data-checked:origin-[var(--thumb-size)_50%] data-checked:translate-x-[calc(var(--thumb-size)-4px)]`),"data-slot":`switch-thumb`})})}function U({config:e,setConfig:t,saveStatus:n,editors:r,adapters:i,saveAppConfig:a,isSettingsFormValid:o,toolsStatus:s,toolsLoading:l,updatingToolId:u,fetchToolsStatus:d,handleUpdateTool:f}){if(!e)return null;let p=r.find(t=>t.command===e.defaultEditor),m=i.find(t=>t.name===(e.storageProvider||`local`));return(0,P.jsxs)(`div`,{className:`mx-auto max-w-4xl animate-fade-in`,children:[(0,P.jsxs)(`header`,{className:`mb-6 border-b border-border/70 pb-4`,children:[(0,P.jsx)(`h1`,{className:`text-xl font-bold tracking-tight text-foreground`,children:`Global Settings`}),(0,P.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:`Configure your local development directories, AI search parameters, storage adapters, and editor defaults.`})]}),n===`success`&&(0,P.jsxs)(N,{variant:`success`,className:`mb-6`,children:[(0,P.jsx)(A,{size:18}),` Settings successfully saved and updated!`]}),n===`error`&&(0,P.jsxs)(N,{variant:`error`,className:`mb-6`,children:[(0,P.jsx)(k,{size:18}),` Error: Could not save configuration details to disk.`]}),(0,P.jsx)(j,{className:`mb-6 rounded-xl border border-border/80 bg-card/70 backdrop-blur-md p-6 shadow-xs`,children:(0,P.jsxs)(`div`,{className:`grid grid-cols-1 gap-6 md:grid-cols-2`,children:[(0,P.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,P.jsx)(M,{htmlFor:`settings-devDir`,className:`text-sm`,children:`Development Directory`}),(0,P.jsx)(g,{type:`text`,id:`settings-devDir`,value:e.devDir,onChange:n=>t({...e,devDir:n.target.value})}),(0,P.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Directory where your git projects are scanned.`})]}),(0,P.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,P.jsx)(M,{htmlFor:`settings-workspacesDir`,className:`text-sm`,children:`Workspaces Directory`}),(0,P.jsx)(g,{type:`text`,id:`settings-workspacesDir`,value:e.workspacesDir,onChange:n=>t({...e,workspacesDir:n.target.value})}),(0,P.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Directory where unified worktree environments are spun up.`})]}),(0,P.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,P.jsx)(M,{htmlFor:`settings-scanDepth`,className:`text-sm`,children:`Repo Search Depth`}),(0,P.jsx)(g,{type:`number`,min:1,max:5,id:`settings-scanDepth`,value:e.scanDepth,onChange:n=>t({...e,scanDepth:parseInt(n.target.value,10)})}),(0,P.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Max directory levels deep the system will traverse for git repos.`})]}),(0,P.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,P.jsx)(M,{className:`text-sm`,children:`Default Assistant`}),(0,P.jsxs)(w,{value:e.defaultAssistant||``,onValueChange:n=>typeof n==`string`&&t({...e,defaultAssistant:n||null}),children:[(0,P.jsx)(x,{"aria-label":`Default Assistant`,children:(0,P.jsx)(D,{children:e.defaultAssistant===`claude`?`Claude Code`:e.defaultAssistant===`antigravity`?`Antigravity`:e.defaultAssistant===`codex`?`Codex`:e.defaultAssistant===`copilot`?`GitHub Copilot`:e.defaultAssistant===`cursor`?`Cursor`:`None (Prompt me)`})}),(0,P.jsxs)(C,{alignItemWithTrigger:!1,children:[(0,P.jsx)(O,{value:``,children:`None (Prompt me)`}),(0,P.jsx)(O,{value:`claude`,children:`Claude Code`}),(0,P.jsx)(O,{value:`antigravity`,children:`Antigravity`}),(0,P.jsx)(O,{value:`codex`,children:`Codex`}),(0,P.jsx)(O,{value:`copilot`,children:`GitHub Copilot`}),(0,P.jsx)(O,{value:`cursor`,children:`Cursor`})]})]}),(0,P.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Your preferred workspace context manager.`})]}),(0,P.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,P.jsx)(M,{className:`text-sm`,children:`Preferred Editor`}),(0,P.jsxs)(w,{value:e.defaultEditor||``,onValueChange:n=>typeof n==`string`&&t({...e,defaultEditor:n||null}),children:[(0,P.jsx)(x,{"aria-label":`Preferred Editor`,children:(0,P.jsx)(D,{children:p?`${p.name} ${p.detected?`(Detected)`:`(Not found)`}`:`No preference`})}),(0,P.jsxs)(C,{alignItemWithTrigger:!1,children:[(0,P.jsx)(O,{value:``,children:`No preference`}),r.map(e=>(0,P.jsxs)(O,{value:e.command,children:[e.name,` `,e.detected?`(Detected)`:`(Not found)`]},e.command))]})]}),(0,P.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Shown first in the “Open with…” workspace chooser.`})]}),(0,P.jsxs)(`div`,{className:`flex flex-col gap-4 md:col-span-2`,children:[(0,P.jsx)(F,{className:`mt-1`}),(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`h3`,{className:`text-sm font-semibold text-foreground`,children:`Workspace Storage Settings`}),(0,P.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:`Choose where maps, plans, and knowledge files are stored.`})]}),(0,P.jsxs)(`div`,{className:`flex max-w-md flex-col gap-1.5`,children:[(0,P.jsx)(M,{htmlFor:`storageProvider`,className:`text-sm`,children:`Storage Provider`}),(0,P.jsxs)(w,{value:e.storageProvider||`local`,onValueChange:n=>{if(typeof n!=`string`)return;let r=n,a={...e,storageProvider:r},o=i.find(e=>e.name===r);o?.configFields?.length&&(a.adapterConfig||={},a.adapterConfig[r]||(a.adapterConfig[r]={}),o.configFields.forEach(e=>{a.adapterConfig[r][e.key]===void 0&&e.default!==void 0&&(a.adapterConfig[r][e.key]=e.default)})),t(a)},children:[(0,P.jsx)(x,{id:`storageProvider`,"aria-label":`Storage Provider`,children:(0,P.jsx)(D,{children:m?.displayName??`Local Workspace (Folders)`})}),(0,P.jsx)(C,{alignItemWithTrigger:!1,children:i.length>0?i.map(e=>(0,P.jsx)(O,{value:e.name,children:e.displayName},e.name)):(0,P.jsx)(O,{value:`local`,children:`Local Workspace (Folders)`})})]}),(0,P.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:m?.description||`Choose where to store maps, plans, and knowledge files. Centralized vault keeps repositories 100% clean and allows Obsidian integration.`})]}),(()=>{let n=e.storageProvider||`local`,r=i.find(e=>e.name===n);return r?.configFields?.length?(0,P.jsxs)(`div`,{className:`flex max-w-md flex-col gap-4 rounded-xl border border-border bg-muted/40 p-4`,children:[(0,P.jsxs)(`h4`,{className:`text-xs font-semibold uppercase tracking-wider text-muted-foreground`,children:[r.displayName,` Settings`]}),r.configFields.map(r=>{let i=e.adapterConfig?.[n]?.[r.key]??r.default??``,a=i=>{let a={...e.adapterConfig||{},[n]:{...e.adapterConfig?.[n]||{},[r.key]:i}};t({...e,adapterConfig:a})};return r.type===`boolean`?(0,P.jsxs)(M,{className:`flex cursor-pointer items-start gap-3 text-sm`,children:[(0,P.jsx)(H,{checked:!!i,onCheckedChange:e=>a(e)}),(0,P.jsxs)(`span`,{className:`flex flex-col`,children:[(0,P.jsx)(`span`,{className:`text-sm font-medium text-foreground`,children:r.label}),r.description&&(0,P.jsx)(`span`,{className:`mt-0.5 text-xs leading-normal text-muted-foreground`,children:r.description})]})]},r.key):(0,P.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,P.jsx)(M,{className:`text-sm`,children:r.label}),(0,P.jsx)(g,{type:r.type===`number`?`number`:`text`,value:i,onChange:e=>{let t=r.type===`number`?Number(e.target.value):e.target.value;a(t)}}),r.description&&(0,P.jsx)(`span`,{className:`text-xs leading-normal text-muted-foreground`,children:r.description})]},r.key)})]}):null})()]})]})}),(0,P.jsxs)(j,{className:`mt-6 rounded-xl border border-border/80 bg-card/70 backdrop-blur-md p-6 shadow-xs`,children:[(0,P.jsxs)(`div`,{className:`mb-6 flex items-start justify-between gap-4`,children:[(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`h3`,{className:`text-lg font-semibold text-foreground`,children:`AI Toolchain Updates`}),(0,P.jsx)(`p`,{className:`mt-1 text-sm text-muted-foreground`,children:`Monitor and update the CLI packages and assistants in your workflow.`})]}),(0,P.jsxs)(c,{variant:`outline`,size:`sm`,onClick:()=>d(!0),disabled:l,children:[l?(0,P.jsx)(T,{className:`size-3`}):(0,P.jsx)(S,{size:13}),l?`Checking...`:`Check Now`]})]}),l&&s.length===0?(0,P.jsxs)(`div`,{className:`flex flex-col items-center justify-center gap-2 py-8 text-muted-foreground`,children:[(0,P.jsx)(T,{className:`size-6`}),(0,P.jsx)(`span`,{className:`text-xs`,children:`Fetching registry version details...`})]}):s.length===0?(0,P.jsx)(`p`,{className:`py-4 text-xs text-muted-foreground`,children:`No toolchain information available.`}):(0,P.jsx)(`div`,{className:`space-y-4`,children:s.map(e=>(0,P.jsxs)(`div`,{className:`flex flex-col gap-4 rounded-xl border border-border bg-muted/30 p-4 sm:flex-row sm:items-center sm:justify-between`,children:[(0,P.jsxs)(`div`,{className:`min-w-0`,children:[(0,P.jsxs)(`h4`,{className:`flex items-center gap-2 text-sm font-semibold text-foreground`,children:[e.name,(0,P.jsx)(y,{variant:e.installed?`success`:`secondary`,size:`sm`,children:e.installed?`Installed`:`Not Installed`})]}),(0,P.jsxs)(`div`,{className:`mt-1.5 flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-muted-foreground`,children:[(0,P.jsxs)(`span`,{children:[`Installed version: `,(0,P.jsx)(`code`,{className:`font-mono text-[10px] text-foreground`,children:e.currentVersion})]}),e.installed&&(0,P.jsxs)(`span`,{children:[`Latest: `,(0,P.jsx)(`code`,{className:`font-mono text-[10px] text-foreground`,children:e.latestVersion})]})]}),(0,P.jsx)(`p`,{className:`mt-1 font-mono text-[10px] text-muted-foreground`,children:e.updateCmd})]}),(0,P.jsx)(`div`,{className:`flex shrink-0 items-center gap-3`,children:e.updateAvailable?(0,P.jsx)(c,{size:`sm`,onClick:()=>f(e.id),disabled:u!==null,children:u===e.id?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(T,{className:`size-3`}),` Updating...`]}):`Update Tool`}):e.installed?(0,P.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,P.jsxs)(y,{variant:`success`,className:`gap-1.5`,children:[(0,P.jsx)(A,{size:12}),` Up to Date`]}),(0,P.jsx)(c,{variant:`outline`,size:`sm`,onClick:()=>f(e.id),disabled:u!==null,children:u===e.id?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(T,{className:`size-3`}),` Reinstalling...`]}):`Reinstall`})]}):(0,P.jsx)(c,{variant:`outline`,size:`sm`,onClick:()=>f(e.id),disabled:u!==null,children:u===e.id?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(T,{className:`size-3`}),` Installing...`]}):`Install CLI`})})]},e.id))})]}),(0,P.jsx)(`div`,{className:`mb-10 flex justify-end pt-4`,children:(0,P.jsxs)(c,{onClick:()=>a(e),disabled:!o,children:[(0,P.jsx)(A,{size:16}),` Save Configuration`]})})]})}export{U as SettingsPage};
@@ -1,7 +0,0 @@
1
- import{_ as e,b as t,g as n,h as r,m as i,t as a}from"./button-CREn1mup.js";import{n as o,t as s}from"./badge-DTBzXOWn.js";import{t as ee}from"./chevron-down-B_Mwbim8.js";import{n as c,r as te,t as l}from"./shield-check-Dd1Yv3l2.js";import{t as ne}from"./code-xml-DH-38Tt7.js";import{a as re,i as ie,n as ae,o as oe,r as se,s as u,t as ce}from"./square-check-big-Bj8Rf_dH.js";import{t as d}from"./layers-j_brOuoa.js";import{t as f}from"./trash-2-CMdv3eD3.js";import{Bn as p,Cn as le,Dn as ue,In as m,L as de,O as fe,Pn as pe,Q as me,R as he,Sn as ge,Z as _e,_ as h,_n as g,a as ve,ct as ye,d as be,et as xe,f as _,h as v,i as Se,kn as Ce,lt as we,m as y,mn as Te,n as Ee,nt as De,o as Oe,p as b,pt as ke,r as Ae,t as je,v as x,vn as Me,wn as Ne,z as Pe,zn as Fe}from"./index-hTa55BQ6.js";import{t as Ie}from"./card-yrg6ov8B.js";import{t as S}from"./label-DC730X8s.js";var Le=r(`arrow-right-left`,[[`path`,{d:`m16 3 4 4-4 4`,key:`1x1c3m`}],[`path`,{d:`M20 7H4`,key:`zbl0bi`}],[`path`,{d:`m8 21-4-4 4-4`,key:`h9nckh`}],[`path`,{d:`M4 17h16`,key:`g4d7ey`}]]),Re=r(`grip-vertical`,[[`circle`,{cx:`9`,cy:`12`,r:`1`,key:`1vctgf`}],[`circle`,{cx:`9`,cy:`5`,r:`1`,key:`hp0tcf`}],[`circle`,{cx:`9`,cy:`19`,r:`1`,key:`fkjjf6`}],[`circle`,{cx:`15`,cy:`12`,r:`1`,key:`1tmaij`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`circle`,{cx:`15`,cy:`19`,r:`1`,key:`f4zoj3`}]]),ze=r(`wrench`,[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]),C=t(e(),1),w=n(),T={"git-pull-request":ie,"flask-conical":re,package:se,database:u,"shield-check":l,terminal:ge,zap:g,cpu:m,layers:d,boxes:p,code:ne},Be=[{label:`Blue`,value:`#3b82f6`},{label:`Green`,value:`#10b981`},{label:`Purple`,value:`#8b5cf6`},{label:`Amber`,value:`#f59e0b`},{label:`Red`,value:`#ef4444`},{label:`Cyan`,value:`#06b6d4`},{label:`Pink`,value:`#ec4899`},{label:`Emerald`,value:`#059669`}];function E({showToast:e}){let[t,n]=(0,C.useState)(`global`),[r,l]=(0,C.useState)(``),[re,ie]=(0,C.useState)({}),[se,u]=(0,C.useState)(!1),[d,m]=(0,C.useState)(null),[ge,g]=(0,C.useState)(!1),[E,D]=(0,C.useState)(null),[Ve,O]=(0,C.useState)(!1),[k,A]=(0,C.useState)(`edit`),[j,M]=(0,C.useState)(`global`),[N,P]=(0,C.useState)(``),[He,F]=(0,C.useState)(!1),[I,L]=(0,C.useState)(null),[Ue,R]=(0,C.useState)(!1),[z,B]=(0,C.useState)(null),[We,Ge]=(0,C.useState)(null),[Ke,V]=(0,C.useState)(null),{data:H=[],isLoading:qe}=xe(),{data:U=[],isLoading:Je}=De(t===`global`?void 0:t),{data:W=[]}=we(),{data:Ye=[]}=Pe(),{data:G,isLoading:Xe,isError:Ze}=ye(t===`global`?``:t),[K,q]=(0,C.useState)(null),Qe=Array.from(new Set(Ye.flatMap(e=>[e.id,...e.tags||[]]).concat([`git`,`pr`,`testing`,`security`,`performance`,`database`,`ci-cd`,`frontend`,`backend`]).filter(Boolean))).slice(0,24),$e=me(),et=he(),tt=_e(),nt=de(),J=fe(),Y=t!==`global`,X=new Set(K??G?.enabledSkills??[]),Z=!Y||!Xe&&!Ze&&!!G;(0,C.useEffect)(()=>{if(!Y){q(null);return}G&&q([...G.enabledSkills])},[Y,t,G]);let rt=e=>{ie(t=>({...t,[e]:!t[e]}))},Q=U.filter(e=>{if(!r.trim())return!0;let t=r.toLowerCase();return e.title?.toLowerCase().includes(t)||e.name.toLowerCase().includes(t)||e.description.toLowerCase().includes(t)||e.tags?.some(e=>e.toLowerCase().includes(t))}),it=H.reduce((e,t)=>(e[t.id]=Q.filter(e=>e.category===t.id),e),{}),at=Q.filter(e=>!e.category||!H.some(t=>t.id===e.category)),ot=e=>{m(e||{name:``,description:``,icon:`boxes`,color:`#3b82f6`,custom:!0}),u(!0)},st=async()=>{if(!(!d||!d.name?.trim()))try{await $e.mutateAsync({id:d.id,name:d.name.trim(),description:d.description,icon:d.icon,color:d.color}),e?.(`Category saved successfully`,`success`),u(!1),m(null)}catch(t){e?.(`Failed to save category`,`error`),console.error(t)}},ct=(e,t)=>{t.stopPropagation(),B({type:`category`,id:e.id,title:e.name}),R(!0)},$=(e,n)=>{let r=e?.scope??(Y?`workspace`:`global`);M(r),P(Y?t:W[0]?.id||``),D(e||{name:``,title:``,category:n||(H[0]?.id??`pull-requests`),description:``,tags:[],allowedTools:[],content:`# Skill Title
2
-
3
- Instructions and playbook for the AI assistant.
4
- `,custom:!0,scope:r}),O(!!e),A(`edit`),g(!0)};(0,C.useEffect)(()=>{!N&&W.length>0&&P(W[0].id)},[W,N]);let lt=e=>{if(!E)return;let t={...E,title:e};!Ve&&!E.id&&(t.name=e.toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``)),D(t)},ut=async()=>{if(!E||!E.name?.trim()||!E.description?.trim()||!E.content?.trim()){e?.(`Skill name, trigger description, and content are required`,`error`);return}if(j===`workspace`&&!N){e?.(`Please select a target workspace for workspace-local skill`,`error`);return}try{await tt.mutateAsync({id:E.id,name:E.name.trim(),title:E.title||E.name,category:E.category||`general`,description:E.description||``,tags:E.tags||[],allowedTools:E.allowedTools||[],content:E.content,scope:j,workspaceId:j===`workspace`?N:void 0}),e?.(j===`workspace`?`Workspace skill saved successfully in .agents/skills/`:`Global skill package saved successfully`,`success`),g(!1),D(null)}catch(t){e?.(t?.message||`Failed to save skill`,`error`),console.error(t)}},dt=(e,n)=>{n.stopPropagation();let r=e.scope===`workspace`||j===`workspace`?t===`global`?N||void 0:t:void 0;B({type:`skill`,id:e.id,title:e.title||e.name,workspaceId:r}),R(!0)},ft=async()=>{if(z)try{z.type===`category`?(await et.mutateAsync(z.id),e?.(`Category deleted`,`info`)):(await nt.mutateAsync({id:z.id,workspaceId:z.workspaceId}),e?.(`Skill package deleted`,`info`)),R(!1),B(null)}catch(t){e?.(t?.message||`Failed to delete item`,`error`),console.error(t)}},pt=e=>{if(!Y||!Z||K===null)return;let t=new Set(K);t.has(e)?t.delete(e):t.add(e),q(Array.from(t))},mt=()=>{if(!E||E.custom!==!1)return;let e=`${E.name}-copy`;D({...E,id:void 0,name:e,title:`${E.title||E.name} Copy`,allowedTools:[],custom:!0,sourcePath:void 0,references:void 0,scripts:void 0}),O(!0)},ht=(e,t)=>{if(!Y||!Z||K===null)return;let n=it[e]||[],r=new Set(K);for(let e of n)t?r.add(e.id):r.delete(e.id);q(Array.from(r))},gt=async()=>{if(!(!G||K===null||!Y))try{await J.mutateAsync({workspaceId:t,expectedRevision:G.revision??0,enabledSkills:K,enabledAgents:G.enabledAgents??[],enabledCategories:H.map(e=>e.id)}),e?.(`Skill selection saved. Refresh the workspace to apply it.`,`success`)}catch(t){e?.(t instanceof Error?t.message:`Failed to save skill selection`,`error`)}},_t=(e,t)=>{e.dataTransfer.setData(`text/plain`,t),e.dataTransfer.effectAllowed=`move`,Ge(t)},vt=(e,t)=>{e.preventDefault(),e.dataTransfer.dropEffect=`move`,Ke!==t&&V(t)},yt=()=>{V(null)},bt=async(t,n)=>{t.preventDefault(),V(null);let r=t.dataTransfer.getData(`text/plain`)||We;if(Ge(null),!r)return;let i=U.find(e=>e.id===r);!i||!i.custom||Y||i.category===n||(await tt.mutateAsync({id:i.id,name:i.name,title:i.title,description:i.description,tags:i.tags,allowedTools:i.allowedTools,content:i.content,category:n}),e?.(`Skill re-categorized`,`success`))},xt=(e,t)=>{t.stopPropagation(),L(e),F(!0)},St=async t=>{if(!I||I.category===t){F(!1),L(null);return}await tt.mutateAsync({id:I.id,name:I.name,title:I.title,description:I.description,tags:I.tags,allowedTools:I.allowedTools,content:I.content,category:t}),e?.(`Skill moved to category`,`success`),F(!1),L(null)};return(0,w.jsxs)(`div`,{className:`flex-1 flex flex-col h-full overflow-hidden bg-background text-foreground`,children:[(0,w.jsxs)(`div`,{className:`p-6 border-b border-border flex flex-col sm:flex-row sm:items-center justify-between gap-4 bg-card/40 backdrop-blur-sm`,children:[(0,w.jsx)(`div`,{children:(0,w.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,w.jsx)(`div`,{className:`p-2 rounded-xl bg-primary/10 text-primary`,children:(0,w.jsx)(p,{className:`h-6 w-6`})}),(0,w.jsxs)(`div`,{children:[(0,w.jsx)(`h1`,{className:`text-xl font-bold tracking-tight`,children:`Skill Library`}),(0,w.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Create, organize, and assign reusable Agent Skill packages.`})]})]})}),(0,w.jsxs)(`div`,{className:`flex items-center gap-3 flex-wrap`,children:[(0,w.jsx)(a,{render:(0,w.jsx)(Te,{to:`/agents`}),variant:`outline`,size:`sm`,children:`Codex Agents`}),(0,w.jsxs)(`div`,{className:`flex items-center gap-2 bg-muted/50 rounded-lg px-3 py-1.5 border border-border`,children:[(0,w.jsx)(pe,{className:`h-4 w-4 text-muted-foreground`}),(0,w.jsx)(S,{htmlFor:`skill-scope`,className:`text-xs font-medium text-muted-foreground`,children:`Scope:`}),(0,w.jsxs)(`select`,{id:`skill-scope`,value:t,onChange:e=>n(e.target.value),className:`bg-transparent text-xs font-semibold focus:outline-none cursor-pointer text-foreground`,children:[(0,w.jsx)(`option`,{value:`global`,className:`bg-popover text-popover-foreground`,children:`🌐 Global Skills Catalog`}),W.map(e=>(0,w.jsxs)(`option`,{value:e.id,className:`bg-popover text-popover-foreground`,children:[`📁 `,e.id,` (`,e.branchName,`)`]},e.id))]})]}),!Y&&(0,w.jsxs)(a,{variant:`outline`,size:`sm`,onClick:()=>ot(),className:`flex items-center gap-1.5`,children:[(0,w.jsx)(Ce,{className:`h-3.5 w-3.5`}),(0,w.jsx)(`span`,{children:`New Category`})]}),Y&&(0,w.jsx)(a,{size:`sm`,onClick:gt,disabled:!Z||J.isPending||K===null,children:J.isPending?`Saving…`:`Save selection`}),(0,w.jsxs)(a,{variant:`default`,size:`sm`,onClick:()=>$(),className:`flex items-center gap-1.5`,children:[(0,w.jsx)(Ne,{className:`h-3.5 w-3.5`}),(0,w.jsx)(`span`,{children:`New Skill`})]})]})]}),(0,w.jsxs)(`div`,{className:`px-6 py-3 border-b border-border/60 bg-muted/20 flex items-center justify-between gap-4`,children:[(0,w.jsxs)(`div`,{className:`relative flex-1 max-w-md`,children:[(0,w.jsx)(ue,{className:`absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground`}),(0,w.jsx)(o,{value:r,onChange:e=>l(e.target.value),placeholder:`Search skills by keyword, tag, or tool...`,className:`pl-9 pr-8 h-9 text-xs`}),r&&(0,w.jsx)(`button`,{onClick:()=>l(``),className:`absolute right-2.5 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground`,children:(0,w.jsx)(Me,{className:`h-3.5 w-3.5`})})]}),(0,w.jsxs)(`div`,{className:`flex items-center gap-2 text-xs text-muted-foreground`,children:[(0,w.jsxs)(`span`,{children:[`Showing `,(0,w.jsx)(`strong`,{className:`text-foreground`,children:Q.length}),` of`,` `,(0,w.jsx)(`strong`,{className:`text-foreground`,children:U.length}),` skills`]}),Y&&(0,w.jsxs)(s,{variant:`secondary`,className:`text-[10px] uppercase font-mono`,children:[`Workspace Mode (`,X.size,` active)`]})]})]}),(0,w.jsx)(ke,{className:`flex-1 p-6`,children:qe||Je||Y&&Xe?(0,w.jsxs)(`div`,{className:`flex items-center justify-center p-12 gap-3 text-muted-foreground`,children:[(0,w.jsx)(be,{}),(0,w.jsx)(`span`,{className:`text-sm`,children:`Loading skills catalog...`})]}):Y&&Ze?(0,w.jsx)(je,{className:`py-12 border border-dashed rounded-xl`,children:(0,w.jsxs)(Ae,{children:[(0,w.jsx)(ve,{children:`Workspace resources could not be loaded`}),(0,w.jsx)(Ee,{children:`Assignment controls are disabled so an existing selection cannot be overwritten.`})]})}):Q.length===0&&r?(0,w.jsxs)(je,{className:`py-12 border border-dashed rounded-xl`,children:[(0,w.jsx)(Se,{children:(0,w.jsx)(ue,{className:`h-8 w-8 text-muted-foreground/60`})}),(0,w.jsxs)(Ae,{children:[(0,w.jsx)(ve,{children:`No matching skills found`}),(0,w.jsxs)(Ee,{children:[`No skills matched your search query "`,r,`".`]})]}),(0,w.jsx)(a,{variant:`outline`,size:`sm`,onClick:()=>l(``),children:`Clear Search`})]}):(0,w.jsxs)(`div`,{className:`space-y-6 max-w-7xl mx-auto pb-12`,children:[H.map(e=>{let t=T[e.icon||`boxes`]||p,n=it[e.id]||[],r=!!re[e.id],o=Ke===e.id,c=n.length>0&&n.every(e=>X.has(e.id));return(0,w.jsxs)(`div`,{onDragOver:t=>vt(t,e.id),onDragLeave:yt,onDrop:t=>bt(t,e.id),className:i(`border rounded-xl transition-all duration-150 overflow-hidden bg-card/60`,o?`border-primary ring-2 ring-primary/20 bg-primary/5`:`border-border`),children:[(0,w.jsxs)(`div`,{role:`button`,tabIndex:0,"aria-expanded":!r,onClick:()=>rt(e.id),onKeyDown:t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),rt(e.id))},className:`p-4 flex items-center justify-between cursor-pointer hover:bg-muted/40 transition-colors border-b border-border/40 select-none`,children:[(0,w.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,w.jsx)(`div`,{className:`p-2 rounded-lg text-white shadow-sm flex items-center justify-center`,style:{backgroundColor:e.color||`#3b82f6`},children:(0,w.jsx)(t,{className:`h-4 w-4`})}),(0,w.jsxs)(`div`,{children:[(0,w.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,w.jsx)(`h2`,{className:`font-semibold text-sm tracking-tight`,children:e.name}),(0,w.jsxs)(s,{variant:`outline`,className:`text-[10px] px-1.5 py-0`,children:[n.length,` `,n.length===1?`skill`:`skills`]}),e.isTemplate&&!e.custom&&(0,w.jsx)(s,{variant:`secondary`,className:`text-[9px] px-1 py-0 uppercase`,children:`Template`})]}),e.description&&(0,w.jsx)(`p`,{className:`text-xs text-muted-foreground mt-0.5`,children:e.description})]})]}),(0,w.jsxs)(`div`,{className:`flex items-center gap-1`,onClick:e=>e.stopPropagation(),children:[Y&&n.length>0&&(0,w.jsxs)(a,{variant:`ghost`,size:`xs`,onClick:()=>ht(e.id,!c),className:`h-7 text-xs mr-2 text-muted-foreground hover:text-foreground`,title:c?`Deselect all in category`:`Select all in category`,children:[c?(0,w.jsx)(ce,{className:`h-3.5 w-3.5 mr-1 text-primary`}):(0,w.jsx)(le,{className:`h-3.5 w-3.5 mr-1`}),(0,w.jsx)(`span`,{children:c?`Deselect All`:`Select All`})]}),!Y&&(0,w.jsx)(a,{variant:`ghost`,size:`icon-xs`,onClick:()=>$(void 0,e.id),title:`Add skill to this category`,children:(0,w.jsx)(Ce,{className:`h-3.5 w-3.5`})}),!Y&&(0,w.jsx)(a,{variant:`ghost`,size:`icon-xs`,onClick:()=>ot(e),title:`Edit category`,children:(0,w.jsx)(ae,{className:`h-3 w-3`})}),!Y&&e.custom&&(0,w.jsx)(a,{variant:`ghost`,size:`icon-xs`,onClick:t=>ct(e,t),title:`Delete category`,className:`text-destructive hover:text-destructive`,children:(0,w.jsx)(f,{className:`h-3 w-3`})}),(0,w.jsx)(`div`,{className:`p-1 text-muted-foreground`,children:r?(0,w.jsx)(te,{className:`h-4 w-4`}):(0,w.jsx)(ee,{className:`h-4 w-4`})})]})]}),!r&&(0,w.jsx)(`div`,{className:`p-4 bg-background/50`,children:n.length===0?(0,w.jsxs)(`div`,{className:`border border-dashed border-border/80 rounded-lg p-6 text-center text-xs text-muted-foreground`,children:[`No skills in this category.`,!Y&&(0,w.jsxs)(w.Fragment,{children:[` `,`Drag a custom skill here, or click`,` `,(0,w.jsx)(`button`,{onClick:()=>$(void 0,e.id),className:`text-primary underline font-medium`,children:`+ Add Skill`})]})]}):(0,w.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3.5`,children:n.map(e=>{let t=X.has(e.id);return(0,w.jsxs)(Ie,{draggable:!Y&&!!e.custom,onDragStart:t=>{!Y&&e.custom&&_t(t,e.id)},onClick:()=>$(e),role:`button`,tabIndex:0,onKeyDown:t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),$(e))},className:i(`group relative cursor-pointer hover:border-primary/60 transition-all p-3.5 flex flex-col justify-between select-none shadow-sm`,Y&&!t&&`opacity-60 bg-muted/20`,We===e.id&&`opacity-40 border-dashed`),children:[(0,w.jsxs)(`div`,{children:[(0,w.jsxs)(`div`,{className:`flex items-center justify-between gap-2 mb-2`,children:[(0,w.jsxs)(`div`,{className:`flex items-center gap-1.5 text-muted-foreground group-hover:text-foreground cursor-grab active:cursor-grabbing`,title:`Drag to reorder or re-categorize`,"aria-label":`Drag handle`,children:[(0,w.jsx)(Re,{className:`h-3.5 w-3.5`}),(0,w.jsx)(`span`,{className:`font-mono text-xs font-bold text-foreground`,children:e.title||e.name})]}),Y?(0,w.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,w.jsx)(s,{variant:`outline`,className:i(`text-[9px] font-mono px-1 py-0.2 uppercase`,e.scope===`workspace`?`border-amber-500/40 text-amber-300 bg-amber-500/10`:`border-blue-500/40 text-blue-300 bg-blue-500/10`),children:e.scope===`workspace`?`Workspace`:`Global`}),(0,w.jsxs)(`button`,{type:`button`,onClick:t=>{t.stopPropagation(),pt(e.id)},disabled:!Z||J.isPending,className:i(`h-5 px-2 rounded-md flex items-center gap-1 text-[10px] font-semibold transition-colors`,t?`bg-primary text-primary-foreground`:`bg-muted text-muted-foreground hover:bg-muted/80`),children:[(0,w.jsx)(Fe,{className:i(`h-3 w-3`,!t&&`opacity-0`)}),(0,w.jsx)(`span`,{children:t?`Enabled`:`Disabled`})]})]}):(0,w.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,w.jsx)(s,{variant:`outline`,className:i(`text-[9px] font-mono px-1 py-0.2 uppercase`,e.scope===`workspace`?`border-amber-500/40 text-amber-300 bg-amber-500/10`:`border-blue-500/40 text-blue-300 bg-blue-500/10`),children:e.scope===`workspace`?`Workspace`:`Global`}),(0,w.jsx)(s,{variant:`outline`,className:`text-[10px] font-mono`,children:e.custom?`Custom`:`Template`})]})]}),(0,w.jsx)(`p`,{className:`text-xs text-muted-foreground line-clamp-2 mb-3 leading-relaxed`,children:e.description||`No description provided.`})]}),(0,w.jsxs)(`div`,{className:`pt-2 border-t border-border/40 flex items-center justify-between gap-2`,children:[(0,w.jsxs)(`div`,{className:`flex items-center gap-1.5 flex-wrap overflow-hidden`,children:[e.tags?.slice(0,3).map(e=>(0,w.jsxs)(`span`,{className:`text-[10px] font-mono bg-muted px-1.5 py-0.5 rounded text-muted-foreground`,children:[`#`,e]},e)),e.allowedTools&&e.allowedTools.length>0&&(0,w.jsxs)(`span`,{className:`text-[10px] text-muted-foreground flex items-center gap-0.5 font-mono`,children:[(0,w.jsx)(ze,{className:`h-2.5 w-2.5`}),e.allowedTools.length]})]}),(0,w.jsxs)(`div`,{className:`flex items-center gap-1`,onClick:e=>e.stopPropagation(),children:[!Y&&e.custom&&(0,w.jsx)(a,{variant:`ghost`,size:`icon-xs`,onClick:t=>xt(e,t),title:`Move to another category`,className:`h-6 w-6 text-muted-foreground hover:text-foreground`,children:(0,w.jsx)(Le,{className:`h-3 w-3`})}),e.custom&&(0,w.jsx)(a,{variant:`ghost`,size:`icon-xs`,onClick:t=>dt(e,t),title:`Delete skill`,className:`h-6 w-6 text-destructive hover:text-destructive cursor-pointer`,children:(0,w.jsx)(f,{className:`h-3 w-3`})})]})]})]},e.id)})})})]},e.id)}),at.length>0&&(0,w.jsxs)(`div`,{className:`border border-border/80 rounded-xl overflow-hidden bg-card/60`,children:[(0,w.jsx)(`div`,{className:`p-4 bg-muted/30 border-b border-border/40 flex items-center justify-between`,children:(0,w.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,w.jsx)(p,{className:`h-4 w-4 text-muted-foreground`}),(0,w.jsx)(`h2`,{className:`font-semibold text-sm`,children:`Uncategorized Skills`}),(0,w.jsx)(s,{variant:`outline`,className:`text-[10px]`,children:at.length})]})}),(0,w.jsx)(`div`,{className:`p-4 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3.5`,children:at.map(e=>(0,w.jsxs)(Ie,{onClick:()=>$(e),role:`button`,tabIndex:0,onKeyDown:t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),$(e))},className:`p-3.5 cursor-pointer hover:border-primary/60 flex flex-col justify-between`,children:[(0,w.jsxs)(`div`,{children:[(0,w.jsxs)(`div`,{className:`mb-1 flex items-center justify-between gap-2`,children:[(0,w.jsx)(`div`,{className:`font-mono text-xs font-bold`,children:e.title||e.name}),(0,w.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,w.jsx)(s,{variant:`outline`,className:i(`text-[9px] font-mono px-1 py-0.2 uppercase`,e.scope===`workspace`?`border-amber-500/40 text-amber-300 bg-amber-500/10`:`border-blue-500/40 text-blue-300 bg-blue-500/10`),children:e.scope===`workspace`?`Workspace`:`Global`}),Y&&(0,w.jsx)(a,{size:`xs`,variant:X.has(e.id)?`default`:`outline`,disabled:!Z||J.isPending,onClick:t=>{t.stopPropagation(),pt(e.id)},children:X.has(e.id)?`Enabled`:`Disabled`})]})]}),(0,w.jsx)(`p`,{className:`text-xs text-muted-foreground line-clamp-2`,children:e.description})]}),(0,w.jsxs)(`div`,{className:`pt-2 mt-2 border-t border-border/40 flex items-center justify-between gap-2`,children:[(0,w.jsxs)(`div`,{className:`flex items-center gap-1.5 flex-wrap overflow-hidden`,children:[e.tags&&e.tags.length>0?e.tags.slice(0,3).map(e=>(0,w.jsxs)(`span`,{className:`text-[10px] font-mono bg-muted px-1.5 py-0.5 rounded text-muted-foreground`,children:[`#`,e]},e)):(0,w.jsx)(`span`,{className:`text-[10px] text-muted-foreground italic`,children:`No tags`}),e.allowedTools&&e.allowedTools.length>0&&(0,w.jsxs)(`span`,{className:`text-[10px] text-muted-foreground flex items-center gap-0.5 font-mono`,children:[(0,w.jsx)(ze,{className:`h-2.5 w-2.5`}),e.allowedTools.length]})]}),e.custom&&(0,w.jsx)(`div`,{className:`flex items-center gap-1`,onClick:e=>e.stopPropagation(),children:(0,w.jsx)(a,{variant:`ghost`,size:`icon-xs`,onClick:t=>dt(e,t),title:`Delete skill`,className:`h-6 w-6 text-destructive hover:text-destructive cursor-pointer`,children:(0,w.jsx)(f,{className:`h-3 w-3`})})})]})]},e.id))})]})]})}),(0,w.jsx)(_,{open:se,onOpenChange:u,children:(0,w.jsxs)(h,{className:`sm:max-w-lg`,children:[(0,w.jsxs)(v,{children:[(0,w.jsx)(x,{children:d?.id?`Edit Skill Category`:`Create Skill Category`}),(0,w.jsx)(b,{children:`Categories group related procedural skills and agent tools into clean visual boxes.`})]}),(0,w.jsxs)(`div`,{className:`space-y-4 py-2`,children:[(0,w.jsxs)(`div`,{children:[(0,w.jsx)(S,{htmlFor:`cat-name`,className:`text-xs font-medium`,children:`Category Name`}),(0,w.jsx)(o,{id:`cat-name`,value:d?.name||``,onChange:e=>m(t=>t?{...t,name:e.target.value}:null),placeholder:`e.g. Pull Requests & Review`,className:`mt-1 text-xs`})]}),(0,w.jsxs)(`div`,{children:[(0,w.jsx)(S,{htmlFor:`cat-desc`,className:`text-xs font-medium`,children:`Description`}),(0,w.jsx)(o,{id:`cat-desc`,value:d?.description||``,onChange:e=>m(t=>t?{...t,description:e.target.value}:null),placeholder:`Brief summary of what skills belong in this box...`,className:`mt-1 text-xs`})]}),(0,w.jsxs)(`div`,{children:[(0,w.jsx)(S,{className:`text-xs font-medium`,children:`Icon`}),(0,w.jsx)(`div`,{className:`grid grid-cols-6 gap-2 mt-1.5`,children:Object.keys(T).map(e=>{let t=T[e],n=(d?.icon||`boxes`)===e;return(0,w.jsx)(`button`,{type:`button`,onClick:()=>m(t=>t?{...t,icon:e}:null),className:i(`p-2.5 rounded-lg border flex items-center justify-center transition-colors`,n?`border-primary bg-primary/10 text-primary`:`border-border hover:bg-muted text-muted-foreground`),children:(0,w.jsx)(t,{className:`h-4 w-4`})},e)})})]}),(0,w.jsxs)(`div`,{children:[(0,w.jsx)(S,{className:`text-xs font-medium`,children:`Color Accent`}),(0,w.jsx)(`div`,{className:`flex items-center gap-2 mt-1.5 flex-wrap`,children:Be.map(e=>{let t=d?.color===e.value;return(0,w.jsx)(`button`,{type:`button`,"aria-label":`Select color ${e.label}`,onClick:()=>m(t=>t?{...t,color:e.value}:null),className:i(`w-7 h-7 rounded-full transition-transform flex items-center justify-center shadow-sm`,t?`scale-110 ring-2 ring-primary ring-offset-2`:`hover:scale-105`),style:{backgroundColor:e.value},children:t&&(0,w.jsx)(Fe,{className:`h-3.5 w-3.5 text-white`})},e.value)})})]})]}),(0,w.jsxs)(y,{children:[(0,w.jsx)(a,{variant:`outline`,size:`sm`,onClick:()=>u(!1),children:`Cancel`}),(0,w.jsx)(a,{variant:`default`,size:`sm`,onClick:st,disabled:!d?.name?.trim(),children:`Save Category`})]})]})}),(0,w.jsx)(_,{open:ge,onOpenChange:g,children:(0,w.jsxs)(h,{className:`max-w-[96vw] sm:max-w-5xl lg:max-w-6xl xl:max-w-7xl h-[90vh] max-h-[92vh] flex flex-col p-6`,children:[(0,w.jsx)(v,{className:`pb-3 border-b border-border/70 shrink-0`,children:(0,w.jsxs)(`div`,{className:`flex items-center justify-between pr-8`,children:[(0,w.jsxs)(`div`,{children:[(0,w.jsxs)(x,{className:`text-base font-bold flex items-center gap-2`,children:[(0,w.jsx)(Ne,{className:`h-4 w-4 text-primary`}),(0,w.jsx)(`span`,{children:E?.id?`Edit Skill Package`:`Create New Skill`})]}),(0,w.jsx)(b,{className:`text-xs text-muted-foreground mt-0.5`,children:`Configure SKILL.md metadata triggers and markdown playbook instructions.`})]}),(0,w.jsxs)(`div`,{className:`flex items-center gap-1 bg-muted/60 p-1 rounded-lg border border-border text-xs`,children:[(0,w.jsxs)(`button`,{type:`button`,onClick:()=>A(`edit`),className:i(`px-3 py-1.5 rounded-md flex items-center gap-1.5 font-medium transition-colors cursor-pointer`,k===`edit`?`bg-background text-foreground shadow-xs`:`text-muted-foreground hover:text-foreground`),children:[(0,w.jsx)(c,{className:`h-3.5 w-3.5`}),(0,w.jsx)(`span`,{children:`Edit`})]}),(0,w.jsxs)(`button`,{type:`button`,onClick:()=>A(`preview`),className:i(`px-3 py-1.5 rounded-md flex items-center gap-1.5 font-medium transition-colors cursor-pointer`,k===`preview`?`bg-background text-foreground shadow-xs`:`text-muted-foreground hover:text-foreground`),children:[(0,w.jsx)(oe,{className:`h-3.5 w-3.5`}),(0,w.jsx)(`span`,{children:`Preview`})]})]})]})}),(0,w.jsxs)(`div`,{className:`flex-1 min-h-0 py-4 flex flex-col lg:flex-row gap-6 overflow-hidden`,children:[(0,w.jsxs)(`div`,{className:`lg:w-[420px] xl:w-[460px] shrink-0 flex flex-col gap-4 overflow-y-auto pr-2 pb-2`,children:[(0,w.jsxs)(`div`,{className:`space-y-3`,children:[(0,w.jsxs)(`div`,{children:[(0,w.jsx)(S,{htmlFor:`skill-title`,className:`text-xs font-medium`,children:`Display Title`}),(0,w.jsx)(o,{id:`skill-title`,value:E?.title||``,onChange:e=>lt(e.target.value),placeholder:`e.g. Pull Request Reviewer`,className:`mt-1 text-xs`})]}),(0,w.jsxs)(`div`,{children:[(0,w.jsx)(S,{htmlFor:`skill-name`,className:`text-xs font-medium`,children:`Identifier (Slug)`}),(0,w.jsx)(o,{id:`skill-name`,value:E?.name||``,disabled:!!E?.id,onChange:e=>{O(!0),D(t=>t?{...t,name:e.target.value}:null)},placeholder:`e.g. pr-review-toolkit`,className:`mt-1 text-xs font-mono`})]})]}),(0,w.jsxs)(`div`,{className:`p-3 rounded-lg border border-border/80 bg-muted/20 space-y-2`,children:[(0,w.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,w.jsxs)(S,{className:`text-xs font-semibold text-foreground flex items-center gap-1.5`,children:[(0,w.jsx)(p,{className:`h-3.5 w-3.5 text-primary`}),(0,w.jsx)(`span`,{children:`Skill Scope`})]}),(0,w.jsx)(`span`,{className:`text-[10px] text-muted-foreground`,children:j===`global`?`Machine-wide catalog`:`Project-specific (.agents/skills/)`})]}),(0,w.jsxs)(`div`,{className:`grid grid-cols-2 gap-2`,children:[(0,w.jsx)(`button`,{type:`button`,onClick:()=>M(`global`),className:i(`flex items-center justify-center gap-2 p-2 rounded-lg border text-xs font-medium transition-all cursor-pointer`,j===`global`?`border-blue-500/50 bg-blue-500/15 text-blue-300 font-semibold shadow-xs`:`border-border/60 bg-card/60 text-muted-foreground hover:bg-muted/60 hover:text-foreground`),children:(0,w.jsx)(`span`,{children:`🌐 Global Catalog`})}),(0,w.jsx)(`button`,{type:`button`,onClick:()=>M(`workspace`),className:i(`flex items-center justify-center gap-2 p-2 rounded-lg border text-xs font-medium transition-all cursor-pointer`,j===`workspace`?`border-amber-500/50 bg-amber-500/15 text-amber-300 font-semibold shadow-xs`:`border-border/60 bg-card/60 text-muted-foreground hover:bg-muted/60 hover:text-foreground`),children:(0,w.jsx)(`span`,{children:`📁 Workspace-Local`})})]}),j===`workspace`&&(0,w.jsxs)(`div`,{className:`pt-1`,children:[(0,w.jsx)(S,{htmlFor:`target-ws`,className:`text-[11px] font-medium text-muted-foreground`,children:`Target Workspace:`}),W.length>0?(0,w.jsx)(`select`,{id:`target-ws`,value:N,onChange:e=>P(e.target.value),className:`mt-1 w-full bg-background border border-border rounded-md px-3 py-1.5 text-xs focus:outline-none focus:ring-1 focus:ring-primary text-foreground`,children:W.map(e=>(0,w.jsxs)(`option`,{value:e.id,children:[`📁 `,e.id,` (`,e.branchName,`)`]},e.id))}):(0,w.jsx)(`div`,{className:`mt-1 text-xs text-destructive italic`,children:`No active workspaces found. Please create a workspace first.`})]})]}),(0,w.jsxs)(`div`,{className:`space-y-3`,children:[(0,w.jsxs)(`div`,{children:[(0,w.jsx)(S,{htmlFor:`skill-cat`,className:`text-xs font-medium`,children:`Category Box`}),(0,w.jsx)(`select`,{id:`skill-cat`,value:E?.category||``,onChange:e=>D(t=>t?{...t,category:e.target.value}:null),className:`mt-1 w-full bg-background border border-border rounded-md px-3 py-2 text-xs focus:outline-none focus:ring-1 focus:ring-primary`,children:H.map(e=>(0,w.jsx)(`option`,{value:e.id,children:e.name},e.id))})]}),(0,w.jsxs)(`div`,{children:[(0,w.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,w.jsx)(S,{htmlFor:`skill-tags`,className:`text-xs font-medium`,children:`Tags & Domain Categories`}),(0,w.jsx)(`span`,{className:`text-[10px] text-muted-foreground`,children:`Click chips below to toggle`})]}),(0,w.jsx)(o,{id:`skill-tags`,value:E?.tags?.join(`, `)||``,onChange:e=>D(t=>t?{...t,tags:e.target.value.split(`,`).map(e=>e.trim()).filter(Boolean)}:null),placeholder:`e.g. nexusflow, core, cli, testing`,className:`mt-1 text-xs font-mono`})]}),Qe.length>0&&(0,w.jsxs)(`div`,{className:`space-y-1`,children:[(0,w.jsx)(`span`,{className:`text-[11px] text-muted-foreground`,children:`Quick Tag Assignment:`}),(0,w.jsx)(`div`,{className:`flex flex-wrap gap-1 max-h-24 overflow-y-auto pr-1`,children:Qe.map(e=>{let t=E?.tags?.includes(e);return(0,w.jsxs)(`button`,{type:`button`,onClick:()=>{D(n=>{if(!n)return null;let r=n.tags||[],i=t?r.filter(t=>t!==e):[...r,e];return{...n,tags:i}})},className:i(`px-2 py-0.5 rounded-md text-[11px] font-mono transition-colors cursor-pointer border`,t?`bg-primary/20 text-primary border-primary/40 font-semibold shadow-xs`:`bg-muted/40 text-muted-foreground border-border/60 hover:bg-muted hover:text-foreground`),children:[`#`,e]},e)})})]})]}),(0,w.jsxs)(`div`,{children:[(0,w.jsx)(S,{htmlFor:`skill-desc`,className:`text-xs font-medium`,children:`Trigger Description (for AI Autonomous Discovery)`}),(0,w.jsx)(Oe,{id:`skill-desc`,rows:3,value:E?.description||``,onChange:e=>D(t=>t?{...t,description:e.target.value}:null),placeholder:`e.g. Use when reviewing PR diffs or when user asks for a PR audit...`,className:`mt-1 text-xs leading-relaxed resize-none`})]})]}),(0,w.jsx)(`div`,{className:`flex-1 min-w-0 flex flex-col min-h-[380px] lg:min-h-0 border-t lg:border-t-0 lg:border-l border-border/70 pt-4 lg:pt-0 lg:pl-6`,children:k===`edit`?(0,w.jsxs)(`div`,{className:`flex flex-col flex-1 min-h-0 h-full`,children:[(0,w.jsxs)(`div`,{className:`flex items-center justify-between pb-2 shrink-0`,children:[(0,w.jsxs)(S,{htmlFor:`skill-content`,className:`text-xs font-semibold flex items-center gap-1.5`,children:[(0,w.jsx)(ne,{className:`h-3.5 w-3.5 text-primary`}),(0,w.jsx)(`span`,{children:`Playbook Instructions (Markdown)`})]}),(0,w.jsxs)(`span`,{className:`text-[10px] text-muted-foreground font-mono`,children:[(E?.content||``).split(`
5
- `).length,` lines · `,(E?.content||``).length,` characters`]})]}),(0,w.jsxs)(`p`,{className:`text-xs text-muted-foreground mb-2 leading-relaxed`,children:[`Frontmatter (`,(0,w.jsx)(`code`,{className:`font-mono text-[11px] bg-muted/60 px-1 py-0.5 rounded text-foreground`,children:`name`}),`,`,` `,(0,w.jsx)(`code`,{className:`font-mono text-[11px] bg-muted/60 px-1 py-0.5 rounded text-foreground`,children:`description`}),`,`,` `,(0,w.jsx)(`code`,{className:`font-mono text-[11px] bg-muted/60 px-1 py-0.5 rounded text-foreground`,children:`tags`}),`) is managed in the Metadata panel on the left and auto-injected into`,` `,(0,w.jsx)(`code`,{className:`font-mono text-[11px] bg-muted/60 px-1 py-0.5 rounded text-foreground`,children:`SKILL.md`}),` on save.`]}),(0,w.jsx)(Oe,{id:`skill-content`,value:E?.content||``,onChange:e=>D(t=>t?{...t,content:e.target.value}:null),placeholder:`# Playbook Title
6
-
7
- Detailed instructions for the AI assistant...`,className:`flex-1 w-full min-h-[360px] lg:min-h-full font-mono text-xs leading-relaxed resize-none focus:ring-1 focus:ring-primary`})]}):(0,w.jsxs)(`div`,{className:`flex flex-col flex-1 min-h-0 h-full`,children:[(0,w.jsxs)(`div`,{className:`flex items-center justify-between pb-2 shrink-0`,children:[(0,w.jsxs)(`span`,{className:`text-xs font-semibold flex items-center gap-1.5 text-foreground`,children:[(0,w.jsx)(oe,{className:`h-3.5 w-3.5 text-primary`}),(0,w.jsx)(`span`,{children:`Documentation Preview`})]}),(0,w.jsx)(s,{variant:`outline`,className:`text-[10px] font-mono`,children:`SKILL.md`})]}),(0,w.jsxs)(`div`,{className:`flex-1 overflow-y-auto p-5 border rounded-lg bg-card/40 prose prose-sm dark:prose-invert max-w-none`,children:[(0,w.jsxs)(`div`,{className:`mb-4 pb-3 border-b border-border/70`,children:[(0,w.jsx)(`h2`,{className:`text-lg font-bold m-0 text-foreground`,children:E?.title||E?.name}),(0,w.jsx)(`p`,{className:`text-xs text-muted-foreground m-0 mt-1`,children:E?.description}),E?.tags&&E.tags.length>0&&(0,w.jsx)(`div`,{className:`flex flex-wrap gap-1 mt-2.5`,children:E.tags.map(e=>(0,w.jsxs)(`span`,{className:`px-2 py-0.5 rounded bg-muted text-[11px] font-mono text-muted-foreground`,children:[`#`,e]},e))})]}),(0,w.jsx)(`pre`,{className:`text-xs whitespace-pre-wrap font-sans bg-transparent p-0 border-0 leading-relaxed`,children:E?.content||`*(No playbook markdown provided)*`})]})]})})]}),(0,w.jsxs)(y,{className:`mt-4 pt-3 border-t flex items-center justify-between sm:justify-between w-full`,children:[(0,w.jsx)(`div`,{children:E?.id&&E?.custom&&(0,w.jsxs)(a,{type:`button`,variant:`outline`,size:`sm`,onClick:e=>{let t=E;g(!1),dt(t,e)},className:`text-destructive hover:bg-destructive/10 border-destructive/30 text-xs gap-1.5`,children:[(0,w.jsx)(f,{className:`h-3.5 w-3.5`}),(0,w.jsx)(`span`,{children:`Delete Skill`})]})}),(0,w.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,w.jsx)(a,{variant:`outline`,size:`sm`,onClick:()=>g(!1),children:`Cancel`}),(0,w.jsx)(a,{variant:`default`,size:`sm`,onClick:E?.custom===!1?mt:ut,disabled:!E?.name?.trim()||!E?.description?.trim()||!E?.content?.trim(),children:E?.custom===!1?`Create editable copy`:`Save Skill`})]})]})]})}),(0,w.jsx)(_,{open:He,onOpenChange:F,children:(0,w.jsxs)(h,{className:`sm:max-w-md`,children:[(0,w.jsxs)(v,{children:[(0,w.jsx)(x,{children:`Move Skill to Category`}),(0,w.jsxs)(b,{children:[`Select the destination category box for "`,I?.title||I?.name,`".`]})]}),(0,w.jsx)(`div`,{className:`space-y-2 py-2`,children:H.map(e=>{let t=T[e.icon||`boxes`]||p,n=I?.category===e.id;return(0,w.jsxs)(`button`,{type:`button`,onClick:()=>St(e.id),className:i(`w-full p-3 rounded-lg border text-left flex items-center justify-between transition-colors`,n?`border-primary bg-primary/10`:`border-border hover:bg-muted/50 text-foreground`),children:[(0,w.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,w.jsx)(`div`,{className:`p-1.5 rounded text-white flex items-center justify-center`,style:{backgroundColor:e.color||`#3b82f6`},children:(0,w.jsx)(t,{className:`h-4 w-4`})}),(0,w.jsxs)(`div`,{children:[(0,w.jsx)(`div`,{className:`font-semibold text-xs`,children:e.name}),e.description&&(0,w.jsx)(`div`,{className:`text-[11px] text-muted-foreground line-clamp-1`,children:e.description})]})]}),n&&(0,w.jsx)(s,{variant:`secondary`,className:`text-[10px]`,children:`Current`})]},e.id)})}),(0,w.jsx)(y,{children:(0,w.jsx)(a,{variant:`outline`,size:`sm`,onClick:()=>F(!1),children:`Cancel`})})]})}),(0,w.jsx)(_,{open:Ue,onOpenChange:R,children:(0,w.jsxs)(h,{className:`sm:max-w-md`,children:[(0,w.jsxs)(v,{children:[(0,w.jsxs)(x,{className:`text-destructive`,children:[`Delete `,z?.type===`category`?`Category`:z?.workspaceId?`Workspace Skill`:`Global Skill`]}),(0,w.jsxs)(b,{children:[`Are you sure you want to delete "`,z?.title,`"`,z?.workspaceId?` from workspace "${z.workspaceId}"`:``,`? This action cannot be undone.`]})]}),(0,w.jsxs)(y,{className:`mt-4`,children:[(0,w.jsx)(a,{variant:`outline`,size:`sm`,onClick:()=>R(!1),children:`Cancel`}),(0,w.jsx)(a,{variant:`destructive`,size:`sm`,onClick:ft,children:`Delete Permanently`})]})]})})]})}export{E as SkillsPage};