@joripspace/cli 0.6.1 → 0.8.0
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/LICENSE +21 -21
- package/README.md +82 -8
- package/THIRD_PARTY_NOTICES.md +136 -136
- package/bin/joripspace.js +51 -163
- package/lib/approval-login.js +88 -0
- package/lib/connection-persistence.js +1 -1
- package/lib/credential-store.js +2 -2
- package/lib/deploy-prepare.js +48 -0
- package/lib/deployment-error.js +14 -14
- package/lib/help.js +23 -15
- package/lib/login-command.js +19 -0
- package/lib/project-create.js +1 -1
- package/lib/secret-commands.js +5 -5
- package/lib/start-command.js +5 -6
- package/lib/start.js +1507 -1507
- package/package.json +1 -1
- package/vendor/core/cli-onboarding.cjs +13 -9
- package/vendor/core/onboarding.cjs +26 -29
- package/vendor/core/secret-entry.cjs +38 -0
- package/vendor/core/template-publish-workflow.cjs +169 -169
- package/vendor/templates/index.js +104 -104
- package/vendor/templates/templates/basic-worker/files/worker.js +9 -9
- package/vendor/templates/templates/basic-worker/manifest.json +14 -14
- package/vendor/templates/templates/r2-file-api/files/worker.js +42 -42
- package/vendor/templates/templates/r2-file-api/manifest.json +7 -7
package/lib/start-command.js
CHANGED
|
@@ -46,8 +46,9 @@ function createStartProjectCommand(
|
|
|
46
46
|
const apiUrlArgument = connection?.apiBaseUrl
|
|
47
47
|
? ` --api-url ${quoteCliArgument(connection.apiBaseUrl)}`
|
|
48
48
|
: '';
|
|
49
|
+
const loginMethod = `--no-open --project ${quoteCliArgument(project)}`;
|
|
49
50
|
const invocation = `${executable === path.resolve(process.argv[1] || '') ? quoteCliArgument(process.execPath) + ' ' : ''}${quoteCliArgument(executable)}`;
|
|
50
|
-
const loginCommand = `${invocation} login
|
|
51
|
+
const loginCommand = `${invocation} login ${loginMethod} --cwd ${quoteCliArgument(cwd)}${apiUrlArgument} --json`;
|
|
51
52
|
const resumeCommand = `${invocation} start ${quoteCliArgument(project)} --cwd ${quoteCliArgument(cwd)} --json`;
|
|
52
53
|
const value = {
|
|
53
54
|
ok: false,
|
|
@@ -55,14 +56,12 @@ function createStartProjectCommand(
|
|
|
55
56
|
project,
|
|
56
57
|
cwd,
|
|
57
58
|
executable,
|
|
58
|
-
|
|
59
|
-
message: message(
|
|
60
|
-
'Approve the connection in your browser and exchange the displayed five-minute one-time code first.',
|
|
61
|
-
'브라우저에서 연결을 승인하고 표시된 5분 일회용 연결 코드를 먼저 교환하세요.'
|
|
62
|
-
),
|
|
59
|
+
message: message('Run login_command, show its approval_url to the user, wait for approval, then run resume_command.', 'login_command를 실행하고 반환된 승인 링크를 사용자에게 보여주세요. 연결 완료 후 resume_command를 실행하세요.'),
|
|
63
60
|
login_command: loginCommand,
|
|
64
61
|
resume_command: resumeCommand,
|
|
65
62
|
next_action: 'run-login-command-then-resume-command',
|
|
63
|
+
connection_method: 'approval_link',
|
|
64
|
+
next_command: createStartOnboarding(executable, cwd, project, false, connection?.apiBaseUrl).commands.login,
|
|
66
65
|
continue_with: 'cli',
|
|
67
66
|
onboarding: createStartOnboarding(executable, cwd, project, false, connection?.apiBaseUrl),
|
|
68
67
|
};
|