openpond 0.0.30 → 0.0.32

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 (115) hide show
  1. package/dist/chunks/{app-layer-FIGCNZJX.js → app-layer-CUQQUVJS.js} +20 -3
  2. package/dist/chunks/{apps-4RMNCKXS.js → apps-TAYMUCWX.js} +3 -3
  3. package/dist/chunks/{chunk-57P2GCW5.js → chunk-3UOLQG6N.js} +1 -1
  4. package/dist/chunks/{chunk-MFS3SYUH.js → chunk-3ZJIEA5F.js} +1 -1
  5. package/dist/chunks/{chunk-4S3XGFGL.js → chunk-4HQURM3N.js} +1 -1
  6. package/dist/chunks/{chunk-BNVHGSI7.js → chunk-4M4WAORL.js} +874 -798
  7. package/dist/chunks/{chunk-DANRS43D.js → chunk-5RHZKQRK.js} +14 -76
  8. package/dist/chunks/{chunk-BNPFMGZD.js → chunk-D264OHTR.js} +4 -5
  9. package/dist/chunks/{chunk-BBEVMP6O.js → chunk-DCNAXREU.js} +179 -160
  10. package/dist/chunks/chunk-E5RVRUJB.js +1222 -0
  11. package/dist/chunks/{chunk-RJXX6TJA.js → chunk-EONKWOLU.js} +2 -2
  12. package/dist/chunks/{chunk-VQX33YAG.js → chunk-FQW3AQVJ.js} +689 -121
  13. package/dist/chunks/{chunk-GGKA4HLQ.js → chunk-GYZYZGKS.js} +238 -69
  14. package/dist/chunks/{chunk-KMSMK7PI.js → chunk-OXQG773T.js} +33 -33
  15. package/dist/chunks/{chunk-BX4XSB2J.js → chunk-PJXJ2HRT.js} +1816 -1113
  16. package/dist/chunks/chunk-Q5MZCRJA.js +70 -0
  17. package/dist/chunks/{chunk-OV3KAFWB.js → chunk-W2DJR3FA.js} +1 -1
  18. package/dist/chunks/{chunk-KEDXE4BA.js → chunk-XADW35CL.js} +3 -3
  19. package/dist/chunks/{chunk-IUTUUNAX.js → chunk-Y4F4XD5V.js} +1 -1
  20. package/dist/chunks/{cli-2L4NB7HD.js → cli-WW5BVN5Z.js} +4 -3
  21. package/dist/chunks/{cli-5RL7B2Z3.js → cli-ZOCP7X5M.js} +6 -6
  22. package/dist/chunks/{core-commands-AZJZGTZS.js → core-commands-SYGK7K57.js} +4 -4
  23. package/dist/chunks/{extend-6IWYZI37.js → extend-Q5HZ7TMA.js} +11 -11
  24. package/dist/chunks/fileFromPath-DHCRY3BD.js +2151 -0
  25. package/dist/chunks/{harness-SSNXDSKM.js → harness-ZPBPQVAS.js} +3 -3
  26. package/dist/chunks/{help-MUJJMI3Q.js → help-3V3TRQNX.js} +1 -1
  27. package/dist/chunks/{opchat-RW4CFAQB.js → opchat-OUPMEFE5.js} +5 -5
  28. package/dist/chunks/{organizations-V7DTNLSI.js → organizations-5CSLBDAW.js} +4 -4
  29. package/dist/chunks/{profile-WDBKJ7YW.js → profile-OQYSXHOG.js} +206 -166
  30. package/dist/chunks/{project-agent-3TZ3BPYN.js → project-agent-TBTWOUJF.js} +6 -7
  31. package/dist/chunks/{sandbox-command-HOYHF4NC.js → sandbox-command-HCHPY7KW.js} +4 -4
  32. package/dist/chunks/{sandbox-template-IYGB4CZU.js → sandbox-template-PNTOZ6W3.js} +5 -6
  33. package/dist/chunks/{src-CBPRIWG5.js → src-C6MXLDYQ.js} +22 -6
  34. package/dist/chunks/{src-ZRQKSQTD.js → src-GZT4UX6I.js} +80887 -52945
  35. package/dist/chunks/{teams-bot-UWGCFL6C.js → teams-bot-CQ76XI6T.js} +3 -3
  36. package/dist/chunks/workspaces-DHVVOTVR.js +93 -0
  37. package/dist/cli.js +10 -10
  38. package/dist/config.d.ts +0 -2
  39. package/dist/index.js +273 -69
  40. package/dist/profile/local-profile-types.d.ts +8 -2
  41. package/dist/profile/local-profile.d.ts +3 -1
  42. package/dist/sandbox/types/org-project-agent.d.ts +1 -2
  43. package/dist/web/assets/{AppsView-Bu-Nc3Ew.js → AppsView-CF2g-7FH.js} +1 -1
  44. package/dist/web/assets/{BrowserSidebar-CCguQ-DR.js → BrowserSidebar-lUsLUl20.js} +1 -1
  45. package/dist/web/assets/CloudWorkView-BnfGW4OV.js +1 -0
  46. package/dist/web/assets/{CommandMenu-CnodJFHD.js → CommandMenu-BsS4Bgb6.js} +1 -1
  47. package/dist/web/assets/{CommunityView-CIbjNUZr.js → CommunityView-C8qVOwlp.js} +1 -1
  48. package/dist/web/assets/ComposerCreateImproveStrip-C_LIpfSq.js +1 -0
  49. package/dist/web/assets/GetStartedView-Du533wOh.js +1 -0
  50. package/dist/web/assets/LabsRoute-CgKtVYTP.css +1 -0
  51. package/dist/web/assets/LabsRoute-yk8lNMQc.js +3 -0
  52. package/dist/web/assets/{NewProjectDialog-CaKiCoVS.js → NewProjectDialog-DH7wA1z9.js} +1 -1
  53. package/dist/web/assets/ProfileSettingsSection-CqnfjiCl.css +1 -0
  54. package/dist/web/assets/ProfileSettingsSection-D7JvMZdW.js +1 -0
  55. package/dist/web/assets/SettingsView-C9TgCaWG.js +63 -0
  56. package/dist/web/assets/TeamChatView-D_CE7br9.js +3 -0
  57. package/dist/web/assets/{TerminalOverlay-C1iP4OS1.js → TerminalOverlay-CC-VDSlp.js} +1 -1
  58. package/dist/web/assets/TrainingCreationPanel-NFCoaBUI.js +1 -0
  59. package/dist/web/assets/TrainingDraftPanel-BWEmVFjM.js +1 -0
  60. package/dist/web/assets/WorkspaceDiffPanel-SlLlGZM1.js +14 -0
  61. package/dist/web/assets/{WorkspaceEnvironmentMenu-B8JJbwIz.js → WorkspaceEnvironmentMenu-BAoMBTVD.js} +1 -1
  62. package/dist/web/assets/{WorkspaceGitDialogs-B4sp9BGn.js → WorkspaceGitDialogs-CVIFrzyl.js} +1 -1
  63. package/dist/web/assets/{WorkspaceMonacoEditor-BBqimG5X.js → WorkspaceMonacoEditor-0trp0-TI.js} +3 -3
  64. package/dist/web/assets/{boxes-DAaDUabq.js → boxes-CFihgX2z.js} +1 -1
  65. package/dist/web/assets/create-pipeline-request-AJWLMTyw.js +4 -0
  66. package/dist/web/assets/{cssMode-CBF1mieJ.js → cssMode-HvqfCFyP.js} +1 -1
  67. package/dist/web/assets/{git-commit-horizontal-CAickXpN.js → git-commit-horizontal-C5mUmACv.js} +1 -1
  68. package/dist/web/assets/{htmlMode-2u8OHtWO.js → htmlMode-C8btgUt-.js} +1 -1
  69. package/dist/web/assets/index-8H-GDlM5.css +1 -0
  70. package/dist/web/assets/index-D7Vr3zcV.js +192 -0
  71. package/dist/web/assets/index-DUqAiF57.js +1 -0
  72. package/dist/web/assets/{info-CQNTh78o.js → info-D0xuy5IB.js} +1 -1
  73. package/dist/web/assets/{jsonMode-C4CWXViX.js → jsonMode-5zVz9G0X.js} +1 -1
  74. package/dist/web/assets/{lspLanguageFeatures-CBs_BOlB.js → lspLanguageFeatures-DxlSSL7c.js} +1 -1
  75. package/dist/web/assets/{monaco.contribution-lOXpG2xQ.js → monaco.contribution-B1pWWwqT.js} +2 -2
  76. package/dist/web/assets/{monaco.contribution-sd3cFkcN.js → monaco.contribution-BKpVvKK9.js} +2 -2
  77. package/dist/web/assets/{monaco.contribution-C1LUxAKf.js → monaco.contribution-BXdXsSWI.js} +2 -2
  78. package/dist/web/assets/{monaco.contribution-Cpf6dWsh.js → monaco.contribution-CIjjzpUR.js} +2 -2
  79. package/dist/web/assets/{monitor-DsIswrMV.js → monitor-B4-9Shtp.js} +1 -1
  80. package/dist/web/assets/{play-CeRw21NV.js → play-BJdhBqQE.js} +1 -1
  81. package/dist/web/assets/{python-CXYq3BUl.js → python-CEK8J4w_.js} +1 -1
  82. package/dist/web/assets/{refresh-cw-N5b_6AP5.js → refresh-cw-DE0u_nmZ.js} +1 -1
  83. package/dist/web/assets/{reply-BSKjZrJg.js → reply-2MfLJ93n.js} +1 -1
  84. package/dist/web/assets/{save-D0oHH1a3.js → save-CBIVKaf8.js} +1 -1
  85. package/dist/web/assets/{toggleHighContrast-DRjlcwes.js → toggleHighContrast-CC73mtvA.js} +1 -1
  86. package/dist/web/assets/training-BY8siNUK.css +1 -0
  87. package/dist/web/assets/training-model-data-BXUCzS0p.js +1 -0
  88. package/dist/web/assets/{tsMode-x-1A7ZcB.js → tsMode-Bhn9wr_1.js} +1 -1
  89. package/dist/web/assets/{wifi-off-Dt52ofzh.js → wifi-off-BKTqnqj0.js} +1 -1
  90. package/dist/web/assets/{workers-Ciff6Dzi.js → workers-C_adgrEg.js} +1 -1
  91. package/dist/web/assets/{yaml-CB67Kxnz.js → yaml-DDRAcADU.js} +1 -1
  92. package/dist/web/index.html +2 -2
  93. package/package.json +1 -1
  94. package/dist/chunks/chunk-OG75GMVO.js +0 -1
  95. package/dist/web/assets/CloudWorkView-Dr3xqLE5.js +0 -1
  96. package/dist/web/assets/GetStartedView-C8nyH_PT.js +0 -1
  97. package/dist/web/assets/LabsExtensions-GtJzxDnK.js +0 -1
  98. package/dist/web/assets/LabsProfile-DG7rWYur.js +0 -1
  99. package/dist/web/assets/LabsRoute-D6MDHBzq.js +0 -2
  100. package/dist/web/assets/LabsRoute-TEt9j1vB.css +0 -1
  101. package/dist/web/assets/LabsSignals-BfsDN86w.js +0 -1
  102. package/dist/web/assets/LabsSignals-D6iA6Ryl.css +0 -1
  103. package/dist/web/assets/ProfileSettingsSection-DTQS2DVL.css +0 -1
  104. package/dist/web/assets/ProfileSettingsSection-DxEzoF3K.js +0 -1
  105. package/dist/web/assets/ProfileView-CEscW7Ru.js +0 -1
  106. package/dist/web/assets/SettingsView-JIRR_FO4.js +0 -63
  107. package/dist/web/assets/TeamChatView-B5M1ThhJ.js +0 -3
  108. package/dist/web/assets/TrainingSettingsSection-BDYvI2te.js +0 -1
  109. package/dist/web/assets/TrainingView-CoCFK6W3.js +0 -5
  110. package/dist/web/assets/WorkspaceDiffPanel-CMxKQeo7.js +0 -14
  111. package/dist/web/assets/index-BdY6A-YN.css +0 -1
  112. package/dist/web/assets/index-CU2qhUYV.js +0 -195
  113. package/dist/web/assets/index-Dz2B3-4C.js +0 -1
  114. package/dist/web/assets/settings-lists-BEg6LMcy.css +0 -1
  115. package/dist/web/assets/training-model-data-BPrc68VG.js +0 -1
@@ -0,0 +1 @@
1
+ .training-view{height:100%;overflow:auto;background:var(--bg);color:var(--text)}.training-header,.training-section-heading,.training-card-heading,.training-dialog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.training-header{align-items:center;justify-content:space-between;padding:20px 28px;border-bottom:0}.training-header h1,.training-header h2,.training-detail h2,.training-page-body h2{margin:0;font-size:20px;font-weight:600}.training-header p,.training-section-heading p,.training-card p,.training-muted{margin:5px 0 0;color:var(--muted);font-size:13px;line-height:1.45}.training-header code{border:1px solid var(--border);border-radius:4px;background:var(--panel-soft);color:var(--text);padding:1px 4px;font-size:12px}.training-header-actions,.training-inline-actions,.training-dialog-actions,.training-pills{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.training-button,.training-text-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--border);border-radius:6px;padding:7px 10px;font:inherit;font-size:13px;cursor:pointer;background:var(--text);color:var(--bg);text-decoration:none}.training-button.secondary{background:transparent;color:var(--text)}.training-button.danger{border-color:var(--destructive,#e66);background:var(--destructive,#e66);color:#fff}.training-button:disabled{opacity:.45;cursor:not-allowed}.training-text-button{background:transparent;border-color:transparent;color:var(--muted);padding:5px}.training-text-button.danger{color:var(--destructive,#e66)}.training-icon-button{display:inline-grid;place-items:center;width:31px;height:31px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--muted);cursor:pointer}.training-icon-button:hover:not(:disabled),.training-icon-button:focus-visible{border-color:var(--border);background:var(--panel-soft);color:var(--text)}.training-icon-button:disabled{opacity:.45;cursor:not-allowed}.training-detail-tabs{display:flex;gap:2px;border-bottom:1px solid var(--border);padding:0 28px}.training-detail-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);padding:11px 12px;font:inherit;font-size:13px;cursor:pointer}.training-detail-tabs button.active{color:var(--text);border-bottom-color:var(--text)}.training-banner{margin:12px 28px 0;padding:9px 11px;border:1px solid var(--border);border-radius:6px;display:flex;align-items:center;gap:8px;font-size:13px}.training-banner.error{border-color:color-mix(in srgb,var(--destructive,#e66) 45%,var(--border));color:var(--destructive,#e66)}.training-taskset-selector{display:grid;gap:6px;max-width:620px}.training-taskset-selector>span{color:var(--muted);font-size:11px;font-weight:600}.training-taskset-selector select{width:100%;min-width:0;border:1px solid var(--border);border-radius:6px;background:var(--panel);color:var(--text);padding:8px 10px;font:inherit;font-size:13px}.training-taskset-selector select:disabled{opacity:.55}.training-workbench{display:grid;align-content:start;gap:24px;width:min(1120px,calc(100% - 72px));margin-inline:auto;padding:28px 0}.training-workbench-section,.training-active-plan{display:grid;gap:12px}.training-workbench-section+.training-workbench-section{padding-top:22px;border-top:1px solid var(--border)}.training-active-plan{border:1px solid var(--border);border-radius:8px;background:var(--panel);padding:14px}.training-active-plan .training-section-heading h2,.training-workbench-section .training-section-heading h2{font-size:15px}.training-active-plan .training-approval{border:1px solid var(--border)}.training-workbench .training-empty-detail{min-height:180px;border:1px dashed var(--border);border-radius:8px}.training-card{border:1px solid var(--border);border-radius:8px;background:var(--panel);padding:14px}.training-card h3{font-size:14px;margin:0}.training-pill{border:1px solid var(--border);border-radius:999px;padding:3px 7px;background:transparent;color:var(--muted);font-size:11px}.training-question-answer{display:flex;gap:6px;width:100%}.training-question-answer input{min-width:0;flex:1;border:1px solid var(--border);border-radius:6px;background:var(--panel);color:var(--text);padding:7px}.training-approval{padding:10px;border-radius:6px;background:var(--panel-soft);font-size:12px}.training-approval p{color:var(--muted);line-height:1.4}.training-approval>div{display:flex;gap:6px}.training-approval>.training-creation-content{display:grid;gap:10px}.training-creation-content>strong,.training-creation-content>p{margin:0}.training-creation-content>.composer-create-actions{display:flex;gap:6px;flex-wrap:wrap}.training-creation-plan-facts{display:flex;gap:6px;flex-wrap:wrap}.training-creation-plan-facts span{border:1px solid var(--border);border-radius:999px;padding:3px 7px;color:var(--muted);font-size:11px}.training-create-strip .training-question-answer{margin-top:8px}.training-create-strip .training-question-answer input{background:#0000002e}.training-detail{min-width:0}.training-eyebrow{font-size:11px;color:var(--muted)}.training-taskset-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:0;padding:8px 0 16px;border-bottom:1px solid var(--border)}.training-taskset-facts div{display:grid;gap:3px}.training-taskset-facts dt{color:var(--muted);font-size:11px}.training-taskset-facts dd{margin:0;font-size:13px}.training-taskset-content{display:grid;gap:0}.training-primary-section{padding:14px 0}.training-grader-summary{padding:14px 0;border-top:1px solid var(--border)}.training-grader-summary h3{margin:0;font-size:14px}.training-grader-summary p{margin:4px 0 10px;color:var(--muted);font-size:12px}.training-grader-summary pre{overflow:auto;margin:0;border-radius:6px;background:var(--panel-soft);padding:10px 12px;font-size:12px;line-height:1.5}.training-simple-section{padding:10px 0;border-top:1px solid var(--border)}.training-source-details>summary{cursor:pointer;font-size:13px;font-weight:600}.training-source-list{display:grid;gap:10px;margin-top:12px}.training-source-list>div{display:flex;justify-content:space-between;gap:16px}.training-source-list span{color:var(--muted);font-size:12px}.training-chat-link{border:0;background:transparent;color:var(--text);padding:0;font:inherit;font-size:13px;font-weight:600;text-align:left;cursor:pointer}.training-chat-link:hover{text-decoration:underline}.training-source-metadata{display:flex;justify-content:flex-end;gap:14px;flex-wrap:wrap}.training-validation-pending{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}.training-readiness ul{margin:0;padding-left:18px}.training-readiness li+li{margin-top:4px}.training-definition{margin:0;display:grid;gap:8px}.training-definition div{display:grid;grid-template-columns:120px 1fr;gap:10px}.training-definition dt{color:var(--muted);font-size:12px}.training-definition dd{margin:0;font-size:12px;overflow-wrap:anywhere}.training-page-body{width:min(1120px,calc(100% - 72px));margin-inline:auto;padding:28px 0}.training-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px;margin-top:16px}.training-card dl{display:flex;gap:16px}.training-card dl div{display:flex;flex-direction:column}.training-card dt{font-size:10px;color:var(--muted)}.training-card dd{margin:2px 0;font-size:13px}.training-empty{padding:24px;color:var(--muted);font-size:13px;text-align:center}.training-empty-detail{height:70%;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted)}.training-empty-detail h2{color:var(--text);margin:10px 0 0}.training-empty-detail p{font-size:13px}.training-evidence{margin:12px 0;font-size:12px;color:var(--muted)}.training-evidence summary{cursor:pointer;color:var(--text)}.training-evidence ul{margin:8px 0;padding-left:18px;display:grid;gap:5px}.training-merge-row{display:flex;align-items:center;gap:6px;margin-top:8px}.training-merge-row select{min-width:0;flex:1;border:1px solid var(--border);border-radius:6px;background:var(--panel);color:var(--text);padding:6px;font:inherit;font-size:11px}.training-readiness{display:block;margin-bottom:10px}.training-readiness strong{font-size:13px}.training-suggestions{display:grid;gap:16px}.training-suggestions h2{font-size:15px}.training-suggestions>div>p{margin:5px 0 0;color:var(--muted);font-size:12px}.training-suggestions .training-card-grid{margin-top:0}.training-suggestions-empty{border:1px dashed var(--border);border-radius:8px;background:var(--panel);padding:32px}.training-dialog-backdrop{position:fixed;inset:0;z-index:80;background:#0000008c;display:flex;align-items:center;justify-content:center}.training-dialog{width:min(560px,calc(100vw - 40px));max-height:min(680px,calc(100vh - 40px));display:flex;flex-direction:column;border:1px solid var(--border);border-radius:10px;background:var(--bg);box-shadow:0 20px 60px #00000059;padding:18px}.training-dialog h2{margin:0;font-size:17px}.training-dialog p{margin:4px 0;color:var(--muted);font-size:12px}.training-dialog-header>button{border:0;background:transparent;color:inherit;cursor:pointer}.training-search{display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:6px;padding:8px;margin:14px 0}.training-search input{width:100%;border:0;outline:0;background:transparent;color:inherit;font:inherit}.training-source-options{overflow:auto;min-height:120px}.training-source-options label{display:flex;align-items:flex-start;gap:11px;padding:9px;border-radius:6px;cursor:pointer}.training-source-options label:hover{background:var(--panel-soft)}.training-source-options label>span{display:flex;min-width:0;flex-direction:column}.training-source-options small{color:var(--muted)}.training-chat-estimate{display:inline}.training-chat-checkbox{-webkit-appearance:none;appearance:none;display:grid;place-content:center;flex:0 0 19px;width:19px;height:19px;margin:1px 0 0;border:1px solid color-mix(in srgb,var(--text) 25%,transparent);border-radius:5px;background:var(--panel);cursor:pointer;transition:border-color .12s ease,background .12s ease}.training-chat-checkbox:before{content:"";width:9px;height:5px;margin-top:-2px;border-bottom:2px solid #061317;border-left:2px solid #061317;transform:rotate(-45deg) scale(0);transition:transform .12s ease}.training-chat-checkbox:checked{border-color:var(--cyan);background:var(--cyan)}.training-chat-checkbox:checked:before{transform:rotate(-45deg) scale(1)}.training-chat-checkbox:focus-visible{outline:2px solid color-mix(in srgb,var(--cyan) 38%,transparent);outline-offset:2px}.training-dialog-actions{justify-content:flex-end;margin-top:14px}.training-run-dialog{width:min(680px,calc(100vw - 40px));overflow:auto}.training-run-workflow-step{height:min(680px,calc(100vh - 40px));overflow:hidden}.training-dialog-scroll-body{min-height:0;overflow:auto;padding-right:4px}.training-run-step-heading{display:grid;gap:4px;margin-top:14px}.training-run-step-heading h3{margin:0;font-size:15px}.training-run-step-heading p{margin:0}.training-method-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}.training-method-options>button{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:10px;min-height:108px;border:1px solid var(--border);border-radius:8px;background:transparent;color:var(--text);padding:14px;text-align:left;cursor:pointer}.training-method-options>button:hover{background:var(--panel-soft)}.training-method-options>button.selected{border-color:color-mix(in srgb,var(--text) 46%,var(--border));background:var(--panel-soft)}.training-method-options>button>span{display:grid;gap:6px}.training-method-options strong{font-size:13px}.training-method-options small{color:var(--muted);font-size:12px;line-height:1.4}.training-objective-field{display:grid;gap:6px;margin-top:14px}.training-objective-field>span{font-size:12px;font-weight:600}.training-objective-field>span small{margin-left:4px;color:var(--muted);font-weight:400}.training-objective-field textarea{width:100%;min-width:0;min-height:70px;border:1px solid var(--border);border-radius:6px;background:var(--panel);color:var(--text);padding:9px 10px;resize:vertical;font:inherit;font-size:13px;line-height:1.45}.training-authoring-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.training-authoring-row>span{color:var(--muted);font-size:12px}.training-authoring-controls{position:relative;display:flex;align-items:center;gap:6px}.training-authoring-controls .dropdown-trigger,.training-authoring-controls .codex-model-trigger{background:var(--panel-soft)}.training-source-toolbar{display:flex;align-items:center;gap:8px;margin-top:12px}.training-source-toolbar .training-search{flex:1;margin:0}.training-run-dialog .training-source-options{min-height:180px;max-height:300px;margin-top:8px;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.training-selection-count{margin-right:auto;color:var(--muted);font-size:12px}.training-source-result-count{display:flex;gap:14px;margin-top:7px;color:var(--muted);font-size:11px}.training-source-options small{display:flex;gap:10px;flex-wrap:wrap}.training-chat-estimate{display:contents}.training-selection-count{display:flex;gap:12px;flex-wrap:wrap}.training-selected-chat-group{background:color-mix(in srgb,var(--panel-soft) 72%,transparent)}.training-chat-search-snippet{display:-webkit-box;overflow:hidden;color:var(--muted);font-size:11px;line-height:1.4;-webkit-box-orient:vertical;-webkit-line-clamp:2}.training-chat-search-state{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;color:var(--muted);font-size:12px}.training-source-options label{content-visibility:auto;contain-intrinsic-size:48px}.training-start-mode-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;border:1px solid var(--border);border-radius:8px;background:var(--panel-soft);padding:3px}.training-start-mode-options>button{display:flex;align-items:center;justify-content:center;min-height:42px;border:0;border-radius:5px;padding:9px 12px;text-align:center}.training-start-mode-options>button.selected{border-color:transparent;background:var(--panel);box-shadow:inset 0 0 0 1px var(--border)}.training-start-mode-description{min-height:18px;margin-top:10px!important;line-height:1.5}.training-evidence-fields{min-width:0;margin:0;padding:0;border:0}.training-evidence-fields:disabled{opacity:.72}.training-evidence-objective{display:grid;gap:4px;margin-top:14px;padding:10px 12px;border:1px solid var(--border);border-radius:7px;background:var(--panel-soft)}.training-evidence-objective span{color:var(--muted);font-size:11px}.training-evidence-objective strong{font-size:13px;line-height:1.45}.training-dataset-capability textarea{min-height:62px}.training-dataset-source-heading{display:flex;align-items:center;gap:7px;margin-top:14px}.training-dataset-source-heading span{font-size:12px;font-weight:600}.training-dataset-source-heading small{color:var(--muted);font-size:10px}.training-disclosure-review{margin-top:14px;padding:12px;border:1px solid color-mix(in srgb,var(--cyan) 42%,var(--border));border-radius:8px;background:color-mix(in srgb,var(--cyan) 7%,var(--panel))}.training-disclosure-review>strong{font-size:13px}.training-disclosure-review p{line-height:1.5}.training-automatic-scope-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0 0}.training-automatic-scope-summary>div{display:grid;gap:3px;padding:10px;border:1px solid var(--border);border-radius:7px;background:var(--panel-soft)}.training-automatic-scope-summary dt{color:var(--muted);font-size:11px}.training-automatic-scope-summary dd{margin:0;font-size:13px;font-weight:600}.training-automatic-options{margin-top:12px}.training-automatic-options summary{cursor:pointer;color:var(--muted);font-size:12px}.training-automatic-options>div{display:flex;gap:14px;flex-wrap:wrap;margin-top:10px}.training-automatic-options label{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:12px}.training-automatic-options input{width:62px;border:1px solid var(--border);border-radius:5px;background:var(--panel);color:var(--text);padding:5px}.training-candidate-options{display:grid;gap:8px;margin-top:14px}.training-candidate-options>button{display:grid;gap:10px;width:100%;border:1px solid var(--border);border-radius:8px;background:transparent;color:var(--text);padding:12px;text-align:left;cursor:pointer}.training-candidate-options>button:hover,.training-candidate-options>button:focus-visible{background:var(--panel-soft)}.training-candidate-options>button>span{display:grid;gap:3px}.training-candidate-options small{color:var(--muted);font-size:11px;line-height:1.4}.training-candidate-options dl{display:flex;gap:18px;margin:0}.training-candidate-options dl>div{display:grid;gap:2px}.training-candidate-options dt{color:var(--muted);font-size:10px}.training-candidate-options dd{margin:0;font-size:11px;text-transform:capitalize}.training-base-model-card{display:grid;gap:14px;margin-top:16px;border:1px solid var(--border);border-radius:8px;background:var(--panel-soft);padding:14px}.training-base-model-card>label{display:grid;gap:6px}.training-base-model-card>label>span{font-size:11px;font-weight:600}.training-base-model-card select{width:100%;border:1px solid var(--border);border-radius:6px;background:var(--panel);color:var(--text);padding:9px 10px;font:inherit;font-size:12px}.training-base-model-card dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;margin:0;overflow:hidden;border:1px solid var(--border);border-radius:6px;background:var(--border)}.training-base-model-card dl>div{display:grid;gap:3px;background:var(--panel);padding:8px}.training-base-model-card dt{color:var(--muted);font-size:9px}.training-base-model-card dd{margin:0;font-size:11px;font-weight:600}.training-existing-dataset-list{display:grid;gap:8px;margin-top:16px}.training-existing-dataset-list>button{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px;width:100%;border:1px solid var(--border);border-radius:8px;background:transparent;color:var(--text);padding:11px 12px;text-align:left}.training-existing-dataset-list>button:hover,.training-existing-dataset-list>button.selected{background:var(--panel-soft)}.training-existing-dataset-list>button.selected{border-color:color-mix(in srgb,var(--text) 45%,var(--border))}.training-existing-dataset-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:6px;background:var(--panel-soft);color:var(--muted)}.training-existing-dataset-list>button>span:nth-child(2){display:grid;min-width:0;gap:3px}.training-existing-dataset-list strong,.training-existing-dataset-list small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.training-existing-dataset-list strong{font-size:12px}.training-existing-dataset-list small,.training-existing-dataset-splits,.training-existing-dataset-note{color:var(--muted);font-size:10px}.training-existing-dataset-splits{display:flex;gap:9px;white-space:nowrap}.training-existing-dataset-note{margin-top:12px!important;padding-left:10px;border-left:2px solid var(--border);line-height:1.5!important}.training-existing-dataset-empty{border:1px dashed var(--border);border-radius:8px}.training-existing-dataset-list .training-empty{padding:28px}.training-miner-progress{display:grid;gap:8px;margin-top:16px;padding:11px;border:1px solid var(--border);border-radius:7px;background:var(--panel-soft)}.training-miner-progress>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.training-miner-progress strong{font-size:12px}.training-miner-progress span{color:var(--muted);font-size:11px}.training-miner-progress progress{width:100%;height:6px;accent-color:var(--cyan)}.training-automatic-chat-preview{display:grid;gap:9px;margin-top:12px;padding:11px 12px;border:1px solid var(--border);border-radius:8px;background:var(--panel-soft)}.training-automatic-chat-preview>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.training-automatic-chat-preview h4{margin:0;font-size:12px}.training-automatic-chat-preview>div>span,.training-automatic-chat-preview small,.training-automatic-chat-preview p{color:var(--muted);font-size:11px;line-height:1.45}.training-automatic-chat-preview ul{display:grid;gap:0;margin:0;padding:0;list-style:none;border-top:1px solid var(--border)}.training-automatic-chat-preview li{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:7px 0;border-bottom:1px solid var(--border)}.training-automatic-chat-preview li strong{overflow:hidden;font-size:11px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.training-automatic-chat-preview time{flex:0 0 auto;color:var(--muted);font-size:10px}.training-recommendation-name{display:grid;gap:3px;min-width:0;flex:1}.training-recommendation-name>span{color:var(--muted);font-size:10px;font-weight:500}.training-recommendation-name input{min-width:0;width:100%;border:0;border-bottom:1px solid transparent;background:transparent;color:var(--text);padding:2px 0;font:inherit;font-size:15px;font-weight:650}.training-recommendation-name input:focus{outline:0;border-bottom-color:var(--cyan)}.training-path-review>div{margin-top:7px;padding:9px 10px;border:1px solid var(--border);border-radius:7px;background:var(--panel-soft)}.training-path-review>div strong{font-size:12px}.training-path-review>div p{line-height:1.45}.training-recommendation-review{display:grid;gap:8px;padding-top:10px}.training-setup-section{margin:0;border:1px solid var(--border);border-radius:8px;background:var(--panel-soft)}.training-setup-section>summary,.training-setup-section-heading{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:9px;min-height:46px;padding:9px 11px;list-style:none;cursor:pointer}.training-setup-section>summary::-webkit-details-marker{display:none}.training-setup-section>summary strong,.training-setup-section-heading strong{font-size:12px}.training-setup-section>summary small,.training-setup-section-heading small{color:var(--muted);font-size:10px;text-align:right}.training-setup-step-number{display:grid;place-items:center;width:21px;height:21px;border:1px solid var(--border);border-radius:50%;color:var(--muted);font-size:10px;font-weight:650}.training-setup-section[open]>summary{border-bottom:1px solid var(--border)}.training-setup-section[open] .training-setup-step-number{border-color:color-mix(in srgb,var(--cyan) 55%,var(--border));color:var(--cyan)}.training-setup-model{padding-bottom:11px}.training-setup-model .training-recommendation-name,.training-setup-model .training-recommendation-objective{margin-right:12px;margin-left:44px}.training-setup-model .training-recommendation-objective{margin-top:6px;line-height:1.45}.training-recommendation-detail-body{display:grid;gap:10px;padding:11px 12px}.training-recommendation-detail-body h4{margin:2px 0 0;font-size:12px}.training-recommendation-detail-body ul{margin:0;padding-left:18px;color:var(--muted);font-size:11px;line-height:1.5}.training-recommendation-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;margin:0;overflow:hidden;border:1px solid var(--border);border-radius:7px;background:var(--border)}.training-recommendation-facts>div{display:grid;gap:3px;background:var(--panel);padding:8px}.training-recommendation-facts dt{color:var(--muted);font-size:9px}.training-recommendation-facts dd{margin:0;font-size:11px;font-weight:600}.training-proposed-examples{display:grid;gap:6px}.training-proposed-examples article{display:grid;gap:4px;padding:9px;border:1px solid var(--border);border-radius:7px;background:var(--panel)}.training-proposed-examples article>div{display:flex;justify-content:space-between;gap:10px}.training-proposed-examples article strong{font-size:11px}.training-proposed-examples article span,.training-proposed-examples article small{color:var(--muted);font-size:9px}.training-proposed-examples article p{line-height:1.45}.training-proposed-evaluation{padding:9px;border:1px solid var(--border);border-radius:7px;background:var(--panel)}.training-proposed-evaluation strong{font-size:11px}.training-setup-spend-note{margin-top:4px!important;padding-left:10px;border-left:2px solid var(--border);line-height:1.5!important}.training-recommendation-revision textarea{width:100%;min-height:66px;border:1px solid var(--border);border-radius:6px;background:var(--panel);color:var(--text);padding:9px;font:inherit;font-size:12px;resize:vertical}.training-recommendation-revision .training-button{justify-self:end}.training-recommendation-guidance{display:grid;gap:6px;padding:9px;border:1px solid var(--border);border-radius:7px;background:var(--panel)}.training-recommendation-guidance strong{font-size:11px}.training-recommendation-base-model{display:flex;gap:7px;margin:8px 12px 0 44px!important}.training-recommendation-base-model span{color:var(--muted);font-size:10px}.training-recommendation-base-model strong{font-size:10px}.training-bootstrap-limitations{margin-top:12px;padding:11px;border:1px solid var(--border);border-radius:7px;background:var(--panel-soft)}.training-bootstrap-limitations strong{font-size:12px}.training-bootstrap-limitations ul{margin:6px 0 0;padding-left:18px;color:var(--muted);font-size:11px;line-height:1.5}.training-path-stages{display:grid;gap:8px}.training-path-stages>div{display:grid;gap:3px;padding:10px;border:1px solid var(--border);border-radius:7px;background:var(--panel-soft)}.training-path-stages strong{font-size:12px}.training-path-stages span,.training-path-stages small{color:var(--muted);font-size:11px;line-height:1.45}.training-settings-dialog{width:min(680px,calc(100vw - 40px));max-height:min(760px,calc(100vh - 40px));padding-bottom:0}.training-settings-dialog-body{overflow:auto;margin:12px -18px 0;padding:0 2px 18px}.training-settings-dialog .training-settings.embedded{width:auto;min-height:0;padding:0}.training-settings-dialog .training-settings.embedded .provider-settings-form{padding-top:0}.training-settings-dialog .settings-footnote{margin-right:16px;margin-left:16px}.training-delete-dialog{width:min(440px,calc(100vw - 40px))}.training-model-settings-actions{display:flex;justify-content:flex-start}.training-delete-dialog>p{margin:14px 0 0;line-height:1.5}.training-start-dialog{width:min(680px,calc(100vw - 40px));overflow:auto}.training-start-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}.training-start-fields label{display:grid;gap:6px}.training-start-fields label>span{color:var(--muted);font-size:11px}.training-start-fields select,.training-start-fields input{width:100%;min-width:0;border:1px solid var(--border);border-radius:6px;background:var(--panel);color:var(--text);padding:8px 9px;font:inherit;font-size:12px}.training-start-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0 0}.training-start-summary div{display:grid;gap:3px}.training-start-summary dt{color:var(--muted);font-size:11px}.training-start-summary dd{margin:0;font-size:12px;overflow-wrap:anywhere}.training-start-advanced{margin-top:16px;border-top:1px solid var(--border);padding-top:12px}.training-start-advanced summary{cursor:pointer;font-size:12px}.training-start-note{margin-top:14px!important;line-height:1.45}.training-dialog-error{margin:14px 0 0}.training-method-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;margin-top:16px;border:1px solid var(--border);border-radius:8px;background:var(--panel-soft);padding:3px}.training-method-tabs button{display:flex;align-items:baseline;gap:8px;border:0;border-radius:5px;background:transparent;color:var(--muted);padding:9px 10px;font:inherit;font-size:12px;text-align:left;cursor:pointer}.training-method-tabs button:hover{color:var(--text)}.training-method-tabs button.active{background:var(--panel);color:var(--text);box-shadow:inset 0 0 0 1px var(--border)}.training-method-tabs button strong{margin-left:auto;font-size:10px}.training-model-use-dialog{width:min(620px,calc(100vw - 40px))}.training-model-use-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;margin-top:16px;overflow:hidden;border:1px solid var(--border);border-radius:8px;background:var(--border)}.training-model-use-summary>div{display:grid;gap:4px;background:var(--panel);padding:12px}.training-model-use-summary span{color:var(--muted);font-size:11px}.training-model-use-summary strong{font-size:13px}.training-model-use-note,.training-model-use-warning{margin-top:14px!important;line-height:1.5!important}.training-model-use-warning{border-left:2px solid var(--warning,#c7912f);padding-left:10px}.training-model-serving-status{display:grid;gap:9px;margin-top:14px;border:1px solid var(--border);border-radius:8px;background:var(--panel);padding:12px}.training-model-serving-status>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px}.training-model-serving-status strong{font-size:13px}.training-model-serving-status span,.training-model-serving-status small{color:var(--muted);font-size:11px}.training-model-serving-status small.error{color:var(--danger,#e75b5b)}.training-model-serving-progress{height:4px;overflow:hidden;border-radius:999px;background:var(--panel-soft)}.training-model-serving-progress span{display:block;width:40%;height:100%;border-radius:inherit;background:var(--cyan);animation:training-serving-progress 1.2s ease-in-out infinite alternate}@keyframes training-serving-progress{0%{transform:translate(-20%)}to{transform:translate(170%)}}.training-provider-approval{display:grid;gap:10px;margin:16px 0 0;padding:12px;border:1px solid color-mix(in srgb,var(--cyan) 38%,var(--border));border-radius:8px;background:color-mix(in srgb,var(--cyan) 5%,var(--panel))}.training-provider-approval legend{padding:0 5px;color:var(--text);font-size:12px;font-weight:600}.training-provider-approval .training-start-fields{margin-top:0}.training-provider-consent{display:grid;grid-template-columns:auto 1fr;align-items:start;gap:9px;color:var(--muted);font-size:12px;line-height:1.45}.training-provider-consent input{margin-top:3px}.training-prepared-confirmation{display:grid;gap:4px;margin-top:16px;padding:13px;border:1px solid var(--border);border-radius:8px;background:var(--panel-soft)}.training-prepared-confirmation>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.training-prepared-confirmation>div strong{font-size:13px}.training-prepared-confirmation>div span,.training-prepared-confirmation>p{margin:0;color:var(--muted);font-size:11px;line-height:1.45}.training-prepared-confirmation .training-start-summary{margin-top:10px}.spin{animation:training-spin 1s linear infinite}@keyframes training-spin{to{transform:rotate(360deg)}}@media(max-width:860px){.training-header{padding:18px}.training-tasksets-page,.training-page-body,.training-workbench{width:calc(100% - 36px);padding:18px 0}.training-taskset-facts{grid-template-columns:1fr}.training-header{flex-direction:column;align-items:flex-start}.training-header-actions{width:100%}.training-method-options,.training-start-fields,.training-start-summary,.training-configuration-fields{grid-template-columns:1fr}.training-method-options>button{min-height:0}.training-source-list>div{flex-direction:column;gap:3px}.training-source-metadata{justify-content:flex-start}}@media(max-width:640px){.training-dialog-backdrop{align-items:stretch}.training-run-dialog{width:100vw;max-height:100vh;height:100vh;border-radius:0;padding:14px}.training-run-workflow-step{height:100vh}.training-automatic-scope-summary{grid-template-columns:1fr}.training-dialog-actions{align-items:stretch}.training-selection-count{width:100%;margin-bottom:2px}.training-candidate-options dl{gap:10px;flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){.training-chat-checkbox,.training-chat-checkbox:before{transition:none}.training-run-dialog .spin{animation-duration:1.5s}}.training-draft-body{padding:16px;display:grid;align-content:start;gap:12px;overflow:auto}.training-draft-body h2,.training-draft-body h3{margin:0;font-size:14px}.training-draft-body p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}.training-draft-warning{color:#ff8a84!important}.training-draft-body code{color:var(--text)}.training-table-wrap{width:100%;overflow:auto;border:1px solid var(--border);border-radius:8px;background:var(--panel)}.training-data-table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}.training-data-table th{padding:9px 12px;border-bottom:1px solid var(--border);background:var(--panel-soft);color:var(--muted);font-weight:500;white-space:nowrap}.training-data-table td{padding:11px 12px;border-bottom:1px solid var(--border);vertical-align:middle}.training-data-table tbody tr:last-child td{border-bottom:0}.training-data-table tbody tr{cursor:pointer}.training-data-table tbody tr:hover,.training-data-table tbody tr.selected{background:var(--panel-soft)}.training-models-table{min-width:880px}.training-models-table th:first-child{width:34%}.training-table-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px}.training-table-chat{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--border);border-radius:6px;background:transparent;color:var(--text);padding:5px 8px;font:inherit;font-size:11px;cursor:pointer}.training-table-chat:hover{background:var(--bg)}.training-model-link{display:grid;gap:3px;border:0;background:transparent;color:var(--text);padding:0;font:inherit;text-align:left;cursor:pointer}.training-model-link strong{font-size:13px;font-weight:600}.training-model-link span{color:var(--muted);font-size:11px}.training-run-status{display:inline-flex;border-radius:999px;background:var(--panel-soft);padding:3px 7px;color:var(--muted);font-size:11px;white-space:nowrap}.training-model-detail{width:min(1120px,calc(100% - 72px));margin-inline:auto;padding:26px 0 40px}.training-model-detail-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.training-model-detail-header h1{margin:0 0 5px;font-size:21px;font-weight:600;line-height:1.3}.training-status-text{color:var(--muted);font-size:12px}.training-model-detail>.training-detail-tabs{margin-top:20px;padding:0}.training-detail-sections{display:grid;gap:28px;padding-top:26px}.training-detail-section{display:grid;gap:11px}.training-detail-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.training-detail-section-heading h2{margin:0;width:max-content;font-size:14px;font-weight:600;text-decoration:underline;text-decoration-color:var(--border);text-decoration-thickness:1px;text-underline-offset:5px}.training-detail-section-heading>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.training-detail-section-panel{min-width:0;border:1px dashed var(--border);border-radius:8px;padding:16px}.training-taskset-facts{display:flex;grid-template-columns:none;gap:24px;margin:0;padding:0;border-bottom:0;flex-wrap:wrap}.training-taskset-facts>span{display:grid;gap:3px;color:var(--muted);font-size:11px}.training-taskset-facts>span strong{color:var(--text);font-size:14px}.training-runs-table{min-width:720px}.training-runs-table td:first-child button{border:0;background:transparent;color:var(--text);padding:0;font:inherit;font-weight:600;cursor:pointer}.training-run-placeholder{display:grid;min-height:72px;place-items:center;color:var(--muted);font-size:12px;text-align:center}.training-run-placeholder.error{color:var(--destructive,#e66)}.training-run-metrics,.training-run-evaluation{display:grid;gap:15px}.training-metric-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border-bottom:1px solid var(--border);padding-bottom:14px}.training-metric-summary>div{display:grid;gap:4px;min-width:0;padding:0 14px;border-right:1px solid var(--border)}.training-metric-summary>div:first-child{padding-left:0}.training-metric-summary>div:last-child{border-right:0}.training-metric-summary span{color:var(--muted);font-size:11px}.training-metric-summary strong{overflow-wrap:anywhere;font-size:15px;font-weight:600}.training-metric-tabs{display:flex;gap:2px;overflow:auto}.training-metric-tabs button{border:0;border-radius:5px;background:transparent;color:var(--muted);padding:6px 8px;font:inherit;font-size:11px;white-space:nowrap;cursor:pointer}.training-metric-tabs button.active{background:var(--panel-soft);color:var(--text)}.training-line-chart{width:100%;margin:0;color:var(--text)}.training-line-chart svg{display:block;width:100%;height:auto;min-height:220px;overflow:visible}.training-chart-grid{stroke:var(--border);stroke-width:1}.training-chart-axis{stroke:color-mix(in srgb,var(--text) 35%,var(--border));stroke-width:1}.training-chart-line{fill:none;stroke:var(--cyan,var(--text));stroke-width:2;vector-effect:non-scaling-stroke}.training-chart-point{fill:var(--cyan,var(--text));stroke:var(--bg);stroke-width:1.5;vector-effect:non-scaling-stroke}.training-chart-label{fill:var(--muted);font-size:10px}.training-chart-label.axis-title{font-size:11px}.training-evaluation-table{min-width:680px}.training-evaluation-table details{max-width:520px}.training-evaluation-table summary{cursor:pointer;font-weight:600}.training-evaluation-output{display:grid;gap:10px;margin-top:10px}.training-evaluation-output>div{display:grid;gap:4px}.training-evaluation-output span{color:var(--muted);font-size:10px}.training-evaluation-output pre{max-height:180px;overflow:auto;margin:0;border-radius:6px;background:var(--bg);padding:9px;font-size:11px;white-space:pre-wrap}.training-result-summary{display:grid;gap:5px}.training-result-summary span{color:var(--muted);font-size:12px}.training-model-comparison-table{min-width:840px}.training-model-comparison-table td:first-child{display:grid;gap:3px}.training-model-comparison-table td:first-child small{color:var(--muted);font-size:10px}.training-model-comparison-table .training-comparison-base{background:color-mix(in srgb,var(--cyan) 4%,var(--panel))}.training-promotion{display:grid;gap:16px}.training-promotion-status{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.training-promotion-status>div{display:grid;gap:4px;padding:11px;border:1px solid var(--border);border-radius:7px;background:var(--panel-soft)}.training-promotion-status span,.training-promotion-controls label>span,.training-promotion-reason>span{color:var(--muted);font-size:11px}.training-promotion-status strong{overflow-wrap:anywhere;font-size:12px}.training-promotion-controls{display:grid;grid-template-columns:minmax(160px,.8fr) minmax(220px,1.2fr) auto;align-items:end;gap:12px}.training-promotion-controls label,.training-promotion-reason{display:grid;gap:6px}.training-promotion-controls select,.training-promotion-controls input,.training-promotion-reason textarea{width:100%;min-width:0;border:1px solid var(--border);border-radius:6px;background:var(--panel);color:var(--text);padding:8px 9px;font:inherit;font-size:12px}.training-promotion-actions{display:flex;gap:8px;justify-content:flex-end}.training-promotion-note{margin:0;color:var(--muted);font-size:11px;line-height:1.45}.training-promotion-dialog{width:min(500px,calc(100vw - 40px))}.training-promotion-dialog>p{margin:14px 0 0;line-height:1.5}.training-promotion-reason{margin-top:14px}.training-promotion-reason textarea{min-height:96px;resize:vertical}.training-rollout-receipts{display:grid;gap:8px}.training-rollout-receipt-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:11px}.training-rollout-receipts>details{border:1px solid var(--border);border-radius:7px;background:var(--panel-soft)}.training-rollout-receipts summary{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:10px 12px;cursor:pointer;font-size:11px}.training-rollout-receipts summary span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.training-rollout-receipts summary strong{text-transform:capitalize}.training-rollout-receipts summary em{color:var(--muted);font-style:normal}.training-rollout-receipts details>.training-configuration-list{padding:0 12px 12px}.training-configuration-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px;margin:0}.training-configuration-list>div{display:grid;grid-template-columns:minmax(110px,.7fr) minmax(0,1.3fr);gap:12px;padding:9px 0;border-bottom:1px solid var(--border)}.training-configuration-list dt{color:var(--muted);font-size:11px}.training-configuration-list dd{margin:0;overflow-wrap:anywhere;font-size:12px}.training-model-configuration{display:grid;gap:18px}.training-configuration-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}.training-configuration-fields label{display:grid;gap:6px;min-width:0}.training-configuration-fields label.wide{grid-column:1/-1}.training-configuration-fields label>span{color:var(--muted);font-size:11px}.training-configuration-fields select,.training-configuration-fields input,.training-configuration-fields textarea{width:100%;min-width:0;border:1px solid var(--border);border-radius:6px;background:var(--panel);color:var(--text);padding:8px 9px;font:inherit;font-size:12px}.training-configuration-fields textarea{min-height:96px;resize:vertical;line-height:1.45}.training-configuration-actions{display:flex;justify-content:flex-end;gap:8px}.training-artifact-list,.training-event-log{display:grid}.training-artifact-list>div{display:grid;grid-template-columns:90px minmax(0,1fr) auto;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid var(--border)}.training-artifact-list>div:last-child,.training-event-log>div:last-child{border-bottom:0}.training-artifact-list span{color:var(--muted);font-size:11px;text-transform:capitalize}.training-artifact-list code{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.training-artifact-list strong{font-size:11px;font-weight:500}.training-event-log{max-height:360px;overflow:auto}.training-event-log>div{display:grid;grid-template-columns:86px 90px minmax(0,1fr);gap:10px;padding:7px 0;border-bottom:1px solid var(--border);font-size:11px}.training-event-log time,.training-event-log code{color:var(--muted);overflow-wrap:anywhere}.training-sidebar-summary{height:100%;overflow:auto;padding:16px}.training-sidebar-summary header{display:grid;gap:6px;padding-bottom:14px;border-bottom:1px solid var(--border)}.training-sidebar-summary h2{margin:0;font-size:14px;line-height:1.4}.training-sidebar-summary header>span{color:var(--muted);font-size:11px}.training-sidebar-summary section{padding:16px 0;border-bottom:1px solid var(--border)}.training-sidebar-summary section:last-child{border-bottom:0}.training-sidebar-summary h3{margin:0 0 10px;font-size:12px}.training-sidebar-summary dl{display:grid;gap:9px;margin:0}.training-sidebar-summary dl>div{display:grid;grid-template-columns:minmax(90px,.8fr) minmax(0,1.2fr);gap:10px}.training-sidebar-summary dt{color:var(--muted);font-size:11px}.training-sidebar-summary dd{margin:0;overflow-wrap:anywhere;font-size:11px;text-align:right}@media(max-width:860px){.training-model-detail{width:calc(100% - 36px);padding:18px 0 28px}.training-metric-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 0}.training-metric-summary>div:nth-child(2){border-right:0}.training-configuration-list,.training-promotion-status,.training-promotion-controls{grid-template-columns:1fr}.training-promotion-actions{justify-content:flex-start}}
@@ -0,0 +1 @@
1
+ function M(e){if(!e)return[];const n=new Map(e.plans.map(t=>[t.id,t]));return e.tasksets.map(t=>{const r=e.plans.filter(o=>o.tasksetId===t.id),d=new Set(r.map(o=>o.id)),l=e.jobs.filter(o=>d.has(o.planId)).sort(s),a=l[0]??null,u=e.models.filter(o=>o.tasksetId===t.id&&o.status==="imported").sort((o,p)=>p.importedAt.localeCompare(o.importedAt))[0]??null,i=a?n.get(a.planId)??null:r.sort(s)[0]??null,c=m(t);return{taskset:t,name:b(t.name),primaryMethod:c,latestRunLabel:i?f(t,i):u?"Imported adapter":"Not started",latestPlan:i,latestJob:a,localModel:u,runCount:l.length,status:a?g(a.status):t.readiness?.ready?"Ready":"Needs review",updatedAt:a?.updatedAt??t.updatedAt}}).sort((t,r)=>r.updatedAt.localeCompare(t.updatedAt))}function w(e,n){if(!e)return[];const t=new Set(e.plans.filter(r=>r.tasksetId===n).map(r=>r.id));return e.jobs.filter(r=>t.has(r.planId)).sort(s)}function m(e){const n=e.metadata.trainingMethod;return typeof n=="string"&&n!=="none"?n:e.readiness?.recommendedMethod&&e.readiness.recommendedMethod!=="none"?e.readiness.recommendedMethod:e.capabilities.compatibleMethods.find(t=>!["none","retrieval"].includes(t))??"sft"}function f(e,n){if(!n)return"Not started";const t=n.recipe.method,r=e.readiness?.trainingPath;return t==="sft"&&r?.primaryMethod!=="sft"&&r?.bootstrap?.method==="sft"?"SFT bootstrap":h(t)}function h(e){return e==="grpo"?"RFT":e==="sft"?"SFT":e?.toUpperCase()??"Review"}function I(e){return e==="grpo"?"Reinforcement":e==="sft"?"Supervised":"Training"}function b(e,n){return/\b(model|adapter)\s*$/i.test(e.trim())?e.trim():`${e.trim()} model`}function g(e){return e.replaceAll("_"," ").replace(/^./,n=>n.toUpperCase())}function _(e){return{export:"Export only",local_cpu_fixture:"Local CPU",local_cuda:"Local GPU",local_mlx:"Apple Silicon",ssh_gpu:"SSH GPU",runpod_byoc:"RunPod",prime_hosted:"Prime hosted",fireworks:"Fireworks",openpond_managed:"OpenPond managed"}[e]??e.replaceAll("_"," ")}function y(e){return e?new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}).format(new Date(e)):"Not started"}function A(e,n){if(!e)return"Not started";const t=n?new Date(n).getTime():Date.now(),r=Math.max(0,Math.round((t-new Date(e).getTime())/1e3));return r<60?`${r}s`:`${Math.floor(r/60)}m ${r%60}s`}function s(e,n){return n.createdAt.localeCompare(e.createdAt)}export{f as a,A as b,I as c,_ as d,h as e,y as f,M as g,w as j,b as m,g as s,m as t};
@@ -1,4 +1,4 @@
1
- import{j7 as w,j8 as F,j9 as P,ja as v,l as f,jb as O}from"./WorkspaceMonacoEditor-BBqimG5X.js";import"./toggleHighContrast-DRjlcwes.js";import{c as K}from"./workers-Ciff6Dzi.js";import{typescriptDefaults as M}from"./monaco.contribution-Cpf6dWsh.js";import"./index-CU2qhUYV.js";class E{constructor(e,t){this._modeId=e,this._defaults=t,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker()),this._updateExtraLibsToken=0,this._extraLibsChangeListener=this._defaults.onDidExtraLibsChange(()=>this._updateExtraLibs())}dispose(){this._configChangeListener.dispose(),this._extraLibsChangeListener.dispose(),this._stopWorker()}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}async _updateExtraLibs(){if(!this._worker)return;const e=++this._updateExtraLibsToken,t=await this._worker.getProxy();this._updateExtraLibsToken===e&&t.updateExtraLibs(this._defaults.getExtraLibs())}_getClient(){return this._client||(this._client=(async()=>(this._worker=K({moduleId:"vs/language/typescript/tsWorker",createWorker:()=>new Worker(new URL(""+new URL("ts.worker-BH9nVgjN.js",import.meta.url).href,import.meta.url),{type:"module"}),label:this._modeId,keepIdleModels:!0,createData:{compilerOptions:this._defaults.getCompilerOptions(),extraLibs:this._defaults.getExtraLibs(),customWorkerPath:this._defaults.workerOptions.customWorkerPath,inlayHintsOptions:this._defaults.inlayHintsOptions}}),this._defaults.getEagerModelSync()?await this._worker.withSyncedResources(w.getModels().filter(e=>e.getLanguageId()===this._modeId).map(e=>e.uri)):await this._worker.getProxy()))()),this._client}async getLanguageServiceWorker(...e){const t=await this._getClient();return this._worker&&await this._worker.withSyncedResources(e),t}}const s={};s["lib.d.ts"]=!0;s["lib.decorators.d.ts"]=!0;s["lib.decorators.legacy.d.ts"]=!0;s["lib.dom.asynciterable.d.ts"]=!0;s["lib.dom.d.ts"]=!0;s["lib.dom.iterable.d.ts"]=!0;s["lib.es2015.collection.d.ts"]=!0;s["lib.es2015.core.d.ts"]=!0;s["lib.es2015.d.ts"]=!0;s["lib.es2015.generator.d.ts"]=!0;s["lib.es2015.iterable.d.ts"]=!0;s["lib.es2015.promise.d.ts"]=!0;s["lib.es2015.proxy.d.ts"]=!0;s["lib.es2015.reflect.d.ts"]=!0;s["lib.es2015.symbol.d.ts"]=!0;s["lib.es2015.symbol.wellknown.d.ts"]=!0;s["lib.es2016.array.include.d.ts"]=!0;s["lib.es2016.d.ts"]=!0;s["lib.es2016.full.d.ts"]=!0;s["lib.es2016.intl.d.ts"]=!0;s["lib.es2017.arraybuffer.d.ts"]=!0;s["lib.es2017.d.ts"]=!0;s["lib.es2017.date.d.ts"]=!0;s["lib.es2017.full.d.ts"]=!0;s["lib.es2017.intl.d.ts"]=!0;s["lib.es2017.object.d.ts"]=!0;s["lib.es2017.sharedmemory.d.ts"]=!0;s["lib.es2017.string.d.ts"]=!0;s["lib.es2017.typedarrays.d.ts"]=!0;s["lib.es2018.asyncgenerator.d.ts"]=!0;s["lib.es2018.asynciterable.d.ts"]=!0;s["lib.es2018.d.ts"]=!0;s["lib.es2018.full.d.ts"]=!0;s["lib.es2018.intl.d.ts"]=!0;s["lib.es2018.promise.d.ts"]=!0;s["lib.es2018.regexp.d.ts"]=!0;s["lib.es2019.array.d.ts"]=!0;s["lib.es2019.d.ts"]=!0;s["lib.es2019.full.d.ts"]=!0;s["lib.es2019.intl.d.ts"]=!0;s["lib.es2019.object.d.ts"]=!0;s["lib.es2019.string.d.ts"]=!0;s["lib.es2019.symbol.d.ts"]=!0;s["lib.es2020.bigint.d.ts"]=!0;s["lib.es2020.d.ts"]=!0;s["lib.es2020.date.d.ts"]=!0;s["lib.es2020.full.d.ts"]=!0;s["lib.es2020.intl.d.ts"]=!0;s["lib.es2020.number.d.ts"]=!0;s["lib.es2020.promise.d.ts"]=!0;s["lib.es2020.sharedmemory.d.ts"]=!0;s["lib.es2020.string.d.ts"]=!0;s["lib.es2020.symbol.wellknown.d.ts"]=!0;s["lib.es2021.d.ts"]=!0;s["lib.es2021.full.d.ts"]=!0;s["lib.es2021.intl.d.ts"]=!0;s["lib.es2021.promise.d.ts"]=!0;s["lib.es2021.string.d.ts"]=!0;s["lib.es2021.weakref.d.ts"]=!0;s["lib.es2022.array.d.ts"]=!0;s["lib.es2022.d.ts"]=!0;s["lib.es2022.error.d.ts"]=!0;s["lib.es2022.full.d.ts"]=!0;s["lib.es2022.intl.d.ts"]=!0;s["lib.es2022.object.d.ts"]=!0;s["lib.es2022.regexp.d.ts"]=!0;s["lib.es2022.string.d.ts"]=!0;s["lib.es2023.array.d.ts"]=!0;s["lib.es2023.collection.d.ts"]=!0;s["lib.es2023.d.ts"]=!0;s["lib.es2023.full.d.ts"]=!0;s["lib.es2023.intl.d.ts"]=!0;s["lib.es2024.arraybuffer.d.ts"]=!0;s["lib.es2024.collection.d.ts"]=!0;s["lib.es2024.d.ts"]=!0;s["lib.es2024.full.d.ts"]=!0;s["lib.es2024.object.d.ts"]=!0;s["lib.es2024.promise.d.ts"]=!0;s["lib.es2024.regexp.d.ts"]=!0;s["lib.es2024.sharedmemory.d.ts"]=!0;s["lib.es2024.string.d.ts"]=!0;s["lib.es5.d.ts"]=!0;s["lib.es6.d.ts"]=!0;s["lib.esnext.array.d.ts"]=!0;s["lib.esnext.collection.d.ts"]=!0;s["lib.esnext.d.ts"]=!0;s["lib.esnext.decorators.d.ts"]=!0;s["lib.esnext.disposable.d.ts"]=!0;s["lib.esnext.error.d.ts"]=!0;s["lib.esnext.float16.d.ts"]=!0;s["lib.esnext.full.d.ts"]=!0;s["lib.esnext.intl.d.ts"]=!0;s["lib.esnext.iterator.d.ts"]=!0;s["lib.esnext.promise.d.ts"]=!0;s["lib.esnext.sharedmemory.d.ts"]=!0;s["lib.scripthost.d.ts"]=!0;s["lib.webworker.asynciterable.d.ts"]=!0;s["lib.webworker.d.ts"]=!0;s["lib.webworker.importscripts.d.ts"]=!0;s["lib.webworker.iterable.d.ts"]=!0;function A(c,e,t=0){if(typeof c=="string")return c;if(c===void 0)return"";let o="";if(t){o+=e;for(let i=0;i<t;i++)o+=" "}if(o+=c.messageText,t++,c.next)for(const i of c.next)o+=A(i,e,t);return o}function _(c){return c?c.map(e=>e.text).join(""):""}class y{constructor(e){this._worker=e}_textSpanToRange(e,t){let o=e.getPositionAt(t.start),i=e.getPositionAt(t.start+t.length),{lineNumber:l,column:p}=o,{lineNumber:n,column:r}=i;return{startLineNumber:l,startColumn:p,endLineNumber:n,endColumn:r}}}class H{constructor(e){this._worker=e,this._libFiles={},this._hasFetchedLibFiles=!1,this._fetchLibFilesPromise=null}isLibFile(e){return e&&e.path.indexOf("/lib.")===0?!!s[e.path.slice(1)]:!1}getOrCreateModel(e){const t=F.parse(e),o=w.getModel(t);if(o)return o;if(this.isLibFile(t)&&this._hasFetchedLibFiles)return w.createModel(this._libFiles[t.path.slice(1)],"typescript",t);const i=M.getExtraLibs()[e];return i?w.createModel(i.content,"typescript",t):null}_containsLibFile(e){for(let t of e)if(this.isLibFile(t))return!0;return!1}async fetchLibFilesIfNecessary(e){this._containsLibFile(e)&&await this._fetchLibFiles()}_fetchLibFiles(){return this._fetchLibFilesPromise||(this._fetchLibFilesPromise=this._worker().then(e=>e.getLibFiles()).then(e=>{this._hasFetchedLibFiles=!0,this._libFiles=e})),this._fetchLibFilesPromise}}class V extends y{constructor(e,t,o,i){super(i),this._libFiles=e,this._defaults=t,this._selector=o,this._disposables=[],this._listener=Object.create(null);const l=r=>{if(r.getLanguageId()!==o)return;const u=()=>{const{onlyVisible:h}=this._defaults.getDiagnosticsOptions();h?r.isAttachedToEditor()&&this._doValidate(r):this._doValidate(r)};let d;const g=r.onDidChangeContent(()=>{clearTimeout(d),d=window.setTimeout(u,500)}),b=r.onDidChangeAttached(()=>{const{onlyVisible:h}=this._defaults.getDiagnosticsOptions();h&&(r.isAttachedToEditor()?u():w.setModelMarkers(r,this._selector,[]))});this._listener[r.uri.toString()]={dispose(){g.dispose(),b.dispose(),clearTimeout(d)}},u()},p=r=>{w.setModelMarkers(r,this._selector,[]);const u=r.uri.toString();this._listener[u]&&(this._listener[u].dispose(),delete this._listener[u])};this._disposables.push(w.onDidCreateModel(r=>l(r))),this._disposables.push(w.onWillDisposeModel(p)),this._disposables.push(w.onDidChangeModelLanguage(r=>{p(r.model),l(r.model)})),this._disposables.push({dispose(){for(const r of w.getModels())p(r)}});const n=()=>{for(const r of w.getModels())p(r),l(r)};this._disposables.push(this._defaults.onDidChange(n)),this._disposables.push(this._defaults.onDidExtraLibsChange(n)),w.getModels().forEach(r=>l(r))}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables=[]}async _doValidate(e){const t=await this._worker(e.uri);if(e.isDisposed())return;const o=[],{noSyntaxValidation:i,noSemanticValidation:l,noSuggestionDiagnostics:p}=this._defaults.getDiagnosticsOptions();i||o.push(t.getSyntacticDiagnostics(e.uri.toString())),l||o.push(t.getSemanticDiagnostics(e.uri.toString())),p||o.push(t.getSuggestionDiagnostics(e.uri.toString()));const n=await Promise.all(o);if(!n||e.isDisposed())return;const r=n.reduce((d,g)=>g.concat(d),[]).filter(d=>(this._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore||[]).indexOf(d.code)===-1),u=r.map(d=>d.relatedInformation||[]).reduce((d,g)=>g.concat(d),[]).map(d=>d.file?F.parse(d.file.fileName):null);await this._libFiles.fetchLibFilesIfNecessary(u),!e.isDisposed()&&w.setModelMarkers(e,this._selector,r.map(d=>this._convertDiagnostics(e,d)))}_convertDiagnostics(e,t){const o=t.start||0,i=t.length||1,{lineNumber:l,column:p}=e.getPositionAt(o),{lineNumber:n,column:r}=e.getPositionAt(o+i),u=[];return t.reportsUnnecessary&&u.push(P.Unnecessary),t.reportsDeprecated&&u.push(P.Deprecated),{severity:this._tsDiagnosticCategoryToMarkerSeverity(t.category),startLineNumber:l,startColumn:p,endLineNumber:n,endColumn:r,message:A(t.messageText,`
1
+ import{j7 as w,j8 as F,j9 as P,ja as v,l as f,jb as O}from"./WorkspaceMonacoEditor-0trp0-TI.js";import"./toggleHighContrast-CC73mtvA.js";import{c as K}from"./workers-C_adgrEg.js";import{typescriptDefaults as M}from"./monaco.contribution-CIjjzpUR.js";import"./index-D7Vr3zcV.js";class E{constructor(e,t){this._modeId=e,this._defaults=t,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker()),this._updateExtraLibsToken=0,this._extraLibsChangeListener=this._defaults.onDidExtraLibsChange(()=>this._updateExtraLibs())}dispose(){this._configChangeListener.dispose(),this._extraLibsChangeListener.dispose(),this._stopWorker()}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}async _updateExtraLibs(){if(!this._worker)return;const e=++this._updateExtraLibsToken,t=await this._worker.getProxy();this._updateExtraLibsToken===e&&t.updateExtraLibs(this._defaults.getExtraLibs())}_getClient(){return this._client||(this._client=(async()=>(this._worker=K({moduleId:"vs/language/typescript/tsWorker",createWorker:()=>new Worker(new URL(""+new URL("ts.worker-BH9nVgjN.js",import.meta.url).href,import.meta.url),{type:"module"}),label:this._modeId,keepIdleModels:!0,createData:{compilerOptions:this._defaults.getCompilerOptions(),extraLibs:this._defaults.getExtraLibs(),customWorkerPath:this._defaults.workerOptions.customWorkerPath,inlayHintsOptions:this._defaults.inlayHintsOptions}}),this._defaults.getEagerModelSync()?await this._worker.withSyncedResources(w.getModels().filter(e=>e.getLanguageId()===this._modeId).map(e=>e.uri)):await this._worker.getProxy()))()),this._client}async getLanguageServiceWorker(...e){const t=await this._getClient();return this._worker&&await this._worker.withSyncedResources(e),t}}const s={};s["lib.d.ts"]=!0;s["lib.decorators.d.ts"]=!0;s["lib.decorators.legacy.d.ts"]=!0;s["lib.dom.asynciterable.d.ts"]=!0;s["lib.dom.d.ts"]=!0;s["lib.dom.iterable.d.ts"]=!0;s["lib.es2015.collection.d.ts"]=!0;s["lib.es2015.core.d.ts"]=!0;s["lib.es2015.d.ts"]=!0;s["lib.es2015.generator.d.ts"]=!0;s["lib.es2015.iterable.d.ts"]=!0;s["lib.es2015.promise.d.ts"]=!0;s["lib.es2015.proxy.d.ts"]=!0;s["lib.es2015.reflect.d.ts"]=!0;s["lib.es2015.symbol.d.ts"]=!0;s["lib.es2015.symbol.wellknown.d.ts"]=!0;s["lib.es2016.array.include.d.ts"]=!0;s["lib.es2016.d.ts"]=!0;s["lib.es2016.full.d.ts"]=!0;s["lib.es2016.intl.d.ts"]=!0;s["lib.es2017.arraybuffer.d.ts"]=!0;s["lib.es2017.d.ts"]=!0;s["lib.es2017.date.d.ts"]=!0;s["lib.es2017.full.d.ts"]=!0;s["lib.es2017.intl.d.ts"]=!0;s["lib.es2017.object.d.ts"]=!0;s["lib.es2017.sharedmemory.d.ts"]=!0;s["lib.es2017.string.d.ts"]=!0;s["lib.es2017.typedarrays.d.ts"]=!0;s["lib.es2018.asyncgenerator.d.ts"]=!0;s["lib.es2018.asynciterable.d.ts"]=!0;s["lib.es2018.d.ts"]=!0;s["lib.es2018.full.d.ts"]=!0;s["lib.es2018.intl.d.ts"]=!0;s["lib.es2018.promise.d.ts"]=!0;s["lib.es2018.regexp.d.ts"]=!0;s["lib.es2019.array.d.ts"]=!0;s["lib.es2019.d.ts"]=!0;s["lib.es2019.full.d.ts"]=!0;s["lib.es2019.intl.d.ts"]=!0;s["lib.es2019.object.d.ts"]=!0;s["lib.es2019.string.d.ts"]=!0;s["lib.es2019.symbol.d.ts"]=!0;s["lib.es2020.bigint.d.ts"]=!0;s["lib.es2020.d.ts"]=!0;s["lib.es2020.date.d.ts"]=!0;s["lib.es2020.full.d.ts"]=!0;s["lib.es2020.intl.d.ts"]=!0;s["lib.es2020.number.d.ts"]=!0;s["lib.es2020.promise.d.ts"]=!0;s["lib.es2020.sharedmemory.d.ts"]=!0;s["lib.es2020.string.d.ts"]=!0;s["lib.es2020.symbol.wellknown.d.ts"]=!0;s["lib.es2021.d.ts"]=!0;s["lib.es2021.full.d.ts"]=!0;s["lib.es2021.intl.d.ts"]=!0;s["lib.es2021.promise.d.ts"]=!0;s["lib.es2021.string.d.ts"]=!0;s["lib.es2021.weakref.d.ts"]=!0;s["lib.es2022.array.d.ts"]=!0;s["lib.es2022.d.ts"]=!0;s["lib.es2022.error.d.ts"]=!0;s["lib.es2022.full.d.ts"]=!0;s["lib.es2022.intl.d.ts"]=!0;s["lib.es2022.object.d.ts"]=!0;s["lib.es2022.regexp.d.ts"]=!0;s["lib.es2022.string.d.ts"]=!0;s["lib.es2023.array.d.ts"]=!0;s["lib.es2023.collection.d.ts"]=!0;s["lib.es2023.d.ts"]=!0;s["lib.es2023.full.d.ts"]=!0;s["lib.es2023.intl.d.ts"]=!0;s["lib.es2024.arraybuffer.d.ts"]=!0;s["lib.es2024.collection.d.ts"]=!0;s["lib.es2024.d.ts"]=!0;s["lib.es2024.full.d.ts"]=!0;s["lib.es2024.object.d.ts"]=!0;s["lib.es2024.promise.d.ts"]=!0;s["lib.es2024.regexp.d.ts"]=!0;s["lib.es2024.sharedmemory.d.ts"]=!0;s["lib.es2024.string.d.ts"]=!0;s["lib.es5.d.ts"]=!0;s["lib.es6.d.ts"]=!0;s["lib.esnext.array.d.ts"]=!0;s["lib.esnext.collection.d.ts"]=!0;s["lib.esnext.d.ts"]=!0;s["lib.esnext.decorators.d.ts"]=!0;s["lib.esnext.disposable.d.ts"]=!0;s["lib.esnext.error.d.ts"]=!0;s["lib.esnext.float16.d.ts"]=!0;s["lib.esnext.full.d.ts"]=!0;s["lib.esnext.intl.d.ts"]=!0;s["lib.esnext.iterator.d.ts"]=!0;s["lib.esnext.promise.d.ts"]=!0;s["lib.esnext.sharedmemory.d.ts"]=!0;s["lib.scripthost.d.ts"]=!0;s["lib.webworker.asynciterable.d.ts"]=!0;s["lib.webworker.d.ts"]=!0;s["lib.webworker.importscripts.d.ts"]=!0;s["lib.webworker.iterable.d.ts"]=!0;function A(c,e,t=0){if(typeof c=="string")return c;if(c===void 0)return"";let o="";if(t){o+=e;for(let i=0;i<t;i++)o+=" "}if(o+=c.messageText,t++,c.next)for(const i of c.next)o+=A(i,e,t);return o}function _(c){return c?c.map(e=>e.text).join(""):""}class y{constructor(e){this._worker=e}_textSpanToRange(e,t){let o=e.getPositionAt(t.start),i=e.getPositionAt(t.start+t.length),{lineNumber:l,column:p}=o,{lineNumber:n,column:r}=i;return{startLineNumber:l,startColumn:p,endLineNumber:n,endColumn:r}}}class H{constructor(e){this._worker=e,this._libFiles={},this._hasFetchedLibFiles=!1,this._fetchLibFilesPromise=null}isLibFile(e){return e&&e.path.indexOf("/lib.")===0?!!s[e.path.slice(1)]:!1}getOrCreateModel(e){const t=F.parse(e),o=w.getModel(t);if(o)return o;if(this.isLibFile(t)&&this._hasFetchedLibFiles)return w.createModel(this._libFiles[t.path.slice(1)],"typescript",t);const i=M.getExtraLibs()[e];return i?w.createModel(i.content,"typescript",t):null}_containsLibFile(e){for(let t of e)if(this.isLibFile(t))return!0;return!1}async fetchLibFilesIfNecessary(e){this._containsLibFile(e)&&await this._fetchLibFiles()}_fetchLibFiles(){return this._fetchLibFilesPromise||(this._fetchLibFilesPromise=this._worker().then(e=>e.getLibFiles()).then(e=>{this._hasFetchedLibFiles=!0,this._libFiles=e})),this._fetchLibFilesPromise}}class V extends y{constructor(e,t,o,i){super(i),this._libFiles=e,this._defaults=t,this._selector=o,this._disposables=[],this._listener=Object.create(null);const l=r=>{if(r.getLanguageId()!==o)return;const u=()=>{const{onlyVisible:h}=this._defaults.getDiagnosticsOptions();h?r.isAttachedToEditor()&&this._doValidate(r):this._doValidate(r)};let d;const g=r.onDidChangeContent(()=>{clearTimeout(d),d=window.setTimeout(u,500)}),b=r.onDidChangeAttached(()=>{const{onlyVisible:h}=this._defaults.getDiagnosticsOptions();h&&(r.isAttachedToEditor()?u():w.setModelMarkers(r,this._selector,[]))});this._listener[r.uri.toString()]={dispose(){g.dispose(),b.dispose(),clearTimeout(d)}},u()},p=r=>{w.setModelMarkers(r,this._selector,[]);const u=r.uri.toString();this._listener[u]&&(this._listener[u].dispose(),delete this._listener[u])};this._disposables.push(w.onDidCreateModel(r=>l(r))),this._disposables.push(w.onWillDisposeModel(p)),this._disposables.push(w.onDidChangeModelLanguage(r=>{p(r.model),l(r.model)})),this._disposables.push({dispose(){for(const r of w.getModels())p(r)}});const n=()=>{for(const r of w.getModels())p(r),l(r)};this._disposables.push(this._defaults.onDidChange(n)),this._disposables.push(this._defaults.onDidExtraLibsChange(n)),w.getModels().forEach(r=>l(r))}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables=[]}async _doValidate(e){const t=await this._worker(e.uri);if(e.isDisposed())return;const o=[],{noSyntaxValidation:i,noSemanticValidation:l,noSuggestionDiagnostics:p}=this._defaults.getDiagnosticsOptions();i||o.push(t.getSyntacticDiagnostics(e.uri.toString())),l||o.push(t.getSemanticDiagnostics(e.uri.toString())),p||o.push(t.getSuggestionDiagnostics(e.uri.toString()));const n=await Promise.all(o);if(!n||e.isDisposed())return;const r=n.reduce((d,g)=>g.concat(d),[]).filter(d=>(this._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore||[]).indexOf(d.code)===-1),u=r.map(d=>d.relatedInformation||[]).reduce((d,g)=>g.concat(d),[]).map(d=>d.file?F.parse(d.file.fileName):null);await this._libFiles.fetchLibFilesIfNecessary(u),!e.isDisposed()&&w.setModelMarkers(e,this._selector,r.map(d=>this._convertDiagnostics(e,d)))}_convertDiagnostics(e,t){const o=t.start||0,i=t.length||1,{lineNumber:l,column:p}=e.getPositionAt(o),{lineNumber:n,column:r}=e.getPositionAt(o+i),u=[];return t.reportsUnnecessary&&u.push(P.Unnecessary),t.reportsDeprecated&&u.push(P.Deprecated),{severity:this._tsDiagnosticCategoryToMarkerSeverity(t.category),startLineNumber:l,startColumn:p,endLineNumber:n,endColumn:r,message:A(t.messageText,`
2
2
  `),code:t.code.toString(),tags:u,relatedInformation:this._convertRelatedInformation(e,t.relatedInformation)}}_convertRelatedInformation(e,t){if(!t)return[];const o=[];return t.forEach(i=>{let l=e;if(i.file&&(l=this._libFiles.getOrCreateModel(i.file.fileName)),!l)return;const p=i.start||0,n=i.length||1,{lineNumber:r,column:u}=l.getPositionAt(p),{lineNumber:d,column:g}=l.getPositionAt(p+n);o.push({resource:l.uri,startLineNumber:r,startColumn:u,endLineNumber:d,endColumn:g,message:A(i.messageText,`
3
3
  `)})}),o}_tsDiagnosticCategoryToMarkerSeverity(e){switch(e){case 1:return v.Error;case 3:return v.Info;case 0:return v.Warning;case 2:return v.Hint}return v.Info}}class C extends y{get triggerCharacters(){return["."]}async provideCompletionItems(e,t,o,i){const l=e.getWordUntilPosition(t),p=new O(t.lineNumber,l.startColumn,t.lineNumber,l.endColumn),n=e.uri,r=e.getOffsetAt(t),u=await this._worker(n);if(e.isDisposed())return;const d=await u.getCompletionsAtPosition(n.toString(),r);return!d||e.isDisposed()?void 0:{suggestions:d.entries.map(b=>{let h=p;if(b.replacementSpan){const x=e.getPositionAt(b.replacementSpan.start),D=e.getPositionAt(b.replacementSpan.start+b.replacementSpan.length);h=new O(x.lineNumber,x.column,D.lineNumber,D.column)}const k=[];return b.kindModifiers!==void 0&&b.kindModifiers.indexOf("deprecated")!==-1&&k.push(f.CompletionItemTag.Deprecated),{uri:n,position:t,offset:r,range:h,label:b.name,insertText:b.name,sortText:b.sortText,kind:C.convertKind(b.kind),tags:k}})}}async resolveCompletionItem(e,t){const o=e,i=o.uri,l=o.position,p=o.offset,r=await(await this._worker(i)).getCompletionEntryDetails(i.toString(),p,o.label);return r?{uri:i,position:l,label:r.name,kind:C.convertKind(r.kind),detail:_(r.displayParts),documentation:{value:C.createDocumentationString(r)}}:o}static convertKind(e){switch(e){case a.primitiveType:case a.keyword:return f.CompletionItemKind.Keyword;case a.variable:case a.localVariable:return f.CompletionItemKind.Variable;case a.memberVariable:case a.memberGetAccessor:case a.memberSetAccessor:return f.CompletionItemKind.Field;case a.function:case a.memberFunction:case a.constructSignature:case a.callSignature:case a.indexSignature:return f.CompletionItemKind.Function;case a.enum:return f.CompletionItemKind.Enum;case a.module:return f.CompletionItemKind.Module;case a.class:return f.CompletionItemKind.Class;case a.interface:return f.CompletionItemKind.Interface;case a.warning:return f.CompletionItemKind.File}return f.CompletionItemKind.Property}static createDocumentationString(e){let t=_(e.documentation);if(e.tags)for(const o of e.tags)t+=`
4
4
 
@@ -1 +1 @@
1
- import{d as a}from"./index-CU2qhUYV.js";const e=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],d=a("bell",e);const t=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],k=a("scroll-text",t);const h=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],c=a("wifi-off",h);export{d as B,k as S,c as W};
1
+ import{d as a}from"./index-D7Vr3zcV.js";const e=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],d=a("bell",e);const t=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],k=a("scroll-text",t);const h=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],c=a("wifi-off",h);export{d as B,k as S,c as W};
@@ -1 +1 @@
1
- import{j7 as c}from"./WorkspaceMonacoEditor-BBqimG5X.js";import"./toggleHighContrast-DRjlcwes.js";function a(e,o){const r=globalThis.MonacoEnvironment;if(r?.createTrustedTypesPolicy)try{return r.createTrustedTypesPolicy(e,o)}catch(t){console.error(t);return}try{return globalThis.trustedTypes?.createPolicy(e,o)}catch(t){console.error(t);return}}let n;typeof self=="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope"&&globalThis.workerttPolicy!==void 0?n=globalThis.workerttPolicy:n=a("defaultWorkerFactory",{createScriptURL:e=>e});function l(e){const o=e.label,r=globalThis.MonacoEnvironment;if(r){if(typeof r.getWorker=="function")return r.getWorker("workerMain.js",o);if(typeof r.getWorkerUrl=="function"){const t=r.getWorkerUrl("workerMain.js",o);return new Worker(n?n.createScriptURL(t):t,{name:o,type:"module"})}}if(e.createWorker)return e.createWorker();throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function u(e){const o=Promise.resolve(l({label:e.label??"monaco-editor-worker",moduleId:e.moduleId,createWorker:e.createWorker})).then(r=>(r.postMessage("ignore"),r.postMessage(e.createData),r));return c.createWebWorker({worker:o,host:e.host,keepIdleModels:e.keepIdleModels})}export{u as c};
1
+ import{j7 as c}from"./WorkspaceMonacoEditor-0trp0-TI.js";import"./toggleHighContrast-CC73mtvA.js";function a(e,o){const r=globalThis.MonacoEnvironment;if(r?.createTrustedTypesPolicy)try{return r.createTrustedTypesPolicy(e,o)}catch(t){console.error(t);return}try{return globalThis.trustedTypes?.createPolicy(e,o)}catch(t){console.error(t);return}}let n;typeof self=="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope"&&globalThis.workerttPolicy!==void 0?n=globalThis.workerttPolicy:n=a("defaultWorkerFactory",{createScriptURL:e=>e});function l(e){const o=e.label,r=globalThis.MonacoEnvironment;if(r){if(typeof r.getWorker=="function")return r.getWorker("workerMain.js",o);if(typeof r.getWorkerUrl=="function"){const t=r.getWorkerUrl("workerMain.js",o);return new Worker(n?n.createScriptURL(t):t,{name:o,type:"module"})}}if(e.createWorker)return e.createWorker();throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function u(e){const o=Promise.resolve(l({label:e.label??"monaco-editor-worker",moduleId:e.moduleId,createWorker:e.createWorker})).then(r=>(r.postMessage("ignore"),r.postMessage(e.createData),r));return c.createWebWorker({worker:o,host:e.host,keepIdleModels:e.keepIdleModels})}export{u as c};
@@ -1 +1 @@
1
- import{l as e}from"./WorkspaceMonacoEditor-BBqimG5X.js";import"./toggleHighContrast-DRjlcwes.js";import"./index-CU2qhUYV.js";const r={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!0},onEnterRules:[{beforeText:/:\s*$/,action:{indentAction:e.IndentAction.Indent}}]},l={tokenPostfix:".yaml",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["true","True","TRUE","false","False","FALSE","null","Null","Null","~"],numberInteger:/(?:0|[+-]?[0-9]+)/,numberFloat:/(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,numberOctal:/0o[0-7]+/,numberHex:/0x[0-9a-fA-F]+/,numberInfinity:/[+-]?\.(?:inf|Inf|INF)/,numberNaN:/\.(?:nan|Nan|NAN)/,numberDate:/\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/%[^ ]+.*$/,"meta.directive"],[/---/,"operators.directivesEnd"],[/\.{3}/,"operators.documentEnd"],[/[-?:](?= )/,"operators"],{include:"@anchor"},{include:"@tagHandle"},{include:"@flowCollections"},{include:"@blockStyle"},[/@numberInteger(?![ \t]*\S+)/,"number"],[/@numberFloat(?![ \t]*\S+)/,"number.float"],[/@numberOctal(?![ \t]*\S+)/,"number.octal"],[/@numberHex(?![ \t]*\S+)/,"number.hex"],[/@numberInfinity(?![ \t]*\S+)/,"number.infinity"],[/@numberNaN(?![ \t]*\S+)/,"number.nan"],[/@numberDate(?![ \t]*\S+)/,"number.date"],[/(".*?"|'.*?'|[^#'"]*?)([ \t]*)(:)( |$)/,["type","white","operators","white"]],{include:"@flowScalars"},[/.+?(?=(\s+#|$))/,{cases:{"@keywords":"keyword","@default":"string"}}]],object:[{include:"@whitespace"},{include:"@comment"},[/\}/,"@brackets","@pop"],[/,/,"delimiter.comma"],[/:(?= )/,"operators"],[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/,"type"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\},]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],array:[{include:"@whitespace"},{include:"@comment"},[/\]/,"@brackets","@pop"],[/,/,"delimiter.comma"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\],]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],multiString:[[/^( +).+$/,"string","@multiStringContinued.$1"]],multiStringContinued:[[/^( *).+$/,{cases:{"$1==$S2":"string","@default":{token:"@rematch",next:"@popall"}}}]],whitespace:[[/[ \t\r\n]+/,"white"]],comment:[[/#.*$/,"comment"]],flowCollections:[[/\[/,"@brackets","@array"],[/\{/,"@brackets","@object"]],flowScalars:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'[^']*'/,"string"],[/"/,"string","@doubleQuotedString"]],doubleQuotedString:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],blockStyle:[[/[>|][0-9]*[+-]?$/,"operators","@multiString"]],flowNumber:[[/@numberInteger(?=[ \t]*[,\]\}])/,"number"],[/@numberFloat(?=[ \t]*[,\]\}])/,"number.float"],[/@numberOctal(?=[ \t]*[,\]\}])/,"number.octal"],[/@numberHex(?=[ \t]*[,\]\}])/,"number.hex"],[/@numberInfinity(?=[ \t]*[,\]\}])/,"number.infinity"],[/@numberNaN(?=[ \t]*[,\]\}])/,"number.nan"],[/@numberDate(?=[ \t]*[,\]\}])/,"number.date"]],tagHandle:[[/\![^ ]*/,"tag"]],anchor:[[/[&*][^ ]+/,"namespace"]]}};export{r as conf,l as language};
1
+ import{l as e}from"./WorkspaceMonacoEditor-0trp0-TI.js";import"./toggleHighContrast-CC73mtvA.js";import"./index-D7Vr3zcV.js";const r={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!0},onEnterRules:[{beforeText:/:\s*$/,action:{indentAction:e.IndentAction.Indent}}]},l={tokenPostfix:".yaml",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["true","True","TRUE","false","False","FALSE","null","Null","Null","~"],numberInteger:/(?:0|[+-]?[0-9]+)/,numberFloat:/(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,numberOctal:/0o[0-7]+/,numberHex:/0x[0-9a-fA-F]+/,numberInfinity:/[+-]?\.(?:inf|Inf|INF)/,numberNaN:/\.(?:nan|Nan|NAN)/,numberDate:/\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/%[^ ]+.*$/,"meta.directive"],[/---/,"operators.directivesEnd"],[/\.{3}/,"operators.documentEnd"],[/[-?:](?= )/,"operators"],{include:"@anchor"},{include:"@tagHandle"},{include:"@flowCollections"},{include:"@blockStyle"},[/@numberInteger(?![ \t]*\S+)/,"number"],[/@numberFloat(?![ \t]*\S+)/,"number.float"],[/@numberOctal(?![ \t]*\S+)/,"number.octal"],[/@numberHex(?![ \t]*\S+)/,"number.hex"],[/@numberInfinity(?![ \t]*\S+)/,"number.infinity"],[/@numberNaN(?![ \t]*\S+)/,"number.nan"],[/@numberDate(?![ \t]*\S+)/,"number.date"],[/(".*?"|'.*?'|[^#'"]*?)([ \t]*)(:)( |$)/,["type","white","operators","white"]],{include:"@flowScalars"},[/.+?(?=(\s+#|$))/,{cases:{"@keywords":"keyword","@default":"string"}}]],object:[{include:"@whitespace"},{include:"@comment"},[/\}/,"@brackets","@pop"],[/,/,"delimiter.comma"],[/:(?= )/,"operators"],[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/,"type"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\},]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],array:[{include:"@whitespace"},{include:"@comment"},[/\]/,"@brackets","@pop"],[/,/,"delimiter.comma"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\],]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],multiString:[[/^( +).+$/,"string","@multiStringContinued.$1"]],multiStringContinued:[[/^( *).+$/,{cases:{"$1==$S2":"string","@default":{token:"@rematch",next:"@popall"}}}]],whitespace:[[/[ \t\r\n]+/,"white"]],comment:[[/#.*$/,"comment"]],flowCollections:[[/\[/,"@brackets","@array"],[/\{/,"@brackets","@object"]],flowScalars:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'[^']*'/,"string"],[/"/,"string","@doubleQuotedString"]],doubleQuotedString:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],blockStyle:[[/[>|][0-9]*[+-]?$/,"operators","@multiString"]],flowNumber:[[/@numberInteger(?=[ \t]*[,\]\}])/,"number"],[/@numberFloat(?=[ \t]*[,\]\}])/,"number.float"],[/@numberOctal(?=[ \t]*[,\]\}])/,"number.octal"],[/@numberHex(?=[ \t]*[,\]\}])/,"number.hex"],[/@numberInfinity(?=[ \t]*[,\]\}])/,"number.infinity"],[/@numberNaN(?=[ \t]*[,\]\}])/,"number.nan"],[/@numberDate(?=[ \t]*[,\]\}])/,"number.date"]],tagHandle:[[/\![^ ]*/,"tag"]],anchor:[[/[&*][^ ]+/,"namespace"]]}};export{r as conf,l as language};
@@ -7,8 +7,8 @@
7
7
  <link rel="icon" type="image/png" sizes="16x16" href="./favicon-16x16.png" />
8
8
  <link rel="apple-touch-icon" href="./openpond-icon.png" />
9
9
  <title>OpenPond App</title>
10
- <script type="module" crossorigin src="./assets/index-CU2qhUYV.js"></script>
11
- <link rel="stylesheet" crossorigin href="./assets/index-BdY6A-YN.css">
10
+ <script type="module" crossorigin src="./assets/index-D7Vr3zcV.js"></script>
11
+ <link rel="stylesheet" crossorigin href="./assets/index-8H-GDlM5.css">
12
12
  </head>
13
13
  <body>
14
14
  <div id="root"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openpond",
3
- "version": "0.0.30",
3
+ "version": "0.0.32",
4
4
  "openpondReleaseVersioned": true,
5
5
  "license": "MIT",
6
6
  "description": "OpenPond CLI and local harness",
@@ -1 +0,0 @@
1
- import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
@@ -1 +0,0 @@
1
- import{r as u,a8 as ye,j as e,U as Ne,b as I,ap as ee,h as H,b8 as ne,b9 as se,D as te,A as ke,ba as Pe,S as Se,K as le,aB as F,aC as Ae,X as we,bb as ae,bc as Re,bd as Te}from"./index-CU2qhUYV.js";import{P as _e}from"./play-CeRw21NV.js";function ze(n,t){return t==="archive"?!!n.archivedAt:t==="reviews"?n.status==="needs_review":!n.archivedAt}function $e(n){return n==="backlog"?"Task":n==="needs_review"?"Review":n.replace(/_/g," ")}function Me(n,t){const a=n.get(t);return a?.organizationName?`${a.organizationName} / ${a.name}`:a?.name??"Cloud Project"}function Oe(n){const t=n.filter(a=>!ie(a));return t.find(a=>a.role==="user")??t[0]??null}function ie(n){return n.metadata.source==="openpond_app_cloud_create_pipeline_link"||n.metadata.hidden===!0}function Ee(n){return n.adapter.kind==="local"?"Local profile":n.adapter.kind==="promote_local_to_hosted"?"Local to hosted":"Hosted profile"}function Le(n){return n?.plan?.checks?.length?n.plan.checks.map(t=>({name:t.name,command:t.command})):[{name:"inspect",command:"pnpm agent:inspect"},{name:"build",command:"pnpm build"},{name:"validate",command:"pnpm agent:validate"},{name:"eval",command:"pnpm agent:eval"}]}function De(n){return n?.plan?.requirements?.map(t=>({name:t.name,detail:[t.kind.replace(/_/g," "),t.status,t.detail].filter(Boolean).join(" / ")}))??[]}function He(n){const t=n?.workflowCapture;return t?[{name:"Actions",values:t.profileActions},{name:"Providers",values:t.externalProviders},{name:"Side effects",values:t.sideEffects},{name:"Files",values:t.files},{name:"Artifacts",values:t.outputArtifacts},{name:"Traces",values:t.traceRefs},{name:"Channels",values:t.channelTargets}].flatMap(({name:a,values:d})=>d.length?[{name:a,detail:d.join(", ")}]:[]):[]}function Fe(n,t){if(t?.plan?.sourcePlan?.length)return t.plan.sourcePlan;const a=n.operation==="edit"?"update":"create",d=n.targetAgent.agentId??Re(n.objective);return[{path:Te(d),operation:a,reason:n.objective},{path:"settings/profile.yaml",operation:"update",reason:"Expose the default chat action through the hosted profile catalog."}]}function Ke({workItem:n,detail:t,actionBusy:a,localProjectName:d,onApplyLocalPatch:x,onShowFiles:c}){const j=Xe(n,t),o=n.status==="needs_review"&&!!(d&&x);return e.jsxs("article",{className:"cloud-work-boundary-strip",children:[e.jsxs("div",{children:[e.jsx("span",{children:Ve(n)}),e.jsx("small",{children:Ue(n)})]}),e.jsx("div",{className:"cloud-work-boundary-chips",children:j.map(m=>e.jsx("span",{children:m},m))}),n.status==="needs_review"?e.jsxs("button",{type:"button",onClick:()=>{x&&x()},disabled:a||!o,title:o?`Apply to ${d}`:"Link this Cloud Project to a local checkout before applying locally.",children:[e.jsx(le,{size:13}),e.jsx("span",{children:o?"Apply locally":"No local checkout"})]}):null,c?e.jsxs("button",{type:"button",onClick:c,children:[e.jsx(F,{size:13}),e.jsx("span",{children:"Files"})]}):null]})}function Ve(n){return n.status==="needs_review"?"Cloud patch ready":n.status==="queued"||n.status==="running"?"Running in Cloud":n.status==="failed"?"Cloud task failed":"Cloud task"}function Ue(n){return n.status==="needs_review"?"Review files and apply locally only when ready.":n.status==="queued"||n.status==="running"?"The local checkout is unchanged while the sandbox works.":n.status==="failed"?"Open files/logs to inspect the remote run before retrying.":"Cloud changes stay remote until an explicit apply or pull action."}function Xe(n,t){const a=[n.status.replace(/_/g," ")];return n.sourceRef&&a.push(n.sourceRef),n.latestSandboxId&&a.push("sandbox"),n.latestTaskRunId&&a.push("task run"),t?.activity.length&&a.push(`${t.activity.length} log${t.activity.length===1?"":"s"}`),n.status==="needs_review"&&a.push("patch only"),a.push("local unchanged"),a}function Ge({request:n,snapshot:t,actionBusy:a,onApprove:d,onEdit:x,onCancel:c}){const j=t?.state??"awaiting_plan_approval",o=t?.plan??null,m=Le(t),v=De(t),y=He(t),k=Fe(n,t),h=Ae(o?.metadata),P=n.scope.targetProject?.name??n.scope.targetProject?.id??"Profile source",S=!!o&&j==="awaiting_plan_approval"&&(o?.status==="draft"||o?.status==="pending_approval"),A=(j==="planning"||j==="awaiting_plan_approval")&&(o?.status==="draft"||o?.status==="pending_approval");return e.jsxs("article",{className:"cloud-create-plan-review",children:[e.jsxs("div",{className:"cloud-create-plan-heading",children:[e.jsx(F,{size:16}),e.jsxs("div",{children:[e.jsx("span",{children:"Agent plan review"}),e.jsxs("small",{children:[n.operation," / ",Ee(n)," / ",j.replace(/_/g," ")]})]})]}),e.jsxs("div",{className:"cloud-create-plan-copy",children:[e.jsxs("section",{children:[e.jsx("span",{children:"Objective"}),e.jsx("p",{children:n.objective})]}),e.jsxs("section",{children:[e.jsx("span",{children:"Target"}),e.jsx("p",{children:P})]}),o?.capturedContextSummary?e.jsxs("section",{children:[e.jsx("span",{children:"Captured context"}),e.jsx("p",{children:o.capturedContextSummary})]}):n.context.targetRepoAssumptions.length?e.jsxs("section",{children:[e.jsx("span",{children:"Captured context"}),e.jsx("p",{children:n.context.targetRepoAssumptions.join("; ")})]}):null,n.context.attachments.length?e.jsxs("section",{children:[e.jsx("span",{children:"Inputs"}),e.jsx("p",{children:n.context.attachments.map(l=>l.name).join(", ")})]}):null,n.context.apps.length?e.jsxs("section",{children:[e.jsx("span",{children:"Apps"}),e.jsx("p",{children:n.context.apps.map(l=>l.name).join(", ")})]}):null,n.context.tools.length?e.jsxs("section",{children:[e.jsx("span",{children:"Tools"}),e.jsx("p",{children:n.context.tools.map(l=>l.name).join(", ")})]}):null,h?e.jsxs("section",{children:[e.jsx("span",{children:"Action shape"}),e.jsxs("p",{children:[h.label,": ",h.detail]})]}):null]}),e.jsxs("div",{className:"cloud-create-plan-grid",children:[h?e.jsxs("section",{children:[e.jsx("span",{children:"Actions"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("code",{children:h.defaultActionKey??"chat"}),e.jsx("small",{children:h.label})]}),h.directActionHint?e.jsxs("li",{children:[e.jsx("code",{children:"direct action"}),e.jsx("small",{children:h.directActionHint})]}):null]})]}):null,e.jsxs("section",{children:[e.jsx("span",{children:"Source plan"}),e.jsx("ul",{children:k.map(l=>e.jsxs("li",{children:[e.jsx("code",{children:l.path}),e.jsx("small",{children:l.operation})]},`${l.operation}:${l.path}`))})]}),e.jsxs("section",{children:[e.jsx("span",{children:"Checks"}),e.jsx("ul",{children:m.map(l=>e.jsxs("li",{children:[e.jsx("code",{children:l.name}),e.jsx("small",{children:l.command})]},`${l.name}:${l.command}`))})]}),v.length?e.jsxs("section",{children:[e.jsx("span",{children:"Requirements"}),e.jsx("ul",{children:v.map(l=>e.jsxs("li",{children:[e.jsx("code",{children:l.name}),e.jsx("small",{children:l.detail})]},`${l.name}:${l.detail}`))})]}):null,y.length?e.jsxs("section",{children:[e.jsx("span",{children:"Workflow evidence"}),e.jsx("ul",{children:y.map(l=>e.jsxs("li",{children:[e.jsx("code",{children:l.name}),e.jsx("small",{children:l.detail})]},`${l.name}:${l.detail}`))})]}):null]}),e.jsxs("div",{className:"cloud-create-plan-actions",children:[e.jsxs("button",{type:"button",onClick:d,disabled:a||!S,children:[e.jsx(le,{size:14}),e.jsx("span",{children:"Confirm plan"})]}),e.jsxs("button",{type:"button",onClick:x,disabled:a||!A,children:[e.jsx(F,{size:14}),e.jsx("span",{children:"Edit plan"})]}),e.jsxs("button",{type:"button",onClick:c,disabled:a,children:[e.jsx(we,{size:14}),e.jsx("span",{children:"Cancel"})]})]})]})}function Ye({projects:n,workItems:t,selectedWorkItem:a,detail:d,loading:x,actionBusy:c,connection:j,error:o,model:m,showToast:v,onBack:y,onModelChange:k,onSetupCloudProject:h,onCreateWork:P,onSelectWorkItem:S,onSendMessage:A,onHandleBackground:l,onCancelCreatePlan:ce,onCancelTask:K,localProjectName:oe,onApplyLocalPatch:re,onShowFiles:w}){const[N,R]=u.useState(""),[b,g]=u.useState(""),V=u.useRef(null),T=u.useRef(null),[de,U]=u.useState(0),[ue,_]=u.useState(0),[X,z]=u.useState(!1),[G,J]=u.useState(!1),[C,$]=u.useState("tasks"),[M,pe]=u.useState(""),[Q,he]=u.useState(()=>n[0]?.id??""),O=u.useMemo(()=>new Map(n.map(s=>[s.id,s])),[n]),f=O.has(Q)?Q:n[0]?.id??"",xe=ye("openpond",m),je=u.useMemo(()=>n.length?n.map(s=>({value:s.id,label:s.organizationName?`${s.organizationName} / ${s.name}`:s.name,shortLabel:s.name,description:s.sourceLabel??s.defaultBranch??void 0})):[{value:"",label:"No Cloud Project"}],[n]),Y=u.useMemo(()=>{const s=M.trim().toLowerCase();return t.filter(r=>ze(r,C)?s?r.title.toLowerCase().includes(s):!0:!1)},[M,C,t]);async function Z(){const s=N.trim();!s||!f||c||(await P({projectId:f,prompt:s}),R(""),z(!1))}async function B(){const s=b.trim();!s||c||(await A(s),g(""))}async function me(){const s=b.trim();await l(s||null),g(""),J(!1)}function E(s){U(s.selectionStart??s.value.length)}function L(s){_(s.selectionStart??s.value.length)}function fe(s){const r=V.current,p=ae(N,s,r?.selectionStart??de);R(p.value),U(p.cursorIndex),window.requestAnimationFrame(()=>{r?.focus(),r?.setSelectionRange(p.cursorIndex,p.cursorIndex)})}function ve(s){const r=T.current,p=ae(b,s,r?.selectionStart??ue);g(p.value),_(p.cursorIndex),window.requestAnimationFrame(()=>{r?.focus(),r?.setSelectionRange(p.cursorIndex,p.cursorIndex)})}function be(){g(s=>s||"Revise plan: "),window.requestAnimationFrame(()=>{const s=T.current,r=s?.value.length??0;s?.focus(),s?.setSelectionRange(r,r),_(r)})}if(a){const s=d?.messages??[],r=d?.activity??[],p=d?.createPipelineRequest??a.createPipelineRequest??null,ge=d?.createPipeline??a.createPipeline??null,W=Oe(s),D=W?.body??a.title,Ce=O.get(a.projectId)??null,q=a.status==="queued"||a.status==="running";return e.jsxs("section",{className:"cloud-work-view thread",children:[e.jsx("div",{className:"cloud-thread-body",children:e.jsxs("div",{className:"cloud-thread-timeline",children:[e.jsxs("div",{className:"cloud-thread-inline-nav",children:[e.jsxs("button",{type:"button",onClick:y,children:[e.jsx(Ne,{size:15}),e.jsx("span",{children:"All tasks"})]}),e.jsx("span",{children:Ce?.name??"Cloud Project"}),a.sourceRef?e.jsx("span",{children:a.sourceRef}):null,w?e.jsx("button",{type:"button",onClick:w,children:e.jsx("span",{children:"Files"})}):null]}),D&&e.jsx("article",{className:"cloud-message user",children:e.jsx("p",{children:D})}),e.jsxs("div",{className:"cloud-worked-line",children:[e.jsx("span",{children:$e(a.status)}),e.jsx("span",{children:I(a.updatedAt)}),q&&e.jsxs("button",{type:"button",onClick:()=>{K()},disabled:c,children:[e.jsx(ee,{size:12}),e.jsx("span",{children:"Stop task"})]})]}),e.jsx(Ke,{workItem:a,detail:d,actionBusy:c,localProjectName:oe,onApplyLocalPatch:re,onShowFiles:w}),p?e.jsx(Ge,{request:p,snapshot:ge,actionBusy:c,onApprove:()=>{l(null)},onEdit:be,onCancel:()=>{ce()}}):null,s.filter(i=>i.id!==W?.id).filter(i=>!ie(i)).map(i=>e.jsx("article",{className:`cloud-message ${i.role}`,children:e.jsx("p",{children:i.body})},i.id)),r.map(i=>e.jsxs("article",{className:"cloud-activity",children:[e.jsx("span",{children:i.kind.replace(/_/g," ")}),e.jsx("p",{children:i.summary})]},i.id)),!x&&s.length===0&&r.length===0&&!D&&e.jsx("p",{className:"cloud-muted",children:"No messages yet."})]})}),e.jsxs("div",{className:"cloud-thread-composer",children:[e.jsx("button",{type:"button",className:`cloud-composer-plus ${G?"active":""}`,onClick:()=>J(i=>!i),title:"Cloud task options",children:e.jsx(H,{size:18})}),G&&e.jsxs("div",{className:"cloud-composer-options thread-options",children:[e.jsxs("button",{type:"button",onClick:()=>{me()},disabled:c,children:[e.jsx(_e,{size:14}),e.jsx("span",{children:"Handle in background"})]}),q&&e.jsxs("button",{type:"button",onClick:()=>{K()},disabled:c,children:[e.jsx(ee,{size:14}),e.jsx("span",{children:"Stop task"})]})]}),e.jsx("textarea",{ref:T,value:b,rows:1,placeholder:"Request changes or ask a question",onChange:i=>{g(i.target.value),L(i.currentTarget)},onClick:i=>L(i.currentTarget),onSelect:i=>L(i.currentTarget),onKeyDown:i=>{i.key==="Enter"&&!i.shiftKey&&(i.preventDefault(),B())}}),e.jsx(ne,{buttonClassName:"cloud-composer-mic-button",connection:j,disabled:c,iconSize:17,wrapperClassName:"cloud-composer-mic",showToast:v,onTranscript:ve}),e.jsx("button",{type:"button",className:"cloud-composer-submit",disabled:!b.trim()||c,onClick:()=>{B()},title:"Send",children:e.jsx(se,{size:17})})]}),o&&e.jsx("div",{className:"cloud-error",children:o})]})}return e.jsx("section",{className:"cloud-work-view home",children:e.jsxs("div",{className:"cloud-home-shell",children:[e.jsx("h1",{children:"What should we change next?"}),e.jsxs("div",{className:"cloud-home-composer",children:[e.jsx("textarea",{ref:V,value:N,rows:2,placeholder:"Describe a task",onChange:s=>{R(s.target.value),E(s.currentTarget)},onClick:s=>E(s.currentTarget),onSelect:s=>E(s.currentTarget),onKeyDown:s=>{s.key==="Enter"&&!s.shiftKey&&(s.preventDefault(),Z())}}),e.jsxs("div",{className:"cloud-home-composer-actions",children:[e.jsx("button",{type:"button",className:`cloud-composer-plus ${X?"active":""}`,onClick:()=>z(s=>!s),title:"Cloud task options",children:e.jsx(H,{size:18})}),e.jsxs("div",{className:"cloud-composer-selects",children:[e.jsx(te,{compact:!0,className:"cloud-project-select",disabled:c||n.length===0,label:"Cloud Project",options:je,placement:"top",value:f,onChange:he}),e.jsx(te,{compact:!0,className:"cloud-model-select",disabled:c,label:"Model",options:ke("openpond"),placement:"top",value:xe,onChange:k})]}),e.jsx(ne,{buttonClassName:"cloud-composer-mic-button",connection:j,disabled:c,iconSize:17,wrapperClassName:"cloud-composer-mic",showToast:v,onTranscript:fe}),e.jsx("button",{type:"button",className:"cloud-composer-submit",disabled:!N.trim()||!f||c,onClick:()=>{Z()},title:"Handle in background",children:e.jsx(se,{size:17})})]}),X&&e.jsxs("div",{className:"cloud-composer-options",children:[e.jsxs("button",{type:"button",onClick:()=>z(!1),disabled:c,children:[e.jsx(H,{size:14}),e.jsx("span",{children:"New task"})]}),e.jsxs("button",{type:"button",onClick:()=>h(f),disabled:!f||c,children:[e.jsx(Pe,{size:14}),e.jsx("span",{children:"Create environment"})]})]})]}),e.jsxs("div",{className:"cloud-task-list-toolbar",children:[e.jsxs("div",{className:"cloud-task-tabs",role:"tablist","aria-label":"Cloud tasks",children:[e.jsx("button",{type:"button",className:C==="tasks"?"active":"",onClick:()=>$("tasks"),children:"Tasks"}),e.jsx("button",{type:"button",className:C==="reviews"?"active":"",onClick:()=>$("reviews"),children:"Code reviews"}),e.jsx("button",{type:"button",className:C==="archive"?"active":"",onClick:()=>$("archive"),children:"Archive"})]}),e.jsxs("label",{className:"cloud-task-search",children:[e.jsx(Se,{size:17}),e.jsx("input",{value:M,placeholder:"Search",onChange:s=>pe(s.target.value)})]})]}),e.jsxs("div",{className:"cloud-task-list",children:[Y.map(s=>e.jsxs("button",{type:"button",className:"cloud-task-row",onClick:()=>S(s),children:[e.jsx("span",{children:s.title}),e.jsxs("small",{children:[I(s.updatedAt)," · ",Me(O,s.projectId)]})]},s.id)),!x&&Y.length===0&&e.jsx("p",{className:"cloud-empty",children:n.length?"No tasks yet":"Create or link a Cloud Project before starting a task"}),x&&e.jsx("p",{className:"cloud-empty",children:"Loading tasks..."})]}),o&&e.jsx("div",{className:"cloud-error",children:o})]})})}export{Ye as CloudWorkView};
@@ -1 +0,0 @@
1
- import{j as e,r as d,b4 as A,b6 as L,U as I,w as R,aG as M}from"./index-CU2qhUYV.js";import{P as D}from"./play-CeRw21NV.js";function _({accent:t,kind:s}){switch(s){case"goal-state":return e.jsx(r,{accent:t,children:e.jsx(x,{inputs:[{title:"Local goal",detail:"session state",tone:"state"},{title:"Hosted goal",detail:"work item state",tone:"hosted"}],center:{title:"Shared goal record",detail:"same lifecycle language",tone:"gate"},outputs:[{title:"objective",detail:"what success means"},{title:"evidence",detail:"files, checks, logs"},{title:"blockers",detail:"approval or setup"},{title:"completion",detail:"evidence-backed"}]})});case"goal-evidence":return e.jsx(r,{accent:t,children:e.jsx(H,{center:"evidence state",nodes:[{title:"Prompt",detail:"objective captured"},{title:"Tools",detail:"files, shell, apps"},{title:"Events",detail:"logs and checks",tone:"gate"},{title:"Review",detail:"approval state"}]})});case"goal-controls":return e.jsx(r,{accent:t,children:e.jsx(O,{})});case"goal-context":return e.jsx(r,{accent:t,children:e.jsx(x,{inputs:[{title:"Chat turns",detail:"requests and approvals"},{title:"Workspace",detail:"files and source refs",tone:"source"}],center:{title:"Goal context",detail:"inspectable record",tone:"gate"},outputs:[{title:"messages",detail:"conversation trace"},{title:"checks",detail:"command output"},{title:"resources",detail:"linked files"},{title:"approval notes",detail:"what changed"}]})});case"subagent-router":return e.jsx(r,{accent:t,children:e.jsx(B,{})});case"subagent-handoff":return e.jsx(r,{accent:t,children:e.jsx(K,{})});case"subagent-settings":return e.jsx(r,{accent:t,children:e.jsx(U,{})});case"create-plan":return e.jsx(r,{accent:t,children:e.jsx(y,{nodes:[{title:"Ask",detail:"short request"},{title:"Clarify",detail:"focused questions",tone:"warn"},{title:"Plan",detail:"agent/action shape"},{title:"Review gate",detail:"confirm before source",tone:"gate"}]})});case"source-tree":return e.jsx(r,{accent:t,children:e.jsx(k,{heading:"profiles/default",sourceRows:["agent/agent.ts","agent/actions/*","agent/evals/*"],artifactRows:["action-registry.json","inspect.json","validation.json"]})});case"check-stack":return e.jsx(r,{accent:t,children:e.jsx($,{})});case"catalog":return e.jsx(r,{accent:t,children:e.jsx(q,{})});case"edit-review":return e.jsx(r,{accent:t,children:e.jsx(F,{})});case"profile-source":return e.jsx(r,{accent:t,children:e.jsx(k,{heading:"openpond-profile",sourceRows:["openpond-profile.json","profiles/default/agent","profiles/default/settings"],artifactRows:["artifact-index.json","manifest.json","eval-results.json"]})});case"profile-sync":return e.jsx(r,{accent:t,children:e.jsx(W,{})});case"secret-boundary":return e.jsx(r,{accent:t,children:e.jsx(z,{})});case"dual-source":return e.jsx(r,{accent:t,children:e.jsx(V,{})});case"work-item":return e.jsx(r,{accent:t,children:e.jsx(J,{})});case"publish-snapshot":return e.jsx(r,{accent:t,children:e.jsx(Q,{})});case"setup-gate":return e.jsx(r,{accent:t,children:e.jsx(X,{})});case"insights-loop":return e.jsx(r,{accent:t,children:e.jsx(Y,{})});case"insights-list":return e.jsx(r,{accent:t,children:e.jsx(Z,{})});case"apps-grid":return e.jsx(r,{accent:t,children:e.jsx(ee,{})});case"channel-router":return e.jsx(r,{accent:t,children:e.jsx(te,{})});default:return e.jsx(r,{accent:t,children:e.jsx(y,{nodes:[{title:"Profile source",detail:"agent code",tone:"source"},{title:"Checks",detail:"inspect and eval",tone:"gate"},{title:"Catalog",detail:"available actions"}]})})}}function r({accent:t,children:s}){return e.jsxs("div",{className:`get-started-visual accent-${t}`,children:[e.jsx("div",{className:"get-started-visual-accent"}),e.jsx("div",{className:"get-started-visual-inner",children:e.jsx("div",{className:"get-started-diagram",children:s})})]})}function y({nodes:t}){return e.jsx("div",{className:"get-started-flow-graph",children:t.map((s,i)=>e.jsx(re,{isLast:i===t.length-1,children:e.jsx(a,{...s})},s.title))})}function H({center:t,nodes:s}){return e.jsxs("div",{className:"get-started-loop-graph",children:[e.jsx("div",{className:"get-started-loop-ring"}),e.jsxs("div",{className:"get-started-loop-center",children:[e.jsx("strong",{children:t}),e.jsx("span",{children:"updated each turn"})]}),s.map(i=>d.createElement(a,{...i,key:i.title}))]})}function O(){return e.jsxs("div",{className:"get-started-state-graph",children:[e.jsx(a,{title:"active",detail:"next continuation allowed",tone:"state"}),e.jsx(a,{title:"paused",detail:"user stopped the loop",tone:"warn"}),e.jsxs("div",{className:"get-started-state-core",children:[e.jsx("strong",{children:"runtime controls"}),e.jsx("span",{children:"pause, resume, clear, complete"})]}),e.jsx(a,{title:"blocked",detail:"needs input or setup",tone:"warn"}),e.jsx(a,{title:"complete",detail:"evidence-backed finish",tone:"gate"})]})}function x({center:t,inputs:s,outputs:i}){return e.jsxs("div",{className:"get-started-hub-graph",children:[e.jsx("div",{className:"get-started-node-stack",children:s.map(n=>d.createElement(a,{...n,key:n.title}))}),e.jsx(a,{...t,variant:"hub"}),e.jsx("div",{className:"get-started-node-stack compact",children:i.map(n=>d.createElement(a,{...n,key:n.title,variant:"compact"}))})]})}function k({artifactRows:t,heading:s,sourceRows:i}){return e.jsxs("div",{className:"get-started-contract-graph",children:[e.jsx(a,{title:s,detail:"profile source",tone:"source",children:e.jsx(g,{rows:i})}),e.jsx(u,{label:"generates"}),e.jsx(a,{title:".openpond artifacts",detail:"machine-readable contract",tone:"gate",children:e.jsx(g,{rows:t})}),e.jsx("div",{className:"get-started-consumer-strip",children:["app","CLI","checks","hosted"].map(n=>e.jsx("span",{children:n},n))})]})}function $(){return e.jsxs("div",{className:"get-started-gate-graph",children:[e.jsx(a,{title:"source change",detail:"candidate profile state",tone:"source"}),e.jsx("div",{className:"get-started-check-grid",children:[["inspect","passed"],["build","passed"],["validate","passed"],["eval","setup ready"]].map(([t,s])=>e.jsxs("div",{className:"get-started-check-cell",children:[e.jsx("strong",{children:t}),e.jsx("span",{children:s})]},t))}),e.jsx(a,{title:"activate",detail:"catalog can refresh",tone:"gate"})]})}function q(){return e.jsx(x,{inputs:[{title:"manifest",detail:"checked snapshot",tone:"gate"},{title:"setup state",detail:"ready or required",tone:"warn"}],center:{title:"Profile action catalog",detail:"generated menu",tone:"state"},outputs:[{title:"default.chat",detail:"local chat"},{title:"support.open-items",detail:"connected app"},{title:"release-notes.generate",detail:"hosted action"}]})}function F(){return e.jsxs("div",{className:"get-started-review-graph",children:[e.jsx(a,{title:"patch plan",detail:"what will change"}),e.jsx(u,{label:"edits"}),e.jsx(a,{title:"source diff",detail:"+ actions, evals, settings",tone:"source",children:e.jsx(g,{rows:["+ agent/actions/support.ts","+ agent/evals/support.eval.ts","~ settings/profile.yaml"]})}),e.jsx(u,{label:"checks"}),e.jsx(a,{title:"review gate",detail:"commit, push, publish",tone:"gate",children:e.jsx(g,{rows:["source diff","check output","setup rows"]})})]})}function B(){return e.jsx(x,{inputs:[{title:"Goal",detail:"objective + state",tone:"state"},{title:"OpenAI GPT-5.6",detail:"orchestration model",tone:"hosted"}],center:{title:"Main agent",detail:"routes sub agents",tone:"gate"},outputs:[{title:"GLM coding",detail:"copy-on-write edits"},{title:"Research sub agent",detail:"findings + refs"},{title:"Review sub agent",detail:"ranked findings"},{title:"Test sub agent",detail:"validation evidence"}]})}function K(){return e.jsxs("div",{className:"get-started-subagent-handoff-graph",children:[e.jsx(a,{title:"sub agent run",detail:"bounded assignment",tone:"hosted"}),e.jsx(u,{label:"send"}),e.jsx(a,{title:"sub agent message",detail:"short receipt + details",tone:"gate",children:e.jsx(g,{rows:["summary","message id","run id"]})}),e.jsx(u,{label:"wake"}),e.jsx(a,{title:"parent decides",detail:"reply, route, join, cancel",tone:"state"})]})}function U(){return e.jsxs("div",{className:"get-started-subagent-settings-graph",children:[e.jsx(a,{title:"default model",detail:"shared sub agent model",tone:"gate"}),e.jsx("div",{className:"get-started-subagent-role-table",children:[["coding","GLM","copy-on-write"],["research","OpenAI","read only"],["review","default","goal scoped"]].map(([t,s,i])=>e.jsxs("div",{className:"get-started-subagent-role-row",children:[e.jsx("strong",{children:t}),e.jsx("span",{children:s}),e.jsx("em",{children:i})]},t))}),e.jsx(a,{title:"limits",detail:"concurrency + token caps",tone:"warn"})]})}function W(){return e.jsxs("div",{className:"get-started-sync-graph",children:[e.jsx(a,{title:"local profile",detail:"source + checks",tone:"source"}),e.jsx(u,{label:"push"}),e.jsx(a,{title:"hosted profile ref",detail:"uploaded source",tone:"hosted"}),e.jsx(u,{label:"check"}),e.jsx(a,{title:"published catalog",detail:"manifest snapshot",tone:"gate"})]})}function z(){return e.jsxs("div",{className:"get-started-boundary-graph",children:[e.jsx(a,{title:"source declares",detail:"requirements, not values",tone:"source",children:e.jsx(g,{rows:["SLACK_CHANNEL","drive scope","volume: reports"]})}),e.jsxs("div",{className:"get-started-boundary-wall",children:[e.jsx("strong",{children:"binding boundary"}),e.jsx("span",{children:"values stay outside Git"})]}),e.jsx(a,{title:"platform stores",detail:"runtime setup state",tone:"gate",children:e.jsx(g,{rows:["OAuth lease","secret ref","volume binding"]})})]})}function V(){return e.jsxs("div",{className:"get-started-dual-source-graph",children:[e.jsx(a,{title:"/openpond/profile",detail:"agent profile source",tone:"source",children:e.jsx(g,{rows:["agent/agent.ts",".openpond/*"]})}),e.jsx(a,{title:"/workspace",detail:"target project source",tone:"source",children:e.jsx(g,{rows:["src/*","package.json"]})}),e.jsxs("div",{className:"get-started-sandbox-core",children:[e.jsx("strong",{children:"hosted sandbox"}),e.jsx("span",{children:"runs work item with separate mounts"})]}),e.jsx(a,{title:"review output",detail:"diffs, logs, checks, setup rows",tone:"gate"})]})}function J(){return e.jsx("div",{className:"get-started-timeline-graph",children:[["goal","running"],["logs","captured"],["checks","pending review"],["approval","publish blocked"]].map(([t,s])=>e.jsxs("div",{className:"get-started-timeline-step",children:[e.jsx("strong",{children:t}),e.jsx("span",{children:s})]},t))})}function Q(){return e.jsxs("div",{className:"get-started-publish-graph",children:[e.jsx(a,{title:"source ref",detail:"reviewed profile state",tone:"source"}),e.jsx(u,{label:"hash"}),e.jsx(a,{title:"manifest hash",detail:"immutable contract",tone:"gate"}),e.jsx(u,{label:"publish"}),e.jsx(a,{title:"hosted catalog",detail:"runtime action menu",tone:"hosted"})]})}function X(){return e.jsxs("div",{className:"get-started-setup-graph",children:[e.jsx("div",{className:"get-started-setup-table",children:[["integration","Slack lease","missing"],["secret","REPORT_BUCKET","ready"],["volume","reports","optional"],["target repo","/workspace","required"]].map(([t,s,i])=>e.jsxs("div",{className:"get-started-setup-row",children:[e.jsx("span",{children:t}),e.jsx("strong",{children:s}),e.jsx("em",{children:i})]},s))}),e.jsxs("div",{className:"get-started-gate-decision",children:[e.jsx("strong",{children:"setup-required"}),e.jsx("span",{children:"block before run or publish"})]})]})}function Y(){return e.jsxs("div",{className:"get-started-insights-loop",children:[e.jsx(a,{title:"create_pipeline.updated",detail:"runtime event stream",tone:"source"}),e.jsx(u,{label:"scan"}),e.jsx(a,{title:"detector",detail:"waiting, blocked, failed",tone:"gate"}),e.jsx(u,{label:"persist"}),e.jsx(a,{title:"insight_items",detail:"active rows + fingerprints",tone:"state"})]})}function Z(){return e.jsxs("div",{className:"get-started-insights-list",children:[e.jsxs("div",{className:"get-started-insights-toolbar",children:[e.jsx("span",{children:"All"}),e.jsx("span",{children:"Active"}),e.jsx("span",{children:"Blocker"}),e.jsx("span",{children:"Scan"})]}),[["Blocker","failed","Create agent failed"],["Concern","awaiting approval","Edit agent needs plan approval"],["Concern","awaiting answers","Create agent is waiting for input"]].map(([t,s,i])=>e.jsxs("div",{className:"get-started-insight-row",children:[e.jsx("span",{children:t}),e.jsx("strong",{children:i}),e.jsx("em",{children:s})]},i))]})}function ee(){return e.jsxs("div",{className:"get-started-apps-graph",children:[e.jsx("div",{className:"get-started-app-grid",children:se.map(t=>e.jsx(G,{app:t},t.id))}),e.jsxs("div",{className:"get-started-router-core",children:[e.jsx("strong",{children:"profile catalog"}),e.jsx("span",{children:"actions + setup + permissions"})]})]})}function te(){return e.jsxs("div",{className:"get-started-router-graph",children:[e.jsx("div",{className:"get-started-channel-list",children:ae.map(t=>e.jsx(G,{app:t},t.id))}),e.jsxs("div",{className:"get-started-router-core",children:[e.jsx("strong",{children:"profile router"}),e.jsx("span",{children:"team + profile + catalog"})]}),e.jsx("div",{className:"get-started-router-results",children:["direct answer","profile action","work item","setup-required"].map(t=>e.jsx("span",{children:t},t))})]})}const se=[{id:"github",label:"GitHub"},{id:"google",label:"Google Drive"},{id:"slack",label:"Slack"},{id:"microsoft_teams",label:"Microsoft Teams"},{id:"mcp",label:"MCP"}],ae=[{id:"web",label:"Web"},{id:"slack",label:"Slack"},{id:"microsoft_teams",label:"Microsoft Teams"},{id:"mcp",label:"MCP"}];function G({app:t}){return e.jsxs("span",{className:"get-started-app-icon-tile",children:[e.jsx("span",{className:"get-started-app-icon",children:e.jsx("img",{alt:"",src:ie(t.id)})}),e.jsx("span",{children:t.label})]})}function ie(t){return t==="web"?A:L(t)}function a({children:t,detail:s,title:i,tone:n="default",variant:h="default"}){return e.jsxs("div",{className:`get-started-diagram-node tone-${n} variant-${h}`,children:[e.jsx("div",{className:"get-started-node-heading",children:e.jsx("strong",{children:i})}),e.jsx("span",{children:s}),t]})}function u({label:t}){return e.jsxs("div",{className:"get-started-connector","aria-hidden":t?void 0:!0,children:[e.jsx("span",{}),t?e.jsx("em",{children:t}):null]})}function re({children:t,isLast:s}){return e.jsxs(e.Fragment,{children:[t,s?null:e.jsx(u,{})]})}function g({rows:t}){return e.jsx("div",{className:"get-started-mini-rows",children:t.map(s=>e.jsx("span",{children:s},s))})}const v=5,N=v*1e3;function ne({deck:t,resetToken:s=0}){const i=oe(),[n,h]=d.useState(0),[p,m]=d.useState(!1),o=t.slides[n]??t.slides[0],f=n*v,C=t.slides.length*v;d.useEffect(()=>{h(0),m(!1)},[t.id,s]),d.useEffect(()=>{if(!p||i)return;const c=window.setTimeout(()=>{h(j=>j===t.slides.length-1?0:j+1)},N);return()=>window.clearTimeout(c)},[n,t.slides.length,p,i]),d.useEffect(()=>{i&&m(!1)},[i]);function E(){h(c=>c===0?t.slides.length-1:c-1)}function P(){h(c=>c===t.slides.length-1?0:c+1)}return e.jsxs("section",{className:"get-started-deck","aria-label":`${t.label} deck`,children:[e.jsxs("div",{className:"get-started-deck-body",children:[e.jsxs("div",{className:"get-started-deck-copy",children:[e.jsxs("div",{className:"get-started-eyebrow",children:[e.jsx("span",{className:`get-started-accent-dot accent-${o.accent}`}),e.jsx("span",{children:o.eyebrow})]}),e.jsxs("div",{className:"get-started-slide-copy",children:[e.jsx("h2",{children:o.title}),o.body?e.jsx("p",{children:o.body}):null,o.detail?e.jsx("p",{children:o.detail}):null]})]}),e.jsx(_,{accent:o.accent,kind:o.visual})]}),e.jsxs("div",{className:"get-started-deck-footer",children:[e.jsx("div",{className:"get-started-progress",style:{gridTemplateColumns:`repeat(${t.slides.length}, minmax(0, 1fr))`},children:t.slides.map((c,j)=>{const w=j===n,T=j<n;return e.jsx("button",{"aria-label":`Show ${c.title}`,className:"get-started-progress-button",onClick:()=>h(j),type:"button",children:e.jsx("span",{className:`get-started-progress-fill accent-${c.accent} ${w||T?"filled":""}`,style:{transitionDuration:w&&p&&!i?`${N}ms`:"180ms"}})},c.id)})}),e.jsxs("div",{className:"get-started-controls",children:[e.jsxs("div",{className:"get-started-control-group",children:[e.jsx("button",{"aria-label":"Previous slide",className:"get-started-icon-button",onClick:E,type:"button",children:e.jsx(I,{size:16})}),e.jsx("button",{"aria-label":p?"Pause slides":"Play slides",className:"get-started-icon-button",onClick:()=>m(c=>!c),type:"button",children:p?e.jsx(R,{size:16}):e.jsx(D,{size:16})}),e.jsx("button",{"aria-label":"Next slide",className:"get-started-icon-button",onClick:P,type:"button",children:e.jsx(M,{size:16})})]}),e.jsxs("div",{className:"get-started-time",children:[S(f)," / ",S(C)]})]})]})]})}function S(t){const s=Math.floor(t/60),i=t%60;return`${s}:${String(i).padStart(2,"0")}`}function oe(){const[t,s]=d.useState(!1);return d.useEffect(()=>{if(!window.matchMedia)return;const i=window.matchMedia("(prefers-reduced-motion: reduce)");s(i.matches);const n=()=>s(i.matches);return i.addEventListener("change",n),()=>i.removeEventListener("change",n)},[]),t}const l="cyan",b=[{id:"goal",label:"Goal loop",description:"How local and hosted goals share durable objective state.",slides:[{id:"goal-durable-objective",eyebrow:"Goal state",title:"Goals are durable objectives",body:"A goal is saved state for a local session or hosted work item, not just prompt text.",detail:"Local and hosted goals use the same lifecycle language: objective, evidence, blockers, approvals, checks, and completion.",visual:"goal-state",accent:l}]},{id:"orchestration",label:"Orchestration",description:"How the main agent delegates bounded work to addressable sub agents.",slides:[{id:"orchestration-delegate",eyebrow:"Model routing",title:"OpenAI GPT-5.6 can coordinate GLM coding",body:"Use a strong orchestration model to split a goal into sub agents, then route coding, research, review, testing, docs, or planning to the role and model that fit.",detail:"For example: OpenAI GPT-5.6 coordinates the goal, GLM handles coding in copy-on-write isolation, and every sub agent reports receipts back to the main chat.",visual:"subagent-router",accent:l},{id:"orchestration-handoff",eyebrow:"Handoffs",title:"Sub agents report back deliberately",body:"Sub agents can send compact handoffs back to the parent chat when a blocker, decision, important finding, or final result should return control.",detail:"The parent sees a short sub agent receipt and can respond, message the sub agent, join or cancel, update the goal, or route follow-up work.",visual:"subagent-handoff",accent:l},{id:"orchestration-settings",eyebrow:"Harness settings",title:"Configure each sub agent role",body:"Sub agents have a default model plus per-role provider and model overrides, tool policies, isolation modes, concurrency caps, token caps, and peer-message rules.",detail:"Copy-on-write is the default for write-capable sub agents so parallel edits stay reviewable before merge or handoff; roles can also use worktrees or no isolation.",visual:"subagent-settings",accent:l}]},{id:"build",label:"Create/Edit Loop",description:"How first-class Create and Edit agents are specific implementations on top of goals.",slides:[{id:"build-one-loop",eyebrow:"First-class agents",title:"Create/Edit is built on goals",body:"Create and Edit are first-class agents specifically designed as implementations on top of the goal loop.",detail:"They add source-aware planning, evidence, approvals, checks, and completion before profile files change.",visual:"create-plan",accent:l},{id:"build-profile-source",eyebrow:"Source",title:"Approved work changes profile source",body:"Create generates SDK-backed files. Edit patches existing agent source. Neither becomes loose chat memory.",detail:"Agents, actions, prompts, evals, and non-secret setup declarations live in the profile source tree.",visual:"source-tree",accent:l}]},{id:"insights",label:"Insights Loop",description:"How Insights is a specific implementation on top of goals and create/edit pipeline state.",slides:[{id:"insights-detect",eyebrow:"Detector",title:"Insights runs on top of goals",body:"Insights is a specific implementation on top of goals: it watches `create_pipeline.updated` events and turns stuck create/edit states into active rows.",detail:"Awaiting questions, plan approval, blocked, and failed states become concern or blocker rows tied back to the source event.",visual:"insights-loop",accent:l},{id:"insights-action",eyebrow:"Action",title:"Insights stay actionable",body:"Observation scanning is off by default. Turn it on in Lab → Signals, then review, resolve, or dismiss the resulting observations there.",detail:"Rows persist in `insight_items` and resolve when the pipeline moves forward or the user marks them handled.",visual:"insights-list",accent:l}]},{id:"profile",label:"Profile",description:"How one Git-backed profile repository makes agents portable.",slides:[{id:"profile-git-repo",eyebrow:"Git-backed source",title:"One agent repository travels with you",body:"The profile repo stores agents, actions, prompts, evals, settings, and non-secret config as source.",detail:"Because it is Git-backed, local app, CLI, checks, and hosted runtime can inspect the same durable agent repository.",visual:"profile-source",accent:l},{id:"profile-portable-artifacts",eyebrow:"Portability",title:"Artifacts make agents portable",body:"The SDK emits a manifest, action registry, inspect output, validation report, and eval results from that repo.",detail:"Those contracts let the same agent run locally, publish hosted, or appear in connected apps without rebuilding it by hand.",visual:"source-tree",accent:l}]},{id:"local-hosted",label:"Local <> Hosted",description:"How hosted work keeps sources separate and publishes reviewed snapshots.",slides:[{id:"local-hosted-mounts",eyebrow:"Sandbox",title:"Hosted work keeps sources separate",body:"A hosted work item can mount profile source for the agent and target source for the project being changed.",detail:"The profile mount is `/openpond/profile`. The target project mount is `/workspace` when a target repo is needed.",visual:"dual-source",accent:l},{id:"local-hosted-publish",eyebrow:"Publish",title:"Published snapshots avoid source drift",body:"A checked manifest snapshot becomes the runtime source for hosted profile actions.",detail:"The hosted catalog should point at a reviewed snapshot, not an ambiguous latest file tree.",visual:"publish-snapshot",accent:l}]},{id:"connect-apps",label:"Connect 3rd party apps",description:"How connected apps bind into the same profile catalog.",slides:[{id:"connect-apps-grid",eyebrow:"Apps",title:"Apps connect to the profile catalog",visual:"apps-grid",accent:l},{id:"connect-channels",eyebrow:"Channels",title:"Web, Slack, Teams, and MCP use the same router",visual:"channel-router",accent:l}]}];function de(t){const[s,i]=d.useState("goal"),[n,h]=d.useState(0),p=d.useMemo(()=>b.find(o=>o.id===s)??b[0],[s]);function m(o){i(o),h(f=>f+1)}return e.jsx("section",{className:"get-started-view","aria-label":"Get started",children:e.jsxs("div",{className:"get-started-shell",children:[e.jsx("div",{className:"surface-tabs get-started-tabs",role:"tablist","aria-label":"Get started topics",children:b.map(o=>e.jsx("button",{"aria-selected":p.id===o.id,className:p.id===o.id?"active":"",onClick:()=>m(o.id),role:"tab",type:"button",children:e.jsx("span",{children:o.label})},o.id))}),e.jsx(ne,{deck:p,resetToken:n},p.id)]})})}export{de as GetStartedView};
@@ -1 +0,0 @@
1
- import{j as s}from"./index-CU2qhUYV.js";import{B as a}from"./boxes-DAaDUabq.js";function i(){return s.jsxs("section",{className:"labs-placeholder","aria-label":"Extensions unavailable",children:[s.jsx("span",{className:"labs-placeholder-icon",children:s.jsx(a,{size:24})}),s.jsx("h2",{children:"Your mutable harness modules will live here"}),s.jsx("p",{children:"The tab is mounted now so Lab has a stable home for extensions. Catalog discovery, compatibility, bindings, activation, and rollback are not available yet."}),s.jsxs("div",{className:"labs-placeholder-status",children:[s.jsx("span",{}),"Extension runtime unavailable"]})]})}export{i as LabsExtensions};
@@ -1 +0,0 @@
1
- import{_ as p,$ as h,Y as v,V as x,j as a,aG as f}from"./index-CU2qhUYV.js";import{B as j}from"./boxes-DAaDUabq.js";import{ProfileView as y}from"./ProfileView-CEscW7Ru.js";import"./ProfileSettingsSection-DxEzoF3K.js";import"./git-commit-horizontal-CAickXpN.js";import"./refresh-cw-N5b_6AP5.js";import"./play-CeRw21NV.js";/* empty css */function A({insightsError:c,insightsEnabled:n,insightsItems:m,insightsScanning:g,onTabChange:u,profileView:i,training:t}){const o=i.payload?.profile??null,e=t.payload,r=m.filter(l=>l.status==="active").length,d=e?.candidates.length??0,b=[{id:"signals",label:"Signals",value:n?g?"Scanning":String(r+d):"Off",detail:n?`${r} active observations · ${d} AI suggestions`:"Turn on observation scanning in Signals",tone:c?"warning":void 0,Icon:p},{id:"evals",label:"Evals",value:t.loading&&!e?"Loading":String(e?.tasksets.length??0),detail:e?`${e.baselineReports.length} baseline reports`:"No Tasksets loaded",tone:t.error?"warning":void 0,Icon:h},{id:"models",label:"Models",value:t.loading&&!e?"Loading":String(e?.models.length??0),detail:e?`${e.jobs.length} training jobs · ${e.artifacts.length} artifacts`:"No training state loaded",tone:t.error?"warning":void 0,Icon:v},{id:"agents",label:"Agents",value:o?.mode==="local"?String(o.agents.length):"—",detail:o?.mode==="local"?`${o.actionCatalog.length} available action${o.actionCatalog.length===1?"":"s"}`:"Load a Profile to see agents",Icon:x},{id:"extensions",label:"Extensions",value:"Not available yet",detail:"The extension catalog and runtime arrive in the focused extension phase",tone:"muted",Icon:j}];return a.jsx("div",{className:"labs-profile",children:a.jsx(y,{...i,overviewContent:a.jsx("section",{className:"labs-summary-grid","aria-label":"Profile system summary",children:b.map(({Icon:l,...s})=>a.jsxs("button",{className:`labs-summary-card${s.tone?` ${s.tone}`:""}`,type:"button",onClick:()=>u(s.id),children:[a.jsx("span",{className:"labs-summary-card-icon",children:a.jsx(l,{size:17})}),a.jsxs("span",{className:"labs-summary-card-copy",children:[a.jsx("span",{children:s.label}),a.jsx("strong",{children:s.value}),a.jsx("small",{children:s.detail})]}),a.jsx(f,{className:"labs-summary-card-arrow",size:15})]},s.id))}),section:"all"})})}export{A as LabsProfile};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./LabsProfile-DG7rWYur.js","./index-CU2qhUYV.js","./index-BdY6A-YN.css","./boxes-DAaDUabq.js","./ProfileView-CEscW7Ru.js","./ProfileSettingsSection-DxEzoF3K.js","./git-commit-horizontal-CAickXpN.js","./refresh-cw-N5b_6AP5.js","./play-CeRw21NV.js","./ProfileSettingsSection-DTQS2DVL.css","./settings-lists-BEg6LMcy.css","./LabsExtensions-GtJzxDnK.js","./LabsSignals-BfsDN86w.js","./TrainingView-CoCFK6W3.js","./training-model-data-BPrc68VG.js","./TrainingSettingsSection-BDYvI2te.js","./LabsSignals-D6iA6Ryl.css"])))=>i.map(i=>d[i]);
2
- import{r as t,j as s,h as x,aT as u}from"./index-CU2qhUYV.js";function _(e){return!e||e.mode!=="local"?!1:!!(e.git?.dirty||e.summary.state==="dirty"||e.summary.state==="pending_commit")}const r=[{id:"profile",label:"Profile"},{id:"signals",label:"Signals"},{id:"evals",label:"Evals"},{id:"models",label:"Models"},{id:"agents",label:"Agents"},{id:"extensions",label:"Extensions"}];function h({activeTab:e,children:a,onNewModel:m,onTabChange:n,profileHasUncommittedChanges:i=!1}){const o=t.useRef([]);function p(l,d){if(!["ArrowLeft","ArrowRight","Home","End"].includes(l.key))return;l.preventDefault();const c=r.length-1,b=l.key==="Home"?0:l.key==="End"?c:l.key==="ArrowLeft"?(d-1+r.length)%r.length:(d+1)%r.length,f=r[b];f&&(n(f.id),o.current[b]?.focus())}return s.jsxs("section",{className:"labs-route","aria-label":"Lab",children:[s.jsxs("header",{className:"labs-header",children:[s.jsx("nav",{className:"labs-tabs",role:"tablist","aria-label":"Lab sections",children:r.map((l,d)=>s.jsx("button",{"aria-controls":"labs-active-panel","aria-selected":e===l.id,className:e===l.id?"active":void 0,id:`labs-tab-${l.id}`,ref:c=>{o.current[d]=c},role:"tab",tabIndex:e===l.id?0:-1,title:l.id==="profile"&&i?"Profile has local changes that are not committed":void 0,type:"button",onClick:()=>n(l.id),onKeyDown:c=>p(c,d),children:s.jsxs("span",{className:"labs-tab-label",children:[l.label,l.id==="profile"&&i?s.jsx("span",{"aria-hidden":"true",className:"labs-profile-change-dot"}):null]})},l.id))}),s.jsxs("button",{className:"labs-new-model-button",type:"button",onClick:m,children:[s.jsx(x,{size:14}),s.jsx("span",{children:"New model"})]})]}),s.jsx("div",{"aria-labelledby":`labs-tab-${e}`,className:"labs-panel",id:"labs-active-panel",role:"tabpanel",children:a})]})}const L=t.lazy(()=>u(()=>import("./LabsProfile-DG7rWYur.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url).then(e=>({default:e.LabsProfile}))),j=t.lazy(()=>u(()=>import("./LabsExtensions-GtJzxDnK.js"),__vite__mapDeps([11,1,2,3]),import.meta.url).then(e=>({default:e.LabsExtensions}))),g=t.lazy(()=>u(()=>import("./LabsSignals-BfsDN86w.js"),__vite__mapDeps([12,1,2,7,13,8,14,15,10,16]),import.meta.url).then(e=>({default:e.LabsSignals}))),E=t.lazy(()=>u(()=>import("./ProfileView-CEscW7Ru.js"),__vite__mapDeps([4,1,2,5,6,7,8,9,10]),import.meta.url).then(e=>({default:e.ProfileView}))),y=t.lazy(()=>u(()=>import("./TrainingView-CoCFK6W3.js"),__vite__mapDeps([13,1,2,8,7,14,15,10]),import.meta.url).then(e=>({default:e.TrainingView})));function N({activeTab:e,insights:a,onNewModel:m,onTabChange:n,profileView:i,training:o}){return s.jsx(h,{activeTab:e,onNewModel:m,onTabChange:n,profileHasUncommittedChanges:_(i.payload?.profile),children:s.jsx(t.Suspense,{fallback:s.jsx(P,{}),children:e==="profile"?s.jsx(L,{insightsError:a.error,insightsEnabled:a.enabled,insightsItems:a.items,insightsScanning:a.scanning||a.scanRunning,onTabChange:n,profileView:i,training:o.training}):e==="agents"?s.jsx("div",{className:"labs-focused-profile-panel",children:s.jsx(E,{...i,section:"agents"})}):e==="extensions"?s.jsx(j,{}):e==="models"||e==="evals"?s.jsx(y,{...o,section:e,onSectionChange:n}):s.jsx(g,{insights:a,training:o,onOpenLabsSection:n})})})}function P(){return s.jsx("div",{className:"labs-panel-loading",role:"status",children:"Loading Lab…"})}export{N as LabsRoute};
@@ -1 +0,0 @@
1
- .labs-route{display:grid;grid-template-rows:auto minmax(0,1fr);width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;background:var(--bg);color:var(--text)}.main-pane.page-active>.labs-route{grid-column:1;grid-row:1}.main-pane.page-active.terminal-open{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) var(--terminal-panel-height);align-content:stretch;overflow:hidden}.main-pane.page-active.diff-open>.labs-route{max-height:100%}.labs-header{display:flex;align-items:stretch;gap:14px;min-width:0;border-bottom:1px solid var(--border);padding:0 28px;background:color-mix(in srgb,var(--bg) 94%,var(--panel))}.labs-tabs{display:flex;flex:1 1 auto;min-width:0;gap:2px;overflow-x:auto;scrollbar-width:none}.labs-new-model-button{display:inline-flex;align-items:center;align-self:center;flex:0 0 auto;min-height:30px;gap:7px;border:1px solid color-mix(in srgb,var(--text) 18%,var(--border));border-radius:7px;background:var(--panel-soft);color:var(--text);padding:0 11px;font:inherit;font-size:12px;font-weight:560;cursor:pointer}.labs-new-model-button:hover,.labs-new-model-button:focus-visible{border-color:color-mix(in srgb,var(--text) 30%,var(--border));background:var(--panel-hover)}.labs-new-model-button:focus-visible{outline:2px solid color-mix(in srgb,var(--cyan, #22d3ee) 58%,transparent);outline-offset:2px}.labs-tabs::-webkit-scrollbar{display:none}.labs-tabs button,.labs-subtabs button{flex:0 0 auto;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);padding:11px 12px 12px;font:inherit;font-size:13px;cursor:pointer}.labs-tabs button:hover,.labs-tabs button:focus-visible,.labs-subtabs button:hover,.labs-subtabs button:focus-visible{color:var(--text)}.labs-tabs button:focus-visible,.labs-subtabs button:focus-visible,.labs-summary-card:focus-visible{outline:2px solid color-mix(in srgb,var(--cyan, #22d3ee) 58%,transparent);outline-offset:-2px}.labs-tabs button.active,.labs-subtabs button.active{border-bottom-color:var(--text);color:var(--text)}.labs-tab-label{display:inline-flex;align-items:center;gap:7px}.labs-profile-change-dot{flex:0 0 auto;width:7px;height:7px;border-radius:999px;background:#f4c542;box-shadow:0 0 0 2px #f4c54224}.labs-panel{min-width:0;min-height:0;overflow:auto;scrollbar-color:rgba(255,255,255,.24) transparent;scrollbar-width:thin}.labs-panel-loading{display:grid;min-height:240px;place-items:center;color:var(--muted);font-size:12px}.labs-profile{width:min(1120px,calc(100% - 72px));margin-inline:auto;padding:32px 0 64px}.labs-placeholder h2{margin:0;font-size:24px;font-weight:620;letter-spacing:-.025em}.labs-placeholder p{max-width:720px;margin:7px 0 0;color:var(--muted);font-size:12px;line-height:1.55;overflow-wrap:anywhere}.labs-summary-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.labs-summary-card{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;min-width:0;min-height:142px;gap:10px;border:1px solid var(--border);border-radius:9px;background:var(--panel);color:var(--text);padding:13px;text-align:left;cursor:pointer;transition:border-color .12s ease,background .12s ease,transform .12s ease}.labs-summary-card:hover{border-color:color-mix(in srgb,var(--text) 24%,var(--border));background:var(--panel-soft);transform:translateY(-1px)}.labs-summary-card.warning{border-color:color-mix(in srgb,#f6b65d 34%,var(--border))}.labs-summary-card.muted{border-style:dashed}.labs-summary-card-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:7px;background:var(--panel-soft);color:var(--muted)}.labs-summary-card-copy{display:grid;min-width:0;gap:5px}.labs-summary-card-copy>span{color:var(--muted);font-size:10px;font-weight:600}.labs-summary-card-copy strong{overflow:hidden;font-size:16px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.labs-summary-card-copy small{display:-webkit-box;overflow:hidden;color:var(--muted);font-size:10px;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:3}.labs-summary-card-arrow{position:absolute;right:12px;bottom:12px;color:var(--muted)}.labs-profile>.profile-view,.labs-focused-profile-panel .profile-view{width:100%;padding:0}.labs-profile .account-settings,.labs-focused-profile-panel .account-settings{max-width:none}.labs-profile .profile-control-toolbar{justify-content:flex-end}.labs-profile .profile-control-actions{gap:8px}.labs-focused-profile-panel{width:min(960px,calc(100% - 72px));margin-inline:auto;padding:32px 0 64px}.labs-placeholder{display:grid;justify-items:center;width:min(620px,calc(100% - 40px));margin:min(14vh,120px) auto 48px;border:1px dashed var(--border);border-radius:12px;background:var(--panel);padding:44px;text-align:center}.labs-placeholder-icon{display:grid;width:48px;height:48px;margin-bottom:18px;place-items:center;border:1px solid var(--border);border-radius:12px;background:var(--panel-soft);color:var(--muted)}.labs-placeholder-status{display:inline-flex;align-items:center;gap:7px;margin-top:22px;border:1px solid var(--border);border-radius:999px;padding:5px 9px;color:var(--muted);font-size:10px}.labs-placeholder-status span{width:6px;height:6px;border-radius:999px;background:#f0bd77}.labs-signals{min-height:100%}.labs-subtabs{display:flex;gap:2px;border-bottom:1px solid var(--border);padding:0 28px}.labs-subtabs button span{margin-left:5px;color:var(--muted)}.training-header.actions-only{justify-content:flex-end}@media(max-width:1080px){.labs-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:860px){.labs-header{padding:0 18px}.labs-profile,.labs-focused-profile-panel{width:calc(100% - 36px);padding:24px 0 40px}.labs-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.labs-summary-grid{grid-template-columns:1fr}.labs-summary-card{min-height:112px}.labs-placeholder{padding:32px 22px}}@media(prefers-reduced-motion:reduce){.labs-summary-card{transition:none}}
@@ -1 +0,0 @@
1
- import{r as o,j as e,R as V,X as B}from"./index-CU2qhUYV.js";import{R as q}from"./refresh-cw-N5b_6AP5.js";import{TrainingView as X}from"./TrainingView-CoCFK6W3.js";import"./play-CeRw21NV.js";import"./training-model-data-BPrc68VG.js";import"./TrainingSettingsSection-BDYvI2te.js";/* empty css */function Y({enabled:s,items:n,runs:a,nextScanAt:i,scanRunning:t,scanStartedAt:r,scanning:c,savingEnabled:l,error:S,onEnabledChange:k,onPatchStatus:y,onOpenSession:f}){const[u,F]=o.useState("all"),[v,A]=o.useState("all"),[h,M]=o.useState("all"),[g,E]=o.useState("all"),[x,$]=o.useState("all"),[O,P]=o.useState(()=>Date.now());o.useEffect(()=>{const d=window.setInterval(()=>P(Date.now()),1e3);return()=>window.clearInterval(d)},[]);const j=o.useMemo(()=>n.filter(d=>!(u!=="all"&&d.status!==u||v!=="all"&&d.severity!==v||h!=="all"&&w(d)!==h)),[n,v,h,u]),L=o.useMemo(()=>a.filter(d=>!(g!=="all"&&d.status!==g||x!=="all"&&d.trigger!==x||h!=="all"&&!d.evidenceSources.includes(h))),[g,x,a,h]),U=o.useMemo(()=>j.filter(d=>d.status==="active"),[j]),D=o.useMemo(()=>j.filter(d=>d.status!=="active"),[j]),K=u==="all"||u==="active",z=u==="all"||u!=="active",m=c||t,R=`${u}:${v}:${h}`,G=`${g}:${x}:${h}`;return e.jsxs("section",{className:"insights-view","aria-label":"Insights",children:[e.jsxs("section",{className:"insights-scan-preference","aria-label":"Observation scanning",children:[e.jsxs("div",{children:[e.jsx("strong",{children:"Observation scanning"}),e.jsx("span",{children:"Periodically review selected work, failures, and corrections for signals. It stays off until you turn it on."})]}),e.jsxs("div",{className:"insights-scan-controls",children:[e.jsxs("span",{className:`insights-scan-countdown ${m?"running":""}`,children:[e.jsx("span",{className:"insights-scan-dot","aria-hidden":"true"}),s?te(i,O,m):"Scanning is off"]}),e.jsx("button",{"aria-pressed":s,className:s?"active":void 0,disabled:l||m,type:"button",onClick:()=>{k(!s)},children:l?"Saving":s?"On":"Turn on"})]})]}),e.jsxs("div",{className:"insights-filters","aria-label":"Insight filters",children:[e.jsx(b,{label:"Observation status",options:Z,value:u,onChange:F}),e.jsx(b,{label:"Severity",options:H,value:v,onChange:A}),e.jsx(b,{label:"Source",options:J,value:h,onChange:M}),e.jsx(b,{label:"Run status",options:Q,value:g,onChange:E}),e.jsx(b,{label:"Run trigger",options:W,value:x,onChange:$})]}),m?e.jsxs("div",{className:"insights-active-scan",role:"status",children:[e.jsx("span",{className:"insights-scan-dot","aria-hidden":"true"}),e.jsxs("div",{children:[e.jsx("strong",{children:"Active scan"}),e.jsx("span",{children:r?`Started ${N(r)}`:"Scanning insights now"})]})]}):null,S?e.jsx("div",{className:"insights-error",children:S}):null,e.jsx(ee,{runs:L,paginationKey:G,onOpenSession:f}),K?e.jsx(I,{title:"Active",emptyText:"No active create/edit insights match the filters.",items:U,paginationKey:R,onPatchStatus:y,onOpenSession:f}):null,z?e.jsx(I,{title:"Recent",emptyText:"No resolved or dismissed insights match the filters.",items:D,paginationKey:R,onPatchStatus:y,onOpenSession:f}):null]})}const Z=[{value:"all",label:"All"},{value:"active",label:"Active"},{value:"resolved",label:"Resolved"},{value:"dismissed",label:"Dismissed"}],H=[{value:"all",label:"All"},{value:"blocker",label:"Blocker"},{value:"concern",label:"Concern"},{value:"nit",label:"Nit"}],J=[{value:"all",label:"All"},{value:"create_edit",label:"Create/edit"},{value:"stuck_turn",label:"Stuck turns"},{value:"tool_failure",label:"Tools"},{value:"abandoned_goal",label:"Goals"},{value:"user_correction",label:"Corrections"},{value:"unresolved_conversation",label:"Unresolved"},{value:"usage_anomaly",label:"Usage"}],Q=[{value:"all",label:"All"},{value:"running",label:"Running"},{value:"completed",label:"Completed"},{value:"failed",label:"Failed"},{value:"skipped",label:"Skipped"}],W=[{value:"all",label:"All"},{value:"manual",label:"Manual"},{value:"interval",label:"Interval"},{value:"startup",label:"Startup"},{value:"slash_command",label:"Slash"}];function b({label:s,options:n,value:a,onChange:i}){return e.jsxs("label",{className:"insights-filter-group",children:[e.jsx("span",{children:s}),e.jsx("select",{value:a,onChange:t=>i(t.target.value),children:n.map(t=>e.jsx("option",{value:t.value,children:t.label},t.value))})]})}function I({title:s,emptyText:n,items:a,paginationKey:i,onPatchStatus:t,onOpenSession:r}){const c=_(a,i);return e.jsxs("section",{className:"insights-section",children:[e.jsx("h2",{children:s}),a.length===0?e.jsx("p",{className:"insights-empty",children:n}):e.jsxs("div",{className:"insights-table-frame",children:[e.jsx("div",{className:"insights-table-scroll",children:e.jsxs("table",{className:"insights-table insights-observations-table",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{scope:"col",children:"Severity"}),e.jsx("th",{scope:"col",children:"Status"}),e.jsx("th",{scope:"col",children:"Observation"}),e.jsx("th",{scope:"col",children:"Updated"}),e.jsx("th",{scope:"col",children:"Actions"})]})}),e.jsx("tbody",{children:c.pageItems.map(l=>e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("span",{className:`insights-severity ${l.severity}`,children:se(l.severity)})}),e.jsx("td",{children:e.jsxs("div",{className:"insights-status-stack",children:[e.jsx("span",{children:l.status}),e.jsx("small",{children:le(w(l))})]})}),e.jsx("td",{children:e.jsxs("div",{className:"insights-copy",children:[e.jsx("strong",{children:l.title}),e.jsx("span",{children:l.summary})]})}),e.jsx("td",{className:"insights-time",children:N(l.updatedAt)}),e.jsx("td",{children:e.jsxs("div",{className:"insights-actions",children:[C(l.payload.sessionId)?e.jsx("button",{type:"button",className:"insights-text-action",onClick:()=>r(C(l.payload.sessionId)),children:"Source"}):null,l.lastRunSessionId?e.jsx("button",{type:"button",className:"insights-text-action",onClick:()=>r(l.lastRunSessionId),children:"Run"}):null,l.status==="active"?e.jsxs(e.Fragment,{children:[e.jsx("button",{type:"button",title:"Resolve observation","aria-label":"Resolve observation",onClick:()=>{t(l.id,"resolved")},children:e.jsx(V,{size:15})}),e.jsx("button",{type:"button",title:"Dismiss observation","aria-label":"Dismiss observation",onClick:()=>{t(l.id,"dismissed")},children:e.jsx(B,{size:15})})]}):e.jsx("button",{type:"button",title:"Reopen observation","aria-label":"Reopen observation",onClick:()=>{t(l.id,"active")},children:e.jsx(q,{size:15})})]})})]},l.id))})]})}),e.jsx(T,{label:s,...c})]})]})}function ee({runs:s,paginationKey:n,onOpenSession:a}){const i=_(s,n);return e.jsxs("section",{className:"insights-section",children:[e.jsx("h2",{children:"Runs"}),s.length===0?e.jsx("p",{className:"insights-empty",children:"No Insights runs yet."}):e.jsxs("div",{className:"insights-table-frame",children:[e.jsx("div",{className:"insights-table-scroll",children:e.jsxs("table",{className:"insights-table insights-runs-table",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{scope:"col",children:"Trigger"}),e.jsx("th",{scope:"col",children:"Status"}),e.jsx("th",{scope:"col",children:"Model"}),e.jsx("th",{scope:"col",children:"Summary"}),e.jsx("th",{scope:"col",children:"Completed"}),e.jsx("th",{scope:"col",children:"Actions"})]})}),e.jsx("tbody",{children:i.pageItems.map(t=>e.jsxs("tr",{children:[e.jsx("td",{children:ne(t.trigger)}),e.jsx("td",{className:"insights-status",children:t.status}),e.jsx("td",{className:"insights-status",children:ie(t)}),e.jsx("td",{children:e.jsxs("div",{className:"insights-copy",children:[e.jsx("strong",{children:t.summary??`${t.findingCount} finding${t.findingCount===1?"":"s"}`}),e.jsxs("span",{children:[t.createdCount," new / ",t.updatedCount," updated / ",t.resolvedCount," resolved"]})]})}),e.jsx("td",{className:"insights-time",children:N(t.completedAt??t.startedAt)}),e.jsx("td",{children:e.jsx("div",{className:"insights-actions",children:e.jsx("button",{type:"button",className:"insights-text-action",onClick:()=>a(t.sessionId),children:"Open run"})})})]},t.turnId))})]})}),e.jsx(T,{label:"Runs",...i})]})]})}const p=10;function _(s,n){const[a,i]=o.useState(0);o.useEffect(()=>i(0),[n]);const t=Math.max(1,Math.ceil(s.length/p)),r=Math.min(a,t-1),c=r*p;return{pageItems:s.slice(c,c+p),pageIndex:r,pageCount:t,pageStart:c,pageSize:p,totalItems:s.length,onPageChange:i}}function T({label:s,pageIndex:n,pageCount:a,pageStart:i,pageSize:t,totalItems:r,onPageChange:c}){return e.jsxs("nav",{className:"insights-pagination","aria-label":`${s} pagination`,children:[e.jsxs("span",{children:[i+1,"–",Math.min(i+t,r)," of ",r]}),e.jsxs("div",{children:[e.jsx("button",{type:"button",disabled:n===0,onClick:()=>c(n-1),children:"Previous"}),e.jsxs("span",{children:["Page ",n+1," of ",a]}),e.jsx("button",{type:"button",disabled:n>=a-1,onClick:()=>c(n+1),children:"Next"})]})]})}function se(s){return s==="blocker"?"Blocker":s==="concern"?"Concern":"Nit"}function te(s,n,a){if(a)return"Scanning now";if(!s)return"Next scan not scheduled";const i=new Date(s).getTime();if(Number.isNaN(i))return"Next scan not scheduled";const t=i-n;if(t<=0)return"Next scan starting soon";const r=Math.ceil(t/6e4);return`${r} minute${r===1?"":"s"} till next scan`}function ne(s){return s==="slash_command"?"Slash command":s==="startup"?"Startup":s==="interval"?"Interval":"Manual"}function ie(s){return s.modelRef?`${s.modelRef.providerId} / ${s.modelRef.modelId}`:"Default"}function w(s){const n=s.payload.evidenceSource;return n==="create_edit"||n==="stuck_turn"||n==="tool_failure"||n==="abandoned_goal"||n==="user_correction"||n==="unresolved_conversation"||n==="usage_anomaly"?n:"create_edit"}function le(s){return s==="stuck_turn"?"Stuck turn":s==="tool_failure"?"Tool failures":s==="abandoned_goal"?"Abandoned goal":s==="user_correction"?"Corrections":s==="unresolved_conversation"?"Unresolved chat":s==="usage_anomaly"?"Usage":"Create/edit"}function C(s){return typeof s=="string"&&s.trim()?s:null}function N(s){const n=new Date(s);return Number.isNaN(n.getTime())?s:new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}).format(n)}function ve({insights:s,training:n,onOpenLabsSection:a}){const[i,t]=o.useState("observations"),r=s.items.filter(l=>l.status==="active").length,c=n.training.payload?.candidates.length??0;return e.jsxs("section",{className:"labs-signals","aria-label":"Signals",children:[e.jsxs("div",{className:"labs-subtabs",role:"tablist","aria-label":"Signal types",children:[e.jsxs("button",{"aria-selected":i==="observations",className:i==="observations"?"active":void 0,role:"tab",type:"button",onClick:()=>t("observations"),children:["Observations ",e.jsx("span",{children:r})]}),e.jsxs("button",{"aria-selected":i==="suggestions",className:i==="suggestions"?"active":void 0,role:"tab",type:"button",onClick:()=>t("suggestions"),children:["AI Suggestions ",e.jsx("span",{children:c})]})]}),i==="observations"?e.jsx(Y,{...s}):e.jsx(X,{...n,section:"suggestions",onSectionChange:a})]})}export{ve as LabsSignals};
@@ -1 +0,0 @@
1
- .insights-view{display:grid;align-content:start;gap:24px;width:min(980px,calc(100% - 72px));min-width:0;justify-self:center;padding:42px 0 64px}.insights-empty,.insights-error{margin:0;color:var(--muted);font-size:13px;line-height:1.5}.insights-scan-preference{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:24px;min-width:0}.insights-scan-preference>div:first-child{display:grid;gap:4px;min-width:0}.insights-scan-preference strong{color:var(--text);font-size:13px;font-weight:600}.insights-scan-preference span{color:var(--muted);font-size:12px;line-height:1.45}.insights-scan-controls{display:inline-flex;align-items:center;justify-content:flex-end;gap:12px;flex:0 0 auto}.insights-scan-preference button{flex:0 0 auto;min-width:72px;min-height:32px;border:1px solid var(--border);border-radius:8px;background:transparent;color:var(--muted);padding:0 11px}.insights-scan-preference button:hover:not(:disabled){background:var(--panel-hover);color:var(--text)}.insights-scan-preference button.active{border-color:color-mix(in srgb,#67d59a 40%,var(--border));background:color-mix(in srgb,#67d59a 9%,transparent);color:#79d8a4}.insights-scan-preference button:disabled{opacity:.65}.insights-scan-countdown{display:inline-flex;align-items:center;gap:7px;color:var(--muted);font-size:12px;white-space:nowrap}.insights-scan-dot{width:7px;height:7px;border-radius:999px;background:#f0d77a}.insights-scan-countdown.running .insights-scan-dot{background:#6ee7a8}.insights-active-scan{display:inline-flex;align-items:center;gap:10px;width:fit-content;max-width:100%;border:1px solid rgba(110,231,168,.24);border-radius:8px;background:#6ee7a812;color:var(--muted-strong);padding:9px 11px}.insights-active-scan .insights-scan-dot{background:#6ee7a8}.insights-active-scan div{display:grid;gap:2px;min-width:0}.insights-active-scan strong{color:var(--text);font-size:13px;font-weight:600}.insights-active-scan span:not(.insights-scan-dot){color:var(--muted);font-size:12px}.insights-error{color:#ff8a84}.insights-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));align-items:end;gap:12px;min-width:0}.insights-filter-group{display:grid;gap:6px;min-width:0}.insights-filter-group>span{color:var(--muted);font-size:12px}.insights-filter-group select{width:100%;min-width:0;min-height:34px;border:1px solid var(--border);border-radius:8px;background:var(--panel);color:var(--text);padding:0 30px 0 10px;font:inherit;font-size:12px}.insights-filter-group select:hover{border-color:color-mix(in srgb,var(--text) 22%,var(--border))}.insights-filter-group select:focus-visible{outline:2px solid color-mix(in srgb,var(--accent, #7aa2ff) 55%,transparent);outline-offset:1px}.insights-section{display:grid;gap:10px;min-width:0}.insights-section h2{margin:0;color:var(--muted-strong);font-size:13px;font-weight:600}.insights-table-frame{min-width:0;overflow:hidden;border:1px solid var(--border);border-radius:8px;background:var(--panel)}.insights-table-scroll{width:100%;overflow-x:auto}.insights-table{width:100%;min-width:760px;border-collapse:collapse;color:var(--text);font-size:12px;text-align:left}.insights-runs-table{min-width:880px}.insights-table th,.insights-table td{min-width:0;border-bottom:1px solid var(--border);text-align:left;vertical-align:middle}.insights-table th{padding:9px 12px;background:var(--panel-soft);color:var(--muted);font-size:12px;font-weight:500;white-space:nowrap}.insights-table td{padding:11px 12px}.insights-table tbody tr:last-child td{border-bottom:0}.insights-table tbody tr:hover{background:var(--panel-soft)}.insights-observations-table th:nth-child(1),.insights-observations-table td:nth-child(1){width:92px}.insights-observations-table th:nth-child(2),.insights-observations-table td:nth-child(2){width:110px}.insights-observations-table th:nth-child(4),.insights-observations-table td:nth-child(4){width:132px}.insights-observations-table th:nth-child(5),.insights-observations-table td:nth-child(5){width:150px}.insights-runs-table th:nth-child(1),.insights-runs-table td:nth-child(1){width:112px}.insights-runs-table th:nth-child(2),.insights-runs-table td:nth-child(2){width:98px}.insights-runs-table th:nth-child(3),.insights-runs-table td:nth-child(3){width:160px}.insights-runs-table th:nth-child(5),.insights-runs-table td:nth-child(5){width:136px}.insights-runs-table th:nth-child(6),.insights-runs-table td:nth-child(6){width:112px}.insights-severity{display:inline-flex;align-items:center;min-height:22px;border-radius:7px;padding:0 7px;font-size:12px}.insights-severity.nit{background:#3aa3ff1f;color:#8bc7ff}.insights-severity.concern{background:#f4c5421f;color:#f0d77a}.insights-severity.blocker{background:#ff706a24;color:#ff9b96}.insights-status,.insights-status-stack,.insights-time{overflow:hidden;color:var(--muted);text-overflow:ellipsis;white-space:nowrap}.insights-status-stack{display:grid;gap:3px}.insights-status-stack small{overflow:hidden;color:var(--muted);font-size:11px;text-overflow:ellipsis}.insights-copy{display:grid;gap:4px;min-width:0}.insights-copy strong,.insights-copy span{min-width:0;overflow-wrap:anywhere}.insights-copy strong{color:var(--text);font-size:13px;font-weight:600}.insights-copy span{color:var(--muted-strong);line-height:1.4}.insights-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;min-width:0}.insights-actions button{display:inline-grid;place-items:center;width:28px;height:28px;border:0;border-radius:7px;background:transparent;color:var(--muted);padding:0}.insights-actions .insights-text-action{width:auto;min-width:28px;padding:0 8px;white-space:nowrap}.insights-actions button:hover{background:#ffffff14;color:var(--text)}.insights-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--border);padding:8px 10px;color:var(--muted);font-size:12px}.insights-pagination>div{display:inline-flex;align-items:center;gap:10px}.insights-pagination button{min-height:28px;border:1px solid var(--border);border-radius:7px;background:transparent;color:var(--muted-strong);padding:0 9px;font-size:12px}.insights-pagination button:hover:not(:disabled){background:var(--panel-hover);color:var(--text)}.insights-pagination button:disabled{opacity:.42}@media(max-width:900px){.insights-filters{grid-template-columns:repeat(3,minmax(140px,1fr))}}@media(max-width:780px){.insights-view{width:min(100% - 32px,980px);padding:26px 0 42px}.insights-scan-preference{align-items:stretch;flex-direction:column;gap:12px}.insights-scan-controls{justify-content:space-between}.insights-filters{grid-template-columns:repeat(2,minmax(130px,1fr))}}@media(max-width:480px){.insights-filters{grid-template-columns:minmax(0,1fr)}}
@@ -1 +0,0 @@
1
- .settings-shell{position:relative;display:grid;grid-template-columns:300px minmax(0,1fr);height:100%;min-height:0;background:var(--bg)}.settings-window-controls{position:absolute;z-index:4;top:12px;right:12px;display:inline-flex;align-items:center;height:20px;-webkit-app-region:no-drag;app-region:no-drag}.settings-drag-region{position:absolute;z-index:2;top:0;right:0;left:300px;height:43px;-webkit-app-region:drag;app-region:drag}.settings-sidebar{min-height:0;border-right:1px solid var(--border);background:#101010;padding:12px 7px 0}.settings-shell.platform-macos .settings-sidebar{padding-top:43px}.settings-back{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;gap:8px;width:100%;min-height:32px;border:0;border-radius:12px;background:transparent;color:#8e8e8e;padding:0 10px;text-align:left;font-size:13px}.settings-back span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.settings-back:hover{color:var(--text);background:#ffffff0f}.settings-nav{display:grid;gap:3px;margin-top:10px}.settings-nav-group{display:grid;gap:3px}.settings-nav-group+.settings-nav-group{margin-top:8px;padding-top:8px;border-top:1px solid rgba(255,255,255,.06)}.settings-nav-heading{padding:3px 10px 5px;color:#8a8a8a;font-size:11px;font-weight:600}.settings-nav-item{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;gap:8px;min-height:29px;border:0;border-radius:10px;background:transparent;color:#f5f5f5;padding:0 10px;text-align:left;font-size:13px}.settings-nav-item.active{background:#2a2a2a}.settings-content{min-width:0;min-height:0;overflow:auto;padding:64px max(48px,12vw);scrollbar-width:none}.settings-content::-webkit-scrollbar{display:none}.account-settings{display:grid;gap:28px;max-width:760px}.account-settings h1{margin:0 0 24px;color:#f7f7f7;font-size:22px;font-weight:500;letter-spacing:0}.account-settings-title{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 24px}.account-settings-title h1{margin:0}
@@ -1 +0,0 @@
1
- import{d as _,r as m,m as b,j as e,V as I,w as W,ah as $,an as T,h as U,X as z,aB as B}from"./index-CU2qhUYV.js";import{G as R}from"./git-commit-horizontal-CAickXpN.js";import{R as q}from"./refresh-cw-N5b_6AP5.js";import{P as V}from"./play-CeRw21NV.js";const Q=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],X=_("rotate-ccw",Q),J=5e3;function K(t){const[a,s]=m.useState([]),[n,l]=m.useState(!1),[i,o]=m.useState(null),[r,g]=m.useState(()=>new Set);m.useEffect(()=>{if(!t){s([]),o(null),l(!1);return}let c=!1,u=null;async function N(h){if(!(!t||c)){h&&l(!0);try{const f=await b.localAgentSchedules(t);if(c)return;s(f.schedules),o(null)}catch(f){c||o(A(f))}finally{!c&&h&&l(!1)}}}return N(!0),u=window.setInterval(()=>{N(!1)},J),()=>{c=!0,u!==null&&window.clearInterval(u)}},[t]);async function p(){if(t){l(!0);try{const c=await b.syncLocalAgentSchedules(t);s(c.schedules),o(null)}catch(c){o(A(c))}finally{l(!1)}}}async function x(c){if(!(!t||r.has(c.id))){j(c.id,!0);try{await b.runLocalAgentSchedule(t,c.id);const u=await b.localAgentSchedules(t);s(u.schedules),o(null)}catch(u){o(A(u))}finally{j(c.id,!1)}}}async function d(c){if(!(!t||r.has(c.id))){j(c.id,!0);try{await b.patchLocalAgentSchedule(t,c.id,{enabled:!c.enabled});const u=await b.localAgentSchedules(t);s(u.schedules),o(null)}catch(u){o(A(u))}finally{j(c.id,!1)}}}function j(c,u){g(N=>{const h=new Set(N);return u?h.add(c):h.delete(c),h})}return{error:i,loading:n,pendingScheduleIds:r,refresh:p,run:x,schedules:a,toggle:d}}function A(t){return t instanceof Error?t.message:String(t)}function Y({connection:t,profile:a,selectedDefaultTeamId:s}){const n=K(t);return e.jsxs("div",{className:"account-list profile-agent-list","aria-label":"Profile agents",children:[e.jsxs("div",{className:"account-list-heading profile-agent-list-heading",children:[e.jsx("span",{children:"Agents"}),e.jsx("div",{className:"profile-skill-heading-actions",children:e.jsx("small",{children:te(n.schedules.length,n.loading)})})]}),a.agents.length||n.schedules.length?e.jsx("div",{className:"profile-agent-table-frame",children:e.jsxs("table",{className:"profile-agent-table","aria-label":"Profile agents table",children:[e.jsxs("colgroup",{children:[e.jsx("col",{className:"profile-agent-column"}),e.jsx("col",{className:"profile-action-column"}),e.jsx("col",{className:"profile-check-column"}),e.jsx("col",{className:"profile-sync-column"})]}),e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{scope:"col",children:"Agent"}),e.jsx("th",{scope:"col",children:"Action"}),e.jsx("th",{scope:"col",children:"Check"}),e.jsx("th",{scope:"col",children:"Sync"})]})}),e.jsxs("tbody",{children:[a.agents.map(l=>e.jsx(Z,{agent:l,defaultAction:a.summary.defaultAction,profile:a,selectedDefaultTeamId:s},l.id)),n.schedules.map(l=>e.jsx(ee,{pending:n.pendingScheduleIds.has(l.id),schedule:l,refreshing:n.loading,onRefresh:()=>{n.refresh()},onRun:()=>{n.run(l)},onToggle:()=>{n.toggle(l)}},l.id))]})]})}):e.jsxs("div",{className:"empty-account-list",children:[e.jsx("strong",{children:"No profile agents found"}),e.jsx("span",{children:"Create an agent, then run Profile checks to add it to the catalog."})]}),n.error?e.jsxs("div",{className:"profile-footline warning profile-agent-list-note",children:["Local schedules: ",n.error]}):null]})}function Z({agent:t,defaultAction:a,profile:s,selectedDefaultTeamId:n}){const l=ne(s,t,n);return e.jsxs("tr",{className:"profile-agent-row",children:[e.jsx("td",{children:e.jsxs("div",{className:"profile-agent-identity",children:[e.jsx(I,{size:18}),e.jsxs("div",{children:[e.jsx("strong",{children:t.name}),e.jsx("span",{title:t.path,children:t.path})]})]})}),e.jsx("td",{children:e.jsx("div",{className:"profile-agent-action",children:e.jsx("span",{children:a??"None"})})}),e.jsx("td",{children:e.jsx(H,{status:l.check})}),e.jsx("td",{children:e.jsx(H,{status:l.sync})})]})}function ee({pending:t,refreshing:a,schedule:s,onRefresh:n,onRun:l,onToggle:i}){const o=se(s),r=s.enabled?"Pause schedule":"Resume schedule";return e.jsxs("tr",{className:"profile-agent-row profile-schedule-agent-row",children:[e.jsx("td",{children:e.jsxs("div",{className:"profile-agent-identity",children:[e.jsx(I,{size:18}),e.jsxs("div",{children:[e.jsx("strong",{children:s.localProjectName}),e.jsxs("span",{title:s.scheduleName,children:["schedule: ",s.scheduleName]})]})]})}),e.jsx("td",{children:e.jsx("div",{className:"profile-agent-action",children:e.jsx("span",{title:s.targetAction,children:s.targetAction})})}),e.jsx("td",{children:e.jsx(H,{status:o})}),e.jsx("td",{children:e.jsxs("div",{className:"profile-schedule-actions",children:[e.jsx("span",{className:"profile-schedule-expression",title:ae(s),children:s.enabled?s.scheduleExpression:"Paused"}),e.jsxs("div",{className:"profile-schedule-controls","aria-label":`${s.scheduleName} schedule controls`,children:[e.jsx("button",{className:"settings-icon-button profile-schedule-button",disabled:a,type:"button",title:"Refresh local schedules","aria-label":"Refresh local schedules",onClick:n,children:e.jsx(q,{size:14,className:a?"settings-spin":void 0})}),e.jsx("button",{className:"settings-icon-button profile-schedule-button",disabled:t,type:"button",title:"Run now","aria-label":`Run ${s.scheduleName} now`,onClick:l,children:e.jsx(X,{size:14})}),e.jsx("button",{className:"settings-icon-button profile-schedule-button",disabled:t,type:"button",title:r,"aria-label":`${r}: ${s.scheduleName}`,onClick:i,children:s.enabled?e.jsx(W,{size:14}):e.jsx(V,{size:14})})]})]})})]})}function H({status:t}){return e.jsx("span",{className:`profile-status-text ${t.state}`,children:t.label})}function te(t,a){return a&&t===0?"Loading schedules":a?`${t} scheduled, refreshing`:t===1?"1 scheduled":t>1?`${t} scheduled`:"No schedules"}function se(t){return t.enabled?t.lastError||t.lastRunStatus==="failed"?{state:"warning",label:"Failed"}:t.lastRunStatus==="running"?{state:"loading",label:"Running"}:t.lastRunStatus==="queued"?{state:"loading",label:"Queued"}:t.lastRunStatus==="skipped"?{state:"warning",label:"Skipped"}:t.lastRunStatus==="succeeded"?{state:"ready",label:"Succeeded"}:{state:"loading",label:"Scheduled"}:{state:"disabled",label:"Paused"}}function ae(t){const a=[`${t.scheduleType}: ${t.scheduleExpression}`];return t.nextRunAt&&a.push(`next ${E(t.nextRunAt)}`),t.lastRunAt&&a.push(`last ${E(t.lastRunAt)}`),a.join(" - ")}function E(t){const a=new Date(t);return Number.isFinite(a.getTime())?a.toLocaleString(void 0,{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}):t}function ne(t,a,s){if(!a.enabled)return{check:{state:"disabled",label:"Disabled"},sync:{state:"disabled",label:"Disabled"}};if(t.error)return{check:{state:"warning",label:"Error"},sync:{state:"warning",label:"Blocked"}};if(t.setupGate.blockingCount>0)return{check:{state:"warning",label:"Setup"},sync:{state:"warning",label:"Blocked"}};if(t.git?.dirty||ie(t,a)>0)return{check:{state:"loading",label:"Pending"},sync:{state:"warning",label:"Changed"}};if(t.catalog.stale)return{check:{state:"loading",label:"Stale"},sync:{state:"loading",label:"Waiting"}};if(!t.lastCheck)return{check:{state:"loading",label:"Unchecked"},sync:{state:"loading",label:"Waiting"}};if(t.lastCheck.status==="failed")return{check:{state:"warning",label:"Failed"},sync:{state:"warning",label:"Blocked"}};if(!t.summary.checkFresh)return{check:{state:"loading",label:"Stale"},sync:{state:"loading",label:"Waiting"}};if(le(t,s))return{check:{state:"ready",label:"Passed"},sync:{state:"warning",label:"Sync acct"}};const n=t.summary.localHead??t.git?.head??null,l=t.hosted?.lastPushedLocalHead??null;return!(t.summary.hostedHead??t.hosted?.sourceCommitSha??null)&&!l?{check:{state:"ready",label:"Passed"},sync:{state:"loading",label:"Not synced"}}:n&&l&&n!==l?{check:{state:"ready",label:"Passed"},sync:{state:"loading",label:"Needed"}}:{check:{state:"ready",label:"Passed"},sync:{state:"ready",label:"Synced"}}}function le(t,a){const s=t.hosted?.teamId?.trim()??"";return!!(s&&a&&s!==a)}function ie(t,a){let s=0;t.diff.changedAgents.includes(a.id)&&(s+=1),t.diff.newAgents.includes(a.id)&&(s+=1),t.diff.deletedAgents.includes(a.id)&&(s+=1);const n=a.path.replace(/^profiles\/[^/]+\//,"");for(const l of t.diff.files){const i=l.path.replace(/^profiles\/[^/]+\//,"");(i===n||i.startsWith(`${n}/`)||i.startsWith(`agents/${a.id}/`))&&(s+=1)}return s}function ye({section:t="all",payload:a,connection:s,onPayload:n,onError:l,onToast:i,onSkillCommand:o,overviewContent:r}){const[g,p]=m.useState(""),[x,d]=m.useState("default"),[j,c]=m.useState(""),[u,N]=m.useState(null),h=a?.profile??null,f=a?.preferences.defaultTeamId?.trim()||"";m.useEffect(()=>{h&&(p(y=>y||h.repoPath||""),d(y=>y||h.activeProfile||"default"))},[h]);async function v(y){s&&(n(await b.bootstrap(s)),i?.(y,"success"))}async function C(y,G){if(!(!s||u)){N(y),l(null);try{await G()}catch(L){l(L instanceof Error?L.message:String(L))}finally{N(null)}}}function k(){C("init",async()=>{await b.profileInit(s,{path:g.trim()||null,profile:x.trim()||"default"}),await v("Profile initialized")})}function P(){C("load",async()=>{const y=g.trim();if(!y)throw new Error("Profile repo path is required.");await b.profileLoad(s,{path:y,profile:x.trim()||null}),await v("Profile loaded")})}function S(){C("commit",async()=>{await b.profileCommit(s,{message:j.trim()||null}),c(""),await v("Profile commit complete")})}function D(){C("push",async()=>{if(!f)throw new Error("Select a default team before syncing a hosted profile.");await b.profileCheck(s,{kind:"all"}),await b.profilePush(s,{teamId:f,ensureHosted:!0,message:null}),await v("Profile synced to hosted profile repo")})}return e.jsx("section",{className:"account-settings",children:h?.mode==="local"?e.jsxs(e.Fragment,{children:[t!=="agents"?e.jsxs(e.Fragment,{children:[e.jsx(M,{connection:s,profile:h,profileBusy:u,profileCommitMessage:j,profileName:x,profilePath:g,selectedDefaultTeamId:f,syncDisabledReason:ge(h,f),setProfileCommitMessage:c,setProfileName:d,setProfilePath:p,submitProfileCommit:S,submitProfileInit:k,submitProfileLoad:P,submitProfilePush:D}),r]}):null,t!=="profile"?e.jsx(Y,{connection:s,profile:h,selectedDefaultTeamId:f}):null,t!=="agents"?e.jsx(de,{onSkillCommand:o,profile:h}):null]}):t==="agents"?e.jsxs("div",{className:"account-list",children:[e.jsxs("div",{className:"account-list-heading",children:[e.jsx("span",{children:"Agents"}),e.jsx("small",{children:"Profile required"})]}),e.jsxs("div",{className:"empty-account-list",children:[e.jsx("strong",{children:"No local Profile loaded"}),e.jsx("span",{children:"Open the Profile tab to create or load a Profile before managing agents."})]})]}):e.jsxs("div",{className:"account-list",children:[e.jsxs("div",{className:"account-list-heading",children:[e.jsx("span",{children:"Summary"}),e.jsx("small",{children:"Not loaded"})]}),e.jsxs("div",{className:"empty-account-list",children:[e.jsx("strong",{children:"No local profile loaded"}),e.jsx("span",{children:"Create a default profile here, or load an existing profile repo path."}),e.jsx(M,{connection:s,inline:!0,profile:null,profileBusy:u,profileCommitMessage:j,profileName:x,profilePath:g,selectedDefaultTeamId:f,syncDisabledReason:"Load a local profile before syncing.",setProfileCommitMessage:c,setProfileName:d,setProfilePath:p,submitProfileCommit:S,submitProfileInit:k,submitProfileLoad:P,submitProfilePush:D})]})]})})}function M({connection:t,inline:a=!1,profile:s,profileBusy:n,profileCommitMessage:l,profileName:i,profilePath:o,selectedDefaultTeamId:r,syncDisabledReason:g,setProfileCommitMessage:p,setProfileName:x,setProfilePath:d,submitProfileCommit:j,submitProfileInit:c,submitProfileLoad:u,submitProfilePush:N}){const[h,f]=m.useState(!1),[v,C]=m.useState(!1),[k,P]=m.useState(!1),S=!t||!!n;return e.jsxs("div",{className:`profile-control-panel ${a?"inline":""}`,children:[e.jsx("div",{className:"profile-control-toolbar",children:e.jsxs("div",{className:"profile-control-actions",children:[a?null:e.jsxs(e.Fragment,{children:[e.jsxs("button",{className:"settings-secondary",disabled:S,type:"button",onClick:()=>C(!0),children:[e.jsx(R,{size:14}),e.jsx("span",{children:n==="commit"?"Committing":"Commit"})]}),e.jsxs("button",{className:"settings-secondary",disabled:S||!s,type:"button",onClick:()=>P(!0),children:[e.jsx($,{size:14}),e.jsx("span",{children:n==="push"?"Syncing":"Sync"})]})]}),e.jsxs("button",{className:"settings-secondary",disabled:!!n,type:"button",onClick:()=>f(!0),children:[e.jsx(T,{size:14}),e.jsx("span",{children:"Repo"})]}),!a&&s?e.jsxs("span",{className:"profile-hosted-status",title:`Hosted profile status: ${F(s,r)}`,children:[e.jsx($,{size:14}),e.jsx("span",{children:"Hosted"}),e.jsx("strong",{children:F(s,r)})]}):null]})}),h?e.jsx(re,{disabled:S,profileBusy:n,profileName:i,profilePath:o,setProfileName:x,setProfilePath:d,submitProfileInit:c,submitProfileLoad:u,onClose:()=>f(!1)}):null,v?e.jsx(oe,{disabled:S,profileBusy:n,profileCommitMessage:l,setProfileCommitMessage:p,submitProfileCommit:j,onClose:()=>C(!1)}):null,k&&s?e.jsx(ce,{disabled:S,profile:s,profileBusy:n,selectedDefaultTeamId:r,syncDisabledReason:g,submitProfilePush:N,onClose:()=>P(!1)}):null]})}function oe({disabled:t,profileBusy:a,profileCommitMessage:s,setProfileCommitMessage:n,submitProfileCommit:l,onClose:i}){function o(r){r.preventDefault(),!t&&(l(),i())}return e.jsx("div",{className:"git-dialog-backdrop",role:"presentation",onMouseDown:i,children:e.jsxs("form",{className:"git-dialog profile-commit-dialog",role:"dialog","aria-modal":"true","aria-labelledby":"profile-commit-dialog-title",onMouseDown:r=>r.stopPropagation(),onSubmit:o,children:[e.jsx("button",{className:"git-dialog-close",disabled:!!a,type:"button",title:"Close","aria-label":"Close",onClick:i,children:e.jsx(z,{size:14})}),e.jsx("div",{className:"git-dialog-icon",children:e.jsx(R,{size:18})}),e.jsx("h2",{id:"profile-commit-dialog-title",children:"Commit profile"}),e.jsxs("label",{className:"git-dialog-field",children:[e.jsx("span",{children:"Commit message"}),e.jsx("input",{autoFocus:!0,value:s,disabled:!!a,placeholder:"Update OpenPond profile",onChange:r=>n(r.target.value)})]}),e.jsxs("div",{className:"git-dialog-footer",children:[e.jsx("button",{className:"git-dialog-secondary",disabled:!!a,type:"button",onClick:i,children:"Cancel"}),e.jsxs("button",{className:"git-dialog-primary",disabled:t,type:"submit",children:[e.jsx(R,{size:14}),e.jsx("span",{children:a==="commit"?"Committing":"Commit"})]})]})]})})}function ce({disabled:t,profile:a,profileBusy:s,selectedDefaultTeamId:n,syncDisabledReason:l,submitProfilePush:i,onClose:o}){const r=fe(a,n),g=r.reduce((d,j)=>d+j.count,0),p=!t&&!l;function x(d){d.preventDefault(),p&&(i(),o())}return e.jsx("div",{className:"git-dialog-backdrop",role:"presentation",onMouseDown:o,children:e.jsxs("form",{className:"git-dialog profile-sync-dialog",role:"dialog","aria-modal":"true","aria-labelledby":"profile-sync-dialog-title",onMouseDown:d=>d.stopPropagation(),onSubmit:x,children:[e.jsx("button",{className:"git-dialog-close",disabled:!!s,type:"button",title:"Close","aria-label":"Close",onClick:o,children:e.jsx(z,{size:14})}),e.jsx("div",{className:"git-dialog-icon",children:e.jsx($,{size:18})}),e.jsx("h2",{id:"profile-sync-dialog-title",children:"Sync profile"}),e.jsxs("div",{className:"profile-dialog-summary",children:[e.jsxs("strong",{children:[g," ",g===1?"item":"items"," out of sync"]}),e.jsxs("span",{children:["Local ",w(a.summary.localHead??a.git?.head)," - Last pushed"," ",w(a.hosted?.lastPushedLocalHead)]})]}),r.length?e.jsx("div",{className:"profile-dialog-diff-list","aria-label":"Profile sync differences",children:r.map(d=>e.jsxs("div",{className:`profile-dialog-diff-row ${d.tone??""}`,children:[e.jsx("strong",{children:d.label}),e.jsx("span",{children:d.detail})]},d.label))}):e.jsx("div",{className:"profile-dialog-diff-list","aria-label":"Profile sync differences",children:e.jsxs("div",{className:"profile-dialog-diff-row",children:[e.jsx("strong",{children:"Aligned"}),e.jsx("span",{children:"Current local profile source has already been pushed."})]})}),l?e.jsx("div",{className:"profile-dialog-warning",children:l}):null,e.jsxs("div",{className:"git-dialog-footer",children:[e.jsx("button",{className:"git-dialog-secondary",disabled:!!s,type:"button",onClick:o,children:"Cancel"}),e.jsxs("button",{className:"git-dialog-primary",disabled:!p,type:"submit",children:[e.jsx($,{size:14}),e.jsx("span",{children:s==="push"?"Syncing":"Confirm sync"})]})]})]})})}function re({disabled:t,profileBusy:a,profileName:s,profilePath:n,setProfileName:l,setProfilePath:i,submitProfileInit:o,submitProfileLoad:r,onClose:g}){function p(d){d.preventDefault(),!(t||!n.trim())&&(r(),g())}function x(){t||(o(),g())}return e.jsx("div",{className:"git-dialog-backdrop",role:"presentation",onMouseDown:g,children:e.jsxs("form",{className:"git-dialog profile-path-dialog",role:"dialog","aria-modal":"true","aria-labelledby":"profile-path-dialog-title",onMouseDown:d=>d.stopPropagation(),onSubmit:p,children:[e.jsx("button",{className:"git-dialog-close",disabled:!!a,type:"button",title:"Close","aria-label":"Close",onClick:g,children:e.jsx(z,{size:14})}),e.jsx("div",{className:"git-dialog-icon",children:e.jsx(T,{size:18})}),e.jsx("h2",{id:"profile-path-dialog-title",children:"Profile repo"}),e.jsxs("label",{className:"git-dialog-field",children:[e.jsx("span",{children:"Profile repo path"}),e.jsx("input",{value:n,disabled:!!a,placeholder:"~/.openpond/profiles/default-repo",onChange:d=>i(d.target.value)})]}),e.jsxs("label",{className:"git-dialog-field",children:[e.jsx("span",{children:"Active profile"}),e.jsx("input",{value:s,disabled:!!a,placeholder:"default",onChange:d=>l(d.target.value)})]}),e.jsxs("div",{className:"git-dialog-footer",children:[e.jsx("button",{className:"git-dialog-secondary",disabled:!!a,type:"button",onClick:g,children:"Close"}),e.jsxs("button",{className:"git-dialog-secondary",disabled:t,type:"button",onClick:x,children:[e.jsx(U,{size:14}),e.jsx("span",{children:a==="init"?"Creating":"Create"})]}),e.jsxs("button",{className:"git-dialog-primary",disabled:t||!n.trim(),type:"submit",children:[e.jsx(q,{size:14,className:a==="load"?"settings-spin":void 0}),e.jsx("span",{children:a==="load"?"Loading":"Load"})]})]})]})})}function de({onSkillCommand:t,profile:a}){const s=a.skills.slice().sort((i,o)=>i.name.localeCompare(o.name)),n=!t;function l(i){t?.(i)}return e.jsxs("div",{className:"account-list profile-skill-list",children:[e.jsxs("div",{className:"account-list-heading profile-agent-list-heading",children:[e.jsx("span",{children:"Skills"}),e.jsxs("div",{className:"profile-skill-heading-actions",children:[e.jsxs("small",{children:[a.skillCatalog.skillCount," tracked"]}),e.jsxs("button",{className:"settings-secondary",disabled:n,type:"button",title:"Create profile skill",onClick:()=>l("/skill create "),children:[e.jsx(U,{size:14}),e.jsx("span",{children:"Create"})]})]})]}),s.length?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"profile-skill-table-head","aria-hidden":"true",children:[e.jsx("span",{children:"Skill"}),e.jsx("span",{children:"Trigger"}),e.jsx("span",{children:"Status"}),e.jsx("span",{children:"Source"}),e.jsx("span",{children:"Actions"})]}),s.map(i=>e.jsx(ue,{commandDisabled:n,onSkillCommand:l,skill:i},i.name))]}):e.jsxs("div",{className:"empty-account-list",children:[e.jsx("strong",{children:"No profile skills found"}),e.jsx("span",{children:"Use /skill create to add reusable profile instructions."})]})]})}function ue({commandDisabled:t,onSkillCommand:a,skill:s}){const n=s.validationStatus==="valid"?{state:"ready",label:"valid"}:{state:"warning",label:s.validationStatus};return e.jsxs("div",{className:"product-row profile-skill-row",children:[e.jsxs("div",{className:"profile-agent-identity",children:[e.jsx(B,{size:18}),e.jsxs("div",{children:[e.jsx("strong",{children:s.name}),e.jsx("span",{title:s.path,children:s.path})]})]}),e.jsx("div",{className:"profile-skill-description",title:s.description,children:s.description||"No description"}),e.jsx(he,{status:n}),e.jsx("div",{className:"profile-agent-action",children:e.jsx("span",{title:s.sourcePath,children:s.sourcePath})}),e.jsxs("div",{className:"profile-skill-actions",children:[e.jsx("button",{className:"settings-secondary compact",disabled:t||!s.enabled,type:"button",title:`Use ${s.name}`,onClick:()=>a(`$${s.name} `),children:e.jsx("span",{children:"Use"})}),e.jsx("button",{className:"settings-secondary compact",disabled:t,type:"button",title:`Edit ${s.name}`,onClick:()=>a(`/skill edit ${s.name} `),children:e.jsx("span",{children:"Edit"})})]})]})}function he({status:t}){return e.jsx("span",{className:`profile-status-text ${t.state}`,children:t.label})}function w(t){return t?t.slice(0,10):"None"}function F(t,a){return O(t,a)?"Sync this account":t.hosted?.sourceCommitSha?`${t.hosted.promotionStatus??"uploaded"} ${w(t.hosted.sourceCommitSha)}`:"Not pushed"}function ge(t,a){return a?t.git?.head?t.git.dirty?"Commit local profile changes before syncing.":null:"Commit the profile before syncing.":"Select a default team before syncing."}function fe(t,a){const s=[],n=t.summary.localHead??t.git?.head??null,l=t.hosted?.lastPushedLocalHead??null,i=t.summary.hostedHead??t.hosted?.sourceCommitSha??null;if(O(t,a)&&s.push({label:"Account",detail:"Hosted profile metadata was synced under a different default team.",count:1,tone:"warning"}),!i&&!l?s.push({label:"Hosted source",detail:"No hosted profile commit has been recorded.",count:1}):n&&l&&n!==l&&s.push({label:"Commit",detail:`Local ${w(n)} has not been pushed since ${w(l)}.`,count:1}),t.git?.dirty){const r=t.git.files.length||t.diff.files.length||1;s.push({label:"Uncommitted files",detail:`${r} local ${r===1?"file":"files"} changed.`,count:r,tone:"warning"})}const o=t.diff.changedAgents.length+t.diff.newAgents.length+t.diff.deletedAgents.length+t.diff.changedSkills.length+t.diff.changedActions.length+t.diff.changedExtensions.length+t.diff.setupChanges.length+t.diff.envRequirementChanges.length;return o>0&&s.push({label:"Profile changes",detail:me(t),count:o,tone:t.git?.dirty?"warning":void 0}),t.catalog.stale&&s.push({label:"Catalog",detail:"Action catalog artifacts are stale or missing.",count:1,tone:"warning"}),t.setupGate.blockingCount>0&&s.push({label:"Setup",detail:`${t.setupGate.blockingCount} blocking setup ${t.setupGate.blockingCount===1?"requirement":"requirements"}.`,count:t.setupGate.blockingCount,tone:"warning"}),s}function me(t){const a=[],s=t.diff.changedAgents.length+t.diff.newAgents.length+t.diff.deletedAgents.length;return s&&a.push(`${s} agent ${s===1?"change":"changes"}`),t.diff.changedActions.length&&a.push(`${t.diff.changedActions.length} action ${t.diff.changedActions.length===1?"change":"changes"}`),t.diff.changedSkills.length&&a.push(`${t.diff.changedSkills.length} skill ${t.diff.changedSkills.length===1?"change":"changes"}`),t.diff.changedExtensions.length&&a.push(`${t.diff.changedExtensions.length} extension ${t.diff.changedExtensions.length===1?"change":"changes"}`),t.diff.setupChanges.length&&a.push(`${t.diff.setupChanges.length} setup ${t.diff.setupChanges.length===1?"change":"changes"}`),t.diff.envRequirementChanges.length&&a.push(`${t.diff.envRequirementChanges.length} env ${t.diff.envRequirementChanges.length===1?"change":"changes"}`),a.join(", ")||"Profile source has local changes."}function O(t,a){const s=t.hosted?.teamId?.trim()??"";return!!(s&&a&&s!==a)}export{ye as P,X as R};
@@ -1 +0,0 @@
1
- import{j as r}from"./index-CU2qhUYV.js";import{P as n}from"./ProfileSettingsSection-DxEzoF3K.js";/* empty css */import"./git-commit-horizontal-CAickXpN.js";import"./refresh-cw-N5b_6AP5.js";import"./play-CeRw21NV.js";function g({section:i="all",payload:e,connection:o,onPayload:t,onError:s,onToast:l,onSkillCommand:m,overviewContent:a}){return r.jsx("section",{className:"profile-view","aria-label":i==="agents"?"Agents":"Profile",children:r.jsx(n,{section:i,payload:e,connection:o,onPayload:t,onError:s,onToast:l,onSkillCommand:m,overviewContent:a})})}export{g as ProfileView};