@hasna/skills 0.10.47 → 0.10.49
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/README.md +34 -0
- package/bin/index.js +1091 -649
- package/bin/maintenance.js +18 -0
- package/bin/mcp.js +65 -2
- package/bin/migrate.js +19 -1
- package/bin/server.js +19 -1
- package/bin/worker.js +19 -1
- package/dist/cli/commands/runtime-launcher.d.ts +102 -0
- package/dist/cli/commands/runtime.d.ts +7 -0
- package/dist/cli/index.d.ts +1 -1
- package/dist/index.js +414 -262
- package/dist/lib/launch-cwd-apply.d.ts +1 -0
- package/dist/lib/launch-cwd.d.ts +5 -0
- package/dist/lib/self-spawn.d.ts +21 -0
- package/dist/mcp/index.d.ts +1 -0
- package/dist/sdk/index.js +397 -245
- package/dist/server/index.d.ts +1 -1
- package/dist/server/maintenance.d.ts +1 -1
- package/dist/server/migrate.d.ts +17 -0
- package/dist/server/worker.d.ts +1 -0
- package/package.json +1 -1
package/dist/server/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
|
|
2
|
+
import "../lib/launch-cwd-apply.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
|
|
2
|
+
import "../lib/launch-cwd-apply.js";
|
package/dist/server/migrate.d.ts
CHANGED
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
+
/**
|
|
3
|
+
* Schema migration for whichever backend is configured.
|
|
4
|
+
*
|
|
5
|
+
* Migrations are per-dialect files, not one file rewritten at runtime. Both approaches
|
|
6
|
+
* were on the table; the parallel set won because a runtime translator would have to
|
|
7
|
+
* turn `jsonb`, `timestamptz`, `bigserial`, `::jsonb` casts, `now()` defaults, and
|
|
8
|
+
* `CREATE EXTENSION` into SQLite as a text transformation, and would silently mistranslate
|
|
9
|
+
* the first construct a future migration used that the translator had never seen - on
|
|
10
|
+
* the operator's machine, at migrate time, against their real data. Two hand-written
|
|
11
|
+
* files fail at review time instead, and src/server/schema-parity.test.ts executes the
|
|
12
|
+
* SQLite one and diffs its real introspected shape against the Postgres DDL so the pair
|
|
13
|
+
* cannot drift.
|
|
14
|
+
*
|
|
15
|
+
* Applied-version keys are file basenames, so migrations/0001_*.sql moving into
|
|
16
|
+
* migrations/postgres/ did not orphan databases that had already applied it.
|
|
17
|
+
*/
|
|
18
|
+
import "../lib/launch-cwd-apply.js";
|
|
2
19
|
import { type DatabaseTarget } from "./database-url.js";
|
|
3
20
|
export interface MigrationResult {
|
|
4
21
|
backend: DatabaseTarget["kind"];
|
package/dist/server/worker.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
+
import "../lib/launch-cwd-apply.js";
|
|
2
3
|
import { ArtifactStorage } from "../sdk/storage.js";
|
|
3
4
|
import type { SkillsProductStore } from "../sdk/storage.js";
|
|
4
5
|
export declare function runWorkerOnce(store: SkillsProductStore, workerId?: string, storage?: ArtifactStorage): Promise<boolean>;
|