@hasna/instructions 0.5.3 → 0.5.5
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 +8 -3
- package/dist/cli/index.js +540 -340
- package/dist/index.js +365 -266
- package/dist/lib/app-home.d.ts +54 -0
- package/dist/lib/app-home.d.ts.map +1 -0
- package/dist/lib/app-home.test.d.ts +2 -0
- package/dist/lib/app-home.test.d.ts.map +1 -0
- package/dist/lib/raw-store-root.d.ts +12 -8
- package/dist/lib/raw-store-root.d.ts.map +1 -1
- package/dist/lib/station-profile.d.ts.map +1 -1
- package/dist/mcp/index.js +187 -73
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/server/index.js +1 -1
- package/package.json +5 -4
package/dist/server/index.js
CHANGED
|
@@ -1715,7 +1715,7 @@ class ProfileNotFoundError extends Error {
|
|
|
1715
1715
|
}
|
|
1716
1716
|
}
|
|
1717
1717
|
|
|
1718
|
-
//
|
|
1718
|
+
// ../contracts/dist/auth/index.js
|
|
1719
1719
|
import { createHash, createHmac, randomBytes, timingSafeEqual } from "crypto";
|
|
1720
1720
|
var MAX_TENANT_ID_LENGTH = 64;
|
|
1721
1721
|
var TENANT_ID_PATTERN = new RegExp(`^[A-Za-z0-9][A-Za-z0-9._-]{0,${MAX_TENANT_ID_LENGTH - 1}}$`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hasna/instructions",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.5",
|
|
4
4
|
"description": "AI coding agent instruction & configuration manager — store, version, apply, and share all your AI coding configs. CLI + MCP + HTTP API (instructions-serve) + generated SDK + Dashboard.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"dev:serve": "bun run src/server/index.ts",
|
|
42
42
|
"seed": "bun run scripts/seed.ts",
|
|
43
43
|
"prepublishOnly": "bun run scripts/check-publish-hold.ts && bun run build",
|
|
44
|
-
"postinstall": "
|
|
44
|
+
"postinstall": "node -e \"const fs=require('node:fs'),path=require('node:path'),os=require('node:os');const home=process.env.HOME||process.env.USERPROFILE||os.homedir();const exact=process.env.HASNA_CONFIGS_HOME;const configHome=process.env.HASNA_CONFIG_HOME;const root=exact&&exact.trim()?path.resolve(exact.trim()):(configHome&&configHome.trim()?path.join(configHome.trim(),'configs'):path.join(home,'.hasna','instructions'));try{fs.mkdirSync(root,{recursive:true,mode:0o700});fs.mkdirSync(path.join(root,'backups'),{recursive:true,mode:0o700});}catch{}\"",
|
|
45
45
|
"prepack": "bun run build"
|
|
46
46
|
},
|
|
47
47
|
"keywords": [
|
|
@@ -76,12 +76,13 @@
|
|
|
76
76
|
"author": "Andrei Hasna <andrei@hasna.com>",
|
|
77
77
|
"license": "Apache-2.0",
|
|
78
78
|
"dependencies": {
|
|
79
|
-
"@hasna/contracts": "0.14.
|
|
79
|
+
"@hasna/contracts": "0.14.1",
|
|
80
80
|
"@hasna/events": "^0.1.16",
|
|
81
|
+
"@hasna/paths": "0.1.0",
|
|
81
82
|
"@modelcontextprotocol/sdk": "^1.12.1",
|
|
82
83
|
"chalk": "^5.4.1",
|
|
83
84
|
"commander": "^13.1.0",
|
|
84
|
-
"hono": "
|
|
85
|
+
"hono": "4.13.3",
|
|
85
86
|
"ink": "^5.2.0",
|
|
86
87
|
"pg": "^8.13.3",
|
|
87
88
|
"react": "^18.3.1",
|