Files
FolderShare/scripts/README.md
T

2.8 KiB

ChatGPT handover snapshot

From the repository root, run:

python3 scripts/create_snapshot.py

The script writes a timestamped ZIP into docs/snapshots/. It includes the application source, AGENTS.md, docs/, and scripts/, including safe untracked files. It omits Git metadata, task worktrees, dependency directories, local environment files, local databases, shared files, caches, generated builds, prior snapshots, symlinks, and common key/credential files. The root .gitignore ignores docs/snapshots/ and .worktrees/.

Inspect the ZIP contents before uploading it if you have added new local data or sensitive file types to the project.

Manual task testing (testtask)

From the primary project root, run:

./scripts/testtask.sh 002

Supply the three-digit task number. The adapter locates a unique checked-out task/TASK-002-* branch, captures its current tracked changes and permitted untracked files, then starts an isolated copy at http://127.0.0.1:5503 with API at 127.0.0.1:5502. Both ports must be free. The candidate must support FOLDERSHARE_DATABASE_URI (provided by TASK-002).

Prerequisites: installed roborto-testtask, Firefox/display, existing Python API venv and frontend node_modules in the primary worktree, and Node >=18. No packages are installed automatically. Python defaults to primary api/.venv/bin/python; set FOLDERSHARE_TEST_PYTHON to override. Node uses PATH, otherwise the latest installed nvm version; set FOLDERSHARE_TEST_NODE to choose explicitly. Dependencies are reused; this verifies the local environment, not a clean dependency install.

Choose Firefox at the prompt. The launcher prints fresh disposable credentials: captain (admin), friend (assigned /friends), unassigned, and disabled (which must fail login). Each run has a new shared test password. Only a generated sample file is available; live media/databases/environment files are excluded.

Snapshots live below the adapter checkout's ignored .test-worktrees/. Source hashes are verified before startup and again before readiness; rerun after any candidate edit. Do not develop in a snapshot. A running session is not refreshed in place. Ctrl-C stops the owned processes and removes that session's snapshot, database, credentials and cache. Foreign/existing snapshots are never replaced; after an abrupt machine/launcher failure, inspect ownership and remaining processes before manually clearing a leftover snapshot. Do not run broad cleanup.

Test credentials have initial access tokens so existing login rendering can be exercised; this is test fixture setup, not a fix to application token issuance. Secure downloads are tracked in TASK-004.

Adapter checks:

python3 -m unittest discover -s scripts/tests -v
bash -n scripts/testtask.sh .roborto/testtask-hook .roborto/testtask.conf