clawnify 0.22.2 → 0.22.4
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.
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
resolveOrgContext,
|
|
23
23
|
saveAuth,
|
|
24
24
|
saveProject
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-MEJ2B6IG.js";
|
|
26
26
|
|
|
27
27
|
// src/cli.ts
|
|
28
28
|
import { Command, Option } from "commander";
|
|
@@ -1777,7 +1777,7 @@ function agentByName(name) {
|
|
|
1777
1777
|
var ALL_AGENTS = DETECTORS.map((d) => d.agent);
|
|
1778
1778
|
|
|
1779
1779
|
// src/lib/skills/content.gen.ts
|
|
1780
|
-
var CLI_VERSION = "0.22.
|
|
1780
|
+
var CLI_VERSION = "0.22.4";
|
|
1781
1781
|
var BUNDLED_SKILLS = [
|
|
1782
1782
|
{
|
|
1783
1783
|
name: "build-a-clawnify-app",
|
|
@@ -2205,13 +2205,26 @@ Done \u2014 removed ${removed} item${removed === 1 ? "" : "s"}.`);
|
|
|
2205
2205
|
}
|
|
2206
2206
|
|
|
2207
2207
|
// src/commands/init.ts
|
|
2208
|
+
var EXIT_USAGE2 = 64;
|
|
2208
2209
|
function ask2(question) {
|
|
2209
2210
|
const rl = readline4.createInterface({
|
|
2210
2211
|
input: process.stdin,
|
|
2211
2212
|
output: process.stdout
|
|
2212
2213
|
});
|
|
2213
2214
|
return new Promise((resolve) => {
|
|
2215
|
+
let answered = false;
|
|
2216
|
+
rl.on("close", () => {
|
|
2217
|
+
if (answered) return;
|
|
2218
|
+
console.error(
|
|
2219
|
+
`
|
|
2220
|
+
No answer to "${question.trim()}": there is no terminal to ask in.
|
|
2221
|
+
Pass --yes for the defaults, or the answers as flags (clawnify init --help).
|
|
2222
|
+
`
|
|
2223
|
+
);
|
|
2224
|
+
process.exit(EXIT_USAGE2);
|
|
2225
|
+
});
|
|
2214
2226
|
rl.question(question, (answer) => {
|
|
2227
|
+
answered = true;
|
|
2215
2228
|
rl.close();
|
|
2216
2229
|
resolve(answer.trim());
|
|
2217
2230
|
});
|
|
@@ -4609,8 +4622,9 @@ async function workspaceConnectCommand(opts) {
|
|
|
4609
4622
|
then re-run \`clawnify workspace connect\`.`);
|
|
4610
4623
|
process.exit(1);
|
|
4611
4624
|
}
|
|
4612
|
-
const
|
|
4613
|
-
const
|
|
4625
|
+
const org = await resolveOrg({ org: opts?.org });
|
|
4626
|
+
const orgId = org.id;
|
|
4627
|
+
const orgOpt = { orgId };
|
|
4614
4628
|
let installs = await listInstallations(orgId);
|
|
4615
4629
|
if (installs.length === 0) {
|
|
4616
4630
|
console.log(`No GitHub account is connected to this workspace yet.
|
|
@@ -4649,7 +4663,7 @@ async function workspaceConnectCommand(opts) {
|
|
|
4649
4663
|
}
|
|
4650
4664
|
install = match;
|
|
4651
4665
|
}
|
|
4652
|
-
console.log(`Connecting
|
|
4666
|
+
console.log(`Connecting ${org.name} (${org.slug}) via @${install.account}...`);
|
|
4653
4667
|
let ws = await connectWholeWorkspace(install.id, orgOpt);
|
|
4654
4668
|
if (ws.state === "needs-first-target" || ws.state === "unavailable") {
|
|
4655
4669
|
const site = await connectWebsite(install, orgOpt);
|
|
@@ -5222,7 +5236,7 @@ async function runCli() {
|
|
|
5222
5236
|
const workspace = program.command("workspace").description("Show the org's workspace: its repo (Clawnify git or GitHub), targets, and how to edit locally").option("--json", "Machine-readable output").action(workspaceStatusCommand);
|
|
5223
5237
|
workspace.command("clone [dir]").description("Clone the org's Clawnify git repo; git signs in with your Clawnify login").option("--org <slug-or-id>", "Org to clone (defaults to the folder's or only org)").action(workspaceCloneCommand);
|
|
5224
5238
|
workspace.command("init [dir]").description("Scaffold a workspace monorepo bound to an org").option("--org <slug-or-id>", "Org to bind the workspace to (defaults to active org)").option("--name <name>", "Workspace display name (defaults to the org name)").action(workspaceInitCommand);
|
|
5225
|
-
workspace.command("connect").description("
|
|
5239
|
+
workspace.command("connect").description("Connect the whole workspace to GitHub: every app, the website and every agent, in one repo").option("--org <slug-or-id>", "Org to connect (needed when you are in several)").option("--account <login-or-id>", "GitHub account to use when several are connected").action(workspaceConnectCommand);
|
|
5226
5240
|
const knowledge = program.command("knowledge").description("Company Knowledge on disk, for coding agents");
|
|
5227
5241
|
knowledge.command("pull [dir]").description("Write the org's published Company Knowledge as markdown into a git-ignored folder (default: knowledge/ at the workspace root)").option("--org <slug-or-id>", "Org to pull (defaults to the folder's org)").option("--project <id>", "Pull a Project's sources instead (default folder: knowledge/projects/<name>/)").option("--files", "Also pull the original Company files (kept on for later pulls)").option("--no-files", "Stop pulling the original files, and remove the ones pulled").option("--strict", "Exit non-zero when a file was left because it changed locally").option("-q, --quiet", "Print only what needs attention (the git hook uses it)").action(knowledgePullCommand);
|
|
5228
5242
|
program.command("git-credential <operation>", { hidden: true }).description("Git credential helper for Clawnify git (get, store, erase)").action(gitCredentialCommand);
|
package/dist/index.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
// src/index.ts
|
|
4
4
|
if (process.argv.includes("--mcp")) {
|
|
5
|
-
const { startMcpServer } = await import("./mcp-
|
|
5
|
+
const { startMcpServer } = await import("./mcp-OCGWHDUI.js");
|
|
6
6
|
await startMcpServer();
|
|
7
7
|
} else {
|
|
8
|
-
const { runCli } = await import("./cli-
|
|
8
|
+
const { runCli } = await import("./cli-DQP6Q44D.js");
|
|
9
9
|
await runCli();
|
|
10
10
|
}
|