Docs: correct setup, workflow and scheduler reference, env vars, schema #73

Merged
jared merged 2 commits from docs-refresh into main 2026-11-23 12:23:59 -05:00
Owner

Closes #28. This changes documentation only, plus the license field in package.json.

  • Server setup: npm ci, a .env copied from the new .env.example, and a /healthz check. SECRET_KEY is gone, because nothing reads it.
  • Worker setup was wrong. worker.js lives in worker/, and its dependencies come from the root manifests. The new steps: copy worker.js, package.json and package-lock.json, run npm ci --omit=dev, and create .env from the new worker/.env.example. Updates after that come through the worker deploy hook.
  • Workflows: "Future Feature" is replaced by a reference for every step type and field, the condition language, parameters, goto/end, dry run, abort, webhooks and the time limit, with a worked example. There's also a new Scheduler section.
  • Environment variables: complete tables for the server and the worker, including GANDALF_API_KEY, EXECUTION_MAX_MINUTES, HOST and the rate limits.
  • Database schema: the real tables and columns, including scheduled_commands.
  • Troubleshooting: stuck executions now fail on their own, and the section explains how to clear old ones.
  • Removed: the stale "Recent Updates" and "Future Enhancements" lists.
  • License: package.json now says MIT, matching LICENSE.

Everything in the reference was checked against the code: the step fields the engine reads, every process.env the server and worker use, and the CREATE TABLE statements. The two example files pass gitleaks. The worker example lists the key last, because gitleaks' generic rule otherwise reads across the empty value into the next line.

🤖 Generated with Claude Code

Closes #28. This changes documentation only, plus the license field in `package.json`. - **Server setup:** `npm ci`, a `.env` copied from the new `.env.example`, and a `/healthz` check. `SECRET_KEY` is gone, because nothing reads it. - **Worker setup was wrong.** `worker.js` lives in `worker/`, and its dependencies come from the root manifests. The new steps: copy `worker.js`, `package.json` and `package-lock.json`, run `npm ci --omit=dev`, and create `.env` from the new `worker/.env.example`. Updates after that come through the worker deploy hook. - **Workflows:** "Future Feature" is replaced by a reference for every step type and field, the condition language, parameters, goto/end, dry run, abort, webhooks and the time limit, with a worked example. There's also a new **Scheduler** section. - **Environment variables:** complete tables for the server and the worker, including `GANDALF_API_KEY`, `EXECUTION_MAX_MINUTES`, `HOST` and the rate limits. - **Database schema:** the real tables and columns, including `scheduled_commands`. - **Troubleshooting:** stuck executions now fail on their own, and the section explains how to clear old ones. - **Removed:** the stale "Recent Updates" and "Future Enhancements" lists. - **License:** `package.json` now says MIT, matching `LICENSE`. Everything in the reference was checked against the code: the step fields the engine reads, every `process.env` the server and worker use, and the `CREATE TABLE` statements. The two example files pass gitleaks. The worker example lists the key last, because gitleaks' generic rule otherwise reads across the empty value into the next line. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
jared added 1 commit 2026-11-23 12:11:59 -05:00
Docs: correct setup, workflow and scheduler reference, env vars, schema (#28)
CI / Lint (eslint) (pull_request) Successful in 25s
CI / Test (jest) (pull_request) Failing after 23s
CI / Security (npm audit) (pull_request) Successful in 10s
CI / Integration (api) (pull_request) Successful in 2m24s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 1m49s
CI / UI screenshots (before/after) (pull_request) Successful in 17s
CI / UI (playwright) (pull_request) Successful in 1m52s
CI / Deploy (pull_request) Skipped
CI / Deploy worker (pull_request) Skipped
CI / Notify (pull_request) Skipped
cb2c7a10fd
- Server setup: npm ci, .env from .env.example, /healthz check; no
  SECRET_KEY (nothing reads it).
- Worker setup was wrong (worker.js lives in worker/, and the deps come
  from the root manifests): copy worker.js plus package.json and
  package-lock.json, npm ci --omit=dev, .env from worker/.env.example;
  updates then come through the worker deploy hook.
- Workflows: replaces "Future Feature" with a reference for every step
  type and field, the condition language, params, goto/end, dry run,
  abort, webhooks and the time limit, with a worked example. New
  Scheduler section.
- Environment variables: complete tables for server and worker,
  including GANDALF_API_KEY, EXECUTION_MAX_MINUTES, HOST, rate limits.
- Database schema: the real tables and columns, scheduled_commands
  included.
- Troubleshooting: stuck executions now fail on their own; how to clear.
- Removed the stale "Recent Updates" and "Future Enhancements" lists.
- .env.example and worker/.env.example; package.json license is MIT, like
  LICENSE.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jared added 1 commit 2026-11-23 12:18:51 -05:00
Test: stub os.freemem in the availableMemory fallback test (it flaked)
CI / Lint (eslint) (pull_request) Successful in 32s
CI / Test (jest) (pull_request) Successful in 33s
CI / Security (npm audit) (pull_request) Successful in 12s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 1m54s
CI / Integration (api) (pull_request) Successful in 2m30s
CI / UI screenshots (before/after) (pull_request) Successful in 10s
CI / UI (playwright) (pull_request) Successful in 2m15s
CI / Deploy (pull_request) Skipped
CI / Deploy worker (pull_request) Skipped
CI / Notify (pull_request) Skipped
8698e1a4b0
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jared merged commit 06d6c72709 into main 2026-11-23 12:23:59 -05:00
jared deleted branch docs-refresh 2026-11-23 12:24:02 -05:00
Sign in to join this conversation.