@joripspace/cli 0.6.1 → 0.7.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/README.md +280 -237
- package/bin/joripspace.js +17 -0
- package/lib/deploy-prepare.js +48 -0
- package/lib/help.js +6 -0
- package/lib/start.js +1507 -1507
- package/package.json +48 -48
- package/vendor/core/cli-onboarding.cjs +6 -3
- package/vendor/core/onboarding.cjs +14 -14
package/package.json
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@joripspace/cli",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"license": "MIT",
|
|
5
|
-
"description": "The official JoripSpace CLI. Build and deploy web apps with AI agents. Powered by Cosmosfarm.",
|
|
6
|
-
"type": "commonjs",
|
|
7
|
-
"bin": {
|
|
8
|
-
"joripspace": "bin/joripspace.js"
|
|
9
|
-
},
|
|
10
|
-
"homepage": "https://joripspace.com",
|
|
11
|
-
"repository": {
|
|
12
|
-
"type": "git",
|
|
13
|
-
"url": "git+https://github.com/JoripSpace/joripspace-cli.git"
|
|
14
|
-
},
|
|
15
|
-
"bugs": {
|
|
16
|
-
"url": "https://github.com/JoripSpace/joripspace-cli/issues"
|
|
17
|
-
},
|
|
18
|
-
"publishConfig": {
|
|
19
|
-
"access": "public",
|
|
20
|
-
"registry": "https://registry.npmjs.org/"
|
|
21
|
-
},
|
|
22
|
-
"engines": {
|
|
23
|
-
"node": ">=18"
|
|
24
|
-
},
|
|
25
|
-
"files": [
|
|
26
|
-
"bin/joripspace.js",
|
|
27
|
-
"lib/*.js",
|
|
28
|
-
"vendor/core/*.cjs",
|
|
29
|
-
"vendor/templates/index.js",
|
|
30
|
-
"vendor/templates/templates/**",
|
|
31
|
-
"README.md",
|
|
32
|
-
"LICENSE",
|
|
33
|
-
"THIRD_PARTY_NOTICES.md"
|
|
34
|
-
],
|
|
35
|
-
"scripts": {
|
|
36
|
-
"check": "node scripts/check-package.mjs",
|
|
37
|
-
"test": "node scripts/test.mjs",
|
|
38
|
-
"test:package": "node scripts/verify-package.mjs",
|
|
39
|
-
"prepack": "node scripts/check-package.mjs"
|
|
40
|
-
},
|
|
41
|
-
"dependencies": {
|
|
42
|
-
"@napi-rs/keyring": "2.1.2",
|
|
43
|
-
"fflate": "^0.8.2",
|
|
44
|
-
"ignore": "7.0.12",
|
|
45
|
-
"jsonc-parser": "^3.3.1",
|
|
46
|
-
"smol-toml": "^1.9.1"
|
|
47
|
-
}
|
|
48
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@joripspace/cli",
|
|
3
|
+
"version": "0.7.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"description": "The official JoripSpace CLI. Build and deploy web apps with AI agents. Powered by Cosmosfarm.",
|
|
6
|
+
"type": "commonjs",
|
|
7
|
+
"bin": {
|
|
8
|
+
"joripspace": "bin/joripspace.js"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://joripspace.com",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/JoripSpace/joripspace-cli.git"
|
|
14
|
+
},
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/JoripSpace/joripspace-cli/issues"
|
|
17
|
+
},
|
|
18
|
+
"publishConfig": {
|
|
19
|
+
"access": "public",
|
|
20
|
+
"registry": "https://registry.npmjs.org/"
|
|
21
|
+
},
|
|
22
|
+
"engines": {
|
|
23
|
+
"node": ">=18"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"bin/joripspace.js",
|
|
27
|
+
"lib/*.js",
|
|
28
|
+
"vendor/core/*.cjs",
|
|
29
|
+
"vendor/templates/index.js",
|
|
30
|
+
"vendor/templates/templates/**",
|
|
31
|
+
"README.md",
|
|
32
|
+
"LICENSE",
|
|
33
|
+
"THIRD_PARTY_NOTICES.md"
|
|
34
|
+
],
|
|
35
|
+
"scripts": {
|
|
36
|
+
"check": "node scripts/check-package.mjs",
|
|
37
|
+
"test": "node scripts/test.mjs",
|
|
38
|
+
"test:package": "node scripts/verify-package.mjs",
|
|
39
|
+
"prepack": "node scripts/check-package.mjs"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@napi-rs/keyring": "2.1.2",
|
|
43
|
+
"fflate": "^0.8.2",
|
|
44
|
+
"ignore": "7.0.12",
|
|
45
|
+
"jsonc-parser": "^3.3.1",
|
|
46
|
+
"smol-toml": "^1.9.1"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -19,6 +19,7 @@ const JORIPSPACE_CLI_GUIDE = [
|
|
|
19
19
|
'',
|
|
20
20
|
...JORIPSPACE_TOOL_SELECTION_LINES,
|
|
21
21
|
'',
|
|
22
|
+
'The current npm-distributed CLI requires Node.js 18+ and npm for installation or npx execution. A working CLI does not require a second project-local Node.js installation. Small-source MCP-only connection and deployment need neither Node.js nor Git; a connected GitHub source still requires Git. Check the actual path rather than applying legacy standalone CLI requirements to the current npm package.',
|
|
22
23
|
'Use the project name supplied by the user. The connection flow does not create a missing project. Use the current Git root when one exists, otherwise the current working directory; use --cwd to specify the intended workspace. Never use the npm cache or package installation folder as the project workspace.',
|
|
23
24
|
"Only when the user explicitly requests a new Free project, run create --name NAME --json. Present every returned agreement faithfully in the user's language, link to the terms, and obtain explicit consent before passing --agree-noncommercial --agree-billing --agree-retention. Never infer agreement from the creation request. start never creates a project, and create does not link the workspace. If creation state is unknown, list projects and check the name before retrying.",
|
|
24
25
|
'The JoripSpace project is stored in `.joripspace/project`. Resolve different or invalid markers, symlinks, and conflicting local work without overwriting user files.',
|
|
@@ -37,8 +38,8 @@ const JORIPSPACE_CLI_GUIDE = [
|
|
|
37
38
|
'',
|
|
38
39
|
'## Agent documents',
|
|
39
40
|
'',
|
|
40
|
-
'start maintains one bounded JoripSpace block in AGENTS.md, one @AGENTS.md reference in CLAUDE.md, and the canonical project marker. Existing user content is preserved. Read AGENTS.md explicitly when automatic loading is unavailable. User-authored agent instructions still apply.',
|
|
41
|
-
'This guide is returned inline by start and written into AGENTS.md. Skills are optional: this workflow does not require a plugin, agent detection, or skill registration. Do not modify global agent configuration. At the beginning of a new JoripSpace task, run start for the same project to refresh state and managed guidance while preserving local work.',
|
|
41
|
+
'start maintains one bounded JoripSpace block in AGENTS.md, one @AGENTS.md reference in CLAUDE.md, and the canonical project marker. Connection setup and guide refresh do not create application deployment scripts. During authorized app implementation or deployment, prepare the verified build-and-CLI script described below; this is distinct from legacy .joripspace/*.mjs helpers. Existing user content is preserved. Read AGENTS.md explicitly when automatic loading is unavailable. User-authored agent instructions still apply.',
|
|
42
|
+
'This guide is returned inline by start and written into AGENTS.md. Skills are optional: this workflow does not require a plugin, agent detection, or skill registration. Do not modify global agent configuration. At the beginning of a new JoripSpace task, run start for the same project to refresh state and managed guidance while preserving local work, except for a guide-refresh-only request. start can synchronize application source; never run it merely to refresh guidance. For guide-only maintenance, use authenticated MCP prepare_project_workspace with guide_only=true. If MCP is unavailable, fetch https://api.joripspace.com/onboarding.md, extract the guide beginning at # JoripSpace project onboarding, and replace only the bounded JoripSpace AGENTS.md block while preserving user content; maintain the CLAUDE.md import. Preserve the existing project marker and credentials. Do not synchronize Git, restore source, migrate legacy helpers, install tools, or deploy for guide-only maintenance. If the local marker or managed block is invalid, report that conflict without changing application files.',
|
|
42
43
|
'',
|
|
43
44
|
'## Continue existing work or choose a template',
|
|
44
45
|
'',
|
|
@@ -63,9 +64,11 @@ const JORIPSPACE_CLI_GUIDE = [
|
|
|
63
64
|
'Use Hono as the default server framework for every new project, including single-route and simple services. Preserve the current framework of an existing project unless the user requests migration. Use feature-focused modules as complexity grows and deploy them as one bundled Worker service.',
|
|
64
65
|
'Server-render meaningful initial HTML for user-facing routes by default. Honor an explicitly requested SPA, client-only app, or WebView. Give each independent main screen a distinct pathname that supports direct access and refresh; verify the route inventory, requested flows, validation, authorization, responsive layout, and relevant automated checks before deployment.',
|
|
65
66
|
'Before deployment, inspect runtime imports. When source imports package dependencies, run the project build and deploy its generated bundled Worker entrypoint such as dist/worker.js. Never deploy an unbundled source entrypoint that depends on excluded node_modules.',
|
|
67
|
+
'After implementing or changing an app build, make its deployment repeatable in the project. For direct deployments with package.json, build first, inspect the actual bundled output and assets, check deploy --help with the verified CLI invocation, and only if --prepare is advertised run deploy --prepare --dir OUTPUT_DIRECTORY --entrypoint WORKER_FILE --json. Paths are relative to the workspace; entrypoint is relative to the output directory. This validates the output and adds joripspace:deploy while preserving other scripts and refusing to overwrite a different deployment script. It does not deploy. Do not run preparation in an empty workspace or merely to refresh guidance. Check deploy --help before using --prepare. For a released CLI without --prepare, add the equivalent portable package script directly after verifying the output: "joripspace:deploy": "npm run build && npx --yes @joripspace/cli@latest deploy --cwd . --dir \"dist\" --entrypoint \"worker.js\"". Replace dist and worker.js with the actual verified paths; omit npm run build && only when the project has no build step. Preserve every other script and do not overwrite an existing custom deployment script. Do not add a project CLI dependency or machine-specific path. Never pass --prepare when help does not advertise it. For MCP-only execution, record the same verified build/output/entrypoint in the project AGENTS.md and use advertised tools.',
|
|
68
|
+
'When deployment of the current change is requested, reuse npm run joripspace:deploy -- --label "Describe the change" after confirming the project still uses direct deployment. The script builds first and stops on build failure. It resolves the current CLI through npx without committing machine-specific paths or credentials. Inspect package.json before executing it; preserve custom scripts. GitHub-connected projects keep their configured workflow and trigger and must not prepare or run a direct deployment script. Verify deployment history and production HTTP responses after execution.',
|
|
66
69
|
'Directory deployment applies root .gitignore, .ignore, .joripspaceignore and nested .gitignore rules to both small inline uploads and chunked archives. Ignored credentials and protected connection files are excluded in both paths. If the build output is ignored in the project root, select the build output directory with --dir instead of removing credential ignore rules.',
|
|
67
70
|
'Respect context.deployment returned by start; for older CLIs that omit it, run get --project PROJECT --json before choosing a deployment route. With an active GitHub deployment connection, follow its configured branch and trigger, commit and push the verified requested change, and verify the resulting Actions run and JoripSpace deployment. Do not create a separate pre-push checkpoint or use direct deploy for that route. Otherwise use the existing CLI deployment/checkpoint commands. Do not create GitHub Actions workflows merely to deploy an unconnected project. Store external provider secrets in project Secret bindings through the existing authorized flow, never in application source.',
|
|
68
|
-
'When GitHub connection is requested, show https://joripspace.com/projects/PROJECT/?tab=deployment as a clickable link with the selected project slug. The user connects the GitHub App and selects the repository and trigger on that page.
|
|
71
|
+
'When GitHub connection is requested, show https://joripspace.com/projects/PROJECT/?tab=deployment as a clickable link with the selected project slug. The user connects the GitHub App and selects the repository and trigger on that page. Preserve user-authored workflows. For a missing or stale connection-managed workflow, use github prepare only when advertised by CLI help, after the application entrypoint exists; do not create workflows for an unconnected project. An authorized agent push to the configured branch triggers automatic deployment for a branch-push connection; follow the configured release trigger for release deployments. Check project status and deployment history afterward.',
|
|
69
72
|
'When development and deployment are requested, verify the build, deploy through JoripSpace, and check the production URL before reporting completion. Report the URL, actual verification, and any unresolved failure. If a response is lost, inspect deployment state before retrying a mutation. For transient reads, follow retryable and retry-after information with bounded backoff. Do not blindly retry authentication, permission, conflict, or invalid-input failures.',
|
|
70
73
|
'Deployment requires an explicit request for the current change. After meaningful verified work without deployment, use checkpoint save with a concise label. A request only to refresh guidance does not authorize application changes, checkpoints, commit, push, or deployment; preserve existing application source and do not invent a deployment because guide files changed.',
|
|
71
74
|
'',
|
|
@@ -15,7 +15,7 @@ const JORIPSPACE_ONBOARDING_GITIGNORE_ENTRIES = [
|
|
|
15
15
|
'.joripspace/local-backups/',
|
|
16
16
|
];
|
|
17
17
|
const JORIPSPACE_ONBOARDING_GITIGNORE_REMOVALS = ['.joripspace/agent-session.json'];
|
|
18
|
-
const JORIPSPACE_AGENT_GUIDE_UPDATED_AT = '2026-10-
|
|
18
|
+
const JORIPSPACE_AGENT_GUIDE_UPDATED_AT = '2026-10-31T17:00:00+09:00';
|
|
19
19
|
const JORIPSPACE_WORKFLOW_POLICY = Object.freeze({
|
|
20
20
|
target: 'joripspace',
|
|
21
21
|
guide_required: true,
|
|
@@ -138,7 +138,7 @@ const LOCAL_TOOL_READINESS_RULE_LINES = [
|
|
|
138
138
|
'Local Git and Node.js readiness during onboarding:',
|
|
139
139
|
'- After the project connection succeeds and the project path is known, check `git --version`, `node --version`, and `npm --version` directly before the first source-sync or local build step that could require them. Do not ask the user to run these commands.',
|
|
140
140
|
'- Show the result in one readable Markdown table with columns for tool, status, version, and whether it is needed for the current project path.',
|
|
141
|
-
'- Decide need from the actual path: Git is required for a connected GitHub repository, clone/fetch, commit, push, or a template installation mode that preserves Git history. Git is not required when the user chooses a files-only template installation. Node.js
|
|
141
|
+
'- Decide need from the actual path: Git is required for a connected GitHub repository, clone/fetch, commit, push, or a template installation mode that preserves Git history. Git is not required when the user chooses a files-only template installation. The npm-distributed JoripSpace CLI requires Node.js 18+ at runtime and npm for installation or npx execution. Project dependency installation and local JavaScript builds also require the relevant runtime. Ordinary small-source MCP onboarding and direct MCP deployment require neither Git nor Node.js. A working legacy standalone CLI may be reused only with capabilities verified in its help; do not confuse that legacy executable with the current npm CLI.',
|
|
142
142
|
'- If every missing tool is optional for the current path, say it is optional and continue onboarding without asking to install it.',
|
|
143
143
|
'- If a required tool is missing, explain its immediate purpose in one sentence and ask for one explicit approval to install only the missing required tools. Do not install software before approval and do not combine this approval with unrelated choices.',
|
|
144
144
|
"- After approval, install stable Git and/or the current Node.js LTS with npm using the operating system's standard trusted package manager. Perform the installation yourself, request elevation only through the normal operating-system prompt, and never disable security controls or use an untrusted download source.",
|
|
@@ -149,7 +149,7 @@ const LOCAL_TOOL_READINESS_RULE_LINES = [
|
|
|
149
149
|
const GUIDE_REFRESH_ONLY_RULE_LINES = [
|
|
150
150
|
'Guide refresh is maintenance-only unless deployment is separately explicit:',
|
|
151
151
|
'- Treat requests whose only intent is "지침 업데이트해", "지침 갱신해", "최신 지침 적용해", "refresh the guide", or equivalent wording as local guide maintenance only. They are not authorization to build, test the application, create a checkpoint, stage files, commit, push, run GitHub Actions, or deploy.',
|
|
152
|
-
'- For a guide-refresh-only request, call prepare_project_workspace and update only the JoripSpace managed block in AGENTS.md, the first-line `@AGENTS.md` import in CLAUDE.md, the canonical `.joripspace/project` marker, plus `JORIPSPACE_GUIDE_CHECKED_AT` in `.env.joripspace`. Preserve user-authored content and unrelated environment entries, and do not modify application source, workflow files, or deployment configuration merely to refresh the guide.',
|
|
152
|
+
'- For a guide-refresh-only request, call prepare_project_workspace with guide_only=true (use the public onboarding guide without CLI start when MCP is unavailable) and update only the JoripSpace managed block in AGENTS.md, the first-line `@AGENTS.md` import in CLAUDE.md, the canonical `.joripspace/project` marker, plus `JORIPSPACE_GUIDE_CHECKED_AT` in `.env.joripspace`. Preserve user-authored content and unrelated environment entries, and do not modify application source, workflow files, or deployment configuration merely to refresh the guide.',
|
|
153
153
|
'- Do not run create_checkpoint, joripspace:save, deploy_code, deploy_checkpoint, rollback_deployment, git add, git commit, git push, or any deployment workflow for a guide-refresh-only request, even when the project uses GitHub Actions or an automatic deployment route.',
|
|
154
154
|
'- Deployment permission must appear explicitly in the current user request with wording such as "배포해", "운영 반영해", or "사이트에 적용해". A deployment approval from an earlier task or chat message does not carry forward to a later guide refresh.',
|
|
155
155
|
'- If a current request explicitly combines guide refresh with deployment, refresh first, then deploy only the application changes the user explicitly placed in scope after the normal verification gate. Do not manufacture an application deployment merely because managed guide files changed.',
|
|
@@ -206,12 +206,12 @@ const CODEX_MCP_ONBOARDING_LINES = [
|
|
|
206
206
|
'- If start_project_session reports latest_deployment_sync_required, do not ask whether to restore and do not offer rollback versions. Write the connection workspace files first, call get_deployment_source with deployment_restore.latest_artifact.deployment_id, back up conflicting local files, and apply the returned local_file_operations before asking questions or editing the project.',
|
|
207
207
|
'- For a completely new project, start_project_session embeds the current published templates in onboarding.template_choice.templates. After workspace files are ready, use that embedded list before the first service question. Do not depend on a newly added or separately cached list_templates tool during initial onboarding.',
|
|
208
208
|
'- If onboarding.template_choice.status is auto_selected_existing_project, option 0 is already selected because the project has an existing GitHub source or deployment baseline. Do not show a template table and do not ask new-service questions such as the service name, description, or features. After synchronization or restoration, immediately perform the task already requested by the user; if no task was requested, ask only what they want to work on in the existing project.',
|
|
209
|
-
'- If the embedded template_choice status says retry_required_before_service_questions, retry start_project_session once with the same project
|
|
209
|
+
'- If the embedded template_choice status says retry_required_before_service_questions, retry start_project_session once with the same project in the authenticated MCP transport session, without token arguments. Do not report that templates are unavailable and silently skip the choice.',
|
|
210
210
|
'- Only when onboarding.template_choice.status is required_before_service_questions, show option 0 as "Start without a template" and show the embedded selectable templates in a Markdown table. Wait for the user choice; templates are optional.',
|
|
211
211
|
'- When the user selects a template, run the installed JoripSpace CLI absolute path with `install-template --template TEMPLATE_SLUG --project PROJECT_ID --dir .` without putting any token in the command and without `--force`. Inspect the installed files and complete the required template setup below before continuing the normal service questions and customization. If files collide, overwrite nothing; continue without a template unless the user explicitly approves an overwrite retry.',
|
|
212
212
|
"- After installing a selected template and before service questions or customization, inspect its code, documentation, configuration, and schema or migration files to determine whether it uses env.DB. When it uses DB, setting up the required project DB is mandatory: call describe_db first, compare the existing schema with the template's actual queries, review tables, indexes, and seed data for compatibility, apply only the required compatible changes with run_db_migration, then verify the resulting schema with describe_db and relevant reads with query_db. Do not merely copy SQL files, expose a public migration route, deploy, or report the template ready while required DB setup is incomplete. If a safe compatible migration cannot be determined, stop and report the specific schema or data conflict instead of guessing, dropping existing data, or resetting the DB.",
|
|
213
|
-
'- If start_project_session fails with connection_required, call start_login again. If it fails with invalid_token,
|
|
214
|
-
'- Only for a completely new project whose template_choice.status is required_before_service_questions, after the optional template choice
|
|
213
|
+
'- If start_project_session fails with connection_required, call start_login again. If it fails with invalid_token, use start_login and exchange_connection_code to reconnect through a five-minute code; never request a raw token. If it returns needs_project_choice, ask the user to choose one project and call start_project_session again. If project_not_found, ask the user to confirm the project ID.',
|
|
214
|
+
'- Only for a completely new project whose template_choice.status is required_before_service_questions, after the optional template choice collect only the missing service requirements in a single combined service-brief question: name, purpose, required features, login, and integrations. Skip values already provided by the user; follow up only when a missing answer blocks the requested work. Apply the shared framework and deployment rules.',
|
|
215
215
|
'- When both existing work and a service description are absent, ask once for the company or service, required content, and desired mood. Keep the resulting project brief in the application source only when it is useful to the project.',
|
|
216
216
|
'- Before deployment, verify the project connection, source entrypoint, relevant checks available in the current environment, and target URL. If runtime source imports package dependencies, run the project build and deploy the generated bundled Worker entrypoint such as dist/worker.js; never deploy an unbundled source entrypoint that depends on node_modules. Direct MCP deployment of Worker-compatible source does not require Node.js or Git.',
|
|
217
217
|
'- Never obtain a generated bundle or large source file by printing it through a shell/tool output and copying that output into deploy_code. Tool output can be truncated even when the local file is valid. Use the installed JoripSpace CLI absolute path with `deploy --dir` so local bytes, sizes, and hashes are preserved end to end.',
|
|
@@ -406,9 +406,9 @@ const AGENT_OPERATING_RULE_LINES = [
|
|
|
406
406
|
'- JoripSpace execution order: prefer the installed CLI, or install/update it when the environment supports it, even when MCP tools are active. Use onboarding.invocation from CLI start. Use MCP only when CLI installation or execution is unavailable; do not move credentials between configurations.',
|
|
407
407
|
'- MCP-only setup and deploy do not require Node.js or Git. Follow the local tool readiness rules: check and report both tools during onboarding, but install only a missing tool that the current project path actually requires and only after explicit user approval. Never ask the beginner to run npm or git commands.',
|
|
408
408
|
'- If a required MCP/CLI token is missing, stop setup and give precise recovery instructions instead of browsing around: open https://joripspace.com/connect/ in a logged-in browser, approve the connection, copy the displayed 5-minute connection code, then exchange it with exchange_connection_code (never pass the code as connect_token) or run `joripspace login --code "복사한_연결_코드"`.',
|
|
409
|
-
'-
|
|
409
|
+
'- Legacy scripts that execute .joripspace/*.mjs helpers are conditional compatibility only. New `start` connection setup does not generate them. A verified joripspace:deploy script that builds the app and invokes the current CLI is a supported deployment entrypoint, not a legacy helper. Prepare it only during authorized app implementation or deployment, never merely to link or refresh a workspace.',
|
|
410
410
|
'- Use the installed CLI for checkpoint, restore, pull, and archive deployment when MCP is unavailable or inline transport is unsuitable. Node.js readiness is determined only by the project build itself or an explicitly requested legacy helper workflow.',
|
|
411
|
-
'- When MCP is unavailable, use the installed JoripSpace CLI absolute path returned by start. Use its `deploy --dir` command for generated bundles, large files, or large multi-file projects. Do not require an app restart
|
|
411
|
+
'- When MCP is unavailable, use the installed JoripSpace CLI absolute path returned by start. Use its `deploy --dir` command for generated bundles, large files, or large multi-file projects. Do not require an app restart or project-local helper. The current npm CLI needs Node.js 18+; use supported MCP capabilities when that runtime is unavailable, and do not ask the user to choose or run the command.',
|
|
412
412
|
'- If the project folder has no app code, use the installed CLI deployment pull/restore flow after the required safety check. A verified pre-existing `joripspace:pull` package script may be used only as conditional legacy compatibility.',
|
|
413
413
|
'- If the user asks to replace local files with the latest deployed version, use the current CLI restore flow; it backs up overwritten files in the user-specific JoripSpace data directory outside the project first.',
|
|
414
414
|
'- During initial MCP onboarding, if a successful downloadable deployment exists, automatically use the latest successful deployment as the local workspace baseline before starting work. Do not ask whether to restore and do not offer older rollback versions.',
|
|
@@ -441,17 +441,17 @@ const DEPLOYMENT_VERIFICATION_RULE_LINES = [
|
|
|
441
441
|
'- Exercise representative user flows with automated tests, direct function calls, or HTTP requests before deployment. Verify at least the primary read flow and, when the service writes data, one safe create/update/read path plus expected validation and error behavior.',
|
|
442
442
|
'- Do not open or control a browser for routine implementation or deployment verification. Use browser-based visual or interactive verification only when the user explicitly asks for browser verification. Without such a request, inspect responsive markup and styles and use automated or HTTP checks without claiming browser verification.',
|
|
443
443
|
'- Perform a focused security review of the changed and exposed paths before deployment. Check authentication and authorization, input validation, injection and unsafe HTML risks, secret or personal-data exposure, sensitive logs/errors, destructive actions, and cache behavior where relevant.',
|
|
444
|
-
'- For a project with a user interface, record a route inventory before deployment. Classify it as single-screen or multi-screen. For multi-screen navigation, record every main path and verify pathname-based routing and direct HTTP access with automated checks. Verify browser back/forward interactively only when the user explicitly requests browser verification. A same-URL main-content swap is a blocking deployment failure.',
|
|
444
|
+
'- For a project with a user interface, record a route inventory before deployment. Classify it as single-screen or multi-screen. For multi-screen navigation, record every main path and verify pathname-based routing and direct HTTP access with automated checks. Verify browser back/forward interactively only when the user explicitly requests browser verification. A same-URL main-content swap is a blocking deployment failure unless the user explicitly requested that navigation model; for that exception, verify the requested navigation and state behavior without forcing pathname changes.',
|
|
445
445
|
'- If any relevant check or scenario fails, fix the problem and rerun the affected checks and scenarios. Do not deploy with a known blocking functional, security, build, or responsive-layout problem.',
|
|
446
446
|
'- After deployment, verify the actual project root and main changed routes with HTTP requests or available automated checks. Test a safe write flow when applicable, and inspect runtime events when an HTTP response, function, or deployment behaves unexpectedly. Open the project in a browser only when the user explicitly requests browser verification.',
|
|
447
|
-
'- After an explicitly requested deployment succeeds and the non-browser post-deployment checks pass, commit the exact deployed project source when Git is available and there are relevant uncommitted changes. Use a concise commit message based on the completed work. Do not create an empty commit, amend an existing commit, invent Git identity, or push unless the user explicitly requested a push.',
|
|
447
|
+
'- After an explicitly requested deployment succeeds and the non-browser post-deployment checks pass, commit the exact deployed project source when Git is available and there are relevant uncommitted changes. Use a concise commit message based on the completed work. Do not create an empty commit, amend an existing commit, invent Git identity, or push unless the user explicitly requested a push or the current authorized GitHub deployment route requires that push.',
|
|
448
448
|
'- Report which checks and scenarios passed, the deployed URL, and any verification limitation. Never report deployment or verification as successful without evidence.',
|
|
449
449
|
];
|
|
450
450
|
|
|
451
451
|
const CHECKPOINT_AGENT_RULE_LINES = [
|
|
452
452
|
'- After meaningful work and relevant checks, create a JoripSpace checkpoint with create_checkpoint or the installed CLI `checkpoint save` command. Always provide a concise label describing the change. Identical content is reused instead of creating a duplicate.',
|
|
453
453
|
'- Exception for the GitHub Actions deployment route: when the current task explicitly requests deployment, do not create a separate pre-push agent checkpoint. Commit and push the verified source; the Actions OIDC upload creates the single deployment checkpoint. Create an additional agent checkpoint only when the user explicitly asks to save a separate snapshot without deployment.',
|
|
454
|
-
'- Saving is the default after meaningful work when MCP can complete it directly or the installed JoripSpace CLI absolute path is available. A local_upload_required checkpoint response must not block ordinary MCP work or direct deployment; use the installed CLI
|
|
454
|
+
'- Saving is the default after meaningful work when MCP can complete it directly or the installed JoripSpace CLI absolute path is available. A local_upload_required checkpoint response must not block ordinary MCP work or direct deployment; use the installed CLI with its required runtime rather than generating project-local helpers. Do not enable, assume, or perform automatic deployment during initial onboarding.',
|
|
455
455
|
'- Deploy the saved checkpoint only when the user explicitly asks to deploy the current change or explicitly asks for completed work to be deployed automatically. Without that request, stop after creating and verifying the checkpoint.',
|
|
456
456
|
'- If tests or checks fail, do not deploy. A clearly labeled 작업 중 checkpoint may be created when preserving the current files is useful.',
|
|
457
457
|
'- Documentation-only changes create a checkpoint but do not require a server deployment. Exception: a guide-refresh-only request updates managed guide/session files without creating a checkpoint.',
|
|
@@ -459,7 +459,7 @@ const CHECKPOINT_AGENT_RULE_LINES = [
|
|
|
459
459
|
'- Treat local file restore and production rollback as separate confirmed actions. 이전 상태로 돌아가 means explain and confirm both independently.',
|
|
460
460
|
'- Whenever two or more restore points or rollback versions are shown, including in response to an availability or inventory question such as "복원 가능한 것들이 있나?", show them as a Markdown table with number, version or identifier, timestamp, label or status, and effect. Do not wait until the user explicitly asks to choose one.',
|
|
461
461
|
'- Customer project secrets, .env files, certificates, and private keys may be included in checkpoints and deployments with redacted warnings; never print their values or file contents. Continue excluding JoripSpace connection credentials, .git, node_modules, .wrangler, agent instructions/configuration, and `.joripspace/project`. Preserve the local canonical marker during restore.',
|
|
462
|
-
'- Prefer the installed JoripSpace CLI for checkpoint save, checkpoint list, checkpoint restore, and checkpoint deploy even when MCP is active. Use MCP checkpoint tools when the CLI cannot be installed or executed.
|
|
462
|
+
'- Prefer the installed JoripSpace CLI for checkpoint save, checkpoint list, checkpoint restore, and checkpoint deploy even when MCP is active. Use MCP checkpoint tools when the CLI cannot be installed or executed. Legacy .joripspace/*.mjs helpers are conditional compatibility only and are never required by new start onboarding. A verified build-and-CLI joripspace:deploy script remains supported for direct deployment.',
|
|
463
463
|
];
|
|
464
464
|
|
|
465
465
|
const AFTER_CONNECTION_RULE_LINES = [
|
|
@@ -599,7 +599,7 @@ const REQUIRED_ONBOARDING_MARKERS = [
|
|
|
599
599
|
'duplicate message ids and retried usage event ids are idempotent',
|
|
600
600
|
'compatibility migration work is not a new message send',
|
|
601
601
|
'installed JoripSpace CLI absolute path',
|
|
602
|
-
'
|
|
602
|
+
'Legacy .joripspace/*.mjs helpers are conditional compatibility only',
|
|
603
603
|
'one-line `.joripspace/project` slug',
|
|
604
604
|
'<!-- joripspace:start -->',
|
|
605
605
|
'<!-- joripspace:end -->',
|
|
@@ -692,7 +692,7 @@ function projectDeploymentRoutingLines(projectConfig = {}) {
|
|
|
692
692
|
return [
|
|
693
693
|
'Current deployment route: direct JoripSpace deployment.',
|
|
694
694
|
'- A normal user request such as "배포해줘" is sufficient. Do not ask the user to choose GitHub or repeat deployment plumbing.',
|
|
695
|
-
'- Run the required checks, then prefer the installed JoripSpace CLI absolute path returned by `start` even when MCP is active; use the MCP checkpoint/deployment path only when CLI installation or execution is unavailable.
|
|
695
|
+
'- Run the required checks, then prefer the installed JoripSpace CLI absolute path returned by `start` even when MCP is active; use the MCP checkpoint/deployment path only when CLI installation or execution is unavailable. Reuse a verified build-and-CLI joripspace:deploy script for direct deployment. Old .joripspace/*.mjs helpers remain conditional legacy compatibility only.',
|
|
696
696
|
'- Do not create a GitHub Actions workflow or push to GitHub solely to deploy while the project connection is absent, disconnected, invalid, or suspended.',
|
|
697
697
|
];
|
|
698
698
|
}
|