@alwith/module-chat 0.5.11 → 0.5.13
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/README.md +7 -0
- package/dist/activity-host.js +1 -1
- package/dist/approval/choice-elicitation-form.js +1 -1
- package/dist/approval/choice-schema.js +1 -1
- package/dist/approval/permission-options.js +1 -1
- package/dist/approval/permission-view.js +1 -1
- package/dist/approval/schema-elicitation-form.js +1 -1
- package/dist/approval/url-elicitation-card.js +1 -1
- package/dist/{chunk-rnzphmk6.js → chunk-0keppemg.js} +2 -2
- package/dist/{chunk-sr5rcdza.js → chunk-0mze2qnw.js} +2 -2
- package/dist/{chunk-cpk3y6ad.js → chunk-195y00jd.js} +2 -2
- package/dist/chunk-19a0ehyy.js +2 -0
- package/dist/{chunk-5m4605a3.js → chunk-1ghceftn.js} +1 -1
- package/dist/chunk-1gmz5kxh.js +2 -0
- package/dist/{chunk-460phps1.js → chunk-1wpdb17m.js} +2 -2
- package/dist/{chunk-294gms5s.js → chunk-1z6v9pjq.js} +2 -2
- package/dist/{chunk-abwjd5yv.js → chunk-20mzyay7.js} +2 -2
- package/dist/{chunk-6amcjhqh.js → chunk-215c1t1e.js} +2 -2
- package/dist/{chunk-0d4xsx23.js → chunk-2bkh8cjr.js} +2 -2
- package/dist/{chunk-zz734bzf.js → chunk-2pj3pcc7.js} +2 -2
- package/dist/{chunk-hxhptw6e.js → chunk-2qhbm5y9.js} +2 -2
- package/dist/{chunk-7jdazbzv.js → chunk-2r3sfmyf.js} +2 -2
- package/dist/chunk-2wxea30c.js +2 -0
- package/dist/{chunk-w43dvzqk.js → chunk-3ccatjcc.js} +3 -3
- package/dist/chunk-3fvwqfm2.js +2 -0
- package/dist/{chunk-a3krtv66.js → chunk-3wwkzyxs.js} +2 -2
- package/dist/{chunk-20svvgj3.js → chunk-40d5the9.js} +2 -2
- package/dist/{chunk-qw0jp3wm.js → chunk-4p7yyxq8.js} +2 -2
- package/dist/{chunk-kahn24np.js → chunk-4q7rpdzc.js} +2 -2
- package/dist/chunk-4r3ch7fk.js +2 -0
- package/dist/{chunk-wb3zpzk3.js → chunk-4tst6wwf.js} +1 -1
- package/dist/{chunk-tjgq4882.js → chunk-4z4tec0p.js} +2 -2
- package/dist/{chunk-cke0v0a7.js → chunk-5cnw6yc7.js} +1 -1
- package/dist/{chunk-5w92bzgs.js → chunk-5mpabjpm.js} +2 -2
- package/dist/{chunk-vv1ghqq3.js → chunk-5pr21n80.js} +1 -1
- package/dist/{chunk-znx2e9e7.js → chunk-5x4an3fb.js} +2 -2
- package/dist/chunk-6acs2hzs.js +2 -0
- package/dist/{chunk-4hv66fey.js → chunk-6t3tgzps.js} +2 -2
- package/dist/chunk-6y5d4j79.js +2 -0
- package/dist/chunk-7cm1jptm.js +2 -0
- package/dist/{chunk-0gwe31zs.js → chunk-7h1m9nbx.js} +2 -2
- package/dist/chunk-7x4dpkzh.js +2 -0
- package/dist/{chunk-knsf6jm1.js → chunk-8q0nz9fp.js} +2 -2
- package/dist/chunk-8x43r6fk.js +2 -0
- package/dist/{chunk-1hy64ewz.js → chunk-9mxxxkzq.js} +1 -1
- package/dist/{chunk-fe3c678p.js → chunk-9v7x6sqy.js} +2 -2
- package/dist/chunk-9wgngtx8.js +2 -0
- package/dist/{chunk-91x8etvh.js → chunk-a4j8mjg1.js} +2 -2
- package/dist/{chunk-17zegmxa.js → chunk-aac5y6xt.js} +1 -1
- package/dist/chunk-afd3bq7v.js +2 -0
- package/dist/{chunk-magaaqab.js → chunk-ajmyr2zy.js} +1 -1
- package/dist/{chunk-7h8pv9eg.js → chunk-apqdf6y3.js} +1 -1
- package/dist/chunk-b0zk92wd.js +2 -0
- package/dist/chunk-b7afpbwn.js +3 -0
- package/dist/chunk-b9hjn4a5.js +2 -0
- package/dist/{chunk-qah4fs3d.js → chunk-bk0ezksw.js} +1 -1
- package/dist/chunk-bm68x7xa.js +3 -0
- package/dist/chunk-bx2rafbd.js +3 -0
- package/dist/{chunk-syffw61b.js → chunk-c2bkhrcc.js} +4 -4
- package/dist/{chunk-hjnf5kvc.js → chunk-c4t2a146.js} +2 -2
- package/dist/{chunk-b65vdzz3.js → chunk-can1xpx6.js} +1 -1
- package/dist/chunk-cc0tan75.js +2 -0
- package/dist/chunk-cj9htyem.js +2 -0
- package/dist/chunk-d0q5kbq8.js +2 -0
- package/dist/{chunk-6d7ppje3.js → chunk-d1z2ns5m.js} +2 -2
- package/dist/chunk-de85vphg.js +2 -0
- package/dist/{chunk-jn0q0b7k.js → chunk-dnsmr5nf.js} +2 -2
- package/dist/{chunk-r79zqx0t.js → chunk-e4a1cf50.js} +5 -5
- package/dist/{chunk-k5c82xk9.js → chunk-e8ngg07w.js} +2 -2
- package/dist/{chunk-ksv9pjc2.js → chunk-emdw6cpb.js} +1 -1
- package/dist/chunk-ey5vrsya.js +2 -0
- package/dist/{chunk-4svcj9c6.js → chunk-fexvhys2.js} +2 -2
- package/dist/chunk-fsyc5ybt.js +2 -0
- package/dist/{chunk-p8nx34zm.js → chunk-ftcydsbs.js} +2 -2
- package/dist/{chunk-ynw0f8h2.js → chunk-gqxjp1xf.js} +2 -2
- package/dist/chunk-gtyab797.js +2 -0
- package/dist/{chunk-88xay4pa.js → chunk-hfaarm10.js} +2 -2
- package/dist/{chunk-5kpcpjrb.js → chunk-hhwdk46d.js} +3 -3
- package/dist/{chunk-6kn920c5.js → chunk-htnp024d.js} +1 -1
- package/dist/{chunk-t3ew92b3.js → chunk-j3tka93v.js} +2 -2
- package/dist/{chunk-rszktjdw.js → chunk-j5047dxn.js} +3 -3
- package/dist/{chunk-7a6t282a.js → chunk-jgvbf3sx.js} +1 -1
- package/dist/{chunk-0yvbqccv.js → chunk-jkwf97cs.js} +2 -2
- package/dist/{chunk-sex6d2c2.js → chunk-k7gn0faf.js} +2 -2
- package/dist/{chunk-ek06eyp4.js → chunk-kjtd3wc3.js} +1 -1
- package/dist/{chunk-t6t6hgzx.js → chunk-ksb110ef.js} +2 -2
- package/dist/{chunk-6edz9f7j.js → chunk-kv0tnq8g.js} +2 -2
- package/dist/chunk-kzcrcs7q.js +2 -0
- package/dist/{chunk-c0ac9k7h.js → chunk-m4dgha79.js} +2 -2
- package/dist/{chunk-g7p46jq1.js → chunk-m5k1xtjr.js} +2 -2
- package/dist/{chunk-qnk5jk1b.js → chunk-mbjv33a2.js} +2 -2
- package/dist/chunk-mqxg6cgm.js +4 -0
- package/dist/{chunk-krmz8t4p.js → chunk-mrfy48hg.js} +2 -2
- package/dist/{chunk-1drkvxzk.js → chunk-ms49ecg4.js} +1 -1
- package/dist/chunk-mst2ng40.js +7 -0
- package/dist/{chunk-svt0t387.js → chunk-mzh48e09.js} +2 -2
- package/dist/{chunk-tv89wh8b.js → chunk-n9f80j0a.js} +2 -2
- package/dist/chunk-ns6yd5s6.js +3 -0
- package/dist/{chunk-cjztkcsm.js → chunk-nt59nkbj.js} +2 -2
- package/dist/chunk-ntegv7av.js +2 -0
- package/dist/{chunk-gzff19t3.js → chunk-nvqy2rd1.js} +2 -2
- package/dist/{chunk-7k0wvvy0.js → chunk-p12g8enf.js} +1 -1
- package/dist/{chunk-mt965yn0.js → chunk-phq6b35v.js} +2 -2
- package/dist/{chunk-xxkdv1zf.js → chunk-pv35kspb.js} +1 -1
- package/dist/chunk-q6km9nha.js +2 -0
- package/dist/chunk-qa6kb660.js +2 -0
- package/dist/{chunk-0n240acr.js → chunk-qp7aywgn.js} +2 -2
- package/dist/{chunk-50qyant6.js → chunk-qpdgh554.js} +3 -3
- package/dist/{chunk-nkypxxjk.js → chunk-qx9j4bnh.js} +1 -1
- package/dist/{chunk-ryz4c13z.js → chunk-qxabrz98.js} +2 -2
- package/dist/{chunk-m99k3e5h.js → chunk-qz8gpb9j.js} +2 -2
- package/dist/{chunk-5hsmhj1g.js → chunk-r8mszb32.js} +3 -3
- package/dist/{chunk-30wqrz8v.js → chunk-rf9yxbes.js} +2 -2
- package/dist/{chunk-qj63fv6w.js → chunk-rwczpvta.js} +2 -2
- package/dist/{chunk-qpc4ca5y.js → chunk-rxwqvya2.js} +2 -2
- package/dist/{chunk-w8qmh6he.js → chunk-s0ef3h7b.js} +2 -2
- package/dist/chunk-s55n9cby.js +2 -0
- package/dist/chunk-t1j88bvm.js +2 -0
- package/dist/chunk-t1m9ysv5.js +2 -0
- package/dist/{chunk-2pha46d9.js → chunk-tc7qxw3f.js} +1 -1
- package/dist/{chunk-ak0k5vg6.js → chunk-tc85dd04.js} +1 -1
- package/dist/chunk-tq6ekz3s.js +2 -0
- package/dist/chunk-tv74s60m.js +2 -0
- package/dist/chunk-vbgfrh23.js +2 -0
- package/dist/{chunk-jhk2chpp.js → chunk-wdy20cvh.js} +2 -2
- package/dist/chunk-wf9bna6z.js +2 -0
- package/dist/{chunk-728v2as1.js → chunk-wmeebq8x.js} +2 -2
- package/dist/{chunk-f4h7yb7d.js → chunk-wmp3w889.js} +2 -2
- package/dist/{chunk-zbtas7pt.js → chunk-wtkn1jej.js} +2 -2
- package/dist/chunk-x2wg6e97.js +2 -0
- package/dist/chunk-x8kxqtva.js +2 -0
- package/dist/{chunk-cgqhz23q.js → chunk-xpdv1aed.js} +2 -2
- package/dist/chunk-xqr05vqf.js +2 -0
- package/dist/chunk-xw93fypz.js +3 -0
- package/dist/{chunk-hrsz92yq.js → chunk-xx4tnhcy.js} +1 -1
- package/dist/{chunk-mgtkmbmd.js → chunk-y2z94rrh.js} +2 -2
- package/dist/chunk-y6xhz68r.js +2 -0
- package/dist/{chunk-377s443r.js → chunk-yh9qdb2k.js} +3 -3
- package/dist/{chunk-rnykpmn2.js → chunk-yhxs6266.js} +2 -2
- package/dist/{chunk-6ss1981q.js → chunk-ykp85wc1.js} +2 -2
- package/dist/{chunk-m6rrt94g.js → chunk-zrx7qt5g.js} +2 -2
- package/dist/codex/activity-group.js +1 -1
- package/dist/codex/assistant-message.d.ts +2 -1
- package/dist/codex/assistant-message.js +1 -1
- package/dist/codex/async-question-card.js +1 -1
- package/dist/codex/disclosure-state.js +1 -1
- package/dist/codex/edited-files-card.js +1 -1
- package/dist/codex/image-view-activity.js +1 -1
- package/dist/codex/markdown-renderer.js +1 -1
- package/dist/codex/navigation-audio.js +1 -1
- package/dist/codex/navigation-preview.js +1 -1
- package/dist/codex/navigation-rail.js +1 -1
- package/dist/codex/patch-view.js +1 -1
- package/dist/codex/plan.js +1 -1
- package/dist/codex/timeline-virtualizer.js +1 -1
- package/dist/codex/turn-activity.d.ts +1 -1
- package/dist/codex/turn-activity.js +1 -1
- package/dist/codex/user-message.js +1 -1
- package/dist/codex/virtualized-turn-list.js +1 -1
- package/dist/composer/completion-filter.js +1 -1
- package/dist/composer/completion-menu.js +1 -1
- package/dist/composer/completion-trigger.js +1 -1
- package/dist/composer/effort-slider.js +1 -1
- package/dist/composer/menu-radio.js +1 -1
- package/dist/composer/model-select.js +1 -1
- package/dist/composer/permission-mode-select.js +1 -1
- package/dist/composer/prompt-input-attachments.js +1 -1
- package/dist/composer/prompt-input-clipboard.js +1 -1
- package/dist/composer/prompt-input-context.js +1 -1
- package/dist/composer/prompt-input-textarea.js +1 -1
- package/dist/composer/prompt-input.js +1 -1
- package/dist/conversation/action-card.js +1 -1
- package/dist/conversation/composer/composer.d.ts +2 -1
- package/dist/conversation/composer/composer.js +1 -1
- package/dist/conversation/composer/config-options.js +1 -1
- package/dist/conversation/composer/context.d.ts +1 -0
- package/dist/conversation/composer/context.js +1 -1
- package/dist/conversation/composer/drafts.js +1 -1
- package/dist/conversation/composer/file-items.js +1 -1
- package/dist/conversation/composer/long-text.js +1 -1
- package/dist/conversation/composer/mention-chips.js +1 -1
- package/dist/conversation/composer/mention-uri.js +1 -1
- package/dist/conversation/composer/model-menu.d.ts +1 -1
- package/dist/conversation/composer/model-menu.js +1 -1
- package/dist/conversation/composer/pasted-text-attachment.js +1 -1
- package/dist/conversation/composer/permission-mode-menu.js +1 -1
- package/dist/conversation/composer/prediction.js +1 -1
- package/dist/conversation/composer/slash-command-button.js +1 -1
- package/dist/conversation/composer/submit-button.js +1 -1
- package/dist/conversation/composer/usage-meter.js +1 -1
- package/dist/conversation/context.js +1 -1
- package/dist/conversation/conversation-body.js +1 -1
- package/dist/conversation/conversation-view.js +1 -1
- package/dist/conversation/conversation.d.ts +1 -0
- package/dist/conversation/conversation.js +1 -1
- package/dist/conversation/diff-modal.js +1 -1
- package/dist/conversation/session-actions.js +1 -1
- package/dist/conversation/subagent-sessions.d.ts +3 -0
- package/dist/conversation/subagent-sessions.js +1 -0
- package/dist/image-lightbox.js +1 -1
- package/dist/image-preview-dialog.js +1 -1
- package/dist/lib/code-highlighter.js +1 -1
- package/dist/lib/fuzzy.js +1 -1
- package/dist/lib/group-blocks.js +1 -1
- package/dist/lib/image-encode.js +1 -1
- package/dist/lib/limits.js +1 -1
- package/dist/lib/markdown-parser.js +1 -1
- package/dist/lib/markdown-rules.js +1 -1
- package/dist/lib/model-name.js +1 -1
- package/dist/lib/pointer-centered-zoom.js +1 -1
- package/dist/lib/prepare-prompt-files.js +1 -1
- package/dist/lib/stream-style.js +1 -1
- package/dist/lib/streaming-markdown.js +1 -1
- package/dist/locales.d.ts +156 -0
- package/dist/locales.js +1 -1
- package/dist/search/chat-search.js +1 -1
- package/dist/search/dom-matches.js +1 -1
- package/dist/search/find-bar.js +1 -1
- package/dist/search/literal-matches.js +1 -1
- package/dist/session-list/archived-sessions.js +1 -1
- package/dist/session-list/highlight.js +1 -1
- package/dist/session-list/host.js +1 -1
- package/dist/session-list/hover-info-card.js +1 -1
- package/dist/session-list/locales.js +1 -1
- package/dist/session-list/navigation.js +1 -1
- package/dist/session-list/overflow-marquee.js +1 -1
- package/dist/session-list/row-stop-button.js +1 -1
- package/dist/session-list/session-groups.js +1 -1
- package/dist/session-list/session-info-card.js +1 -1
- package/dist/session-list/session-list.js +1 -1
- package/dist/session-list/session-row.js +1 -1
- package/dist/session-list/session-state-dot.js +1 -1
- package/dist/session-list/session-state-menu.js +1 -1
- package/dist/session-list/sidebar-overlay.js +1 -1
- package/dist/session-list/trailing-swap.js +1 -1
- package/dist/session-list/use-activity-preview.js +1 -1
- package/dist/session-list/use-project-sessions.js +1 -1
- package/dist/session-list/virtual-session-rows.js +1 -1
- package/dist/session-timeline/activity-group.js +1 -1
- package/dist/session-timeline/activity-projection.d.ts +2 -1
- package/dist/session-timeline/activity-projection.js +1 -1
- package/dist/session-timeline/assistant-content.js +1 -1
- package/dist/session-timeline/assistant-turn.js +1 -1
- package/dist/session-timeline/async-questions.js +1 -1
- package/dist/session-timeline/edited-files-card.js +1 -1
- package/dist/session-timeline/history-timeline.js +1 -1
- package/dist/session-timeline/host.js +1 -1
- package/dist/session-timeline/navigation-rail.js +1 -1
- package/dist/session-timeline/plan.js +1 -1
- package/dist/session-timeline/question-reply.js +1 -1
- package/dist/session-timeline/resource-content.js +1 -1
- package/dist/session-timeline/session-timeline.js +1 -1
- package/dist/session-timeline/timeline-registry.js +1 -1
- package/dist/session-timeline/turn-activity.js +1 -1
- package/dist/session-timeline/turn-error.js +1 -1
- package/dist/session-timeline/turn-retry.js +1 -1
- package/dist/session-timeline/turn-time.js +1 -1
- package/dist/session-timeline/turns.js +1 -1
- package/dist/session-timeline/use-timeline-scroll.js +1 -1
- package/dist/session-timeline/user-message.js +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/ui/alert.js +1 -1
- package/dist/ui/badge.js +1 -1
- package/dist/ui/button.js +1 -1
- package/dist/ui/card.js +1 -1
- package/dist/ui/checkbox.js +1 -1
- package/dist/ui/dialog.js +1 -1
- package/dist/ui/dropdown-menu.js +1 -1
- package/dist/ui/empty.js +1 -1
- package/dist/ui/field.js +1 -1
- package/dist/ui/hover-card.js +1 -1
- package/dist/ui/input-group-textarea.js +1 -1
- package/dist/ui/input-group.js +1 -1
- package/dist/ui/input.js +1 -1
- package/dist/ui/kbd.js +1 -1
- package/dist/ui/label.js +1 -1
- package/dist/ui/radio-group.js +1 -1
- package/dist/ui/select.js +1 -1
- package/dist/ui/separator.js +1 -1
- package/dist/ui/skeleton.js +1 -1
- package/dist/ui/spinner.js +1 -1
- package/dist/ui/switch.js +1 -1
- package/dist/ui/tooltip.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-0kwfy29d.js +0 -2
- package/dist/chunk-133f0wed.js +0 -2
- package/dist/chunk-31x6chk8.js +0 -2
- package/dist/chunk-3e0mfcj6.js +0 -2
- package/dist/chunk-3vrtepy0.js +0 -3
- package/dist/chunk-443z7mve.js +0 -2
- package/dist/chunk-4b3s7gyc.js +0 -3
- package/dist/chunk-4nh3xzrm.js +0 -2
- package/dist/chunk-51sbmqdk.js +0 -2
- package/dist/chunk-5ev4qvsp.js +0 -2
- package/dist/chunk-5fgakrmr.js +0 -2
- package/dist/chunk-64whvkk0.js +0 -2
- package/dist/chunk-6pmc9283.js +0 -2
- package/dist/chunk-7drq0g9b.js +0 -2
- package/dist/chunk-7dzq2t68.js +0 -2
- package/dist/chunk-93x6b2qa.js +0 -3
- package/dist/chunk-96xwaa2t.js +0 -2
- package/dist/chunk-9a4kjze3.js +0 -7
- package/dist/chunk-9tdzg6e6.js +0 -2
- package/dist/chunk-aprxk7c2.js +0 -2
- package/dist/chunk-b4dsjhkq.js +0 -2
- package/dist/chunk-bhze2sjv.js +0 -2
- package/dist/chunk-d84cxw1v.js +0 -2
- package/dist/chunk-dp8pjv6r.js +0 -2
- package/dist/chunk-e11qjnb4.js +0 -2
- package/dist/chunk-e55zxnda.js +0 -2
- package/dist/chunk-f1zvbkak.js +0 -2
- package/dist/chunk-gj3j9zh5.js +0 -3
- package/dist/chunk-ha5jfz6r.js +0 -4
- package/dist/chunk-j2wtwb37.js +0 -3
- package/dist/chunk-j2wty8a3.js +0 -2
- package/dist/chunk-k3375qqd.js +0 -2
- package/dist/chunk-m28hdj8j.js +0 -2
- package/dist/chunk-m8djwdd5.js +0 -2
- package/dist/chunk-p1ydsj54.js +0 -2
- package/dist/chunk-p8qgqtkc.js +0 -2
- package/dist/chunk-q905xt4v.js +0 -2
- package/dist/chunk-w6hhyjcn.js +0 -2
- package/dist/chunk-xh8wth6z.js +0 -2
- package/dist/chunk-y3qgsj79.js +0 -2
- package/dist/chunk-ysc51tpb.js +0 -2
- package/dist/chunk-zt8qaqbz.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Bo}from"../chunk-bm68x7xa.js";import"../chunk-b7afpbwn.js";import"../chunk-e4a1cf50.js";import"../chunk-qpdgh554.js";import"../chunk-2bkh8cjr.js";import"../chunk-mst2ng40.js";import"../chunk-ftcydsbs.js";import"../chunk-s55n9cby.js";import"../chunk-gqxjp1xf.js";import"../chunk-3ccatjcc.js";import"../chunk-kv0tnq8g.js";import"../chunk-qz8gpb9j.js";import"../chunk-4z4tec0p.js";import"../chunk-0mze2qnw.js";import"../chunk-qp7aywgn.js";import"../chunk-zrx7qt5g.js";import"../chunk-m4dgha79.js";import"../chunk-a4j8mjg1.js";import"../chunk-xqr05vqf.js";import"../chunk-wdy20cvh.js";import"../chunk-m5k1xtjr.js";import"../chunk-hhwdk46d.js";import"../chunk-qa6kb660.js";import"../chunk-cc0tan75.js";import"../chunk-s0ef3h7b.js";import"../chunk-1ghceftn.js";import"../chunk-kjtd3wc3.js";import"../chunk-ncekagm6.js";import"../chunk-htnp024d.js";import"../chunk-q6km9nha.js";import"../chunk-qxabrz98.js";export{Bo as AssistantTurn};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{cn}from"../chunk-xqr05vqf.js";import"../chunk-wdy20cvh.js";import"../chunk-m5k1xtjr.js";import"../chunk-hhwdk46d.js";import"../chunk-1ghceftn.js";import"../chunk-kjtd3wc3.js";import"../chunk-ncekagm6.js";import"../chunk-htnp024d.js";import"../chunk-q6km9nha.js";import"../chunk-qxabrz98.js";export{cn as AsyncQuestions};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{zr,Ur,$r,zo}from"../chunk-e4a1cf50.js";import"../chunk-qpdgh554.js";import"../chunk-q6km9nha.js";import"../chunk-qxabrz98.js";export{zo as EditedFilesCard,$r as fileChanges,zr as filePatch,Ur as patchStatsByFile};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Oo}from"../chunk-0keppemg.js";export{Oo as historyTimeline};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{re,t,ie,ke,
|
|
1
|
+
import{re,t,ie,ke,n,Ge}from"../chunk-q6km9nha.js";import"../chunk-qxabrz98.js";export{re as TimelineProvider,Ge as reportError,n as useClientState,ke as useStoreState,ie as useTimelineClient,t as useTimelineHost};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Hr,Io,Po}from"../chunk-3wwkzyxs.js";import"../chunk-c2bkhrcc.js";import"../chunk-fexvhys2.js";import"../chunk-5x4an3fb.js";import"../chunk-e8ngg07w.js";import"../chunk-dnsmr5nf.js";import"../chunk-rf9yxbes.js";import"../chunk-hfaarm10.js";import"../chunk-zrx7qt5g.js";import"../chunk-hhwdk46d.js";import"../chunk-1ghceftn.js";import"../chunk-kjtd3wc3.js";import"../chunk-ncekagm6.js";import"../chunk-htnp024d.js";import"../chunk-q6km9nha.js";import"../chunk-qxabrz98.js";export{Po as TimelineNavigationRail,Hr as navigationAudio,Io as toNavigationRailItems};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ar}from"../chunk-cc0tan75.js";import"../chunk-s0ef3h7b.js";import"../chunk-qxabrz98.js";export{ar as TurnPlan};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{To,So}from"../chunk-1wpdb17m.js";export{To as questionReply,So as questionReplyParts};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Cr,B}from"../chunk-m5k1xtjr.js";import"../chunk-htnp024d.js";import"../chunk-q6km9nha.js";import"../chunk-qxabrz98.js";export{B as ResourceContent,Cr as chatFileName};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Ue}from"../chunk-9wgngtx8.js";import"../chunk-d0q5kbq8.js";import"../chunk-7h1m9nbx.js";import"../chunk-2qhbm5y9.js";import"../chunk-d1z2ns5m.js";import"../chunk-mqxg6cgm.js";import"../chunk-1wpdb17m.js";import{Hr}from"../chunk-3wwkzyxs.js";import"../chunk-c2bkhrcc.js";import"../chunk-fexvhys2.js";import"../chunk-5x4an3fb.js";import"../chunk-e8ngg07w.js";import"../chunk-dnsmr5nf.js";import"../chunk-rf9yxbes.js";import"../chunk-hfaarm10.js";import"../chunk-0keppemg.js";import"../chunk-jkwf97cs.js";import"../chunk-bm68x7xa.js";import"../chunk-b7afpbwn.js";import"../chunk-e4a1cf50.js";import"../chunk-qpdgh554.js";import"../chunk-2bkh8cjr.js";import"../chunk-mst2ng40.js";import"../chunk-ftcydsbs.js";import"../chunk-s55n9cby.js";import"../chunk-gqxjp1xf.js";import"../chunk-3ccatjcc.js";import"../chunk-kv0tnq8g.js";import"../chunk-qz8gpb9j.js";import"../chunk-4z4tec0p.js";import"../chunk-0mze2qnw.js";import"../chunk-qp7aywgn.js";import"../chunk-zrx7qt5g.js";import"../chunk-m4dgha79.js";import"../chunk-a4j8mjg1.js";import"../chunk-xqr05vqf.js";import"../chunk-wdy20cvh.js";import"../chunk-m5k1xtjr.js";import"../chunk-hhwdk46d.js";import"../chunk-qa6kb660.js";import"../chunk-cc0tan75.js";import"../chunk-s0ef3h7b.js";import"../chunk-1ghceftn.js";import"../chunk-kjtd3wc3.js";import"../chunk-ncekagm6.js";import"../chunk-htnp024d.js";import{re}from"../chunk-q6km9nha.js";import"../chunk-qxabrz98.js";export{Ue as SessionTimeline,re as TimelineProvider,Hr as navigationAudio};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Qt,wo,ko,ki}from"../chunk-d1z2ns5m.js";export{ko as clearTimeline,wo as publishTimeline,ki as revealTimelineTurn,Qt as timelineRegistry};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Go}from"../chunk-qz8gpb9j.js";import"../chunk-4z4tec0p.js";export{Go as projectTurnActivity};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{sn,ln}from"../chunk-a4j8mjg1.js";import"../chunk-htnp024d.js";import"../chunk-q6km9nha.js";import"../chunk-qxabrz98.js";export{sn as ErrorCard,ln as TurnErrorView};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{bo}from"../chunk-2qhbm5y9.js";export{bo as capacityRetryDelay};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Ve}from"../chunk-m4dgha79.js";export{Ve as formatTurnTime};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Wr,Xo,Yo,rn,Q,qe,an,Zo,Jo,er,tr}from"../chunk-zrx7qt5g.js";import"../chunk-hhwdk46d.js";import"../chunk-1ghceftn.js";import"../chunk-kjtd3wc3.js";import"../chunk-ncekagm6.js";import"../chunk-htnp024d.js";export{er as activeTurnKey,Jo as continuesTurn,Yo as groupTurns,qe as isHistoryInterrupted,rn as isHistoryItem,Wr as isMcpStartup,Xo as isSessionStatus,an as isTurnInterrupted,Q as messageText,tr as turnPresentation,Zo as turnTiming};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Fo}from"../chunk-jkwf97cs.js";export{Fo as useTimelineScroll};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Co}from"../chunk-mqxg6cgm.js";import"../chunk-1wpdb17m.js";import"../chunk-0mze2qnw.js";import"../chunk-qp7aywgn.js";import"../chunk-zrx7qt5g.js";import"../chunk-m5k1xtjr.js";import"../chunk-hhwdk46d.js";import"../chunk-1ghceftn.js";import"../chunk-kjtd3wc3.js";import"../chunk-ncekagm6.js";import"../chunk-htnp024d.js";import"../chunk-q6km9nha.js";import"../chunk-qxabrz98.js";export{Co as UserMessage};
|
package/dist/types.d.ts
CHANGED
package/dist/ui/alert.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{V,Lt,W,Zr}from"../chunk-5cnw6yc7.js";export{V as Alert,Zr as AlertAction,W as AlertDescription,Lt as AlertTitle};
|
package/dist/ui/badge.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Gr,We}from"../chunk-qx9j4bnh.js";export{We as Badge,Gr as badgeVariants};
|
package/dist/ui/button.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jr,e}from"../chunk-htnp024d.js";export{e as Button,jr as buttonVariants};
|
package/dist/ui/card.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{oo,ro,io,ao,pi,so,lo}from"../chunk-5pr21n80.js";export{oo as Card,pi as CardAction,so as CardContent,ao as CardDescription,lo as CardFooter,ro as CardHeader,io as CardTitle};
|
package/dist/ui/checkbox.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{fe}from"../chunk-ms49ecg4.js";export{fe as Checkbox};
|
package/dist/ui/dialog.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{u,xi,Dr,go,_r,m,b,K,p,w}from"../chunk-aac5y6xt.js";import"../chunk-htnp024d.js";export{u as Dialog,go as DialogClose,m as DialogContent,w as DialogDescription,K as DialogFooter,b as DialogHeader,_r as DialogOverlay,Dr as DialogPortal,p as DialogTitle,xi as DialogTrigger};
|
package/dist/ui/dropdown-menu.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{H,
|
|
1
|
+
import{H,ei,O,S,F,te,I,Re,Ee,Ae,Bt,On,Fn,P,ti}from"../chunk-bk0ezksw.js";export{H as DropdownMenu,Bt as DropdownMenuCheckboxItem,S as DropdownMenuContent,F as DropdownMenuGroup,I as DropdownMenuItem,te as DropdownMenuLabel,ei as DropdownMenuPortal,On as DropdownMenuRadioGroup,Fn as DropdownMenuRadioItem,P as DropdownMenuSeparator,ti as DropdownMenuShortcut,Re as DropdownMenuSub,Ae as DropdownMenuSubContent,Ee as DropdownMenuSubTrigger,O as DropdownMenuTrigger};
|
package/dist/ui/empty.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{he,ve,yi,xe,ye,bi}from"../chunk-ajmyr2zy.js";export{he as Empty,bi as EmptyContent,ye as EmptyDescription,ve as EmptyHeader,yi as EmptyMedia,xe as EmptyTitle};
|
package/dist/ui/field.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Gt,jt,co,uo,gi,mo,fi,ht,hi,vi}from"../chunk-p12g8enf.js";import"../chunk-emdw6cpb.js";import"../chunk-kjtd3wc3.js";export{uo as Field,gi as FieldContent,ht as FieldDescription,vi as FieldError,co as FieldGroup,mo as FieldLabel,jt as FieldLegend,hi as FieldSeparator,Gt as FieldSet,fi as FieldTitle};
|
package/dist/ui/hover-card.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Pe,Ne,Me}from"../chunk-can1xpx6.js";export{Pe as HoverCard,Me as HoverCardContent,Ne as HoverCardTrigger};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{$t}from"../chunk-rxwqvya2.js";import"../chunk-ncekagm6.js";export{$t as InputGroupTextarea};
|
package/dist/ui/input-group.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Yn,zt,Ut,ai}from"../chunk-apqdf6y3.js";import{$t}from"../chunk-rxwqvya2.js";import"../chunk-ncekagm6.js";import"../chunk-htnp024d.js";export{Yn as InputGroup,zt as InputGroupAddon,Ut as InputGroupButton,ai as InputGroupText,$t as InputGroupTextarea};
|
package/dist/ui/input.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{c}from"../chunk-9mxxxkzq.js";export{c as Input};
|
package/dist/ui/kbd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Un,ni}from"../chunk-jgvbf3sx.js";export{Un as Kbd,ni as KbdGroup};
|
package/dist/ui/label.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{v}from"../chunk-kjtd3wc3.js";export{v as Label};
|
package/dist/ui/radio-group.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Y,A}from"../chunk-1ghceftn.js";export{Y as RadioGroup,A as RadioGroupItem};
|
package/dist/ui/select.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Nt,
|
|
1
|
+
import{Nt,Qr,Mt,Rt,vn,Xr,Z,Yr,Pr,Nr}from"../chunk-xx4tnhcy.js";export{Nt as Select,vn as SelectContent,Qr as SelectGroup,Z as SelectItem,Xr as SelectLabel,Nr as SelectScrollDownButton,Pr as SelectScrollUpButton,Yr as SelectSeparator,Rt as SelectTrigger,Mt as SelectValue};
|
package/dist/ui/separator.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{j}from"../chunk-emdw6cpb.js";export{j as Separator};
|
package/dist/ui/skeleton.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{It}from"../chunk-tc7qxw3f.js";export{It as Skeleton};
|
package/dist/ui/spinner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{le}from"../chunk-pv35kspb.js";export{le as Spinner};
|
package/dist/ui/switch.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ze}from"../chunk-tc85dd04.js";export{ze as Switch};
|
package/dist/ui/tooltip.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{di,ue,me,pe}from"../chunk-4tst6wwf.js";export{ue as Tooltip,pe as TooltipContent,di as TooltipProvider,me as TooltipTrigger};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwith/module-chat",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.13",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -309,7 +309,7 @@
|
|
|
309
309
|
"@alwith/api": "^0.5.4",
|
|
310
310
|
"react": "^19.3.1",
|
|
311
311
|
"react-dom": "^19.3.1",
|
|
312
|
-
"@nyssance/codex-acp-v2": "^0.7.
|
|
312
|
+
"@nyssance/codex-acp-v2": "^0.7.47"
|
|
313
313
|
},
|
|
314
314
|
"peerDependenciesMeta": {
|
|
315
315
|
"@nyssance/codex-acp-v2": {
|
|
@@ -338,7 +338,7 @@
|
|
|
338
338
|
"@agentclientprotocol/sdk": "^2.1.0",
|
|
339
339
|
"@alwith/api": "^0.5.4",
|
|
340
340
|
"@happy-dom/global-registrator": "^21.0.4",
|
|
341
|
-
"@nyssance/codex-acp-v2": "^0.7.
|
|
341
|
+
"@nyssance/codex-acp-v2": "^0.7.47",
|
|
342
342
|
"@testing-library/dom": "^10.4.2",
|
|
343
343
|
"@testing-library/jest-dom": "^6.9.1",
|
|
344
344
|
"@testing-library/react": "^16.3.3",
|
package/dist/chunk-0kwfy29d.js
DELETED
package/dist/chunk-133f0wed.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ze}from"./chunk-cpk3y6ad.js";import{K,Zo}from"./chunk-zbtas7pt.js";import{t}from"./chunk-dp8pjv6r.js";import{Go}from"./chunk-7a6t282a.js";import{ye,be,we}from"./chunk-wb3zpzk3.js";import{cn as d}from"cn";import{SquareIcon as b}from"lucide-react";import{jsx as o,jsxs as n,Fragment as h}from"react/jsx-runtime";var f=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform);function Vo({active:a,sending:r,ready:p,hasMentions:m=!1,onStop:c}){let{t:e}=t(),s=ze(),u=m||s.textInput.value.trim().length>0||s.attachments.files.length>0,l=!p||r||!u,i=a?e("composer.steer"):e("composer.send");return n(h,{children:[a&&o(K,{"aria-label":e("composer.stop"),title:e("composer.stop"),className:"border-border size-7 rounded-full border",onClick:c,children:o(b,{className:"size-3 fill-current"})}),o("div",{className:d(l&&"cursor-not-allowed"),children:n(ye,{children:[o(be,{render:o(Zo,{"aria-label":i,disabled:l,"aria-busy":r,status:r?"submitted":"ready"})}),n(we,{role:"tooltip",children:[o("span",{className:"min-w-0",children:i}),o(Go,{className:"shrink-0",children:f?"↩":"Enter"})]})]})})]})}
|
|
2
|
-
export{Vo};
|
package/dist/chunk-31x6chk8.js
DELETED
package/dist/chunk-3e0mfcj6.js
DELETED
package/dist/chunk-3vrtepy0.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{q,V}from"./chunk-cke0v0a7.js";import{e}from"./chunk-6kn920c5.js";import{d,u,b,X,m,w}from"./chunk-17zegmxa.js";import{l}from"./chunk-1hy64ewz.js";import{Nt,Mt,Rt,hn,Z}from"./chunk-hrsz92yq.js";import{ce}from"./chunk-xxkdv1zf.js";import{p,s,r}from"./chunk-5fgakrmr.js";import{le,U,L}from"./chunk-d84cxw1v.js";import{sessionGroup as _}from"@nyssance/codex-acp-v2/client";import{cn as fe}from"cn";import{ArchiveIcon as ve,FolderIcon as Y,ListFilterIcon as ge,SearchIcon as xe,Trash2Icon as ee}from"lucide-react";import{useEffect as Se,useRef as ye,useState as f}from"react";import{jsx as i,jsxs as a}from"react/jsx-runtime";function te({className:v,...n}){return i(hn,{align:"start",alignItemWithTrigger:!1,sideOffset:6,...n,className:fe("max-w-(--available-width) min-w-0 p-1",v)})}function z(v){return v instanceof Error?v.message:String(v)}function Le({children:v}){return i("div",{className:"min-h-0 flex-1 overflow-y-auto",children:i("div",{className:"flex flex-col gap-8",children:v})})}function ur({Scroll:v=Le}){let{t:n,i18n:B}=p(),g=s(),C=r((t)=>t.archivedSessions),A=r((t)=>t.connection),[H,se]=f(""),[k,ie]=f("all"),[x,re]=f("all"),[ne,ae]=f(0),[O,G]=f(!0),[F,K]=f(null),[Q,R]=f(null),[I,j]=f(!1),S=ye(!1),[P,y]=f(null),[W,T]=f(null),[oe,J]=f(!1);Se(()=>{if(A!=="ready")return;let t=!1;G(!0),K(null);async function h(){try{await g.listArchived({reset:!0});let o=new Set;while(!t&&g.state.archivedCursor!==null){let N=g.state.archivedCursor;if(o.has(N))throw Error("Archive pagination returned a repeated cursor");o.add(N),await g.listArchived()}}catch(o){if(!t)K(z(o))}finally{if(!t)G(!1)}}return h(),()=>{t=!0}},[g,A,ne]);let c=r((t)=>t.projectContext),E=!(c!==null&&A==="ready"&&!O&&F===null)||I,D=(t)=>t.title??n("sessionList.untitled"),de=[...new Set(C.filter((t)=>c&&_(c,t).id!==L).map((t)=>c?_(c,t).id:t.cwd))].toSorted(),ue=H.trim().toLocaleLowerCase(B.language),M=C.filter((t)=>{let h=c?_(c,t).id:null,o=h===L;return D(t).toLocaleLowerCase(B.language).includes(ue)&&(k==="all"||(k==="quick"?o:!o))&&(x==="all"||(x==="quick"?o:h===x))}),me=new Intl.DateTimeFormat(B.language,{dateStyle:"medium",timeStyle:"short"});async function pe(t){if(S.current)return;S.current=!0,j(!0),R(null);try{await g.unarchive(t.sessionId)}catch(h){R(z(h))}finally{S.current=!1,j(!1)}}async function he(){if(S.current||!P)return;S.current=!0,j(!0),T(null);let t=[],h=[];try{for(let o of P){if(!g.state.archivedSessions.some((N)=>N.sessionId===o.sessionId))continue;try{await g.delete(o.sessionId)}catch(N){t.push(o),h.push(`${D(o)}: ${z(N)}`)}}if(t.length)y(t),T(h.join(`
|
|
2
|
-
`));else y(null)}finally{S.current=!1,j(!1)}}return a("section",{className:"flex min-h-0 flex-1 flex-col overflow-hidden","aria-label":n("sessionList.archives.title"),children:[a("div",{className:"mx-auto flex min-h-0 w-full max-w-5xl flex-1 flex-col gap-8 px-6 pt-8 pb-10 lg:pb-14",children:[a("header",{className:"flex min-h-9 shrink-0 flex-wrap items-center justify-between gap-3",children:[i("h1",{className:"text-2xl leading-9 font-semibold tracking-tight",children:n("sessionList.archives.title")}),a(e,{variant:"destructive",className:"text-[color-mix(in_oklab,var(--destructive)_80%,var(--foreground))]",disabled:E||C.length===0,onClick:()=>{T(null),J(!0),y([...C])},children:[i(ee,{"aria-hidden":"true"}),n("sessionList.archives.deleteAll")]})]}),a("div",{className:"flex shrink-0 flex-wrap gap-3",children:[a("div",{className:"relative min-w-48 flex-1",children:[i(xe,{"aria-hidden":"true",className:"text-muted-foreground pointer-events-none absolute start-3 top-2.5 size-4"}),i(l,{"aria-label":n("sessionList.archives.search"),placeholder:n("sessionList.archives.search"),value:H,onChange:(t)=>se(t.target.value),className:"rounded-md ps-9"})]}),a(Nt,{value:k,onValueChange:(t)=>{if(t===null)throw Error("Archive chat type cannot be empty");ie(t)},children:[a(Rt,{"aria-label":n("sessionList.archives.chatType"),className:"w-40 rounded-md",children:[i(ge,{"aria-hidden":"true"}),i(Mt,{children:n(`sessionList.archives.${k==="all"?"allChats":k==="quick"?"quickChats":"projectChats"}`)})]}),a(te,{children:[i(Z,{value:"all",children:n("sessionList.archives.allChats")}),i(Z,{value:"quick",children:n("sessionList.archives.quickChats")}),i(Z,{value:"project",children:n("sessionList.archives.projectChats")})]})]}),a(Nt,{value:x,onValueChange:(t)=>{if(t===null)throw Error("Archive project filter cannot be empty");re(t)},children:[a(Rt,{"aria-label":n("sessionList.archives.project"),className:"w-48 rounded-md",children:[i(Y,{"aria-hidden":"true"}),i(Mt,{className:"truncate",children:x==="all"?n("sessionList.archives.allProjects"):x==="quick"?n("sessionList.archives.noProject"):U(x,c??void 0)})]}),a(te,{children:[i(Z,{value:"all",children:n("sessionList.archives.allProjects")}),i(Z,{value:"quick",children:n("sessionList.archives.noProject")}),de.map((t)=>i(Z,{value:t,title:t,children:U(t,c??void 0)},t))]})]})]}),a(v,{children:[A!=="ready"?i("p",{role:"status",className:"text-muted-foreground",children:n("sessionList.archives.connecting")}):O?a("div",{role:"status",className:"text-muted-foreground flex items-center gap-2",children:[i(ce,{}),n("sessionList.archives.loading")]}):F?i(q,{variant:"destructive",children:a(V,{className:"flex items-center justify-between gap-4",children:[i("span",{children:F}),i(e,{variant:"outline",onClick:()=>ae((t)=>t+1),children:n("sessionList.archives.retry")})]})}):C.length===0?a("div",{className:"text-muted-foreground flex flex-col items-center gap-3 py-16",children:[i(ve,{"aria-hidden":"true",className:"size-8"}),i("p",{children:n("sessionList.archives.empty")})]}):M.length===0?i("p",{className:"text-muted-foreground py-12 text-center",children:n("sessionList.archives.noResults")}):(c?le(M,c):[]).filter(([,t])=>t.length>0).map(([t,h])=>a("section",{className:"flex flex-col gap-3",children:[a("div",{className:"flex items-center justify-between gap-3",children:[a("h2",{className:"flex min-w-0 items-center gap-2 text-sm font-medium",title:t===L?void 0:t,children:[i(Y,{"aria-hidden":"true",className:"size-4 shrink-0"}),i("span",{className:"truncate",children:t===L?n("sessionList.archives.noProject"):U(t,c??void 0)})]}),i("span",{className:"text-muted-foreground shrink-0 text-sm",children:n("sessionList.archives.count",{count:h.length})})]}),i("div",{className:"divide-border divide-y overflow-hidden rounded-lg border",children:h.map((o)=>a("article",{"aria-label":D(o),className:"flex flex-wrap items-center gap-4 px-4 py-3",children:[a("div",{className:"min-w-0 flex-1 basis-40",children:[i("h3",{className:"truncate text-sm font-medium",title:D(o),children:D(o)}),o.updatedAt!==null&&i("time",{dateTime:o.updatedAt,title:n("sessionList.archives.updatedAt"),className:"text-muted-foreground text-xs",children:me.format(new Date(o.updatedAt))})]}),a("div",{className:"flex shrink-0 items-center gap-2",children:[i(e,{variant:"ghost",size:"icon-sm","aria-label":n("sessionList.delete"),title:n("sessionList.delete"),disabled:E,className:"text-muted-foreground hover:text-destructive",onClick:()=>{T(null),J(!1),y([o])},children:i(ee,{"aria-hidden":"true"})}),i(e,{variant:"secondary",size:"sm",disabled:E,onClick:()=>void pe(o),children:n("sessionList.archives.unarchive")})]})]},o.sessionId))})]},t)),Q&&i(q,{variant:"destructive",children:i(V,{children:Q})})]})]}),i(d,{open:P!==null,onOpenChange:(t)=>{if(!t&&!S.current)y(null)},children:a(u,{showCloseButton:!I,children:[a(b,{children:[i(m,{children:n("sessionList.archives.deleteTitle")}),i(w,{children:n(oe?"sessionList.archives.deleteAllDescription":"sessionList.archives.deleteDescription",{count:P?.length??0})})]}),W&&i(q,{variant:"destructive",children:i(V,{className:"max-h-40 overflow-auto whitespace-pre-wrap",children:W})}),a(X,{children:[i(e,{variant:"outline",disabled:I,onClick:()=>y(null),children:n("sessionList.cancel")}),a(e,{variant:"destructive",className:"text-[color-mix(in_oklab,var(--destructive)_80%,var(--foreground))]",disabled:E,onClick:()=>void he(),children:[I&&i(ce,{}),n("sessionList.archives.confirmDelete")]})]})]})})]})}
|
|
3
|
-
export{ur};
|
package/dist/chunk-443z7mve.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{e}from"./chunk-6kn920c5.js";import{ue}from"./chunk-1drkvxzk.js";import{d,u,b,X,m,w}from"./chunk-17zegmxa.js";import{f}from"./chunk-ek06eyp4.js";import{At,Lt,Mn,Rn,En,at}from"./chunk-7k0wvvy0.js";import{l}from"./chunk-1hy64ewz.js";import{j,I}from"./chunk-5m4605a3.js";import{$e}from"./chunk-ak0k5vg6.js";import{k}from"./chunk-ncekagm6.js";import{isArrayProperty as S,isBooleanProperty as A,isNumberProperty as C,isStringProperty as E}from"@nyssance/codex-acp-v2/client";import{useEffect as N,useMemo as V,useState as R}from"react";import{jsx as o,jsxs as p}from"react/jsx-runtime";function q(r){if(!E(r))return null;if(r.oneOf&&r.oneOf.length>0)return r.oneOf.map((t)=>({value:t.const,label:t.title??t.const,...t.description?{description:t.description}:{}}));if(r.enum&&r.enum.length>0)return r.enum.map((t)=>({value:t,label:t}));return null}function P(r){let t=r,n=t._meta?.alwith?.options;if(Array.isArray(n)&&Array.isArray(t.enum))return n.map((i)=>({value:i.const,label:i.title,...i.description?{description:i.description}:{}}));if(Array.isArray(t.enum))return t.enum.map((i)=>({value:String(i),label:String(i)}));if(Array.isArray(t.oneOf))return t.oneOf.map((i)=>({value:i.const,label:i.title,...i.description?{description:i.description}:{}}));return null}function Pr(r){let t=new Set(r.required??[]);return Object.entries(r.properties??{}).map(([n,i])=>({key:n,property:i,title:i.title??n,description:i.description??null,required:t.has(n),options:q(i),multiOptions:S(i)?P(i.items):null}))}function fr(r){let t={};for(let n of r){let i=n.property.default;if(i!==void 0&&i!==null)t[n.key]=i;else if(n.options)t[n.key]=n.options[0].value;else if(A(n.property))t[n.key]=!1;else if(S(n.property))t[n.key]=[]}return t}function Nr(r,t){if(r.multiOptions)return Array.isArray(t)&&t.length>0;if(!r.required)return!0;return t!==void 0&&t!==""&&!(Array.isArray(t)&&t.length===0)}function D({id:r,label:t,description:n,control:i}){return p("div",{className:"hover:bg-muted/40 flex items-center gap-2 rounded-sm px-1.5 py-1",children:[i,p(f,{htmlFor:r,className:"min-w-0 flex-1 cursor-pointer font-normal",children:[o("div",{className:"text-foreground text-sm",children:t}),n&&o("div",{className:"text-muted-foreground text-xs",children:n})]})]})}function L({id:r,field:t,value:n,onChange:i}){if(t.multiOptions){let a=new Set(Array.isArray(n)?n:[]);return p(At,{children:[o(Lt,{variant:"label",children:t.title}),t.description&&o(at,{children:t.description}),o("div",{className:"flex flex-col gap-1",children:t.multiOptions.map((c)=>{let g=`${r}:${c.value}`;return o(D,{id:g,...c,control:o(ue,{id:g,checked:a.has(c.value),onCheckedChange:(F)=>{let y=new Set(a);if(F)y.add(c.value);else y.delete(c.value);i([...y])}})},c.value)})})]})}if(t.options)return p(At,{children:[o(Lt,{variant:"label",children:t.title}),t.description&&o(at,{children:t.description}),o(j,{value:typeof n==="string"?n:"",onValueChange:(a)=>i(String(a)),className:"flex flex-col gap-1",children:t.options.map((a)=>{let c=`${r}:${a.value}`;return o(D,{id:c,...a,control:o(I,{value:a.value,id:c})},a.value)})})]});return p(Rn,{children:[o(En,{htmlFor:r,children:t.title}),A(t.property)?o($e,{id:r,checked:n===!0,onCheckedChange:(a)=>i(a)}):C(t.property)?o(l,{id:r,type:"number",required:t.required,value:typeof n==="number"?n:"",onChange:(a)=>i(a.target.value===""?void 0:Number(a.target.value))}):o(k,{id:r,rows:2,required:t.required,value:typeof n==="string"?n:"",onChange:(a)=>i(a.target.value)}),t.description&&o(at,{children:t.description})]})}function bn({requestId:r,schema:t,message:n,total:i,t:a,onRespond:c}){let g=V(()=>Pr(t),[t]),[F,y]=R(()=>fr(g));N(()=>y(fr(g)),[r,g]);let x=g.every((s)=>Nr(s,F[s.key])),O=()=>{if(!x)return;let s={};for(let[h,v]of Object.entries(F))if(v!==void 0)s[h]=v;c({action:"accept",content:s})};return o(d,{open:!0,onOpenChange:(s)=>!s&&c({action:"cancel"}),children:p(u,{className:"flex max-h-[80vh] flex-col gap-4 sm:max-w-lg",onKeyDown:(s)=>{if(s.key==="Enter"&&(s.metaKey||s.ctrlKey))s.preventDefault(),O()},children:[p(b,{children:[p("div",{className:"flex items-center justify-between gap-2 pe-8",children:[o(m,{children:t.title??a("approval.needed")}),i>1&&o("span",{className:"text-muted-foreground shrink-0 text-xs",children:`1 / ${i}`})]}),o(w,{children:n})]}),o("div",{className:"min-h-0 flex-1 overflow-y-auto",children:o(Mn,{children:g.map((s)=>o(L,{id:`${r}:${s.key}`,field:s,value:F[s.key],onChange:(h)=>y((v)=>({...v,[s.key]:h}))},s.key))})}),p(X,{children:[o(e,{variant:"ghost",onClick:()=>c({action:"decline"}),children:a("actions.decline")}),o(e,{disabled:!x,onClick:O,children:a("actions.submit")})]})]})})}
|
|
2
|
-
export{Pr,fr,Nr,bn};
|
package/dist/chunk-4b3s7gyc.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{Ft,Bt}from"./chunk-93x6b2qa.js";import{g}from"./chunk-5kpcpjrb.js";import{t}from"./chunk-dp8pjv6r.js";import{fo,G,Ee,vo}from"./chunk-m6rrt94g.js";import{io}from"./chunk-0d4xsx23.js";import{ee}from"./chunk-jhk2chpp.js";import{jt}from"./chunk-q905xt4v.js";import{uo}from"./chunk-r79zqx0t.js";import{So}from"./chunk-b4dsjhkq.js";import{Io}from"./chunk-m99k3e5h.js";import{Gt,Wt}from"./chunk-91x8etvh.js";import{Re}from"./chunk-c0ac9k7h.js";import{codexMessageError as J,codexTurnError as q,isContentEntry as oe,isEmbeddedResource as U,isImage as X,isResourceLink as ae,isText as me,nativeTurnId as le}from"@nyssance/codex-acp-v2/client";import{LoaderCircleIcon as de,SparklesIcon as ce}from"lucide-react";import{Fragment as ge,memo as pe}from"react";import{jsx as s,jsxs as m,Fragment as R}from"react/jsx-runtime";function D(r){if(X(r))return`${r.mimeType.toLowerCase()}:${r.data}`;if(U(r)&&"blob"in r.resource&&r.resource.mimeType?.toLowerCase().startsWith("image/"))return`${r.resource.mimeType.toLowerCase()}:${r.resource.blob}`;return null}function T({sessionId:r,entry:n,terminals:l,streaming:o,streamingThoughtId:w}){let{t:a}=t();switch(n.kind){case"activity":return s(io,{sessionId:r,items:n.items,terminals:l,streamingThoughtId:w});case"text":return g(n.item._meta).length>0?s(jt,{sessionId:r,item:n.item}):s(ee,{content:n.item.content,messageId:n.item.id,streaming:o});case"plan":return s(So,{plan:n.item.plan});case"compaction":if(n.item.status==="failed")return m(Gt,{children:[s("div",{children:a("timeline.compactionFailed")}),n.item.error!==null&&s("div",{children:n.item.error})]});return m("div",{className:"codex-context-compaction",children:[s(ce,{"aria-hidden":"true"}),s("span",{children:n.item.status==="completed"?a("stream.codex.contextCompacted"):n.item.status==="cancelled"?a("timeline.interrupted"):a("timeline.compacting")})]})}}function ue({sessionId:r,turn:n,terminals:l,active:o,blocked:w=!1,continued:a=!1,edits:S=n.edits,activityItems:_=n.items,workStartedAt:Y=n.startedAt,isLast:F,error:u,interrupted:M,retry:L,retrying:p,answerActions:W,footer:Z}){let{t:d}=t(),I=n.errors.map((e)=>{let i=J(e);if(i===null)throw Error("Turn error item is missing its diagnostics");let k=L?.turnId===le(e)?L:void 0;return s(Wt,{error:i,retry:k},`${e.id}:${k?.delaySeconds??"manual"}`)});if(F&&u!==null&&!n.errors.some((e)=>{let i=J(e);return i!==null&&i.stopReason===u.stopReason&&q(i).message===q(u).message}))I.push(s(Wt,{error:u},"current-run-error"));let v=I.length>0?s("div",{className:"codex-turn-errors",children:I}):null,f=n.work,y=f.length>0&&f.every((e)=>e.kind==="compaction");if(fo(n)||y&&n.final.length===0)return m(R,{children:[s("div",{role:"status",className:"text-muted-foreground flex min-w-0 flex-col gap-2 py-2 text-sm",children:n.work.map((e)=>s(T,{sessionId:r,entry:e,terminals:l,streaming:!1,streamingThoughtId:null},e.key))}),v]});let K=Ee(n),O=n.final.filter((e)=>g(e._meta).length===0).map(G).join(`
|
|
2
|
-
`),h=o?null:Re(n,"assistant"),P=n.items.filter((e)=>e.kind==="tool"&&e.name==="image_generation"&&(e.status==="pending"||e.status==="in_progress")),B=new Set(n.final.flatMap((e)=>e.content.map(D).filter((i)=>i!==null))),N=n.items.flatMap((e)=>{if(e.kind!=="tool"||e.status!=="completed")return[];return e.content.filter(oe).flatMap((i,k)=>{let c=i.content,ie=e.name==="image_generation"&&X(c),re=e.toolKind!=="read"&&e.toolKind!=="search"&&(ae(c)||U(c)&&("blob"in c.resource));if(!ie&&!re)return[];let b=D(c);if(b!==null){if(B.has(b))return[];B.add(b)}return[{key:`${e.id}:${k}`,block:c}]})}),A=n.final.some((e)=>g(e._meta).length===0&&e.content.some((i)=>!me(i)||i.text.trim().length>0)),te=P.length>0||N.length>0||y||A||n.final.some((e)=>g(e._meta).length>0),x=n.items.findIndex((e)=>n.final.includes(e)),C=(e)=>n.items.indexOf(e.kind==="activity"?e.items[0]:e.item),H=f.filter((e)=>x===-1||C(e)<x),ne=f.filter((e)=>x!==-1&&C(e)>x),se=[...n.final.map((e)=>({kind:"answer",item:e,index:n.items.indexOf(e)})),...ne.map((e)=>({kind:"work",entry:e,index:C(e)}))].toSorted((e,i)=>e.index-i.index),Q=!o&&!a&&(O.trim().length>0?s(Ft,{text:O,isMostRecentTurn:F,time:h,afterCopy:W}):m("div",{className:"flex items-center gap-0.5",children:[W,h&&s("span",{className:"codex-user-time ms-1",title:h.full,children:h.short})]})),E=Io({...n,items:_},{running:o,blocked:w,retrying:p!==void 0}),V=E.kind==="reasoning"?E.ownerKey??null:null,j=E.kind==="thinking",z=vo({...n,items:_});return m(R,{children:[s(Bt,{stateKey:JSON.stringify([r,n.replayed?"history":"live",n.key]),active:o&&!A,defaultExpanded:o&&!A||!n.replayed&&(M||K),...z,startedAt:z.startedAt??Y,loading:j&&n.work.length===0,work:a||y?[]:H.map((e)=>s(T,{sessionId:r,entry:e,terminals:l,streaming:o,streamingThoughtId:V},e.key)),answer:te||a?m("div",{className:"flex min-w-0 flex-col gap-3",children:[(a||y)&&H.map((e)=>s(T,{sessionId:r,entry:e,terminals:l,streaming:!1,streamingThoughtId:null},e.key)),se.map((e)=>{if(e.kind==="work")return s(T,{sessionId:r,entry:e.entry,terminals:l,streaming:o,streamingThoughtId:V},e.entry.key);let i=e.item;return m(ge,{children:[g(i._meta).length>0?s(jt,{sessionId:r,item:i}):s(ee,{content:i.content,messageId:i.id,streaming:o}),i===n.final.at(-1)&&Q]},i.id)}),P.map((e)=>m("div",{className:"codex-image-generation",role:"status","aria-label":d(o?"timeline.imageGenerating":"timeline.imageStopped"),"aria-busy":o,children:[s("div",{className:"codex-image-generation-texture","aria-hidden":"true"}),m("span",{className:"codex-image-generation-status",children:[o&&s(de,{className:"size-4 motion-safe:animate-spin","aria-hidden":"true"}),d(o?"timeline.imageGenerating":"timeline.imageStopped")]})]},e.id)),N.length>0&&s("div",{className:"codex-reply-artifacts flex min-w-0 flex-col gap-3",children:N.map((e)=>s(ee,{content:[e.block],messageId:e.key,streaming:!1},e.key))}),n.final.length===0&&Q]}):null,footer:m(R,{children:[j&&n.work.length>0&&s("div",{className:"codex-pending-message py-2",role:"status",children:s("span",{className:"codex-activity-running",children:d("message.thinking")})}),Z,S.length>0&&!o&&!a&&s(uo,{items:S}),M&&!K&&s("div",{className:"codex-interrupted-turn",role:"status",children:d("timeline.interrupted")}),!o&&v]})}),o&&p!==void 0&&s("div",{className:"text-muted-foreground py-2 text-sm",role:"status",children:p.capacity?(()=>{let e=/Reconnecting(?:\.\.\.)?\s+(\d+\/\d+)/.exec(p.message)?.[1];return e===void 0?d("timeline.capacityReconnecting"):d("timeline.capacityReconnectingProgress",{progress:e})})():p.message}),o&&v]})}var ro=pe(ue);
|
|
3
|
-
export{ro};
|
package/dist/chunk-4nh3xzrm.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{K}from"./chunk-zbtas7pt.js";import{t}from"./chunk-dp8pjv6r.js";import{SquareSlashIcon as s}from"lucide-react";import{useRef as l}from"react";import{jsx as r}from"react/jsx-runtime";function Wo({textareaRef:a,onOpenChange:p,menuOpen:e,disabled:m}){let{t:o}=t(),n=l(!1);return r(K,{"aria-label":o("composer.commands"),title:o("composer.commands"),disabled:m,"aria-pressed":e,onPointerDown:()=>{n.current=e},onClick:()=>{p(!n.current),a.current?.getTextarea()?.focus()},children:r(s,{className:"size-4"})})}
|
|
2
|
-
export{Wo};
|
package/dist/chunk-51sbmqdk.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{useCallback as r,useState as x}from"react";var t=new Map;function S(o,e,k=!1){let[p,d]=x(()=>({key:o,expanded:t.get(o)??e})),n=p.expanded;if(p.key!==o||k&&!t.has(o)&&n!==e)n=t.get(o)??e,d({key:o,expanded:n});let b=r((c)=>{d((s)=>{let f=s.key===o?s.expanded:t.get(o)??e,a=typeof c==="function"?c(f):c;return t.set(o,a),s.key===o?{key:o,expanded:a}:s})},[o,e]);return[n,b]}
|
|
2
|
-
export{S};
|
package/dist/chunk-5ev4qvsp.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{o}from"./chunk-dp8pjv6r.js";import{Ae,Le,De}from"./chunk-b65vdzz3.js";import{n}from"./chunk-ysc51tpb.js";import{x,ne}from"./chunk-bhze2sjv.js";import{hasAccount as M,isGroupedSelect as L}from"@nyssance/codex-acp-v2/client";import{cn as H}from"cn";import{useEffect as W,useState as T}from"react";import{jsx as r,jsxs as u}from"react/jsx-runtime";var m=new Intl.NumberFormat("en-US",{maximumFractionDigits:0}),F=new Intl.NumberFormat("en-US",{style:"percent",maximumFractionDigits:1}),z=new Intl.NumberFormat("en-US",{maximumFractionDigits:1});function f(a){return typeof a==="number"&&!Number.isNaN(a)?Math.max(0,a):0}function O(a,t){let e=Math.min(100,a/t*100),p=e>=90?"text-destructive":e>=70?"text-foreground":"text-muted-foreground";return{pct:e,className:p}}function A(a){let t=x(a.configOptions,"model");return t===void 0?void 0:ne(t)}function Oo(a,t){let e=a.windowDurationMins;if(e===null)return t("usage.usage");if(e%1440===0)return t("usage.windowDays",{count:e/1440});return t("usage.windowHours",{count:Math.round(e/60)})}function I(a){let{client:t}=n(),e=o((s)=>a&&s.connection==="ready"&&M(s.agent)),[p,l]=T(null);return W(()=>{if(!e){l(null);return}let s=!0;t.readRateLimits().then((d)=>{if(s)l(d)},()=>{return});let c=t.onRateLimits((d)=>{if(s)l(d)});return()=>{s=!1,c()}},[e,t]),e?p:null}function dt({session:a}){let{t}=n().host,e=x(a.configOptions,"model"),p=e!==void 0&&(L(e.options)?e.options.some((i)=>i.groupId==="chatgpt"&&i.options.some((y)=>y.value===e.currentValue)):!e.currentValue.startsWith("gateway:")&&e.options.some((i)=>i.value===e.currentValue)),l=I(p),{usage:s,lastTurnUsage:c}=a;if(s===null&&c===null)return null;let d=s&&s.size>0?O(s.used,s.size):null,h=7,b=2*Math.PI*h,N=f(c?.inputTokens),k=f(c?.outputTokens),g=f(c?.cachedReadTokens),w=f(c?.cachedWriteTokens),S=f(c?.totalTokens)||N+k+g+w,R=N+g,C=R>0?F.format(g/R):t("tokens.notAvailable"),D=[[t("tokens.input"),m.format(N)],[t("tokens.output"),m.format(k)],[t("tokens.cachedRead"),m.format(g)],[t("tokens.cachedWrite"),m.format(w)],[t("tokens.cacheHitRate"),C],[t("tokens.total"),m.format(S)]],v=A(a);return u(Ae,{children:[r(Le,{delay:100,closeDelay:100,render:u("button",{type:"button",className:H("hover:text-foreground flex h-7 items-center gap-1.5 rounded-md px-1.5 text-xs tabular-nums",d?.className??"text-muted-foreground"),"aria-label":t("tokens.openDetails"),children:[u("svg",{viewBox:"0 0 18 18",className:"size-4","aria-hidden":"true",children:[r("circle",{cx:"9",cy:"9",r:h,fill:"none",stroke:"currentColor",strokeOpacity:"0.2",strokeWidth:"2"}),d!==null&&r("circle",{cx:"9",cy:"9",r:h,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:b,strokeDashoffset:b*(1-d.pct/100),transform:"rotate(-90 9 9)"})]}),d!==null&&u("span",{children:[Math.round(d.pct),"%"]})]})}),u(De,{align:"end",side:"top",sideOffset:8,className:"w-56 p-0",children:[v!==void 0&&r("div",{className:"border-b px-3 py-2",children:r("p",{className:"text-foreground truncate text-xs font-semibold",title:v,children:v})}),u("div",{className:"flex flex-col gap-3 p-3",children:[c!==null&&u("div",{className:"flex flex-col gap-1.5",children:[r("p",{className:"text-xs font-medium",children:t("tokens.openDetails")}),r("dl",{className:"grid grid-cols-[1fr_auto] gap-x-4 gap-y-1 text-xs",children:D.map(([i,y])=>u("div",{className:"contents",children:[r("dt",{className:"text-muted-foreground",children:i}),r("dd",{className:"text-end tabular-nums",children:y})]},i))})]}),s!==null&&s.size>0&&u("div",{className:"flex flex-col gap-1.5 border-t pt-2",children:[r("p",{className:"text-xs font-medium",children:t("tokens.context")}),r("p",{className:"text-muted-foreground text-xs tabular-nums",children:t("tokens.contextSummary",{used:m.format(s.used),limit:m.format(s.size),percent:z.format(s.used/s.size*100)})})]}),l!==null&&(l.primary!==null||l.secondary!==null)&&u("div",{className:"flex flex-col gap-1.5 border-t pt-2",children:[r("p",{className:"text-xs font-medium",children:t("usage.limits")}),r("dl",{className:"grid grid-cols-[1fr_auto] gap-x-4 gap-y-1 text-xs",children:[l.primary,l.secondary].filter((i)=>i!==null).map((i)=>u("div",{className:"contents",children:[r("dt",{className:"text-muted-foreground",children:Oo(i,t)}),r("dd",{className:"text-end tabular-nums",children:t("usage.used",{percent:Math.round(Math.min(100,Math.max(0,i.usedPercent)))})})]},`${i.windowDurationMins??"window"}`))})]})]})]})]})}
|
|
2
|
-
export{Oo,dt};
|
package/dist/chunk-5fgakrmr.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{e}from"./chunk-6kn920c5.js";import{d,u,b,X,m,w}from"./chunk-17zegmxa.js";import{J}from"./chunk-m8djwdd5.js";import{createContext as g,useContext as C,useState as y,useSyncExternalStore as L}from"react";import{jsx as i,jsxs as S}from"react/jsx-runtime";var v=g(null),f=g(null),x=g(null);function pr({host:t,client:o,children:n}){let[l,a]=y(null);J(l!==null);let{t:c}=t;return i(v,{value:t,children:i(f,{value:o,children:S(x,{value:a,children:[n,i(d,{open:l!==null,onOpenChange:(D)=>!D&&a(null),children:S(u,{children:[S(b,{children:[i(m,{children:c("sessionList.deleteTitle")}),i(w,{children:c("sessionList.deleteDescription")})]}),S(X,{children:[i(e,{variant:"outline",onClick:()=>a(null),children:c("sessionList.cancel")}),i(e,{onClick:()=>{if(l)T(t,o.delete(l.sessionId));a(null)},children:c("sessionList.delete")})]})]})})]})})})}function p(){let t=C(v);if(t===null)throw Error("Session list host is missing");return t}function s(){let t=C(f);if(t===null)throw Error("Session list client is missing");return t}function tt(){let t=C(x);if(t===null)throw Error("Session list provider is missing");return t}function r(t){let o=s();return L((n)=>o.store.subscribe(n),()=>t(o.store.getState()),()=>t(o.store.getState()))}function T(t,o){return o.then(()=>{},(n)=>{if(t.reportError)t.reportError(n);else console.error(n)})}
|
|
2
|
-
export{pr,p,s,tt,r,T};
|
package/dist/chunk-64whvkk0.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{o}from"./chunk-dp8pjv6r.js";import{e}from"./chunk-6kn920c5.js";import{Ln}from"./chunk-p1ydsj54.js";import{ge,fe,he,ve}from"./chunk-magaaqab.js";import{n,C}from"./chunk-ysc51tpb.js";import{Loader2Icon as f}from"lucide-react";import{jsx as i,jsxs as m}from"react/jsx-runtime";function st({session:t,timeline:c}){let{host:s,client:a}=n(),{t:r}=s,l=o((y)=>y.historyPages[t.id]?.cursor!=null),d=()=>C(s,a.open(t.id,t.cwd)),p=i(Ln,{...c,session:t,client:a,host:s});if(t.restoring)return t.items.length===0?m("div",{className:"text-muted-foreground flex flex-1 items-center justify-center gap-2 text-sm",children:[i(f,{className:"size-4 animate-spin","aria-hidden":"true"}),r("conversation.restoring")]}):p;if(!t.attached&&t.items.length===0)return m(ge,{className:"flex-1",children:[m(fe,{children:[i(he,{children:r("conversation.reopen")}),i(ve,{children:r("conversation.detached")})]}),i(e,{onClick:d,children:r("conversation.reopen")})]});if(t.items.length===0&&t.state==="idle"&&!l)return i(ge,{className:"flex-1",children:m(fe,{children:[i(he,{className:"text-[28px] font-normal",children:r("conversation.welcomeTitle")}),i(ve,{className:"truncate font-mono",children:t.cwd})]})});return p}
|
|
2
|
-
export{st};
|
package/dist/chunk-6pmc9283.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Bo}from"./chunk-kahn24np.js";import{n,C}from"./chunk-ysc51tpb.js";import{R,x}from"./chunk-bhze2sjv.js";import{createLucideIcon as k,HandIcon as w,ShieldAlertIcon as y,ShieldCheckIcon as c}from"lucide-react";import{jsx as t}from"react/jsx-runtime";var S=k("ApprovalShield",[["path",{d:"M12 22s8-4 8-11V5l-8-3-8 3v6c0 7 8 11 8 11",key:"shield"}],["path",{d:"m8 8 3 3-3 3M13 15h3",key:"terminal"}]]),d={"read-only":w,"workspace-write":c,agent:S,"agent-full-access":y},O={"read-only":"readOnly","workspace-write":"workspaceAccess",agent:"agent","agent-full-access":"fullAccess"};function mt({sessionId:u,options:g,disabled:m,onConfigChange:r}){let{host:l,client:f}=n(),{t:a}=l,o=x(g,"mode");if(!o)return null;let s=o.currentValue,p=R(o).map((e)=>{let i=O[e.value];return i?{...e,name:a(`permissionModes.${i}.name`),description:a(`permissionModes.${i}.description`)}:e}),h=p.find((e)=>e.value===s),I=d[s]??c,M=(e)=>{if(e===s)return;C(l,r?r(o.configId,e):f.setConfig(u,o.configId,e))};return t(Bo,{value:s,warning:s==="agent-full-access",currentName:h?.name??s,icon:t(I,{className:"size-3.5 shrink-0"}),header:a("permissionModes.heading"),disabled:m,label:a("composer.switchPermissionMode"),onValueChange:M,options:p.map((e)=>{let i=d[e.value]??c,v=e.value==="agent-full-access";return{value:e.value,label:t("span",{"data-permission-warning":v?"":void 0,children:e.name}),description:e.description?t("span",{className:"whitespace-normal",children:e.description}):void 0,icon:t(i,{className:"size-3.5 shrink-0"})}})})}
|
|
2
|
-
export{mt};
|
package/dist/chunk-7drq0g9b.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
function*kt(n,e){if(e.length===0)return;let r=new RegExp(e.replaceAll(/[.*+?^{}()|[\]\\$]/g,String.raw`\$&`),"giu");for(let t of n.matchAll(r))yield{start:t.index,end:t.index+t[0].length}}function Wr(n,e){if(e.length===0)return[];let r=[];for(let{turnKey:t,segments:o}of n){let c=0;for(let s of o)for(let a of kt(s,e))r.push({turnKey:t,occurrenceInTurn:c}),c+=1}return r}
|
|
2
|
-
export{kt,Wr};
|
package/dist/chunk-7dzq2t68.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_n,me,Dt,Hn,On,Fn}from"./chunk-0gwe31zs.js";import{forwardRef as ve,useCallback as K,useEffect as ge,useImperativeHandle as pe,useLayoutEffect as w,useMemo as ne,useRef as s,useState as F}from"react";import{jsx as R,jsxs as re}from"react/jsx-runtime";var Re=12,X=2,V=800,he=new Map;function He({turnKey:q,heightPx:x,placeholder:W=!1,deferUntilReady:n=!1,observe:H,onReady:L,children:z}){let h=s(null),[T,_]=F(!1),U=K((m)=>{h.current=m,H(q,m)},[H,q]);return w(()=>{let m=h.current;if(m===null)throw Error("Codex turn element is missing");let b=()=>{L(m),_(!0)};if(m.querySelector("[data-markdown-pending]")===null){b();return}let d=new MutationObserver(()=>{if(m.querySelector("[data-markdown-pending]")!==null)return;d.disconnect(),b()});return d.observe(m,{childList:!0,subtree:!0}),()=>d.disconnect()},[L]),re("div",{style:T?void 0:{position:"relative",height:x,overflow:"hidden"},children:[R("div",{ref:U,className:"[&_[data-virtualized-turn-content]]:[content-visibility:visible]","data-turn-key":q,"aria-busy":!T||void 0,style:!T&&!W&&n?{visibility:"hidden"}:void 0,"data-turn-ready":T?"":void 0,children:z}),!T&&!W&&n&&R("div",{"aria-hidden":"true",className:"codex-turn-loading",children:re("div",{className:"codex-turn-loading-lines",children:[R("span",{}),R("span",{}),R("span",{})]})})]})}var Dn=ve(function({entries:x,renderTurn:W,scrollElement:n,sessionKey:H,leadingContent:L,leadingInsetPx:z=0,preserveViewport:h=!1},T){let _=s(null),[U,m]=F(z),b=L!==void 0&&L!==null;w(()=>{let e=_.current;if(e===null)return;let t=()=>m(e.getBoundingClientRect().height);t();let o=new ResizeObserver(t);return o.observe(e),()=>o.disconnect()},[b]);let d=ne(()=>he.get(H),[H]),[j,J]=F(()=>d?.turnHeightsByKey??{}),i=ne(()=>_n({entries:x,gapPx:Re,measuredHeightsByKey:j,leadingInsetPx:b?U:z}),[x,j,b,U,z]),fe=ne(()=>{let e=me({distanceFromBottomPx:d?.distanceFromBottomPx??0,layout:i,overscanCount:X,viewportHeightPx:V}),t=d?.renderedWindow;if(t===void 0||t===null)return e;return Dt({anchorKey:t.anchorKey,layout:i,previousRange:{startIndex:0,endIndex:Math.min(t.count,e.endIndex-e.startIndex)}})??e},[d,i]),[M,ie]=F(fe),[y,oe]=F(V),[c,ue]=F(null),N=s(d?.distanceFromBottomPx??0),k=s(M),ae=s(i.turnKeys),l=s(j),S=s(i),se=s(i),P=s(new Map),v=s(null),C=s(null),E=s(null),D=s(new Map),Q=s(!1),ce=s(()=>{}),O=s(null),de=K(()=>{if(!h||n===null||v.current!==null||O.current!==null)return;let e=n.getBoundingClientRect();if(e.height<=0)return;let t=[...P.current].filter(([,r])=>r.hasAttribute("data-turn-ready")).map(([r,u])=>{let a=u.getBoundingClientRect(),g=S.current.turnIndexByKey.get(r),B=g===void 0?a.height:S.current.heightsPx[g];return{key:r,element:u,rect:a,bottom:a.top+B}}).filter(({rect:r,bottom:u})=>u>e.top&&r.top<e.bottom).toSorted((r,u)=>r.rect.top-u.rect.top),o=t.flatMap((r)=>[...r.element.querySelectorAll("[data-user-message-bubble], .codex-markdown-root > *")].filter((u)=>!u.closest('[aria-hidden="true"], [inert]')).map((u)=>({key:r.key,element:u,rect:u.getBoundingClientRect()})).filter(({rect:u})=>u.height>0&&u.top>=e.top&&u.top<e.bottom)).toSorted((r,u)=>r.rect.top-u.rect.top)[0]??t[0];if(o)O.current={key:o.key,element:o.element,top:o.rect.top-e.top,scrollTop:n.scrollTop}},[h,n]),Y=s(de);Y.current=de;let p=K((e,t)=>{let o=Math.min(e,i.totalHeightPx),r=me({distanceFromBottomPx:o,layout:i,overscanCount:X,viewportHeightPx:t}),u=k.current,a=u.startIndex<=r.startIndex&&u.endIndex>=r.endIndex?u:r;if(N.current=o,k.current=a,ae.current=i.turnKeys,oe(t),a!==u)ie(a)},[i]),A=K((e)=>{let t=Math.max(0,e.scrollHeight-i.totalHeightPx);return Math.max(0,e.scrollHeight-e.clientHeight-e.scrollTop-t)},[i.totalHeightPx]),xe=K((e)=>{let t=e.dataset.turnKey;if(t===void 0)throw Error("Codex measured turn is missing its key");let o=Math.max(1,e.getBoundingClientRect().height);if(l.current[t]===o)return;Y.current();let r={...l.current,[t]:o};l.current=r,J(r)},[]),Z=K(()=>{if(C.current!==null)return C.current;return C.current=new ResizeObserver((e)=>{for(let t of e){let o=t.target;if(!("turnReady"in o.dataset)&&o.querySelector("[data-markdown-pending]")!==null)continue;let r=o.dataset.turnKey;if(r===void 0)throw Error("Codex measured turn is missing its key");let u=Math.max(1,t.borderBoxSize[0]?.blockSize??t.contentRect.height);D.current.set(r,u)}if(E.current!==null||D.current.size===0)return;E.current=requestAnimationFrame(()=>{E.current=null;let t=[...D.current].filter(([r,u])=>l.current[r]!==u);if(D.current.clear(),t.length===0)return;Y.current();let o={...l.current,...Object.fromEntries(t)};l.current=o,J(o)})}),C.current},[]),ye=K((e,t)=>{let o=P.current.get(e);if(o!==void 0)Z().unobserve(o),P.current.delete(e);if(t===null)return;if(t.dataset.turnKey!==e)throw Error(`Codex turn key does not match its element: ${e}`);P.current.set(e,t),Z().observe(t)},[Z]);ge(()=>()=>{if(C.current?.disconnect(),E.current!==null)cancelAnimationFrame(E.current);D.current.clear(),C.current=null,P.current.clear()},[]),w(()=>{ce.current=()=>{if(n===null)return;let e=A(n);if(v.current!==null){N.current=e,oe(n.clientHeight||V);return}p(e,n.clientHeight||V)}},[A,n,p]),w(()=>{if(n===null)return;if(!Q.current){Q.current=!0;let o=d?.distanceFromBottomPx??0;n.scrollTo({behavior:"instant",top:Math.max(0,o>0?S.current.totalHeightPx-n.clientHeight-o:n.scrollHeight-n.clientHeight)})}let e=()=>ce.current();e(),n.addEventListener("scroll",e,{passive:!0});let t=new ResizeObserver(e);return t.observe(n),()=>{n.removeEventListener("scroll",e),t.disconnect()}},[d,n]),w(()=>{if(n===null||c===null)return;let e=P.current.get(c.turnKey);if(e?.querySelector("[data-markdown-pending]")!==null)return;let t=e.offsetHeight;if(t<=0)return;if(l.current[c.turnKey]!==t){let g={...l.current,[c.turnKey]:t};l.current=g,J(g);return}let o=c.getTargetElement(e)??e,r=e.getBoundingClientRect(),u=o.getBoundingClientRect(),a=Fn({align:c.align,layout:i,targetHeightPx:u.height,targetOffsetPx:u.top-r.top,turnKey:c.turnKey,viewportHeightPx:n.clientHeight});if(a===null)throw Error(`Codex virtual turn is missing: ${c.turnKey}`);n.scrollTo({behavior:"instant",top:Math.max(0,i.totalHeightPx-n.clientHeight-a)}),p(a,n.clientHeight||V),queueMicrotask(()=>{if(v.current!==c)return;c.complete(),v.current=null,ue(null)})},[i,c,n,p]),w(()=>{let e=se.current;if(se.current=i,S.current=i,n===null||c!==null){O.current=null;return}let t=O.current;O.current=null;let o=t===null?void 0:n.contains(t.element)?t.element:P.current.get(t.key);if(h&&e!==i&&t!==null&&o!==void 0){let u=o.getBoundingClientRect().top-n.getBoundingClientRect().top,a=n.scrollTop-t.scrollTop;n.scrollTop+=u-t.top+a,p(A(n),n.clientHeight);return}let r=N.current;if(h&&e!==i&&Q.current)r=Math.max(0,e.totalHeightPx-n.clientHeight-n.scrollTop);if((r>24||h)&&e!==i){let u=A(n);if(u<=96&&!h){p(u,y);return}let a=me({distanceFromBottomPx:r,layout:e,overscanCount:0,viewportHeightPx:y}),g=e.turnKeys.slice(a.startIndex,a.endIndex).filter((f)=>i.turnIndexByKey.has(f)),B=g.find((f)=>l.current[f]!==void 0)??g[0];if(B!==void 0){let f=Hn({anchorKey:B,distanceFromBottomPx:r,nextLayout:i,previousLayout:e});if(f===null)throw Error(`Codex viewport anchor is missing: ${B}`);r=f,n.scrollTo({behavior:"instant",top:Math.max(0,i.totalHeightPx-n.clientHeight-r)})}}p(r,y)},[i,c,A,n,p,y,h]),w(()=>{k.current=M},[M]),ge(()=>()=>{v.current?.complete(),v.current=null;let e=k.current,o=S.current.turnKeys[e.startIndex];he.set(H,{distanceFromBottomPx:N.current,renderedWindow:o===void 0?null:{anchorKey:o,count:e.endIndex-e.startIndex},turnHeightsByKey:l.current})},[H]),pe(T,()=>({scrollToKey(e,t=(r)=>r,o={align:"center"}){v.current?.complete();let r=i.turnIndexByKey.get(e);if(r===void 0)throw Error(`Codex virtual turn is missing: ${e}`);let u=i.turnKeys[r],a=On({layout:i,turnKey:e,viewportHeightPx:y});if(a===null)throw Error(`Codex virtual turn is missing: ${e}`);let g=me({distanceFromBottomPx:a,layout:i,overscanCount:X,viewportHeightPx:y});return k.current=g,ie(g),new Promise((B)=>{let f={align:o.align,complete:B,getTargetElement:t,turnKey:u};v.current=f,ue(f)})}}),[i,y]);let I=M,G=ae.current;if(!(G===i.turnKeys||G.length===i.turnKeys.length&&G.every((e,t)=>e===i.turnKeys[t]))){let e=G[M.startIndex];I=(e===void 0?null:Dt({anchorKey:e,layout:i,previousRange:M}))??me({distanceFromBottomPx:N.current,layout:i,overscanCount:X,viewportHeightPx:y})}let ee=x.length-1,le=x[ee],te=x.slice(I.startIndex,Math.min(I.endIndex,ee)).map((e,t)=>({entry:e,index:I.startIndex+t}));if(le!==void 0)te.push({entry:le,index:ee});return re("div",{"data-codex-timeline":!0,"data-codex-virtualized-pending-key":c?.turnKey,"data-codex-virtualized-range":`${I.startIndex}:${I.endIndex}`,"data-codex-virtualized-total-count":x.length,"data-codex-virtualized-turn-count":te.length,className:"relative shrink-0",style:{height:i.totalHeightPx},children:[b&&R("div",{ref:_,"data-codex-timeline-leading":!0,className:"absolute inset-x-0 top-0",children:L}),te.map(({entry:e,index:t})=>R("div",{className:"absolute inset-x-0",style:{top:i.topOffsetsPx[t]??0},children:R(He,{turnKey:e.turnKey,heightPx:i.heightsPx[t],placeholder:e.placeholder,deferUntilReady:e.deferUntilReady,observe:ye,onReady:xe,children:W(e,t)})},e.turnKey))]})});
|
|
2
|
-
export{Dn};
|
package/dist/chunk-93x6b2qa.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{a,v}from"./chunk-ryz4c13z.js";import{D}from"./chunk-w43dvzqk.js";import{lo}from"./chunk-ynw0f8h2.js";import{W}from"./chunk-w8qmh6he.js";import{ao,Me}from"./chunk-9a4kjze3.js";import{mo}from"./chunk-50qyant6.js";import{$t}from"./chunk-sr5rcdza.js";import{cn as b}from"cn";import{jsx as o,jsxs as g}from"react/jsx-runtime";var R=new WeakMap,w=1;function N(t){if(t.type==="tool_use"||t.type==="subagent"||t.type==="collab")return`${t.type}:${t.id}`;let n=R.get(t);if(n!==void 0)return`${t.type}:${n}`;let s=w++;return R.set(t,s),`${t.type}:${s}`}function P({block:t,streaming:n,actions:s}){if(t.isApiError)return o("div",{className:"codex-stream-error",children:t.text});return g("div",{className:"codex-assistant-message",children:[o(v,{text:t.text,streaming:n}),s]})}function I({block:t,streaming:n,actions:s,renderText:i}){switch(t.type){case"text":return i===void 0?o(P,{block:t,streaming:n,actions:s}):i({block:t,streaming:n,actions:s});case"thinking":return t.thinking.length>0?o(v,{text:t.thinking,streaming:!t.isComplete}):null;case"plan":return o(W,{entries:t.entries});case"image":return o("img",{src:`data:${t.source.media_type};base64,${t.source.data}`,className:"max-h-64 rounded",alt:""});case"tool_use":case"subagent":case"collab":return null}}var E=new Set;function ui({message:t,isMostRecentTurn:n,hiddenTools:s=E,time:i,beforeCopy:r,afterCopy:l,providerIcon:u,renderText:T,renderEditedFiles:y}){if(t.streaming===!0&&t.content.every((e)=>e.type==="text"?e.text.length===0:e.type==="thinking"?e.thinking.length===0:!1))return o(A,{});let C=t.content.filter((e)=>e.type==="text").map((e)=>e.text).join(`
|
|
2
|
-
`),B=!t.streaming&&C.trim().length>0?o(Ft,{text:C,isMostRecentTurn:n,beforeCopy:r,afterCopy:l,time:i}):null,d=lo(t.content,"compact"),x=d.reduce((e,c,p)=>c.kind==="codexActivityGroup"?p:e,-1),h=d.findIndex((e,c)=>c>x&&e.kind==="block"&&e.block.type==="text"),M=[...t.content].toReversed().find((e)=>e.type==="text"),f=t.content.filter((e)=>e.type==="tool_use"&&D(e).category==="edit"),k=(e)=>{if(e.kind==="codexActivityGroup"){let c=e.blocks.filter((p)=>p.type!=="tool_use"||!s.has(p.name));return c.length===0?null:o(Me,{blocks:c},`activity:${N(c[0])}`)}if(e.kind!=="block")throw Error(`Codex received an incompatible grouped entry: ${e.kind}`);return o(I,{block:e.block,streaming:Boolean(t.streaming),actions:e.block===M?B:void 0,renderText:T},N(e.block))},m=x===-1?0:h===-1?d.length:h;return o(Bt,{stateKey:t.id,active:Boolean(t.streaming),startedAt:t.startedAt,durationMs:t.durationMs,providerId:t.providerId,providerIcon:u,work:d.slice(0,m).map(k),answer:d.length>m?d.slice(m).map(k):null,footer:x!==-1&&f.length>0&&(y===void 0?o(mo,{blocks:f}):y(f))})}function Ft({text:t,isMostRecentTurn:n=!1,beforeCopy:s,afterCopy:i,time:r}){let l=a(),{t:u}=l;return g("div",{className:b("mt-1.5 flex h-5 w-fit -translate-x-1 items-center justify-start gap-0.5 [&_*]:transition-none",n?"opacity-100":"opacity-0 group-focus-within/am:opacity-100 group-hover/am:opacity-100"),children:[s,o($t,{text:t,label:u("actions.copy"),host:l}),i,r&&o("span",{className:"codex-user-time ms-1",title:r.full,children:r.short})]})}function A(){let{t}=a();return o("div",{className:"codex-pending-message py-2",role:"status",children:o("span",{className:"codex-activity-running",children:t("message.thinking")})})}function Bt({work:t,answer:n,footer:s,loading:i=!1,...r}){if(i)return o(A,{});return g("div",{className:"group/am codex-assistant-turn",children:[t.length>0&&o(ao,{...r,children:t}),n!==null&&(t.length===0?n:o("div",{"data-local-conversation-final-assistant":!0,"data-testid":"codex-final-answer",className:"codex-final-answer",children:n})),s]})}
|
|
3
|
-
export{ui,Ft,Bt};
|
package/dist/chunk-96xwaa2t.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
function Br(t,e){if(t.type||!e.type)return t;let o=e.type.split("/")[1],i=o!==void 0&&o!==""?`pasted-${Date.now()}.${o==="jpeg"?"jpg":o}`:"";return new File([t],t.name||i||`pasted-${Date.now()}`,{type:e.type})}function Ao(t){let e=[],o=!1;for(let i of t){if(i.kind!=="file")continue;let n=i.getAsFile();if(!n)continue;if(!(n.type||i.type).startsWith("image/")){o=!0;continue}e.push(Br(n,i))}return{imageFiles:e,sawNonImageFile:o}}function Lo(t){return[...t].some((e)=>e.kind==="string")}function s(t){let e=t.codePointAt(0);return e<32&&e!==9&&e!==10&&e!==13||e===127}function zr(t){return[...t].filter((e)=>!s(e)).join("")}function br(t,e){let o=0;for(let i=0;i<e;i++){let n=t.charCodeAt(i);if(n>=0&&n<=8||n===11||n===12||n>=14&&n<=31||n===127)o++}return o}function ct(t){let{value:e,selectionStart:o,selectionEnd:i}=t,n=zr(e);if(n===e)return n;if(t.value=n,o!==null&&i!==null){let a=Math.max(0,o-br(e,o)),r=Math.max(0,i-br(e,i));requestAnimationFrame(()=>{t.setSelectionRange(a,r)})}return n}
|
|
2
|
-
export{Br,Ao,Lo,zr,br,ct};
|
package/dist/chunk-9a4kjze3.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{a,v}from"./chunk-ryz4c13z.js";import{zt}from"./chunk-6edz9f7j.js";import{D}from"./chunk-w43dvzqk.js";import{S}from"./chunk-51sbmqdk.js";import{pe,so}from"./chunk-p8nx34zm.js";import{W}from"./chunk-w8qmh6he.js";import{cn as y}from"cn";import{BotIcon as ue,CheckIcon as me,CopyIcon as ge}from"lucide-react";import{Fragment as fe,useEffect as U,useRef as V,useState as R}from"react";import{jsx as n,jsxs as p,Fragment as P}from"react/jsx-runtime";function j(e,t){let[o,i]=R(()=>({key:e,mounted:t})),r=t||o.key===e&&o.mounted;if(o.key!==e||o.mounted!==r)i({key:e,mounted:r});return r}var z=new WeakMap,K=1;function b(e){if(e.type==="tool_use"||e.type==="subagent"||e.type==="collab")return`${e.type}:${e.id}`;if(e.type==="thinking"&&e.id!==void 0)return`thinking:${e.id}`;let t=z.get(e);if(t!==void 0)return`${e.type}:${t}`;let o=K;return K+=1,z.set(e,o),`${e.type}:${o}`}function L(e){switch(e){case"pending":case"in_progress":return!0;case"completed":case"failed":case"cancelled":case"interrupted":return!1;default:throw Error(`Unknown ACP tool status: ${e}`)}}function Z(e,t){let o=Math.max(0,Math.round(e/1000)),i=Math.floor(o/3600),r=Math.floor(o%3600/60),s=o%60;if(s>=60)r+=Math.floor(s/60),s%=60;if(r>=60)i+=Math.floor(r/60),r%=60;let l=Intl.DurationFormat;if(l)try{return new l(t,{style:"narrow"}).format({hours:i,minutes:r,seconds:i>0?0:s})}catch{}if(i>0)return r>0?`${i}h ${r}m`:`${i}h`;if(r>0)return s>0?`${r}m ${s}s`:`${r}m`;return`${s}s`}var xe="M7.52925 3.7793C7.75652 3.55203 8.10803 3.52383 8.36616 3.69434L8.47065 3.7793L14.2207 9.5293C14.4804 9.789 14.4804 10.211 14.2207 10.4707L8.47065 16.2207C8.21095 16.4804 7.78895 16.4804 7.52925 16.2207C7.26955 15.961 7.26955 15.539 7.52925 15.2793L12.8085 10L7.52925 4.7207L7.44429 4.61621C7.27378 4.35808 7.30198 4.00657 7.52925 3.7793Z";function B({expanded:e,className:t}){return n("svg",{className:y("codex-activity-disclosure",e&&"codex-activity-disclosure-expanded",t),viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:n("path",{d:xe})})}function Ce(){return n("svg",{className:"codex-activity-icon",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:n("path",{d:"M16.3965 5.01128C16.3963 4.93399 16.3489 4.87691 16.293 4.85406L16.2354 4.84332C13.9306 4.91764 12.5622 5.32101 10.665 6.34722V16.3716C11.3851 15.9994 12.0688 15.7115 12.7861 15.5015C13.8286 15.1965 14.9113 15.0633 16.2402 15.0435L16.2979 15.0308C16.353 15.0063 16.3965 14.9483 16.3965 14.8755V5.01128ZM3.54492 14.8765C3.54492 14.9725 3.62159 15.0422 3.70117 15.0435L4.19629 15.0562C5.94062 15.1247 7.26036 15.4201 8.65918 16.0484C8.05544 15.1706 7.14706 14.436 6.17871 14.1109V14.1099C5.56757 13.9045 5.16816 13.3314 5.16797 12.6988V4.98882C4.86679 4.93786 4.60268 4.8999 4.28223 4.87457L3.72754 4.84429C3.62093 4.84079 3.54505 4.92417 3.54492 5.01226V14.8765ZM17.7266 14.8755C17.7266 15.6314 17.1607 16.2751 16.4121 16.3628L16.2598 16.3736C15.0122 16.3922 14.0555 16.5159 13.1602 16.7779C12.2629 17.0404 11.3966 17.4508 10.3369 18.0738C10.129 18.1959 9.87099 18.1958 9.66309 18.0738C7.71455 16.9283 6.31974 16.4689 4.12988 16.3853L3.68164 16.3736C2.85966 16.3614 2.21484 15.6838 2.21484 14.8765V5.01226C2.21497 4.15391 2.93263 3.4871 3.77246 3.51519L4.39844 3.54937C4.67996 3.57191 4.92258 3.60421 5.16797 3.64214V2.51031C5.16797 1.44939 6.29018 0.645615 7.31055 1.15679L7.31152 1.15582C8.78675 1.89511 10.0656 3.33006 10.5352 4.91461C12.3595 3.98907 13.8688 3.58817 16.1924 3.51324L16.3506 3.51714C17.1285 3.5741 17.7264 4.23496 17.7266 5.01128V14.8755ZM6.49805 12.6988C6.49824 12.7723 6.5442 12.8296 6.60254 12.8492L6.96289 12.9859C7.85245 13.3586 8.68125 13.9846 9.33496 14.7496V5.5816C9.08794 4.37762 8.13648 3.1566 6.95801 2.47613L6.71582 2.34527C6.67779 2.32617 6.6337 2.32502 6.58301 2.35796C6.52946 2.39279 6.49805 2.44863 6.49805 2.51031V12.6988Z"})})}function ye(){return n("svg",{className:"codex-activity-icon",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:n("path",{d:"M7.33057 1.98535C10.2484 1.98535 12.6136 4.3508 12.6138 7.26855C12.6138 8.58031 12.1346 9.77942 11.3433 10.7031L13.9897 13.3496C14.1655 13.5253 14.1655 13.8106 13.9897 13.9863C13.814 14.1621 13.5288 14.1621 13.353 13.9863L10.7017 11.335C9.78678 12.0942 8.61243 12.5518 7.33057 12.5518C4.41281 12.5516 2.04736 10.1864 2.04736 7.26855C2.04754 4.35091 4.41292 1.98553 7.33057 1.98535ZM7.33057 2.88574C4.90998 2.88592 2.94793 4.84796 2.94775 7.26855C2.94775 9.68929 4.90987 11.6522 7.33057 11.6523C9.75141 11.6523 11.7144 9.6894 11.7144 7.26855C11.7142 4.84786 9.75131 2.88574 7.33057 2.88574Z"})})}function ve(){return p("svg",{className:"codex-activity-icon",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:[n("path",{d:"M6.19629 7.86231C6.42357 7.63534 6.7752 7.60692 7.0332 7.77734L7.1377 7.86231L8.80371 9.5293C9.06329 9.78889 9.06307 10.21 8.80371 10.4697L7.1377 12.1367C6.878 12.3964 6.45599 12.3964 6.19629 12.1367C5.93686 11.8771 5.93697 11.456 6.19629 11.1963L7.39258 9.99902L6.19629 8.80371L6.11133 8.69922C5.94087 8.4411 5.96904 8.08955 6.19629 7.86231Z"}),n("path",{d:"M13.4668 11.0156C13.7699 11.0776 13.998 11.3456 13.998 11.667C13.9979 11.9883 13.7698 12.2564 13.4668 12.3184L13.333 12.332H10.833C10.466 12.3319 10.1682 12.034 10.168 11.667C10.168 11.2998 10.4659 11.0021 10.833 11.002H13.333L13.4668 11.0156Z"}),n("path",{d:"M12.6602 2.66504C13.3492 2.66504 13.9062 2.66439 14.3564 2.70117C14.8142 2.73859 15.2201 2.81796 15.5967 3.00977C16.1922 3.31321 16.677 3.79805 16.9805 4.39356C17.1722 4.77014 17.2517 5.17604 17.2891 5.63379C17.3258 6.08402 17.3252 6.64102 17.3252 7.33008V12.6602C17.3252 13.3492 17.3258 13.9062 17.2891 14.3564C17.2516 14.8142 17.1723 15.2201 16.9805 15.5967C16.677 16.1922 16.1922 16.677 15.5967 16.9805C15.2201 17.1723 14.8142 17.2516 14.3564 17.2891C13.9062 17.3258 13.3492 17.3252 12.6602 17.3252H7.33008C6.64102 17.3252 6.08402 17.3258 5.63379 17.2891C5.17604 17.2517 4.77014 17.1722 4.39356 16.9805C3.79805 16.677 3.31321 16.1922 3.00977 15.5967C2.81796 15.2201 2.73859 14.8142 2.70117 14.3564C2.66439 13.9062 2.66504 13.3492 2.66504 12.6602V7.33008C2.66504 6.64101 2.66439 6.08402 2.70117 5.63379C2.73858 5.17601 2.81797 4.77016 3.00977 4.39356C3.31321 3.79802 3.79802 3.31321 4.39356 3.00977C4.77016 2.81797 5.17601 2.73858 5.63379 2.70117C6.08402 2.66439 6.64101 2.66504 7.33008 2.66504H12.6602ZM7.33008 3.99512C6.61907 3.99512 6.1257 3.99601 5.74219 4.02734C5.3665 4.05804 5.15508 4.11481 4.99707 4.19531C4.65183 4.37124 4.37124 4.65183 4.19531 4.99707C4.11481 5.15508 4.05805 5.3665 4.02734 5.74219C3.99601 6.1257 3.99512 6.61908 3.99512 7.33008V12.6602C3.99512 13.3711 3.99601 13.8646 4.02734 14.248C4.05805 14.6237 4.11481 14.8352 4.19531 14.9932C4.37124 15.3384 4.65186 15.619 4.99707 15.7949C5.15507 15.8754 5.36654 15.9322 5.74219 15.9629C6.1257 15.9942 6.61908 15.9951 7.33008 15.9951H12.6602C13.3711 15.9951 13.8646 15.9942 14.248 15.9629C14.6237 15.9322 14.8352 15.8754 14.9932 15.7949C15.3384 15.619 15.619 15.3384 15.7949 14.9932C15.8754 14.8352 15.9322 14.6237 15.9629 14.248C15.9942 13.8646 15.9951 13.3711 15.9951 12.6602V7.33008C15.9951 6.61908 15.9942 6.1257 15.9629 5.74219C15.9322 5.36654 15.8754 5.15507 15.7949 4.99707C15.619 4.65186 15.3384 4.37124 14.9932 4.19531C14.8352 4.11481 14.6237 4.05805 14.248 4.02734C13.8646 3.99601 13.3711 3.99512 12.6602 3.99512H7.33008Z"})]})}function he(){return n("svg",{className:"codex-activity-icon",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:n("path",{d:"M11.3312 4.20472C12.7488 2.92391 14.9377 2.96644 16.3039 4.33265L16.4318 4.46742C17.6713 5.8393 17.6713 7.93343 16.4318 9.30531L16.3039 9.44007L10.0119 15.7311C9.68839 16.0546 9.45384 16.2917 9.22185 16.4821L8.98748 16.6588C8.78233 16.799 8.56429 16.9196 8.33709 17.0192L8.10759 17.1119C7.92582 17.1785 7.73843 17.2266 7.52166 17.2711L6.75701 17.4069L4.36345 17.8053C4.22059 17.8291 4.06914 17.8552 3.9406 17.8649C3.84183 17.8723 3.70833 17.875 3.56267 17.8395L3.41423 17.7907C3.19121 17.695 3.00747 17.5271 2.89177 17.316L2.84588 17.2223C2.75958 17.0209 2.76174 16.8276 2.77166 16.6959C2.78136 16.5674 2.80742 16.4159 2.83123 16.2731L3.22966 13.8795L3.36443 13.1149C3.40899 12.898 3.45795 12.7108 3.52459 12.5289L3.61736 12.2985C3.71691 12.0715 3.83772 11.854 3.97771 11.6491L4.15349 11.4147C4.34392 11.1825 4.58171 10.9484 4.90545 10.6246L11.1965 4.33265L11.3312 4.20472ZM5.84588 11.5651C5.49671 11.9142 5.31258 12.0998 5.1867 12.2526L5.07537 12.3991C4.98194 12.5358 4.90157 12.6812 4.83513 12.8327L4.77361 12.9869C4.73328 13.0971 4.70248 13.2125 4.66814 13.3815L4.54119 14.0983L4.14275 16.4918L4.14177 16.4938H4.1447L6.53826 16.0944L7.25505 15.9684C7.42406 15.9341 7.53946 15.9033 7.64959 15.8629L7.80291 15.8014C7.95461 15.7349 8.09953 15.6538 8.2365 15.5602L8.38396 15.4498C8.53674 15.3239 8.72231 15.1398 9.07146 14.7907L14.0588 9.80238L10.8332 6.57679L5.84588 11.5651ZM15.3635 5.27308C14.5281 4.43776 13.2058 4.38573 12.3097 5.11683L12.1369 5.27308L11.7736 5.63636L15.0002 8.86195L15.3635 8.49964L15.5197 8.32581C16.2015 7.48961 16.2015 6.28311 15.5197 5.44691L15.3635 5.27308Z"})})}function J(){return n("svg",{className:"codex-activity-icon",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:n("path",{d:"M16.8347 7.91699C16.8347 7.76279 16.8266 7.61021 16.8123 7.45996L15.4705 8.80371C14.2903 9.98388 12.3762 9.98388 11.1961 8.80371C10.016 7.62352 10.0159 5.70942 11.1961 4.5293L12.5378 3.18652C12.3885 3.17238 12.237 3.16505 12.0837 3.16504C9.45947 3.16504 7.33179 5.29272 7.33179 7.91699C7.33184 8.56608 7.46162 9.18329 7.69605 9.74512C7.79981 9.9939 7.74311 10.2811 7.5525 10.4717L3.59547 14.4287C3.0498 14.9744 3.04991 15.8586 3.59547 16.4043L3.70191 16.501C4.25076 16.9483 5.05957 16.9158 5.57105 16.4043L9.52906 12.4473L9.60426 12.3828C9.79018 12.2455 10.0369 12.2131 10.2546 12.3037C10.8166 12.5382 11.4345 12.668 12.0837 12.668C14.7078 12.6678 16.8345 10.541 16.8347 7.91699ZM18.1648 7.91699C18.1646 11.2755 15.4423 13.9979 12.0837 13.998C11.4151 13.998 10.7708 13.8886 10.1677 13.6885L6.51246 17.3457C5.51389 18.3443 3.93332 18.406 2.86207 17.5322L2.65504 17.3457C1.58992 16.2806 1.58992 14.5534 2.65504 13.4883L6.31031 9.83203C6.1104 9.22921 6.00175 8.58526 6.00172 7.91699C6.00172 4.55818 8.72494 1.83496 12.0837 1.83496C12.7838 1.835 13.458 1.95316 14.0857 2.17188L14.1638 2.20508C14.3404 2.29325 14.4697 2.45713 14.5144 2.65234C14.5653 2.87533 14.4984 3.10876 14.3367 3.27051L12.1375 5.4707C11.4767 6.13148 11.4767 7.20251 12.1375 7.86328C12.7983 8.52373 13.8694 8.52395 14.53 7.86328L16.7293 5.66309L16.7937 5.60742C16.9499 5.48687 17.1532 5.44067 17.3484 5.48535C17.5714 5.53648 17.7526 5.69898 17.8279 5.91504C18.0466 6.54272 18.1648 7.21689 18.1648 7.91699Z"})})}function ee({block:e}){if(e.type!=="tool_use")return null;if(O(e))return n(J,{});let t=D(e).category;if(t==="read")return n(Ce,{});if(t==="search"||t==="fetch")return n(ye,{});if(t==="execute")return n(ve,{});if(t==="edit")return n(he,{});return n(J,{})}function A(e,t){let o=e.rawInput[t];return typeof o==="string"&&o.length>0?o:void 0}function we(e){return D(e).target}function G(e){return e.name==="mcp"||e.name.startsWith("mcp__")||e.name.startsWith("mcp_")}function O(e){return G(e)||e.name==="dynamic_tool"}function te(e,t){let{category:o}=D(e),i=we(e),r=L(e.status);if(O(e))return{leading:e.title};if(o==="execute"){let s=A(e,"command")?.split(`
|
|
2
|
-
`)[0]??i;return s?{leading:t(r?"stream.codex.running":"stream.codex.ran"),trailing:s}:{leading:t(r?"stream.codex.runningCommand":"stream.codex.ranCommandGeneric")}}if(o==="search"){let s=A(e,"pattern")??A(e,"query")??i;return s?{leading:t(r?"stream.codex.searching":"stream.codex.searched"),trailing:t("stream.codex.forDetail",{detail:s})}:{leading:t(r?"stream.codex.searchingFiles":"stream.codex.searchedFiles")}}if(o==="fetch"){let s=A(e,"query")??A(e,"url")??i;return s?{leading:t(r?"stream.codex.searchingWeb":"stream.codex.searchedWeb"),trailing:t("stream.codex.forDetail",{detail:s})}:{leading:t(r?"stream.codex.searchingWeb":"stream.codex.searchedWeb")}}if(o==="read")return i?{leading:t("stream.codex.readLabel"),trailing:i}:{leading:t("stream.codex.readFiles")};if(o==="edit")return i?{leading:t(r?"stream.codex.editingLabel":"stream.codex.editedLabel"),trailing:i}:{leading:t(r?"stream.codex.editingFiles":"stream.codex.editedFiles")};if(o==="delete")return i?{leading:t(r?"stream.codex.deletingLabel":"stream.codex.deletedLabel"),trailing:i}:{leading:t(r?"stream.codex.deletingFiles":"stream.codex.deletedFiles")};if(o==="move")return i?{leading:t(r?"stream.codex.movingLabel":"stream.codex.movedLabel"),trailing:i}:{leading:t(r?"stream.codex.movingFiles":"stream.codex.movedFiles")};return{leading:e.title}}function be(e,t){let o=te(e,t);return o.trailing===void 0?o.leading:`${o.leading} ${o.trailing}`}function Le(e){return e.map((t)=>{if(t.type!=="content")return"";let o=t.content;return o.type==="text"?o.text:""}).filter(Boolean).join(`
|
|
3
|
-
`).trim()}function Ne(e){return e.flatMap((t)=>{if(t.type!=="content")return[];let o=t.content;return o.type==="image"?[{data:o.data,mimeType:o.mimeType}]:[]})}function Te(e){return e.flatMap((t)=>{if(t.type!=="content")return[];let o=t.content;return o.type==="audio"?[{data:o.data,mimeType:o.mimeType}]:[]})}function $e(e){if(typeof e==="string"&&e.length>0)return e;return}function ke(e){return e.type==="diff"}function Ae(e){let t=e.content.find(ke);if(t===void 0)return;return t.changes.map((o)=>`${o.operation} ${o.path}`).join(`
|
|
4
|
-
`)}function ne(e){let t=$e(e.rawOutput);if(t!==void 0)return t;let o=Le(e.content);if(o.length>0)return o;return Ae(e)}function Be({block:e,command:t}){let{t:o,Output:i,commandStatus:r}=a(),[s,l]=R(!1),[c,u]=R(!1),m=ne(e),d=r===void 0?e.exitCode===void 0?void 0:o("stream.codex.exitCode",{code:e.exitCode}):r(e),g=()=>{navigator.clipboard.writeText([`$ ${t}`,m].filter((f)=>f!==void 0).join(`
|
|
5
|
-
`)),l(!0),setTimeout(()=>l(!1),1500)};return n("div",{className:"codex-command-details",children:p("div",{className:"codex-command-card",children:[p("div",{className:"codex-command-line-row",children:[n("span",{className:"codex-command-prompt","aria-hidden":"true",children:"$"}),n("button",{type:"button",className:y("codex-command-line",!c&&"codex-command-line-clamped"),"data-codex-disclosure":"","aria-expanded":c,onClick:()=>u((f)=>!f),children:t}),n("button",{type:"button",className:"codex-command-copy","aria-label":o("actions.copy"),onClick:g,children:s?n(me,{}):n(ge,{})})]}),m!==void 0&&(i===void 0?n("pre",{className:"codex-command-output",children:m}):n(i,{text:m})),d!==void 0&&n("div",{className:"codex-command-footer",children:n("span",{className:"codex-command-status",children:d})})]})})}function ae({block:e}){let{t,openLink:o,Patch:i,openImage:r,commandStatus:s,expandToolOutput:l=!1}=a(),c=ne(e),u=i===void 0?void 0:e.content.flatMap((x)=>{if(x.type!=="diff")return[];let k=x;return k.patch?.text?[k.patch.text]:[]}).join(`
|
|
6
|
-
`),m=Ne(e.content),d=Te(e.content),[g,f]=S(`tool:${e.id}`,!1),T=j(`tool:${e.id}`,g),h=D(e),w=h.category,C=te(e,t),I=w==="execute"?A(e,"command"):void 0,N=I!==void 0||O(e)||m.length>0||d.length>0||Boolean(u)||l&&c!==void 0,M=!N&&!L(e.status)?h.filePath:void 0;if(w==="execute"&&!L(e.status)&&e.status!=="completed"){let x=s?.(e);if(x)C={...C,leading:x}}if(w==="read"&&L(e.status))return null;let E=p("span",{className:"codex-activity-label",children:[n(ee,{block:e}),n("span",{className:"min-w-0 flex-1 truncate",children:L(e.status)?n("span",{className:"codex-activity-running",children:C.trailing===void 0?C.leading:`${C.leading} ${C.trailing}`}):p(P,{children:[n("span",{className:"codex-activity-leading",children:C.leading}),C.trailing!==void 0&&(M!==void 0?p(P,{children:[" ",n("button",{type:"button",className:"codex-activity-trailing codex-activity-file-link",title:M,onClick:()=>o(M),children:C.trailing})]}):p("span",{className:"codex-activity-trailing",children:[" ",C.trailing]}))]})})]});return p("div",{className:"codex-activity-item",children:[N?p("button",{type:"button",className:"codex-activity-header","data-codex-disclosure":"","aria-label":C.trailing===void 0?C.leading:`${C.leading} ${C.trailing}`,"aria-expanded":g,onClick:()=>f((x)=>!x),children:[E,n(B,{expanded:g})]}):n("div",{className:"codex-activity-header codex-activity-header-static",children:E}),n("div",{className:y("codex-activity-details-grid",g&&"codex-activity-details-grid-open"),children:n("div",{className:"min-h-0 overflow-hidden",children:T&&p(P,{children:[I!==void 0?n(Be,{block:e,command:I}):i!==void 0&&u?n(i,{patch:u}):c!==void 0&&n("pre",{className:"codex-activity-details",children:c}),m.length>0&&n("div",{className:"codex-activity-media",children:m.map((x)=>{let k=`data:${x.mimeType};base64,${x.data}`,q=n("img",{src:k,className:"max-h-48 max-w-full rounded-lg object-contain",alt:""},`${x.mimeType}:${x.data.slice(0,32)}`);return r===void 0?q:n("button",{type:"button",className:"cursor-pointer",onClick:()=>r(k),children:q},k)})}),d.map((x)=>n("audio",{className:"mt-1 w-full","aria-label":t("stream.codex.audioOutput"),controls:!0,src:`data:${x.mimeType};base64,${x.data}`},`${x.mimeType}:${x.data.slice(0,32)}`))]})})})]})}function oe({block:e}){if(e.type==="tool_use")return n(ae,{block:e});if(e.type==="thinking")return n(le,{block:e});if(e.type==="collab")return n(ce,{block:e});return n(ie,{block:e})}function ie({block:e}){let{t,openSession:o}=a(),i=L(e.status),[r,s]=S(`subagent:${e.id}`,i),l=V(i);U(()=>{if(i)s(!0);if(l.current&&!i)s(!1);l.current=i},[i,s]);let c=`${Re(e.activity,i,e.name,t)}${re(e.model,e.reasoningEffort,t)}`,u=e.threadId??"",m=e.blocks.length>0;return p("div",{className:"codex-activity-item",children:[p("button",{type:"button",className:y("codex-activity-header",!m&&"codex-activity-header-static"),"data-codex-disclosure":"","aria-expanded":m?r:void 0,disabled:!m,onClick:()=>s((d)=>!d),children:[p("span",{className:"codex-activity-label",children:[n(Se,{seed:e.threadId??e.id}),n("span",{className:"min-w-0 flex-1 truncate",children:o===void 0||e.threadId===null?i?n("span",{className:"codex-activity-running",children:c}):c:n("span",{role:"link",tabIndex:0,className:y("codex-agent-link",i&&"codex-activity-running"),"aria-label":t("stream.codex.subagentOpen",{name:e.name}),onClick:(d)=>{d.stopPropagation(),o(u,e.name)},onKeyDown:(d)=>{if(d.key!=="Enter"&&d.key!==" ")return;d.preventDefault(),d.stopPropagation(),o(u,e.name)},children:c})})]}),m&&n(B,{expanded:r})]}),n("div",{className:y("codex-activity-details-grid",r&&"codex-activity-details-grid-open"),children:n("div",{className:"min-h-0 overflow-hidden",children:n("div",{className:"codex-subagent-details",children:e.blocks.map((d)=>{if(d.type==="tool_use")return n(ae,{block:d},d.id);if(d.type==="thinking")return n(le,{block:d},b(d));if(d.type==="subagent")return n(ie,{block:d},d.id);if(d.type==="collab")return n(ce,{block:d},d.id);if(d.type==="text")return n("div",{className:"codex-reasoning-details",children:n(v,{text:d.text,streaming:!1})},b(d));if(d.type==="plan")return n(W,{entries:d.entries},b(d));if(d.type==="image")return n("img",{src:`data:${d.source.media_type};base64,${d.source.data}`,className:"max-h-48 max-w-full rounded-lg object-contain",alt:""},b(d));return null})})})})]})}var Ie=8;function Ee(e){let t=0;for(let o=0;o<e.length;o+=1)t=(t*31+e.charCodeAt(o))%2147483647;return t%Ie}function Se({seed:e}){return n("span",{className:"codex-agent-avatar","data-hue":Ee(e),"aria-hidden":"true"})}function Re(e,t,o,i){switch(e){case"started":return i(t?"stream.codex.subagentWorking":"stream.codex.subagentFinished",{name:o});case"interacted":return i("stream.codex.subagentMessaged",{name:o});case"interrupted":return i("stream.codex.subagentInterrupted",{name:o});case"completed":return i("stream.codex.subagentFinished",{name:o})}}var _e=new Set(["none","minimal","low","medium","high","xhigh","max","ultra","persistent"]);function re(e,t,o){if(e===null)return"";if(t===null)return` · ${zt(e)}`;let i=_e.has(t)?o(`stream.codex.reasoningEffort.${t}`):t;return` · ${zt(e)} · ${i}`}var Fe={spawnAgent:"spawn",sendInput:"message",sendMessage:"message",followupTask:"message",interruptAgent:"interrupt",listAgents:"list",resumeAgent:"resume",closeAgent:"close"};function se(e){switch(e){case"pending":case"in_progress":return"inProgress";case"completed":return"completed";case"failed":return"failed";case"cancelled":case"interrupted":return"interrupted";default:throw Error(`Unknown ACP tool status: ${e}`)}}function H(e,t,o){if(e.tool==="wait")throw Error("Codex does not present wait calls");let i=se(e.status);if(i==="interrupted")return o("stream.codex.collab.interrupted");return o(`stream.codex.collab.${t}.${Fe[e.tool]}.${i}`)}function De(e){return e.agents.filter((t)=>t.nickname!==null)}function de(e,t){let o=e.agents.length>0?e.agents.length:1;return`${H(e,"header",t)}${t("stream.codex.collab.agentCount",{count:o})}`}var _="\x01";function F(e,t,o,i){let r=Object.fromEntries(Object.keys(i).map((s)=>[s,`${_}${s}${_}`]));return e(t,{...o,...r}).split(new RegExp(`${_}(\\w+)${_}`,"u")).map((s,l)=>n(fe,{children:l%2===1?i[s]:s},`${l}:${s}`))}function Pe({agent:e,showModel:t}){let{t:o,openSession:i}=a(),r=e.nickname??"",s=i===void 0?n("span",{className:"font-medium",children:r}):n("button",{type:"button",className:"codex-agent-link font-medium","aria-label":o("stream.codex.subagentOpen",{name:r}),onClick:()=>i(e.threadId,r),children:r});return p("span",{children:[s,e.role!==null&&` (${e.role})`,t&&re(e.model,e.reasoningEffort,o)]})}function Q({prompt:e}){return n("span",{className:"codex-collab-prompt",title:e,children:e})}function Ue(e,t){let o=e.prompt?.trim()?e.prompt:null,i=se(e.status),r=e.tool==="spawnAgent"&&i==="completed"&&o!==null,s=(e.tool==="sendInput"||e.tool==="sendMessage"||e.tool==="followupTask")&&o!==null,l=De(e),c=[];if(l.length===0)c.push({key:"generic",node:H(e,"row",t)});for(let u of l){let m=n(Pe,{agent:u,showModel:e.tool==="spawnAgent"});if(r)c.push({key:u.threadId,node:n("span",{className:"codex-collab-line",children:F(t,"stream.codex.collab.createdWithInstructions",{},{agent:m,instructions:n(Q,{prompt:o})})})});else if(s)c.push({key:u.threadId,node:n("span",{className:"codex-collab-line",children:F(t,"stream.codex.collab.messagedWithPrompt",{action:i==="interrupted"?t("stream.codex.collab.interrupted"):t(`stream.codex.collab.messaged.${i}`)},{agent:m,prompt:n(Q,{prompt:o})})})});else{let g=e.tool!=="closeAgent"&&e.tool!=="resumeAgent"&&u.state!==null&&u.state!==null?u.state.message?.trim()?t("stream.codex.collab.stateWithMessage",{state:t(`stream.codex.collab.state.${u.state.status}`),message:u.state.message}):t("stream.codex.collab.stateOnly",{state:t(`stream.codex.collab.state.${u.state.status}`)}):"";c.push({key:u.threadId,node:F(t,"stream.codex.collab.agentRow",{action:H(e,"row",t),state:g},{agent:m})})}}if(!r&&!s&&o!==null)c.push({key:"input",node:F(t,"stream.codex.collab.input",{},{prompt:n("span",{className:"codex-collab-input",children:o})})});return c}function ce({block:e}){let{t}=a(),[o,i]=S(`collab:${e.id}`,!1);if(e.tool==="wait")return null;let r=L(e.status),s=de(e,t);return p("div",{className:"codex-activity-item",children:[p("button",{type:"button",className:"codex-activity-header","data-codex-disclosure":"","aria-expanded":o,onClick:()=>i((l)=>!l),children:[p("span",{className:"codex-activity-label",children:[n(ue,{className:"size-4 shrink-0","aria-hidden":"true"}),n("span",{className:"min-w-0 flex-1 truncate",children:r?n("span",{className:"codex-activity-running",children:s}):s})]}),n(B,{expanded:o})]}),n("div",{className:y("codex-activity-details-grid",o&&"codex-activity-details-grid-open"),children:n("div",{className:"min-h-0 overflow-hidden",children:n("div",{className:"codex-subagent-details",children:Ue(e,t).map((l)=>n("div",{className:"codex-collab-row",children:l.node},l.key))})})})]})}function le({block:e}){let{t,i18n:o}=a(),i=Boolean(e.isComplete),[r,s]=S(`thinking:${b(e)}`,!1),l=V(null),c=e.thinking.trim().length>0;U(()=>{if(i||!c)return;let d=l.current;if(d===null)throw Error("Thinking details are not mounted");let g=new ResizeObserver(()=>{d.scrollTop=d.scrollHeight}),f=null,T=()=>{let w=d.firstElementChild;if(w===f)return;if(f!==null)g.unobserve(f);if(f=w,f!==null)g.observe(f)},h=new MutationObserver(T);return h.observe(d,{childList:!0}),T(),()=>{h.disconnect(),g.disconnect()}},[c,i]);let u=i?e.durationMs!==void 0?t("stream.codex.thoughtFor",{duration:Z(e.durationMs,o.language)}):t("stream.codex.thought"):t("message.thinking"),m=e.thinking.trimStart().replace(/^\*\*[^\n]*?\*\*\s*/,"");return p("div",{className:"codex-activity-item",children:[p("button",{type:"button",className:y("codex-activity-header",!c&&"codex-activity-header-static"),"data-codex-disclosure":"","aria-expanded":c?r:void 0,disabled:!c,onClick:()=>s((d)=>!d),children:[n("span",{className:"codex-activity-label",children:n("span",{className:"codex-reasoning-label min-w-0 flex-1 truncate",children:i?u:n("span",{className:"codex-activity-running",children:u})})}),c&&n(B,{expanded:r})]}),n("div",{className:y("codex-activity-details-grid",r&&"codex-activity-details-grid-open"),children:n("div",{className:"min-h-0 overflow-hidden",children:c&&n("div",{ref:l,className:"codex-reasoning-details",role:"region","aria-label":u,"aria-hidden":!r,tabIndex:0,inert:!r,children:n(v,{text:m,streaming:!i})})})})]})}function Ve(e){if(G(e))return"mcp";let t=D(e).category;return t==="think"||t==="switch_mode"?"other":t}function Oe(e,t,o,i){return i(`stream.codex.summary.${e}.${o?"leading":"following"}`,{count:t})}function Ze(e,t,o){let i=new Map,r=[],s=new Set;for(let c of e){if(G(c)&&typeof c.rawInput.server==="string"){if(s.size===0)r.push({kind:"integrations"});s.add(c.rawInput.server);continue}if(O(c)){if(!r.some((m)=>m.kind==="named"&&m.title===c.title))r.push({kind:"named",title:c.title});continue}let u=Ve(c);if(!i.has(u))r.push({kind:"category",category:u});i.set(u,(i.get(u)??0)+1)}let l=r.map((c,u)=>{if(c.kind==="named")return c.title;if(c.kind==="integrations")return t(`stream.codex.summary.integrations.${u===0?"leading":"following"}`,{count:s.size,sources:new Intl.ListFormat(o,{style:"long",type:"conjunction"}).format([...s])});return Oe(c.category,i.get(c.category),u===0,t)});if(o.startsWith("zh"))return l.join("");return new Intl.ListFormat(o,{style:"long",type:"conjunction"}).format(l)}function ao({stateKey:e,durationMs:t,durationKind:o="work",active:i,defaultExpanded:r=i,startedAt:s,providerId:l,providerIcon:c,children:u}){let{t:m,i18n:d}=a(),[g,f]=S(`work:${e}`,r,!0),T=j(`work:${e}`,g||i),h=V(null),[w,C]=R(0);U(()=>{if(!i||t!==void 0){h.current=null;return}h.current=s??Date.now();let N=()=>{let E=h.current;if(E===null)throw Error("Codex work section is ticking without a start time");C(Date.now()-E)};N();let M=window.setInterval(N,1000);return()=>window.clearInterval(M)},[i,s,t]);let I=t!==void 0?m(o==="total"?"stream.codex.totalDuration":"stream.codex.workedFor",{duration:Z(t,d.language)}):i&&w>=1000?m("stream.codex.workingFor",{duration:Z(w,d.language)}):m(i?"stream.codex.working":"stream.codex.worked");return p("section",{className:"codex-work-section",children:[p("button",{type:"button",className:"codex-work-trigger","data-codex-disclosure":"","aria-expanded":g,onClick:()=>f((N)=>!N),children:[l!==void 0&&n("span",{className:"codex-work-provider-icon","data-testid":"codex-work-provider-icon","data-provider-id":l,"aria-hidden":"true",children:c}),n("span",{children:I}),n(B,{expanded:g,className:"codex-work-chevron"})]}),n("div",{className:"codex-work-separator","aria-hidden":"true"}),n("div",{className:y("codex-work-grid",g&&"codex-work-grid-open"),"aria-hidden":!g,inert:!g,children:n("div",{className:"min-h-0 overflow-hidden",children:n("div",{className:"codex-work-body",children:T&&u})})})]})}function He(e,t){if(e.type==="tool_use")return be(e,t);if(e.type==="thinking")return t("message.thinking");if(e.type==="collab")return de(e,t);return t("stream.codex.subagentWorking",{name:e.name})}function X(e){if(e.type==="thinking")return!e.isComplete;if(e.type==="tool_use"||e.type==="subagent"||e.type==="collab")return L(e.status);return!1}function We(e,t,o=1000){let[i,r]=R({text:e,live:t}),s=V(Date.now());return U(()=>{if(e===i.text&&t===i.live)return;let l=Date.now(),c=Math.max(0,s.current+o-l);if(c===0||t!==i.live){s.current=l,r({text:e,live:t});return}let u=window.setTimeout(()=>{s.current=Date.now(),r({text:e,live:t})},c);return()=>window.clearTimeout(u)},[i,t,o,e]),t===i.live?i.text:e}function je({blocks:e,defaultExpanded:t=!0}){let{t:o,i18n:i}=a(),r=e.some(X),s=b(e[0]),[l,c]=S(`group:${s}`,t),u=j(`group:${s}`,l||r),m=e.findLast(X)??e.at(-1);if(m===void 0)throw Error("CodexActivityGroup requires at least one activity block");let d=e.filter((f)=>f.type==="tool_use"),g=We(r?He(m,o):Ze(d,o,i.language),r);return p("div",{className:"codex-activity-group",children:[p("button",{type:"button",className:"codex-activity-group-trigger","data-codex-disclosure":"","aria-expanded":l,onClick:()=>c((f)=>!f),children:[p("span",{className:"codex-activity-label",children:[n(ee,{block:e[0]}),n("span",{className:"truncate",children:r?n("span",{className:"codex-activity-running",children:g}):g})]}),n(B,{expanded:l})]}),n("div",{className:y("codex-activity-group-grid",l&&"codex-activity-group-grid-open"),children:n("div",{className:"min-h-0 overflow-hidden",children:n("div",{className:"codex-activity-group-body",children:u&&e.map((f)=>n(oe,{block:f},b(f)))})})})]})}function Y({blocks:e,defaultExpanded:t}){if(e.length===0)throw Error("CodexActivityGroup requires at least one activity block");if(e.length===1)return n(oe,{block:e[0]});return n(je,{blocks:e,defaultExpanded:t})}function Me({blocks:e,defaultExpanded:t}){if(!e.some(pe))return n(Y,{blocks:e,defaultExpanded:t});let o=[];for(let i of e){let r=o.at(-1);if(r&&pe(r[0])===pe(i))r.push(i);else o.push([i])}return n(P,{children:o.map((i)=>pe(i[0])?n(so,{blocks:i.filter(pe)},b(i[0])):n(Y,{blocks:i,defaultExpanded:t},b(i[0])))})}
|
|
7
|
-
export{ao,Me};
|
package/dist/chunk-9tdzg6e6.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{or,y}from"./chunk-cpk3y6ad.js";import{Ro}from"./chunk-5hsmhj1g.js";import{oe}from"./chunk-0kwfy29d.js";import{jo,Ko,Qo,Xo,Yo,K}from"./chunk-zbtas7pt.js";import{No,Mo}from"./chunk-mt965yn0.js";import{Yt}from"./chunk-rszktjdw.js";import{t,o}from"./chunk-dp8pjv6r.js";import{n}from"./chunk-ysc51tpb.js";import{en}from"./chunk-3e0mfcj6.js";import{i,ir,E,xt}from"./chunk-20svvgj3.js";import{ut}from"./chunk-svt0t387.js";import{xe,ft}from"./chunk-m28hdj8j.js";import{yt,wt}from"./chunk-31x6chk8.js";import{ar}from"./chunk-e55zxnda.js";import{gt}from"./chunk-w6hhyjcn.js";import{Fo}from"./chunk-5w92bzgs.js";import{mt}from"./chunk-6pmc9283.js";import{pt}from"./chunk-abwjd5yv.js";import{Wo}from"./chunk-4nh3xzrm.js";import{Vo}from"./chunk-133f0wed.js";import{dt}from"./chunk-5ev4qvsp.js";import{hasFuzzyFileSearch as Ft}from"@nyssance/codex-acp-v2/client";import{PlusIcon as kt}from"lucide-react";import{useCallback as S,useEffect as Dt,useLayoutEffect as X,useMemo as q,useRef as H,useState as N}from"react";import{jsx as c,jsxs as v}from"react/jsx-runtime";var Bt=["image/png","image/jpeg","image/webp","image/gif"],J=[];async function _t(e){let d=await(await fetch(e.url)).blob();return new Promise((b,G)=>{let I=new FileReader;I.onerror=()=>G(I.error),I.onload=()=>{let O=I.result;b(O.slice(O.indexOf(",")+1))},I.readAsDataURL(d)})}function Lt(e){let{t:d}=t(),b=y();return c(K,{"aria-label":d("composer.attachImage"),title:d("composer.attachImage"),onClick:()=>b.openFileDialog(),...e,children:c(kt,{className:"size-4"})})}function lt({session:e,onSubmit:d,onHandOff:b,modelSelector:G,modelMenu:I,inputHeader:O,actions:Pt,children:bt,attachmentPolicy:vt,predictions:It=!0,disabled:Ct=!1,preparing:Q=!1,allowPendingInput:Tt=!1}){let{host:F,client:T}=n(),{t:s}=F,k=S((r)=>{if(F.reportError)F.reportError(r);else console.error(r)},[F]),[Z,D]=N(()=>({text:i.get(e.id)?.text??"",revision:0})),{text:A}=Z,[w,At]=N(()=>i.get(e.id)?.attachments??J),[g,_]=N(()=>i.get(e.id)?.mentions??[]),W=w.some((r)=>xe(r)&&r.pastedText.status!=="ready"),[C,tt]=N(!1),[L,Mt]=N(!1),[Y,et]=N(!1),u=H(null),rt=H(null),a=H(Z),z=S((r)=>{rt.current?.(),a.current={text:r,revision:a.current.revision+1},D(a.current)},[]),ot=q(()=>({read:()=>{let p=u.current?.getTextarea(),h=p===null||p===void 0?[a.current.text.length,a.current.text.length]:[p.selectionStart,p.selectionEnd];return{target:e.id,...a.current,selection:h}},compareAndSet(p,h,x){if(p.target!==e.id||p.revision!==a.current.revision)return null;a.current={text:h,revision:a.current.revision+1},D(a.current);let l=u.current?.getTextarea();if(l!==null&&l!==void 0)l.value=h,l.setSelectionRange(x[0],x[1]);return{target:e.id,...a.current,selection:x}}}),[e.id]),B=H(null),nt=S((r)=>(B.current=r,()=>{if(B.current===r)B.current=null}),[]),at=e.state!=="idle",f=!Ct&&!Q&&e.attached&&!e.restoring&&!e.readOnly,M=!e.readOnly&&(Tt||f),R=pt(e,f&&!C&&!L&&!W&&!Y,A.length>0||w.length>0||g.length>0,It),it=R.invalidate;X(()=>{i.set(e.id,{text:A,attachments:w,mentions:g,modelId:i.get(e.id)?.modelId??null})},[e.id,A,w,g]),X(()=>ir(e.id,At),[e.id]),X(()=>xt(e.id,(r)=>{if(!M||C)throw Error("The composer cannot take text now; try again later");if(A.length||w.length||g.length)throw Error("The composer already has a draft; send or clear it first");z(r)}),[e.id,M,C,A,w,g,z]);let ct=o((r)=>Ft(r.agent)),Rt=q(()=>ct&&f?async(r)=>ut((await T.fuzzyFileSearch({query:r,roots:[e.cwd]})).files):void 0,[T,ct,f,e.cwd]),V=S((r)=>{_((p)=>p.includes(r)?p:[...p,r])},[]);Dt(()=>{u.current?.focus()},[]);let st=S(async({text:r,files:p})=>{let h=r.trim();if(h.length===0&&p.length===0&&g.length===0)return;let x=B.current;tt(!0);let l=i.get(e.id),Ot=a.current.revision,U=null;try{let P=[];for(let m of g){let j={kind:"file",absPath:m};P.push({type:"resource_link",uri:yt(j),name:wt(j)})}if(h.length>0)P.push({type:"text",text:h});for(let m of p)if(xe(m)){if(m.pastedText.status!=="ready")throw Error("Text attachment is not ready");P.push({type:"resource_link",uri:m.url,name:m.filename??"pasted-text.txt"})}else P.push({type:"image",data:await _t(m),mimeType:m.mediaType});if(a.current.revision===Ot&&i.get(e.id)===l)a.current={text:"",revision:a.current.revision+1},U=a.current.revision,D(a.current),_([]),E(e.id,()=>J),i.set(e.id,{text:"",attachments:J,mentions:[],modelId:l?.modelId??null}),u.current?.resetHeight();if(d)if(x===null)await d(P);else await d(P,(m)=>{if(x.signal.aborted||B.current!==x)return;x.accept(m),b?.(e.id,m)});else if(x===null)await T.prompt(e.id,P);else{let m=await T.prompt(e.id,P);x.accept(m)}it();for(let m of l?.attachments??[])if(m.url.startsWith("blob:")&&!i.get(e.id)?.attachments.some((j)=>j.id===m.id))URL.revokeObjectURL(m.url)}catch(P){if(l&&U!==null&&a.current.revision===U&&i.get(e.id)?.attachments.length===0&&i.get(e.id)?.mentions.length===0)a.current={text:l.text,revision:U+1},D(a.current),_(l.mentions),i.set(e.id,l),E(e.id,()=>l.attachments);throw P}finally{tt(!1),u.current?.focus()}},[T,e.id,g,d,b,it]),Et=()=>{T.cancel(e.id).catch(k)},St=S((r)=>{let p=r.code==="max_total_size"?Object.assign(Error(s("composer.imageTooLargeTitle")),{description:s("composer.imageTooLargeDescription",{mb:oe})}):Object.assign(Error(s("composer.unsupportedAttachmentTitle")),{description:s("composer.unsupportedAttachmentDescription")});k(p)},[k,s]),Nt=q(()=>({session:e,ready:f,inputReady:M,sending:C,textareaRef:u,draft:ot,interruptRef:rt,observeReceipts:nt,addMention:V,setAdding:Mt,handsFree:d===void 0||b!==void 0}),[e,f,M,C,ot,nt,V,d,b]),ht=F.writeTextAttachment;return c(en,{value:Nt,children:c("div",{"data-chat-drop-zone":!0,className:"mx-auto w-full max-w-3xl px-6 pb-5",children:v("div",{className:"relative",children:[O&&c("div",{"data-chat-input-header":!0,className:"bg-sidebar dark:bg-foreground/3 relative top-1 z-0 mx-[13px] -mb-[18px] flex min-w-0 items-center gap-2 overflow-hidden rounded-t-2xl px-1.5 pt-1.5 pb-[27px]",children:O}),v(or,{attachmentPolicy:vt,value:A,revision:a.current.revision,onValueChange:z,onSubmittedClear:()=>{a.current={text:"",revision:a.current.revision+1},D(a.current)},attachments:w,onAttachmentsChange:(r)=>E(e.id,()=>r),children:[c(Ro,{handleRef:u,commands:e.commands,searchFiles:Rt,onMention:V,onSearchError:k,forcedOpen:Y,onForcedOpenChange:et,emptyLabel:s("composer.noCommands"),fileStatusLabels:{loading:s("composer.searchingFiles"),empty:s("composer.noMatchingFiles")}}),v(jo,{globalDrop:!0,multiple:!0,accept:Bt.join(","),onError:St,onSubmit:st,onSubmitAsync:st,onSubmitError:k,canSubmit:()=>f&&!C&&!L&&!W?!0:"chat_not_ready",className:"relative z-10",children:[bt,v(Qo,{className:"px-3 pt-3 pb-0 empty:hidden",children:[L&&c("span",{role:"status",className:"text-muted-foreground text-xs",children:s("composer.addingFiles")}),c(ar,{mentions:g,onRemove:(r)=>_((p)=>p.filter((h)=>h!==r))}),c(Mo,{children:(r)=>xe(r)?c(Fo,{data:r,sessionId:e.id}):c(No,{data:r,t:s})})]}),v(Ko,{className:"mb-0 min-h-16 px-3 pt-4 pb-2",onKeyDownCapture:(r)=>{if(!R.text||u.current?.isComposing()||r.nativeEvent.isComposing||r.nativeEvent.keyCode===229||r.shiftKey||r.ctrlKey||r.altKey||r.metaKey||r.target!==u.current?.getTextarea())return;if(r.key==="Tab")r.preventDefault(),r.stopPropagation(),z(R.text)},children:[c(Yt,{className:"min-h-10 bg-transparent text-sm font-normal",ref:u,rows:2,bashMode:!1,disabled:!M,onPasteCapture:ht?(r)=>ft(r,e.id,s("composer.pastedTextFilename"),ht):void 0,placeholder:R.text||(at?s("composer.steerPlaceholder"):s("composer.placeholder")),"aria-label":s("composer.placeholder")}),R.error&&c("span",{className:"text-muted-foreground text-xs",role:"status",title:R.error,children:s("composer.predictionUnavailable")})]}),c(Xo,{className:"chat-composer-toolbar @container/input-footer mt-0 mb-2 w-full min-w-0 p-0",children:v("div",{className:"grid w-full min-w-0 grid-cols-[auto_minmax(0,1fr)] items-center gap-x-[5px] px-2",children:[v("div",{className:"flex min-w-0 items-center gap-[5px]",children:[c(Lt,{className:"text-foreground",disabled:!M}),c(Wo,{textareaRef:u,menuOpen:Y,onOpenChange:et,disabled:!f||e.commands.length===0}),c(mt,{sessionId:e.id,options:e.configOptions,disabled:!f})]}),v(Yo,{className:"w-full min-w-0 items-center justify-end gap-1",children:[c(dt,{session:e}),G??c(gt,{...I,sessionId:e.id,options:e.configOptions,disabled:!f}),Pt,c(Vo,{active:at,sending:C||Q||L,ready:f&&!W,hasMentions:g.length>0,onStop:Et})]})]})})]})]})]})})})}
|
|
2
|
-
export{lt};
|
package/dist/chunk-aprxk7c2.js
DELETED
package/dist/chunk-b4dsjhkq.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{v}from"./chunk-ryz4c13z.js";import{W}from"./chunk-w8qmh6he.js";import{isPlanItems as n,isPlanMarkdown as r}from"@nyssance/codex-acp-v2/client";import{jsx as e}from"react/jsx-runtime";function So({plan:t}){if(r(t))return e("div",{className:"codex-reasoning-details",children:e(v,{text:t.content,streaming:!1})});if(!n(t))return null;return e(W,{entries:t.entries})}
|
|
2
|
-
export{So};
|