@straion/cli 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/cli.d.ts +4 -0
  3. package/dist/cli.d.ts.map +1 -1
  4. package/dist/cli.js +5 -3
  5. package/dist/cli.js.map +1 -1
  6. package/dist/commands/default.d.ts +2 -1
  7. package/dist/commands/default.d.ts.map +1 -1
  8. package/dist/commands/default.js +15 -3
  9. package/dist/commands/default.js.map +1 -1
  10. package/dist/commands/find-requirements.d.ts.map +1 -1
  11. package/dist/commands/find-requirements.integration.test.d.ts +5 -0
  12. package/dist/commands/find-requirements.integration.test.d.ts.map +1 -0
  13. package/dist/commands/find-requirements.integration.test.js +131 -0
  14. package/dist/commands/find-requirements.integration.test.js.map +1 -0
  15. package/dist/commands/find-requirements.js +36 -5
  16. package/dist/commands/find-requirements.js.map +1 -1
  17. package/dist/commands/login.d.ts.map +1 -1
  18. package/dist/commands/login.integration.test.d.ts +13 -0
  19. package/dist/commands/login.integration.test.d.ts.map +1 -0
  20. package/dist/commands/login.integration.test.js +188 -0
  21. package/dist/commands/login.integration.test.js.map +1 -0
  22. package/dist/commands/login.js +13 -4
  23. package/dist/commands/login.js.map +1 -1
  24. package/dist/commands/logout.d.ts.map +1 -1
  25. package/dist/commands/logout.js +19 -9
  26. package/dist/commands/logout.js.map +1 -1
  27. package/dist/commands/session-start.d.ts.map +1 -1
  28. package/dist/commands/session-start.js +8 -2
  29. package/dist/commands/session-start.js.map +1 -1
  30. package/dist/components/button.d.ts +2 -2
  31. package/dist/components/button.d.ts.map +1 -1
  32. package/dist/components/button.js +3 -3
  33. package/dist/components/button.js.map +1 -1
  34. package/dist/components/hero.d.ts +2 -1
  35. package/dist/components/hero.d.ts.map +1 -1
  36. package/dist/components/hero.js +76 -10
  37. package/dist/components/hero.js.map +1 -1
  38. package/dist/components/link.d.ts +2 -2
  39. package/dist/components/link.d.ts.map +1 -1
  40. package/dist/components/link.js +3 -3
  41. package/dist/components/link.js.map +1 -1
  42. package/dist/components/login/login-error.d.ts +6 -0
  43. package/dist/components/login/login-error.d.ts.map +1 -0
  44. package/dist/components/login/login-error.js +16 -0
  45. package/dist/components/login/login-error.js.map +1 -0
  46. package/dist/components/login/login-flow.d.ts +8 -2
  47. package/dist/components/login/login-flow.d.ts.map +1 -1
  48. package/dist/components/login/login-flow.js +123 -82
  49. package/dist/components/login/login-flow.js.map +1 -1
  50. package/dist/components/login/login-flow.test.js +69 -7
  51. package/dist/components/login/login-flow.test.js.map +1 -1
  52. package/dist/components/login/types.d.ts +2 -0
  53. package/dist/components/login/types.d.ts.map +1 -0
  54. package/dist/components/login/types.js +2 -0
  55. package/dist/components/login/types.js.map +1 -0
  56. package/dist/components/org-selector.d.ts +2 -1
  57. package/dist/components/org-selector.d.ts.map +1 -1
  58. package/dist/components/org-selector.js +7 -2
  59. package/dist/components/org-selector.js.map +1 -1
  60. package/dist/components/pat-input.d.ts +2 -1
  61. package/dist/components/pat-input.d.ts.map +1 -1
  62. package/dist/components/pat-input.js +9 -3
  63. package/dist/components/pat-input.js.map +1 -1
  64. package/dist/components/pat-input.test.js +8 -8
  65. package/dist/components/pat-input.test.js.map +1 -1
  66. package/dist/components/spinner.d.ts +2 -1
  67. package/dist/components/spinner.d.ts.map +1 -1
  68. package/dist/components/spinner.js +2 -3
  69. package/dist/components/spinner.js.map +1 -1
  70. package/dist/components/tabs.d.ts +3 -3
  71. package/dist/components/tabs.d.ts.map +1 -1
  72. package/dist/components/tabs.js +26 -21
  73. package/dist/components/tabs.js.map +1 -1
  74. package/dist/lib/ink-render.d.ts +1 -1
  75. package/dist/lib/ink-render.js +1 -1
  76. package/dist/lib/middleware.d.ts +9 -4
  77. package/dist/lib/middleware.d.ts.map +1 -1
  78. package/dist/lib/middleware.js +23 -7
  79. package/dist/lib/middleware.js.map +1 -1
  80. package/dist/lib/output.d.ts +16 -0
  81. package/dist/lib/output.d.ts.map +1 -0
  82. package/dist/lib/output.js +14 -0
  83. package/dist/lib/output.js.map +1 -0
  84. package/dist/test/integration-helpers.d.ts +101 -0
  85. package/dist/test/integration-helpers.d.ts.map +1 -0
  86. package/dist/test/integration-helpers.js +187 -0
  87. package/dist/test/integration-helpers.js.map +1 -0
  88. package/package.json +3 -1
  89. package/dist/auth/cookie-jar.d.ts +0 -24
  90. package/dist/auth/cookie-jar.d.ts.map +0 -1
  91. package/dist/auth/cookie-jar.js +0 -45
  92. package/dist/auth/cookie-jar.js.map +0 -1
  93. package/dist/components/login/login.provider.d.ts +0 -2
  94. package/dist/components/login/login.provider.d.ts.map +0 -1
  95. package/dist/components/login/login.provider.js +0 -2
  96. package/dist/components/login/login.provider.js.map +0 -1
  97. package/dist/components/login/login.store.d.ts +0 -2
  98. package/dist/components/login/login.store.d.ts.map +0 -1
  99. package/dist/components/login/login.store.js +0 -2
  100. package/dist/components/login/login.store.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"logout.d.ts","sourceRoot":"","sources":["../../src/commands/logout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQpC,wBAAgB,mBAAmB,IAAI,OAAO,CAwC7C"}
1
+ {"version":3,"file":"logout.d.ts","sourceRoot":"","sources":["../../src/commands/logout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAUpC,wBAAgB,mBAAmB,IAAI,OAAO,CAuC7C"}
@@ -1,30 +1,40 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
1
  import { Command } from 'commander';
3
2
  import { Box, Text } from 'ink';
3
+ import React from 'react';
4
4
  import { createCredentialManager } from '../auth/credentials.js';
5
5
  import { renderInk } from '../lib/ink-render.js';
6
6
  import { withLogging } from '../lib/middleware.js';
7
+ import { outputJson } from '../lib/output.js';
7
8
  import { globalConfig } from '../state/global-config.js';
8
9
  export function createLogoutCommand() {
9
- return new Command('logout').description('Log out and clear stored credentials').action(withLogging(async (_, { logger }) => {
10
+ return new Command('logout').description('Log out and clear stored credentials').action(withLogging(async (_, { logger, outputFormat }) => {
11
+ const isJsonOutput = outputFormat === 'json';
10
12
  try {
11
13
  // Clear credentials from keychain
12
14
  const credentialManager = await createCredentialManager();
13
15
  await credentialManager.deleteCredentials();
14
16
  // Clear global config
15
17
  globalConfig.clear();
16
- await renderInk(_jsx(Box, { flexDirection: "column", borderStyle: "single", paddingLeft: 1, children: _jsx(Text, { color: "green", children: "\u2713 Logged out successfully." }) }));
18
+ if (isJsonOutput) {
19
+ outputJson({ success: true });
20
+ }
21
+ else {
22
+ await renderInk(React.createElement(Box, { flexDirection: "column", borderStyle: "single", paddingLeft: 1 },
23
+ React.createElement(Text, { color: "green" }, "\u2713 Logged out successfully.")));
24
+ }
17
25
  }
18
26
  catch (error) {
19
- if (error instanceof Error) {
20
- await renderInk(_jsx(Box, { flexDirection: "column", borderStyle: "single", paddingLeft: 1, children: _jsxs(Text, { color: "red", children: ["\u2717 Logout failed: ", error.message] }) }));
27
+ const errorMessage = error instanceof Error ? error.message : 'Unknown error';
28
+ if (isJsonOutput) {
29
+ outputJson({ success: false, error: errorMessage });
21
30
  }
22
31
  else {
23
- await renderInk(_jsx(Box, { flexDirection: "column", borderStyle: "single", paddingLeft: 1, children: _jsx(Text, { color: "red", children: "\u2717 Logout failed: Unknown error" }) }));
32
+ await renderInk(React.createElement(Box, { flexDirection: "column", borderStyle: "single", paddingLeft: 1 },
33
+ React.createElement(Text, { color: "red" },
34
+ "\u2717 Logout failed: ",
35
+ errorMessage)));
24
36
  }
25
- logger.error({
26
- error: error instanceof Error ? error.message : 'Unknown error',
27
- }, 'Logout command failed');
37
+ logger.error({ error: errorMessage }, 'Logout command failed');
28
38
  process.exit(1);
29
39
  }
30
40
  }));
@@ -1 +1 @@
1
- {"version":3,"file":"logout.js","sourceRoot":"","sources":["../../src/commands/logout.tsx"],"names":[],"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I,OAAO,CAanD"}
1
+ {"version":3,"file":"session-start.d.ts","sourceRoot":"","sources":["../../src/commands/session-start.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC,wBAAgB,yBAAyB,IAAI,OAAO,CAiBnD"}
@@ -1,13 +1,19 @@
1
1
  import { Command } from 'commander';
2
2
  import { withAuthAndLogging } from '../lib/middleware.js';
3
+ import { outputJson } from '../lib/output.js';
3
4
  export function createSessionStartCommand() {
4
5
  return new Command('session-start')
5
6
  .description('Initialize a Straion session for the current directory')
6
7
  .requiredOption('--session <id>', 'Session ID from the calling agent')
7
- .action(withAuthAndLogging(async (options, { logger, organization }) => {
8
+ .action(withAuthAndLogging(async (options, { logger, organization, outputFormat }) => {
8
9
  logger.info('Session start initiated');
9
10
  logger.info({ orgId: organization.id }, 'Session started successfully');
10
- console.log(`${String.fromCodePoint(0x1f43f)} Straion session started...`);
11
+ if (outputFormat === 'json') {
12
+ outputJson({ success: true, organizationId: organization.id });
13
+ }
14
+ else {
15
+ console.log(`${String.fromCodePoint(0x1f43f)} Straion session started...`);
16
+ }
11
17
  }));
12
18
  }
13
19
  //# sourceMappingURL=session-start.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"session-start.js","sourceRoot":"","sources":["../../src/commands/session-start.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,UAAU,yBAAyB;IACvC,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC;SAChC,WAAW,CAAC,wDAAwD,CAAC;SACrE,cAAc,CAAC,gBAAgB,EAAE,mCAAmC,CAAC;SACrE,MAAM,CACL,kBAAkB,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,EAAE;QAC7D,MAAM,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;QAEvC,MAAM,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,YAAY,CAAC,EAAE,EAAE,EAAE,8BAA8B,CAAC,CAAC;QAExE,OAAO,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,6BAA6B,CAAC,CAAC;IAC7E,CAAC,CAAC,CACH,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"session-start.js","sourceRoot":"","sources":["../../src/commands/session-start.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,MAAM,UAAU,yBAAyB;IACvC,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC;SAChC,WAAW,CAAC,wDAAwD,CAAC;SACrE,cAAc,CAAC,gBAAgB,EAAE,mCAAmC,CAAC;SACrE,MAAM,CACL,kBAAkB,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,EAAE,EAAE;QAC3E,MAAM,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;QAEvC,MAAM,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,YAAY,CAAC,EAAE,EAAE,EAAE,8BAA8B,CAAC,CAAC;QAExE,IAAI,YAAY,KAAK,MAAM,EAAE,CAAC;YAC5B,UAAU,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,YAAY,CAAC,EAAE,EAAE,CAAC,CAAC;QACjE,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,6BAA6B,CAAC,CAAC;QAC7E,CAAC;IACH,CAAC,CAAC,CACH,CAAC;AACN,CAAC"}
@@ -1,7 +1,7 @@
1
- import { type ReactNode } from 'react';
1
+ import React, { type ReactNode } from 'react';
2
2
  export type ButtonProps = {
3
3
  children: ReactNode;
4
4
  onPress: () => void;
5
5
  };
6
- export declare const Button: (props: ButtonProps) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const Button: (props: ButtonProps) => React.JSX.Element;
7
7
  //# sourceMappingURL=button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../src/components/button.tsx"],"names":[],"mappings":"AACA,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEjD,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,OAAO,WAAW,4CAuBxC,CAAC"}
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../src/components/button.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAExD,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,OAAO,WAAW,sBAuBxC,CAAC"}
@@ -1,6 +1,5 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
1
  import { Box, Text, useFocus, useInput } from 'ink';
3
- import { useState } from 'react';
2
+ import React, { useState } from 'react';
4
3
  export const Button = (props) => {
5
4
  const { isFocused } = useFocus();
6
5
  const { children, onPress } = props;
@@ -13,6 +12,7 @@ export const Button = (props) => {
13
12
  onPress();
14
13
  }
15
14
  });
16
- return (_jsx(Box, { backgroundColor: isPressed ? 'magentaBright' : isFocused ? 'magenta' : 'white', flexDirection: 'row', paddingX: 1, children: _jsx(Text, { color: "black", children: children }) }));
15
+ return (React.createElement(Box, { backgroundColor: isPressed ? 'magentaBright' : isFocused ? 'magenta' : 'white', flexDirection: 'row', paddingX: 1 },
16
+ React.createElement(Text, { color: "black" }, children)));
17
17
  };
18
18
  //# sourceMappingURL=button.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"button.js","sourceRoot":"","sources":["../../src/components/button.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAC;AAOjD,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,KAAkB,EAAE,EAAE;IAC3C,MAAM,EAAE,SAAS,EAAE,GAAG,QAAQ,EAAE,CAAC;IACjC,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IACpC,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAElD,QAAQ,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;QACtB,IAAI,SAAS,IAAI,CAAC,GAAG,CAAC,MAAM,IAAI,KAAK,KAAK,GAAG,CAAC,EAAE,CAAC;YAC/C,sBAAsB;YACtB,YAAY,CAAC,IAAI,CAAC,CAAC;YACnB,UAAU,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,CAAC;YAC3C,OAAO,EAAE,CAAC;QACZ,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,CACL,KAAC,GAAG,IACF,eAAe,EAAE,SAAS,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,EAC9E,aAAa,EAAE,KAAK,EACpB,QAAQ,EAAE,CAAC,YAEX,KAAC,IAAI,IAAC,KAAK,EAAC,OAAO,YAAE,QAAQ,GAAQ,GACjC,CACP,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"button.js","sourceRoot":"","sources":["../../src/components/button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AACpD,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAC;AAOxD,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,KAAkB,EAAE,EAAE;IAC3C,MAAM,EAAE,SAAS,EAAE,GAAG,QAAQ,EAAE,CAAC;IACjC,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IACpC,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAElD,QAAQ,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;QACtB,IAAI,SAAS,IAAI,CAAC,GAAG,CAAC,MAAM,IAAI,KAAK,KAAK,GAAG,CAAC,EAAE,CAAC;YAC/C,sBAAsB;YACtB,YAAY,CAAC,IAAI,CAAC,CAAC;YACnB,UAAU,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,CAAC;YAC3C,OAAO,EAAE,CAAC;QACZ,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,CACL,oBAAC,GAAG,IACF,eAAe,EAAE,SAAS,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,EAC9E,aAAa,EAAE,KAAK,EACpB,QAAQ,EAAE,CAAC;QAEX,oBAAC,IAAI,IAAC,KAAK,EAAC,OAAO,IAAE,QAAQ,CAAQ,CACjC,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import type { StoredCredentials } from '../auth/credentials.js';
2
3
  import type { OrganizationFragment } from '../lib/graphql.js';
3
4
  interface HeroProps {
@@ -5,6 +6,6 @@ interface HeroProps {
5
6
  localOrg: OrganizationFragment | null;
6
7
  organizations: OrganizationFragment[] | null;
7
8
  }
8
- export declare function Hero({ credentials, localOrg, organizations }: HeroProps): import("react/jsx-runtime").JSX.Element;
9
+ export declare function Hero({ credentials, localOrg, organizations }: HeroProps): React.JSX.Element;
9
10
  export {};
10
11
  //# sourceMappingURL=hero.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hero.d.ts","sourceRoot":"","sources":["../../src/components/hero.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAmB9D,UAAU,SAAS;IACjB,WAAW,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACtC,QAAQ,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACtC,aAAa,EAAE,oBAAoB,EAAE,GAAG,IAAI,CAAC;CAC9C;AAWD,wBAAgB,IAAI,CAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE,SAAS,2CA2IvE"}
1
+ {"version":3,"file":"hero.d.ts","sourceRoot":"","sources":["../../src/components/hero.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAwB9D,UAAU,SAAS;IACjB,WAAW,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACtC,QAAQ,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACtC,aAAa,EAAE,oBAAoB,EAAE,GAAG,IAAI,CAAC;CAC9C;AAWD,wBAAgB,IAAI,CAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE,SAAS,qBAyJvE"}
@@ -1,11 +1,14 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
1
  import { Box, Text, useApp, useInput } from 'ink';
3
- import { useState } from 'react';
2
+ import React, { useEffect, useState } from 'react';
4
3
  import { create } from 'zustand';
5
4
  import { globalConfig } from '../state/global-config.js';
6
5
  import { Button } from './button.js';
7
6
  import { Link } from './link.js';
8
7
  import { OrgSelector } from './org-selector.js';
8
+ // Detect interactive mode - this never changes during execution
9
+ function isInteractiveMode() {
10
+ return process.stdout.isTTY === true;
11
+ }
9
12
  const useHeroStore = create((set) => ({
10
13
  loginViewState: { type: 'idle' },
11
14
  setLoginViewState: (state) => set({ loginViewState: state }),
@@ -20,20 +23,83 @@ const straionAscii = `
20
23
  `;
21
24
  export function Hero({ credentials, localOrg, organizations }) {
22
25
  const { exit } = useApp();
26
+ const isInteractive = isInteractiveMode();
23
27
  const { loginViewState, setLoginViewState } = useHeroStore();
24
28
  const [currentOrg, setCurrentOrg] = useState(localOrg);
25
29
  const hasMultipleOrgs = organizations !== null && organizations.length > 1;
30
+ // In interactive mode, listen for 'q' or ESC to exit
26
31
  useInput((input, key) => {
27
32
  if (input === 'q' || key.escape) {
28
33
  exit();
29
34
  }
30
- });
31
- return (_jsxs(Box, { flexDirection: "column", paddingY: 1, paddingX: 2, children: [_jsx(Text, { children: straionAscii }), _jsx(Box, { marginBottom: 1, children: _jsx(Text, { bold: true, color: "blue", children: "The Missing Piece for AI-Era Software Engineering at Scale" }) }), credentials && currentOrg ? (_jsxs(Box, { flexDirection: "column", borderStyle: "single", paddingLeft: 1, marginBottom: 1, children: [_jsxs(Text, { children: ["Hello ", _jsx(Text, { bold: true, children: credentials.name }), "!"] }), _jsxs(Text, { children: ["Organization:", ' ', _jsx(Text, { bold: true, color: "magenta", children: currentOrg.name })] }), _jsxs(Box, { paddingTop: 1, children: [loginViewState.type === 'idle' && hasMultipleOrgs ? (_jsxs(Button, { onPress: () => {
32
- setLoginViewState({ type: 'switch-org', orgs: organizations });
33
- }, children: ['>', " Switch Organization"] })) : null, loginViewState.type === 'switch-org' && hasMultipleOrgs && currentOrg ? (_jsx(OrgSelector, { organizations: loginViewState.orgs, defaultOrganization: currentOrg, onSelect: (org) => {
34
- setCurrentOrg(org);
35
- globalConfig.setGlobalOrg(org);
36
- setLoginViewState({ type: 'idle' });
37
- } })) : null] })] })) : (_jsxs(Box, { flexDirection: "column", borderStyle: "single", paddingLeft: 1, marginBottom: 1, children: [_jsx(Text, { color: "yellow", children: "\u26A0 Not logged in" }), _jsxs(Text, { dimColor: true, children: ["Run ", _jsx(Text, { color: "green", children: "straion login" }), " to authenticate."] })] })), _jsx(Box, { marginBottom: 1, children: _jsx(Text, { color: "gray", children: "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500" }) }), _jsxs(Box, { flexDirection: "column", marginBottom: 1, children: [_jsx(Box, { marginBottom: 1, children: _jsx(Text, { bold: true, color: "white", children: "Quick Start:" }) }), _jsxs(Box, { flexDirection: "column", marginLeft: 2, children: [_jsxs(Box, { marginBottom: 1, children: [_jsx(Text, { color: "cyan", bold: true, children: "\u2192" }), _jsx(Text, { children: " " }), _jsx(Text, { color: "green", children: "straion login" }), _jsx(Text, { dimColor: true, children: " ............ Login to your account" })] }), _jsxs(Box, { marginBottom: 1, children: [_jsx(Text, { color: "cyan", bold: true, children: "\u2192" }), _jsx(Text, { children: " " }), _jsx(Text, { color: "green", children: "straion logout" }), _jsx(Text, { dimColor: true, children: " ........... Logout from your account" })] }), _jsxs(Box, { marginBottom: 1, children: [_jsx(Text, { color: "cyan", bold: true, children: "\u2192" }), _jsx(Text, { children: " " }), _jsx(Text, { color: "green", children: "straion --help" }), _jsx(Text, { dimColor: true, children: " ........... Show all commands" })] })] })] }), _jsx(Box, { marginBottom: 1, children: _jsx(Text, { color: "gray", children: "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500" }) }), _jsxs(Box, { flexDirection: "column", children: [_jsx(Box, { marginBottom: 1, children: _jsxs(Text, { dimColor: true, children: ["Learn more:", ' ', _jsx(Text, { color: "blue", children: _jsx(Link, { url: "https://straion.com", children: "https://straion.com" }) })] }) }), _jsxs(Box, { justifyContent: "space-between", width: 71, children: [_jsx(Text, { dimColor: true, children: "Version 0.0.1" }), _jsx(Text, { dimColor: true, children: "Press 'q' or ESC to exit" })] })] })] }));
35
+ }, { isActive: isInteractive });
36
+ // In non-interactive mode, auto-exit after rendering
37
+ useEffect(() => {
38
+ if (!isInteractive) {
39
+ exit();
40
+ }
41
+ }, [isInteractive, exit]);
42
+ return (React.createElement(Box, { flexDirection: "column", paddingY: 1, paddingX: 2 },
43
+ React.createElement(Text, null, straionAscii),
44
+ React.createElement(Box, { marginBottom: 1 },
45
+ React.createElement(Text, { bold: true, color: "blue" }, "The Missing Piece for AI-Era Software Engineering at Scale")),
46
+ credentials && currentOrg ? (React.createElement(Box, { flexDirection: "column", borderStyle: "single", paddingLeft: 1, marginBottom: 1 },
47
+ React.createElement(Text, null,
48
+ "Hello ",
49
+ React.createElement(Text, { bold: true }, credentials.name),
50
+ "!"),
51
+ React.createElement(Text, null,
52
+ "Organization:",
53
+ ' ',
54
+ React.createElement(Text, { bold: true, color: "magenta" }, currentOrg.name)),
55
+ isInteractive && (React.createElement(Box, { paddingTop: 1 },
56
+ loginViewState.type === 'idle' && hasMultipleOrgs ? (React.createElement(Button, { onPress: () => {
57
+ setLoginViewState({ type: 'switch-org', orgs: organizations });
58
+ } },
59
+ '>',
60
+ " Switch Organization")) : null,
61
+ loginViewState.type === 'switch-org' && hasMultipleOrgs && currentOrg ? (React.createElement(OrgSelector, { organizations: loginViewState.orgs, defaultOrganization: currentOrg, onSelect: (org) => {
62
+ setCurrentOrg(org);
63
+ globalConfig.setGlobalOrg(org);
64
+ setLoginViewState({ type: 'idle' });
65
+ } })) : null)))) : (React.createElement(Box, { flexDirection: "column", borderStyle: "single", paddingLeft: 1, marginBottom: 1 },
66
+ React.createElement(Text, { color: "yellow" }, "\u26A0 Not logged in"),
67
+ React.createElement(Text, { dimColor: true },
68
+ "Run ",
69
+ React.createElement(Text, { color: "green" }, "straion login"),
70
+ " to authenticate."))),
71
+ React.createElement(Box, { marginBottom: 1 },
72
+ React.createElement(Text, { color: "gray" }, "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500")),
73
+ React.createElement(Box, { flexDirection: "column", marginBottom: 1 },
74
+ React.createElement(Box, { marginBottom: 1 },
75
+ React.createElement(Text, { bold: true, color: "white" }, "Quick Start:")),
76
+ React.createElement(Box, { flexDirection: "column", marginLeft: 2 },
77
+ React.createElement(Box, { marginBottom: 1 },
78
+ React.createElement(Text, { color: "cyan", bold: true }, "\u2192"),
79
+ React.createElement(Text, null, " "),
80
+ React.createElement(Text, { color: "green" }, "straion login"),
81
+ React.createElement(Text, { dimColor: true }, " ............ Login to your account")),
82
+ React.createElement(Box, { marginBottom: 1 },
83
+ React.createElement(Text, { color: "cyan", bold: true }, "\u2192"),
84
+ React.createElement(Text, null, " "),
85
+ React.createElement(Text, { color: "green" }, "straion logout"),
86
+ React.createElement(Text, { dimColor: true }, " ........... Logout from your account")),
87
+ React.createElement(Box, { marginBottom: 1 },
88
+ React.createElement(Text, { color: "cyan", bold: true }, "\u2192"),
89
+ React.createElement(Text, null, " "),
90
+ React.createElement(Text, { color: "green" }, "straion --help"),
91
+ React.createElement(Text, { dimColor: true }, " ........... Show all commands")))),
92
+ React.createElement(Box, { marginBottom: 1 },
93
+ React.createElement(Text, { color: "gray" }, "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500")),
94
+ React.createElement(Box, { flexDirection: "column" },
95
+ React.createElement(Box, { marginBottom: 1 },
96
+ React.createElement(Text, { dimColor: true },
97
+ "Learn more:",
98
+ ' ',
99
+ React.createElement(Text, { color: "blue" },
100
+ React.createElement(Link, { url: "https://straion.com" }, "https://straion.com")))),
101
+ React.createElement(Box, { justifyContent: "space-between", width: 71 },
102
+ React.createElement(Text, { dimColor: true }, "Version 0.0.1"),
103
+ isInteractive && React.createElement(Text, { dimColor: true }, "Press 'q' or ESC to exit")))));
38
104
  }
39
105
  //# sourceMapping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AC,IAAI,IAAC,QAAQ,kDAA6C,CACvD;gBAEN,oBAAC,GAAG,IAAC,YAAY,EAAE,CAAC;oBAClB,oBAAC,IAAI,IAAC,KAAK,EAAC,MAAM,EAAC,IAAI,mBAEhB;oBACP,oBAAC,IAAI,YAAS;oBACd,oBAAC,IAAI,IAAC,KAAK,EAAC,OAAO,qBAAsB;oBACzC,oBAAC,IAAI,IAAC,QAAQ,2CAAsC,CAChD,CACF,CACF;QAGN,oBAAC,GAAG,IAAC,YAAY,EAAE,CAAC;YAClB,oBAAC,IAAI,IAAC,KAAK,EAAC,MAAM,ibAEX,CACH;QAGN,oBAAC,GAAG,IAAC,aAAa,EAAC,QAAQ;YACzB,oBAAC,GAAG,IAAC,YAAY,EAAE,CAAC;gBAClB,oBAAC,IAAI,IAAC,QAAQ;;oBACA,GAAG;oBACf,oBAAC,IAAI,IAAC,KAAK,EAAC,MAAM;wBAChB,oBAAC,IAAI,IAAC,GAAG,EAAC,qBAAqB,0BAA2B,CACrD,CACF,CACH;YACN,oBAAC,GAAG,IAAC,cAAc,EAAC,eAAe,EAAC,KAAK,EAAE,EAAE;gBAC3C,oBAAC,IAAI,IAAC,QAAQ,0BAAqB;gBAClC,aAAa,IAAI,oBAAC,IAAI,IAAC,QAAQ,qCAAgC,CAC5D,CACF,CACF,CACP,CAAC;AACJ,CAAC"}
@@ -1,4 +1,4 @@
1
- import { type ReactNode } from 'react';
1
+ import React, { type ReactNode } from 'react';
2
2
  type LinkProps = {
3
3
  readonly children: ReactNode;
4
4
  /**
@@ -38,6 +38,6 @@ type LinkProps = {
38
38
  */
39
39
  readonly fallback?: boolean | ((text: string, url: string) => string);
40
40
  };
41
- export declare const Link: ({ children, url, fallback }: LinkProps) => import("react/jsx-runtime").JSX.Element;
41
+ export declare const Link: ({ children, url, fallback }: LinkProps) => React.JSX.Element;
42
42
  export {};
43
43
  //# sourceMappingURL=link.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../src/components/link.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,KAAK,SAAS,GAAG;IACf,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;IAE7B;;;;;;;;;;;;QAYC;IACD,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAErB;;;;;;;;;;;;;;;;;;;;QAoBC;IACD,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC,CAAC;CACvE,CAAC;AAEF,eAAO,MAAM,IAAI,GAAI,6BAAoC,SAAS,4CAIjE,CAAC"}
1
+ {"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../src/components/link.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAG9C,KAAK,SAAS,GAAG;IACf,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;IAE7B;;;;;;;;;;;;QAYC;IACD,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAErB;;;;;;;;;;;;;;;;;;;;QAoBC;IACD,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC,CAAC;CACvE,CAAC;AAEF,eAAO,MAAM,IAAI,GAAI,6BAAoC,SAAS,sBAIjE,CAAC"}
@@ -1,6 +1,6 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
1
  import { Text, Transform } from 'ink';
3
- import {} from 'react';
2
+ import React, {} from 'react';
4
3
  import terminalLink from 'terminal-link';
5
- export const Link = ({ children, url, fallback = true }) => (_jsx(Transform, { transform: (children) => terminalLink(children, url, { fallback }), children: _jsx(Text, { children: children }) }));
4
+ export const Link = ({ children, url, fallback = true }) => (React.createElement(Transform, { transform: (children) => terminalLink(children, url, { fallback }) },
5
+ React.createElement(Text, null, children)));
6
6
  //# sourceMappingURL=link.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"link.js","sourceRoot":"","sources":["../../src/components/link.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACtC,OAAO,EAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,YAAY,MAAM,eAAe,CAAC;AA4CzC,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,QAAQ,GAAG,IAAI,EAAa,EAAE,EAAE,CAAC,CACrE,KAAC,SAAS,IAAC,SAAS,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,QAAQ,EAAE,CAAC,YAC3E,KAAC,IAAI,cAAE,QAAQ,GAAQ,GACb,CACb,CAAC"}
1
+ {"version":3,"file":"link.js","sourceRoot":"","sources":["../../src/components/link.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACtC,OAAO,KAAK,EAAE,EAAkB,MAAM,OAAO,CAAC;AAC9C,OAAO,YAAY,MAAM,eAAe,CAAC;AA4CzC,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,QAAQ,GAAG,IAAI,EAAa,EAAE,EAAE,CAAC,CACrE,oBAAC,SAAS,IAAC,SAAS,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,QAAQ,EAAE,CAAC;IAC3E,oBAAC,IAAI,QAAE,QAAQ,CAAQ,CACb,CACb,CAAC"}
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import type { TokenSource } from './types.js';
3
+ export declare const LoginError: (props: {
4
+ tokenSource: TokenSource;
5
+ }) => React.JSX.Element;
6
+ //# sourceMappingURL=login-error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"login-error.d.ts","sourceRoot":"","sources":["../../../src/components/login/login-error.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAK9C,eAAO,MAAM,UAAU,GAAI,OAAO;IAAE,WAAW,EAAE,WAAW,CAAA;CAAE,sBAmB7D,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { Box, Text } from 'ink';
2
+ import React from 'react';
3
+ import { Link } from '../link.js';
4
+ const STRAION_BASEURL = process.env.STRAION_BASEURL || 'https://straion.app';
5
+ const PAT_URL = `${STRAION_BASEURL}/auth/login?redirectUrl=%2Fsettings%2Fuser-tokens`;
6
+ export const LoginError = (props) => {
7
+ const { tokenSource } = props;
8
+ return (React.createElement(Box, { flexDirection: "column", borderStyle: "single", paddingLeft: 1 },
9
+ React.createElement(Text, { color: "red" }, "\u2717 Login failed."),
10
+ tokenSource === 'env' && (React.createElement(Text, { dimColor: true }, "Token provided via STRAION_API_KEY environment variable.")),
11
+ React.createElement(Text, { dimColor: true }, "Try checking your Personal Access Token and internet connection, then try again."),
12
+ React.createElement(Box, null,
13
+ React.createElement(Text, { dimColor: true }, "You can find your Personal Access Token in your "),
14
+ React.createElement(Link, { url: PAT_URL, fallback: (text, url) => `[${text}](${url})` }, "User Settings"))));
15
+ };
16
+ //# sourceMappingURL=login-error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"login-error.js","sourceRoot":"","sources":["../../../src/components/login/login-error.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAIlC,MAAM,eAAe,GAAG,OAAO,CAAC,GAAG,CAAC,eAAe,IAAI,qBAAqB,CAAC;AAC7E,MAAM,OAAO,GAAG,GAAG,eAAe,mDAAmD,CAAC;AAEtF,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,KAAmC,EAAE,EAAE;IAChE,MAAM,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IAC9B,OAAO,CACL,oBAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,EAAC,WAAW,EAAC,QAAQ,EAAC,WAAW,EAAE,CAAC;QAC7D,oBAAC,IAAI,IAAC,KAAK,EAAC,KAAK,2BAAuB;QACvC,WAAW,KAAK,KAAK,IAAI,CACxB,oBAAC,IAAI,IAAC,QAAQ,qEAAgE,CAC/E;QACD,oBAAC,IAAI,IAAC,QAAQ,6FAEP;QACP,oBAAC,GAAG;YACF,oBAAC,IAAI,IAAC,QAAQ,6DAAwD;YACtE,oBAAC,IAAI,IAAC,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC,IAAI,IAAI,KAAK,GAAG,GAAG,oBAEzD,CACH,CACF,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -1,9 +1,15 @@
1
+ import React from 'react';
1
2
  import type { LoggedInUserFragment, OrganizationFragment } from '../../lib/graphql.js';
3
+ import type { OutputFormat } from '../../lib/output.js';
4
+ import type { TokenSource } from './types.js';
2
5
  interface LoginFlowProps {
3
6
  defaultPat?: string;
7
+ tokenSource: TokenSource;
8
+ skipOrgSelection?: boolean;
9
+ outputFormat: OutputFormat;
4
10
  onComplete: (user: LoggedInUserFragment, org: OrganizationFragment, pat: string) => void;
5
- onError: () => void;
11
+ onError: (error?: Error) => void;
6
12
  }
7
- export declare function LoginFlow({ defaultPat, onComplete, onError }: LoginFlowProps): import("react/jsx-runtime").JSX.Element;
13
+ export declare function LoginFlow({ defaultPat, tokenSource, skipOrgSelection, outputFormat, onComplete, onError, }: LoginFlowProps): React.JSX.Element | null;
8
14
  export {};
9
15
  //# sourceMappingURL=login-flow.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"login-flow.d.ts","sourceRoot":"","sources":["../../../src/components/login/login-flow.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AA8EvF,UAAU,cAAc;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,CAAC,IAAI,EAAE,oBAAoB,EAAE,GAAG,EAAE,oBAAoB,EAAE,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACzF,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,wBAAgB,SAAS,CAAC,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,cAAc,2CAM5E"}
1
+ {"version":3,"file":"login-flow.d.ts","sourceRoot":"","sources":["../../../src/components/login/login-flow.tsx"],"names":[],"mappings":"AACA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAEvF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAMxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAc9C,UAAU,cAAc;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,WAAW,CAAC;IACzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,YAAY,EAAE,YAAY,CAAC;IAC3B,UAAU,EAAE,CAAC,IAAI,EAAE,oBAAoB,EAAE,GAAG,EAAE,oBAAoB,EAAE,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACzF,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;CAClC;AAED,wBAAgB,SAAS,CAAC,EACxB,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,UAAU,EACV,OAAO,GACR,EAAE,cAAc,4BAiLhB"}