recess-cli 1.4.0 → 1.6.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 +51 -23
- package/dist/api.js +1 -1
- package/dist/auth.js +1 -1
- package/dist/cli.js +541 -68
- package/dist/safety.js +1 -1
- package/dist/setup.js +3 -5
- package/dist/skill-update.js +1 -1
- package/package.json +3 -3
- package/skill/recess-cli/SKILL.md +42 -484
- package/skill/recess-cli/agents/openai.yaml +2 -2
- package/skill/recess-cli/agents/version.json +4 -0
- package/skill/recess-cli/reference/billing.md +0 -146
- package/skill/recess-cli/reference/cancellation-credits.md +0 -53
- package/skill/recess-cli/reference/class-ops-reschedule.md +0 -41
- package/skill/recess-cli/reference/class-ops.md +0 -89
- package/skill/recess-cli/reference/goal-authoring.md +0 -274
- package/skill/recess-cli/reference/map-scores.md +0 -28
- package/skill/recess-cli/reference/onboarding.md +0 -79
- package/skill/recess-cli/reference/payout.md +0 -74
package/dist/safety.js
CHANGED
|
@@ -2,6 +2,6 @@ import { CliError } from "./errors.js";
|
|
|
2
2
|
export function requireConfirmation(confirmed, preview) {
|
|
3
3
|
if (confirmed)
|
|
4
4
|
return;
|
|
5
|
-
throw new CliError("confirmation_required", "This
|
|
5
|
+
throw new CliError("confirmation_required", "This action is a live write. Review the preview, obtain explicit human approval, then rerun with --confirm.", 2, { preview, requiredFlag: "--confirm" });
|
|
6
6
|
}
|
|
7
7
|
//# sourceMappingURL=safety.js.map
|
package/dist/setup.js
CHANGED
|
@@ -42,13 +42,11 @@ export async function readCliVersion() {
|
|
|
42
42
|
return "0.0.0";
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
/** The bundle version shipped inside this package
|
|
45
|
+
/** The bundle version shipped inside this package. */
|
|
46
46
|
export async function readBundledSkillVersion() {
|
|
47
47
|
try {
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
// dependency: one scalar field, and the CLI ships exactly one runtime dep.
|
|
51
|
-
return /^version:\s*(\S+)\s*$/m.exec(contents)?.[1] ?? "0.0.0";
|
|
48
|
+
const manifest = JSON.parse(await fs.readFile(path.join(skillSource, "agents", "version.json"), "utf8"));
|
|
49
|
+
return manifest.version ?? "0.0.0";
|
|
52
50
|
}
|
|
53
51
|
catch {
|
|
54
52
|
return "0.0.0";
|
package/dist/skill-update.js
CHANGED
|
@@ -87,7 +87,7 @@ async function writeBundle(bundle, destinations) {
|
|
|
87
87
|
export async function updateSkillFromServer(input) {
|
|
88
88
|
let bundle;
|
|
89
89
|
try {
|
|
90
|
-
const response = await fetch(new URL("/admin/
|
|
90
|
+
const response = await fetch(new URL("/auth/admin-cli/skill/", input.apiOrigin), {
|
|
91
91
|
headers: input.sessionCookie ? { cookie: input.sessionCookie } : {},
|
|
92
92
|
signal: AbortSignal.timeout(10_000),
|
|
93
93
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "recess-cli",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Safe Recess
|
|
3
|
+
"version": "1.6.0",
|
|
4
|
+
"description": "Safe Recess administration and family AI tools from the command line.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"dist/**/*.js",
|
|
17
17
|
"!dist/**/*.test.js",
|
|
18
18
|
"scripts/postinstall.mjs",
|
|
19
|
-
"skill",
|
|
19
|
+
"skill/recess-cli",
|
|
20
20
|
"README.md"
|
|
21
21
|
],
|
|
22
22
|
"engines": {
|