@hasna/skills 0.10.13 → 0.10.14
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 +2 -2
- package/bin/maintenance.js +3 -1
- package/bin/mcp.js +1 -1
- package/bin/migrate.js +1 -1
- package/bin/server.js +4 -2
- package/bin/worker.js +4 -2
- package/dist/index.js +1 -1
- package/dist/lib/codex-hook-rpc.d.ts +1 -1
- package/dist/sdk/index.js +4 -2
- 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.10.
|
|
36871
|
+
version: "0.10.14",
|
|
36872
36872
|
description: "Skills library for AI coding agents",
|
|
36873
36873
|
type: "module",
|
|
36874
36874
|
bin: {
|
|
@@ -110816,7 +110816,7 @@ async function connectCodexHookRpc(options) {
|
|
|
110816
110816
|
}
|
|
110817
110817
|
var SUPPORTED_CODEX_HOOK_VERSIONS;
|
|
110818
110818
|
var init_codex_hook_rpc = __esm(() => {
|
|
110819
|
-
SUPPORTED_CODEX_HOOK_VERSIONS = ["codex-cli 0.153.0", "codex-cli 0.154.0", "codex-cli 0.155.0", "codex-cli 0.155.1", "codex-cli 0.156.1", "codex-cli 0.157.0", "codex-cli 0.157.1", "codex-cli 0.158.0"];
|
|
110819
|
+
SUPPORTED_CODEX_HOOK_VERSIONS = ["codex-cli 0.153.0", "codex-cli 0.154.0", "codex-cli 0.155.0", "codex-cli 0.155.1", "codex-cli 0.156.1", "codex-cli 0.157.0", "codex-cli 0.157.1", "codex-cli 0.158.0", "codex-cli 0.159.0"];
|
|
110820
110820
|
});
|
|
110821
110821
|
|
|
110822
110822
|
// src/lib/codex-hook-trust-identity.ts
|
package/bin/maintenance.js
CHANGED
|
@@ -3221,10 +3221,12 @@ class PostgresSkillsStore {
|
|
|
3221
3221
|
async casUpdateApiKeyScopes(tx, keyId, orgId, expectedScopes, addScopes) {
|
|
3222
3222
|
const current = expectedScopes;
|
|
3223
3223
|
const scopes = [...current, ...addScopes.filter((scope) => !current.includes(scope))];
|
|
3224
|
+
const expectedScopesJson = JSON.stringify(expectedScopes);
|
|
3224
3225
|
return tx`
|
|
3225
3226
|
UPDATE api_keys SET scopes_json = ${JSON.stringify(scopes)}::text::jsonb
|
|
3226
3227
|
WHERE id = ${keyId} AND org_id = ${orgId} AND revoked_at IS NULL
|
|
3227
|
-
AND scopes_json = ${
|
|
3228
|
+
AND (scopes_json = ${expectedScopesJson}::text::jsonb
|
|
3229
|
+
OR scopes_json = to_jsonb(${expectedScopesJson}::text))
|
|
3228
3230
|
RETURNING scopes_json
|
|
3229
3231
|
`;
|
|
3230
3232
|
}
|
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.10.
|
|
20022
|
+
version: "0.10.14",
|
|
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.10.
|
|
24125
|
+
version: "0.10.14",
|
|
24126
24126
|
description: "Skills library for AI coding agents",
|
|
24127
24127
|
type: "module",
|
|
24128
24128
|
bin: {
|
|
@@ -43489,10 +43489,12 @@ class PostgresSkillsStore {
|
|
|
43489
43489
|
async casUpdateApiKeyScopes(tx, keyId, orgId, expectedScopes, addScopes) {
|
|
43490
43490
|
const current = expectedScopes;
|
|
43491
43491
|
const scopes = [...current, ...addScopes.filter((scope2) => !current.includes(scope2))];
|
|
43492
|
+
const expectedScopesJson = JSON.stringify(expectedScopes);
|
|
43492
43493
|
return tx`
|
|
43493
43494
|
UPDATE api_keys SET scopes_json = ${JSON.stringify(scopes)}::text::jsonb
|
|
43494
43495
|
WHERE id = ${keyId} AND org_id = ${orgId} AND revoked_at IS NULL
|
|
43495
|
-
AND scopes_json = ${
|
|
43496
|
+
AND (scopes_json = ${expectedScopesJson}::text::jsonb
|
|
43497
|
+
OR scopes_json = to_jsonb(${expectedScopesJson}::text))
|
|
43496
43498
|
RETURNING scopes_json
|
|
43497
43499
|
`;
|
|
43498
43500
|
}
|
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.10.
|
|
24128
|
+
version: "0.10.14",
|
|
24129
24129
|
description: "Skills library for AI coding agents",
|
|
24130
24130
|
type: "module",
|
|
24131
24131
|
bin: {
|
|
@@ -37018,10 +37018,12 @@ class PostgresSkillsStore {
|
|
|
37018
37018
|
async casUpdateApiKeyScopes(tx, keyId, orgId, expectedScopes, addScopes) {
|
|
37019
37019
|
const current = expectedScopes;
|
|
37020
37020
|
const scopes = [...current, ...addScopes.filter((scope) => !current.includes(scope))];
|
|
37021
|
+
const expectedScopesJson = JSON.stringify(expectedScopes);
|
|
37021
37022
|
return tx`
|
|
37022
37023
|
UPDATE api_keys SET scopes_json = ${JSON.stringify(scopes)}::text::jsonb
|
|
37023
37024
|
WHERE id = ${keyId} AND org_id = ${orgId} AND revoked_at IS NULL
|
|
37024
|
-
AND scopes_json = ${
|
|
37025
|
+
AND (scopes_json = ${expectedScopesJson}::text::jsonb
|
|
37026
|
+
OR scopes_json = to_jsonb(${expectedScopesJson}::text))
|
|
37025
37027
|
RETURNING scopes_json
|
|
37026
37028
|
`;
|
|
37027
37029
|
}
|
package/dist/index.js
CHANGED
|
@@ -9611,7 +9611,7 @@ import { isAbsolute as isAbsolute11, join as join23, resolve as resolve11 } from
|
|
|
9611
9611
|
// package.json
|
|
9612
9612
|
var package_default = {
|
|
9613
9613
|
name: "@hasna/skills",
|
|
9614
|
-
version: "0.10.
|
|
9614
|
+
version: "0.10.14",
|
|
9615
9615
|
description: "Skills library for AI coding agents",
|
|
9616
9616
|
type: "module",
|
|
9617
9617
|
bin: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const SUPPORTED_CODEX_HOOK_VERSIONS: readonly ["codex-cli 0.153.0", "codex-cli 0.154.0", "codex-cli 0.155.0", "codex-cli 0.155.1", "codex-cli 0.156.1", "codex-cli 0.157.0", "codex-cli 0.157.1", "codex-cli 0.158.0"];
|
|
1
|
+
export declare const SUPPORTED_CODEX_HOOK_VERSIONS: readonly ["codex-cli 0.153.0", "codex-cli 0.154.0", "codex-cli 0.155.0", "codex-cli 0.155.1", "codex-cli 0.156.1", "codex-cli 0.157.0", "codex-cli 0.157.1", "codex-cli 0.158.0", "codex-cli 0.159.0"];
|
|
2
2
|
export interface CodexHookRpc {
|
|
3
3
|
version: string;
|
|
4
4
|
processId?: number;
|
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.10.
|
|
32376
|
+
version: "0.10.14",
|
|
32377
32377
|
description: "Skills library for AI coding agents",
|
|
32378
32378
|
type: "module",
|
|
32379
32379
|
bin: {
|
|
@@ -64305,10 +64305,12 @@ class PostgresSkillsStore {
|
|
|
64305
64305
|
async casUpdateApiKeyScopes(tx, keyId, orgId, expectedScopes, addScopes) {
|
|
64306
64306
|
const current = expectedScopes;
|
|
64307
64307
|
const scopes = [...current, ...addScopes.filter((scope2) => !current.includes(scope2))];
|
|
64308
|
+
const expectedScopesJson = JSON.stringify(expectedScopes);
|
|
64308
64309
|
return tx`
|
|
64309
64310
|
UPDATE api_keys SET scopes_json = ${JSON.stringify(scopes)}::text::jsonb
|
|
64310
64311
|
WHERE id = ${keyId} AND org_id = ${orgId} AND revoked_at IS NULL
|
|
64311
|
-
AND scopes_json = ${
|
|
64312
|
+
AND (scopes_json = ${expectedScopesJson}::text::jsonb
|
|
64313
|
+
OR scopes_json = to_jsonb(${expectedScopesJson}::text))
|
|
64312
64314
|
RETURNING scopes_json
|
|
64313
64315
|
`;
|
|
64314
64316
|
}
|