feat(cli): extract Obelisk runtime into npm package

Add @obelisk-apps/cli with the existing build, search, query, and attune contract plus official skill installation.

Separate the docs-only skill artifact, bootstrap installer, release layout, cross-platform CI, and package-level regression coverage.
This commit is contained in:
tommy0103
2026-07-16 17:26:23 +08:00
parent 49158e9b9c
commit 90191e4604
64 changed files with 1112 additions and 745 deletions
+4 -4
View File
@@ -10,18 +10,18 @@ async function readExecutableSchema() {
}
async function readSchemaReference() {
return readFile(new URL('../references/schema.md', import.meta.url), 'utf8');
return readFile(new URL('../skill-doc/references/schema.md', import.meta.url), 'utf8');
}
async function readApiReference() {
return readFile(new URL('../references/api-reference.md', import.meta.url), 'utf8');
return readFile(new URL('../skill-doc/references/api-reference.md', import.meta.url), 'utf8');
}
async function readSkill() {
return readFile(new URL('../SKILL.md', import.meta.url), 'utf8');
return readFile(new URL('../skill-doc/SKILL.md', import.meta.url), 'utf8');
}
test('db module loads the executable schema from scripts/schema.sql', async () => {
test('db module loads the executable schema from packages/core/src/schema.sql', async () => {
const source = await readFile(new URL('../packages/core/src/db.ts', import.meta.url), 'utf8');
assert.match(source, /schema\.sql/);