flyspace-cli 0.1.55 → 0.1.57
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/{chunk-CN6YV335.js → chunk-3KXMQCGD.js} +211 -131
- package/dist/cli.js +78 -10
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -18595,6 +18595,7 @@ var BRANDING_DEFAULTS = {
|
|
|
18595
18595
|
gaMeasurementId: null,
|
|
18596
18596
|
botName: null,
|
|
18597
18597
|
botAvatar: null,
|
|
18598
|
+
botExpressionAvatars: null,
|
|
18598
18599
|
autoTitleEnabled: true,
|
|
18599
18600
|
autoTitlePrompt: null
|
|
18600
18601
|
};
|
|
@@ -18609,6 +18610,7 @@ function rowToBranding(row) {
|
|
|
18609
18610
|
gaMeasurementId: row["ga_measurement_id"] ?? null,
|
|
18610
18611
|
botName: row["bot_name"] ?? null,
|
|
18611
18612
|
botAvatar: row["bot_avatar"] ?? null,
|
|
18613
|
+
botExpressionAvatars: row["bot_expression_avatars"] ?? null,
|
|
18612
18614
|
autoTitleEnabled: row["auto_title_enabled"] !== false,
|
|
18613
18615
|
autoTitlePrompt: row["auto_title_prompt"] ?? null
|
|
18614
18616
|
};
|
|
@@ -18618,7 +18620,7 @@ var cache2 = /* @__PURE__ */ new Map();
|
|
|
18618
18620
|
async function getWorkspaceBranding(profile) {
|
|
18619
18621
|
const hit = cache2.get(profile);
|
|
18620
18622
|
if (hit && Date.now() - hit.readAt < CACHE_TTL_MS3) return hit.value;
|
|
18621
|
-
const { data, error } = await getSupabaseClient().from("workspace_settings").select("theme, font, logo, display_name, ga_measurement_id, bot_name, bot_avatar, auto_title_enabled, auto_title_prompt").eq("profile", profile).maybeSingle();
|
|
18623
|
+
const { data, error } = await getSupabaseClient().from("workspace_settings").select("theme, font, logo, display_name, ga_measurement_id, bot_name, bot_avatar, bot_expression_avatars, auto_title_enabled, auto_title_prompt").eq("profile", profile).maybeSingle();
|
|
18622
18624
|
if (error) throw new Error(`failed to read workspace settings: ${error.message}`);
|
|
18623
18625
|
const value = data ? rowToBranding(data) : null;
|
|
18624
18626
|
cache2.set(profile, { value, readAt: Date.now() });
|
|
@@ -18634,6 +18636,7 @@ async function upsertWorkspaceBranding(profile, patch) {
|
|
|
18634
18636
|
gaMeasurementId: patch.gaMeasurementId === void 0 ? current.gaMeasurementId : patch.gaMeasurementId,
|
|
18635
18637
|
botName: patch.botName === void 0 ? current.botName : patch.botName,
|
|
18636
18638
|
botAvatar: patch.botAvatar === void 0 ? current.botAvatar : patch.botAvatar,
|
|
18639
|
+
botExpressionAvatars: patch.botExpressionAvatars === void 0 ? current.botExpressionAvatars : patch.botExpressionAvatars,
|
|
18637
18640
|
autoTitleEnabled: patch.autoTitleEnabled ?? current.autoTitleEnabled,
|
|
18638
18641
|
autoTitlePrompt: patch.autoTitlePrompt === void 0 ? current.autoTitlePrompt : patch.autoTitlePrompt
|
|
18639
18642
|
};
|
|
@@ -18647,6 +18650,7 @@ async function upsertWorkspaceBranding(profile, patch) {
|
|
|
18647
18650
|
ga_measurement_id: next.gaMeasurementId,
|
|
18648
18651
|
bot_name: next.botName,
|
|
18649
18652
|
bot_avatar: next.botAvatar,
|
|
18653
|
+
bot_expression_avatars: next.botExpressionAvatars,
|
|
18650
18654
|
auto_title_enabled: next.autoTitleEnabled,
|
|
18651
18655
|
auto_title_prompt: next.autoTitlePrompt,
|
|
18652
18656
|
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -18762,7 +18766,8 @@ async function loadBotIdentity(profile = getProfile()) {
|
|
|
18762
18766
|
const branding = await getWorkspaceBranding(profile);
|
|
18763
18767
|
return {
|
|
18764
18768
|
displayName: branding?.botName ?? void 0,
|
|
18765
|
-
avatar: branding?.botAvatar ?? void 0
|
|
18769
|
+
avatar: branding?.botAvatar ?? void 0,
|
|
18770
|
+
expressionAvatars: branding?.botExpressionAvatars ?? void 0
|
|
18766
18771
|
};
|
|
18767
18772
|
}
|
|
18768
18773
|
async function saveBotIdentity(patch, profile = getProfile()) {
|
|
@@ -24661,7 +24666,7 @@ async function withMcpConfig(profile, connectionIds, fn, extraServers = {}) {
|
|
|
24661
24666
|
|
|
24662
24667
|
// ../api/src/version.ts
|
|
24663
24668
|
import { readFileSync as readFileSync7 } from "fs";
|
|
24664
|
-
var CLI_VERSION = true ? "0.1.
|
|
24669
|
+
var CLI_VERSION = true ? "0.1.57" : devVersion();
|
|
24665
24670
|
function isOlderVersion(a, b) {
|
|
24666
24671
|
const parse2 = (v) => v.replace(/^v/, "").split("-")[0].split(".").map(Number);
|
|
24667
24672
|
const [pa, pb] = [parse2(a), parse2(b)];
|
|
@@ -24919,105 +24924,42 @@ function createHostDbClient(via = "socket") {
|
|
|
24919
24924
|
}
|
|
24920
24925
|
|
|
24921
24926
|
// src/claude/agents.ts
|
|
24922
|
-
import { existsSync as
|
|
24923
|
-
import { homedir as homedir3 } from "os";
|
|
24924
|
-
import { basename as basename2, join as join11 } from "path";
|
|
24925
|
-
import yaml from "js-yaml";
|
|
24926
|
-
function defaultConfigDir() {
|
|
24927
|
-
return join11(homedir3(), ".claude");
|
|
24928
|
-
}
|
|
24929
|
-
function expandHome(p) {
|
|
24930
|
-
if (p === "~") return homedir3();
|
|
24931
|
-
if (p.startsWith("~/")) return join11(homedir3(), p.slice(2));
|
|
24932
|
-
return p;
|
|
24933
|
-
}
|
|
24934
|
-
function parseFrontmatter(file) {
|
|
24935
|
-
let content;
|
|
24936
|
-
try {
|
|
24937
|
-
content = readFileSync9(file, "utf-8");
|
|
24938
|
-
} catch {
|
|
24939
|
-
return {};
|
|
24940
|
-
}
|
|
24941
|
-
const match = content.match(/^---\r?\n([\s\S]*?)\r?\n---/);
|
|
24942
|
-
if (!match) return {};
|
|
24943
|
-
try {
|
|
24944
|
-
const fm = yaml.load(match[1]);
|
|
24945
|
-
const name = typeof fm?.["name"] === "string" ? fm["name"] : void 0;
|
|
24946
|
-
const description = typeof fm?.["description"] === "string" ? fm["description"] : void 0;
|
|
24947
|
-
return { name, description };
|
|
24948
|
-
} catch {
|
|
24949
|
-
return {};
|
|
24950
|
-
}
|
|
24951
|
-
}
|
|
24952
|
-
function collectFrom(root, source) {
|
|
24953
|
-
if (!existsSync11(root)) return [];
|
|
24954
|
-
let entries2;
|
|
24955
|
-
try {
|
|
24956
|
-
entries2 = readdirSync2(root).filter((f) => f.endsWith(".md"));
|
|
24957
|
-
} catch {
|
|
24958
|
-
return [];
|
|
24959
|
-
}
|
|
24960
|
-
return entries2.map((file) => {
|
|
24961
|
-
const path = join11(root, file);
|
|
24962
|
-
const fm = parseFrontmatter(path);
|
|
24963
|
-
const name = fm.name?.trim() || basename2(file, ".md");
|
|
24964
|
-
return { name, description: (fm.description ?? "").trim(), source, path };
|
|
24965
|
-
});
|
|
24966
|
-
}
|
|
24967
|
-
function listAgents(configDir, cwd) {
|
|
24968
|
-
const base = configDir ? expandHome(configDir) : defaultConfigDir();
|
|
24969
|
-
const collected = [
|
|
24970
|
-
...collectFrom(join11(cwd, ".claude", "agents"), "project"),
|
|
24971
|
-
...collectFrom(join11(base, "agents"), "user")
|
|
24972
|
-
];
|
|
24973
|
-
const byName = /* @__PURE__ */ new Map();
|
|
24974
|
-
for (const agent of collected) {
|
|
24975
|
-
if (agent.name && !byName.has(agent.name)) byName.set(agent.name, agent);
|
|
24976
|
-
}
|
|
24977
|
-
return [...byName.values()].sort((a, b) => a.name.localeCompare(b.name));
|
|
24978
|
-
}
|
|
24979
|
-
function readAgentPersona(configDir, cwd, name) {
|
|
24980
|
-
const agent = listAgents(configDir, cwd).find((a) => a.name === name);
|
|
24981
|
-
if (!agent) return void 0;
|
|
24982
|
-
try {
|
|
24983
|
-
const content = readFileSync9(agent.path, "utf-8");
|
|
24984
|
-
return content.replace(/^---\r?\n[\s\S]*?\r?\n---\r?\n?/, "").trim();
|
|
24985
|
-
} catch {
|
|
24986
|
-
return void 0;
|
|
24987
|
-
}
|
|
24988
|
-
}
|
|
24989
|
-
|
|
24990
|
-
// ../api/src/claude/skills.ts
|
|
24991
|
-
import { existsSync as existsSync13, readdirSync as readdirSync4, readFileSync as readFileSync11, statSync as statSync5 } from "fs";
|
|
24927
|
+
import { existsSync as existsSync13, readdirSync as readdirSync4, readFileSync as readFileSync11 } from "fs";
|
|
24992
24928
|
import { homedir as homedir5 } from "os";
|
|
24993
|
-
import { basename as basename3,
|
|
24929
|
+
import { basename as basename3, join as join13 } from "path";
|
|
24994
24930
|
import yaml3 from "js-yaml";
|
|
24995
24931
|
|
|
24932
|
+
// ../api/src/claude/skills.ts
|
|
24933
|
+
import { existsSync as existsSync12, readdirSync as readdirSync3, readFileSync as readFileSync10, statSync as statSync5 } from "fs";
|
|
24934
|
+
import { homedir as homedir4 } from "os";
|
|
24935
|
+
import { basename as basename2, dirname as dirname2, join as join12 } from "path";
|
|
24936
|
+
import yaml2 from "js-yaml";
|
|
24937
|
+
|
|
24996
24938
|
// ../api/src/claude/skill-files.ts
|
|
24997
24939
|
import {
|
|
24998
|
-
existsSync as
|
|
24940
|
+
existsSync as existsSync11,
|
|
24999
24941
|
mkdirSync as mkdirSync8,
|
|
25000
|
-
readFileSync as
|
|
25001
|
-
readdirSync as
|
|
24942
|
+
readFileSync as readFileSync9,
|
|
24943
|
+
readdirSync as readdirSync2,
|
|
25002
24944
|
rmSync as rmSync7,
|
|
25003
24945
|
statSync as statSync4,
|
|
25004
24946
|
writeFileSync as writeFileSync6
|
|
25005
24947
|
} from "fs";
|
|
25006
|
-
import { homedir as
|
|
25007
|
-
import { join as
|
|
25008
|
-
import
|
|
24948
|
+
import { homedir as homedir3 } from "os";
|
|
24949
|
+
import { join as join11, resolve as resolve5, sep as sep2 } from "path";
|
|
24950
|
+
import yaml from "js-yaml";
|
|
25009
24951
|
var MAX_SKILL_BYTES = 2 * 1024 * 1024;
|
|
25010
24952
|
var SKILL_NAME = /^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$/;
|
|
25011
|
-
function
|
|
25012
|
-
if (p === "~") return
|
|
25013
|
-
if (p.startsWith("~/")) return
|
|
24953
|
+
function expandHome(p) {
|
|
24954
|
+
if (p === "~") return homedir3();
|
|
24955
|
+
if (p.startsWith("~/")) return join11(homedir3(), p.slice(2));
|
|
25014
24956
|
return p;
|
|
25015
24957
|
}
|
|
25016
24958
|
function workspaceSkillsDir(configDir) {
|
|
25017
|
-
return
|
|
24959
|
+
return join11(configDir ? expandHome(configDir) : join11(homedir3(), ".claude"), "skills");
|
|
25018
24960
|
}
|
|
25019
24961
|
function channelSkillsDir(cwd) {
|
|
25020
|
-
return
|
|
24962
|
+
return join11(cwd, ".claude", "skills");
|
|
25021
24963
|
}
|
|
25022
24964
|
function isValidSkillName(name) {
|
|
25023
24965
|
return SKILL_NAME.test(name);
|
|
@@ -25033,7 +24975,7 @@ function splitFrontmatter(raw) {
|
|
|
25033
24975
|
if (!match) return { fm: {}, body: raw };
|
|
25034
24976
|
let fm = {};
|
|
25035
24977
|
try {
|
|
25036
|
-
fm =
|
|
24978
|
+
fm = yaml.load(match[1]) ?? {};
|
|
25037
24979
|
} catch {
|
|
25038
24980
|
fm = {};
|
|
25039
24981
|
}
|
|
@@ -25042,7 +24984,7 @@ function splitFrontmatter(raw) {
|
|
|
25042
24984
|
function buildSkillFile(fm, body) {
|
|
25043
24985
|
const { name, description, ...rest } = fm;
|
|
25044
24986
|
const ordered = { name, description, ...rest };
|
|
25045
|
-
const front =
|
|
24987
|
+
const front = yaml.dump(ordered, { lineWidth: -1 }).trimEnd();
|
|
25046
24988
|
return `---
|
|
25047
24989
|
${front}
|
|
25048
24990
|
---
|
|
@@ -25052,7 +24994,7 @@ ${body.replace(/^\n+/, "").trimEnd()}
|
|
|
25052
24994
|
}
|
|
25053
24995
|
function readMeta(abs) {
|
|
25054
24996
|
try {
|
|
25055
|
-
const { fm } = splitFrontmatter(
|
|
24997
|
+
const { fm } = splitFrontmatter(readFileSync9(abs, "utf-8"));
|
|
25056
24998
|
return {
|
|
25057
24999
|
name: typeof fm["name"] === "string" ? fm["name"] : void 0,
|
|
25058
25000
|
description: typeof fm["description"] === "string" ? fm["description"] : void 0
|
|
@@ -25062,17 +25004,17 @@ function readMeta(abs) {
|
|
|
25062
25004
|
}
|
|
25063
25005
|
}
|
|
25064
25006
|
function listSkillFiles(dir) {
|
|
25065
|
-
if (!
|
|
25007
|
+
if (!existsSync11(dir)) return [];
|
|
25066
25008
|
let entries2;
|
|
25067
25009
|
try {
|
|
25068
|
-
entries2 =
|
|
25010
|
+
entries2 = readdirSync2(dir);
|
|
25069
25011
|
} catch {
|
|
25070
25012
|
return [];
|
|
25071
25013
|
}
|
|
25072
25014
|
const rows2 = [];
|
|
25073
25015
|
for (const entry of entries2) {
|
|
25074
25016
|
if (!isValidSkillName(entry)) continue;
|
|
25075
|
-
const abs =
|
|
25017
|
+
const abs = join11(dir, entry, "SKILL.md");
|
|
25076
25018
|
let stat;
|
|
25077
25019
|
try {
|
|
25078
25020
|
stat = statSync4(abs);
|
|
@@ -25101,7 +25043,7 @@ function readSkillFile(dir, name) {
|
|
|
25101
25043
|
return null;
|
|
25102
25044
|
}
|
|
25103
25045
|
if (!stat.isFile() || stat.size > MAX_SKILL_BYTES) return null;
|
|
25104
|
-
const { fm, body } = splitFrontmatter(
|
|
25046
|
+
const { fm, body } = splitFrontmatter(readFileSync9(abs, "utf-8"));
|
|
25105
25047
|
return {
|
|
25106
25048
|
name,
|
|
25107
25049
|
description: typeof fm["description"] === "string" ? fm["description"].trim() : "",
|
|
@@ -25123,7 +25065,7 @@ function writeSkillFile(dir, name, patch, baseMtime) {
|
|
|
25123
25065
|
if (baseMtime && stat.mtime.toISOString() !== baseMtime) {
|
|
25124
25066
|
return { status: "conflict", mtime: stat.mtime.toISOString() };
|
|
25125
25067
|
}
|
|
25126
|
-
const { fm } = splitFrontmatter(
|
|
25068
|
+
const { fm } = splitFrontmatter(readFileSync9(abs, "utf-8"));
|
|
25127
25069
|
const content = buildSkillFile({ ...fm, name, description: patch.description }, patch.body);
|
|
25128
25070
|
if (Buffer.byteLength(content, "utf8") > MAX_SKILL_BYTES) return { status: "too-large" };
|
|
25129
25071
|
writeFileSync6(abs, content, "utf8");
|
|
@@ -25132,8 +25074,8 @@ function writeSkillFile(dir, name, patch, baseMtime) {
|
|
|
25132
25074
|
function createSkillFile(dir, name, description) {
|
|
25133
25075
|
const abs = resolveSkillPath(dir, name);
|
|
25134
25076
|
if (!abs) return { status: "bad-name" };
|
|
25135
|
-
if (
|
|
25136
|
-
mkdirSync8(
|
|
25077
|
+
if (existsSync11(abs)) return { status: "exists" };
|
|
25078
|
+
mkdirSync8(join11(dir, name), { recursive: true });
|
|
25137
25079
|
writeFileSync6(
|
|
25138
25080
|
abs,
|
|
25139
25081
|
buildSkillFile(
|
|
@@ -25150,31 +25092,31 @@ Describe what this skill does and when to use it.
|
|
|
25150
25092
|
}
|
|
25151
25093
|
function deleteSkillFile(dir, name) {
|
|
25152
25094
|
const abs = resolveSkillPath(dir, name);
|
|
25153
|
-
if (!abs || !
|
|
25154
|
-
rmSync7(
|
|
25095
|
+
if (!abs || !existsSync11(abs)) return { status: "not-found" };
|
|
25096
|
+
rmSync7(join11(dir, name), { recursive: true, force: true });
|
|
25155
25097
|
return { status: "ok" };
|
|
25156
25098
|
}
|
|
25157
25099
|
|
|
25158
25100
|
// ../api/src/claude/skills.ts
|
|
25159
|
-
function
|
|
25160
|
-
return
|
|
25101
|
+
function defaultConfigDir() {
|
|
25102
|
+
return join12(homedir4(), ".claude");
|
|
25161
25103
|
}
|
|
25162
|
-
function
|
|
25163
|
-
if (p === "~") return
|
|
25164
|
-
if (p.startsWith("~/")) return
|
|
25104
|
+
function expandHome2(p) {
|
|
25105
|
+
if (p === "~") return homedir4();
|
|
25106
|
+
if (p.startsWith("~/")) return join12(homedir4(), p.slice(2));
|
|
25165
25107
|
return p;
|
|
25166
25108
|
}
|
|
25167
|
-
function
|
|
25109
|
+
function parseFrontmatter(file) {
|
|
25168
25110
|
let content;
|
|
25169
25111
|
try {
|
|
25170
|
-
content =
|
|
25112
|
+
content = readFileSync10(file, "utf-8");
|
|
25171
25113
|
} catch {
|
|
25172
25114
|
return {};
|
|
25173
25115
|
}
|
|
25174
25116
|
const match = content.match(/^---\r?\n([\s\S]*?)\r?\n---/);
|
|
25175
25117
|
if (!match) return {};
|
|
25176
25118
|
try {
|
|
25177
|
-
const fm =
|
|
25119
|
+
const fm = yaml2.load(match[1]);
|
|
25178
25120
|
const name = typeof fm?.["name"] === "string" ? fm["name"] : void 0;
|
|
25179
25121
|
const description = typeof fm?.["description"] === "string" ? fm["description"] : void 0;
|
|
25180
25122
|
return { name, description };
|
|
@@ -25185,25 +25127,25 @@ function parseFrontmatter2(file) {
|
|
|
25185
25127
|
function isSymlinkedDir(root, entry) {
|
|
25186
25128
|
if (!entry.isSymbolicLink()) return false;
|
|
25187
25129
|
try {
|
|
25188
|
-
return statSync5(
|
|
25130
|
+
return statSync5(join12(root, entry.name)).isDirectory();
|
|
25189
25131
|
} catch {
|
|
25190
25132
|
return false;
|
|
25191
25133
|
}
|
|
25192
25134
|
}
|
|
25193
25135
|
function findSkillFiles(root, maxDepth, out) {
|
|
25194
|
-
if (maxDepth < 0 || !
|
|
25136
|
+
if (maxDepth < 0 || !existsSync12(root)) return;
|
|
25195
25137
|
let entries2;
|
|
25196
25138
|
try {
|
|
25197
|
-
entries2 =
|
|
25139
|
+
entries2 = readdirSync3(root, { withFileTypes: true });
|
|
25198
25140
|
} catch {
|
|
25199
25141
|
return;
|
|
25200
25142
|
}
|
|
25201
25143
|
for (const entry of entries2) {
|
|
25202
25144
|
if (entry.isFile()) {
|
|
25203
|
-
if (entry.name === "SKILL.md") out.push(
|
|
25145
|
+
if (entry.name === "SKILL.md") out.push(join12(root, entry.name));
|
|
25204
25146
|
} else if (entry.isDirectory() || isSymlinkedDir(root, entry)) {
|
|
25205
25147
|
if (entry.name === "node_modules" || entry.name.startsWith(".")) continue;
|
|
25206
|
-
findSkillFiles(
|
|
25148
|
+
findSkillFiles(join12(root, entry.name), maxDepth - 1, out);
|
|
25207
25149
|
}
|
|
25208
25150
|
}
|
|
25209
25151
|
}
|
|
@@ -25212,7 +25154,7 @@ function pluginNameFor(file, root) {
|
|
|
25212
25154
|
while (dir.startsWith(root) && dir !== dirname2(dir)) {
|
|
25213
25155
|
try {
|
|
25214
25156
|
const manifest = JSON.parse(
|
|
25215
|
-
|
|
25157
|
+
readFileSync10(join12(dir, ".claude-plugin", "plugin.json"), "utf-8")
|
|
25216
25158
|
);
|
|
25217
25159
|
if (typeof manifest.name === "string" && manifest.name.trim()) return manifest.name.trim();
|
|
25218
25160
|
} catch {
|
|
@@ -25221,12 +25163,73 @@ function pluginNameFor(file, root) {
|
|
|
25221
25163
|
}
|
|
25222
25164
|
return void 0;
|
|
25223
25165
|
}
|
|
25224
|
-
function
|
|
25166
|
+
function findPluginMarkdown(pluginsRoot, dirName, maxDepth = 8) {
|
|
25167
|
+
const out = [];
|
|
25168
|
+
const walk = (dir, depth) => {
|
|
25169
|
+
if (depth < 0) return;
|
|
25170
|
+
let entries2;
|
|
25171
|
+
try {
|
|
25172
|
+
entries2 = readdirSync3(dir, { withFileTypes: true });
|
|
25173
|
+
} catch {
|
|
25174
|
+
return;
|
|
25175
|
+
}
|
|
25176
|
+
for (const entry of entries2) {
|
|
25177
|
+
if (entry.name === "node_modules" || entry.name.startsWith(".")) continue;
|
|
25178
|
+
if (!entry.isDirectory() && !isSymlinkedDir(dir, entry)) continue;
|
|
25179
|
+
const child = join12(dir, entry.name);
|
|
25180
|
+
if (entry.name === dirName) {
|
|
25181
|
+
for (const f of readdirSafe(child)) {
|
|
25182
|
+
if (f.endsWith(".md")) out.push({ file: join12(child, f), plugin: pluginNameFor(join12(child, f), pluginsRoot) });
|
|
25183
|
+
}
|
|
25184
|
+
} else {
|
|
25185
|
+
walk(child, depth - 1);
|
|
25186
|
+
}
|
|
25187
|
+
}
|
|
25188
|
+
};
|
|
25189
|
+
if (existsSync12(pluginsRoot)) walk(pluginsRoot, maxDepth);
|
|
25190
|
+
return out;
|
|
25191
|
+
}
|
|
25192
|
+
function readdirSafe(dir) {
|
|
25193
|
+
try {
|
|
25194
|
+
return readdirSync3(dir);
|
|
25195
|
+
} catch {
|
|
25196
|
+
return [];
|
|
25197
|
+
}
|
|
25198
|
+
}
|
|
25199
|
+
function listCommands(configDir, cwd) {
|
|
25200
|
+
const base = configDir ? expandHome2(configDir) : defaultConfigDir();
|
|
25201
|
+
const local = (dir, source) => readdirSafe(dir).filter((f) => f.endsWith(".md")).map((f) => ({
|
|
25202
|
+
name: basename2(f, ".md"),
|
|
25203
|
+
description: (parseFrontmatter(join12(dir, f)).description ?? "").trim(),
|
|
25204
|
+
source,
|
|
25205
|
+
kind: "command"
|
|
25206
|
+
}));
|
|
25207
|
+
const collected = [
|
|
25208
|
+
...local(join12(cwd, ".claude", "commands"), "project"),
|
|
25209
|
+
...local(join12(base, "commands"), "user"),
|
|
25210
|
+
...findPluginMarkdown(join12(base, "plugins"), "commands").map(({ file, plugin }) => ({
|
|
25211
|
+
name: plugin ? `${plugin}:${basename2(file, ".md")}` : basename2(file, ".md"),
|
|
25212
|
+
description: (parseFrontmatter(file).description ?? "").trim(),
|
|
25213
|
+
source: "plugin",
|
|
25214
|
+
...plugin && { plugin },
|
|
25215
|
+
kind: "command"
|
|
25216
|
+
}))
|
|
25217
|
+
];
|
|
25218
|
+
const byName = /* @__PURE__ */ new Map();
|
|
25219
|
+
for (const c of collected) if (!byName.has(c.name)) byName.set(c.name, c);
|
|
25220
|
+
return [...byName.values()].sort((a, b) => a.name.localeCompare(b.name));
|
|
25221
|
+
}
|
|
25222
|
+
function listSlashItems(configDir, cwd) {
|
|
25223
|
+
const skills = listSkills(configDir, cwd);
|
|
25224
|
+
const taken = new Set(skills.map((s) => s.name));
|
|
25225
|
+
return [...skills, ...listCommands(configDir, cwd).filter((c) => !taken.has(c.name))];
|
|
25226
|
+
}
|
|
25227
|
+
function collectFrom(root, source, maxDepth, namePrefix) {
|
|
25225
25228
|
const files = [];
|
|
25226
25229
|
findSkillFiles(root, maxDepth, files);
|
|
25227
25230
|
return files.map((file) => {
|
|
25228
|
-
const fm =
|
|
25229
|
-
const name = fm.name?.trim() ||
|
|
25231
|
+
const fm = parseFrontmatter(file);
|
|
25232
|
+
const name = fm.name?.trim() || basename2(dirname2(file));
|
|
25230
25233
|
const plugin = source === "plugin" ? pluginNameFor(file, root) : void 0;
|
|
25231
25234
|
const prefix = namePrefix ?? plugin;
|
|
25232
25235
|
return {
|
|
@@ -25240,12 +25243,12 @@ function collectFrom2(root, source, maxDepth, namePrefix) {
|
|
|
25240
25243
|
});
|
|
25241
25244
|
}
|
|
25242
25245
|
function collectAll(configDir, cwd) {
|
|
25243
|
-
const base = configDir ?
|
|
25246
|
+
const base = configDir ? expandHome2(configDir) : defaultConfigDir();
|
|
25244
25247
|
const collected = [
|
|
25245
|
-
...
|
|
25246
|
-
...nestedProjectRoots(cwd).flatMap(({ dir, prefix }) =>
|
|
25247
|
-
...
|
|
25248
|
-
...
|
|
25248
|
+
...collectFrom(join12(cwd, ".claude", "skills"), "project", 2),
|
|
25249
|
+
...nestedProjectRoots(cwd).flatMap(({ dir, prefix }) => collectFrom(dir, "project", 2, prefix)),
|
|
25250
|
+
...collectFrom(join12(base, "skills"), "user", 2),
|
|
25251
|
+
...collectFrom(join12(base, "plugins"), "plugin", 8)
|
|
25249
25252
|
];
|
|
25250
25253
|
const byName = /* @__PURE__ */ new Map();
|
|
25251
25254
|
for (const skill of collected) {
|
|
@@ -25256,7 +25259,7 @@ function collectAll(configDir, cwd) {
|
|
|
25256
25259
|
function nestedProjectRoots(cwd) {
|
|
25257
25260
|
let entries2;
|
|
25258
25261
|
try {
|
|
25259
|
-
entries2 =
|
|
25262
|
+
entries2 = readdirSync3(cwd, { withFileTypes: true });
|
|
25260
25263
|
} catch {
|
|
25261
25264
|
return [];
|
|
25262
25265
|
}
|
|
@@ -25264,8 +25267,8 @@ function nestedProjectRoots(cwd) {
|
|
|
25264
25267
|
for (const entry of entries2) {
|
|
25265
25268
|
if (entry.name.startsWith(".") || entry.name === "node_modules") continue;
|
|
25266
25269
|
if (!entry.isDirectory() && !isSymlinkedDir(cwd, entry)) continue;
|
|
25267
|
-
const skillsDir =
|
|
25268
|
-
if (
|
|
25270
|
+
const skillsDir = join12(cwd, entry.name, ".claude", "skills");
|
|
25271
|
+
if (existsSync12(skillsDir)) roots.push({ dir: skillsDir, prefix: entry.name });
|
|
25269
25272
|
}
|
|
25270
25273
|
return roots;
|
|
25271
25274
|
}
|
|
@@ -25277,7 +25280,7 @@ function listPluginSkillDetails(configDir, cwd) {
|
|
|
25277
25280
|
for (const { file, ...skill } of collectAll(configDir, cwd)) {
|
|
25278
25281
|
if (skill.source !== "plugin") continue;
|
|
25279
25282
|
try {
|
|
25280
|
-
const { body } = splitFrontmatter(
|
|
25283
|
+
const { body } = splitFrontmatter(readFileSync10(file, "utf-8"));
|
|
25281
25284
|
details.push({ ...skill, body, path: file, mtime: statSync5(file).mtime.toISOString() });
|
|
25282
25285
|
} catch {
|
|
25283
25286
|
}
|
|
@@ -25285,25 +25288,25 @@ function listPluginSkillDetails(configDir, cwd) {
|
|
|
25285
25288
|
return details;
|
|
25286
25289
|
}
|
|
25287
25290
|
function findSkillDetail(configDir, cwd, name, sources) {
|
|
25288
|
-
const base = configDir ?
|
|
25291
|
+
const base = configDir ? expandHome2(configDir) : defaultConfigDir();
|
|
25289
25292
|
const roots = [
|
|
25290
|
-
[
|
|
25293
|
+
[join12(cwd, ".claude", "skills"), "project", 2],
|
|
25291
25294
|
...nestedProjectRoots(cwd).map(({ dir, prefix }) => [
|
|
25292
25295
|
dir,
|
|
25293
25296
|
"project",
|
|
25294
25297
|
2,
|
|
25295
25298
|
prefix
|
|
25296
25299
|
]),
|
|
25297
|
-
[
|
|
25298
|
-
[
|
|
25300
|
+
[join12(base, "skills"), "user", 2],
|
|
25301
|
+
[join12(base, "plugins"), "plugin", 8]
|
|
25299
25302
|
];
|
|
25300
25303
|
for (const [root, source, maxDepth, namePrefix] of roots) {
|
|
25301
25304
|
if (!sources.includes(source)) continue;
|
|
25302
25305
|
const files = [];
|
|
25303
25306
|
findSkillFiles(root, maxDepth, files);
|
|
25304
25307
|
for (const file of files) {
|
|
25305
|
-
const fm =
|
|
25306
|
-
const rawName = fm.name?.trim() ||
|
|
25308
|
+
const fm = parseFrontmatter(file);
|
|
25309
|
+
const rawName = fm.name?.trim() || basename2(dirname2(file));
|
|
25307
25310
|
const plugin = source === "plugin" ? pluginNameFor(file, root) : void 0;
|
|
25308
25311
|
const prefix = namePrefix ?? plugin;
|
|
25309
25312
|
const skillName = prefix ? `${prefix}:${rawName}` : rawName;
|
|
@@ -25311,7 +25314,7 @@ function findSkillDetail(configDir, cwd, name, sources) {
|
|
|
25311
25314
|
let raw;
|
|
25312
25315
|
let mtime;
|
|
25313
25316
|
try {
|
|
25314
|
-
raw =
|
|
25317
|
+
raw = readFileSync10(file, "utf-8");
|
|
25315
25318
|
mtime = statSync5(file).mtime.toISOString();
|
|
25316
25319
|
} catch {
|
|
25317
25320
|
continue;
|
|
@@ -25344,6 +25347,82 @@ ARGUMENTS: ${args}` : "");
|
|
|
25344
25347
|
${body.trim()}`;
|
|
25345
25348
|
}
|
|
25346
25349
|
|
|
25350
|
+
// src/claude/agents.ts
|
|
25351
|
+
function defaultConfigDir2() {
|
|
25352
|
+
return join13(homedir5(), ".claude");
|
|
25353
|
+
}
|
|
25354
|
+
function expandHome3(p) {
|
|
25355
|
+
if (p === "~") return homedir5();
|
|
25356
|
+
if (p.startsWith("~/")) return join13(homedir5(), p.slice(2));
|
|
25357
|
+
return p;
|
|
25358
|
+
}
|
|
25359
|
+
function parseFrontmatter2(file) {
|
|
25360
|
+
let content;
|
|
25361
|
+
try {
|
|
25362
|
+
content = readFileSync11(file, "utf-8");
|
|
25363
|
+
} catch {
|
|
25364
|
+
return {};
|
|
25365
|
+
}
|
|
25366
|
+
const match = content.match(/^---\r?\n([\s\S]*?)\r?\n---/);
|
|
25367
|
+
if (!match) return {};
|
|
25368
|
+
try {
|
|
25369
|
+
const fm = yaml3.load(match[1]);
|
|
25370
|
+
const name = typeof fm?.["name"] === "string" ? fm["name"] : void 0;
|
|
25371
|
+
const description = typeof fm?.["description"] === "string" ? fm["description"] : void 0;
|
|
25372
|
+
return { name, description };
|
|
25373
|
+
} catch {
|
|
25374
|
+
return {};
|
|
25375
|
+
}
|
|
25376
|
+
}
|
|
25377
|
+
function collectFrom2(root, source) {
|
|
25378
|
+
if (!existsSync13(root)) return [];
|
|
25379
|
+
let entries2;
|
|
25380
|
+
try {
|
|
25381
|
+
entries2 = readdirSync4(root).filter((f) => f.endsWith(".md"));
|
|
25382
|
+
} catch {
|
|
25383
|
+
return [];
|
|
25384
|
+
}
|
|
25385
|
+
return entries2.map((file) => {
|
|
25386
|
+
const path = join13(root, file);
|
|
25387
|
+
const fm = parseFrontmatter2(path);
|
|
25388
|
+
const name = fm.name?.trim() || basename3(file, ".md");
|
|
25389
|
+
return { name, description: (fm.description ?? "").trim(), source, path };
|
|
25390
|
+
});
|
|
25391
|
+
}
|
|
25392
|
+
function listAgents(configDir, cwd) {
|
|
25393
|
+
const base = configDir ? expandHome3(configDir) : defaultConfigDir2();
|
|
25394
|
+
const collected = [
|
|
25395
|
+
...collectFrom2(join13(cwd, ".claude", "agents"), "project"),
|
|
25396
|
+
...collectFrom2(join13(base, "agents"), "user"),
|
|
25397
|
+
// Plugin agents, namespaced `plugin:agent` the way the CLI lists them.
|
|
25398
|
+
...findPluginMarkdown(join13(base, "plugins"), "agents").map(({ file, plugin }) => {
|
|
25399
|
+
const fm = parseFrontmatter2(file);
|
|
25400
|
+
const name = fm.name?.trim() || basename3(file, ".md");
|
|
25401
|
+
return {
|
|
25402
|
+
name: plugin ? `${plugin}:${name}` : name,
|
|
25403
|
+
description: (fm.description ?? "").trim(),
|
|
25404
|
+
source: "plugin",
|
|
25405
|
+
path: file
|
|
25406
|
+
};
|
|
25407
|
+
})
|
|
25408
|
+
];
|
|
25409
|
+
const byName = /* @__PURE__ */ new Map();
|
|
25410
|
+
for (const agent of collected) {
|
|
25411
|
+
if (agent.name && !byName.has(agent.name)) byName.set(agent.name, agent);
|
|
25412
|
+
}
|
|
25413
|
+
return [...byName.values()].sort((a, b) => a.name.localeCompare(b.name));
|
|
25414
|
+
}
|
|
25415
|
+
function readAgentPersona(configDir, cwd, name) {
|
|
25416
|
+
const agent = listAgents(configDir, cwd).find((a) => a.name === name);
|
|
25417
|
+
if (!agent) return void 0;
|
|
25418
|
+
try {
|
|
25419
|
+
const content = readFileSync11(agent.path, "utf-8");
|
|
25420
|
+
return content.replace(/^---\r?\n[\s\S]*?\r?\n---\r?\n?/, "").trim();
|
|
25421
|
+
} catch {
|
|
25422
|
+
return void 0;
|
|
25423
|
+
}
|
|
25424
|
+
}
|
|
25425
|
+
|
|
25347
25426
|
// src/dashboard/memory-extraction-runner.ts
|
|
25348
25427
|
import { spawn as spawn4 } from "child_process";
|
|
25349
25428
|
import { existsSync as existsSync14, mkdtempSync as mkdtempSync4, readFileSync as readFileSync12, rmSync as rmSync8 } from "fs";
|
|
@@ -34344,7 +34423,6 @@ export {
|
|
|
34344
34423
|
handleShouldRespondResult,
|
|
34345
34424
|
LOCAL_DB_PATH,
|
|
34346
34425
|
createHostDbClient,
|
|
34347
|
-
listAgents,
|
|
34348
34426
|
workspaceSkillsDir,
|
|
34349
34427
|
channelSkillsDir,
|
|
34350
34428
|
isValidSkillName,
|
|
@@ -34353,9 +34431,11 @@ export {
|
|
|
34353
34431
|
writeSkillFile,
|
|
34354
34432
|
createSkillFile,
|
|
34355
34433
|
deleteSkillFile,
|
|
34434
|
+
listSlashItems,
|
|
34356
34435
|
listSkills,
|
|
34357
34436
|
listPluginSkillDetails,
|
|
34358
34437
|
findSkillDetail,
|
|
34438
|
+
listAgents,
|
|
34359
34439
|
setProfileConfigCache,
|
|
34360
34440
|
cachedProfileConfig,
|
|
34361
34441
|
profileEnv,
|
package/dist/cli.js
CHANGED
|
@@ -148,6 +148,7 @@ import {
|
|
|
148
148
|
listPluginSkillDetails,
|
|
149
149
|
listSkillFiles,
|
|
150
150
|
listSkills,
|
|
151
|
+
listSlashItems,
|
|
151
152
|
listThreadMemoryEvents,
|
|
152
153
|
listWorkspaceSummaries,
|
|
153
154
|
listWorkspaces,
|
|
@@ -261,7 +262,7 @@ import {
|
|
|
261
262
|
workspaceHostname,
|
|
262
263
|
workspaceSkillsDir,
|
|
263
264
|
writeSkillFile
|
|
264
|
-
} from "./chunk-
|
|
265
|
+
} from "./chunk-3KXMQCGD.js";
|
|
265
266
|
import {
|
|
266
267
|
canReadThread,
|
|
267
268
|
firstReplyBody,
|
|
@@ -2359,7 +2360,7 @@ function npmEnv(target) {
|
|
|
2359
2360
|
return nodeBin ? { ...process.env, PATH: `${nodeBin}:${process.env.PATH ?? ""}` } : process.env;
|
|
2360
2361
|
}
|
|
2361
2362
|
async function runUpgrade() {
|
|
2362
|
-
const current = "0.1.
|
|
2363
|
+
const current = "0.1.57";
|
|
2363
2364
|
console.log(`Current version: ${current}`);
|
|
2364
2365
|
console.log("Checking for updates...\n");
|
|
2365
2366
|
try {
|
|
@@ -14101,7 +14102,7 @@ async function handleProviderLoginRequest(req) {
|
|
|
14101
14102
|
function registerHostRoutes(api) {
|
|
14102
14103
|
api.get("/channels/:id/skills", (c) => {
|
|
14103
14104
|
const { cwd, claudeConfigDir } = resolveChannelConfig(c.req.param("id"));
|
|
14104
|
-
return c.json({ skills:
|
|
14105
|
+
return c.json({ skills: listSlashItems(claudeConfigDir, cwd) });
|
|
14105
14106
|
});
|
|
14106
14107
|
api.get("/channels/:id/agents", (c) => {
|
|
14107
14108
|
const { cwd, claudeConfigDir } = resolveChannelConfig(c.req.param("id"));
|
|
@@ -14869,7 +14870,7 @@ function localAgentCallbacks(chatAgent) {
|
|
|
14869
14870
|
readDocShareBundle: (req) => readDocShareBundle(req.channelId ? { ...req, cwd: resolveChannelConfig(req.channelId).cwd } : req),
|
|
14870
14871
|
listChannelSkills: (args) => {
|
|
14871
14872
|
const { cwd, claudeConfigDir } = args.channelId ? resolveChannelConfig(args.channelId) : args;
|
|
14872
|
-
return
|
|
14873
|
+
return listSlashItems(claudeConfigDir, cwd);
|
|
14873
14874
|
},
|
|
14874
14875
|
listFlatDocs: (args) => flatDocs(args.channelId ? resolveChannelConfig(args.channelId).cwd : args.cwd, { query: args.query, sort: args.sort, showHidden: args.showHidden }),
|
|
14875
14876
|
getLocalDashboardSettings: () => loadDashboardSettings(),
|
|
@@ -15622,16 +15623,79 @@ async function runDesktopCmd(args) {
|
|
|
15622
15623
|
if (result.status !== 0) process.exit(result.status ?? 1);
|
|
15623
15624
|
}
|
|
15624
15625
|
|
|
15626
|
+
// src/commands/persona.ts
|
|
15627
|
+
import { existsSync as existsSync30, readdirSync as readdirSync5, readFileSync as readFileSync22 } from "fs";
|
|
15628
|
+
import { homedir as homedir9 } from "os";
|
|
15629
|
+
import { basename as basename7, join as join21 } from "path";
|
|
15630
|
+
import sharp6 from "sharp";
|
|
15631
|
+
var USAGE10 = `
|
|
15632
|
+
Usage: flyspace persona avatars [--character <id>] [--clear]
|
|
15633
|
+
|
|
15634
|
+
Use a claudecafe persona-panel character's faces (claudecafe.dev) as the
|
|
15635
|
+
workspace bot's avatars: a reply ending in her mood marker shows the matching
|
|
15636
|
+
face, and "neutral" becomes the bot's default avatar.
|
|
15637
|
+
|
|
15638
|
+
--character <id> Character folder under ~/.config/claudecafe/characters
|
|
15639
|
+
(default: "character" in its config.json, else kotone)
|
|
15640
|
+
--clear Remove the per-expression avatars
|
|
15641
|
+
`;
|
|
15642
|
+
var AVATAR_SIZE2 = 96;
|
|
15643
|
+
function cafeRoot() {
|
|
15644
|
+
return join21(process.env["XDG_CONFIG_HOME"] || join21(homedir9(), ".config"), "claudecafe");
|
|
15645
|
+
}
|
|
15646
|
+
function configuredCharacter(root) {
|
|
15647
|
+
try {
|
|
15648
|
+
const config = JSON.parse(readFileSync22(join21(root, "config.json"), "utf8"));
|
|
15649
|
+
if (config.character && config.character !== "none") return config.character;
|
|
15650
|
+
} catch {
|
|
15651
|
+
}
|
|
15652
|
+
return "kotone";
|
|
15653
|
+
}
|
|
15654
|
+
async function runPersonaCmd(args) {
|
|
15655
|
+
if (args[0] !== "avatars") {
|
|
15656
|
+
console.log(USAGE10);
|
|
15657
|
+
return;
|
|
15658
|
+
}
|
|
15659
|
+
loadEnvFiles();
|
|
15660
|
+
useHostDbWithoutCredentials();
|
|
15661
|
+
const profile = getProfile();
|
|
15662
|
+
if (args.includes("--clear")) {
|
|
15663
|
+
await upsertWorkspaceBranding(profile, { botExpressionAvatars: null });
|
|
15664
|
+
console.log("Cleared the per-expression bot avatars.");
|
|
15665
|
+
return;
|
|
15666
|
+
}
|
|
15667
|
+
const root = cafeRoot();
|
|
15668
|
+
const idx = args.indexOf("--character");
|
|
15669
|
+
const character = idx !== -1 && args[idx + 1] || configuredCharacter(root);
|
|
15670
|
+
const dir = join21(root, "characters", character, "avatars");
|
|
15671
|
+
if (!existsSync30(dir)) {
|
|
15672
|
+
throw new Error(
|
|
15673
|
+
`No avatars at ${dir}. Open a Claude Code desktop session with persona-panel once so it installs the pack, or pass --character.`
|
|
15674
|
+
);
|
|
15675
|
+
}
|
|
15676
|
+
const avatars = {};
|
|
15677
|
+
for (const file of readdirSync5(dir).filter((f) => f.endsWith(".webp"))) {
|
|
15678
|
+
const image = await sharp6(join21(dir, file)).resize({ width: AVATAR_SIZE2, height: AVATAR_SIZE2, fit: "cover", position: "top" }).webp({ quality: 80 }).toBuffer();
|
|
15679
|
+
avatars[basename7(file, ".webp")] = `data:image/webp;base64,${image.toString("base64")}`;
|
|
15680
|
+
}
|
|
15681
|
+
if (!Object.keys(avatars).length) throw new Error(`No .webp avatars in ${dir}.`);
|
|
15682
|
+
await upsertWorkspaceBranding(profile, {
|
|
15683
|
+
botExpressionAvatars: avatars,
|
|
15684
|
+
...avatars["neutral"] ? { botAvatar: avatars["neutral"] } : {}
|
|
15685
|
+
});
|
|
15686
|
+
console.log(`Saved ${Object.keys(avatars).length} ${character} avatars: ${Object.keys(avatars).sort().join(", ")}`);
|
|
15687
|
+
}
|
|
15688
|
+
|
|
15625
15689
|
// src/cli.ts
|
|
15626
|
-
import { join as
|
|
15690
|
+
import { join as join22 } from "path";
|
|
15627
15691
|
var home = flyspaceHome();
|
|
15628
15692
|
if (home) {
|
|
15629
|
-
const bin =
|
|
15693
|
+
const bin = join22(home, "bin");
|
|
15630
15694
|
const path = process.env.PATH ?? "";
|
|
15631
15695
|
if (!path.split(":").includes(bin)) process.env.PATH = path ? `${bin}:${path}` : bin;
|
|
15632
15696
|
}
|
|
15633
15697
|
var XERO_USAGE = false ? " xero Connect to Xero and expose it as an MCP server\n" : "";
|
|
15634
|
-
var
|
|
15698
|
+
var USAGE11 = `
|
|
15635
15699
|
Usage: flyspace <command> [options]
|
|
15636
15700
|
|
|
15637
15701
|
Commands:
|
|
@@ -15651,6 +15715,7 @@ var USAGE10 = `
|
|
|
15651
15715
|
usage Show agent token usage and cost for this workspace
|
|
15652
15716
|
chat Inspect dashboard chat channels and move threads between them
|
|
15653
15717
|
memory Read and write a channel's persistent agent memory
|
|
15718
|
+
persona Use a claudecafe character's faces as the bot's avatars
|
|
15654
15719
|
profiles List local profiles (bound here? scheduler?) or remove one
|
|
15655
15720
|
workspace Provision a workspace (Supabase rows + local profile dirs)
|
|
15656
15721
|
reconcile Repair a workspace's local files against Supabase
|
|
@@ -15753,6 +15818,9 @@ async function main() {
|
|
|
15753
15818
|
case "memory":
|
|
15754
15819
|
await runMemoryCmd(args.slice(1));
|
|
15755
15820
|
break;
|
|
15821
|
+
case "persona":
|
|
15822
|
+
await runPersonaCmd(args.slice(1));
|
|
15823
|
+
break;
|
|
15756
15824
|
case "profile":
|
|
15757
15825
|
case "profiles":
|
|
15758
15826
|
await runProfiles(args.slice(1));
|
|
@@ -15768,12 +15836,12 @@ async function main() {
|
|
|
15768
15836
|
break;
|
|
15769
15837
|
case "-v":
|
|
15770
15838
|
case "--version":
|
|
15771
|
-
printRaw("0.1.
|
|
15839
|
+
printRaw("0.1.57");
|
|
15772
15840
|
break;
|
|
15773
15841
|
case "-h":
|
|
15774
15842
|
case "--help":
|
|
15775
15843
|
case void 0:
|
|
15776
|
-
printRaw(
|
|
15844
|
+
printRaw(USAGE11);
|
|
15777
15845
|
break;
|
|
15778
15846
|
case "xero":
|
|
15779
15847
|
if (false) {
|
|
@@ -15784,7 +15852,7 @@ async function main() {
|
|
|
15784
15852
|
// falls through
|
|
15785
15853
|
default:
|
|
15786
15854
|
printRaw(`Unknown command: ${command}`);
|
|
15787
|
-
printRaw(
|
|
15855
|
+
printRaw(USAGE11);
|
|
15788
15856
|
process.exit(1);
|
|
15789
15857
|
}
|
|
15790
15858
|
}
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { createRequire as __flyspaceCreateRequire } from 'node:module';
|
|
|
3
3
|
const require = __flyspaceCreateRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
startServer
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3KXMQCGD.js";
|
|
7
7
|
import "./chunk-XACRG7BO.js";
|
|
8
8
|
export {
|
|
9
9
|
startServer
|