@opengeni/react 1.4.4 → 1.4.5-canary.37458084490001
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 +17 -6
- package/dist/artifacts.d.ts +1 -0
- package/dist/artifacts.js +22 -15
- package/dist/artifacts.js.map +1 -1
- package/dist/{browser-viewer-5EEAS3IU.js → browser-viewer-CV23VIHB.js} +8 -6
- package/dist/chunk-3ZC6QPOM.js +174 -0
- package/dist/chunk-3ZC6QPOM.js.map +1 -0
- package/dist/{chunk-YVFRBXST.js → chunk-4BCVCJSU.js} +2 -2
- package/dist/{chunk-JHTIMBOL.js → chunk-5JSUNNQN.js} +26 -4
- package/dist/{chunk-JHTIMBOL.js.map → chunk-5JSUNNQN.js.map} +1 -1
- package/dist/{chunk-I6OY3MWC.js → chunk-6FOTSVWU.js} +2 -2
- package/dist/{chunk-IUHHPMAX.js → chunk-7RRBX5EM.js} +14 -85
- package/dist/chunk-7RRBX5EM.js.map +1 -0
- package/dist/{chunk-L2J3PU7A.js → chunk-7ZB7I3KP.js} +24 -98
- package/dist/chunk-7ZB7I3KP.js.map +1 -0
- package/dist/{chunk-LVS3MH5T.js → chunk-ATIRUHBZ.js} +128 -10
- package/dist/chunk-ATIRUHBZ.js.map +1 -0
- package/dist/chunk-BOFEQC6K.js +162 -0
- package/dist/chunk-BOFEQC6K.js.map +1 -0
- package/dist/{chunk-2OQA3CPB.js → chunk-CESBPQP5.js} +19 -5
- package/dist/chunk-CESBPQP5.js.map +1 -0
- package/dist/{chunk-IYQCWGU5.js → chunk-GHJU7XG7.js} +35 -62
- package/dist/chunk-GHJU7XG7.js.map +1 -0
- package/dist/{chunk-G6YRCIYJ.js → chunk-HNVWMDNN.js} +55 -60
- package/dist/chunk-HNVWMDNN.js.map +1 -0
- package/dist/{chunk-PHBFJCEU.js → chunk-I5EGRXXG.js} +110 -7
- package/dist/chunk-I5EGRXXG.js.map +1 -0
- package/dist/{chunk-PBCZL4JP.js → chunk-INIZSNXT.js} +2 -2
- package/dist/{chunk-XS67YG5R.js → chunk-IX3K4THH.js} +24 -3
- package/dist/chunk-IX3K4THH.js.map +1 -0
- package/dist/chunk-IZV5FTJC.js +55 -0
- package/dist/chunk-IZV5FTJC.js.map +1 -0
- package/dist/chunk-JDJJMBB3.js +1883 -0
- package/dist/chunk-JDJJMBB3.js.map +1 -0
- package/dist/{chunk-C5BF4L26.js → chunk-KHF2VRXF.js} +7 -7
- package/dist/{chunk-QMMCJGFI.js → chunk-L5OKM2VX.js} +2 -2
- package/dist/chunk-LHF6BVM4.js +83 -0
- package/dist/chunk-LHF6BVM4.js.map +1 -0
- package/dist/chunk-N7S72EXK.js +25 -0
- package/dist/chunk-N7S72EXK.js.map +1 -0
- package/dist/{chunk-CVYCLFMH.js → chunk-PEHTX3V7.js} +19 -1
- package/dist/chunk-PEHTX3V7.js.map +1 -0
- package/dist/chunk-R5R5RQQD.js +51 -0
- package/dist/chunk-R5R5RQQD.js.map +1 -0
- package/dist/chunk-RI42H5IU.js +326 -0
- package/dist/chunk-RI42H5IU.js.map +1 -0
- package/dist/{chunk-JH7V627O.js → chunk-SHLZMAJN.js} +2 -11
- package/dist/chunk-SHLZMAJN.js.map +1 -0
- package/dist/{chunk-EAOSEIXB.js → chunk-TZQSHCZN.js} +692 -1996
- package/dist/chunk-TZQSHCZN.js.map +1 -0
- package/dist/chunk-ZIB4H5LN.js +101 -0
- package/dist/chunk-ZIB4H5LN.js.map +1 -0
- package/dist/client.d.ts +9 -3
- package/dist/clipboard.js +1 -1
- package/dist/components/browser-viewer.d.ts +6 -0
- package/dist/components/composer.d.ts +3 -69
- package/dist/components/human-input-form.d.ts +3 -32
- package/dist/components/markdown.d.ts +8 -0
- package/dist/components/model-policy-picker.d.ts +4 -37
- package/dist/components/opper-mark.d.ts +7 -0
- package/dist/components/provider-recovery-notice.d.ts +15 -0
- package/dist/components/remark-soft-line-breaks.d.ts +38 -0
- package/dist/components/sandbox-workspace.d.ts +13 -0
- package/dist/components/session-chrome.d.ts +5 -3
- package/dist/components/session-conversation.d.ts +15 -3
- package/dist/composer-messages.d.ts +74 -0
- package/dist/composer-messages.js +9 -0
- package/dist/composer.js +15 -10
- package/dist/{computer-viewer-ELNLZGHI.js → computer-viewer-K4CKYRX6.js} +4 -4
- package/dist/connect-setup.d.ts +2 -0
- package/dist/connect.d.ts +1 -1
- package/dist/connect.js +21 -6
- package/dist/connect.js.map +1 -1
- package/dist/{embedded-voice-NIL4RDX3.js → embedded-voice-3ZFWWJ6O.js} +6 -4
- package/dist/{embedded-voice-NIL4RDX3.js.map → embedded-voice-3ZFWWJ6O.js.map} +1 -1
- package/dist/hooks/shared-machines-list.d.ts +4 -0
- package/dist/hooks/use-client-config-flags.d.ts +6 -0
- package/dist/hooks/use-goal.d.ts +2 -1
- package/dist/human-input-model.d.ts +40 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.js +116 -73
- package/dist/index.js.map +1 -1
- package/dist/interaction.js +5 -5
- package/dist/{latest-question-2POFPYNB.js → latest-question-SWC6QEVN.js} +3 -3
- package/dist/lib/clipboard.d.ts +7 -0
- package/dist/lib/provider-recovery.d.ts +49 -0
- package/dist/machines.js +2 -2
- package/dist/model-mark-paths.d.ts +34 -0
- package/dist/model-mark-paths.js +16 -0
- package/dist/model-picker-model.d.ts +111 -0
- package/dist/model-picker-model.js +25 -0
- package/dist/model-picker-model.js.map +1 -0
- package/dist/{model-policy-picker-menu-WRNSRFQC.js → model-policy-picker-menu-NM4RPTY6.js} +6 -4
- package/dist/model-policy-picker-menu-NM4RPTY6.js.map +1 -0
- package/dist/model-policy.d.ts +10 -0
- package/dist/model-policy.js +5 -1
- package/dist/organization-model.d.ts +32 -0
- package/dist/organization-model.js +65 -0
- package/dist/organization-model.js.map +1 -0
- package/dist/{platform-activity-row-PJJVATTZ.js → platform-activity-row-NJ47YBXW.js} +7 -84
- package/dist/platform-activity-row-NJ47YBXW.js.map +1 -0
- package/dist/queue-presentation-model.d.ts +72 -0
- package/dist/queue-presentation-model.js +38 -0
- package/dist/queue-presentation-model.js.map +1 -0
- package/dist/{queue-surface-implementation-67FS7FUI.js → queue-surface-implementation-YPJFQ3O6.js} +24 -252
- package/dist/queue-surface-implementation-YPJFQ3O6.js.map +1 -0
- package/dist/realtime.js +5 -3
- package/dist/{sandbox-files-34CJJNOY.js → sandbox-files-RCVCMXG7.js} +5 -5
- package/dist/sandbox-files-RCVCMXG7.js.map +1 -0
- package/dist/sandbox-label-model.d.ts +23 -0
- package/dist/sandbox-label-model.js +28 -0
- package/dist/sandbox-label-model.js.map +1 -0
- package/dist/session-attention-model.d.ts +8 -0
- package/dist/session-attention-model.js +46 -0
- package/dist/session-attention-model.js.map +1 -0
- package/dist/session-feedback-model.d.ts +20 -0
- package/dist/session-feedback-model.js +56 -0
- package/dist/session-feedback-model.js.map +1 -0
- package/dist/session-list-model.d.ts +96 -0
- package/dist/session-list-model.js +219 -0
- package/dist/session-list-model.js.map +1 -0
- package/dist/session-status-model.d.ts +19 -0
- package/dist/session-ui.js +26 -17
- package/dist/session-ui.js.map +1 -1
- package/dist/session.js +8 -6
- package/dist/testing/session-scenarios.d.ts +10 -0
- package/dist/testing/session-scenarios.js +303 -0
- package/dist/testing/session-scenarios.js.map +1 -0
- package/dist/timeline/genie-copy.d.ts +3 -0
- package/dist/timeline/genie-loading.d.ts +11 -0
- package/dist/timeline/index.d.ts +1 -1
- package/dist/timeline/notice-presentation.d.ts +7 -0
- package/dist/timeline/patch-apply-command.d.ts +18 -0
- package/dist/timeline/platform-activity-presentation.d.ts +7 -0
- package/dist/timeline/presented-image.d.ts +6 -1
- package/dist/timeline/question-nav-model.d.ts +23 -0
- package/dist/timeline/registry.d.ts +10 -1
- package/dist/timeline/retained-loaders.d.ts +1 -1
- package/dist/timeline/tool-presentation.d.ts +172 -0
- package/dist/timeline/turn-summary-model.d.ts +90 -0
- package/dist/timeline/turn-summary.d.ts +4 -74
- package/dist/timeline/work-presentation.d.ts +42 -0
- package/dist/timeline-model.d.ts +24 -0
- package/dist/timeline-model.js +152 -0
- package/dist/timeline-model.js.map +1 -0
- package/package.json +47 -3
- package/src/artifacts.ts +1 -0
- package/src/client.ts +9 -3
- package/src/components/browser-viewer.tsx +23 -2
- package/src/components/claude-mark.tsx +2 -1
- package/src/components/composer.tsx +4 -144
- package/src/components/grok-mark.tsx +2 -1
- package/src/components/human-input-form.tsx +13 -124
- package/src/components/markdown.tsx +19 -1
- package/src/components/message-timeline.tsx +45 -99
- package/src/components/model-mark.tsx +2 -1
- package/src/components/model-policy-picker-menu.tsx +30 -85
- package/src/components/model-policy-picker.tsx +15 -148
- package/src/components/opper-mark.tsx +18 -0
- package/src/components/provider-recovery-notice.tsx +41 -0
- package/src/components/queue-surface-implementation.tsx +20 -349
- package/src/components/remark-soft-line-breaks.ts +166 -0
- package/src/components/sandbox-workspace.tsx +17 -1
- package/src/components/session-chrome.tsx +114 -99
- package/src/components/session-conversation.tsx +55 -6
- package/src/components/session-status.tsx +17 -16
- package/src/composer-messages.ts +150 -0
- package/src/connect-setup.tsx +45 -11
- package/src/connect.ts +1 -1
- package/src/hooks/shared-machines-list.ts +34 -1
- package/src/hooks/use-client-config-flags.ts +8 -0
- package/src/hooks/use-goal.ts +66 -10
- package/src/human-input-model.ts +147 -0
- package/src/index.ts +16 -0
- package/src/lib/clipboard.ts +29 -0
- package/src/lib/format.ts +7 -0
- package/src/lib/provider-recovery.ts +202 -0
- package/src/model-mark-paths.ts +53 -0
- package/src/model-picker-model.ts +330 -0
- package/src/model-policy.ts +43 -2
- package/src/organization-model.ts +118 -0
- package/src/queue-presentation-model.ts +464 -0
- package/src/sandbox-label-model.ts +41 -0
- package/src/session-attention-model.ts +59 -0
- package/src/session-feedback-model.ts +95 -0
- package/src/session-list-model.ts +327 -0
- package/src/session-status-model.ts +62 -0
- package/src/testing/session-scenarios.ts +326 -0
- package/src/timeline/activity-rail.tsx +5 -17
- package/src/timeline/genie-copy.ts +19 -0
- package/src/timeline/genie-loading.tsx +13 -18
- package/src/timeline/index.ts +1 -0
- package/src/timeline/notice-presentation.ts +22 -0
- package/src/timeline/patch-apply-command.tsx +135 -0
- package/src/timeline/platform-activity-presentation.ts +122 -0
- package/src/timeline/platform-activity-row.tsx +6 -96
- package/src/timeline/presented-image.ts +16 -2
- package/src/timeline/question-nav-model.ts +28 -0
- package/src/timeline/registry.ts +11 -1
- package/src/timeline/retained-loaders.ts +9 -4
- package/src/timeline/rolling-activity.tsx +7 -19
- package/src/timeline/tool-presentation.ts +1316 -0
- package/src/timeline/tool-renderers.tsx +226 -1025
- package/src/timeline/turn-summary-model.ts +338 -0
- package/src/timeline/turn-summary.tsx +21 -326
- package/src/timeline/work-presentation.ts +139 -0
- package/src/timeline-model.ts +108 -0
- package/styles/compiled.css +3 -0
- package/styles/connect.css +4 -0
- package/dist/chunk-2OQA3CPB.js.map +0 -1
- package/dist/chunk-CVYCLFMH.js.map +0 -1
- package/dist/chunk-EAOSEIXB.js.map +0 -1
- package/dist/chunk-G6YRCIYJ.js.map +0 -1
- package/dist/chunk-HXYOSSQO.js +0 -117
- package/dist/chunk-HXYOSSQO.js.map +0 -1
- package/dist/chunk-IUHHPMAX.js.map +0 -1
- package/dist/chunk-IYQCWGU5.js.map +0 -1
- package/dist/chunk-JH7V627O.js.map +0 -1
- package/dist/chunk-L2J3PU7A.js.map +0 -1
- package/dist/chunk-LVS3MH5T.js.map +0 -1
- package/dist/chunk-PHBFJCEU.js.map +0 -1
- package/dist/chunk-XS67YG5R.js.map +0 -1
- package/dist/platform-activity-row-PJJVATTZ.js.map +0 -1
- package/dist/queue-surface-implementation-67FS7FUI.js.map +0 -1
- /package/dist/{browser-viewer-5EEAS3IU.js.map → browser-viewer-CV23VIHB.js.map} +0 -0
- /package/dist/{chunk-YVFRBXST.js.map → chunk-4BCVCJSU.js.map} +0 -0
- /package/dist/{chunk-I6OY3MWC.js.map → chunk-6FOTSVWU.js.map} +0 -0
- /package/dist/{chunk-PBCZL4JP.js.map → chunk-INIZSNXT.js.map} +0 -0
- /package/dist/{chunk-C5BF4L26.js.map → chunk-KHF2VRXF.js.map} +0 -0
- /package/dist/{chunk-QMMCJGFI.js.map → chunk-L5OKM2VX.js.map} +0 -0
- /package/dist/{computer-viewer-ELNLZGHI.js.map → composer-messages.js.map} +0 -0
- /package/dist/{model-policy-picker-menu-WRNSRFQC.js.map → computer-viewer-K4CKYRX6.js.map} +0 -0
- /package/dist/{latest-question-2POFPYNB.js.map → latest-question-SWC6QEVN.js.map} +0 -0
- /package/dist/{sandbox-files-34CJJNOY.js.map → model-mark-paths.js.map} +0 -0
package/dist/composer.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
ModelPolicyPickerMenu
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-GHJU7XG7.js";
|
|
5
5
|
import {
|
|
6
6
|
Actions,
|
|
7
7
|
AttachButton,
|
|
@@ -36,28 +36,33 @@ import {
|
|
|
36
36
|
VoiceRecordingOwnedError,
|
|
37
37
|
VoiceRecordingStorageUnavailableError,
|
|
38
38
|
createVoiceRecordingManifest,
|
|
39
|
-
defaultChatComposerMessages,
|
|
40
39
|
planVoiceRecordingChunkCommit,
|
|
41
40
|
prepareVoiceRecordingChunk,
|
|
42
41
|
useChatComposer,
|
|
43
42
|
useChatComposerController,
|
|
44
43
|
useVoiceInput
|
|
45
|
-
} from "./chunk-
|
|
46
|
-
import "./chunk-PBCZL4JP.js";
|
|
47
|
-
import "./chunk-IEE7WCLN.js";
|
|
44
|
+
} from "./chunk-7RRBX5EM.js";
|
|
48
45
|
import "./chunk-NX4ADH73.js";
|
|
49
46
|
import {
|
|
50
47
|
BillingClassMark,
|
|
51
48
|
ModelPolicyPicker,
|
|
52
49
|
PickerAnimatedPage,
|
|
53
50
|
PickerBackHeader,
|
|
54
|
-
PickerNavRow
|
|
55
|
-
|
|
56
|
-
} from "./chunk-L2J3PU7A.js";
|
|
51
|
+
PickerNavRow
|
|
52
|
+
} from "./chunk-7ZB7I3KP.js";
|
|
57
53
|
import "./chunk-PMV53IMM.js";
|
|
58
|
-
import "./chunk-
|
|
54
|
+
import "./chunk-INIZSNXT.js";
|
|
55
|
+
import "./chunk-N7S72EXK.js";
|
|
56
|
+
import {
|
|
57
|
+
defaultModelPolicyPickerMessages
|
|
58
|
+
} from "./chunk-3ZC6QPOM.js";
|
|
59
|
+
import {
|
|
60
|
+
defaultChatComposerMessages
|
|
61
|
+
} from "./chunk-LHF6BVM4.js";
|
|
62
|
+
import "./chunk-IEE7WCLN.js";
|
|
59
63
|
import "./chunk-XEA5BCMA.js";
|
|
60
|
-
import "./chunk-
|
|
64
|
+
import "./chunk-IX3K4THH.js";
|
|
65
|
+
import "./chunk-ATIRUHBZ.js";
|
|
61
66
|
import "./chunk-QHUE7E4N.js";
|
|
62
67
|
import "./chunk-CM7LVUKC.js";
|
|
63
68
|
import "./chunk-XTD7TZHW.js";
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ComputerViewer,
|
|
4
4
|
computerKey
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6FOTSVWU.js";
|
|
6
6
|
import "./chunk-BNKV5ZLF.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-PEHTX3V7.js";
|
|
8
8
|
import "./chunk-IMSUVYQB.js";
|
|
9
9
|
import "./chunk-ZUWF4NF7.js";
|
|
10
10
|
import "./chunk-TNEZNMSN.js";
|
|
11
|
+
import "./chunk-5I4VRWBB.js";
|
|
11
12
|
import "./chunk-QHUE7E4N.js";
|
|
12
13
|
import "./chunk-CM7LVUKC.js";
|
|
13
14
|
import "./chunk-XTD7TZHW.js";
|
|
14
|
-
import "./chunk-5I4VRWBB.js";
|
|
15
15
|
import "./chunk-TXS65BB2.js";
|
|
16
16
|
export {
|
|
17
17
|
ComputerViewer,
|
|
18
18
|
computerKey
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=computer-viewer-
|
|
20
|
+
//# sourceMappingURL=computer-viewer-K4CKYRX6.js.map
|
package/dist/connect-setup.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { ConnectAttempt, ConnectController } from "@opengeni/connect";
|
|
2
|
+
/** GitHub returned from a non-owner's install request: an organization owner must approve. */
|
|
3
|
+
export declare function isOwnerApprovalPending(attempt: Pick<ConnectAttempt, "error">): boolean;
|
|
2
4
|
export type ConnectSetupProps = {
|
|
3
5
|
controller: ConnectController;
|
|
4
6
|
/** Called synchronously in the click handler so a host can open a popup. */
|
package/dist/connect.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { useConnect } from "./hooks/use-connect.js";
|
|
2
2
|
export { CapabilityCatalogRow, CapabilityCatalogIndicator, type CapabilityCatalogRowProps, type CapabilityCatalogStatus, } from "./capability-catalog-row.js";
|
|
3
3
|
export { SkillDiscovery, type SkillDiscoveryProps, type SkillDiscoveryClient, type SkillDiscoveryItem, type SkillDiscoveryPage, } from "./skill-discovery.js";
|
|
4
|
-
export { ConnectSetup, type ConnectSetupProps } from "./connect-setup.js";
|
|
4
|
+
export { ConnectSetup, isOwnerApprovalPending, type ConnectSetupProps } from "./connect-setup.js";
|
|
5
5
|
export { ConnectChooser, type ConnectChooserProps } from "./connect-chooser.js";
|
|
6
6
|
export { ConnectAccounts, type ConnectAccountsProps } from "./connect-accounts.js";
|
|
7
7
|
export { ConnectPanel, type ConnectPanelProps } from "./connect-panel.js";
|
package/dist/connect.js
CHANGED
|
@@ -7,16 +7,16 @@ import {
|
|
|
7
7
|
} from "./chunk-55DXD22O.js";
|
|
8
8
|
import {
|
|
9
9
|
Markdown
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-I5EGRXXG.js";
|
|
11
11
|
import "./chunk-OYQQJL3J.js";
|
|
12
12
|
import "./chunk-S2QH6EZ5.js";
|
|
13
13
|
import "./chunk-OGTTUYNT.js";
|
|
14
14
|
import {
|
|
15
15
|
copyTextToClipboard
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-PEHTX3V7.js";
|
|
17
17
|
import "./chunk-IEE7WCLN.js";
|
|
18
18
|
import "./chunk-XEA5BCMA.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-ATIRUHBZ.js";
|
|
20
20
|
import "./chunk-TXS65BB2.js";
|
|
21
21
|
|
|
22
22
|
// src/capability-catalog-row.tsx
|
|
@@ -278,6 +278,9 @@ var setupStatus = {
|
|
|
278
278
|
failed: "Setup could not finish",
|
|
279
279
|
uncertain: "Setup outcome needs checking"
|
|
280
280
|
};
|
|
281
|
+
function isOwnerApprovalPending(attempt) {
|
|
282
|
+
return attempt.error?.code === "owner_approval_pending";
|
|
283
|
+
}
|
|
281
284
|
function deviceVerificationUrl(action) {
|
|
282
285
|
if (action.type !== "wait" || !action.verificationUrl) return null;
|
|
283
286
|
try {
|
|
@@ -328,6 +331,8 @@ function ScopedSetup({
|
|
|
328
331
|
const action = attempt.nextAction;
|
|
329
332
|
const verificationUrl = deviceVerificationUrl(action);
|
|
330
333
|
const terminal = ["complete", "cancelled", "expired"].includes(attempt.state);
|
|
334
|
+
const awaitingOwner = isOwnerApprovalPending(attempt);
|
|
335
|
+
const offersGitHubRequest = action.type === "select_account" && attempt.providerId.startsWith("github") && action.accounts.some((account) => account.id === "new");
|
|
331
336
|
const submit = (event) => {
|
|
332
337
|
event.preventDefault();
|
|
333
338
|
const form = event.currentTarget;
|
|
@@ -380,19 +385,27 @@ function ScopedSetup({
|
|
|
380
385
|
children: [
|
|
381
386
|
/* @__PURE__ */ jsxs3("div", { className: "og-connect-setup-summary", children: [
|
|
382
387
|
/* @__PURE__ */ jsx3("p", { className: "og-connect-setup-scope", children: attempt.ownership === "personal" ? "Personal connection" : "Workspace connection" }),
|
|
383
|
-
/* @__PURE__ */ jsx3("p", { role: "status", className: "og-connect-setup-status", children: setupStatus[attempt.state] }),
|
|
388
|
+
/* @__PURE__ */ jsx3("p", { role: "status", className: "og-connect-setup-status", children: awaitingOwner ? "Waiting for an organization owner" : setupStatus[attempt.state] }),
|
|
384
389
|
/* @__PURE__ */ jsx3("p", { className: "og-connect-setup-description", children: attempt.ownership === "personal" ? "Only your work can use this connection." : "Work in this workspace can use this connection." })
|
|
385
390
|
] }),
|
|
386
391
|
attempt.account && /* @__PURE__ */ jsxs3("p", { children: [
|
|
387
392
|
"Account: ",
|
|
388
393
|
attempt.account.label
|
|
389
394
|
] }),
|
|
390
|
-
|
|
395
|
+
awaitingOwner && /* @__PURE__ */ jsxs3("div", { className: "og-connect-setup-pending", children: [
|
|
396
|
+
/* @__PURE__ */ jsx3("p", { children: "Your request was sent. GitHub asked the owners of your organization to approve Opengeni." }),
|
|
397
|
+
/* @__PURE__ */ jsxs3("ol", { children: [
|
|
398
|
+
/* @__PURE__ */ jsx3("li", { children: "An organization owner approves the request on GitHub." }),
|
|
399
|
+
/* @__PURE__ */ jsx3("li", { children: "An owner then connects the organization here. If they don't use Opengeni yet, invite them to this workspace first." })
|
|
400
|
+
] }),
|
|
401
|
+
/* @__PURE__ */ jsx3("p", { children: "Nothing is connected until then. You can close this and keep working." })
|
|
402
|
+
] }),
|
|
403
|
+
(localError || view.error || attempt.error && !awaitingOwner) && /* @__PURE__ */ jsx3("p", { role: "alert", children: attempt.error?.code === "source_changed" ? "The integration source changed. Review the updated tools before adding them." : "Connection setup could not continue. Refresh its status before trying again." }),
|
|
391
404
|
!terminal && /* @__PURE__ */ jsx3("form", { onSubmit: submit, autoComplete: "off", children: /* @__PURE__ */ jsxs3("fieldset", { disabled: view.busy || navigating, children: [
|
|
392
405
|
["credentials", "select_account", "select_resources", "preview"].includes(
|
|
393
406
|
action.type
|
|
394
407
|
) ? /* @__PURE__ */ jsx3("legend", { children: "Connection details" }) : null,
|
|
395
|
-
attempt.state === "connected_but_incomplete" && action.type === "none" && /* @__PURE__ */ jsx3(
|
|
408
|
+
attempt.state === "connected_but_incomplete" && action.type === "none" && !awaitingOwner && /* @__PURE__ */ jsx3(
|
|
396
409
|
"button",
|
|
397
410
|
{
|
|
398
411
|
type: "button",
|
|
@@ -438,6 +451,7 @@ function ScopedSetup({
|
|
|
438
451
|
))
|
|
439
452
|
] })
|
|
440
453
|
] }),
|
|
454
|
+
offersGitHubRequest && /* @__PURE__ */ jsx3("p", { className: "og-connect-setup-hint", children: `Don't see your organization? Only its owners can connect it. Choose "Install on another GitHub account" and pick the organization: GitHub lets you send its owners a request to approve.` }),
|
|
441
455
|
action.type === "select_resources" && action.resources.map((resource) => /* @__PURE__ */ jsxs3("label", { children: [
|
|
442
456
|
/* @__PURE__ */ jsx3("input", { type: "checkbox", name: "resource", value: resource.id }),
|
|
443
457
|
resource.label,
|
|
@@ -2127,6 +2141,7 @@ export {
|
|
|
2127
2141
|
PluginDiscovery,
|
|
2128
2142
|
SkillDiscovery,
|
|
2129
2143
|
capabilityLogoFallback,
|
|
2144
|
+
isOwnerApprovalPending,
|
|
2130
2145
|
useConnect
|
|
2131
2146
|
};
|
|
2132
2147
|
//# sourceMappingURL=connect.js.map
|