@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.
@@ -1715,7 +1715,7 @@ class ProfileNotFoundError extends Error {
1715
1715
  }
1716
1716
  }
1717
1717
 
1718
- // ../../node_modules/.bun/@hasna+contracts@0.14.0+e8014c875821e0be/node_modules/@hasna/contracts/dist/auth/index.js
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",
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": "mkdir -p $HOME/.hasna/instructions $HOME/.hasna/instructions/backups 2>/dev/null || true",
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.0",
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": "^4.7.4",
85
+ "hono": "4.13.3",
85
86
  "ink": "^5.2.0",
86
87
  "pg": "^8.13.3",
87
88
  "react": "^18.3.1",