@hasna/skills 0.5.2 → 0.5.4
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 +169 -1
- package/bin/index.js +1541 -1042
- package/bin/mcp.js +28461 -27173
- package/bin/migrate.js +9 -1
- package/bin/server.js +80 -56
- package/bin/worker.js +80 -56
- package/dist/admin-contract.js +168 -166
- package/dist/cli/commands/invitation-recovery.d.ts +2 -0
- package/dist/cli/commands/invitation-verification.d.ts +8 -0
- package/dist/cli/commands/workspace-invitations.d.ts +2 -0
- package/dist/index.d.ts +6 -2
- package/dist/index.js +1516 -611
- package/dist/lib/invitation-customer-action.d.ts +14 -0
- package/dist/lib/invitation-recovery-target.d.ts +5 -0
- package/dist/lib/remote-auth.d.ts +12 -0
- package/dist/lib/remote-client.d.ts +19 -0
- package/dist/lib/remote-invitation-recovery.d.ts +62 -0
- package/dist/lib/remote-invitations.d.ts +128 -0
- package/dist/lib/remote-quote-errors.d.ts +12 -0
- package/dist/lib/skill-bundle.d.ts +54 -1
- package/dist/lib/skill-entry-path.d.ts +6 -0
- package/dist/lib/skill-hash.d.ts +33 -0
- package/dist/mcp/index.d.ts +0 -1
- package/dist/mcp/invitation-recovery.d.ts +2 -0
- package/dist/mcp/remote-invitation-tools.d.ts +2 -0
- package/dist/sdk/index.d.ts +5 -1
- package/dist/sdk/index.js +1316 -389
- package/dist/sdk/registry.d.ts +6 -0
- package/dist/storage.js +35 -33
- package/package.json +1 -1
package/dist/sdk/registry.d.ts
CHANGED
|
@@ -26,3 +26,9 @@ export interface RegistryVersionService {
|
|
|
26
26
|
export declare const currentVersionService: RegistryVersionService;
|
|
27
27
|
export { getServerSkill, getServerSkillMd, isValidSkillSlug, listServerSkills };
|
|
28
28
|
export type { SkillMeta };
|
|
29
|
+
export { inspectSkillBundle, packSkillBundle, SKILL_BUNDLE_INSPECTION_LIMITS, SkillBundleInspectionError } from "../lib/skill-bundle.js";
|
|
30
|
+
export type { OwnedBytes, SkillBundleEntry, PackedSkillBundle, PackSkillBundleOptions, InspectedSkillBundle, InspectSkillBundleOptions, SkillBundleInspectionLimits, SkillBundleInspectionErrorCode } from "../lib/skill-bundle.js";
|
|
31
|
+
export { computeContentHashFromEntries, verifyContentHashFromEntries, CONTENT_HASH_LIMITS, ContentHashInputError } from "../lib/skill-hash.js";
|
|
32
|
+
export type { ContentHashVerification, ContentHashLimits, ContentHashOptions, ContentHashInputErrorCode } from "../lib/skill-hash.js";
|
|
33
|
+
export { revisionIdOf } from "../lib/revision.js";
|
|
34
|
+
export type { RevisionContent } from "../lib/revision.js";
|
package/dist/storage.js
CHANGED
|
@@ -19,12 +19,14 @@ var __toESM = (mod, isNodeMode, target) => {
|
|
|
19
19
|
}
|
|
20
20
|
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
21
21
|
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
if (mod && typeof mod === "object" || typeof mod === "function") {
|
|
23
|
+
for (let key of __getOwnPropNames(mod))
|
|
24
|
+
if (!__hasOwnProp.call(to, key))
|
|
25
|
+
__defProp(to, key, {
|
|
26
|
+
get: __accessProp.bind(mod, key),
|
|
27
|
+
enumerable: true
|
|
28
|
+
});
|
|
29
|
+
}
|
|
28
30
|
if (canCache)
|
|
29
31
|
cache.set(mod, to);
|
|
30
32
|
return to;
|
|
@@ -1070,32 +1072,32 @@ function toArrayBuffer(bytes) {
|
|
|
1070
1072
|
return buffer;
|
|
1071
1073
|
}
|
|
1072
1074
|
export {
|
|
1073
|
-
|
|
1074
|
-
storageCapabilities,
|
|
1075
|
-
skillsPostgresSyncSchemaSql,
|
|
1076
|
-
signSkillsAwsV4Request,
|
|
1077
|
-
resolveStorageConfig,
|
|
1078
|
-
resolveSkillsNativeStorageConfig,
|
|
1079
|
-
planSkillsS3SnapshotUpload,
|
|
1080
|
-
importSkillsLocalSnapshot,
|
|
1081
|
-
getStorageStatus,
|
|
1082
|
-
getStorageDatabaseUrl,
|
|
1083
|
-
getStorageDatabaseEnv,
|
|
1084
|
-
getSkillsStorageStatus,
|
|
1085
|
-
getSkillsStorageDatabaseUrl,
|
|
1086
|
-
getSkillsStorageDatabaseEnv,
|
|
1087
|
-
getSkillsNativeStorageStatus,
|
|
1088
|
-
exportSkillsLocalSnapshot,
|
|
1089
|
-
createSkillsSnapshotSyncRecord,
|
|
1090
|
-
createSkillsS3ObjectStore,
|
|
1091
|
-
createSkillsPostgresSyncStore,
|
|
1092
|
-
buildSkillsS3ObjectUrl,
|
|
1093
|
-
SkillsS3ObjectStore,
|
|
1094
|
-
SkillsPostgresSyncStore,
|
|
1095
|
-
STORAGE_TABLES,
|
|
1096
|
-
SKILLS_STORAGE_TABLES,
|
|
1097
|
-
SKILLS_STORAGE_FALLBACK_ENV,
|
|
1098
|
-
SKILLS_STORAGE_ENV,
|
|
1075
|
+
SKILLS_NATIVE_STORAGE_ENV,
|
|
1099
1076
|
SKILLS_NATIVE_STORAGE_FALLBACK_ENV,
|
|
1100
|
-
|
|
1077
|
+
SKILLS_STORAGE_ENV,
|
|
1078
|
+
SKILLS_STORAGE_FALLBACK_ENV,
|
|
1079
|
+
SKILLS_STORAGE_TABLES,
|
|
1080
|
+
STORAGE_TABLES,
|
|
1081
|
+
SkillsPostgresSyncStore,
|
|
1082
|
+
SkillsS3ObjectStore,
|
|
1083
|
+
buildSkillsS3ObjectUrl,
|
|
1084
|
+
createSkillsPostgresSyncStore,
|
|
1085
|
+
createSkillsS3ObjectStore,
|
|
1086
|
+
createSkillsSnapshotSyncRecord,
|
|
1087
|
+
exportSkillsLocalSnapshot,
|
|
1088
|
+
getSkillsNativeStorageStatus,
|
|
1089
|
+
getSkillsStorageDatabaseEnv,
|
|
1090
|
+
getSkillsStorageDatabaseUrl,
|
|
1091
|
+
getSkillsStorageStatus,
|
|
1092
|
+
getStorageDatabaseEnv,
|
|
1093
|
+
getStorageDatabaseUrl,
|
|
1094
|
+
getStorageStatus,
|
|
1095
|
+
importSkillsLocalSnapshot,
|
|
1096
|
+
planSkillsS3SnapshotUpload,
|
|
1097
|
+
resolveSkillsNativeStorageConfig,
|
|
1098
|
+
resolveStorageConfig,
|
|
1099
|
+
signSkillsAwsV4Request,
|
|
1100
|
+
skillsPostgresSyncSchemaSql,
|
|
1101
|
+
storageCapabilities,
|
|
1102
|
+
uploadSkillsSnapshotFilesToS3
|
|
1101
1103
|
};
|