@chalksurf/cli 0.2.3 → 0.3.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 +15 -0
- package/dist/bin/chalksurf.js +8740 -164
- package/docs/agents.md +159 -3
- package/docs/exit-codes.md +2 -0
- package/docs/manual.md +50 -0
- package/docs/mcp.md +106 -0
- package/package.json +6 -4
- package/dist/commands/auth.js +0 -174
- package/dist/commands/exercise.js +0 -600
- package/dist/commands/job.js +0 -172
- package/dist/commands/org.js +0 -115
- package/dist/commands/profile.js +0 -97
- package/dist/commands/sheet.js +0 -772
- package/dist/lib/api-client.js +0 -86
- package/dist/lib/cli-error.js +0 -46
- package/dist/lib/command-options.js +0 -61
- package/dist/lib/config-store.js +0 -354
- package/dist/lib/import-files.js +0 -120
- package/dist/lib/import-output.js +0 -81
- package/dist/lib/manifest.js +0 -353
- package/dist/lib/output.js +0 -57
- package/dist/lib/prompt-secret.js +0 -32
- package/dist/lib/session.js +0 -72
- package/dist/lib/source-resolver.js +0 -272
- package/dist/lib/translation-languages.js +0 -16
- package/dist/lib/user-jobs.js +0 -107
package/README.md
CHANGED
|
@@ -40,12 +40,27 @@ printf '%s' "$CHALKSURF_TOKEN" | npx @chalksurf/cli auth login \
|
|
|
40
40
|
npx @chalksurf/cli --profile prod-codex sheet import --manifest - --wait --json < import.json
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
+
Agentic edit flow:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
npx @chalksurf/cli --profile prod-codex sheet issues SHEET_ID --json
|
|
47
|
+
npx @chalksurf/cli --profile prod-codex sheet copy SHEET_ID "Easier variant" \
|
|
48
|
+
--exercise-copy-mode copy_all_exercises \
|
|
49
|
+
--json
|
|
50
|
+
npx @chalksurf/cli --profile prod-codex exercise update EXERCISE_ID \
|
|
51
|
+
--target-sheet-id COPIED_SHEET_ID \
|
|
52
|
+
--expected-updated-at 2026-01-01T00:00:00.000Z \
|
|
53
|
+
--patch-json '{"translations":{"english":{"exercise_text":"Find $x^2$."}}}' \
|
|
54
|
+
--json
|
|
55
|
+
```
|
|
56
|
+
|
|
43
57
|
Sheet import manifests use top-level `sheets[]`, where each sheet has one `targetFolderPath` and one or more ordered `sources[]`. See [the canonical example](./packages/cli/docs/examples/sheet-import-manifest.json).
|
|
44
58
|
|
|
45
59
|
## Docs
|
|
46
60
|
|
|
47
61
|
- [Manual operator guide](./packages/cli/docs/manual.md)
|
|
48
62
|
- [Agent and Codex guide](./packages/cli/docs/agents.md)
|
|
63
|
+
- [MCP guide](./packages/cli/docs/mcp.md)
|
|
49
64
|
- [Manifest reference](./packages/cli/docs/manifest.md)
|
|
50
65
|
- [Exit codes and JSON errors](./packages/cli/docs/exit-codes.md)
|
|
51
66
|
- [Sheet import schema](./packages/cli/schemas/sheet-import-manifest.schema.json)
|