feat(cli): add job, group, audit, token commands and schedule enable/disable (#8581)

* feat(cli): add job, group, audit, token commands and schedule enable/disable

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* chore(cli): regenerate system prompts after new commands

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix(cli): address PR review feedback

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* chore(cli): regenerate system prompts after review fixes

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* refactor(cli): extract shared formatTimestamp util and remove unused resolveWorkspace in token

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ruben Fiszel
2026-03-28 09:18:55 +00:00
committed by GitHub
co-authored by Claude Opus 4.6
parent 820f28f879
commit d29cb234db
18 changed files with 1940 additions and 3 deletions
+44 -1
View File
@@ -1501,6 +1501,42 @@ async function preview(
}
}
async function history(
opts: GlobalOptions & { json?: boolean },
scriptPath: string
) {
if (opts.json) log.setSilent(true);
opts = await mergeConfigWithConfigFile(opts);
const workspace = await resolveWorkspace(opts);
await requireLogin(opts);
const versions = await wmill.getScriptHistoryByPath({
workspace: workspace.workspaceId,
path: scriptPath,
});
if (opts.json) {
console.log(JSON.stringify(versions));
} else {
if (versions.length === 0) {
log.info("No version history found for " + scriptPath);
return;
}
new Table()
.header(["#", "Hash", "Deployment Message"])
.padding(2)
.border(true)
.body(
versions.map((v, i) => [
String(versions.length - i),
v.script_hash,
v.deployment_msg ?? "-",
])
)
.render();
}
}
const command = new Command()
.description("script related commands")
.option("--show-archived", "Enable archived scripts in output")
@@ -1575,6 +1611,13 @@ const command = new Command()
"-e --excludes <patterns:file[]>",
"Comma separated patterns to specify which file to NOT take into account."
)
.action(generateMetadata as any);
.action(generateMetadata as any)
.command(
"history",
"show version history for a script"
)
.arguments("<path:string>")
.option("--json", "Output as JSON (for piping to jq)")
.action(history as any);
export default command;