openpond 0.0.62 → 0.0.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{app-layer-MSLVVYLM.js → app-layer-TUAFALOE.js} +2 -2
- package/dist/chunks/{app-server-runtime-BRG7A5VD.js → app-server-runtime-O26LVUYH.js} +6 -6
- package/dist/chunks/{apps-6PAXKTB5.js → apps-KSZRA7Y2.js} +2 -2
- package/dist/chunks/{chunk-MBF44RYK.js → chunk-66KQLYSH.js} +1 -1
- package/dist/chunks/{chunk-KMBJLBQH.js → chunk-6FKBOGA4.js} +1 -1
- package/dist/chunks/{chunk-FYB6ELFM.js → chunk-7IFPXSSJ.js} +1 -1
- package/dist/chunks/{chunk-6JT34APP.js → chunk-7UVEB2AZ.js} +2 -2
- package/dist/chunks/{chunk-BFAL2CV3.js → chunk-IXA5PMXC.js} +1 -1
- package/dist/chunks/{chunk-IY2AW5F3.js → chunk-JTFDOA2P.js} +29 -13
- package/dist/chunks/{chunk-T4FMK5GN.js → chunk-KGU437HZ.js} +1 -1
- package/dist/chunks/{chunk-64LYEFLR.js → chunk-LEL5AQJU.js} +1 -1
- package/dist/chunks/{chunk-4NHAH3MT.js → chunk-V2CTXKS2.js} +70 -47
- package/dist/chunks/{chunk-GMX47RLP.js → chunk-YDH34BGG.js} +32 -32
- package/dist/chunks/{cli-L25X2EZL.js → cli-LPFU4ULD.js} +5 -5
- package/dist/chunks/{core-commands-STKFZZVR.js → core-commands-OEOBYFIW.js} +3 -3
- package/dist/chunks/{desktop-test-ACKJN4UV.js → desktop-test-BRLZF3O7.js} +2 -2
- package/dist/chunks/{extension-MVWXKSAD.js → extension-5BUCIDKG.js} +1 -1
- package/dist/chunks/{help-4MQ4EOIS.js → help-MT6VPW4X.js} +1 -1
- package/dist/chunks/{opchat-DUIZT4G6.js → opchat-O4DVKNFW.js} +2 -2
- package/dist/chunks/{organizations-ATM4CZII.js → organizations-ACNOJ57Q.js} +4 -4
- package/dist/chunks/{profile-5H3GF252.js → profile-7LLWXAJE.js} +2 -2
- package/dist/chunks/{project-agent-RSKSO5GT.js → project-agent-RVYQYTU2.js} +2 -2
- package/dist/chunks/{sandbox-command-MTYSZR6P.js → sandbox-command-QST23BX5.js} +2 -2
- package/dist/chunks/{sandbox-template-RZ5AJ4KB.js → sandbox-template-N7UG3P6V.js} +3 -3
- package/dist/chunks/{src-PW337SIJ.js → src-CPM5Q7T5.js} +3 -3
- package/dist/chunks/{src-WKH7EP7W.js → src-M37V6NVU.js} +7 -7
- package/dist/chunks/{teams-bot-FF3LDAYL.js → teams-bot-ITTI47XS.js} +2 -2
- package/dist/chunks/{workspaces-QKADU2A6.js → workspaces-CYBR37US.js} +2 -2
- package/dist/cli.js +13 -13
- package/dist/web/assets/{AppDialog-1RkKL2v6.js → AppDialog-wIb8mGQ0.js} +1 -1
- package/dist/web/assets/{AppsView-B6hDEt-h.js → AppsView-D097dPIV.js} +1 -1
- package/dist/web/assets/{BrowserSidebar-CkAMOgiq.js → BrowserSidebar-DrD-o_yB.js} +1 -1
- package/dist/web/assets/{CommandMenu-9oAkS4X3.js → CommandMenu-L5LelA2h.js} +1 -1
- package/dist/web/assets/{CommunityView-Dyuq5N28.js → CommunityView-DUJ8NryS.js} +1 -1
- package/dist/web/assets/{ComposerCreateImproveStrip-D91cw5AT.js → ComposerCreateImproveStrip-BP-7DmQG.js} +1 -1
- package/dist/web/assets/{GetStartedView-BZpcZgjB.js → GetStartedView-B7gB6Hii.js} +1 -1
- package/dist/web/assets/{LabModelVersionDetailPage-C0jNkciw.js → LabModelVersionDetailPage-CNDz2a6I.js} +1 -1
- package/dist/web/assets/{LabSkillSidebar-JGCPqTB1.js → LabSkillSidebar-BImOQcjk.js} +1 -1
- package/dist/web/assets/{LabsRoute-Dpv5Haqy.js → LabsRoute-BauSK1is.js} +3 -3
- package/dist/web/assets/{MainChatThread-B4_iIn3g.js → MainChatThread-BZvAqQO6.js} +2 -2
- package/dist/web/assets/MainPane-CuhwxMxg.js +6 -0
- package/dist/web/assets/{MarkdownText-DgS9KdyT.js → MarkdownText-gwAue4u5.js} +1 -1
- package/dist/web/assets/{Messages-DjMa9H1T.js → Messages-DijmQL-z.js} +1 -1
- package/dist/web/assets/{NativeSkillSidebar-Q3fwLOiO.js → NativeSkillSidebar-aCkrdGa0.js} +1 -1
- package/dist/web/assets/{NewProjectDialog-CUb0umRT.js → NewProjectDialog-D98WIQzr.js} +1 -1
- package/dist/web/assets/{OutputsPage-DD_1STRQ.js → OutputsPage-BA0c6cfy.js} +1 -1
- package/dist/web/assets/{RightChatPanelStack-2dFyjK7Z.js → RightChatPanelStack-DKDEmrEH.js} +1 -1
- package/dist/web/assets/{ScheduledWorkPage-DPjweWpP.js → ScheduledWorkPage-DeHi99mv.js} +1 -1
- package/dist/web/assets/{SettingsView-DJGgGPL0.js → SettingsView--fL3Ecuy.js} +3 -3
- package/dist/web/assets/TeamChatView-D2mCoLZ3.js +3 -0
- package/dist/web/assets/{TerminalOverlay-CpjrArXn.js → TerminalOverlay-BHMsVp4L.js} +1 -1
- package/dist/web/assets/{TrainingCreationPanel-Tbj3qk8-.js → TrainingCreationPanel-CPnMWgkt.js} +1 -1
- package/dist/web/assets/{TrainingDraftPanel-BhggD-hn.js → TrainingDraftPanel-0scEtzSW.js} +1 -1
- package/dist/web/assets/{UsageSettingsSection-CXM6LKim.js → UsageSettingsSection-COoCLLg6.js} +1 -1
- package/dist/web/assets/{WorkspaceDiffPanel-CoMkI8dY.js → WorkspaceDiffPanel-BFTwZ_dB.js} +3 -3
- package/dist/web/assets/{WorkspaceEnvironmentMenu-CZyjk82C.js → WorkspaceEnvironmentMenu-DFlkdd9T.js} +1 -1
- package/dist/web/assets/{WorkspaceGitDialogs-DTj3DOsf.js → WorkspaceGitDialogs-Dt3LO27Z.js} +1 -1
- package/dist/web/assets/{WorkspaceMonacoEditor-DaNMLEnU.js → WorkspaceMonacoEditor-3g05teoR.js} +3 -3
- package/dist/web/assets/{arrow-up-right-wvL_rSwe.js → arrow-up-right-DYGSWA2J.js} +1 -1
- package/dist/web/assets/{chevron-up-BbyiUcq_.js → chevron-up-4qfvI9iW.js} +1 -1
- package/dist/web/assets/{cloud-upload-Bgv1fA6E.js → cloud-upload-COReKxOy.js} +1 -1
- package/dist/web/assets/{cssMode-BG9jdNNX.js → cssMode-BbH67BYF.js} +1 -1
- package/dist/web/assets/{folder-open-CRAYp6pW.js → folder-open-9OjGqNgP.js} +1 -1
- package/dist/web/assets/{folder-plus-BgsuJVU0.js → folder-plus-DF5E6zr3.js} +1 -1
- package/dist/web/assets/{git-branch-CicxCU5U.js → git-branch-eCwyZXMl.js} +1 -1
- package/dist/web/assets/{git-commit-horizontal-BRkwl6bp.js → git-commit-horizontal-cPm51DqY.js} +1 -1
- package/dist/web/assets/{htmlMode-B69EEM3s.js → htmlMode-DD6Oge4x.js} +1 -1
- package/dist/web/assets/{index-Dcpm2LlR.js → index-BO2W2U23.js} +46 -46
- package/dist/web/assets/index-BRLugX1S.js +1 -0
- package/dist/web/assets/{index-Bt9mPk1q.css → index-Y7IoiSlQ.css} +1 -1
- package/dist/web/assets/{info-BxhCcEsF.js → info-p1mFpqBI.js} +1 -1
- package/dist/web/assets/{jsonMode-D0tzZkp2.js → jsonMode-C2Xd56A_.js} +1 -1
- package/dist/web/assets/{lspLanguageFeatures-DFpYfxMH.js → lspLanguageFeatures-BjYEk4gJ.js} +1 -1
- package/dist/web/assets/{monaco.contribution-K53jgqut.js → monaco.contribution-Bo-5m7yy.js} +2 -2
- package/dist/web/assets/{monaco.contribution-lS_l56Q7.js → monaco.contribution-C7WMqwmc.js} +2 -2
- package/dist/web/assets/{monaco.contribution-BzGRrg8l.js → monaco.contribution-DzWlEgU1.js} +2 -2
- package/dist/web/assets/{monaco.contribution-BFP-1c-A.js → monaco.contribution-quEPEMQZ.js} +2 -2
- package/dist/web/assets/{play-B8en8HVG.js → play-Ctx-iMqd.js} +1 -1
- package/dist/web/assets/{python-DPtRb2z3.js → python-Cm64qCpk.js} +1 -1
- package/dist/web/assets/{refresh-cw-CRZeaNu7.js → refresh-cw-Bn28jIl0.js} +1 -1
- package/dist/web/assets/{save-oO8erge1.js → save-BM5IQX65.js} +1 -1
- package/dist/web/assets/{square-CSULphDY.js → square-DAGpFfSr.js} +1 -1
- package/dist/web/assets/{toggleHighContrast-CmDdOtfT.js → toggleHighContrast-DLW8Fnck.js} +1 -1
- package/dist/web/assets/{tsMode-B0TCT940.js → tsMode-BleUN_8S.js} +1 -1
- package/dist/web/assets/{upload-dz-oCLFE.js → upload-vaAKFfxi.js} +1 -1
- package/dist/web/assets/{useLocalAgentSchedules-DPga1Kwi.js → useLocalAgentSchedules-Ccenbqf6.js} +1 -1
- package/dist/web/assets/{wifi-off-BZpON33U.js → wifi-off-DJA9KReb.js} +1 -1
- package/dist/web/assets/{workers-DXVEq1Aw.js → workers-CFG-afha.js} +1 -1
- package/dist/web/assets/{yaml-B8TBCEpi.js → yaml-Cs8iZKVC.js} +1 -1
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/dist/web/assets/MainPane-o4HIxmNz.js +0 -6
- package/dist/web/assets/TeamChatView-CZmbzRk7.js +0 -3
- package/dist/web/assets/index-BGdmnwp7.js +0 -1
|
@@ -399,7 +399,7 @@ var CLI_COMMAND_REGISTRY = [
|
|
|
399
399
|
name: "help",
|
|
400
400
|
usage: "openpond help",
|
|
401
401
|
optionSchema: {},
|
|
402
|
-
handler: async () => (await import("./help-
|
|
402
|
+
handler: async () => (await import("./help-MT6VPW4X.js")).printHelp()
|
|
403
403
|
},
|
|
404
404
|
{
|
|
405
405
|
name: "version",
|
|
@@ -411,19 +411,19 @@ var CLI_COMMAND_REGISTRY = [
|
|
|
411
411
|
name: "check-update",
|
|
412
412
|
usage: "openpond check-update",
|
|
413
413
|
optionSchema: {},
|
|
414
|
-
handler: async () => (await import("./core-commands-
|
|
414
|
+
handler: async () => (await import("./core-commands-OEOBYFIW.js")).runCheckUpdate()
|
|
415
415
|
},
|
|
416
416
|
{
|
|
417
417
|
name: "login",
|
|
418
418
|
usage: "openpond login [--base-url <url>]",
|
|
419
419
|
optionSchema: CLI_GLOBAL_OPTION_SCHEMA,
|
|
420
|
-
handler: async ({ options }) => (await import("./core-commands-
|
|
420
|
+
handler: async ({ options }) => (await import("./core-commands-OEOBYFIW.js")).runLogin(options)
|
|
421
421
|
},
|
|
422
422
|
{
|
|
423
423
|
name: "init",
|
|
424
424
|
usage: "openpond init [--path <dir>]",
|
|
425
425
|
optionSchema: { path: "string" },
|
|
426
|
-
handler: async ({ options }) => (await import("./profile-
|
|
426
|
+
handler: async ({ options }) => (await import("./profile-7LLWXAJE.js")).runOpenPondInitCommand(options)
|
|
427
427
|
},
|
|
428
428
|
{
|
|
429
429
|
name: "profile",
|
|
@@ -451,13 +451,13 @@ var CLI_COMMAND_REGISTRY = [
|
|
|
451
451
|
publishHostedSource: "boolean",
|
|
452
452
|
teamId: "string"
|
|
453
453
|
},
|
|
454
|
-
handler: async ({ options, rest }) => (await import("./profile-
|
|
454
|
+
handler: async ({ options, rest }) => (await import("./profile-7LLWXAJE.js")).runOpenPondProfileCommand(options, rest)
|
|
455
455
|
},
|
|
456
456
|
{
|
|
457
457
|
name: "agents",
|
|
458
458
|
usage: "openpond agents [--json]",
|
|
459
459
|
optionSchema: { json: "boolean" },
|
|
460
|
-
handler: async ({ options, rest }) => (await import("./profile-
|
|
460
|
+
handler: async ({ options, rest }) => (await import("./profile-7LLWXAJE.js")).runOpenPondAgentsCommand(options, rest)
|
|
461
461
|
},
|
|
462
462
|
{
|
|
463
463
|
name: "actions",
|
|
@@ -490,25 +490,25 @@ var CLI_COMMAND_REGISTRY = [
|
|
|
490
490
|
"openpond extension remove <owner/repo> [--json]"
|
|
491
491
|
],
|
|
492
492
|
optionSchema: { all: "boolean", json: "boolean", ref: "string" },
|
|
493
|
-
handler: async ({ options, rest }) => (await import("./extension-
|
|
493
|
+
handler: async ({ options, rest }) => (await import("./extension-5BUCIDKG.js")).runOpenPondExtensionCommand(options, rest)
|
|
494
494
|
},
|
|
495
495
|
{
|
|
496
496
|
name: "profiles",
|
|
497
497
|
usage: "openpond profiles [args]",
|
|
498
498
|
optionSchema: { json: "boolean" },
|
|
499
|
-
handler: async ({ options, rest }) => (await import("./core-commands-
|
|
499
|
+
handler: async ({ options, rest }) => (await import("./core-commands-OEOBYFIW.js")).runProfiles(options, rest)
|
|
500
500
|
},
|
|
501
501
|
{
|
|
502
502
|
name: "account",
|
|
503
503
|
usage: "openpond account",
|
|
504
504
|
optionSchema: { json: "boolean" },
|
|
505
|
-
handler: async () => (await import("./core-commands-
|
|
505
|
+
handler: async () => (await import("./core-commands-OEOBYFIW.js")).runAccount()
|
|
506
506
|
},
|
|
507
507
|
{
|
|
508
508
|
name: "health",
|
|
509
509
|
usage: "openpond health",
|
|
510
510
|
optionSchema: { json: "boolean" },
|
|
511
|
-
handler: async ({ options }) => (await import("./core-commands-
|
|
511
|
+
handler: async ({ options }) => (await import("./core-commands-OEOBYFIW.js")).runHealth(options)
|
|
512
512
|
},
|
|
513
513
|
{
|
|
514
514
|
name: "app-server",
|
|
@@ -516,7 +516,7 @@ var CLI_COMMAND_REGISTRY = [
|
|
|
516
516
|
optionSchema: {
|
|
517
517
|
storeDir: "string"
|
|
518
518
|
},
|
|
519
|
-
handler: async ({ options, rest }) => (await import("./app-layer-
|
|
519
|
+
handler: async ({ options, rest }) => (await import("./app-layer-TUAFALOE.js")).runOpenPondServerCommand("app-server", options, rest)
|
|
520
520
|
},
|
|
521
521
|
{
|
|
522
522
|
name: "serve",
|
|
@@ -527,7 +527,7 @@ var CLI_COMMAND_REGISTRY = [
|
|
|
527
527
|
listen: "string",
|
|
528
528
|
port: "integer"
|
|
529
529
|
},
|
|
530
|
-
handler: async ({ options, rest }) => (await import("./app-layer-
|
|
530
|
+
handler: async ({ options, rest }) => (await import("./app-layer-TUAFALOE.js")).runOpenPondServerCommand("serve", options, rest)
|
|
531
531
|
},
|
|
532
532
|
{
|
|
533
533
|
name: "ui",
|
|
@@ -540,7 +540,7 @@ var CLI_COMMAND_REGISTRY = [
|
|
|
540
540
|
port: "integer",
|
|
541
541
|
webRoot: "string"
|
|
542
542
|
},
|
|
543
|
-
handler: async ({ options, rest }) => (await import("./app-layer-
|
|
543
|
+
handler: async ({ options, rest }) => (await import("./app-layer-TUAFALOE.js")).runOpenPondServerCommand("web", options, rest)
|
|
544
544
|
},
|
|
545
545
|
{
|
|
546
546
|
name: "tui",
|
|
@@ -554,13 +554,13 @@ var CLI_COMMAND_REGISTRY = [
|
|
|
554
554
|
provider: "string",
|
|
555
555
|
server: "string"
|
|
556
556
|
},
|
|
557
|
-
handler: async ({ options, rest }) => (await import("./app-layer-
|
|
557
|
+
handler: async ({ options, rest }) => (await import("./app-layer-TUAFALOE.js")).runOpenPondTerminalCommand(options, rest)
|
|
558
558
|
},
|
|
559
559
|
{
|
|
560
560
|
name: "chat",
|
|
561
561
|
usage: "openpond chat (--message-file <path>|--message <text>|--stdin) --non-interactive [--provider <id>] [--model <id>] [--agent <id>] [--project <id>] [--resume <session-id>] [--yes] [--approval-policy <policy>] [--json] [--timeout-sec <n>] [--max-output-bytes <n>] [--sandbox <mode>]",
|
|
562
562
|
optionSchema: CHAT_OPTION_SCHEMA,
|
|
563
|
-
handler: async ({ options, rest }) => (await import("./app-layer-
|
|
563
|
+
handler: async ({ options, rest }) => (await import("./app-layer-TUAFALOE.js")).runOpenPondTerminalCommand(options, rest)
|
|
564
564
|
},
|
|
565
565
|
{
|
|
566
566
|
name: "tool",
|
|
@@ -596,7 +596,7 @@ var CLI_COMMAND_REGISTRY = [
|
|
|
596
596
|
name: "sandbox-template",
|
|
597
597
|
usage: "openpond sandbox-template <command> [args]",
|
|
598
598
|
optionSchema: SANDBOX_TEMPLATE_OPTION_SCHEMA,
|
|
599
|
-
handler: async ({ options, rest }) => (await import("./sandbox-template-
|
|
599
|
+
handler: async ({ options, rest }) => (await import("./sandbox-template-N7UG3P6V.js")).runSandboxTemplateCommand(options, rest)
|
|
600
600
|
},
|
|
601
601
|
{
|
|
602
602
|
name: "repo",
|
|
@@ -641,13 +641,13 @@ var CLI_COMMAND_REGISTRY = [
|
|
|
641
641
|
toolset: "string",
|
|
642
642
|
url: "string"
|
|
643
643
|
},
|
|
644
|
-
handler: async ({ options, rest }) => (await import("./organizations-
|
|
644
|
+
handler: async ({ options, rest }) => (await import("./organizations-ACNOJ57Q.js")).runOrganizationsCommand(options, rest)
|
|
645
645
|
},
|
|
646
646
|
{
|
|
647
647
|
name: "project",
|
|
648
648
|
usage: "openpond project <list|create|upsert|get|update|sync|source-upload|archive> [args]",
|
|
649
649
|
optionSchema: PROJECT_OPTION_SCHEMA,
|
|
650
|
-
handler: async ({ options, rest }) => (await import("./project-agent-
|
|
650
|
+
handler: async ({ options, rest }) => (await import("./project-agent-RVYQYTU2.js")).runProjectCommand(options, rest)
|
|
651
651
|
},
|
|
652
652
|
{
|
|
653
653
|
name: "agent",
|
|
@@ -659,7 +659,7 @@ var CLI_COMMAND_REGISTRY = [
|
|
|
659
659
|
"openpond agent source publish <agentId> --team-id <id> [--expected-manifest-hash <hash>]"
|
|
660
660
|
],
|
|
661
661
|
optionSchema: AGENT_OPTION_SCHEMA,
|
|
662
|
-
handler: async ({ options, rest }) => (await import("./project-agent-
|
|
662
|
+
handler: async ({ options, rest }) => (await import("./project-agent-RVYQYTU2.js")).runAgentCommand(options, rest)
|
|
663
663
|
},
|
|
664
664
|
{
|
|
665
665
|
name: "desktop-test",
|
|
@@ -680,13 +680,13 @@ var CLI_COMMAND_REGISTRY = [
|
|
|
680
680
|
token: "string",
|
|
681
681
|
tokenFile: "string"
|
|
682
682
|
},
|
|
683
|
-
handler: async ({ options, rest }) => (await import("./desktop-test-
|
|
683
|
+
handler: async ({ options, rest }) => (await import("./desktop-test-BRLZF3O7.js")).runDesktopTestCommand(options, rest)
|
|
684
684
|
},
|
|
685
685
|
{
|
|
686
686
|
name: "sandbox",
|
|
687
687
|
usage: "openpond sandbox <command> [args]",
|
|
688
688
|
optionSchema: SANDBOX_OPTION_SCHEMA,
|
|
689
|
-
handler: async ({ options, rest }) => (await import("./sandbox-command-
|
|
689
|
+
handler: async ({ options, rest }) => (await import("./sandbox-command-QST23BX5.js")).runSandboxCommand(options, rest)
|
|
690
690
|
},
|
|
691
691
|
{
|
|
692
692
|
name: "training",
|
|
@@ -734,7 +734,7 @@ var CLI_COMMAND_REGISTRY = [
|
|
|
734
734
|
skipTool: "boolean",
|
|
735
735
|
stream: "boolean"
|
|
736
736
|
},
|
|
737
|
-
handler: async ({ options, rest }) => (await import("./opchat-
|
|
737
|
+
handler: async ({ options, rest }) => (await import("./opchat-O4DVKNFW.js")).runOpChatCommand(options, rest)
|
|
738
738
|
},
|
|
739
739
|
{
|
|
740
740
|
name: "teams-bot",
|
|
@@ -743,7 +743,7 @@ var CLI_COMMAND_REGISTRY = [
|
|
|
743
743
|
json: "boolean",
|
|
744
744
|
teamId: "string"
|
|
745
745
|
},
|
|
746
|
-
handler: async ({ options, rest }) => (await import("./teams-bot-
|
|
746
|
+
handler: async ({ options, rest }) => (await import("./teams-bot-ITTI47XS.js")).runTeamsBotCommand(options, rest)
|
|
747
747
|
},
|
|
748
748
|
{
|
|
749
749
|
name: "apps",
|
|
@@ -764,7 +764,7 @@ var CLI_COMMAND_REGISTRY = [
|
|
|
764
764
|
name: "opentool",
|
|
765
765
|
usage: "openpond opentool <init|validate|build> [args]",
|
|
766
766
|
optionSchema: {},
|
|
767
|
-
handler: async ({ rest }) => (await import("./core-commands-
|
|
767
|
+
handler: async ({ rest }) => (await import("./core-commands-OEOBYFIW.js")).runOpentool(rest)
|
|
768
768
|
}
|
|
769
769
|
];
|
|
770
770
|
var CLI_COMMAND_BY_NAME = /* @__PURE__ */ new Map();
|
|
@@ -836,11 +836,11 @@ function profileSdkAliasDefinitions() {
|
|
|
836
836
|
name,
|
|
837
837
|
usage: `openpond ${name} [args]`,
|
|
838
838
|
optionSchema: PROFILE_SDK_OPTION_SCHEMA,
|
|
839
|
-
handler: async ({ options, rest }) => (await import("./profile-
|
|
839
|
+
handler: async ({ options, rest }) => (await import("./profile-7LLWXAJE.js")).runOpenPondProfileSdkAlias(name, options, rest)
|
|
840
840
|
}));
|
|
841
841
|
}
|
|
842
842
|
async function runToolCommand({ options, rest }) {
|
|
843
|
-
const { runToolList, runToolRun } = await import("./core-commands-
|
|
843
|
+
const { runToolList, runToolRun } = await import("./core-commands-OEOBYFIW.js");
|
|
844
844
|
const subcommand = rest[0];
|
|
845
845
|
if (subcommand === "list") {
|
|
846
846
|
const target = rest[1];
|
|
@@ -864,8 +864,8 @@ async function runToolCommand({ options, rest }) {
|
|
|
864
864
|
throw new Error("usage: tool <list|run> <handle>/<repo> [args]");
|
|
865
865
|
}
|
|
866
866
|
async function runBacktestCommand({ options, rest }) {
|
|
867
|
-
const { runBacktestRun } = await import("./core-commands-
|
|
868
|
-
const { runBacktestEvents, runBacktestGet } = await import("./apps-
|
|
867
|
+
const { runBacktestRun } = await import("./core-commands-OEOBYFIW.js");
|
|
868
|
+
const { runBacktestEvents, runBacktestGet } = await import("./apps-KSZRA7Y2.js");
|
|
869
869
|
const subcommand = rest[0] || "run";
|
|
870
870
|
if (subcommand === "run") {
|
|
871
871
|
const target = rest[1];
|
|
@@ -899,7 +899,7 @@ async function runBacktestCommand({ options, rest }) {
|
|
|
899
899
|
throw new Error("usage: backtest <run|events|get> <handle>/<repo> [args]");
|
|
900
900
|
}
|
|
901
901
|
async function runDeployCommand({ options, rest }) {
|
|
902
|
-
const { runDeployWatch } = await import("./core-commands-
|
|
902
|
+
const { runDeployWatch } = await import("./core-commands-OEOBYFIW.js");
|
|
903
903
|
const subcommand = rest[0] || "watch";
|
|
904
904
|
if (subcommand !== "watch") {
|
|
905
905
|
throw new Error(
|
|
@@ -915,7 +915,7 @@ async function runDeployCommand({ options, rest }) {
|
|
|
915
915
|
await runDeployWatch(options, target);
|
|
916
916
|
}
|
|
917
917
|
async function runTemplateCommand({ options, rest }) {
|
|
918
|
-
const { runTemplateBranches, runTemplateStatus, runTemplateUpdate } = await import("./core-commands-
|
|
918
|
+
const { runTemplateBranches, runTemplateStatus, runTemplateUpdate } = await import("./core-commands-OEOBYFIW.js");
|
|
919
919
|
const subcommand = rest[0] || "status";
|
|
920
920
|
const target = rest[1];
|
|
921
921
|
if (!target) {
|
|
@@ -940,7 +940,7 @@ async function runTemplateCommand({ options, rest }) {
|
|
|
940
940
|
);
|
|
941
941
|
}
|
|
942
942
|
async function runRepoCommand({ options, rest }) {
|
|
943
|
-
const { runRepoCreate, runRepoPush } = await import("./core-commands-
|
|
943
|
+
const { runRepoCreate, runRepoPush } = await import("./core-commands-OEOBYFIW.js");
|
|
944
944
|
const subcommand = rest[0] || "create";
|
|
945
945
|
if (subcommand === "create") {
|
|
946
946
|
await runRepoCreate(options, rest.slice(1));
|
|
@@ -967,7 +967,7 @@ async function runAppsCommand({ options, rest }) {
|
|
|
967
967
|
runAppsSummary,
|
|
968
968
|
runAppsTools,
|
|
969
969
|
runAppsToolsExecute
|
|
970
|
-
} = await import("./apps-
|
|
970
|
+
} = await import("./apps-KSZRA7Y2.js");
|
|
971
971
|
const subcommand = rest[0];
|
|
972
972
|
if (subcommand === "list") {
|
|
973
973
|
await runAppsList(options);
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
resolveWebLaunchMessages,
|
|
4
4
|
runOpenPondAppServerCli,
|
|
5
5
|
runOpenPondServerCli
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7UVEB2AZ.js";
|
|
7
7
|
import "./chunk-OYWTQABY.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-7IFPXSSJ.js";
|
|
9
|
+
import "./chunk-IXA5PMXC.js";
|
|
10
|
+
import "./chunk-KGU437HZ.js";
|
|
11
|
+
import "./chunk-JTFDOA2P.js";
|
|
12
12
|
import "./chunk-WYDVQOBL.js";
|
|
13
13
|
import "./chunk-JGOP4GCK.js";
|
|
14
14
|
import "./chunk-UACZUFIA.js";
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
runTemplateUpdate,
|
|
17
17
|
runToolList,
|
|
18
18
|
runToolRun
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6FKBOGA4.js";
|
|
20
20
|
import "./chunk-J2REM7LE.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-LEL5AQJU.js";
|
|
22
22
|
import "./chunk-SMNFI2FU.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-YDH34BGG.js";
|
|
24
24
|
import "./chunk-K4JEWEJQ.js";
|
|
25
25
|
import "./chunk-JGOP4GCK.js";
|
|
26
26
|
import "./chunk-DBHSOTYZ.js";
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
} from "./chunk-J2REM7LE.js";
|
|
5
5
|
import {
|
|
6
6
|
CliUsageError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LEL5AQJU.js";
|
|
8
8
|
import "./chunk-SMNFI2FU.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-YDH34BGG.js";
|
|
10
10
|
import "./chunk-K4JEWEJQ.js";
|
|
11
11
|
import "./chunk-JGOP4GCK.js";
|
|
12
12
|
import "./chunk-DBHSOTYZ.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
SandboxTemplateValidationDiagnosticSchema,
|
|
11
11
|
ToolDeclarationSchema,
|
|
12
12
|
validateConnectedAppToolCallRequest
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JTFDOA2P.js";
|
|
14
14
|
import "./chunk-3KLQ52B2.js";
|
|
15
15
|
import "./chunk-W5GKHH77.js";
|
|
16
16
|
import {
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
ensureApiKey
|
|
12
12
|
} from "./chunk-J2REM7LE.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-LEL5AQJU.js";
|
|
14
14
|
import {
|
|
15
15
|
resolveApiBaseUrlOption,
|
|
16
16
|
resolveBaseUrl,
|
|
17
17
|
resolveChatApiBaseUrlOption
|
|
18
18
|
} from "./chunk-SMNFI2FU.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-YDH34BGG.js";
|
|
20
20
|
import "./chunk-K4JEWEJQ.js";
|
|
21
21
|
import "./chunk-JGOP4GCK.js";
|
|
22
22
|
import {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
-
import "./chunk-
|
|
3
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-KGU437HZ.js";
|
|
3
|
+
import "./chunk-JTFDOA2P.js";
|
|
4
4
|
import "./chunk-WYDVQOBL.js";
|
|
5
5
|
import {
|
|
6
6
|
resolveSandboxClient
|
|
7
7
|
} from "./chunk-J2REM7LE.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-LEL5AQJU.js";
|
|
9
9
|
import "./chunk-SMNFI2FU.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-YDH34BGG.js";
|
|
11
11
|
import "./chunk-K4JEWEJQ.js";
|
|
12
12
|
import {
|
|
13
13
|
DEFAULT_OPENPOND_API_BASE_URL,
|
|
@@ -29,9 +29,9 @@ import "./chunk-WYDVQOBL.js";
|
|
|
29
29
|
import {
|
|
30
30
|
resolveSandboxClient
|
|
31
31
|
} from "./chunk-J2REM7LE.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-LEL5AQJU.js";
|
|
33
33
|
import "./chunk-SMNFI2FU.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-YDH34BGG.js";
|
|
35
35
|
import "./chunk-K4JEWEJQ.js";
|
|
36
36
|
import "./chunk-JGOP4GCK.js";
|
|
37
37
|
import "./chunk-DBHSOTYZ.js";
|
|
@@ -35,9 +35,9 @@ import {
|
|
|
35
35
|
resolveSandboxClient,
|
|
36
36
|
runCommand
|
|
37
37
|
} from "./chunk-J2REM7LE.js";
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-LEL5AQJU.js";
|
|
39
39
|
import "./chunk-SMNFI2FU.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-YDH34BGG.js";
|
|
41
41
|
import "./chunk-K4JEWEJQ.js";
|
|
42
42
|
import "./chunk-JGOP4GCK.js";
|
|
43
43
|
import "./chunk-DBHSOTYZ.js";
|
|
@@ -21,9 +21,9 @@ import {
|
|
|
21
21
|
resolveSandboxClient,
|
|
22
22
|
summarizeSandboxSecret
|
|
23
23
|
} from "./chunk-J2REM7LE.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-LEL5AQJU.js";
|
|
25
25
|
import "./chunk-SMNFI2FU.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-YDH34BGG.js";
|
|
27
27
|
import "./chunk-K4JEWEJQ.js";
|
|
28
28
|
import "./chunk-JGOP4GCK.js";
|
|
29
29
|
import "./chunk-DBHSOTYZ.js";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-T55IL3GI.js";
|
|
6
6
|
import {
|
|
7
7
|
resolveGitBranch
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6FKBOGA4.js";
|
|
9
9
|
import {
|
|
10
10
|
OPENPOND_MANIFEST_FILE_NAME,
|
|
11
11
|
SANDBOX_TEMPLATE_BUILD_PLAN_FILE_NAME,
|
|
@@ -34,12 +34,12 @@ import {
|
|
|
34
34
|
runShellCommand,
|
|
35
35
|
warnOnRepoHostMismatch
|
|
36
36
|
} from "./chunk-J2REM7LE.js";
|
|
37
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-LEL5AQJU.js";
|
|
38
38
|
import {
|
|
39
39
|
resolveBaseUrl,
|
|
40
40
|
resolvePublicApiBaseUrl
|
|
41
41
|
} from "./chunk-SMNFI2FU.js";
|
|
42
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-YDH34BGG.js";
|
|
43
43
|
import "./chunk-K4JEWEJQ.js";
|
|
44
44
|
import "./chunk-JGOP4GCK.js";
|
|
45
45
|
import {
|
|
@@ -3,7 +3,7 @@ import { createRequire as __openpondCreateRequire } from "node:module"; var requ
|
|
|
3
3
|
import {
|
|
4
4
|
createReadyLineParser,
|
|
5
5
|
openUrlWithSystemBrowser
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-IXA5PMXC.js";
|
|
7
7
|
import {
|
|
8
8
|
ApprovalSchema,
|
|
9
9
|
ContextUsageSnapshotSchema,
|
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
DEFAULT_OPENPOND_CHAT_MODEL,
|
|
13
13
|
DEFAULT_OPENPOND_COMMAND_ACCESS_MODE,
|
|
14
14
|
OpenPondCommandAccessModeSchema
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KGU437HZ.js";
|
|
16
16
|
import {
|
|
17
17
|
CONNECTED_APP_CATALOG,
|
|
18
18
|
buildConnectedAppInstallUrl,
|
|
19
19
|
connectedAppById
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-JTFDOA2P.js";
|
|
21
21
|
import "./chunk-WYDVQOBL.js";
|
|
22
22
|
import "./chunk-JGOP4GCK.js";
|
|
23
23
|
import "./chunk-UACZUFIA.js";
|
|
@@ -143,7 +143,7 @@ import {
|
|
|
143
143
|
workspaceHasHead,
|
|
144
144
|
workspaceToolExperienceBlocker,
|
|
145
145
|
writeWorkspaceFile
|
|
146
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-V2CTXKS2.js";
|
|
147
147
|
import {
|
|
148
148
|
appWorkspacePaths,
|
|
149
149
|
checkWorkspaceGitAvailability,
|
|
@@ -169,10 +169,10 @@ import {
|
|
|
169
169
|
runCommand,
|
|
170
170
|
startMacOSCommandLineToolsInstall,
|
|
171
171
|
workspaceImageContentType
|
|
172
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-66KQLYSH.js";
|
|
173
173
|
import {
|
|
174
174
|
runOpenPondServerCli
|
|
175
|
-
} from "./chunk-
|
|
175
|
+
} from "./chunk-7UVEB2AZ.js";
|
|
176
176
|
import {
|
|
177
177
|
createAppServer,
|
|
178
178
|
runAgentCompaction
|
|
@@ -188,7 +188,7 @@ import {
|
|
|
188
188
|
isCliEntrypoint,
|
|
189
189
|
now,
|
|
190
190
|
textFromUnknown
|
|
191
|
-
} from "./chunk-
|
|
191
|
+
} from "./chunk-7IFPXSSJ.js";
|
|
192
192
|
import {
|
|
193
193
|
createOpenPondRepoApp,
|
|
194
194
|
getBundledRuntimeVersion,
|
|
@@ -202,7 +202,7 @@ import {
|
|
|
202
202
|
streamOpenPondHostedChatTurn,
|
|
203
203
|
switchOpenPondAccount,
|
|
204
204
|
updateOpenPondAccountConfig
|
|
205
|
-
} from "./chunk-
|
|
205
|
+
} from "./chunk-IXA5PMXC.js";
|
|
206
206
|
import {
|
|
207
207
|
AccountStateSchema,
|
|
208
208
|
AdapterValidationReceiptSchema,
|
|
@@ -435,7 +435,7 @@ import {
|
|
|
435
435
|
workFormatCapabilityForContentType,
|
|
436
436
|
workspacePathFromLocalPathWorkspaceId,
|
|
437
437
|
writeSourceUploadCache
|
|
438
|
-
} from "./chunk-
|
|
438
|
+
} from "./chunk-KGU437HZ.js";
|
|
439
439
|
import "./chunk-QETF6ILG.js";
|
|
440
440
|
import {
|
|
441
441
|
ArtifactManifestSchema,
|
|
@@ -481,7 +481,7 @@ import {
|
|
|
481
481
|
workEvidenceReceiptRef,
|
|
482
482
|
workSourceOpaqueRef,
|
|
483
483
|
workWorkspaceOpaqueRef
|
|
484
|
-
} from "./chunk-
|
|
484
|
+
} from "./chunk-JTFDOA2P.js";
|
|
485
485
|
import {
|
|
486
486
|
external_exports,
|
|
487
487
|
yaml
|
|
@@ -2,9 +2,9 @@ import { createRequire as __openpondCreateRequire } from "node:module"; var requ
|
|
|
2
2
|
import {
|
|
3
3
|
resolveSandboxClient
|
|
4
4
|
} from "./chunk-J2REM7LE.js";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-LEL5AQJU.js";
|
|
6
6
|
import "./chunk-SMNFI2FU.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-YDH34BGG.js";
|
|
8
8
|
import "./chunk-K4JEWEJQ.js";
|
|
9
9
|
import "./chunk-JGOP4GCK.js";
|
|
10
10
|
import "./chunk-DBHSOTYZ.js";
|
|
@@ -45,8 +45,8 @@ import {
|
|
|
45
45
|
truncatePatch,
|
|
46
46
|
uniqueSortedPaths,
|
|
47
47
|
workspaceImageContentType
|
|
48
|
-
} from "./chunk-
|
|
49
|
-
import "./chunk-
|
|
48
|
+
} from "./chunk-66KQLYSH.js";
|
|
49
|
+
import "./chunk-7IFPXSSJ.js";
|
|
50
50
|
import "./chunk-UACZUFIA.js";
|
|
51
51
|
export {
|
|
52
52
|
MACOS_GIT_MISSING_DEVELOPER_TOOLS_ERROR,
|
package/dist/cli.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
parseArgs
|
|
5
|
-
} from "./chunks/chunk-
|
|
5
|
+
} from "./chunks/chunk-LEL5AQJU.js";
|
|
6
6
|
import {
|
|
7
7
|
resolveAccountOption,
|
|
8
8
|
resolveBaseUrlOption
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
getInstalledCliVersion,
|
|
12
12
|
runCliCommand
|
|
13
|
-
} from "./chunks/chunk-
|
|
13
|
+
} from "./chunks/chunk-YDH34BGG.js";
|
|
14
14
|
import "./chunks/chunk-KSRWKXRB.js";
|
|
15
15
|
import {
|
|
16
16
|
parseBooleanOption
|
|
@@ -37,11 +37,11 @@ async function runOpenPondCli(argv = process.argv.slice(2)) {
|
|
|
37
37
|
return;
|
|
38
38
|
}
|
|
39
39
|
if (action === "check-update") {
|
|
40
|
-
await (await import("./chunks/core-commands-
|
|
40
|
+
await (await import("./chunks/core-commands-OEOBYFIW.js")).runCheckUpdate();
|
|
41
41
|
return;
|
|
42
42
|
}
|
|
43
43
|
if (action === "help") {
|
|
44
|
-
(await import("./chunks/help-
|
|
44
|
+
(await import("./chunks/help-MT6VPW4X.js")).printHelp();
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
47
47
|
const selectedAccount = resolveAccountOption(options);
|
|
@@ -53,25 +53,25 @@ async function runOpenPondCli(argv = process.argv.slice(2)) {
|
|
|
53
53
|
process.env.OPENPOND_BASE_URL = selectedBaseUrl;
|
|
54
54
|
}
|
|
55
55
|
if (action === "tui") {
|
|
56
|
-
await (await import("./chunks/app-layer-
|
|
56
|
+
await (await import("./chunks/app-layer-TUAFALOE.js")).runOpenPondTerminalCommand(options, rest);
|
|
57
57
|
return;
|
|
58
58
|
}
|
|
59
59
|
if (action === "ui") {
|
|
60
|
-
await (await import("./chunks/app-layer-
|
|
60
|
+
await (await import("./chunks/app-layer-TUAFALOE.js")).runOpenPondServerCommand("web", options, rest);
|
|
61
61
|
return;
|
|
62
62
|
}
|
|
63
63
|
if (await runCliCommand({ command, options, rest })) {
|
|
64
64
|
return;
|
|
65
65
|
}
|
|
66
|
-
(await import("./chunks/help-
|
|
66
|
+
(await import("./chunks/help-MT6VPW4X.js")).printHelp();
|
|
67
67
|
process.exit(1);
|
|
68
68
|
}
|
|
69
69
|
async function runEmbeddedCompanion(argv) {
|
|
70
70
|
if (argv[0] === "__app-server") {
|
|
71
71
|
process.argv = [process.execPath, "openpond-app-server", ...argv.slice(1)];
|
|
72
72
|
const [{ createOpenPondAppServer }, { runOpenPondAppServerCli }] = await Promise.all([
|
|
73
|
-
import("./chunks/app-server-runtime-
|
|
74
|
-
import("./chunks/cli-
|
|
73
|
+
import("./chunks/app-server-runtime-O26LVUYH.js"),
|
|
74
|
+
import("./chunks/cli-LPFU4ULD.js")
|
|
75
75
|
]);
|
|
76
76
|
await runOpenPondAppServerCli(createOpenPondAppServer);
|
|
77
77
|
return true;
|
|
@@ -79,15 +79,15 @@ async function runEmbeddedCompanion(argv) {
|
|
|
79
79
|
if (argv[0] === "__server") {
|
|
80
80
|
process.argv = [process.execPath, "openpond-server", ...argv.slice(1)];
|
|
81
81
|
const [{ createOpenPondServer }, { runOpenPondServerCli }] = await Promise.all([
|
|
82
|
-
import("./chunks/src-
|
|
83
|
-
import("./chunks/cli-
|
|
82
|
+
import("./chunks/src-M37V6NVU.js"),
|
|
83
|
+
import("./chunks/cli-LPFU4ULD.js")
|
|
84
84
|
]);
|
|
85
|
-
const { createOpenPondAppServer } = await import("./chunks/app-server-runtime-
|
|
85
|
+
const { createOpenPondAppServer } = await import("./chunks/app-server-runtime-O26LVUYH.js");
|
|
86
86
|
await runOpenPondServerCli({ createOpenPondServer, createOpenPondAppServer });
|
|
87
87
|
return true;
|
|
88
88
|
}
|
|
89
89
|
if (argv[0] === "__terminal") {
|
|
90
|
-
await (await import("./chunks/src-
|
|
90
|
+
await (await import("./chunks/src-CPM5Q7T5.js")).runOpenPondTerminalCli(argv.slice(1));
|
|
91
91
|
return true;
|
|
92
92
|
}
|
|
93
93
|
return false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,j as w}from"./index-
|
|
1
|
+
import{r as s,j as w}from"./index-BO2W2U23.js";const d=[],v=["button:not([disabled])","[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","[tabindex]:not([tabindex='-1'])","[contenteditable='true']"].join(",");function T({ariaLabel:r,backdropClassName:o="training-dialog-backdrop",children:a,className:i,contained:t=!1,dismissDisabled:e=!1,initialFocusKey:u,inertExclusionSelector:p,onClose:m}){const f=s.useRef(null),A=s.useRef(Symbol("app-dialog")),b=s.useRef(null),h=s.useRef(e),g=s.useRef(m);h.current=e,g.current=m,s.useEffect(()=>{const n=A.current;b.current=document.activeElement instanceof HTMLElement?document.activeElement:null,d.push(n);const l=t?f.current?.closest(".main-pane")??null:null,E=I(f.current,l,p);function y(c){if(d.at(-1)===n){if(c.key==="Escape"){c.preventDefault(),c.stopPropagation(),h.current||g.current();return}c.key!=="Tab"||t||F(c,f.current)}}return document.addEventListener("keydown",y,!0),()=>{document.removeEventListener("keydown",y,!0);const c=d.lastIndexOf(n);c>=0&&d.splice(c,1),E();const x=b.current;x?.isConnected&&x.focus()}},[t,p]),s.useEffect(()=>{const n=window.requestAnimationFrame(()=>{const l=f.current;(l?.querySelector("[data-autofocus]")??l)?.focus()});return()=>window.cancelAnimationFrame(n)},[u]);function R(n){n.target===n.currentTarget&&!e&&m()}function k(n){n.key==="Escape"&&n.stopPropagation()}return w.jsx("div",{className:o,role:"presentation",onMouseDown:R,children:w.jsx("section",{ref:f,"aria-busy":e||void 0,"aria-label":r,"aria-modal":t?void 0:"true",className:i,role:"dialog",tabIndex:-1,onKeyDown:k,onMouseDown:n=>n.stopPropagation(),children:a})})}function D(r){return r?Array.from(r.querySelectorAll(v)).filter(o=>!o.hidden&&o.getAttribute("aria-hidden")!=="true"):[]}function F(r,o){if(!o)return;const a=D(o);if(a.length===0){r.preventDefault(),o.focus();return}const i=a.indexOf(document.activeElement),t=r.shiftKey?i<=0?a.length-1:i-1:i<0||i===a.length-1?0:i+1;r.preventDefault(),a[t]?.focus()}function I(r,o=null,a){if(!r)return()=>{};const i=[];let t=r.parentElement??r;for(;t.parentElement&&t!==document.body;){const e=t.parentElement;for(const u of Array.from(e.children))u===t||!(u instanceof HTMLElement)||a&&u.matches(a)||(i.push({element:u,ariaHidden:u.getAttribute("aria-hidden"),inert:u.inert}),u.inert=!0,u.setAttribute("aria-hidden","true"));if(t=e,o&&t===o)break}return()=>{for(const e of i.reverse())e.element.inert=e.inert,e.ariaHidden===null?e.element.removeAttribute("aria-hidden"):e.element.setAttribute("aria-hidden",e.ariaHidden)}}export{T as A};
|