openpond 0.0.34 → 0.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{app-layer-UQQNF5VZ.js → app-layer-4AA4YYGK.js} +3 -3
- package/dist/chunks/{apps-7NSC56K5.js → apps-V2JTB5MD.js} +3 -3
- package/dist/chunks/{chunk-EBCLEJRO.js → chunk-3DOOLZZM.js} +1 -1
- package/dist/chunks/{chunk-ZRNFOHFH.js → chunk-3JJBNVNX.js} +3 -3
- package/dist/chunks/{chunk-UASXM3RR.js → chunk-65BVQIHR.js} +4 -4
- package/dist/chunks/{chunk-E3RLJ5XT.js → chunk-6L5WJF7T.js} +2 -2
- package/dist/chunks/{chunk-G7XOSECC.js → chunk-7IPF4X3K.js} +1033 -529
- package/dist/chunks/{chunk-HGZ3O4TS.js → chunk-CJSD5ADV.js} +2 -2
- package/dist/chunks/{chunk-2GCNPJMD.js → chunk-G6WW2656.js} +1 -1
- package/dist/chunks/{chunk-5MM3P5KY.js → chunk-GALAW74P.js} +2 -2
- package/dist/chunks/{chunk-TF234YN4.js → chunk-JAS6QZ2W.js} +1 -1
- package/dist/chunks/{chunk-ZDEBKTWR.js → chunk-MJT7EW5Q.js} +1 -1
- package/dist/chunks/{chunk-MMDKFTJB.js → chunk-MSX2J653.js} +1 -1
- package/dist/chunks/{chunk-U4TUOBXO.js → chunk-NVTC3XOA.js} +1 -1
- package/dist/chunks/{chunk-B5CFIWWU.js → chunk-NWQTF6O4.js} +1 -1
- package/dist/chunks/{chunk-F6FFL3AA.js → chunk-NWVIUBJ3.js} +2 -2
- package/dist/chunks/{chunk-JVTACGKD.js → chunk-TYYR7KWY.js} +3 -3
- package/dist/chunks/{chunk-V7SHAMUN.js → chunk-YLULZMWE.js} +33 -33
- package/dist/chunks/{chunk-BZPAW4JY.js → chunk-YRFQKUZD.js} +958 -528
- package/dist/chunks/{cli-VEDK2B42.js → cli-4JA3SIDE.js} +6 -6
- package/dist/chunks/{cli-4ETE5RS2.js → cli-RJHEE4FA.js} +4 -4
- package/dist/chunks/{core-commands-J3IQGQOL.js → core-commands-CQSPCVC4.js} +4 -4
- package/dist/chunks/{extend-3F3LLDOF.js → extend-4MZ75SHV.js} +9 -9
- package/dist/chunks/{harness-JER7P6MJ.js → harness-YVZU42S7.js} +3 -3
- package/dist/chunks/{help-75NFCYJ4.js → help-6SULYXVS.js} +1 -1
- package/dist/chunks/{opchat-UT5V7MR2.js → opchat-XGS4AXHA.js} +5 -5
- package/dist/chunks/{organizations-ERKRLVNQ.js → organizations-4GFQ3NT2.js} +4 -4
- package/dist/chunks/{profile-A3CUSDIF.js → profile-VWMBIHIE.js} +7 -7
- package/dist/chunks/{project-agent-FCV5HPYT.js → project-agent-SQ6ODALG.js} +6 -6
- package/dist/chunks/{sandbox-command-L2QPIWZ5.js → sandbox-command-34S2V7BN.js} +4 -4
- package/dist/chunks/{sandbox-template-XOIWROEK.js → sandbox-template-VP5HMGQI.js} +5 -5
- package/dist/chunks/{src-V4FUQNHR.js → src-X3R3XIJT.js} +27795 -24249
- package/dist/chunks/{src-ENVQ7ARM.js → src-YHUMH6W6.js} +2 -2
- package/dist/chunks/{teams-bot-OR3ZJHQ5.js → teams-bot-EIVRNO5S.js} +3 -3
- package/dist/chunks/{workspaces-L73SRLPA.js → workspaces-2N52V3BI.js} +2 -2
- package/dist/cli.js +10 -10
- package/dist/web/assets/AppDialog-j4N-gIi3.js +1 -0
- package/dist/web/assets/{AppsView-CLjjVkjr.js → AppsView-YiK3pqNb.js} +1 -1
- package/dist/web/assets/{BrowserSidebar-CkNO8723.js → BrowserSidebar-BWFLEQ8j.js} +1 -1
- package/dist/web/assets/CloudWorkView-3sS_1bhN.js +1 -0
- package/dist/web/assets/CommandMenu-B11OrTCq.js +1 -0
- package/dist/web/assets/CommunityView-DXyXTWhP.js +1 -0
- package/dist/web/assets/ComposerCreateImproveStrip-3NoRiJJq.js +1 -0
- package/dist/web/assets/GetStartedView-CPV5lgVH.js +1 -0
- package/dist/web/assets/GetStartedView-DBLdduwr.css +1 -0
- package/dist/web/assets/LabsRoute-B_nsEZXy.js +3 -0
- package/dist/web/assets/LabsRoute-dNN-odU0.css +1 -0
- package/dist/web/assets/MainChatThread-Dg7p3R2O.js +2 -0
- package/dist/web/assets/MakeAgentTutorialLearningPanel-C6F-kJQd.js +2 -0
- package/dist/web/assets/MarkdownText-CkVkr3P1.js +7 -0
- package/dist/web/assets/Messages-C7uHGoFw.js +10 -0
- package/dist/web/assets/NativeSkillSidebar-BPpoHjEW.js +1 -0
- package/dist/web/assets/NativeSkillSidebar-T8KXjnUH.css +1 -0
- package/dist/web/assets/{NewProjectDialog-PrbA4fL6.js → NewProjectDialog-DBMhkTvD.js} +1 -1
- package/dist/web/assets/PostTrainingLearningPanel-B1Rp7iIL.js +2 -0
- package/dist/web/assets/PostTrainingStatusPill-BGZ9h5eW.js +1 -0
- package/dist/web/assets/ProfileSettingsSection-2NOHEz2b.js +1 -0
- package/dist/web/assets/{ProfileSettingsSection-CqnfjiCl.css → ProfileSettingsSection-Cg4tKO-C.css} +1 -1
- package/dist/web/assets/RightChatPanelStack-CLK7_zKe.js +1 -0
- package/dist/web/assets/SettingsView-BAqea_KX.js +6 -0
- package/dist/web/assets/SettingsView-uHhQnazW.css +1 -0
- package/dist/web/assets/TeamChatView-qVscSedQ.js +3 -0
- package/dist/web/assets/{TerminalOverlay-DaGfEprz.js → TerminalOverlay-Bkw7XqMy.js} +11 -11
- package/dist/web/assets/TrainingCreationPanel-COg1wvw8.js +1 -0
- package/dist/web/assets/{TrainingDraftPanel-BX5CCqlO.js → TrainingDraftPanel-BNK2znmI.js} +1 -1
- package/dist/web/assets/UsageSettingsSection-CUxBaohC.js +59 -0
- package/dist/web/assets/UsageSettingsSection-O8VK0qBL.css +1 -0
- package/dist/web/assets/WorkspaceDiffPanel-qfFj8IRq.js +14 -0
- package/dist/web/assets/WorkspaceEnvironmentMenu-C0-mH7oF.js +32 -0
- package/dist/web/assets/WorkspaceGitDialogs-VvC2px0X.js +1 -0
- package/dist/web/assets/{WorkspaceMonacoEditor-C0fDue2d.js → WorkspaceMonacoEditor-CUIwoHv1.js} +3 -3
- package/dist/web/assets/activity-BhqHgkfJ.js +1 -0
- package/dist/web/assets/{boxes-CXLqRF98.js → boxes-BpqUKFIm.js} +1 -1
- package/dist/web/assets/chevron-up-BTn9DVRP.js +1 -0
- package/dist/web/assets/circle-x-B9Qa8o5a.js +1 -0
- package/dist/web/assets/copy-BsYs6wBI.js +1 -0
- package/dist/web/assets/{create-pipeline-request-C26NOc7v.js → create-pipeline-request-vxgKoAvv.js} +3 -3
- package/dist/web/assets/credit-card-BCePAwMI.js +1 -0
- package/dist/web/assets/{cssMode-DmtwKUVm.js → cssMode-mw8RI2fR.js} +1 -1
- package/dist/web/assets/git-branch-C7qQYFIs.js +1 -0
- package/dist/web/assets/{git-commit-horizontal-CDDZl4iA.js → git-commit-horizontal-CbX4pTOA.js} +1 -1
- package/dist/web/assets/{htmlMode-Box0EOm1.js → htmlMode-Cc4Czh_M.js} +1 -1
- package/dist/web/assets/index-9tbdqUau.css +1 -0
- package/dist/web/assets/index-B_3z_lxq.js +1 -0
- package/dist/web/assets/index-Cr_RZ7GD.js +177 -0
- package/dist/web/assets/{info-4Iy6BKvT.js → info-BNGbwgtq.js} +1 -1
- package/dist/web/assets/{jsonMode-g7t_3HFv.js → jsonMode-CbqbqGVz.js} +1 -1
- package/dist/web/assets/{lspLanguageFeatures-CwhFOYc9.js → lspLanguageFeatures-DKiKr5tH.js} +1 -1
- package/dist/web/assets/make-agent-tutorial-KKauJpB9.js +2 -0
- package/dist/web/assets/{monaco.contribution-B-QC_ls9.js → monaco.contribution-CNgwz_pw.js} +2 -2
- package/dist/web/assets/{monaco.contribution-DGZAePHI.js → monaco.contribution-CdUAX47Q.js} +2 -2
- package/dist/web/assets/{monaco.contribution-CwMt3eHi.js → monaco.contribution-D_-wu578.js} +2 -2
- package/dist/web/assets/{monaco.contribution-CW2ctrTm.js → monaco.contribution-Dxc4IxFM.js} +2 -2
- package/dist/web/assets/{monitor-DOVjBLkr.js → monitor-CNdx_GTg.js} +1 -1
- package/dist/web/assets/{play-DLCuESeG.js → play-BLRANWaV.js} +1 -1
- package/dist/web/assets/{python-DRNmHcYd.js → python-DYgDMu2R.js} +1 -1
- package/dist/web/assets/{refresh-cw-JNUovwk4.js → refresh-cw-BFjjwYNf.js} +1 -1
- package/dist/web/assets/{reply-D4QvJyzE.js → reply-D012cuZl.js} +1 -1
- package/dist/web/assets/rotate-cw-CTfjlR4G.js +1 -0
- package/dist/web/assets/{save-BR4O4UDP.js → save-B1zYlRyN.js} +1 -1
- package/dist/web/assets/{toggleHighContrast-CrfdWIsV.js → toggleHighContrast-D9XFH7EA.js} +1 -1
- package/dist/web/assets/training-BN8CALIc.css +1 -0
- package/dist/web/assets/{tsMode-ZuV9go1B.js → tsMode-BU-tuKsY.js} +1 -1
- package/dist/web/assets/upload-DU_81jvL.js +1 -0
- package/dist/web/assets/{wifi-off-XFVqsf4c.js → wifi-off-TPsBnbGW.js} +1 -1
- package/dist/web/assets/{workers-CJpO1Wzj.js → workers-NhWySRdT.js} +1 -1
- package/dist/web/assets/{yaml-AQ4ok5ED.js → yaml-DWXa_3ZL.js} +1 -1
- package/dist/web/courses/post-training/01-how-post-training-works-poster.webp +0 -0
- package/dist/web/courses/post-training/01-how-post-training-works.vtt +25 -0
- package/dist/web/courses/post-training/02-definitions-poster.webp +0 -0
- package/dist/web/courses/post-training/02-definitions.vtt +117 -0
- package/dist/web/courses/post-training/03-on-policy-off-policy-poster.webp +0 -0
- package/dist/web/courses/post-training/03-on-policy-off-policy.vtt +29 -0
- package/dist/web/courses/post-training/04-rewards-credit-assignment-poster.webp +0 -0
- package/dist/web/courses/post-training/04-rewards-credit-assignment.vtt +65 -0
- package/dist/web/courses/post-training/05-verifiable-rewards-rlvr-poster.webp +0 -0
- package/dist/web/courses/post-training/05-verifiable-rewards-rlvr.vtt +69 -0
- package/dist/web/courses/post-training/06-ppo-grpo-poster.webp +0 -0
- package/dist/web/courses/post-training/06-ppo-grpo.vtt +65 -0
- package/dist/web/courses/post-training/07-distillation-poster.webp +0 -0
- package/dist/web/courses/post-training/07-distillation.vtt +53 -0
- package/dist/web/courses/post-training/08-opsd-sdft-sdpo-poster.webp +0 -0
- package/dist/web/courses/post-training/08-opsd-sdft-sdpo.vtt +61 -0
- package/dist/web/courses/post-training/09-credible-experiments-poster.webp +0 -0
- package/dist/web/courses/post-training/09-credible-experiments.vtt +69 -0
- package/dist/web/courses/post-training/10-technical-appendix-poster.webp +0 -0
- package/dist/web/courses/post-training/10-technical-appendix.vtt +69 -0
- package/dist/web/courses/post-training/full-course-poster.webp +0 -0
- package/dist/web/courses/post-training/full-course.vtt +623 -0
- package/dist/web/courses/post-training/scripts/script_01.md +31 -0
- package/dist/web/courses/post-training/scripts/script_02.md +49 -0
- package/dist/web/courses/post-training/scripts/script_03.md +35 -0
- package/dist/web/courses/post-training/scripts/script_04.md +43 -0
- package/dist/web/courses/post-training/scripts/script_05.md +43 -0
- package/dist/web/courses/post-training/scripts/script_06.md +41 -0
- package/dist/web/courses/post-training/scripts/script_07.md +37 -0
- package/dist/web/courses/post-training/scripts/script_08.md +37 -0
- package/dist/web/courses/post-training/scripts/script_09.md +45 -0
- package/dist/web/courses/post-training/scripts/script_10.md +47 -0
- package/dist/web/index.html +2 -2
- package/dist/web/tutorials/how-to-make-an-agent-create-poster.png +0 -0
- package/dist/web/tutorials/how-to-make-an-agent-create.vtt +49 -0
- package/dist/web/tutorials/how-to-make-an-agent-improve-poster.png +0 -0
- package/dist/web/tutorials/how-to-make-an-agent-improve.vtt +45 -0
- package/dist/web/tutorials/how-to-make-an-agent-poster.png +0 -0
- package/dist/web/tutorials/how-to-make-an-agent-use-poster.png +0 -0
- package/dist/web/tutorials/how-to-make-an-agent-use.vtt +33 -0
- package/dist/web/tutorials/how-to-make-an-agent.vtt +125 -0
- package/dist/web/tutorials/what-is-an-openpond-agent-poster.png +0 -0
- package/dist/web/tutorials/what-is-an-openpond-agent.vtt +25 -0
- package/package.json +1 -1
- package/dist/web/assets/CloudWorkView-Cu_VqkaD.js +0 -1
- package/dist/web/assets/CommandMenu-DWtdkvmq.js +0 -1
- package/dist/web/assets/CommunityView-f03qOTER.js +0 -1
- package/dist/web/assets/ComposerCreateImproveStrip-CZpiQJsJ.js +0 -1
- package/dist/web/assets/GetStartedView-C3ZrnEz5.css +0 -1
- package/dist/web/assets/GetStartedView-CLMmryTG.js +0 -1
- package/dist/web/assets/LabsRoute-BwR2g71k.js +0 -4
- package/dist/web/assets/LabsRoute-CgKtVYTP.css +0 -1
- package/dist/web/assets/ProfileSettingsSection-CD_x_V8d.js +0 -1
- package/dist/web/assets/SettingsView-BMmlKvlB.js +0 -63
- package/dist/web/assets/SettingsView-CAPf81v3.css +0 -1
- package/dist/web/assets/TeamChatView-B5SlhDso.js +0 -3
- package/dist/web/assets/TrainingComputeDialog-BFY6E0yU.js +0 -1
- package/dist/web/assets/TrainingCreationPanel-Cp66gMed.js +0 -1
- package/dist/web/assets/WorkspaceDiffPanel-D7ZEbryF.js +0 -14
- package/dist/web/assets/WorkspaceEnvironmentMenu-D4DmAJaS.js +0 -32
- package/dist/web/assets/WorkspaceGitDialogs-DHOfJxbL.js +0 -1
- package/dist/web/assets/index-8H-GDlM5.css +0 -1
- package/dist/web/assets/index-BUyeKpY6.js +0 -1
- package/dist/web/assets/index-CKmte5ok.js +0 -192
- package/dist/web/assets/training-DeVTd0m8.css +0 -1
- package/dist/web/assets/useComputeSettings-DUNS6uOl.js +0 -1
- package/dist/web/assets/useComputeSettings-R2Sw621I.css +0 -1
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
WEBVTT
|
|
2
|
+
|
|
3
|
+
C01
|
|
4
|
+
00:00:03.670 --> 00:00:09.855
|
|
5
|
+
Open Lab, choose New agent, and start the guided creation flow.
|
|
6
|
+
|
|
7
|
+
C02
|
|
8
|
+
00:00:09.575 --> 00:00:17.817
|
|
9
|
+
Choose From prompt to describe the Agent directly, or From chats to include examples of the work it should handle.
|
|
10
|
+
|
|
11
|
+
C04
|
|
12
|
+
00:00:17.537 --> 00:00:27.159
|
|
13
|
+
This synthetic example starts with three chats: Acme has renewal blockers, Northstar is expanding, and the team needs a weekly account review. Add them with the Agent purpose.
|
|
14
|
+
|
|
15
|
+
C06
|
|
16
|
+
00:00:26.879 --> 00:00:36.819
|
|
17
|
+
Review the selected excerpts as examples. OpenPond turns their recurring goals, decisions, corrections, and answer patterns into the first Agent plan.
|
|
18
|
+
|
|
19
|
+
C07
|
|
20
|
+
00:00:36.539 --> 00:00:46.658
|
|
21
|
+
The draft converts those examples into the Agent's purpose, chat behavior, runnable actions, output formats, and Evals for your review.
|
|
22
|
+
|
|
23
|
+
C08
|
|
24
|
+
00:00:46.378 --> 00:00:52.652
|
|
25
|
+
The right side panel asks how the Agent should prioritize conflicting account risks.
|
|
26
|
+
|
|
27
|
+
C09
|
|
28
|
+
00:00:52.372 --> 00:01:00.753
|
|
29
|
+
Before creation, review the proposed name, chat endpoint, runnable actions, Evals, and output formats.
|
|
30
|
+
|
|
31
|
+
C09A
|
|
32
|
+
00:01:00.473 --> 00:01:09.071
|
|
33
|
+
If the plan misses a requirement, open Edit plan and describe the change in plain language before any Agent source is created.
|
|
34
|
+
|
|
35
|
+
C09B
|
|
36
|
+
00:01:08.791 --> 00:01:16.049
|
|
37
|
+
Review the revised plan, then click Confirm plan to create the Agent and run its Evals.
|
|
38
|
+
|
|
39
|
+
C10
|
|
40
|
+
00:01:15.769 --> 00:01:24.189
|
|
41
|
+
This is the creation result: OpenPond built the Agent and passed its behavior Evals against the Account Health examples.
|
|
42
|
+
|
|
43
|
+
C11
|
|
44
|
+
00:01:23.909 --> 00:01:31.346
|
|
45
|
+
After the Evals pass, the Agent is saved to your Profile and is ready to use.
|
|
46
|
+
|
|
47
|
+
C12
|
|
48
|
+
00:01:31.066 --> 00:01:37.658
|
|
49
|
+
The Agent page shows its purpose, chat entrypoint, and runnable account actions.
|
|
50
|
+
|
|
51
|
+
C13Q
|
|
52
|
+
00:01:38.548 --> 00:01:46.929
|
|
53
|
+
Use opens a normal chat with the Agent attached. Type a natural-language question about Acme before sending it.
|
|
54
|
+
|
|
55
|
+
C13
|
|
56
|
+
00:01:46.649 --> 00:01:56.410
|
|
57
|
+
Acme is the at-risk example: the Agent answers in chat with renewal timing, usage decline, the disputed invoice, and the open P1 case.
|
|
58
|
+
|
|
59
|
+
C14
|
|
60
|
+
00:01:56.130 --> 00:02:04.728
|
|
61
|
+
A follow-up keeps Acme context and assigns the first actions to Revenue Operations and Support instead of restarting the conversation.
|
|
62
|
+
|
|
63
|
+
C15
|
|
64
|
+
00:02:04.448 --> 00:02:13.086
|
|
65
|
+
The action picker offers chat plus each runnable account action, so you can choose conversation or a focused task.
|
|
66
|
+
|
|
67
|
+
C16
|
|
68
|
+
00:02:12.806 --> 00:02:23.371
|
|
69
|
+
Northstar is the healthy expansion example from the source chats. Its direct summary identifies rising usage and the request for twenty-five more seats.
|
|
70
|
+
|
|
71
|
+
C17
|
|
72
|
+
00:02:23.091 --> 00:02:31.650
|
|
73
|
+
Running renewal triage for Acme returns high risk, cites the billing and support blockers, and orders the next steps.
|
|
74
|
+
|
|
75
|
+
C18
|
|
76
|
+
00:02:31.370 --> 00:02:40.188
|
|
77
|
+
The weekly review action combines the portfolio and returns visible Markdown, CSV, and JSON artifacts for downstream use.
|
|
78
|
+
|
|
79
|
+
C19
|
|
80
|
+
00:02:39.908 --> 00:02:47.216
|
|
81
|
+
After restarting OpenPond, the same Agent, chat history, and actions remain available.
|
|
82
|
+
|
|
83
|
+
I00
|
|
84
|
+
00:02:48.106 --> 00:02:58.800
|
|
85
|
+
The current Agent finds the right facts, but buries the priority after the account summary. Improve will make the billing and P1 decision lead every high-risk result.
|
|
86
|
+
|
|
87
|
+
I01
|
|
88
|
+
00:02:58.520 --> 00:03:08.143
|
|
89
|
+
Open Improve agent on the existing Agent, then choose whether to describe the correction directly or include a chat that demonstrates it.
|
|
90
|
+
|
|
91
|
+
I02
|
|
92
|
+
00:03:07.863 --> 00:03:18.289
|
|
93
|
+
Choose From chats, ask every high-risk response to lead with the billing and P1 decision, and attach the correction conversation that demonstrates it.
|
|
94
|
+
|
|
95
|
+
I03
|
|
96
|
+
00:03:18.009 --> 00:03:27.591
|
|
97
|
+
Review the new lead-with-priority behavior, the existing capabilities that must stay intact, and the Evals OpenPond will rerun.
|
|
98
|
+
|
|
99
|
+
I04
|
|
100
|
+
00:03:27.311 --> 00:03:33.904
|
|
101
|
+
Review the planned change and confirm that it preserves citations and every existing action.
|
|
102
|
+
|
|
103
|
+
I05
|
|
104
|
+
00:03:33.624 --> 00:03:43.335
|
|
105
|
+
The same locked Evals make the decision clear: the current Agent misses the new lead sentence, while the updated Agent passes every original and new Eval.
|
|
106
|
+
|
|
107
|
+
I06
|
|
108
|
+
00:03:43.055 --> 00:03:52.102
|
|
109
|
+
Apply the update only after that comparison. The existing Agent updates in place, with the successful Evals recorded.
|
|
110
|
+
|
|
111
|
+
I07
|
|
112
|
+
00:03:51.822 --> 00:04:01.314
|
|
113
|
+
The improved chat now places disputed billing and the open P1 case ahead of adoption decline while preserving source citations.
|
|
114
|
+
|
|
115
|
+
I08
|
|
116
|
+
00:04:01.034 --> 00:04:09.504
|
|
117
|
+
The direct triage action repeats the billing-first result, proving the change works outside chat without breaking the existing workflow.
|
|
118
|
+
|
|
119
|
+
I09
|
|
120
|
+
00:04:09.224 --> 00:04:17.376
|
|
121
|
+
Commit the final Agent source with a clear Git message so the exact Profile version remains reviewable and shareable.
|
|
122
|
+
|
|
123
|
+
I10
|
|
124
|
+
00:04:17.096 --> 00:04:30.334
|
|
125
|
+
Open Sync to review the committed Profile changes. Confirm sync publishes this version so teammates can use the Agent in chat and hosted sandboxes can attach the same source.
|
|
Binary file
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
WEBVTT
|
|
2
|
+
|
|
3
|
+
overview-profile
|
|
4
|
+
00:00:04.600 --> 00:00:15.352
|
|
5
|
+
An OpenPond Agent is a reusable capability that lives in your Profile. Its source defines its purpose, the actions people can run, and the Evals that protect its behavior.
|
|
6
|
+
|
|
7
|
+
overview-entrypoints
|
|
8
|
+
00:00:16.452 --> 00:00:26.052
|
|
9
|
+
Use chat when the request is open ended and conversational. Use a direct action when the inputs and result should be explicit, repeatable, and easy to connect to another workflow.
|
|
10
|
+
|
|
11
|
+
overview-surfaces
|
|
12
|
+
00:00:27.152 --> 00:00:37.506
|
|
13
|
+
A shared action catalog lets the Agent appear in OpenPond chat, its Agent page, supported channels, and API or M C P integrations without duplicating the underlying behavior.
|
|
14
|
+
|
|
15
|
+
overview-example
|
|
16
|
+
00:00:38.606 --> 00:00:50.073
|
|
17
|
+
An Account Health Agent can answer follow up questions in chat, summarize one account, triage renewal risk, or build a weekly portfolio review. Each path uses the same trusted Agent source.
|
|
18
|
+
|
|
19
|
+
overview-evals
|
|
20
|
+
00:00:51.173 --> 00:01:02.462
|
|
21
|
+
Evals run repeatable scenarios against the Agent's behavior and outputs. During Improve, OpenPond compares the candidate with the active Agent and only releases the change after the required Evals pass.
|
|
22
|
+
|
|
23
|
+
overview-lifecycle
|
|
24
|
+
00:01:03.562 --> 00:01:13.787
|
|
25
|
+
Start from a purpose or supporting chats, review what OpenPond will build, use the Agent on real work, then improve it from the evidence. Next, create the Account Health Agent step by step.
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r,a8 as ye,j as e,U as Ne,b as B,aq as ee,h as D,bk as se,bl as ne,D as te,A as ke,bm as Se,S as Ae,K as ie,ay as H,aF as we,X as Re,bn as ae}from"./index-CKmte5ok.js";import{P as Pe}from"./play-DLCuESeG.js";import{createPipelineAgentIdFromObjective as le,createPipelineSourceRootPathForAgent as Te}from"./create-pipeline-request-C26NOc7v.js";function _e(s,t){return t==="archive"?!!s.archivedAt:t==="reviews"?s.status==="needs_review":!s.archivedAt}function ze(s){return s==="backlog"?"Task":s==="needs_review"?"Review":s.replace(/_/g," ")}function $e(s,t){const a=s.get(t);return a?.organizationName?`${a.organizationName} / ${a.name}`:a?.name??"Cloud Project"}function Me(s){const t=s.filter(a=>!ce(a));return t.find(a=>a.role==="user")??t[0]??null}function ce(s){return s.metadata.source==="openpond_app_cloud_create_improve_link"||s.metadata.hidden===!0}function Oe(s){return s.adapter.kind==="local"?"Local profile":s.adapter.kind==="promote_local_to_hosted"?"Local to hosted":"Hosted profile"}function Ee(s){return s?.plan?.checks?.length?s.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 Le(s){return s?.plan?.requirements?.map(t=>({name:t.name,detail:[t.kind.replace(/_/g," "),t.status,t.detail].filter(Boolean).join(" / ")}))??[]}function De(s){const t=s?.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:u})=>u.length?[{name:a,detail:u.join(", ")}]:[]):[]}function He(s){if(s.plan?.sourcePlan?.length)return s.plan.sourcePlan;const t=s.operation==="improve"?"update":"create",a=s.target.kind==="agent"?s.target.id??le(s.objective):le(s.objective);return[{path:Te(a),operation:t,reason:s.objective},{path:"settings/profile.yaml",operation:"update",reason:"Expose the default chat action through the hosted profile catalog."}]}function qe({workItem:s,detail:t,actionBusy:a,localProjectName:u,onApplyLocalPatch:m,onShowFiles:c}){const d=Ve(s,t),h=s.status==="needs_review"&&!!(u&&m);return e.jsxs("article",{className:"cloud-work-boundary-strip",children:[e.jsxs("div",{children:[e.jsx("span",{children:Fe(s)}),e.jsx("small",{children:Ke(s)})]}),e.jsx("div",{className:"cloud-work-boundary-chips",children:d.map(j=>e.jsx("span",{children:j},j))}),s.status==="needs_review"?e.jsxs("button",{type:"button",onClick:()=>{m&&m()},disabled:a||!h,title:h?`Apply to ${u}`:"Link this Cloud Project to a local checkout before applying locally.",children:[e.jsx(ie,{size:13}),e.jsx("span",{children:h?"Apply locally":"No local checkout"})]}):null,c?e.jsxs("button",{type:"button",onClick:c,children:[e.jsx(H,{size:13}),e.jsx("span",{children:"Files"})]}):null]})}function Fe(s){return s.status==="needs_review"?"Cloud patch ready":s.status==="queued"||s.status==="running"?"Running in Cloud":s.status==="failed"?"Cloud task failed":"Cloud task"}function Ke(s){return s.status==="needs_review"?"Review files and apply locally only when ready.":s.status==="queued"||s.status==="running"?"The local checkout is unchanged while the sandbox works.":s.status==="failed"?"Open files/logs to inspect the remote run before retrying.":"Cloud changes stay remote until an explicit apply or pull action."}function Ve(s,t){const a=[s.status.replace(/_/g," ")];return s.sourceRef&&a.push(s.sourceRef),s.latestSandboxId&&a.push("sandbox"),s.latestTaskRunId&&a.push("task run"),t?.activity.length&&a.push(`${t.activity.length} log${t.activity.length===1?"":"s"}`),s.status==="needs_review"&&a.push("patch only"),a.push("local unchanged"),a}function Ue({run:s,actionBusy:t,onApprove:a,onEdit:u,onCancel:m}){const c=s.state,d=s.plan,h=Ee(s),j=Le(s),f=De(s),N=He(s),x=we(d?.metadata),k=s.scope.targetProject?.name??s.scope.targetProject?.id??"Profile source",S=!!d&&c==="awaiting_plan_approval"&&(d?.status==="draft"||d?.status==="pending_approval"),A=(c==="planning"||c==="awaiting_plan_approval")&&(d?.status==="draft"||d?.status==="pending_approval");return e.jsxs("article",{className:"cloud-create-plan-review",children:[e.jsxs("div",{className:"cloud-create-plan-heading",children:[e.jsx(H,{size:16}),e.jsxs("div",{children:[e.jsx("span",{children:"Agent plan review"}),e.jsxs("small",{children:[s.operation," / ",Oe(s)," / ",c.replace(/_/g," ")]})]})]}),e.jsxs("div",{className:"cloud-create-plan-copy",children:[e.jsxs("section",{children:[e.jsx("span",{children:"Objective"}),e.jsx("p",{children:s.objective})]}),e.jsxs("section",{children:[e.jsx("span",{children:"Target"}),e.jsx("p",{children:k})]}),d?.capturedContextSummary?e.jsxs("section",{children:[e.jsx("span",{children:"Captured context"}),e.jsx("p",{children:d.capturedContextSummary})]}):s.context.targetRepoAssumptions.length?e.jsxs("section",{children:[e.jsx("span",{children:"Captured context"}),e.jsx("p",{children:s.context.targetRepoAssumptions.join("; ")})]}):null,s.context.attachments.length?e.jsxs("section",{children:[e.jsx("span",{children:"Inputs"}),e.jsx("p",{children:s.context.attachments.map(l=>l.name).join(", ")})]}):null,s.context.apps.length?e.jsxs("section",{children:[e.jsx("span",{children:"Apps"}),e.jsx("p",{children:s.context.apps.map(l=>l.name).join(", ")})]}):null,s.context.tools.length?e.jsxs("section",{children:[e.jsx("span",{children:"Tools"}),e.jsx("p",{children:s.context.tools.map(l=>l.name).join(", ")})]}):null,x?e.jsxs("section",{children:[e.jsx("span",{children:"Action shape"}),e.jsxs("p",{children:[x.label,": ",x.detail]})]}):null]}),e.jsxs("div",{className:"cloud-create-plan-grid",children:[x?e.jsxs("section",{children:[e.jsx("span",{children:"Actions"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("code",{children:x.defaultActionKey??"chat"}),e.jsx("small",{children:x.label})]}),x.directActionHint?e.jsxs("li",{children:[e.jsx("code",{children:"direct action"}),e.jsx("small",{children:x.directActionHint})]}):null]})]}):null,e.jsxs("section",{children:[e.jsx("span",{children:"Source plan"}),e.jsx("ul",{children:N.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:h.map(l=>e.jsxs("li",{children:[e.jsx("code",{children:l.name}),e.jsx("small",{children:l.command})]},`${l.name}:${l.command}`))})]}),j.length?e.jsxs("section",{children:[e.jsx("span",{children:"Requirements"}),e.jsx("ul",{children:j.map(l=>e.jsxs("li",{children:[e.jsx("code",{children:l.name}),e.jsx("small",{children:l.detail})]},`${l.name}:${l.detail}`))})]}):null,f.length?e.jsxs("section",{children:[e.jsx("span",{children:"Workflow evidence"}),e.jsx("ul",{children:f.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:a,disabled:t||!S,children:[e.jsx(ie,{size:14}),e.jsx("span",{children:"Confirm plan"})]}),e.jsxs("button",{type:"button",onClick:u,disabled:t||!A,children:[e.jsx(H,{size:14}),e.jsx("span",{children:"Edit plan"})]}),e.jsxs("button",{type:"button",onClick:m,disabled:t,children:[e.jsx(Re,{size:14}),e.jsx("span",{children:"Cancel"})]})]})]})}function Qe({projects:s,workItems:t,selectedWorkItem:a,detail:u,loading:m,actionBusy:c,connection:d,error:h,model:j,showToast:f,onBack:N,onModelChange:x,onSetupCloudProject:k,onCreateWork:S,onSelectWorkItem:A,onSendMessage:l,onHandleBackground:q,onCancelCreatePlan:oe,onCancelTask:F,localProjectName:re,onApplyLocalPatch:de,onShowFiles:w}){const[y,R]=r.useState(""),[b,g]=r.useState(""),K=r.useRef(null),P=r.useRef(null),[ue,V]=r.useState(0),[pe,T]=r.useState(0),[U,_]=r.useState(!1),[X,G]=r.useState(!1),[C,z]=r.useState("tasks"),[$,he]=r.useState(""),[J,xe]=r.useState(()=>s[0]?.id??""),M=r.useMemo(()=>new Map(s.map(n=>[n.id,n])),[s]),v=M.has(J)?J:s[0]?.id??"",me=ye("openpond",j),je=r.useMemo(()=>s.length?s.map(n=>({value:n.id,label:n.organizationName?`${n.organizationName} / ${n.name}`:n.name,shortLabel:n.name,description:n.sourceLabel??n.defaultBranch??void 0})):[{value:"",label:"No Cloud Project"}],[s]),Q=r.useMemo(()=>{const n=$.trim().toLowerCase();return t.filter(o=>_e(o,C)?n?o.title.toLowerCase().includes(n):!0:!1)},[$,C,t]);async function Y(){const n=y.trim();!n||!v||c||(await S({projectId:v,prompt:n}),R(""),_(!1))}async function Z(){const n=b.trim();!n||c||(await l(n),g(""))}async function ve(){const n=b.trim();await q(n||null),g(""),G(!1)}function O(n){V(n.selectionStart??n.value.length)}function E(n){T(n.selectionStart??n.value.length)}function fe(n){const o=K.current,p=ae(y,n,o?.selectionStart??ue);R(p.value),V(p.cursorIndex),window.requestAnimationFrame(()=>{o?.focus(),o?.setSelectionRange(p.cursorIndex,p.cursorIndex)})}function be(n){const o=P.current,p=ae(b,n,o?.selectionStart??pe);g(p.value),T(p.cursorIndex),window.requestAnimationFrame(()=>{o?.focus(),o?.setSelectionRange(p.cursorIndex,p.cursorIndex)})}function ge(){g(n=>n||"Revise plan: "),window.requestAnimationFrame(()=>{const n=P.current,o=n?.value.length??0;n?.focus(),n?.setSelectionRange(o,o),T(o)})}if(a){const n=u?.messages??[],o=u?.activity??[],p=u?.createImproveRun??a.createImproveRun??null,W=Me(n),L=W?.body??a.title,Ce=M.get(a.projectId)??null,I=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:N,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]}),L&&e.jsx("article",{className:"cloud-message user",children:e.jsx("p",{children:L})}),e.jsxs("div",{className:"cloud-worked-line",children:[e.jsx("span",{children:ze(a.status)}),e.jsx("span",{children:B(a.updatedAt)}),I&&e.jsxs("button",{type:"button",onClick:()=>{F()},disabled:c,children:[e.jsx(ee,{size:12}),e.jsx("span",{children:"Stop task"})]})]}),e.jsx(qe,{workItem:a,detail:u,actionBusy:c,localProjectName:re,onApplyLocalPatch:de,onShowFiles:w}),p?e.jsx(Ue,{run:p,actionBusy:c,onApprove:()=>{q(null)},onEdit:ge,onCancel:()=>{oe()}}):null,n.filter(i=>i.id!==W?.id).filter(i=>!ce(i)).map(i=>e.jsx("article",{className:`cloud-message ${i.role}`,children:e.jsx("p",{children:i.body})},i.id)),o.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)),!m&&n.length===0&&o.length===0&&!L&&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 ${X?"active":""}`,onClick:()=>G(i=>!i),title:"Cloud task options",children:e.jsx(D,{size:18})}),X&&e.jsxs("div",{className:"cloud-composer-options thread-options",children:[e.jsxs("button",{type:"button",onClick:()=>{ve()},disabled:c,children:[e.jsx(Pe,{size:14}),e.jsx("span",{children:"Handle in background"})]}),I&&e.jsxs("button",{type:"button",onClick:()=>{F()},disabled:c,children:[e.jsx(ee,{size:14}),e.jsx("span",{children:"Stop task"})]})]}),e.jsx("textarea",{ref:P,value:b,rows:1,placeholder:"Request changes or ask a question",onChange:i=>{g(i.target.value),E(i.currentTarget)},onClick:i=>E(i.currentTarget),onSelect:i=>E(i.currentTarget),onKeyDown:i=>{i.key==="Enter"&&!i.shiftKey&&(i.preventDefault(),Z())}}),e.jsx(se,{buttonClassName:"cloud-composer-mic-button",connection:d,disabled:c,iconSize:17,wrapperClassName:"cloud-composer-mic",showToast:f,onTranscript:be}),e.jsx("button",{type:"button",className:"cloud-composer-submit",disabled:!b.trim()||c,onClick:()=>{Z()},title:"Send",children:e.jsx(ne,{size:17})})]}),h&&e.jsx("div",{className:"cloud-error",children:h})]})}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:K,value:y,rows:2,placeholder:"Describe a task",onChange:n=>{R(n.target.value),O(n.currentTarget)},onClick:n=>O(n.currentTarget),onSelect:n=>O(n.currentTarget),onKeyDown:n=>{n.key==="Enter"&&!n.shiftKey&&(n.preventDefault(),Y())}}),e.jsxs("div",{className:"cloud-home-composer-actions",children:[e.jsx("button",{type:"button",className:`cloud-composer-plus ${U?"active":""}`,onClick:()=>_(n=>!n),title:"Cloud task options",children:e.jsx(D,{size:18})}),e.jsxs("div",{className:"cloud-composer-selects",children:[e.jsx(te,{compact:!0,className:"cloud-project-select",disabled:c||s.length===0,label:"Cloud Project",options:je,placement:"top",value:v,onChange:xe}),e.jsx(te,{compact:!0,className:"cloud-model-select",disabled:c,label:"Model",options:ke("openpond"),placement:"top",value:me,onChange:x})]}),e.jsx(se,{buttonClassName:"cloud-composer-mic-button",connection:d,disabled:c,iconSize:17,wrapperClassName:"cloud-composer-mic",showToast:f,onTranscript:fe}),e.jsx("button",{type:"button",className:"cloud-composer-submit",disabled:!y.trim()||!v||c,onClick:()=>{Y()},title:"Handle in background",children:e.jsx(ne,{size:17})})]}),U&&e.jsxs("div",{className:"cloud-composer-options",children:[e.jsxs("button",{type:"button",onClick:()=>_(!1),disabled:c,children:[e.jsx(D,{size:14}),e.jsx("span",{children:"New task"})]}),e.jsxs("button",{type:"button",onClick:()=>k(v),disabled:!v||c,children:[e.jsx(Se,{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:()=>z("tasks"),children:"Tasks"}),e.jsx("button",{type:"button",className:C==="reviews"?"active":"",onClick:()=>z("reviews"),children:"Code reviews"}),e.jsx("button",{type:"button",className:C==="archive"?"active":"",onClick:()=>z("archive"),children:"Archive"})]}),e.jsxs("label",{className:"cloud-task-search",children:[e.jsx(Ae,{size:17}),e.jsx("input",{value:$,placeholder:"Search",onChange:n=>he(n.target.value)})]})]}),e.jsxs("div",{className:"cloud-task-list",children:[Q.map(n=>e.jsxs("button",{type:"button",className:"cloud-task-row",onClick:()=>A(n),children:[e.jsx("span",{children:n.title}),e.jsxs("small",{children:[B(n.updatedAt)," · ",$e(M,n.projectId)]})]},n.id)),!m&&Q.length===0&&e.jsx("p",{className:"cloud-empty",children:s.length?"No tasks yet":"Create or link a Cloud Project before starting a task"}),m&&e.jsx("p",{className:"cloud-empty",children:"Loading tasks..."})]}),h&&e.jsx("div",{className:"cloud-error",children:h})]})})}export{Qe as CloudWorkView};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as j,j as e,S as g,a as b,i as f,C,F as P,P as k,M,b as v,c as S}from"./index-CKmte5ok.js";function E({open:a,query:r,projects:c,sessions:o,onQueryChange:n,onClose:d,onNewChat:x,onOpenProject:u,onOpenSession:p}){const t=r.trim().toLowerCase(),l=j.useMemo(()=>w(o,t,10),[t,o]),i=j.useMemo(()=>L(c,t,8),[t,c]);if(!a)return null;const N=()=>{const s=i[0];if(s){u(s);return}const m=l[0];m&&p(m)};return e.jsx("div",{className:"command-overlay",role:"presentation",onMouseDown:d,children:e.jsxs("section",{className:"command-menu",role:"dialog","aria-modal":"true","aria-label":"Search chats and projects",onMouseDown:s=>s.stopPropagation(),children:[e.jsxs("div",{className:"command-input-row",children:[e.jsx(g,{size:17}),e.jsx("input",{autoFocus:!0,value:r,onChange:s=>n(s.target.value),onKeyDown:s=>{s.key==="Enter"&&(s.preventDefault(),N()),s.key==="Escape"&&(s.preventDefault(),d())},placeholder:"Search chats and projects"}),e.jsx("kbd",{children:"Esc"})]}),e.jsxs("div",{className:"command-results",children:[e.jsxs("button",{className:"command-result command-create",onClick:x,children:[e.jsx(b,{size:15}),e.jsx("span",{children:"New local task"}),e.jsx("small",{children:"General"})]}),e.jsxs(h,{label:"Projects",children:[i.map(s=>e.jsxs("button",{className:"command-result",onClick:()=>u(s),children:[f(s)?e.jsx(C,{size:15}):e.jsx(P,{size:15}),e.jsx("span",{children:s.project.name}),e.jsx("small",{children:z(s)})]},s.project.id)),i.length===0&&e.jsx("div",{className:"command-empty",children:"No projects found"})]}),e.jsxs(h,{label:"Chats",children:[l.map(s=>e.jsxs("button",{className:"command-result",onClick:()=>p(s),children:[s.pinned?e.jsx(k,{size:15}):e.jsx(M,{size:15}),e.jsx("span",{children:s.title}),e.jsx("small",{children:s.appName??v(s.updatedAt)})]},s.id)),l.length===0&&e.jsx("div",{className:"command-empty",children:"No chats found"})]})]})]})})}function w(a,r,c){const o=[];for(const n of a)if((!r||`${n.title} ${n.appName??""}`.toLowerCase().includes(r))&&(o.push(n),o.length>=c))break;return o}function L(a,r,c){const o=[];for(const n of a)if((!r||$(n).toLowerCase().includes(r))&&(o.push(n),o.length>=c))break;return o}function $(a){return S(a)?`${a.project.name} ${a.project.path} ${a.project.workspacePath}`:`${a.project.name} ${a.project.sourceLabel??""} ${a.project.organizationName??""}`}function z(a){return f(a)?a.project.organizationName??"Cloud Project":a.project.linkedOpenPondApp?"OpenPond project":a.project.source==="git"?"Local Git":"Local folder"}function h({label:a,children:r}){return e.jsxs("div",{className:"command-group",children:[e.jsx("div",{className:"command-group-label",children:a}),r]})}export{E as CommandMenu};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as l,j as e,X as H,bC as W,bD as Z,bE as ee,bl as se,bF as ne,bG as te,a as ie,T as ae,aQ as Y,bH as q,J as le}from"./index-CKmte5ok.js";import{S as re,W as oe,B as ce}from"./wifi-off-XFVqsf4c.js";import{R as O}from"./refresh-cw-JNUovwk4.js";import{R as de}from"./reply-D4QvJyzE.js";const me=2e4,A=10,ue=12*1024*1024,he=new Set(["image/png","image/jpeg","image/webp","image/gif"]);function ye(s){const[n,m]=l.useState(""),[a,y]=l.useState(0),[c,u]=l.useState([]),[b,i]=l.useState(null),[f,h]=l.useState(!1),[p,C]=l.useState([]),[N,v]=l.useState(0),[M,r]=l.useState(null),k=l.useRef(null),R=l.useRef(null),I=l.useRef(c);I.current=c;const g=l.useMemo(()=>ge(n,a),[n,a]),S=g?`${g.start}:${g.end}:${g.query}`:null,L=g?.query??null,w=l.useMemo(()=>{if(!g)return[];const t=new Map;for(const d of[...s.members,...p])t.set(d.userId,d);const o=g.query.toLowerCase();return[...t.values()].filter(d=>`${d.handle??""} ${d.name??""}`.toLowerCase().includes(o)).slice(0,8)},[g,s.members,p]),D=!!(g&&S!==M&&w.length>0),T=!!(s.disabled||s.busy||f),B=!T&&(!!n.trim()||c.length>0);l.useEffect(()=>{if(L==null){C([]);return}let t=!0;const o=window.setTimeout(()=>{s.onSearchMembers(L).then(d=>{t&&C(d)},()=>{t&&C([])})},150);return()=>{t=!1,window.clearTimeout(o)}},[L,s.onSearchMembers]),l.useEffect(()=>{v(0)},[S]),l.useEffect(()=>()=>F(I.current),[]);async function U(t){if(t?.preventDefault(),!!B){i(null),h(!0);try{const o=await Promise.all(c.map(ne));if(!await s.onSend({body:n,mentionUserIds:xe(n,s.members),attachments:o,replyToMessageId:s.replyTo?.id??null}))return;F(c),m(""),y(0),u([]),s.onCancelReply()}catch(o){i(o instanceof Error?o.message:String(o))}finally{h(!1)}}}function X(t){if(D){if(t.key==="ArrowDown"){t.preventDefault(),v(o=>(o+1)%w.length);return}if(t.key==="ArrowUp"){t.preventDefault(),v(o=>(o-1+w.length)%w.length);return}if(t.key==="Enter"||t.key==="Tab"){t.preventDefault(),$(w[N]??w[0]);return}if(t.key==="Escape"){t.preventDefault(),r(S);return}}t.key!=="Enter"||t.shiftKey||t.nativeEvent.isComposing||(t.preventDefault(),U())}function G(t){if(!t)return;i(null);const o=Math.max(0,A-c.length);if(o===0){i(`You can attach up to ${A} images.`),E();return}const d=[...t],j=d.slice(0,o),z=j.find(x=>!he.has(x.type)),P=j.find(x=>x.size<=0||x.size>ue);if(z){i(`${z.name} is not a supported image type.`),E();return}if(P){i(`${P.name} must be smaller than 12 MB.`),E();return}const Q=j.map(x=>({id:te(),file:x,name:x.name,mediaType:x.type,sizeBytes:x.size,kind:"image",previewUrl:URL.createObjectURL(x)}));u(x=>[...x,...Q]),d.length>o&&i(`Only ${A} images can be attached to one message.`),E()}function V(t){u(o=>{const d=o.find(j=>j.id===t);return d?.previewUrl&&URL.revokeObjectURL(d.previewUrl),o.filter(j=>j.id!==t)})}function E(){k.current&&(k.current.value="")}function $(t){if(!g)return;const o=`@${J(t)} `,d=`${n.slice(0,g.start)}${o}${n.slice(g.end)}`,j=g.start+o.length;m(d),y(j),r(null),window.requestAnimationFrame(()=>R.current?.focusAtPromptIndex(j))}return e.jsxs("form",{className:`composer dock community-composer${c.length>0?" has-attachments":""}${b?" has-attachment-error":""}`,onSubmit:U,children:[s.replyTo?e.jsxs("div",{className:"community-composer-reply",children:[e.jsxs("span",{children:[e.jsx("strong",{children:"Replying to"}),s.replyTo.body.slice(0,100)||"message"]}),e.jsx("button",{type:"button","aria-label":"Cancel reply",onClick:s.onCancelReply,children:e.jsx(H,{size:13})})]}):null,D?e.jsx("div",{className:"community-mention-menu",role:"listbox","aria-label":"Community members",children:w.map((t,o)=>e.jsxs("button",{type:"button",role:"option","aria-selected":o===N,onMouseDown:d=>d.preventDefault(),onClick:()=>$(t),children:[e.jsx("strong",{children:t.name??t.handle??"Community member"}),t.handle?e.jsxs("small",{children:["@",t.handle]}):null]},t.userId))}):null,e.jsxs("div",{className:"composer-input-shell",children:[c.length>0?e.jsx("div",{className:"composer-attachments","aria-label":"Selected attachments",children:c.map(t=>e.jsx(W,{attachment:t,onRemove:()=>V(t.id)},t.id))}):null,b?e.jsx("div",{className:"composer-attachment-error",role:"status",children:b}):null,e.jsx("div",{className:"composer-textarea-frame",onClick:t=>{t.target===t.currentTarget&&R.current?.focusAtPromptIndex(a)},children:e.jsx(Z,{ref:R,disabled:T,onCursorChange:y,onKeyDown:X,onPromptChange:(t,o)=>{const d=t.slice(0,me);m(d),y(Math.min(o,d.length))},onTokenPositionChange:()=>{},placeholder:s.disabled?"Accept the community rules to post":"Message community",prompt:n,token:null})}),e.jsxs("div",{className:"composer-primary-controls team-chat-composer-controls",children:[e.jsx("input",{ref:k,className:"composer-file-input",hidden:!0,type:"file",accept:"image/png,image/jpeg,image/webp,image/gif",multiple:!0,onChange:t=>G(t.currentTarget.files)}),e.jsx("button",{type:"button",className:"composer-icon","aria-label":"Attach images",disabled:T||c.length>=A,onClick:()=>k.current?.click(),children:e.jsx(ee,{size:17})}),e.jsx("div",{className:"composer-spacer"}),e.jsx("button",{type:"submit",className:"send-button","aria-label":"Send message",disabled:!B,children:e.jsx(se,{size:17})})]})]})]})}function ge(s,n=s.length){const m=Math.max(0,Math.min(n,s.length)),a=/(?:^|\s)@([\w-]*)$/.exec(s.slice(0,m));return!a||a.index==null?null:{start:a.index+a[0].indexOf("@"),end:m,query:a[1]??""}}function xe(s,n){const m=new Set([...s.matchAll(/(?:^|\s)@([\w-]+)/g)].map(a=>a[1]?.toLowerCase()));return n.filter(a=>m.has(J(a).toLowerCase())).map(a=>a.userId)}function J(s){return s.handle??s.name?.replace(/[^\w-]/g,"")??s.userId}function F(s){for(const n of s)n.previewUrl&&URL.revokeObjectURL(n.previewUrl)}function be(s){const[n,m]=l.useState(!1),[a,y]=l.useState(s.message.body),c=s.message.refs.find(i=>i.refType==="message_reply"),u=c?s.messagesById.get(c.refId)??null:null,b=u?.authorUserId?s.membersById.get(u.authorUserId)??null:null;return e.jsxs("article",{className:`community-message${s.own?" own":""}`,id:`community-message-${s.message.id}`,children:[e.jsx("div",{className:"community-avatar",children:fe(s.author?.name??s.author?.handle??"?")}),e.jsxs("div",{className:"community-message-content",children:[e.jsxs("header",{children:[e.jsx("strong",{children:s.author?.name??s.author?.handle??"Community member"}),e.jsx("time",{dateTime:s.message.createdAt,children:je(s.message.createdAt)}),s.message.editedAt?e.jsx("span",{children:"edited"}):null,s.message.deletedAt?null:e.jsxs("div",{className:"community-message-actions",children:[e.jsx("button",{type:"button","aria-label":"Reply",onClick:()=>s.onReply(s.message),children:e.jsx(de,{size:13})}),s.own?e.jsx("button",{type:"button","aria-label":"Edit",onClick:()=>m(!0),children:e.jsx(ie,{size:13})}):null,s.own?e.jsx("button",{type:"button","aria-label":"Delete",onClick:()=>{s.onDelete(s.message.id)},children:e.jsx(ae,{size:13})}):null]})]}),c?e.jsxs("button",{type:"button",className:"community-reply-quote",onClick:()=>document.getElementById(`community-message-${c.refId}`)?.scrollIntoView({behavior:"smooth",block:"center"}),children:[e.jsx("strong",{children:b?.name??"Community member"}),e.jsx("span",{children:u?.deletedAt?"Message deleted":u?.body??String(c.preview.body??"Earlier message")})]}):null,n?e.jsxs("form",{className:"community-message-edit",onSubmit:i=>{i.preventDefault(),s.onEdit(s.message.id,a).then(f=>{f&&m(!1)})},children:[e.jsx("textarea",{autoFocus:!0,value:a,onChange:i=>y(i.currentTarget.value)}),e.jsxs("div",{children:[e.jsx("button",{type:"button",onClick:()=>m(!1),children:"Cancel"}),e.jsx("button",{type:"submit",disabled:!a.trim(),children:"Save"})]})]}):s.message.deletedAt?e.jsx("div",{className:"community-message-deleted",children:"Message deleted"}):e.jsx(Y,{content:s.message.body}),!s.message.deletedAt&&s.message.attachments.length>0?e.jsx("div",{className:"community-message-attachments",children:s.message.attachments.map(i=>s.attachmentsAccessible?e.jsxs("button",{type:"button",onClick:()=>{s.onDownloadAttachment(i.id)},children:[e.jsx("span",{children:i.name}),e.jsx("small",{children:K(i.sizeBytes)})]},i.id):e.jsxs("div",{className:"community-attachment-placeholder",children:[e.jsx("span",{children:i.name}),e.jsxs("small",{children:["Join to view · ",K(i.sizeBytes)]})]},i.id))}):null]})]})}function fe(s){return s.split(/\s+/).slice(0,2).map(n=>n[0]?.toUpperCase()??"").join("")||"?"}function je(s){const n=new Date(s);return Number.isNaN(n.getTime())?"":n.toLocaleTimeString([],{hour:"numeric",minute:"2-digit"})}function K(s){return s<1024?`${s} B`:s<1024*1024?`${Math.round(s/1024)} KB`:`${(s/1024/1024).toFixed(1)} MB`}function pe(s){const[n,m]=l.useState(!1),a=l.useRef(null),y=l.useRef(s.onClose);l.useEffect(()=>m(!1),[s.rules.id]),l.useEffect(()=>{y.current=s.onClose},[s.onClose]),l.useEffect(()=>{const u=document.activeElement instanceof HTMLElement?document.activeElement:null,b=a.current,i=()=>[...b?.querySelectorAll('button:not([disabled]), input:not([disabled]), [href], [tabindex]:not([tabindex="-1"])')??[]];i()[0]?.focus();const f=h=>{if(h.key==="Escape"){h.preventDefault(),y.current();return}if(h.key!=="Tab")return;const p=i();if(p.length===0){h.preventDefault(),b?.focus();return}const C=p[0],N=p.at(-1);h.shiftKey&&document.activeElement===C?(h.preventDefault(),N.focus()):!h.shiftKey&&document.activeElement===N&&(h.preventDefault(),C.focus())};return document.addEventListener("keydown",f),()=>{document.removeEventListener("keydown",f),u?.focus()}},[]);const c=s.mode!=="review";return e.jsx("div",{className:"community-dialog-backdrop",role:"presentation",onMouseDown:s.onClose,children:e.jsxs("section",{ref:a,className:"community-rules-dialog",role:"dialog","aria-modal":"true","aria-labelledby":"community-rules-title",tabIndex:-1,onMouseDown:u=>u.stopPropagation(),children:[e.jsxs("header",{children:[e.jsxs("div",{children:[e.jsxs("small",{children:["Community rules · version ",s.rules.version]}),e.jsx("h2",{id:"community-rules-title",children:s.rules.title})]}),e.jsx("button",{type:"button","aria-label":"Close rules",onClick:s.onClose,children:e.jsx(H,{size:16})})]}),e.jsx("div",{className:"community-rules-body",children:e.jsx(Y,{content:s.rules.bodyMarkdown})}),s.error?e.jsx("div",{className:"community-state error",role:"alert",children:s.error}):null,e.jsxs("footer",{children:[c?e.jsxs("label",{className:"community-rules-acceptance",children:[e.jsx("input",{type:"checkbox",checked:n,onChange:u=>m(u.currentTarget.checked)}),e.jsx("span",{children:"I have read and agree to follow these rules."})]}):e.jsx("span",{}),e.jsxs("div",{children:[e.jsx("button",{type:"button",className:"secondary",onClick:s.onClose,children:"Cancel"}),c?e.jsx("button",{type:"button",disabled:!n||s.busy,onClick:()=>{s.onAccept().then(u=>{u&&s.onClose()})},children:s.busy?"Saving…":s.mode==="join"?"Agree and join":"Accept updated rules"}):null]})]})]})})}function ke({communities:s,chat:n,currentUserId:m}){const[a,y]=l.useState(null),[c,u]=l.useState(null),b=l.useRef(null),i=s.preview,f=i?.membership?.status==="active",h=!!i?.capabilities.requiresRulesAcceptance,p=l.useMemo(()=>new Map(n.members.map(r=>[r.userId,r])),[n.members]),C=l.useMemo(()=>new Map(n.messages.map(r=>[r.id,r])),[n.messages]),N=n.messages.at(-1)?.sequence??0;if(l.useEffect(()=>{const r=b.current;r&&(r.scrollTop=r.scrollHeight)},[n.selectedChannelId,N]),l.useEffect(()=>{u(null),h&&i?.currentRules&&y("reaccept")},[i?.currentRules,h]),!s.selectedSummary)return e.jsx("section",{className:"community-empty-page",children:e.jsxs("div",{className:"community-discovery-card",children:[e.jsx(q,{size:30}),e.jsx("h1",{children:"Discover communities"}),e.jsx("p",{children:s.discoveryLoading&&s.items.length===0?"Finding communities…":"Preview public conversations and join after accepting each community's rules."}),s.discoveryError?e.jsx("div",{className:"community-state error",children:s.discoveryError}):null,s.items.length>0?e.jsx("div",{className:"community-discovery-list",children:s.items.map(r=>e.jsxs("button",{type:"button",onClick:()=>s.selectCommunity(r.id),children:[e.jsx(_,{name:r.displayName,imageUrl:r.imageUrl}),e.jsxs("span",{children:[e.jsx("strong",{children:r.displayName}),e.jsx("small",{children:r.description})]}),e.jsx("em",{children:r.membership?.status==="active"?"Joined":r.featuredAt?"Featured":`${r.memberCount.toLocaleString()} members`})]},r.id))}):s.discoveryLoading?null:e.jsx("div",{className:"community-state",children:"No public communities are available yet."}),e.jsxs("div",{className:"community-discovery-actions",children:[e.jsxs("button",{type:"button",onClick:()=>{s.refresh()},disabled:s.discoveryLoading,children:[e.jsx(O,{size:14})," Refresh"]}),s.nextCursor?e.jsx("button",{type:"button",className:"secondary",onClick:()=>{s.loadMore()},disabled:s.discoveryLoading,children:"Load more"}):null]})]})});if(!i&&s.previewLoading)return e.jsx("section",{className:"community-empty-page",children:e.jsxs("div",{className:"community-empty-card",children:[e.jsx("span",{className:"community-spinner"})," Loading community…"]})});if(!i)return e.jsx("section",{className:"community-empty-page",children:e.jsxs("div",{className:"community-empty-card",children:[e.jsx("h1",{children:s.selectedSummary.displayName}),e.jsx("div",{className:"community-state error",children:s.previewError??"This community preview is unavailable."}),e.jsxs("button",{type:"button",onClick:()=>s.selectCommunity(s.selectedSummary.id),children:[e.jsx(O,{size:14})," Retry preview"]})]})});const v=i.currentRules,M=s.membershipError?.message??null;return e.jsxs("section",{className:"community-view",children:[e.jsxs("header",{className:"community-header",children:[e.jsxs("div",{className:"community-heading",children:[e.jsx(_,{name:i.displayName,imageUrl:i.imageUrl}),e.jsxs("div",{children:[e.jsx("small",{children:i.displayName}),e.jsx("h1",{children:n.selectedChannel?`# ${n.selectedChannel.displayName}`:i.displayName}),e.jsx("p",{children:n.selectedChannel?.topic||i.description})]})]}),e.jsxs("div",{className:"community-header-actions",children:[e.jsxs("span",{className:"community-member-count",children:[e.jsx(q,{size:14})," ",i.memberCount.toLocaleString()]}),v?e.jsxs("button",{type:"button",className:"secondary",onClick:()=>y("review"),children:[e.jsx(re,{size:14})," Rules"]}):null,f?e.jsx(ve,{mode:i.membership?.notificationMode??"mentions",busy:s.membershipBusy,onMode:s.updateNotifications,onLeave:s.leave}):null]})]}),e.jsxs("div",{className:"community-chat-main conversation-surface-main",children:[e.jsxs("div",{className:"community-chat-notices",children:[f?h?e.jsxs("div",{className:"community-preview-banner warning",children:[e.jsxs("div",{children:[e.jsx("strong",{children:"The rules have changed"}),e.jsx("span",{children:"Accept the current rules to continue reading live updates and posting."})]}),e.jsx("button",{type:"button",disabled:!v||s.membershipBusy,onClick:()=>y("reaccept"),children:"Review updated rules"})]}):null:e.jsxs("div",{className:"community-preview-banner",children:[e.jsxs("div",{children:[e.jsxs("strong",{children:["Previewing ",i.displayName]}),e.jsx("span",{children:"Read the public conversation, then accept the rules to join and post."})]}),e.jsx("button",{type:"button",disabled:!v||s.membershipBusy,onClick:()=>y("join"),children:"Join community"})]}),n.realtimeError&&f&&!h?e.jsxs("div",{className:"community-realtime-state",children:[e.jsx(oe,{size:14}),e.jsx("span",{children:"Live updates are reconnecting. Loaded messages are still available."})]}):null,n.lostMembership?e.jsx("div",{className:"community-state error",children:"Your membership changed. Refresh the community before continuing."}):null,n.channelsError?e.jsxs("div",{className:"community-state error",children:["Channels: ",n.channelsError," ",e.jsx("button",{type:"button",onClick:()=>{n.loadChannels()},children:"Retry"})]}):null,M?e.jsx("div",{className:"community-state error",role:"alert",children:M}):null]}),e.jsxs("div",{className:"community-message-pane conversation-message-scroll",ref:b,role:"log","aria-live":"polite","aria-relevant":"additions text","aria-busy":n.messagesLoading,"aria-label":n.selectedChannel?`${i.displayName}, ${n.selectedChannel.displayName}`:i.displayName,tabIndex:0,children:[n.hasMoreBefore?e.jsx("button",{type:"button",className:"community-load-older",disabled:n.olderMessagesLoading,onClick:()=>{n.loadOlder()},children:n.olderMessagesLoading?"Loading…":"Load earlier messages"}):null,n.messagesLoading&&n.messages.length===0?e.jsx("div",{className:"community-message-state",children:"Loading messages…"}):null,n.messagesError?e.jsxs("div",{className:"community-message-state error",children:["Could not load messages: ",n.messagesError," ",e.jsx("button",{type:"button",onClick:()=>{n.loadMessages()},children:"Retry"})]}):null,!n.messagesLoading&&!n.messagesError&&n.messages.length===0?e.jsx("div",{className:"community-message-state",children:"No messages in this channel yet."}):null,n.messages.map(r=>e.jsx(be,{message:r,author:r.authorUserId?p.get(r.authorUserId)??null:null,own:r.authorUserId===m,attachmentsAccessible:!n.previewMode,membersById:p,messagesById:C,onReply:u,onEdit:n.editMessage,onDelete:n.deleteMessage,onDownloadAttachment:n.downloadAttachment},r.id))]}),f?e.jsxs("div",{className:"community-composer-wrap conversation-composer-shell",children:[n.actionError?e.jsx("div",{className:"community-composer-action-error",children:n.actionError}):null,n.failedSend?e.jsxs("div",{className:"community-failed-send",children:[e.jsxs("span",{children:["Message not sent. ",n.failedSend.message]}),e.jsx("button",{type:"button",disabled:n.sending,onClick:()=>{n.retrySend()},children:"Retry"}),e.jsx("button",{type:"button",onClick:n.dismissFailedSend,children:"Dismiss"})]}):null,e.jsx(ye,{members:n.members,replyTo:c,busy:n.sending,disabled:h||n.lostMembership||!n.selectedChannel||n.selectedChannel.postingPolicy==="admins"&&i.membership?.role==="member",onCancelReply:()=>u(null),onSearchMembers:n.searchMembers,onSend:n.sendMessage})]}):null]}),a&&v?e.jsx(pe,{rules:v,mode:a,busy:s.membershipBusy,error:M,onAccept:a==="join"?s.join:s.acceptRules,onClose:()=>y(null)}):null]})}function ve(s){const[n,m]=l.useState(!1);return e.jsxs("div",{className:"community-membership-menu",children:[e.jsxs("button",{type:"button",className:"secondary","aria-expanded":n,onClick:()=>m(a=>!a),children:[s.mode==="none"?e.jsx(le,{size:14}):e.jsx(ce,{size:14})," Joined"]}),n?e.jsxs("div",{className:"community-membership-popover",children:[e.jsx("strong",{children:"Notifications"}),["mentions","all","none"].map(a=>e.jsxs("label",{children:[e.jsx("input",{type:"radio",name:"community-notifications",checked:s.mode===a,disabled:s.busy,onChange:()=>{s.onMode(a)}})," ",a==="mentions"?"Mentions":a==="all"?"All messages":"Nothing"]},a)),e.jsx("button",{type:"button",className:"danger",disabled:s.busy,onClick:()=>{window.confirm("Leave this community? You can join again later by accepting the current rules.")&&s.onLeave().then(a=>{a&&m(!1)})},children:"Leave community"})]}):null]})}function _({name:s,imageUrl:n}){return n?e.jsx("img",{className:"community-icon",src:n,alt:""}):e.jsx("span",{className:"community-icon fallback",children:s.slice(0,2).toUpperCase()})}export{ke as CommunityView};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as _,r as j,j as e,t as P,N as w,ay as x,X as v,K as y,w as q,aF as N}from"./index-CKmte5ok.js";import{P as C}from"./play-DLCuESeG.js";import{R as k}from"./refresh-cw-JNUovwk4.js";const A=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],z=_("circle-question-mark",A);function D({runtime:s}){const[a,o]=j.useState(!1),[i,u]=j.useState(""),[t,p]=j.useState(null),n=s.run,g=n.plan,h=B(n),c={run:n},f=E(n.state),r=$(n),R=r?.git?.pullRequest??n.releaseOutcome.pullRequest;j.useEffect(()=>{o(!1),u(""),p(null)},[n.id,n.revision,n.state,g?.id,h?.id]);async function l(d,b){if(!(!b||t)){p(d);try{await b()}finally{p(null)}}}return e.jsxs("section",{className:`composer-create-strip ${f}`,"aria-label":"Create or improve status",children:[e.jsxs("div",{className:"composer-create-strip-heading",children:[f==="danger"?e.jsx(P,{size:15}):n.state==="awaiting_questions"?e.jsx(z,{size:15}):S(n.state)?e.jsx(w,{className:"composer-create-spin",size:15}):e.jsx(x,{size:15}),e.jsx("span",{children:I(n)}),e.jsx("small",{children:n.target.kind})]}),n.state==="awaiting_questions"&&h?e.jsxs("div",{className:"composer-create-question",children:[e.jsx("p",{children:h.prompt}),e.jsx("div",{className:"composer-create-options",children:h.options.map(d=>e.jsxs("button",{type:"button",disabled:!!t,onClick:()=>{l(`answer:${d.id}`,()=>s.onAnswerQuestion?s.onAnswerQuestion(c,h.id,d.value):Promise.resolve())},children:[e.jsx("span",{children:t===`answer:${d.id}`?"Saving":d.label}),d.description?e.jsx("small",{children:d.description}):null]},d.id))})]}):n.state==="awaiting_plan_approval"&&g?e.jsxs("div",{className:"composer-create-plan-summary",children:[e.jsx("p",{children:g.summary}),e.jsx(m,{run:n}),a?e.jsxs("div",{className:"composer-create-revision",children:[e.jsx("textarea",{rows:2,value:i,placeholder:"Describe the plan revision",onChange:d=>u(d.currentTarget.value)}),e.jsxs("div",{children:[e.jsxs("button",{type:"button",disabled:!i.trim()||!!t,onClick:()=>{l("revise",()=>s.onRevise?s.onRevise(c,i):Promise.resolve())},children:[e.jsx(x,{size:13}),e.jsx("span",{children:t==="revise"?"Saving":"Save revision"})]}),e.jsxs("button",{type:"button",disabled:!!t,onClick:()=>o(!1),children:[e.jsx(v,{size:13}),e.jsx("span",{children:"Close"})]})]})]}):e.jsxs("div",{className:"composer-create-actions",children:[e.jsxs("button",{type:"button",disabled:!!t,onClick:()=>{l("approve",()=>s.onApprove?s.onApprove(c):Promise.resolve())},children:[e.jsx(y,{size:13}),e.jsx("span",{children:t==="approve"?"Confirming":"Confirm plan"})]}),e.jsxs("button",{type:"button",disabled:!!t,onClick:()=>o(!0),children:[e.jsx(x,{size:13}),e.jsx("span",{children:"Edit plan"})]}),e.jsxs("button",{type:"button",disabled:!!t,onClick:()=>{l("cancel",()=>s.onCancel?s.onCancel(c):Promise.resolve())},children:[e.jsx(v,{size:13}),e.jsx("span",{children:t==="cancel"?"Cancelling":"Cancel"})]})]})]}):n.state==="paused"?e.jsxs("div",{className:"composer-create-status-body",children:[e.jsx("p",{children:"This work is paused. Resume it when you are ready to continue."}),e.jsxs("button",{type:"button",disabled:!!t,onClick:()=>{l("resume",()=>s.onResume?s.onResume(c):Promise.resolve())},children:[e.jsx(C,{size:13}),e.jsx("span",{children:t==="resume"?"Resuming":"Resume"})]})]}):n.state==="awaiting_promotion"&&r?e.jsxs("div",{className:"composer-create-status-body",children:[e.jsx("p",{children:F(n,r.id)}),e.jsxs("div",{className:"composer-create-actions",children:[e.jsxs("button",{type:"button",disabled:!!t||!M(n,r.id),onClick:()=>{l("apply-candidate",()=>s.onApplyCandidate?s.onApplyCandidate(c,r.id):Promise.resolve())},children:[e.jsx(y,{size:13}),e.jsx("span",{children:t==="apply-candidate"?"Merging":"Merge change"})]}),e.jsxs("button",{type:"button",disabled:!!t,onClick:()=>{l("reject-candidate",()=>s.onRejectCandidate?s.onRejectCandidate(c,r.id):Promise.resolve())},children:[e.jsx(v,{size:13}),e.jsx("span",{children:t==="reject-candidate"?"Rejecting":"Reject"})]})]})]}):n.state==="pull_request_open"&&r&&R?e.jsxs("div",{className:"composer-create-status-body",children:[e.jsx("p",{children:"An external review is open. Merge or close it, then refresh its status."}),e.jsxs("div",{className:"composer-create-actions",children:[e.jsxs("button",{type:"button",disabled:!!t,onClick:()=>{l("reconcile-pr",()=>s.onReconcilePullRequest?s.onReconcilePullRequest(c,r.id):Promise.resolve())},children:[e.jsx(k,{size:13}),e.jsx("span",{children:t==="reconcile-pr"?"Checking":"Refresh review"})]}),e.jsxs("button",{type:"button",disabled:!!t,onClick:()=>{l("reject-candidate",()=>s.onRejectCandidate?s.onRejectCandidate(c,r.id):Promise.resolve())},children:[e.jsx(v,{size:13}),e.jsx("span",{children:t==="reject-candidate"?"Closing":"Close review"})]})]})]}):n.state==="blocked"||n.state==="failed"||n.state==="cancelled"?e.jsxs("div",{className:"composer-create-status-body",children:[e.jsx("p",{children:n.blockedReason??"This work stopped before it was ready."}),n.state==="blocked"&&r?.git?.worktreePath&&["draft","checking"].includes(r.status)?e.jsxs("button",{type:"button",disabled:!!t,onClick:()=>{l("resume",()=>s.onResume?s.onResume(c):Promise.resolve())},children:[e.jsx(C,{size:13}),e.jsx("span",{children:t==="resume"?"Continuing":"Continue candidate"})]}):n.state==="blocked"&&r?.git?.pullRequest?.state==="merged"?e.jsxs("button",{type:"button",disabled:!!t,onClick:()=>{l("reconcile-pr",()=>s.onReconcilePullRequest?s.onReconcilePullRequest(c,r.id):Promise.resolve())},children:[e.jsx(k,{size:13}),e.jsx("span",{children:t==="reconcile-pr"?"Checking":"Re-run verification"})]}):null]}):n.state==="released"||n.state==="rejected"||n.state==="ready_local"||n.state==="ready"||n.state==="published_hosted"?e.jsxs("div",{className:"composer-create-status-body composer-create-status-body-reveals",children:[e.jsx("p",{children:n.state==="released"?"The Agent change merged and the active Profile passed its post-merge Evals.":n.state==="rejected"?"The Agent candidate was rejected.":n.state==="published_hosted"?"Published to the hosted Profile.":"The workproduct is ready."}),e.jsx("div",{className:"composer-create-hover-details",children:e.jsx(m,{run:n})})]}):e.jsxs("div",{className:"composer-create-status-body",children:[e.jsx("p",{children:T(n.state)}),e.jsx(m,{run:n}),n.executionPolicy.pauseAllowed&&s.onPause?e.jsxs("button",{type:"button",disabled:!!t,onClick:()=>{l("pause",()=>s.onPause?.(c)??Promise.resolve())},children:[e.jsx(q,{size:13}),e.jsx("span",{children:t==="pause"?"Pausing":"Pause"})]}):null]})]})}function B(s){return s.questions.find(a=>a.status==="pending"&&a.required)??s.questions.find(a=>a.status==="pending")??null}function m({run:s}){const a=s.plan,o=s.sourceRefs[0]??a?.sourcePlan[0]?.path??null,i=s.checkRefs.length||a?.checks.length||0,u=a?.requirements.length??0,t=[...s.sourceRefs,...s.checkRefs].slice(0,4),p=N(a?.metadata);return!o&&i===0&&u===0&&t.length===0&&!p?null:e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"composer-create-facts",children:[p?e.jsx("span",{title:p.detail,children:p.label}):null,o?e.jsx("span",{title:o,children:o}):null,i?e.jsx("span",{children:s.checkRefs.length?`${s.checkRefs.length} check refs`:`${i} checks`}):null,u?e.jsxs("span",{children:[u," setup rows"]}):null]}),t.length?e.jsx("ul",{className:"composer-create-refs","aria-label":"Source and check refs",children:t.map(n=>e.jsx("li",{children:e.jsx("code",{title:n,children:n})},n))}):null]})}function I(s){return s.state==="awaiting_questions"?"Question":s.state==="awaiting_plan_approval"?"Plan":s.state==="applying_source"?"Applying source":s.state==="running_checks"?"Running checks":s.state==="evaluating"?"Evaluating":s.state==="awaiting_promotion"?"Candidate ready":s.state==="opening_pull_request"?"Opening review":s.state==="pull_request_open"?"Review open":s.state==="reconciling_release"?"Merging change":s.state==="released"?"Released":s.state==="rejected"?"Rejected":s.state==="paused"?"Paused":s.state==="ready"||s.state==="ready_local"?"Ready":s.state==="published_hosted"?"Published":s.state==="cancelled"?"Cancelled":s.state==="blocked"?"Blocked":s.state==="failed"?"Failed":s.operation==="improve"?"Improve":"Create"}function T(s){return s==="applying_source"?"Applying the approved source changes.":s==="running_checks"?"Running checks against the candidate.":s==="evaluating"?"Evaluating the candidate against its Evals.":s==="opening_pull_request"?"Opening the candidate review.":s==="reconciling_release"?"Applying the change and verifying the active Profile.":s==="pushing_hosted"?"Pushing the Profile source.":s==="running_hosted_checks"?"Running hosted checks.":"Preparing the work."}function E(s){return["released","ready","ready_local","published_hosted"].includes(s)?"success":["rejected","blocked","failed","cancelled"].includes(s)?"danger":["awaiting_questions","awaiting_plan_approval","awaiting_promotion","pull_request_open","paused"].includes(s)?"warning":"info"}function S(s){return["planning","applying_source","running_checks","evaluating","opening_pull_request","reconciling_release","pushing_hosted","running_hosted_checks"].includes(s)}function $(s){return[...s.candidates].reverse().find(a=>a.target.kind==="agent")??null}function M(s,a){const o=s.evaluationReceipts.filter(i=>i.candidateId===a&&i.subject==="candidate");return o.length>0&&o.every(i=>i.status==="passed"&&i.publishGate!=="failed")}function F(s,a){const o=s.evaluationReceipts.find(t=>t.candidateId===a&&t.subject==="active"),i=s.evaluationReceipts.find(t=>t.candidateId===a&&t.subject==="candidate"),u=t=>t?.summaryCounts?`${t.summaryCounts.passed}/${t.summaryCounts.total}`:t?.status??"not run";return`Base Evals: ${u(o)} passed. Candidate Evals: ${u(i)} passed.`}export{D as ComposerCreateImproveStrip};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.get-started-view{display:grid;align-content:start;width:min(1040px,calc(100% - 56px));min-width:0;justify-self:center;padding:34px 0 54px;color:var(--text)}.get-started-shell{display:grid;min-width:0;gap:16px}.get-started-tabs{grid-auto-columns:minmax(118px,1fr)}.get-started-icon-button:focus-visible,.get-started-progress-button:focus-visible{outline:2px solid rgba(6,182,212,.52);outline-offset:2px}.get-started-tabs span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.get-started-deck{display:grid;min-width:0;overflow:hidden;border:1px solid rgba(255,255,255,.1);border-radius:8px;background:#070707}.get-started-deck-body{display:grid;grid-template-columns:minmax(260px,.88fr) minmax(300px,1.12fr);gap:24px;min-height:414px;min-width:0;padding:26px}.get-started-deck-copy{display:grid;align-content:center;gap:20px;min-width:0}.get-started-eyebrow{display:inline-flex;align-items:center;gap:8px;color:#929292;font-size:13px;font-weight:520}.get-started-accent-dot{width:8px;height:8px;border-radius:999px}.get-started-slide-copy{display:grid;gap:12px}.get-started-slide-copy h2{margin:0;color:#f5f5f5;font-size:32px;font-weight:620;line-height:1.12}.get-started-slide-copy p{margin:0;color:#c8c8c8;font-size:15px;line-height:1.65}.get-started-slide-copy p:last-child{color:#888;font-size:13px}.get-started-deck-footer{display:grid;gap:12px;border-top:1px solid rgba(255,255,255,.08);padding:14px}.get-started-progress{display:grid;gap:7px}.get-started-progress-button{height:8px;min-width:24px;overflow:hidden;border:0;border-radius:999px;background:#ffffff1a;padding:0}.get-started-progress-fill{display:block;width:100%;height:100%;border-radius:inherit;transform:scaleX(0);transform-origin:left center;transition:transform .18s ease}.get-started-progress-fill.filled{transform:scaleX(1)}.get-started-controls{display:flex;align-items:center;justify-content:space-between;gap:12px}.get-started-control-group{display:inline-flex;align-items:center;gap:3px}.get-started-icon-button{display:grid;place-items:center;width:31px;height:31px;border:0;border-radius:7px;background:transparent;color:var(--muted);padding:0}.get-started-icon-button:hover{background:#ffffff14;color:var(--text)}.get-started-time{color:#777;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px}.get-started-visual{position:relative;display:grid;min-height:310px;min-width:0;overflow:hidden;border-radius:8px;background:#0d0d0d;box-shadow:inset 0 0 0 1px #ffffff0b}.get-started-visual-accent{display:none}.get-started-visual-inner{display:grid;min-width:0;padding:18px}.accent-cyan,.accent-cyan .get-started-visual-accent{background:#22d3ee}.get-started-visual.accent-cyan{background:#0d0d0d}.get-started-visual.accent-cyan{--get-started-accent: #22d3ee;--get-started-accent-soft: rgba(34, 211, 238, .12)}.get-started-diagram{position:relative;display:grid;align-items:center;min-height:100%;min-width:0;isolation:isolate}.get-started-diagram:before{position:absolute;inset:0;z-index:-1;border-radius:8px;border:1px dashed rgba(255,255,255,.055);content:""}.get-started-diagram-node{position:relative;z-index:1;display:grid;align-content:start;gap:6px;min-height:72px;min-width:0;overflow:hidden;border:1px solid rgba(255,255,255,.105);border-radius:8px;background:#101010;box-shadow:inset 0 1px #ffffff0d,0 12px 28px #00000038;padding:11px}.get-started-diagram-node.tone-source,.get-started-diagram-node.tone-state,.get-started-diagram-node.tone-review,.get-started-diagram-node.tone-hosted,.get-started-diagram-node.tone-warn{border-color:#ffffff20}.get-started-diagram-node.tone-gate{border-color:#22d3ee5c;background:#101010}.get-started-diagram-node.variant-hub{align-content:center;justify-items:center;min-height:132px;text-align:center}.get-started-diagram-node.variant-compact{min-height:54px;padding:9px 10px}.get-started-node-heading{display:flex;align-items:center;gap:7px;min-width:0}.get-started-node-heading strong{overflow:hidden;color:#f2f2f2;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:620}.get-started-diagram-node>span{overflow:hidden;color:#9f9f9f;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.get-started-mini-rows{display:grid;gap:5px;margin-top:3px}.get-started-mini-rows span,.get-started-consumer-strip span,.get-started-insights-toolbar span,.get-started-router-results span{overflow:hidden;border-radius:6px;background:#fff1;color:#cfcfcf;text-overflow:ellipsis;white-space:nowrap;padding:6px 8px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px}.get-started-connector{display:grid;align-items:center;justify-items:center;gap:3px;min-width:28px;color:var(--get-started-accent)}.get-started-connector>span{width:100%;min-width:18px;border-top:1px dashed rgba(255,255,255,.24)}.get-started-connector em{max-width:64px;overflow:hidden;color:#8f8f8f;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-style:normal}.get-started-flow-graph,.get-started-insights-loop,.get-started-subagent-handoff-graph,.get-started-review-graph,.get-started-sync-graph,.get-started-publish-graph{display:flex;align-items:center;gap:8px;min-width:0}.get-started-flow-graph>.get-started-diagram-node,.get-started-insights-loop>.get-started-diagram-node,.get-started-subagent-handoff-graph>.get-started-diagram-node,.get-started-review-graph>.get-started-diagram-node,.get-started-sync-graph>.get-started-diagram-node,.get-started-publish-graph>.get-started-diagram-node{flex:1 1 0}.get-started-hub-graph{position:relative;display:grid;grid-template-columns:minmax(112px,.9fr) minmax(132px,.8fr) minmax(124px,1fr);align-items:center;gap:12px;min-width:0}.get-started-hub-graph:before{position:absolute;top:50%;right:20%;left:20%;border-top:1px dashed rgba(255,255,255,.2);content:""}.get-started-node-stack{display:grid;gap:10px;min-width:0}.get-started-node-stack.compact{gap:7px}.get-started-loop-graph,.get-started-state-graph{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:74px 14px;min-height:274px;min-width:0}.get-started-loop-ring{position:absolute;top:50%;left:50%;width:178px;height:178px;border:1px dashed rgba(255,255,255,.2);border-radius:999px;transform:translate(-50%,-50%)}.get-started-loop-ring:after{position:absolute;top:18px;right:18px;width:10px;height:10px;border-top:2px solid var(--get-started-accent);border-right:2px solid var(--get-started-accent);content:"";transform:rotate(38deg)}.get-started-loop-center,.get-started-state-core,.get-started-sandbox-core,.get-started-gate-decision,.get-started-router-core,.get-started-boundary-wall{display:grid;place-items:center;gap:6px;border:1px solid rgba(255,255,255,.13);border-radius:8px;background:#101010;color:#f1f1f1;padding:13px;text-align:center;box-shadow:inset 0 1px #ffffff0d}.get-started-loop-center,.get-started-state-core{position:absolute;top:50%;left:50%;z-index:2;width:132px;min-height:92px;transform:translate(-50%,-50%)}.get-started-loop-center strong,.get-started-state-core strong,.get-started-sandbox-core strong,.get-started-gate-decision strong,.get-started-router-core strong,.get-started-boundary-wall span{color:#f4f4f4;font-size:13px;font-weight:620}.get-started-state-core span,.get-started-sandbox-core span,.get-started-gate-decision span,.get-started-router-core span{color:#9d9d9d;font-size:12px}.get-started-contract-graph,.get-started-gate-graph{display:grid;grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr);align-items:center;gap:8px;min-width:0}.get-started-consumer-strip{grid-column:1 / -1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.get-started-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.get-started-check-cell{display:grid;gap:4px;min-width:0;border:1px solid rgba(255,255,255,.1);border-radius:8px;background:#ffffff0e;padding:9px}.get-started-check-cell strong,.get-started-check-cell span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.get-started-check-cell strong{color:#f0f0f0;font-size:12px}.get-started-check-cell span{color:#929292;font-size:11px}.get-started-gate-graph{grid-template-columns:minmax(104px,.8fr) minmax(168px,1.05fr) minmax(104px,.8fr)}.get-started-boundary-graph,.get-started-apps-graph,.get-started-insights-list,.get-started-setup-graph,.get-started-subagent-settings-graph,.get-started-router-graph{display:grid;align-items:center;gap:12px;min-width:0}.get-started-boundary-graph{grid-template-columns:minmax(0,1fr) minmax(82px,.42fr) minmax(0,1fr)}.get-started-apps-graph{grid-template-columns:minmax(0,1fr) minmax(136px,.65fr)}.get-started-app-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;min-width:0}.get-started-app-icon-tile{display:flex;align-items:center;gap:8px;min-width:0;overflow:hidden;border:1px solid rgba(255,255,255,.095);border-radius:8px;background:#ffffff0e;color:#d6d6d6;padding:8px 9px}.get-started-app-icon{display:grid;flex:0 0 auto;place-items:center;width:24px;height:24px;border:1px solid rgba(255,255,255,.16);border-radius:7px;background:#f7f7f7}.get-started-app-icon img{display:block;width:16px;height:16px;object-fit:contain}.get-started-app-icon-tile>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:560}.get-started-insights-list{align-content:center;gap:8px}.get-started-insights-toolbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.get-started-insight-row{display:grid;grid-template-columns:minmax(64px,.34fr) minmax(0,1fr) minmax(92px,.52fr);align-items:center;gap:8px;min-width:0;border:1px solid rgba(255,255,255,.095);border-radius:8px;background:#ffffff0e;padding:8px 10px}.get-started-insight-row span,.get-started-insight-row strong,.get-started-insight-row em{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.get-started-insight-row span,.get-started-insight-row em{color:#9a9a9a;font-size:12px;font-style:normal}.get-started-insight-row strong{color:#eee;font-size:12px;font-weight:600}.get-started-boundary-wall{min-height:132px}.get-started-dual-source-graph{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}.get-started-sandbox-core,.get-started-dual-source-graph>.get-started-diagram-node:last-child{grid-column:1 / -1}.get-started-sandbox-core{min-height:70px}.get-started-timeline-graph{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:center;gap:10px;min-width:0}.get-started-timeline-graph:before{position:absolute;top:28px;right:8%;left:8%;border-top:1px dashed rgba(255,255,255,.22);content:""}.get-started-timeline-step{position:relative;z-index:1;display:grid;justify-items:center;gap:6px;min-width:0;border:1px solid rgba(255,255,255,.1);border-radius:8px;background:#111;padding:12px 8px;text-align:center}.get-started-timeline-step strong,.get-started-timeline-step span{overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap}.get-started-timeline-step strong{color:#f2f2f2;font-size:12px}.get-started-timeline-step span{color:#969696;font-size:11px}.get-started-setup-graph{grid-template-columns:minmax(0,1.18fr) minmax(128px,.62fr)}.get-started-subagent-settings-graph{grid-template-columns:minmax(128px,.56fr) minmax(0,1fr) minmax(128px,.56fr)}.get-started-subagent-role-table{display:grid;gap:7px;min-width:0}.get-started-subagent-role-row{display:grid;grid-template-columns:minmax(68px,.42fr) minmax(92px,.58fr) minmax(104px,.62fr);align-items:center;gap:8px;min-height:39px;min-width:0;border:1px solid rgba(255,255,255,.095);border-radius:8px;background:#ffffff0e;padding:8px 9px}.get-started-subagent-role-row strong,.get-started-subagent-role-row span,.get-started-subagent-role-row em{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.get-started-subagent-role-row strong{color:#eee;font-size:12px;font-weight:620}.get-started-subagent-role-row span,.get-started-subagent-role-row em{color:#9a9a9a;font-size:11px;font-style:normal}.get-started-setup-table{display:grid;gap:7px;min-width:0}.get-started-setup-table .get-started-setup-row{display:grid;grid-template-columns:minmax(72px,.46fr) minmax(0,1fr) minmax(64px,.36fr);align-items:center;gap:8px;min-height:38px;border:1px solid rgba(255,255,255,.095);border-radius:8px;background:#ffffff0e;padding:7px 9px}.get-started-gate-decision{min-height:164px}.get-started-router-graph{grid-template-columns:minmax(0,1fr) minmax(124px,.72fr) minmax(0,1fr)}.get-started-channel-list,.get-started-router-results{display:grid;gap:7px;min-width:0}.get-started-router-core{min-height:146px}@media(max-width:900px){.get-started-view{width:min(100% - 28px,1040px);padding-top:24px}.get-started-deck-body{grid-template-columns:minmax(0,1fr);min-height:0;padding:20px}.get-started-deck-copy{align-content:start}.get-started-slide-copy h2{font-size:26px}.get-started-flow-graph,.get-started-insights-loop,.get-started-subagent-handoff-graph,.get-started-review-graph,.get-started-sync-graph,.get-started-publish-graph{align-items:stretch}.get-started-hub-graph{grid-template-columns:minmax(128px,.95fr) minmax(142px,.86fr) minmax(136px,1fr)}}@media(max-width:620px){.get-started-tabs{grid-auto-columns:minmax(132px,45vw)}.get-started-deck-body{padding:16px}.get-started-slide-copy h2{font-size:23px}.get-started-visual-inner{padding:14px}.get-started-flow-graph,.get-started-insights-loop,.get-started-review-graph,.get-started-sync-graph,.get-started-publish-graph{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}.get-started-connector{min-height:16px;min-width:0}.get-started-connector>span{width:38px;min-width:0;height:1px;border-top:1px dashed rgba(255,255,255,.24)}.get-started-connector em{max-width:100%}.get-started-hub-graph,.get-started-contract-graph,.get-started-gate-graph,.get-started-boundary-graph,.get-started-apps-graph,.get-started-dual-source-graph,.get-started-setup-graph,.get-started-subagent-settings-graph,.get-started-router-graph{grid-template-columns:minmax(0,1fr)}.get-started-hub-graph:before,.get-started-timeline-graph:before{display:none}.get-started-loop-graph,.get-started-state-graph{grid-template-columns:minmax(0,1fr);gap:8px;min-height:0}.get-started-loop-ring{display:none}.get-started-loop-center,.get-started-state-core{position:static;width:auto;min-height:72px;transform:none}.get-started-contract-graph>.get-started-connector{order:2}.get-started-contract-graph>.get-started-diagram-node:last-of-type{order:3}.get-started-consumer-strip{grid-template-columns:repeat(2,minmax(0,1fr));order:4}.get-started-check-grid,.get-started-insights-toolbar,.get-started-timeline-graph{grid-template-columns:repeat(2,minmax(0,1fr))}.get-started-insight-row{grid-template-columns:minmax(0,1fr)}.get-started-controls{align-items:flex-start;flex-direction:column}}@media(prefers-reduced-motion:reduce){.get-started-progress-fill,.get-started-tabs button,.get-started-icon-button{transition:none}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e,r as c,b5 as T,b7 as I,U as L,w as R,aJ as M}from"./index-CKmte5ok.js";import{P as D}from"./play-DLCuESeG.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=>c.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=>c.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=>c.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_improve.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"?T:I(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]=c.useState(0),[p,m]=c.useState(!1),o=t.slides[n]??t.slides[0],b=n*v,C=t.slides.length*v;c.useEffect(()=>{h(0),m(!1)},[t.id,s]),c.useEffect(()=>{if(!p||i)return;const d=window.setTimeout(()=>{h(j=>j===t.slides.length-1?0:j+1)},N);return()=>window.clearTimeout(d)},[n,t.slides.length,p,i]),c.useEffect(()=>{i&&m(!1)},[i]);function E(){h(d=>d===0?t.slides.length-1:d-1)}function P(){h(d=>d===t.slides.length-1?0:d+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((d,j)=>{const w=j===n,A=j<n;return e.jsx("button",{"aria-label":`Show ${d.title}`,className:"get-started-progress-button",onClick:()=>h(j),type:"button",children:e.jsx("span",{className:`get-started-progress-fill accent-${d.accent} ${w||A?"filled":""}`,style:{transitionDuration:w&&p&&!i?`${N}ms`:"180ms"}})},d.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(L,{size:16})}),e.jsx("button",{"aria-label":p?"Pause slides":"Play slides",className:"get-started-icon-button",onClick:()=>m(d=>!d),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(b)," / ",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]=c.useState(!1);return c.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",f=[{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 reviews goal and Create/Improve state.",slides:[{id:"insights-detect",eyebrow:"Detector",title:"Insights runs on top of goals",body:"Insights watches `create_improve.updated` events and turns stuck Create/Improve runs 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. Open the suggestions inbox in Lab to enable scanning, 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 ce(t){const[s,i]=c.useState("goal"),[n,h]=c.useState(0),p=c.useMemo(()=>f.find(o=>o.id===s)??f[0],[s]);function m(o){i(o),h(b=>b+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:f.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{ce as GetStartedView};
|