@straion/cli 0.0.2 → 0.0.3
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/CHANGELOG.md +6 -0
- package/README.md +0 -4
- package/dist/cli.d.ts +0 -4
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +3 -7
- package/dist/cli.js.map +1 -1
- package/dist/commands/default.d.ts +1 -2
- package/dist/commands/default.d.ts.map +1 -1
- package/dist/commands/default.js +7 -42
- package/dist/commands/default.js.map +1 -1
- package/dist/commands/find-requirements.d.ts.map +1 -1
- package/dist/commands/find-requirements.integration.test.js +17 -56
- package/dist/commands/find-requirements.integration.test.js.map +1 -1
- package/dist/commands/find-requirements.js +20 -32
- package/dist/commands/find-requirements.js.map +1 -1
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.js +2 -0
- package/dist/commands/index.js.map +1 -1
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/login.integration.test.js +21 -142
- package/dist/commands/login.integration.test.js.map +1 -1
- package/dist/commands/login.js +10 -4
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/logout.d.ts.map +1 -1
- package/dist/commands/logout.js +7 -22
- package/dist/commands/logout.js.map +1 -1
- package/dist/commands/session-start.d.ts.map +1 -1
- package/dist/commands/session-start.js +1 -8
- package/dist/commands/session-start.js.map +1 -1
- package/dist/commands/setup.d.ts +3 -0
- package/dist/commands/setup.d.ts.map +1 -0
- package/dist/commands/setup.js +23 -0
- package/dist/commands/setup.js.map +1 -0
- package/dist/components/banner.d.ts +3 -0
- package/dist/components/banner.d.ts.map +1 -0
- package/dist/components/banner.js +13 -0
- package/dist/components/banner.js.map +1 -0
- package/dist/components/default-flow.d.ts +11 -0
- package/dist/components/default-flow.d.ts.map +1 -0
- package/dist/components/default-flow.js +64 -0
- package/dist/components/default-flow.js.map +1 -0
- package/dist/components/hero.d.ts.map +1 -1
- package/dist/components/hero.js +22 -28
- package/dist/components/hero.js.map +1 -1
- package/dist/components/login/login-error.d.ts.map +1 -1
- package/dist/components/login/login-error.js +2 -4
- package/dist/components/login/login-error.js.map +1 -1
- package/dist/components/login/login-flow.d.ts +3 -3
- package/dist/components/login/login-flow.d.ts.map +1 -1
- package/dist/components/login/login-flow.js +19 -49
- package/dist/components/login/login-flow.js.map +1 -1
- package/dist/components/login/login-flow.test.js +8 -8
- package/dist/components/login/login-flow.test.js.map +1 -1
- package/dist/components/login/user-settings-link.d.ts +3 -0
- package/dist/components/login/user-settings-link.d.ts.map +1 -0
- package/dist/components/login/user-settings-link.js +8 -0
- package/dist/components/login/user-settings-link.js.map +1 -0
- package/dist/components/multi-select.d.ts +16 -0
- package/dist/components/multi-select.d.ts.map +1 -0
- package/dist/components/multi-select.js +105 -0
- package/dist/components/multi-select.js.map +1 -0
- package/dist/components/org-selector.d.ts.map +1 -1
- package/dist/components/org-selector.js +3 -1
- package/dist/components/org-selector.js.map +1 -1
- package/dist/components/pat-input.js +1 -1
- package/dist/components/pat-input.js.map +1 -1
- package/dist/components/setup/agent-setup.d.ts +9 -0
- package/dist/components/setup/agent-setup.d.ts.map +1 -0
- package/dist/components/setup/agent-setup.js +65 -0
- package/dist/components/setup/agent-setup.js.map +1 -0
- package/dist/components/setup/agents/agent-registry.d.ts +44 -0
- package/dist/components/setup/agents/agent-registry.d.ts.map +1 -0
- package/dist/components/setup/agents/agent-registry.js +64 -0
- package/dist/components/setup/agents/agent-registry.js.map +1 -0
- package/dist/components/setup/agents/command-helpers.d.ts +5 -0
- package/dist/components/setup/agents/command-helpers.d.ts.map +1 -0
- package/dist/components/setup/agents/command-helpers.js +28 -0
- package/dist/components/setup/agents/command-helpers.js.map +1 -0
- package/dist/components/setup/checking-agents.d.ts +16 -0
- package/dist/components/setup/checking-agents.d.ts.map +1 -0
- package/dist/components/setup/checking-agents.js +30 -0
- package/dist/components/setup/checking-agents.js.map +1 -0
- package/dist/components/setup/download-skills-and-plugins.d.ts +9 -0
- package/dist/components/setup/download-skills-and-plugins.d.ts.map +1 -0
- package/dist/components/setup/download-skills-and-plugins.js +29 -0
- package/dist/components/setup/download-skills-and-plugins.js.map +1 -0
- package/dist/components/setup/perform-setup.d.ts +23 -0
- package/dist/components/setup/perform-setup.d.ts.map +1 -0
- package/dist/components/setup/perform-setup.js +45 -0
- package/dist/components/setup/perform-setup.js.map +1 -0
- package/dist/components/spinner.d.ts +6 -2
- package/dist/components/spinner.d.ts.map +1 -1
- package/dist/components/spinner.js +12 -3
- package/dist/components/spinner.js.map +1 -1
- package/dist/hooks/use-credentials.d.ts +13 -0
- package/dist/hooks/use-credentials.d.ts.map +1 -0
- package/dist/hooks/use-credentials.js +33 -0
- package/dist/hooks/use-credentials.js.map +1 -0
- package/dist/lib/graphql.d.ts +57 -41
- package/dist/lib/graphql.d.ts.map +1 -1
- package/dist/lib/graphql.js +7 -0
- package/dist/lib/graphql.js.map +1 -1
- package/dist/lib/logger.d.ts +13 -8
- package/dist/lib/logger.d.ts.map +1 -1
- package/dist/lib/logger.js +6 -29
- package/dist/lib/logger.js.map +1 -1
- package/dist/lib/login.d.ts.map +1 -1
- package/dist/lib/middleware.d.ts +4 -8
- package/dist/lib/middleware.d.ts.map +1 -1
- package/dist/lib/middleware.js +5 -9
- package/dist/lib/middleware.js.map +1 -1
- package/dist/lib/skills-manager.d.ts +33 -0
- package/dist/lib/skills-manager.d.ts.map +1 -0
- package/dist/lib/skills-manager.js +233 -0
- package/dist/lib/skills-manager.js.map +1 -0
- package/dist/lib/skills-manager.test.d.ts +7 -0
- package/dist/lib/skills-manager.test.d.ts.map +1 -0
- package/dist/lib/skills-manager.test.js +248 -0
- package/dist/lib/skills-manager.test.js.map +1 -0
- package/dist/state/global-config.d.ts +23 -9
- package/dist/state/global-config.d.ts.map +1 -1
- package/dist/state/global-config.js +42 -36
- package/dist/state/global-config.js.map +1 -1
- package/dist/state/session-manager.js +2 -2
- package/dist/state/session-manager.js.map +1 -1
- package/dist/test/integration-helpers.d.ts +0 -5
- package/dist/test/integration-helpers.d.ts.map +1 -1
- package/dist/test/integration-helpers.js +0 -16
- package/dist/test/integration-helpers.js.map +1 -1
- package/package.json +15 -4
- package/dist/lib/output.d.ts +0 -16
- package/dist/lib/output.d.ts.map +0 -1
- package/dist/lib/output.js +0 -14
- package/dist/lib/output.js.map +0 -1
- package/dist/state/directory-config.d.ts +0 -21
- package/dist/state/directory-config.d.ts.map +0 -1
- package/dist/state/directory-config.js +0 -59
- package/dist/state/directory-config.js.map +0 -1
- /package/{LICENSE.txt → LICENSE} +0 -0
package/dist/commands/login.js
CHANGED
|
@@ -5,12 +5,12 @@ import { LoginFlow } from '../components/login/login-flow.js';
|
|
|
5
5
|
import {} from '../lib/graphql.js';
|
|
6
6
|
import { createInkPromise, renderInk } from '../lib/ink-render.js';
|
|
7
7
|
import { withLogging } from '../lib/middleware.js';
|
|
8
|
-
import {
|
|
8
|
+
import { config, saveConfig } from '../state/global-config.js';
|
|
9
9
|
export function createLoginCommand() {
|
|
10
10
|
return new Command('login')
|
|
11
11
|
.description('Authenticate with a Personal Access Token')
|
|
12
12
|
.option('--token <token>', 'Personal Access Token')
|
|
13
|
-
.action(withLogging(async (options, { logger
|
|
13
|
+
.action(withLogging(async (options, { logger }) => {
|
|
14
14
|
try {
|
|
15
15
|
// Token resolution: --token flag takes precedence over env var
|
|
16
16
|
const token = options.token || process.env.STRAION_API_KEY;
|
|
@@ -20,9 +20,12 @@ export function createLoginCommand() {
|
|
|
20
20
|
? 'env'
|
|
21
21
|
: 'input';
|
|
22
22
|
const skipOrgSelection = !!token;
|
|
23
|
+
logger.info({ tokenSource }, 'Starting login process');
|
|
23
24
|
const { promise, resolve, reject } = createInkPromise();
|
|
24
|
-
|
|
25
|
+
logger.debug('Rendering TUI for login flow');
|
|
26
|
+
await renderInk(React.createElement(LoginFlow, { defaultPat: token, tokenSource: tokenSource, skipOrgSelection: skipOrgSelection, onComplete: (user, org, pat) => resolve({ user, org, pat }), onError: (error) => reject(error) }));
|
|
25
27
|
const { user, org, pat } = await promise;
|
|
28
|
+
logger.info({ userId: user.id, orgId: org.id }, 'Login successful');
|
|
26
29
|
// Store credentials in secure storage
|
|
27
30
|
const credentialManager = await createCredentialManager();
|
|
28
31
|
await credentialManager.setCredentials({
|
|
@@ -30,8 +33,11 @@ export function createLoginCommand() {
|
|
|
30
33
|
name: user.firstName ?? user.name,
|
|
31
34
|
accessToken: pat,
|
|
32
35
|
});
|
|
36
|
+
logger.debug('Stored user credentials in credential manager');
|
|
33
37
|
// Store global org
|
|
34
|
-
|
|
38
|
+
config.globalOrg = org;
|
|
39
|
+
saveConfig();
|
|
40
|
+
logger.debug(`Set global organization to ${org.name} (${org.id})`);
|
|
35
41
|
}
|
|
36
42
|
catch (error) {
|
|
37
43
|
logger.error({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.js","sourceRoot":"","sources":["../../src/commands/login.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAE9D,OAAO,EAAwD,MAAM,mBAAmB,CAAC;AACzF,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"login.js","sourceRoot":"","sources":["../../src/commands/login.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAE9D,OAAO,EAAwD,MAAM,mBAAmB,CAAC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OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
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,CA0B7C"}
|
package/dist/commands/logout.js
CHANGED
|
@@ -4,36 +4,21 @@ 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';
|
|
8
|
-
import { globalConfig } from '../state/global-config.js';
|
|
9
7
|
export function createLogoutCommand() {
|
|
10
|
-
return new Command('logout').description('Log out and clear stored credentials').action(withLogging(async (_, { logger
|
|
11
|
-
const isJsonOutput = outputFormat === 'json';
|
|
8
|
+
return new Command('logout').description('Log out and clear stored credentials').action(withLogging(async (_, { logger }) => {
|
|
12
9
|
try {
|
|
13
10
|
// Clear credentials from keychain
|
|
14
11
|
const credentialManager = await createCredentialManager();
|
|
15
12
|
await credentialManager.deleteCredentials();
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
}
|
|
13
|
+
await renderInk(React.createElement(Box, { flexDirection: "column", borderStyle: "single", paddingLeft: 1 },
|
|
14
|
+
React.createElement(Text, { color: "green" }, "\u2713 Logged out successfully.")));
|
|
25
15
|
}
|
|
26
16
|
catch (error) {
|
|
27
17
|
const errorMessage = error instanceof Error ? error.message : 'Unknown error';
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
await renderInk(React.createElement(Box, { flexDirection: "column", borderStyle: "single", paddingLeft: 1 },
|
|
33
|
-
React.createElement(Text, { color: "red" },
|
|
34
|
-
"\u2717 Logout failed: ",
|
|
35
|
-
errorMessage)));
|
|
36
|
-
}
|
|
18
|
+
await renderInk(React.createElement(Box, { flexDirection: "column", borderStyle: "single", paddingLeft: 1 },
|
|
19
|
+
React.createElement(Text, { color: "red" },
|
|
20
|
+
"\u2717 Logout failed: ",
|
|
21
|
+
errorMessage)));
|
|
37
22
|
logger.error({ error: errorMessage }, 'Logout command failed');
|
|
38
23
|
process.exit(1);
|
|
39
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logout.js","sourceRoot":"","sources":["../../src/commands/logout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"logout.js","sourceRoot":"","sources":["../../src/commands/logout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,MAAM,UAAU,mBAAmB;IACjC,OAAO,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC,WAAW,CAAC,sCAAsC,CAAC,CAAC,MAAM,CACrF,WAAW,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;QAClC,IAAI,CAAC;YACH,kCAAkC;YAClC,MAAM,iBAAiB,GAAG,MAAM,uBAAuB,EAAE,CAAC;YAC1D,MAAM,iBAAiB,CAAC,iBAAiB,EAAE,CAAC;YAE5C,MAAM,SAAS,CACb,oBAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,EAAC,WAAW,EAAC,QAAQ,EAAC,WAAW,EAAE,CAAC;gBAC7D,oBAAC,IAAI,IAAC,KAAK,EAAC,OAAO,sCAAkC,CACjD,CACP,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,YAAY,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,CAAC;YAE9E,MAAM,SAAS,CACb,oBAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,EAAC,WAAW,EAAC,QAAQ,EAAC,WAAW,EAAE,CAAC;gBAC7D,oBAAC,IAAI,IAAC,KAAK,EAAC,KAAK;;oBAAmB,YAAY,CAAQ,CACpD,CACP,CAAC;YACF,MAAM,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,EAAE,uBAAuB,CAAC,CAAC;YAC/D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;IACH,CAAC,CAAC,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;AAIpC,wBAAgB,yBAAyB,IAAI,OAAO,CAWnD"}
|
|
@@ -1,19 +1,12 @@
|
|
|
1
1
|
import { Command } from 'commander';
|
|
2
2
|
import { withAuthAndLogging } from '../lib/middleware.js';
|
|
3
|
-
import { outputJson } from '../lib/output.js';
|
|
4
3
|
export function createSessionStartCommand() {
|
|
5
4
|
return new Command('session-start')
|
|
6
5
|
.description('Initialize a Straion session for the current directory')
|
|
7
6
|
.requiredOption('--session <id>', 'Session ID from the calling agent')
|
|
8
|
-
.action(withAuthAndLogging(async (
|
|
7
|
+
.action(withAuthAndLogging(async (_, { logger, organization }) => {
|
|
9
8
|
logger.info('Session start initiated');
|
|
10
9
|
logger.info({ orgId: organization.id }, 'Session started successfully');
|
|
11
|
-
if (outputFormat === 'json') {
|
|
12
|
-
outputJson({ success: true, organizationId: organization.id });
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
console.log(`${String.fromCodePoint(0x1f43f)} Straion session started...`);
|
|
16
|
-
}
|
|
17
10
|
}));
|
|
18
11
|
}
|
|
19
12
|
//# 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;
|
|
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,CAAC,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,EAAE;QACvD,MAAM,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;QAEvC,MAAM,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,YAAY,CAAC,EAAE,EAAE,EAAE,8BAA8B,CAAC,CAAC;IAC1E,CAAC,CAAC,CACH,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/commands/setup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA2BpC,wBAAgB,kBAAkB,IAAI,OAAO,CAO5C"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Command } from 'commander';
|
|
2
|
+
import { Box, useApp } from 'ink';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Banner } from '../components/banner.js';
|
|
5
|
+
import { AgentSetup } from '../components/setup/agent-setup.js';
|
|
6
|
+
import { renderInk } from '../lib/ink-render.js';
|
|
7
|
+
import { withLogging } from '../lib/middleware.js';
|
|
8
|
+
function SetupCommand({ logger }) {
|
|
9
|
+
const { exit } = useApp();
|
|
10
|
+
return (React.createElement(Box, { flexDirection: "column", paddingY: 1, paddingX: 2 },
|
|
11
|
+
React.createElement(Banner, null),
|
|
12
|
+
React.createElement(AgentSetup, { logger: logger, onComplete: () => {
|
|
13
|
+
logger.info('Setup completed.');
|
|
14
|
+
exit();
|
|
15
|
+
} })));
|
|
16
|
+
}
|
|
17
|
+
export function createSetupCommand() {
|
|
18
|
+
return new Command('setup').description('Set up your coding agents to use Straion').action(withLogging(async (options, { logger }) => {
|
|
19
|
+
logger.info('Setup started.');
|
|
20
|
+
await renderInk(React.createElement(SetupCommand, { logger: logger }));
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
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AAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../src/components/banner.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,eAAO,MAAM,MAAM,yBAElB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Text } from 'ink';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
const straionAscii = `
|
|
4
|
+
███████╗████████╗██████╗ █████╗ ██╗ ██████╗ ███╗ ██╗
|
|
5
|
+
██╔════╝╚══██╔══╝██╔══██╗██╔══██╗██║██╔═══██╗████╗ ██║
|
|
6
|
+
███████╗ ██║ ██████╔╝███████║██║██║ ██║██╔██╗ ██║
|
|
7
|
+
╚════██║ ██║ ██╔══██╗██╔══██║██║██║ ██║██║╚██╗██║
|
|
8
|
+
███████║ ██║ ██║ ██║██║ ██║██║╚██████╔╝██║ ╚████║
|
|
9
|
+
╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═════╝ ╚═╝ ╚═══╝`;
|
|
10
|
+
export const Banner = () => {
|
|
11
|
+
return React.createElement(Text, null, straionAscii);
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=banner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"banner.js","sourceRoot":"","sources":["../../src/components/banner.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAC3B,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,YAAY,GAAG;;;;;;wDAMmC,CAAC;AAEzD,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,EAAE;IACzB,OAAO,oBAAC,IAAI,QAAE,YAAY,CAAQ,CAAC;AACrC,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Logger } from 'pino';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { type StoredCredentials } from '../auth/credentials.js';
|
|
4
|
+
interface DefaultFlowProps {
|
|
5
|
+
logger: Logger;
|
|
6
|
+
credentials: StoredCredentials | null;
|
|
7
|
+
defaultSetupDismissed: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function DefaultFlow({ logger, credentials, defaultSetupDismissed }: DefaultFlowProps): React.JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=default-flow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-flow.d.ts","sourceRoot":"","sources":["../../src/components/default-flow.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,KAAgC,MAAM,OAAO,CAAC;AAErD,OAAO,EAA2B,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAWzF,UAAU,gBAAgB;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACtC,qBAAqB,EAAE,OAAO,CAAC;CAChC;AAED,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,EAAE,gBAAgB,qBA0F3F"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Box, Text, useInput } from 'ink';
|
|
2
|
+
import React, { useCallback, useState } from 'react';
|
|
3
|
+
import { createCredentialManager } from '../auth/credentials.js';
|
|
4
|
+
import { Banner } from '../components/banner.js';
|
|
5
|
+
import { Hero } from '../components/hero.js';
|
|
6
|
+
import { LoginFlow } from '../components/login/login-flow.js';
|
|
7
|
+
import { useHasValidCredentials } from '../hooks/use-credentials.js';
|
|
8
|
+
import { config, saveConfig } from '../state/global-config.js';
|
|
9
|
+
import { AgentSetup } from './setup/agent-setup.js';
|
|
10
|
+
import { Spinner } from './spinner.js';
|
|
11
|
+
export function DefaultFlow({ logger, credentials, defaultSetupDismissed }) {
|
|
12
|
+
const { hasValidCredentials, organizations, isFinished: credentialsCheckFinished, } = useHasValidCredentials({
|
|
13
|
+
credentials,
|
|
14
|
+
logger,
|
|
15
|
+
});
|
|
16
|
+
const [loginPerformed, setLoginPerformed] = useState(false);
|
|
17
|
+
const [setupDismissed, setSetupDismissed] = useState(defaultSetupDismissed);
|
|
18
|
+
const [showSetupFinished, setShowSetupFinished] = useState(false);
|
|
19
|
+
const showLogin = credentialsCheckFinished && !hasValidCredentials;
|
|
20
|
+
const showAgentSetup = (credentialsCheckFinished && hasValidCredentials) || loginPerformed;
|
|
21
|
+
const handleLoginComplete = useCallback(async (user, org, pat) => {
|
|
22
|
+
// Store credentials
|
|
23
|
+
const credentialManager = await createCredentialManager();
|
|
24
|
+
await credentialManager.setCredentials({
|
|
25
|
+
userId: user.id,
|
|
26
|
+
name: user.firstName ?? user.name,
|
|
27
|
+
accessToken: pat,
|
|
28
|
+
});
|
|
29
|
+
logger.debug('Stored user credentials in credential manager');
|
|
30
|
+
// Store global org
|
|
31
|
+
config.globalOrg = org;
|
|
32
|
+
saveConfig();
|
|
33
|
+
setLoginPerformed(true);
|
|
34
|
+
}, [logger]);
|
|
35
|
+
const handleLoginError = useCallback((error) => {
|
|
36
|
+
logger.error({ error: error?.message ?? 'Unknown error' }, 'Login failed');
|
|
37
|
+
}, [logger]);
|
|
38
|
+
const handleSetupComplete = useCallback(() => {
|
|
39
|
+
config.setupDismissed = true;
|
|
40
|
+
saveConfig();
|
|
41
|
+
setShowSetupFinished(true);
|
|
42
|
+
}, []);
|
|
43
|
+
useInput((_, key) => {
|
|
44
|
+
if (key.escape) {
|
|
45
|
+
logger.info('Setup dismissed by user');
|
|
46
|
+
config.setupDismissed = true;
|
|
47
|
+
saveConfig();
|
|
48
|
+
setSetupDismissed(true);
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
return (React.createElement(Box, { flexDirection: "column", paddingY: 1, paddingX: 2, gap: 1 },
|
|
52
|
+
React.createElement(Banner, null),
|
|
53
|
+
setupDismissed ? (React.createElement(Hero, { localOrg: config.globalOrg, credentials: credentials, organizations: organizations })) : (React.createElement(React.Fragment, null,
|
|
54
|
+
React.createElement(Box, { width: 80, flexDirection: 'column', gap: 1, borderStyle: 'classic', padding: 1 },
|
|
55
|
+
React.createElement(Text, null, "This is a first time setup to help you get started with Straion."),
|
|
56
|
+
React.createElement(Text, { dimColor: true }, "You can press ESC to skip the setup.")),
|
|
57
|
+
!credentialsCheckFinished ? React.createElement(Spinner, null, "Checking credentials...") : null,
|
|
58
|
+
showLogin ? (React.createElement(LoginFlow, { tokenSource: "input", onComplete: handleLoginComplete, onError: handleLoginError })) : null,
|
|
59
|
+
showAgentSetup ? React.createElement(AgentSetup, { logger: logger, onComplete: handleSetupComplete }) : null,
|
|
60
|
+
showSetupFinished ? (React.createElement(Box, { flexDirection: "column", gap: 1 },
|
|
61
|
+
React.createElement(Text, { color: "green" }, "\u2713 Setup completed!"),
|
|
62
|
+
React.createElement(Text, { dimColor: true }, "You can press ESC to dismiss."))) : null))));
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=default-flow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-flow.js","sourceRoot":"","sources":["../../src/components/default-flow.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAE1C,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,EAAE,uBAAuB,EAA0B,MAAM,wBAAwB,CAAC;AACzF,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE,OAAO,EAAE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BACjF,oBAAC,IAAI,2EAAwE;gBAC7E,oBAAC,IAAI,IAAC,QAAQ,iDAA4C,CACtD;YACL,CAAC,wBAAwB,CAAC,CAAC,CAAC,oBAAC,OAAO,kCAAkC,CAAC,CAAC,CAAC,IAAI;YAC7E,SAAS,CAAC,CAAC,CAAC,CACX,oBAAC,SAAS,IACR,WAAW,EAAC,OAAO,EACnB,UAAU,EAAE,mBAAmB,EAC/B,OAAO,EAAE,gBAAgB,GACzB,CACH,CAAC,CAAC,CAAC,IAAI;YAEP,cAAc,CAAC,CAAC,CAAC,oBAAC,UAAU,IAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,mBAAmB,GAAI,CAAC,CAAC,CAAC,IAAI;YACvF,iBAAiB,CAAC,CAAC,CAAC,CACnB,oBAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,EAAC,GAAG,EAAE,CAAC;gBAChC,oBAAC,IAAI,IAAC,KAAK,EAAC,OAAO,8BAA0B;gBAC7C,oBAAC,IAAI,IAAC,QAAQ,0CAAqC,CAC/C,CACP,CAAC,CAAC,CAAC,IAAI,CACP,CACJ,CACG,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hero.d.ts","sourceRoot":"","sources":["../../src/components/hero.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"hero.d.ts","sourceRoot":"","sources":["../../src/components/hero.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAiB9D,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;AAED,wBAAgB,IAAI,CAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE,SAAS,qBA+JvE"}
|
package/dist/components/hero.js
CHANGED
|
@@ -1,29 +1,18 @@
|
|
|
1
1
|
import { Box, Text, useApp, useInput } from 'ink';
|
|
2
2
|
import React, { useEffect, useState } from 'react';
|
|
3
3
|
import { create } from 'zustand';
|
|
4
|
-
import
|
|
4
|
+
import packageJson from '../../package.json' with { type: 'json' };
|
|
5
|
+
import { config, saveConfig } from '../state/global-config.js';
|
|
5
6
|
import { Button } from './button.js';
|
|
6
7
|
import { Link } from './link.js';
|
|
7
8
|
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
|
-
}
|
|
12
9
|
const useHeroStore = create((set) => ({
|
|
13
10
|
loginViewState: { type: 'idle' },
|
|
14
11
|
setLoginViewState: (state) => set({ loginViewState: state }),
|
|
15
12
|
}));
|
|
16
|
-
const straionAscii = `
|
|
17
|
-
███████╗████████╗██████╗ █████╗ ██╗ ██████╗ ███╗ ██╗
|
|
18
|
-
██╔════╝╚══██╔══╝██╔══██╗██╔══██╗██║██╔═══██╗████╗ ██║
|
|
19
|
-
███████╗ ██║ ██████╔╝███████║██║██║ ██║██╔██╗ ██║
|
|
20
|
-
╚════██║ ██║ ██╔══██╗██╔══██║██║██║ ██║██║╚██╗██║
|
|
21
|
-
███████║ ██║ ██║ ██║██║ ██║██║╚██████╔╝██║ ╚████║
|
|
22
|
-
╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═════╝ ╚═╝ ╚═══╝
|
|
23
|
-
`;
|
|
24
13
|
export function Hero({ credentials, localOrg, organizations }) {
|
|
25
14
|
const { exit } = useApp();
|
|
26
|
-
const isInteractive =
|
|
15
|
+
const isInteractive = process.stdout.isTTY === true;
|
|
27
16
|
const { loginViewState, setLoginViewState } = useHeroStore();
|
|
28
17
|
const [currentOrg, setCurrentOrg] = useState(localOrg);
|
|
29
18
|
const hasMultipleOrgs = organizations !== null && organizations.length > 1;
|
|
@@ -39,11 +28,10 @@ export function Hero({ credentials, localOrg, organizations }) {
|
|
|
39
28
|
exit();
|
|
40
29
|
}
|
|
41
30
|
}, [isInteractive, exit]);
|
|
42
|
-
return (React.createElement(Box, { flexDirection: "column", paddingY: 1
|
|
43
|
-
React.createElement(Text, null, straionAscii),
|
|
31
|
+
return (React.createElement(Box, { flexDirection: "column", paddingY: 1 },
|
|
44
32
|
React.createElement(Box, { marginBottom: 1 },
|
|
45
33
|
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: "
|
|
34
|
+
credentials && currentOrg ? (React.createElement(Box, { flexDirection: "column", borderStyle: "classic", paddingLeft: 1, marginBottom: 1 },
|
|
47
35
|
React.createElement(Text, null,
|
|
48
36
|
"Hello ",
|
|
49
37
|
React.createElement(Text, { bold: true }, credentials.name),
|
|
@@ -60,11 +48,12 @@ export function Hero({ credentials, localOrg, organizations }) {
|
|
|
60
48
|
" Switch Organization")) : null,
|
|
61
49
|
loginViewState.type === 'switch-org' && hasMultipleOrgs && currentOrg ? (React.createElement(OrgSelector, { organizations: loginViewState.orgs, defaultOrganization: currentOrg, onSelect: (org) => {
|
|
62
50
|
setCurrentOrg(org);
|
|
63
|
-
|
|
51
|
+
config.globalOrg = org;
|
|
52
|
+
saveConfig();
|
|
64
53
|
setLoginViewState({ type: 'idle' });
|
|
65
|
-
} })) : null)))) : (React.createElement(Box, { flexDirection: "column", borderStyle: "
|
|
54
|
+
} })) : null)))) : (React.createElement(Box, { flexDirection: "column", borderStyle: "classic", paddingLeft: 1, marginBottom: 1 },
|
|
66
55
|
React.createElement(Text, { color: "yellow" }, "\u26A0 Not logged in"),
|
|
67
|
-
React.createElement(Text,
|
|
56
|
+
React.createElement(Text, null,
|
|
68
57
|
"Run ",
|
|
69
58
|
React.createElement(Text, { color: "green" }, "straion login"),
|
|
70
59
|
" to authenticate."))),
|
|
@@ -84,6 +73,11 @@ export function Hero({ credentials, localOrg, organizations }) {
|
|
|
84
73
|
React.createElement(Text, null, " "),
|
|
85
74
|
React.createElement(Text, { color: "green" }, "straion logout"),
|
|
86
75
|
React.createElement(Text, { dimColor: true }, " ........... Logout from your account")),
|
|
76
|
+
React.createElement(Box, { marginBottom: 1 },
|
|
77
|
+
React.createElement(Text, { color: "cyan", bold: true }, "\u2192"),
|
|
78
|
+
React.createElement(Text, null, " "),
|
|
79
|
+
React.createElement(Text, { color: "green" }, "straion setup"),
|
|
80
|
+
React.createElement(Text, { dimColor: true }, " ............ Setup your coding agents")),
|
|
87
81
|
React.createElement(Box, { marginBottom: 1 },
|
|
88
82
|
React.createElement(Text, { color: "cyan", bold: true }, "\u2192"),
|
|
89
83
|
React.createElement(Text, null, " "),
|
|
@@ -92,14 +86,14 @@ export function Hero({ credentials, localOrg, organizations }) {
|
|
|
92
86
|
React.createElement(Box, { marginBottom: 1 },
|
|
93
87
|
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
88
|
React.createElement(Box, { flexDirection: "column" },
|
|
95
|
-
React.createElement(Box, { marginBottom: 1 },
|
|
96
|
-
React.createElement(Text,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
React.createElement(Text, { color: "blue" },
|
|
100
|
-
React.createElement(Link, { url: "https://straion.com" }, "https://straion.com")))),
|
|
89
|
+
React.createElement(Box, { marginBottom: 1, gap: 1 },
|
|
90
|
+
React.createElement(Text, null, "Learn more:"),
|
|
91
|
+
React.createElement(Link, { url: "https://straion.com", fallback: false },
|
|
92
|
+
React.createElement(Text, { color: "blue" }, "https://straion.com"))),
|
|
101
93
|
React.createElement(Box, { justifyContent: "space-between", width: 71 },
|
|
102
|
-
React.createElement(Text, { dimColor: true },
|
|
103
|
-
|
|
94
|
+
React.createElement(Text, { dimColor: true },
|
|
95
|
+
"Version ",
|
|
96
|
+
packageJson.version),
|
|
97
|
+
isInteractive && React.createElement(Text, { dimColor: true }, "Press ESC to exit")))));
|
|
104
98
|
}
|
|
105
99
|
//# sourceMappingURL=hero.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hero.js","sourceRoot":"","sources":["../../src/components/hero.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAClD,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"hero.js","sourceRoot":"","sources":["../../src/components/hero.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAClD,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjC,OAAO,WAAW,MAAM,oBAAoB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAGnE,OAAO,EAAE,MAAM,EAAE,UAA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
|
+
{"version":3,"file":"login-error.d.ts","sourceRoot":"","sources":["../../../src/components/login/login-error.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAG9C,eAAO,MAAM,UAAU,GAAI,OAAO;IAAE,WAAW,EAAE,WAAW,CAAA;CAAE,sBAiB7D,CAAC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { Box, Text } from 'ink';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
4
|
-
const STRAION_BASEURL = process.env.STRAION_BASEURL || 'https://straion.app';
|
|
5
|
-
const PAT_URL = `${STRAION_BASEURL}/auth/login?redirectUrl=%2Fsettings%2Fuser-tokens`;
|
|
3
|
+
import { UserSettingsLink } from './user-settings-link.js';
|
|
6
4
|
export const LoginError = (props) => {
|
|
7
5
|
const { tokenSource } = props;
|
|
8
6
|
return (React.createElement(Box, { flexDirection: "column", borderStyle: "single", paddingLeft: 1 },
|
|
@@ -11,6 +9,6 @@ export const LoginError = (props) => {
|
|
|
11
9
|
React.createElement(Text, { dimColor: true }, "Try checking your Personal Access Token and internet connection, then try again."),
|
|
12
10
|
React.createElement(Box, null,
|
|
13
11
|
React.createElement(Text, { dimColor: true }, "You can find your Personal Access Token in your "),
|
|
14
|
-
React.createElement(
|
|
12
|
+
React.createElement(UserSettingsLink, null))));
|
|
15
13
|
};
|
|
16
14
|
//# sourceMappingURL=login-error.js.map
|
|
@@ -1 +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;
|
|
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;AAG1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,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,gBAAgB,OAAG,CAChB,CACF,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { LoggedInUserFragment, OrganizationFragment } from '../../lib/graphql.js';
|
|
3
|
-
import type { OutputFormat } from '../../lib/output.js';
|
|
4
3
|
import type { TokenSource } from './types.js';
|
|
5
4
|
interface LoginFlowProps {
|
|
6
5
|
defaultPat?: string;
|
|
7
6
|
tokenSource: TokenSource;
|
|
8
7
|
skipOrgSelection?: boolean;
|
|
9
|
-
|
|
8
|
+
/** If true, the component will not call exit() after completion. Parent controls app lifecycle. */
|
|
9
|
+
noExit?: boolean;
|
|
10
10
|
onComplete: (user: LoggedInUserFragment, org: OrganizationFragment, pat: string) => void;
|
|
11
11
|
onError: (error?: Error) => void;
|
|
12
12
|
}
|
|
13
|
-
export declare function LoginFlow({ defaultPat, tokenSource, skipOrgSelection,
|
|
13
|
+
export declare function LoginFlow({ defaultPat, tokenSource, skipOrgSelection, onComplete, onError, }: LoginFlowProps): React.JSX.Element | null;
|
|
14
14
|
export {};
|
|
15
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":"AACA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;
|
|
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;AAQvF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAe9C,UAAU,cAAc;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,WAAW,CAAC;IACzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,mGAAmG;IACnG,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,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,UAAU,EACV,OAAO,GACR,EAAE,cAAc,4BAqIhB"}
|