@hasna/instructions 0.4.3 → 0.4.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 +19 -7
- package/dist/cli/index.js +3128 -3063
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1685 -1452
- package/dist/lib/apply.d.ts.map +1 -1
- package/dist/lib/config-agents.d.ts +6 -0
- package/dist/lib/config-agents.d.ts.map +1 -0
- package/dist/lib/global-agent-rules-standard.d.ts +6 -0
- package/dist/lib/global-agent-rules-standard.d.ts.map +1 -0
- package/dist/lib/global-agent-rules-standard.test.d.ts +2 -0
- package/dist/lib/global-agent-rules-standard.test.d.ts.map +1 -0
- package/dist/lib/session-render.d.ts +9 -4
- package/dist/lib/session-render.d.ts.map +1 -1
- package/dist/lib/sync.d.ts.map +1 -1
- package/dist/mcp/index.js +95 -22
- package/dist/server/index.js +38 -58
- package/dist/status.d.ts +3 -0
- package/dist/status.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/server/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// @bun
|
|
3
3
|
var __require = import.meta.require;
|
|
4
4
|
|
|
5
|
-
// node_modules
|
|
5
|
+
// node_modules/hono/dist/compose.js
|
|
6
6
|
var compose = (middleware, onError, onNotFound) => {
|
|
7
7
|
return (context, next) => {
|
|
8
8
|
let index = -1;
|
|
@@ -46,39 +46,21 @@ var compose = (middleware, onError, onNotFound) => {
|
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
48
|
|
|
49
|
-
// node_modules
|
|
49
|
+
// node_modules/hono/dist/request/constants.js
|
|
50
50
|
var GET_MATCH_RESULT = /* @__PURE__ */ Symbol();
|
|
51
51
|
|
|
52
|
-
// node_modules
|
|
53
|
-
var bufferToFormData = (arrayBuffer, contentType) => {
|
|
54
|
-
const response = new Response(arrayBuffer, {
|
|
55
|
-
headers: {
|
|
56
|
-
"Content-Type": contentType.replace(/^[^;]+/, (mediaType) => mediaType.toLowerCase())
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
return response.formData();
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
// node_modules/.pnpm/hono@4.12.28/node_modules/hono/dist/utils/body.js
|
|
63
|
-
var isRawRequest = (request) => ("headers" in request);
|
|
52
|
+
// node_modules/hono/dist/utils/body.js
|
|
64
53
|
var parseBody = async (request, options = /* @__PURE__ */ Object.create(null)) => {
|
|
65
54
|
const { all = false, dot = false } = options;
|
|
66
|
-
const headers =
|
|
55
|
+
const headers = request instanceof HonoRequest ? request.raw.headers : request.headers;
|
|
67
56
|
const contentType = headers.get("Content-Type");
|
|
68
|
-
|
|
69
|
-
if (mediaType === "multipart/form-data" || mediaType === "application/x-www-form-urlencoded") {
|
|
57
|
+
if (contentType?.startsWith("multipart/form-data") || contentType?.startsWith("application/x-www-form-urlencoded")) {
|
|
70
58
|
return parseFormData(request, { all, dot });
|
|
71
59
|
}
|
|
72
60
|
return {};
|
|
73
61
|
};
|
|
74
62
|
async function parseFormData(request, options) {
|
|
75
|
-
const
|
|
76
|
-
const arrayBuffer = await request.arrayBuffer();
|
|
77
|
-
const formDataPromise = bufferToFormData(arrayBuffer, headers.get("Content-Type") || "");
|
|
78
|
-
if (!isRawRequest(request)) {
|
|
79
|
-
request.bodyCache.formData = formDataPromise;
|
|
80
|
-
}
|
|
81
|
-
const formData = await formDataPromise;
|
|
63
|
+
const formData = await request.formData();
|
|
82
64
|
if (formData) {
|
|
83
65
|
return convertFormDataToBodyData(formData, options);
|
|
84
66
|
}
|
|
@@ -138,7 +120,7 @@ var handleParsingNestedValues = (form, key, value) => {
|
|
|
138
120
|
});
|
|
139
121
|
};
|
|
140
122
|
|
|
141
|
-
// node_modules
|
|
123
|
+
// node_modules/hono/dist/utils/url.js
|
|
142
124
|
var splitPath = (path) => {
|
|
143
125
|
const paths = path.split("/");
|
|
144
126
|
if (paths[0] === "") {
|
|
@@ -338,7 +320,7 @@ var getQueryParams = (url, key) => {
|
|
|
338
320
|
};
|
|
339
321
|
var decodeURIComponent_ = decodeURIComponent;
|
|
340
322
|
|
|
341
|
-
// node_modules
|
|
323
|
+
// node_modules/hono/dist/request.js
|
|
342
324
|
var tryDecodeURIComponent = (str) => tryDecode(str, decodeURIComponent_);
|
|
343
325
|
var HonoRequest = class {
|
|
344
326
|
raw;
|
|
@@ -420,9 +402,6 @@ var HonoRequest = class {
|
|
|
420
402
|
arrayBuffer() {
|
|
421
403
|
return this.#cachedBody("arrayBuffer");
|
|
422
404
|
}
|
|
423
|
-
bytes() {
|
|
424
|
-
return this.#cachedBody("arrayBuffer").then((buffer) => new Uint8Array(buffer));
|
|
425
|
-
}
|
|
426
405
|
blob() {
|
|
427
406
|
return this.#cachedBody("blob");
|
|
428
407
|
}
|
|
@@ -452,7 +431,7 @@ var HonoRequest = class {
|
|
|
452
431
|
}
|
|
453
432
|
};
|
|
454
433
|
|
|
455
|
-
// node_modules
|
|
434
|
+
// node_modules/hono/dist/utils/html.js
|
|
456
435
|
var HtmlEscapedCallbackPhase = {
|
|
457
436
|
Stringify: 1,
|
|
458
437
|
BeforeStream: 2,
|
|
@@ -490,7 +469,7 @@ var resolveCallback = async (str, phase, preserveCallbacks, context, buffer) =>
|
|
|
490
469
|
}
|
|
491
470
|
};
|
|
492
471
|
|
|
493
|
-
// node_modules
|
|
472
|
+
// node_modules/hono/dist/context.js
|
|
494
473
|
var TEXT_PLAIN = "text/plain; charset=UTF-8";
|
|
495
474
|
var setDefaultContentType = (contentType, headers) => {
|
|
496
475
|
return {
|
|
@@ -657,7 +636,7 @@ var Context = class {
|
|
|
657
636
|
};
|
|
658
637
|
};
|
|
659
638
|
|
|
660
|
-
// node_modules
|
|
639
|
+
// node_modules/hono/dist/router.js
|
|
661
640
|
var METHOD_NAME_ALL = "ALL";
|
|
662
641
|
var METHOD_NAME_ALL_LOWERCASE = "all";
|
|
663
642
|
var METHODS = ["get", "post", "put", "delete", "options", "patch"];
|
|
@@ -665,10 +644,10 @@ var MESSAGE_MATCHER_IS_ALREADY_BUILT = "Can not add a route since the matcher is
|
|
|
665
644
|
var UnsupportedPathError = class extends Error {
|
|
666
645
|
};
|
|
667
646
|
|
|
668
|
-
// node_modules
|
|
647
|
+
// node_modules/hono/dist/utils/constants.js
|
|
669
648
|
var COMPOSED_HANDLER = "__COMPOSED_HANDLER";
|
|
670
649
|
|
|
671
|
-
// node_modules
|
|
650
|
+
// node_modules/hono/dist/hono-base.js
|
|
672
651
|
var notFoundHandler = (c) => {
|
|
673
652
|
return c.text("404 Not Found", 404);
|
|
674
653
|
};
|
|
@@ -759,7 +738,7 @@ var Hono = class _Hono {
|
|
|
759
738
|
handler = async (c, next) => (await compose([], app.errorHandler)(c, () => r.handler(c, next))).res;
|
|
760
739
|
handler[COMPOSED_HANDLER] = r.handler;
|
|
761
740
|
}
|
|
762
|
-
subApp.#addRoute(r.method, r.path, handler
|
|
741
|
+
subApp.#addRoute(r.method, r.path, handler);
|
|
763
742
|
});
|
|
764
743
|
return this;
|
|
765
744
|
}
|
|
@@ -806,7 +785,7 @@ var Hono = class _Hono {
|
|
|
806
785
|
const pathPrefixLength = mergedPath === "/" ? 0 : mergedPath.length;
|
|
807
786
|
return (request) => {
|
|
808
787
|
const url = new URL(request.url);
|
|
809
|
-
url.pathname =
|
|
788
|
+
url.pathname = url.pathname.slice(pathPrefixLength) || "/";
|
|
810
789
|
return new Request(url, request);
|
|
811
790
|
};
|
|
812
791
|
})();
|
|
@@ -820,15 +799,10 @@ var Hono = class _Hono {
|
|
|
820
799
|
this.#addRoute(METHOD_NAME_ALL, mergePath(path, "*"), handler);
|
|
821
800
|
return this;
|
|
822
801
|
}
|
|
823
|
-
#addRoute(method, path, handler
|
|
802
|
+
#addRoute(method, path, handler) {
|
|
824
803
|
method = method.toUpperCase();
|
|
825
804
|
path = mergePath(this._basePath, path);
|
|
826
|
-
const r = {
|
|
827
|
-
basePath: baseRoutePath !== undefined ? mergePath(this._basePath, baseRoutePath) : this._basePath,
|
|
828
|
-
path,
|
|
829
|
-
method,
|
|
830
|
-
handler
|
|
831
|
-
};
|
|
805
|
+
const r = { basePath: this._basePath, path, method, handler };
|
|
832
806
|
this.router.add(method, path, [handler, r]);
|
|
833
807
|
this.routes.push(r);
|
|
834
808
|
}
|
|
@@ -892,7 +866,7 @@ var Hono = class _Hono {
|
|
|
892
866
|
};
|
|
893
867
|
};
|
|
894
868
|
|
|
895
|
-
// node_modules
|
|
869
|
+
// node_modules/hono/dist/router/reg-exp-router/matcher.js
|
|
896
870
|
var emptyParam = [];
|
|
897
871
|
function match(method, path) {
|
|
898
872
|
const matchers = this.buildAllMatchers();
|
|
@@ -913,7 +887,7 @@ function match(method, path) {
|
|
|
913
887
|
return match2(method, path);
|
|
914
888
|
}
|
|
915
889
|
|
|
916
|
-
// node_modules
|
|
890
|
+
// node_modules/hono/dist/router/reg-exp-router/node.js
|
|
917
891
|
var LABEL_REG_EXP_STR = "[^/]+";
|
|
918
892
|
var ONLY_WILDCARD_REG_EXP_STR = ".*";
|
|
919
893
|
var TAIL_WILDCARD_REG_EXP_STR = "(?:|/.*)";
|
|
@@ -1017,7 +991,7 @@ var Node = class _Node {
|
|
|
1017
991
|
}
|
|
1018
992
|
};
|
|
1019
993
|
|
|
1020
|
-
// node_modules
|
|
994
|
+
// node_modules/hono/dist/router/reg-exp-router/trie.js
|
|
1021
995
|
var Trie = class {
|
|
1022
996
|
#context = { varIndex: 0 };
|
|
1023
997
|
#root = new Node;
|
|
@@ -1073,7 +1047,7 @@ var Trie = class {
|
|
|
1073
1047
|
}
|
|
1074
1048
|
};
|
|
1075
1049
|
|
|
1076
|
-
// node_modules
|
|
1050
|
+
// node_modules/hono/dist/router/reg-exp-router/router.js
|
|
1077
1051
|
var nullMatcher = [/^$/, [], /* @__PURE__ */ Object.create(null)];
|
|
1078
1052
|
var wildcardRegExpCache = /* @__PURE__ */ Object.create(null);
|
|
1079
1053
|
function buildWildcardRegExp(path) {
|
|
@@ -1238,7 +1212,7 @@ var RegExpRouter = class {
|
|
|
1238
1212
|
}
|
|
1239
1213
|
};
|
|
1240
1214
|
|
|
1241
|
-
// node_modules
|
|
1215
|
+
// node_modules/hono/dist/router/reg-exp-router/prepared-router.js
|
|
1242
1216
|
var PreparedRegExpRouter = class {
|
|
1243
1217
|
name = "PreparedRegExpRouter";
|
|
1244
1218
|
#matchers;
|
|
@@ -1310,7 +1284,7 @@ var PreparedRegExpRouter = class {
|
|
|
1310
1284
|
match = match;
|
|
1311
1285
|
};
|
|
1312
1286
|
|
|
1313
|
-
// node_modules
|
|
1287
|
+
// node_modules/hono/dist/router/smart-router/router.js
|
|
1314
1288
|
var SmartRouter = class {
|
|
1315
1289
|
name = "SmartRouter";
|
|
1316
1290
|
#routers = [];
|
|
@@ -1365,7 +1339,7 @@ var SmartRouter = class {
|
|
|
1365
1339
|
}
|
|
1366
1340
|
};
|
|
1367
1341
|
|
|
1368
|
-
// node_modules
|
|
1342
|
+
// node_modules/hono/dist/router/trie-router/node.js
|
|
1369
1343
|
var emptyParams = /* @__PURE__ */ Object.create(null);
|
|
1370
1344
|
var hasChildren = (children) => {
|
|
1371
1345
|
for (const _ in children) {
|
|
@@ -1534,7 +1508,7 @@ var Node2 = class _Node2 {
|
|
|
1534
1508
|
}
|
|
1535
1509
|
};
|
|
1536
1510
|
|
|
1537
|
-
// node_modules
|
|
1511
|
+
// node_modules/hono/dist/router/trie-router/router.js
|
|
1538
1512
|
var TrieRouter = class {
|
|
1539
1513
|
name = "TrieRouter";
|
|
1540
1514
|
#node;
|
|
@@ -1556,7 +1530,7 @@ var TrieRouter = class {
|
|
|
1556
1530
|
}
|
|
1557
1531
|
};
|
|
1558
1532
|
|
|
1559
|
-
// node_modules
|
|
1533
|
+
// node_modules/hono/dist/hono.js
|
|
1560
1534
|
var Hono2 = class extends Hono {
|
|
1561
1535
|
constructor(options = {}) {
|
|
1562
1536
|
super(options);
|
|
@@ -1566,18 +1540,24 @@ var Hono2 = class extends Hono {
|
|
|
1566
1540
|
}
|
|
1567
1541
|
};
|
|
1568
1542
|
|
|
1569
|
-
// node_modules
|
|
1543
|
+
// node_modules/hono/dist/middleware/cors/index.js
|
|
1570
1544
|
var cors = (options) => {
|
|
1571
|
-
const
|
|
1545
|
+
const defaults = {
|
|
1572
1546
|
origin: "*",
|
|
1573
1547
|
allowMethods: ["GET", "HEAD", "PUT", "POST", "DELETE", "PATCH"],
|
|
1574
1548
|
allowHeaders: [],
|
|
1575
|
-
exposeHeaders: []
|
|
1549
|
+
exposeHeaders: []
|
|
1550
|
+
};
|
|
1551
|
+
const opts = {
|
|
1552
|
+
...defaults,
|
|
1576
1553
|
...options
|
|
1577
1554
|
};
|
|
1578
1555
|
const findAllowOrigin = ((optsOrigin) => {
|
|
1579
1556
|
if (typeof optsOrigin === "string") {
|
|
1580
1557
|
if (optsOrigin === "*") {
|
|
1558
|
+
if (opts.credentials) {
|
|
1559
|
+
return (origin) => origin || null;
|
|
1560
|
+
}
|
|
1581
1561
|
return () => optsOrigin;
|
|
1582
1562
|
} else {
|
|
1583
1563
|
return (origin) => optsOrigin === origin ? origin : null;
|
|
@@ -1612,7 +1592,7 @@ var cors = (options) => {
|
|
|
1612
1592
|
set("Access-Control-Expose-Headers", opts.exposeHeaders.join(","));
|
|
1613
1593
|
}
|
|
1614
1594
|
if (c.req.method === "OPTIONS") {
|
|
1615
|
-
if (opts.origin !== "*") {
|
|
1595
|
+
if (opts.origin !== "*" || opts.credentials) {
|
|
1616
1596
|
set("Vary", "Origin");
|
|
1617
1597
|
}
|
|
1618
1598
|
if (opts.maxAge != null) {
|
|
@@ -1642,7 +1622,7 @@ var cors = (options) => {
|
|
|
1642
1622
|
});
|
|
1643
1623
|
}
|
|
1644
1624
|
await next();
|
|
1645
|
-
if (opts.origin !== "*") {
|
|
1625
|
+
if (opts.origin !== "*" || opts.credentials) {
|
|
1646
1626
|
c.header("Vary", "Origin", { append: true });
|
|
1647
1627
|
}
|
|
1648
1628
|
};
|
|
@@ -1692,7 +1672,7 @@ class ProfileNotFoundError extends Error {
|
|
|
1692
1672
|
}
|
|
1693
1673
|
}
|
|
1694
1674
|
|
|
1695
|
-
// node_modules
|
|
1675
|
+
// node_modules/@hasna/contracts/dist/auth/index.js
|
|
1696
1676
|
import { createHash, createHmac, randomBytes, timingSafeEqual } from "crypto";
|
|
1697
1677
|
var API_KEY_TOKEN_VERSION = 1;
|
|
1698
1678
|
var API_KEY_NAMESPACE = "hasna";
|
package/dist/status.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export interface ConfigsStatusContract {
|
|
|
22
22
|
file: number;
|
|
23
23
|
reference: number;
|
|
24
24
|
templates: number;
|
|
25
|
+
retiredAgentRows: number;
|
|
25
26
|
};
|
|
26
27
|
byCategory: Record<string, number>;
|
|
27
28
|
byAgent: Record<string, number>;
|
|
@@ -38,9 +39,11 @@ export interface ConfigsStatusContract {
|
|
|
38
39
|
driftedTargets: number;
|
|
39
40
|
missingTargets: number;
|
|
40
41
|
unredactedSecretFindings: number;
|
|
42
|
+
retiredAgentRows: number;
|
|
41
43
|
hasDrift: boolean;
|
|
42
44
|
hasMissingTargets: boolean;
|
|
43
45
|
hasUnredactedSecrets: boolean;
|
|
46
|
+
hasRetiredAgentRows: boolean;
|
|
44
47
|
};
|
|
45
48
|
safety: {
|
|
46
49
|
includesConfigValues: false;
|
package/dist/status.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../src/status.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../src/status.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAU9E,KAAK,WAAW,GAAG,4BAA4B,GAAG,IAA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O,CAAC;QAC3B,oBAAoB,EAAE,OAAO,CAAC;QAC9B,mBAAmB,EAAE,OAAO,CAAC;KAC9B,CAAC;IACF,MAAM,EAAE;QACN,oBAAoB,EAAE,KAAK,CAAC;QAC5B,oBAAoB,EAAE,KAAK,CAAC;QAC5B,iBAAiB,EAAE,KAAK,CAAC;QACzB,oBAAoB,EAAE,KAAK,CAAC;QAC5B,0BAA0B,EAAE,IAAI,CAAC;KAClC,CAAC;CACH;AAsBD,wBAAsB,gBAAgB,CACpC,KAAK,GAAE,WAAkC,GACxC,OAAO,CAAC,qBAAqB,CAAC,CAuHhC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export declare const CONFIG_KINDS: readonly ["file", "reference"];
|
|
|
2
2
|
export type ConfigKind = (typeof CONFIG_KINDS)[number];
|
|
3
3
|
export declare const CONFIG_CATEGORIES: readonly ["agent", "rules", "mcp", "shell", "secrets_schema", "workspace", "git", "tools"];
|
|
4
4
|
export type ConfigCategory = (typeof CONFIG_CATEGORIES)[number];
|
|
5
|
-
export declare const CONFIG_AGENTS: readonly ["claude", "codex", "
|
|
5
|
+
export declare const CONFIG_AGENTS: readonly ["claude", "codex", "opencode", "cursor", "codewith", "aicopilot", "antigravity", "zsh", "git", "npm", "global"];
|
|
6
6
|
export type ConfigAgent = (typeof CONFIG_AGENTS)[number];
|
|
7
7
|
export declare const CONFIG_TRANSFORMS: readonly ["passthrough", "claude-passthrough", "codex-flat", "opencode-flat", "cursor-mdc", "skill-neutral"];
|
|
8
8
|
export type ConfigTransform = (typeof CONFIG_TRANSFORMS)[number];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,YAAY,gCAAiC,CAAC;AAC3D,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAGvD,eAAO,MAAM,iBAAi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,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hasna/instructions",
|
|
3
|
-
"version": "0.4.
|
|
4
|
-
"description": "AI coding agent instruction & configuration manager
|
|
3
|
+
"version": "0.4.5",
|
|
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",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"agent-config",
|
|
49
49
|
"claude",
|
|
50
50
|
"codex",
|
|
51
|
-
"
|
|
51
|
+
"antigravity",
|
|
52
52
|
"mcp",
|
|
53
53
|
"ai",
|
|
54
54
|
"coding-agent",
|