@hasna/skills 0.9.5 → 0.9.6
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/bin/index.js +20 -7
- package/bin/mcp.js +1 -1
- package/bin/migrate.js +1 -1
- package/bin/server.js +1 -1
- package/bin/worker.js +1 -1
- package/dist/index.js +1 -1
- package/dist/sdk/index.js +1 -1
- package/package.json +1 -1
package/bin/index.js
CHANGED
|
@@ -36868,7 +36868,7 @@ var package_default;
|
|
|
36868
36868
|
var init_package = __esm(() => {
|
|
36869
36869
|
package_default = {
|
|
36870
36870
|
name: "@hasna/skills",
|
|
36871
|
-
version: "0.9.
|
|
36871
|
+
version: "0.9.6",
|
|
36872
36872
|
description: "Skills library for AI coding agents",
|
|
36873
36873
|
type: "module",
|
|
36874
36874
|
bin: {
|
|
@@ -108119,11 +108119,23 @@ var fail4 = () => new Error('CODEX_HOOK_TRUST_UNSUPPORTED_LAYOUT: preserve and c
|
|
|
108119
108119
|
if (!headers.length)
|
|
108120
108120
|
return text3;
|
|
108121
108121
|
const keys3 = headers.map((header) => header[1].trim());
|
|
108122
|
-
|
|
108123
|
-
|
|
108124
|
-
const plain = keys3.map((key) => key.
|
|
108125
|
-
|
|
108122
|
+
const repeated = keys3.filter((key) => !key.startsWith("[[")).filter((key, index, simple2) => simple2.indexOf(key) !== index);
|
|
108123
|
+
const arrayKeys = keys3.filter((key) => key.startsWith("[["));
|
|
108124
|
+
const plain = keys3.map((key) => key.replace(/^\[\[?/, "").replace(/\]\]?$/, "").trim());
|
|
108125
|
+
const parentChild = plain.some((key, index) => plain.some((other, otherIndex) => index !== otherIndex && (other.startsWith(`${key}.`) || key.startsWith(`${other}.`))));
|
|
108126
|
+
if (repeated.length || parentChild)
|
|
108126
108127
|
return text3;
|
|
108128
|
+
if (!arrayKeys.length) {
|
|
108129
|
+
const first2 = headers[0].index;
|
|
108130
|
+
const prefix2 = text3.slice(0, first2);
|
|
108131
|
+
const blocks2 = headers.map((header, index) => ({
|
|
108132
|
+
key: header[1],
|
|
108133
|
+
order: index,
|
|
108134
|
+
text: text3.slice(header.index, headers[index + 1]?.index ?? text3.length)
|
|
108135
|
+
}));
|
|
108136
|
+
blocks2.sort((a, b) => a.key.localeCompare(b.key) || a.order - b.order);
|
|
108137
|
+
return prefix2 + blocks2.map((block) => block.text).join("");
|
|
108138
|
+
}
|
|
108127
108139
|
const first = headers[0].index;
|
|
108128
108140
|
const prefix = text3.slice(0, first);
|
|
108129
108141
|
const blocks = headers.map((header, index) => ({
|
|
@@ -108131,8 +108143,9 @@ var fail4 = () => new Error('CODEX_HOOK_TRUST_UNSUPPORTED_LAYOUT: preserve and c
|
|
|
108131
108143
|
order: index,
|
|
108132
108144
|
text: text3.slice(header.index, headers[index + 1]?.index ?? text3.length)
|
|
108133
108145
|
}));
|
|
108134
|
-
blocks.
|
|
108135
|
-
|
|
108146
|
+
const simple = blocks.filter((block) => !block.key.startsWith("[["));
|
|
108147
|
+
const arrays = blocks.filter((block) => block.key.startsWith("[["));
|
|
108148
|
+
return prefix + [...simple, ...arrays].map((block) => block.text).join("");
|
|
108136
108149
|
};
|
|
108137
108150
|
var init_codex_hook_trust_layout = () => {};
|
|
108138
108151
|
|
package/bin/mcp.js
CHANGED
|
@@ -20019,7 +20019,7 @@ var package_default;
|
|
|
20019
20019
|
var init_package = __esm(() => {
|
|
20020
20020
|
package_default = {
|
|
20021
20021
|
name: "@hasna/skills",
|
|
20022
|
-
version: "0.9.
|
|
20022
|
+
version: "0.9.6",
|
|
20023
20023
|
description: "Skills library for AI coding agents",
|
|
20024
20024
|
type: "module",
|
|
20025
20025
|
bin: {
|
package/bin/migrate.js
CHANGED
package/bin/server.js
CHANGED
|
@@ -24122,7 +24122,7 @@ var init_dist_es9 = __esm(() => {
|
|
|
24122
24122
|
// package.json
|
|
24123
24123
|
var package_default = {
|
|
24124
24124
|
name: "@hasna/skills",
|
|
24125
|
-
version: "0.9.
|
|
24125
|
+
version: "0.9.6",
|
|
24126
24126
|
description: "Skills library for AI coding agents",
|
|
24127
24127
|
type: "module",
|
|
24128
24128
|
bin: {
|
package/bin/worker.js
CHANGED
|
@@ -24125,7 +24125,7 @@ import { randomUUID as randomUUID6 } from "crypto";
|
|
|
24125
24125
|
// package.json
|
|
24126
24126
|
var package_default = {
|
|
24127
24127
|
name: "@hasna/skills",
|
|
24128
|
-
version: "0.9.
|
|
24128
|
+
version: "0.9.6",
|
|
24129
24129
|
description: "Skills library for AI coding agents",
|
|
24130
24130
|
type: "module",
|
|
24131
24131
|
bin: {
|
package/dist/index.js
CHANGED
|
@@ -11448,7 +11448,7 @@ import { isAbsolute as isAbsolute10, join as join20, resolve as resolve10 } from
|
|
|
11448
11448
|
// package.json
|
|
11449
11449
|
var package_default = {
|
|
11450
11450
|
name: "@hasna/skills",
|
|
11451
|
-
version: "0.9.
|
|
11451
|
+
version: "0.9.6",
|
|
11452
11452
|
description: "Skills library for AI coding agents",
|
|
11453
11453
|
type: "module",
|
|
11454
11454
|
bin: {
|
package/dist/sdk/index.js
CHANGED
|
@@ -32373,7 +32373,7 @@ var init_event_sink = __esm(() => {
|
|
|
32373
32373
|
// package.json
|
|
32374
32374
|
var package_default = {
|
|
32375
32375
|
name: "@hasna/skills",
|
|
32376
|
-
version: "0.9.
|
|
32376
|
+
version: "0.9.6",
|
|
32377
32377
|
description: "Skills library for AI coding agents",
|
|
32378
32378
|
type: "module",
|
|
32379
32379
|
bin: {
|