@hasna/instructions 0.4.35 → 0.4.36
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 -7
- package/dist/cli/index.js +191 -699
- package/dist/data/config-store.d.ts +4 -4
- package/dist/data/config-store.d.ts.map +1 -1
- package/dist/db/database.d.ts.map +1 -1
- package/dist/generated/storage-kit/index.d.ts +2 -2
- package/dist/generated/storage-kit/index.d.ts.map +1 -1
- package/dist/generated/storage-kit/migrations.d.ts.map +1 -1
- package/dist/generated/storage-kit/mode.d.ts +48 -0
- package/dist/generated/storage-kit/mode.d.ts.map +1 -0
- package/dist/generated/storage-kit/pool.d.ts +6 -7
- package/dist/generated/storage-kit/pool.d.ts.map +1 -1
- package/dist/generated/storage-kit/tls.d.ts +3 -30
- package/dist/generated/storage-kit/tls.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +44 -55
- package/dist/lib/apply.d.ts.map +1 -1
- package/dist/lib/cursor-authority.d.ts +36 -3
- package/dist/lib/cursor-authority.d.ts.map +1 -1
- package/dist/mcp/index.js +73 -73
- package/dist/server/cloud.d.ts +2 -2
- package/dist/server/cloud.d.ts.map +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +271 -456
- package/package.json +1 -2
- package/dist/generated/storage-kit/backend.d.ts +0 -20
- package/dist/generated/storage-kit/backend.d.ts.map +0 -1
- package/dist/generated/storage-kit/own.d.ts +0 -11
- package/dist/generated/storage-kit/own.d.ts.map +0 -1
- package/dist/lib/retired-storage-mode.d.ts +0 -8
- package/dist/lib/retired-storage-mode.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hasna/instructions",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.36",
|
|
4
4
|
"description": "AI coding agent instruction & configuration manager \u2014 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",
|
|
@@ -89,7 +89,6 @@
|
|
|
89
89
|
"@types/bun": "^1.2.4",
|
|
90
90
|
"@types/pg": "^8.11.11",
|
|
91
91
|
"@types/react": "^18.3.18",
|
|
92
|
-
"bun-types": "1.3.14",
|
|
93
92
|
"typescript": "^5.7.3"
|
|
94
93
|
}
|
|
95
94
|
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export declare const SERVER_DATA_BACKENDS: readonly ["sqlite", "postgresql"];
|
|
2
|
-
export type ServerDataBackend = (typeof SERVER_DATA_BACKENDS)[number];
|
|
3
|
-
export type Env = Record<string, string | undefined>;
|
|
4
|
-
/** Upper-snake env token for an app name, e.g. `todos` -> `TODOS`. */
|
|
5
|
-
export declare function envToken(name: string): string;
|
|
6
|
-
export interface ServerDataBackendEnvKeys {
|
|
7
|
-
databaseUrlKeys: string[];
|
|
8
|
-
}
|
|
9
|
-
export declare function serverDataBackendEnvKeys(name: string): ServerDataBackendEnvKeys;
|
|
10
|
-
export declare function assertNoLegacyStorageMode(name: string, env?: Env): void;
|
|
11
|
-
export interface ServerDataBackendResolution {
|
|
12
|
-
backend: ServerDataBackend;
|
|
13
|
-
source: string;
|
|
14
|
-
databaseUrlPresent: boolean;
|
|
15
|
-
databaseUrlSource: string | null;
|
|
16
|
-
}
|
|
17
|
-
export declare function resolveServerDataBackend(name: string, env?: Env): ServerDataBackendResolution;
|
|
18
|
-
/** Resolve the database URL without logging it. Returns `null` when unset. */
|
|
19
|
-
export declare function resolveDatabaseUrl(name: string, env?: Env): string | null;
|
|
20
|
-
//# sourceMappingURL=backend.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"backend.d.ts","sourceRoot":"","sources":["../../../src/generated/storage-kit/backend.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,oBAAoB,mCAAoC,CAAC;AACtE,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtE,MAAM,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;AAErD,sEAAsE;AACtE,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE7C;AAED,MAAM,WAAW,wBAAwB;IACvC,eAAe,EAAE,MAAM,EAAE,CAAC;CAC3B;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,wBAAwB,CAK/E;AA+BD,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,GAAE,GAAiB,GAAG,IAAI,CASpF;AAED,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,iBAAiB,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,kBAAkB,EAAE,OAAO,CAAC;IAC5B,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC;AAED,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,MAAM,EACZ,GAAG,GAAE,GAAiB,GACrB,2BAA2B,CAiB7B;AAED,8EAA8E;AAC9E,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,GAAE,GAAiB,GAAG,MAAM,GAAG,IAAI,CAItF"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Read `key` from `source` only when `source` OWNS it.
|
|
3
|
-
*
|
|
4
|
-
* Returns `undefined` for an inherited property and for a null/undefined or
|
|
5
|
-
* non-object source, so a guarded read is a drop-in for `source?.[key]` that
|
|
6
|
-
* cannot be answered by the prototype chain.
|
|
7
|
-
*/
|
|
8
|
-
export declare function ownProp<T>(source: unknown, key: string): T | undefined;
|
|
9
|
-
/** `ownProp` narrowed to a string, so a polluted non-string cannot slip through. */
|
|
10
|
-
export declare function ownString(source: unknown, key: string): string | undefined;
|
|
11
|
-
//# sourceMappingURL=own.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"own.d.ts","sourceRoot":"","sources":["../../../src/generated/storage-kit/own.ts"],"names":[],"mappings":"AAyCA;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS,CAMtE;AAED,oFAAoF;AACpF,wBAAgB,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAG1E"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Throw when a retired storage-mode variable is set. Naming the retired var
|
|
3
|
-
* and the supported switches makes the error actionable without accepting the
|
|
4
|
-
* value. Safe to call from any entry (client store resolution, db guard,
|
|
5
|
-
* server backend resolution) — it is a no-op when no legacy key is set.
|
|
6
|
-
*/
|
|
7
|
-
export declare function assertNoLegacyStorageMode(env?: NodeJS.ProcessEnv): void;
|
|
8
|
-
//# sourceMappingURL=retired-storage-mode.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"retired-storage-mode.d.ts","sourceRoot":"","sources":["../../src/lib/retired-storage-mode.ts"],"names":[],"mappings":"AAwBA;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,IAAI,CAUpF"}
|