oathbound 0.6.1 → 0.7.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/bin/cli.cjs +0 -0
- package/cli.ts +1 -1
- package/package.json +1 -1
- package/push.ts +12 -4
- package/ui.ts +12 -6
package/bin/cli.cjs
CHANGED
|
File without changes
|
package/cli.ts
CHANGED
|
@@ -25,7 +25,7 @@ export { stripJsoncComments, writeOathboundConfig, mergeClaudeSettings, type Mer
|
|
|
25
25
|
export { isNewer } from './update';
|
|
26
26
|
export { installDevDependency, type InstallResult, setup, addPrepareScript, type PrepareResult };
|
|
27
27
|
|
|
28
|
-
const VERSION = '0.
|
|
28
|
+
const VERSION = '0.7.0';
|
|
29
29
|
|
|
30
30
|
// --- Supabase ---
|
|
31
31
|
const SUPABASE_URL = 'https://mjnfqagwuewhgwbtrdgs.supabase.co';
|
package/package.json
CHANGED
package/push.ts
CHANGED
|
@@ -24,12 +24,20 @@ export async function push(pathArg?: string): Promise<void> {
|
|
|
24
24
|
|
|
25
25
|
// Parse SKILL.md frontmatter to extract metadata
|
|
26
26
|
const skillMdFile = rawFiles.find(f => f.path === 'SKILL.md');
|
|
27
|
-
if (!skillMdFile)
|
|
27
|
+
if (!skillMdFile) {
|
|
28
|
+
fail('SKILL.md not found in collected files');
|
|
29
|
+
}
|
|
28
30
|
|
|
29
31
|
const meta = parseFrontmatter(skillMdFile.content.toString('utf-8'));
|
|
30
|
-
if (!meta.name)
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
if (!meta.name) {
|
|
33
|
+
fail('SKILL.md frontmatter missing: name');
|
|
34
|
+
}
|
|
35
|
+
if (!meta.description) {
|
|
36
|
+
fail('SKILL.md frontmatter missing: description');
|
|
37
|
+
}
|
|
38
|
+
if (!meta.license) {
|
|
39
|
+
fail('SKILL.md frontmatter missing: license');
|
|
40
|
+
}
|
|
33
41
|
|
|
34
42
|
// Build files array with root dir prefix (API expects rootDir/path format)
|
|
35
43
|
const files = rawFiles.map(f => ({
|
package/ui.ts
CHANGED
|
@@ -8,7 +8,13 @@ export const DIM = USE_COLOR ? '\x1b[2m' : '';
|
|
|
8
8
|
export const BOLD = USE_COLOR ? '\x1b[1m' : '';
|
|
9
9
|
export const RESET = USE_COLOR ? '\x1b[0m' : '';
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
const BRAND_MARKS = ['✦', '✧', '✿', '⬡'];
|
|
12
|
+
|
|
13
|
+
export function brand(): string {
|
|
14
|
+
return `${TEAL}${BOLD}⬡ oathbound${RESET}`;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export const BRAND = brand();
|
|
12
18
|
|
|
13
19
|
export function usage(exitCode = 1): never {
|
|
14
20
|
console.log(`
|
|
@@ -41,13 +47,13 @@ export function fail(message: string, detail?: string): never {
|
|
|
41
47
|
}
|
|
42
48
|
|
|
43
49
|
export function spinner(text: string): { stop: () => void } {
|
|
44
|
-
const frames = ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'];
|
|
45
50
|
let i = 0;
|
|
46
|
-
|
|
51
|
+
const render = () => `\r${TEAL}${BOLD} ${BRAND_MARKS[i % BRAND_MARKS.length]} ${RESET}${TEAL}${text}${RESET}`;
|
|
52
|
+
process.stdout.write(render());
|
|
47
53
|
const interval = setInterval(() => {
|
|
48
|
-
i
|
|
49
|
-
process.stdout.write(
|
|
50
|
-
},
|
|
54
|
+
i++;
|
|
55
|
+
process.stdout.write(render());
|
|
56
|
+
}, 150);
|
|
51
57
|
return {
|
|
52
58
|
stop() {
|
|
53
59
|
clearInterval(interval);
|