@hasna/skills 0.1.69 → 0.1.71
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 +1 -1
- package/bin/index.js +825 -72
- package/bin/mcp.js +13 -3
- package/bin/server.js +12 -2
- package/bin/worker.js +8 -0
- package/dist/cli/commands/hydrate.d.ts +2 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +636 -2
- package/dist/lib/portable-snapshot-filter.d.ts +48 -0
- package/dist/lib/station-hydrate.d.ts +103 -0
- package/dist/lib/station-snapshot.d.ts +96 -0
- package/dist/sdk/index.js +8 -0
- package/package.json +4 -2
package/bin/mcp.js
CHANGED
|
@@ -12943,7 +12943,7 @@ class StdioServerTransport {
|
|
|
12943
12943
|
// package.json
|
|
12944
12944
|
var package_default = {
|
|
12945
12945
|
name: "@hasna/skills",
|
|
12946
|
-
version: "0.1.
|
|
12946
|
+
version: "0.1.71",
|
|
12947
12947
|
description: "Skills library for AI coding agents",
|
|
12948
12948
|
type: "module",
|
|
12949
12949
|
bin: {
|
|
@@ -12995,6 +12995,7 @@ var package_default = {
|
|
|
12995
12995
|
"dev:mcp": "bun --watch run ./src/mcp/index.ts",
|
|
12996
12996
|
"dev:server": "bun --watch run ./src/server/index.ts",
|
|
12997
12997
|
"dev:worker": "bun --watch run ./src/server/worker.ts",
|
|
12998
|
+
"docker:check": "bash scripts/docker-build-check.sh",
|
|
12998
12999
|
migrate: "bun run ./src/server/migrate.ts",
|
|
12999
13000
|
typecheck: "tsc --noEmit",
|
|
13000
13001
|
"verify:release": "bun run scripts/release-guard.ts",
|
|
@@ -13027,7 +13028,8 @@ var package_default = {
|
|
|
13027
13028
|
"@types/react": "^18.2.0",
|
|
13028
13029
|
"bun-types": "1.3.14",
|
|
13029
13030
|
"react-devtools-core": "^7.0.1",
|
|
13030
|
-
typescript: "^5"
|
|
13031
|
+
typescript: "^5",
|
|
13032
|
+
yaml: "^2.9.0"
|
|
13031
13033
|
},
|
|
13032
13034
|
dependencies: {
|
|
13033
13035
|
"@aws-sdk/client-ecs": "^3.1079.0",
|
|
@@ -21108,6 +21110,14 @@ var DEVELOPMENT_TOOLS_SKILLS = [
|
|
|
21108
21110
|
category: "Development Tools",
|
|
21109
21111
|
tags: ["config", "validation", "schema", "linting"]
|
|
21110
21112
|
},
|
|
21113
|
+
{
|
|
21114
|
+
name: "oss-app-two-backend-storage",
|
|
21115
|
+
displayName: "OSS App Two-Backend Storage",
|
|
21116
|
+
description: "Recipe for the Hasna two-backend storage contract: client transport + HTTP store, server PG/SQLite backend, pg-migrations + apply script, fail-closed URL-without-key, bun bins, contract manifest, Dockerfile",
|
|
21117
|
+
category: "Development Tools",
|
|
21118
|
+
tags: ["storage", "backend", "postgresql", "sqlite", "two-backend", "oss-app"],
|
|
21119
|
+
kind: "instruction"
|
|
21120
|
+
},
|
|
21111
21121
|
{
|
|
21112
21122
|
name: "session-inject-monitor",
|
|
21113
21123
|
displayName: "Session Inject Monitor",
|
|
@@ -26948,7 +26958,7 @@ var server = buildServer();
|
|
|
26948
26958
|
// src/mcp/http.ts
|
|
26949
26959
|
import { createServer } from "http";
|
|
26950
26960
|
|
|
26951
|
-
// ../../node_modules/.bun/@hono+node-server@1.19.17+
|
|
26961
|
+
// ../../node_modules/.bun/@hono+node-server@1.19.17+2145b681a064c8e9/node_modules/@hono/node-server/dist/index.mjs
|
|
26952
26962
|
import { Http2ServerRequest as Http2ServerRequest2, constants as h2constants } from "http2";
|
|
26953
26963
|
import { Http2ServerRequest } from "http2";
|
|
26954
26964
|
import { Readable } from "stream";
|
package/bin/server.js
CHANGED
|
@@ -22940,7 +22940,7 @@ var init_dist_es9 = __esm(() => {
|
|
|
22940
22940
|
// package.json
|
|
22941
22941
|
var package_default = {
|
|
22942
22942
|
name: "@hasna/skills",
|
|
22943
|
-
version: "0.1.
|
|
22943
|
+
version: "0.1.71",
|
|
22944
22944
|
description: "Skills library for AI coding agents",
|
|
22945
22945
|
type: "module",
|
|
22946
22946
|
bin: {
|
|
@@ -22992,6 +22992,7 @@ var package_default = {
|
|
|
22992
22992
|
"dev:mcp": "bun --watch run ./src/mcp/index.ts",
|
|
22993
22993
|
"dev:server": "bun --watch run ./src/server/index.ts",
|
|
22994
22994
|
"dev:worker": "bun --watch run ./src/server/worker.ts",
|
|
22995
|
+
"docker:check": "bash scripts/docker-build-check.sh",
|
|
22995
22996
|
migrate: "bun run ./src/server/migrate.ts",
|
|
22996
22997
|
typecheck: "tsc --noEmit",
|
|
22997
22998
|
"verify:release": "bun run scripts/release-guard.ts",
|
|
@@ -23024,7 +23025,8 @@ var package_default = {
|
|
|
23024
23025
|
"@types/react": "^18.2.0",
|
|
23025
23026
|
"bun-types": "1.3.14",
|
|
23026
23027
|
"react-devtools-core": "^7.0.1",
|
|
23027
|
-
typescript: "^5"
|
|
23028
|
+
typescript: "^5",
|
|
23029
|
+
yaml: "^2.9.0"
|
|
23028
23030
|
},
|
|
23029
23031
|
dependencies: {
|
|
23030
23032
|
"@aws-sdk/client-ecs": "^3.1079.0",
|
|
@@ -35777,6 +35779,14 @@ var DEVELOPMENT_TOOLS_SKILLS = [
|
|
|
35777
35779
|
category: "Development Tools",
|
|
35778
35780
|
tags: ["config", "validation", "schema", "linting"]
|
|
35779
35781
|
},
|
|
35782
|
+
{
|
|
35783
|
+
name: "oss-app-two-backend-storage",
|
|
35784
|
+
displayName: "OSS App Two-Backend Storage",
|
|
35785
|
+
description: "Recipe for the Hasna two-backend storage contract: client transport + HTTP store, server PG/SQLite backend, pg-migrations + apply script, fail-closed URL-without-key, bun bins, contract manifest, Dockerfile",
|
|
35786
|
+
category: "Development Tools",
|
|
35787
|
+
tags: ["storage", "backend", "postgresql", "sqlite", "two-backend", "oss-app"],
|
|
35788
|
+
kind: "instruction"
|
|
35789
|
+
},
|
|
35780
35790
|
{
|
|
35781
35791
|
name: "session-inject-monitor",
|
|
35782
35792
|
displayName: "Session Inject Monitor",
|
package/bin/worker.js
CHANGED
|
@@ -35131,6 +35131,14 @@ var DEVELOPMENT_TOOLS_SKILLS = [
|
|
|
35131
35131
|
category: "Development Tools",
|
|
35132
35132
|
tags: ["config", "validation", "schema", "linting"]
|
|
35133
35133
|
},
|
|
35134
|
+
{
|
|
35135
|
+
name: "oss-app-two-backend-storage",
|
|
35136
|
+
displayName: "OSS App Two-Backend Storage",
|
|
35137
|
+
description: "Recipe for the Hasna two-backend storage contract: client transport + HTTP store, server PG/SQLite backend, pg-migrations + apply script, fail-closed URL-without-key, bun bins, contract manifest, Dockerfile",
|
|
35138
|
+
category: "Development Tools",
|
|
35139
|
+
tags: ["storage", "backend", "postgresql", "sqlite", "two-backend", "oss-app"],
|
|
35140
|
+
kind: "instruction"
|
|
35141
|
+
},
|
|
35134
35142
|
{
|
|
35135
35143
|
name: "session-inject-monitor",
|
|
35136
35144
|
displayName: "Session Inject Monitor",
|
package/dist/index.d.ts
CHANGED
|
@@ -34,3 +34,6 @@ export { getFeedbackDbPath, saveFeedback, type FeedbackCategory, type FeedbackIn
|
|
|
34
34
|
export { SKILLS_NATIVE_STORAGE_ENV, SKILLS_NATIVE_STORAGE_FALLBACK_ENV, SKILLS_STORAGE_ENV, SKILLS_STORAGE_FALLBACK_ENV, SKILLS_STORAGE_TABLES, STORAGE_TABLES, SkillsPostgresSyncStore, SkillsS3ObjectStore, buildSkillsS3ObjectUrl, createSkillsPostgresSyncStore, createSkillsS3ObjectStore, createSkillsSnapshotSyncRecord, exportSkillsLocalSnapshot, getSkillsNativeStorageStatus, getSkillsStorageDatabaseEnv, getSkillsStorageDatabaseUrl, getSkillsStorageStatus, getStorageDatabaseEnv, getStorageDatabaseUrl, getStorageStatus, importSkillsLocalSnapshot, planSkillsS3SnapshotUpload, resolveSkillsNativeStorageConfig, resolveStorageConfig, signSkillsAwsV4Request, skillsPostgresSyncSchemaSql, storageCapabilities, uploadSkillsSnapshotFilesToS3, type AwsCredentials, type SignSkillsAwsV4RequestOptions, type SkillsFetch, type SkillsLocalSnapshot, type SkillsNativeStorageConfig, type SkillsNativeStorageStatus, type SkillsPostgresQueryClient, type SkillsS3ObjectStoreOptions, type SkillsS3PutObjectOptions, type SkillsS3SnapshotPlanEntry, type SkillsS3StoredObject, type SkillsSnapshotFile, type SkillsStorageTable, type SkillsSyncRecord, } from "./lib/native-storage.js";
|
|
35
35
|
export { SKILL_ALIASES, normalizeSkillSlug, resolveSkillAlias, type SkillAlias, } from "./lib/skill-aliases.js";
|
|
36
36
|
export type { SkillResponse, SkillDetailResponse, CategoryResponse, TagResponse, InstallResponse, RemoveResponse, VersionResponse, ExportResponse, ImportResponse, SearchResponse, CategoryInstallResponse, ErrorResponse, } from "./types/api.js";
|
|
37
|
+
export { STATION_SYNC_MANIFEST_SCHEMA, StationSnapshotError, sha256File, planStationSnapshot, validateStationId, writeStationSnapshot, type PortableSnapshotFile, type ScannedHome, type SnapshotPlan, type StationSnapshotErrorCode, type StationSnapshotManifestFile, type StationSnapshotOptions, type StationSnapshotResult, } from "./lib/station-snapshot.js";
|
|
38
|
+
export { STATION_HYDRATION_MANIFEST_SCHEMA, planStationHydration, writeStationHydration, type HydrationCandidate, type HydrationWinnerFile, type HydrationWinnerSkill, type StationHydrationOptions, type StationHydrationResult, } from "./lib/station-hydrate.js";
|
|
39
|
+
export { REFUSED_SCANNER_FLAGGED, SYNC_HOMES, destinationFor, homePathFor, isExcludedSkillFileName, isPortableWithinSkill, isRegularFile, walkEntries, type SyncHomeDefinition, type WalkEntry, } from "./lib/portable-snapshot-filter.js";
|