yarkr-cli 1.0.6 → 1.0.7
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/yarkr.js +13 -7
- package/package.json +3 -3
package/dist/yarkr.js
CHANGED
|
@@ -39541,6 +39541,10 @@ var IndexJobQuery = external_exports.object({
|
|
|
39541
39541
|
repo: external_exports.string().trim().max(200).optional(),
|
|
39542
39542
|
limit: external_exports.coerce.number().int().min(1).max(500).default(200)
|
|
39543
39543
|
});
|
|
39544
|
+
var DeleteIndexJobsQuery = external_exports.object({
|
|
39545
|
+
status: external_exports.literal("error").default("error"),
|
|
39546
|
+
repo: external_exports.string().trim().max(200).optional()
|
|
39547
|
+
});
|
|
39544
39548
|
var AuditQuery = external_exports.object({
|
|
39545
39549
|
package: external_exports.string().optional(),
|
|
39546
39550
|
/** `me`: only what you did yourself. Anyone may read their own events. */
|
|
@@ -45136,16 +45140,14 @@ function updateCommand(latest, scriptPath = process.argv[1] ?? "") {
|
|
|
45136
45140
|
}
|
|
45137
45141
|
|
|
45138
45142
|
// src/index.ts
|
|
45139
|
-
var VERSION = true ? "1.0.
|
|
45143
|
+
var VERSION = true ? "1.0.7" : "0.0.0-dev";
|
|
45140
45144
|
var act = (fn) => async (...a) => {
|
|
45141
45145
|
await fn(...a);
|
|
45142
45146
|
};
|
|
45143
45147
|
var syncFlags = (c) => c.option("--harness <ids...>", `limit to some harnesses (${HARNESS_IDS.join(", ")})`).option("--dry-run", "show what would change; write nothing").option("--check", "exit 1 if anything is out of date (for CI)").option("--force", "overwrite files edited locally").option("--require-signatures", "refuse unsigned releases").option("-g, --global", "install into your home directory instead of this folder").addOption(new Option("--user").hideHelp()).option("--registry <url>", "registry to use (default: from .yarkrrc)");
|
|
45148
|
+
var bannerFor = (latest) => banner(VERSION, viaNpx() || path19.basename(process.argv[1] ?? "", ".js") === "yarkr-cli", latest ? { latest, command: updateCommand(latest) } : null);
|
|
45144
45149
|
function buildProgram(latest = null) {
|
|
45145
|
-
const program2 = new Command().name("yarkr").description("Yarkr: install your org's skills, agents and MCP configs into every harness.").version(VERSION).addHelpText(
|
|
45146
|
-
"before",
|
|
45147
|
-
() => banner(VERSION, viaNpx() || path19.basename(process.argv[1] ?? "", ".js") === "yarkr-cli", latest ? { latest, command: updateCommand(latest) } : null)
|
|
45148
|
-
).option("-q, --quiet", "only print warnings and errors").hook("preAction", (cmd) => {
|
|
45150
|
+
const program2 = new Command().name("yarkr").description("Yarkr: install your org's skills, agents and MCP configs into every harness.").version(VERSION).addHelpText("before", () => bannerFor(latest)).option("-q, --quiet", "only print warnings and errors").hook("preAction", (cmd) => {
|
|
45149
45151
|
ui.quiet = !!cmd.opts().quiet;
|
|
45150
45152
|
});
|
|
45151
45153
|
program2.command("login").description("sign in in the browser and keep a token in your keychain (or ~/.yarkrrc)").option("--registry <url>").option("--token <token>", "use this token instead of the browser (or pipe it on stdin)").option("--no-browser", "print a link to open on any device, then paste the token it shows").action(act(login));
|
|
@@ -45190,10 +45192,14 @@ function buildProgram(latest = null) {
|
|
|
45190
45192
|
program2.command("mcp-config").argument("<harness>", HARNESS_IDS.join(" | ")).description("print the config that connects a harness to Yarkr's MCP server").option("--token-env <name>", "environment variable holding the token", "YARKR_TOKEN").option("--registry <url>").action(act(mcpConfig));
|
|
45191
45193
|
return program2;
|
|
45192
45194
|
}
|
|
45193
|
-
var
|
|
45195
|
+
var isTopLevelHelp = (args) => args.length === 0 || args.length === 1 && (args[0] === "-h" || args[0] === "--help");
|
|
45196
|
+
var commandShowsBanner = (args, env = process.env) => !!process.stdout.isTTY && !!process.stderr.isTTY && !env.CI && !args.some((a) => a === "--json" || a.startsWith("--json=") || a === "-q" || a === "--quiet" || a === "-V" || a === "--version");
|
|
45194
45197
|
async function main(argv = process.argv) {
|
|
45195
45198
|
try {
|
|
45196
|
-
const
|
|
45199
|
+
const args = argv.slice(2);
|
|
45200
|
+
const topLevelHelp = isTopLevelHelp(args);
|
|
45201
|
+
const latest = topLevelHelp || commandShowsBanner(args) ? await newerVersion(VERSION) : null;
|
|
45202
|
+
if (!topLevelHelp && commandShowsBanner(args)) console.error(bannerFor(latest));
|
|
45197
45203
|
await buildProgram(latest).parseAsync(argv);
|
|
45198
45204
|
} catch (err) {
|
|
45199
45205
|
if (err instanceof CliError) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yarkr-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "Install skills, agents and MCP toolsets from Yarkr into Claude Code, Codex, opencode, Cursor and more",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://yarkr.com",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"typescript": "~5.9.3",
|
|
49
49
|
"vitest": "^3.2.4",
|
|
50
50
|
"yaml": "^2.8.1",
|
|
51
|
-
"@yarkr/core": "0.1.0",
|
|
52
51
|
"@yarkr/evals": "0.1.0",
|
|
53
|
-
"@yarkr/schema": "0.1.0"
|
|
52
|
+
"@yarkr/schema": "0.1.0",
|
|
53
|
+
"@yarkr/core": "0.1.0"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"build": "tsup",
|