recess-cli 1.3.3 → 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/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 admin action is a live write. Review the preview, obtain explicit human approval, then rerun with --confirm.", 2, { preview, requiredFlag: "--confirm" });
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, from SKILL.md frontmatter. */
45
+ /** The bundle version shipped inside this package. */
46
46
  export async function readBundledSkillVersion() {
47
47
  try {
48
- const contents = await fs.readFile(path.join(skillSource, "SKILL.md"), "utf8");
49
- // Deliberately a narrow regex over the frontmatter rather than a YAML
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";
@@ -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/cli-skill/", input.apiOrigin), {
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.3.3",
4
- "description": "Safe Recess staff administration from the command line, for humans and coding agents.",
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": {