@hasna/skills 0.5.3 → 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.
@@ -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
- for (let key of __getOwnPropNames(mod))
23
- if (!__hasOwnProp.call(to, key))
24
- __defProp(to, key, {
25
- get: __accessProp.bind(mod, key),
26
- enumerable: true
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;
@@ -49,113 +51,113 @@ var __require = import.meta.require;
49
51
  // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/external.js
50
52
  var exports_external = {};
51
53
  __export(exports_external, {
52
- void: () => voidType,
53
- util: () => util,
54
- unknown: () => unknownType,
55
- union: () => unionType,
56
- undefined: () => undefinedType,
57
- tuple: () => tupleType,
58
- transformer: () => effectsType,
59
- symbol: () => symbolType,
60
- string: () => stringType,
61
- strictObject: () => strictObjectType,
62
- setErrorMap: () => setErrorMap,
63
- set: () => setType,
64
- record: () => recordType,
65
- quotelessJson: () => quotelessJson,
66
- promise: () => promiseType,
67
- preprocess: () => preprocessType,
68
- pipeline: () => pipelineType,
69
- ostring: () => ostring,
70
- optional: () => optionalType,
71
- onumber: () => onumber,
72
- oboolean: () => oboolean,
73
- objectUtil: () => objectUtil,
74
- object: () => objectType,
75
- number: () => numberType,
76
- nullable: () => nullableType,
77
- null: () => nullType,
78
- never: () => neverType,
79
- nativeEnum: () => nativeEnumType,
80
- nan: () => nanType,
81
- map: () => mapType,
82
- makeIssue: () => makeIssue,
83
- literal: () => literalType,
84
- lazy: () => lazyType,
85
- late: () => late,
86
- isValid: () => isValid,
87
- isDirty: () => isDirty,
88
- isAsync: () => isAsync,
89
- isAborted: () => isAborted,
90
- intersection: () => intersectionType,
91
- instanceof: () => instanceOfType,
92
- getParsedType: () => getParsedType,
93
- getErrorMap: () => getErrorMap,
94
- function: () => functionType,
95
- enum: () => enumType,
96
- effect: () => effectsType,
97
- discriminatedUnion: () => discriminatedUnionType,
98
- defaultErrorMap: () => en_default,
99
- datetimeRegex: () => datetimeRegex,
100
- date: () => dateType,
101
- custom: () => custom,
102
- coerce: () => coerce,
103
- boolean: () => booleanType,
104
- bigint: () => bigIntType,
105
- array: () => arrayType,
106
- any: () => anyType,
107
- addIssueToContext: () => addIssueToContext,
108
- ZodVoid: () => ZodVoid,
109
- ZodUnknown: () => ZodUnknown,
110
- ZodUnion: () => ZodUnion,
111
- ZodUndefined: () => ZodUndefined,
112
- ZodType: () => ZodType,
113
- ZodTuple: () => ZodTuple,
114
- ZodTransformer: () => ZodEffects,
115
- ZodSymbol: () => ZodSymbol,
116
- ZodString: () => ZodString,
117
- ZodSet: () => ZodSet,
118
- ZodSchema: () => ZodType,
119
- ZodRecord: () => ZodRecord,
120
- ZodReadonly: () => ZodReadonly,
121
- ZodPromise: () => ZodPromise,
122
- ZodPipeline: () => ZodPipeline,
123
- ZodParsedType: () => ZodParsedType,
124
- ZodOptional: () => ZodOptional,
125
- ZodObject: () => ZodObject,
126
- ZodNumber: () => ZodNumber,
127
- ZodNullable: () => ZodNullable,
128
- ZodNull: () => ZodNull,
129
- ZodNever: () => ZodNever,
130
- ZodNativeEnum: () => ZodNativeEnum,
131
- ZodNaN: () => ZodNaN,
132
- ZodMap: () => ZodMap,
133
- ZodLiteral: () => ZodLiteral,
134
- ZodLazy: () => ZodLazy,
135
- ZodIssueCode: () => ZodIssueCode,
136
- ZodIntersection: () => ZodIntersection,
137
- ZodFunction: () => ZodFunction,
138
- ZodFirstPartyTypeKind: () => ZodFirstPartyTypeKind,
139
- ZodError: () => ZodError,
140
- ZodEnum: () => ZodEnum,
141
- ZodEffects: () => ZodEffects,
142
- ZodDiscriminatedUnion: () => ZodDiscriminatedUnion,
143
- ZodDefault: () => ZodDefault,
144
- ZodDate: () => ZodDate,
145
- ZodCatch: () => ZodCatch,
146
- ZodBranded: () => ZodBranded,
147
- ZodBoolean: () => ZodBoolean,
148
- ZodBigInt: () => ZodBigInt,
149
- ZodArray: () => ZodArray,
150
- ZodAny: () => ZodAny,
151
- Schema: () => ZodType,
152
- ParseStatus: () => ParseStatus,
153
- OK: () => OK,
154
- NEVER: () => NEVER,
155
- INVALID: () => INVALID,
156
- EMPTY_PATH: () => EMPTY_PATH,
54
+ BRAND: () => BRAND,
157
55
  DIRTY: () => DIRTY,
158
- BRAND: () => BRAND
56
+ EMPTY_PATH: () => EMPTY_PATH,
57
+ INVALID: () => INVALID,
58
+ NEVER: () => NEVER,
59
+ OK: () => OK,
60
+ ParseStatus: () => ParseStatus,
61
+ Schema: () => ZodType,
62
+ ZodAny: () => ZodAny,
63
+ ZodArray: () => ZodArray,
64
+ ZodBigInt: () => ZodBigInt,
65
+ ZodBoolean: () => ZodBoolean,
66
+ ZodBranded: () => ZodBranded,
67
+ ZodCatch: () => ZodCatch,
68
+ ZodDate: () => ZodDate,
69
+ ZodDefault: () => ZodDefault,
70
+ ZodDiscriminatedUnion: () => ZodDiscriminatedUnion,
71
+ ZodEffects: () => ZodEffects,
72
+ ZodEnum: () => ZodEnum,
73
+ ZodError: () => ZodError,
74
+ ZodFirstPartyTypeKind: () => ZodFirstPartyTypeKind,
75
+ ZodFunction: () => ZodFunction,
76
+ ZodIntersection: () => ZodIntersection,
77
+ ZodIssueCode: () => ZodIssueCode,
78
+ ZodLazy: () => ZodLazy,
79
+ ZodLiteral: () => ZodLiteral,
80
+ ZodMap: () => ZodMap,
81
+ ZodNaN: () => ZodNaN,
82
+ ZodNativeEnum: () => ZodNativeEnum,
83
+ ZodNever: () => ZodNever,
84
+ ZodNull: () => ZodNull,
85
+ ZodNullable: () => ZodNullable,
86
+ ZodNumber: () => ZodNumber,
87
+ ZodObject: () => ZodObject,
88
+ ZodOptional: () => ZodOptional,
89
+ ZodParsedType: () => ZodParsedType,
90
+ ZodPipeline: () => ZodPipeline,
91
+ ZodPromise: () => ZodPromise,
92
+ ZodReadonly: () => ZodReadonly,
93
+ ZodRecord: () => ZodRecord,
94
+ ZodSchema: () => ZodType,
95
+ ZodSet: () => ZodSet,
96
+ ZodString: () => ZodString,
97
+ ZodSymbol: () => ZodSymbol,
98
+ ZodTransformer: () => ZodEffects,
99
+ ZodTuple: () => ZodTuple,
100
+ ZodType: () => ZodType,
101
+ ZodUndefined: () => ZodUndefined,
102
+ ZodUnion: () => ZodUnion,
103
+ ZodUnknown: () => ZodUnknown,
104
+ ZodVoid: () => ZodVoid,
105
+ addIssueToContext: () => addIssueToContext,
106
+ any: () => anyType,
107
+ array: () => arrayType,
108
+ bigint: () => bigIntType,
109
+ boolean: () => booleanType,
110
+ coerce: () => coerce,
111
+ custom: () => custom,
112
+ date: () => dateType,
113
+ datetimeRegex: () => datetimeRegex,
114
+ defaultErrorMap: () => en_default,
115
+ discriminatedUnion: () => discriminatedUnionType,
116
+ effect: () => effectsType,
117
+ enum: () => enumType,
118
+ function: () => functionType,
119
+ getErrorMap: () => getErrorMap,
120
+ getParsedType: () => getParsedType,
121
+ instanceof: () => instanceOfType,
122
+ intersection: () => intersectionType,
123
+ isAborted: () => isAborted,
124
+ isAsync: () => isAsync,
125
+ isDirty: () => isDirty,
126
+ isValid: () => isValid,
127
+ late: () => late,
128
+ lazy: () => lazyType,
129
+ literal: () => literalType,
130
+ makeIssue: () => makeIssue,
131
+ map: () => mapType,
132
+ nan: () => nanType,
133
+ nativeEnum: () => nativeEnumType,
134
+ never: () => neverType,
135
+ null: () => nullType,
136
+ nullable: () => nullableType,
137
+ number: () => numberType,
138
+ object: () => objectType,
139
+ objectUtil: () => objectUtil,
140
+ oboolean: () => oboolean,
141
+ onumber: () => onumber,
142
+ optional: () => optionalType,
143
+ ostring: () => ostring,
144
+ pipeline: () => pipelineType,
145
+ preprocess: () => preprocessType,
146
+ promise: () => promiseType,
147
+ quotelessJson: () => quotelessJson,
148
+ record: () => recordType,
149
+ set: () => setType,
150
+ setErrorMap: () => setErrorMap,
151
+ strictObject: () => strictObjectType,
152
+ string: () => stringType,
153
+ symbol: () => symbolType,
154
+ transformer: () => effectsType,
155
+ tuple: () => tupleType,
156
+ undefined: () => undefinedType,
157
+ union: () => unionType,
158
+ unknown: () => unknownType,
159
+ util: () => util,
160
+ void: () => voidType
159
161
  });
160
162
 
161
163
  // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/util.js
@@ -4393,59 +4395,59 @@ var SKILLS_ADMIN_OPERATIONS = {
4393
4395
  auditList: operation({ ...contractDefaults, method: "GET", path: "/api/v1/admin/audit", querySchema: SkillsAdminAuditQuerySchema, responseSchema: SkillsAdminListAuditResponseSchema, successStatuses: [200], errorStatuses: [401, 403, 429, 500, 502, 503, 504] })
4394
4396
  };
4395
4397
  export {
4396
- SkillsAdminUserSchema,
4397
- SkillsAdminUserRoleSchema,
4398
- SkillsAdminSyncResponseSchema,
4399
- SkillsAdminSuspendUserResponseSchema,
4400
- SkillsAdminSuspendUserRequestSchema,
4401
- SkillsAdminSuspendOrganizationResponseSchema,
4402
- SkillsAdminSuspendOrganizationRequestSchema,
4403
- SkillsAdminSubscriptionSchema,
4404
- SkillsAdminStatusResponseSchema,
4405
- SkillsAdminShowRunResponseSchema,
4406
- SkillsAdminShowOrganizationResponseSchema,
4407
- SkillsAdminSetUserRoleResponseSchema,
4408
- SkillsAdminSetUserRoleRequestSchema,
4409
- SkillsAdminRunSchema,
4410
- SkillsAdminRunListRowSchema,
4411
- SkillsAdminRevokeEntitlementResponseSchema,
4412
- SkillsAdminRevokeEntitlementRequestSchema,
4413
- SkillsAdminResumeUserRequestSchema,
4414
- SkillsAdminResumeOrganizationRequestSchema,
4415
- SkillsAdminPathIdSchema,
4416
- SkillsAdminPaginationQuerySchema,
4417
- SkillsAdminOrganizationSchema,
4418
- SkillsAdminOrganizationRequiredQuerySchema,
4419
- SkillsAdminOrganizationQuerySchema,
4420
- SkillsAdminListUsersResponseSchema,
4421
- SkillsAdminListSubscriptionsResponseSchema,
4422
- SkillsAdminListRunsResponseSchema,
4423
- SkillsAdminListOrganizationsResponseSchema,
4424
- SkillsAdminListInvoicesResponseSchema,
4425
- SkillsAdminListEntitlementsResponseSchema,
4426
- SkillsAdminListAuditResponseSchema,
4427
- SkillsAdminInvoiceSchema,
4428
- SkillsAdminGrantEntitlementResponseSchema,
4429
- SkillsAdminGrantEntitlementRequestSchema,
4430
- SkillsAdminErrorSchema,
4431
- SkillsAdminEntitlementSchema,
4432
- SkillsAdminEmptySchema,
4433
- SkillsAdminCreditsResponseSchema,
4434
- SkillsAdminCreditTransactionSchema,
4435
- SkillsAdminCreditBalanceSchema,
4436
- SkillsAdminCancelledRunSchema,
4437
- SkillsAdminCancelRunResponseSchema,
4438
- SkillsAdminCancelRunRequestSchema,
4439
- SkillsAdminAuditRowSchema,
4440
- SkillsAdminAuditQuerySchema,
4441
- SkillsAdminAdjustCreditsResponseSchema,
4442
- SkillsAdminAdjustCreditsRequestSchema,
4443
- SKILLS_ADMIN_OPERATIONS,
4444
- SKILLS_ADMIN_ENV_URL,
4445
- SKILLS_ADMIN_ENV_KEY,
4446
- SKILLS_ADMIN_AUTH_SCHEME,
4447
- SKILLS_ADMIN_AUTH_HEADER_FORM,
4448
- SKILLS_ADMIN_AUTH_HEADER,
4398
+ SKILLS_ADMIN_ADDITIVE_RESPONSE_FIELDS,
4449
4399
  SKILLS_ADMIN_API_CONTRACT_VERSION,
4450
- SKILLS_ADMIN_ADDITIVE_RESPONSE_FIELDS
4400
+ SKILLS_ADMIN_AUTH_HEADER,
4401
+ SKILLS_ADMIN_AUTH_HEADER_FORM,
4402
+ SKILLS_ADMIN_AUTH_SCHEME,
4403
+ SKILLS_ADMIN_ENV_KEY,
4404
+ SKILLS_ADMIN_ENV_URL,
4405
+ SKILLS_ADMIN_OPERATIONS,
4406
+ SkillsAdminAdjustCreditsRequestSchema,
4407
+ SkillsAdminAdjustCreditsResponseSchema,
4408
+ SkillsAdminAuditQuerySchema,
4409
+ SkillsAdminAuditRowSchema,
4410
+ SkillsAdminCancelRunRequestSchema,
4411
+ SkillsAdminCancelRunResponseSchema,
4412
+ SkillsAdminCancelledRunSchema,
4413
+ SkillsAdminCreditBalanceSchema,
4414
+ SkillsAdminCreditTransactionSchema,
4415
+ SkillsAdminCreditsResponseSchema,
4416
+ SkillsAdminEmptySchema,
4417
+ SkillsAdminEntitlementSchema,
4418
+ SkillsAdminErrorSchema,
4419
+ SkillsAdminGrantEntitlementRequestSchema,
4420
+ SkillsAdminGrantEntitlementResponseSchema,
4421
+ SkillsAdminInvoiceSchema,
4422
+ SkillsAdminListAuditResponseSchema,
4423
+ SkillsAdminListEntitlementsResponseSchema,
4424
+ SkillsAdminListInvoicesResponseSchema,
4425
+ SkillsAdminListOrganizationsResponseSchema,
4426
+ SkillsAdminListRunsResponseSchema,
4427
+ SkillsAdminListSubscriptionsResponseSchema,
4428
+ SkillsAdminListUsersResponseSchema,
4429
+ SkillsAdminOrganizationQuerySchema,
4430
+ SkillsAdminOrganizationRequiredQuerySchema,
4431
+ SkillsAdminOrganizationSchema,
4432
+ SkillsAdminPaginationQuerySchema,
4433
+ SkillsAdminPathIdSchema,
4434
+ SkillsAdminResumeOrganizationRequestSchema,
4435
+ SkillsAdminResumeUserRequestSchema,
4436
+ SkillsAdminRevokeEntitlementRequestSchema,
4437
+ SkillsAdminRevokeEntitlementResponseSchema,
4438
+ SkillsAdminRunListRowSchema,
4439
+ SkillsAdminRunSchema,
4440
+ SkillsAdminSetUserRoleRequestSchema,
4441
+ SkillsAdminSetUserRoleResponseSchema,
4442
+ SkillsAdminShowOrganizationResponseSchema,
4443
+ SkillsAdminShowRunResponseSchema,
4444
+ SkillsAdminStatusResponseSchema,
4445
+ SkillsAdminSubscriptionSchema,
4446
+ SkillsAdminSuspendOrganizationRequestSchema,
4447
+ SkillsAdminSuspendOrganizationResponseSchema,
4448
+ SkillsAdminSuspendUserRequestSchema,
4449
+ SkillsAdminSuspendUserResponseSchema,
4450
+ SkillsAdminSyncResponseSchema,
4451
+ SkillsAdminUserRoleSchema,
4452
+ SkillsAdminUserSchema
4451
4453
  };
package/dist/index.d.ts CHANGED
@@ -18,7 +18,7 @@ export { ARTICLE_GENERATION_SLUG, validateBlogArticleRunOptions, type BlogArticl
18
18
  export { getCompactSkillDiscovery, getPublicSkillDiscovery, publicDiscoveryDependencies, publicDiscoveryDocumentation, publicDiscoveryEnvVars, sanitizePublicDiscoveryText, type CompactSkillDiscovery, type PublicSkillDiscovery, } from "./lib/discovery.js";
19
19
  export { TOOL_PRIMITIVE_SCHEMA_VERSION, TOOL_PRIMITIVES, createSkillToolDependencies, getSkillToolDependencies, getToolPrimitive, isGatewayBackedSkill, listToolPrimitives, validateToolPrimitiveCoverage, type SkillToolDependencies, type SkillToolDependency, type ToolPrimitive, type ToolPrimitiveCoverageIssue, type ToolPrimitiveCoverageResult, type ToolPrimitiveRuntime, type ToolPrimitiveSummary, } from "./lib/tool-primitives.js";
20
20
  export { MissingSkillsFleetError, SkillsFleetCredentialError, SKILLS_API_KEY_ENV, SKILLS_API_KEY_ENV_KEYS, SKILLS_API_URL_ENV, SKILLS_API_URL_ENV_KEYS, SKILLS_APP, SKILLS_LOCAL_OPT_IN_ENV_KEYS, configuredSkillsApiUrl, isSkillsLocalOptIn, noticeLocalSkillsMode, normalizeSkillsApiOrigin, requireSkillsApiKey, requireSkillsApiOrigin, requireSkillsFleet, resolveSkillsApiKey, resolveSkillsApiOrigin, resolveSkillsFleet, selectsSkillsLocalMode, skillsCredentialFilePath, skillsCredentialFiles, skillsCredentialOrReason, type HostedSkillsFleet, type LocalSkillsFleet, type SkillsFleet, type SkillsFleetErrorCode, type SkillsFleetOptions, } from "./lib/fleet-credentials.js";
21
- export { RemoteSkillsClient, createRemoteSkillsClient, RemoteRouteUnsupportedError, RemoteRequestError, RemoteWorkspaceMemberError, RemoteCapabilityUnavailableError, type RemotePin, type RemoteSkillSummary, type UpdatedSincePage, } from "./lib/remote-client.js";
21
+ export { RemoteSkillsClient, createRemoteSkillsClient, RemoteRouteUnsupportedError, RemoteRequestError, RemoteQuoteUnavailableError, type RemoteQuoteUnavailableCode, RemoteWorkspaceMemberError, RemoteCapabilityUnavailableError, type RemotePin, type RemoteSkillSummary, type UpdatedSincePage, } from "./lib/remote-client.js";
22
22
  export { REMOTE_SKILL_RUN_CONTRACT_VERSION, normalizeRemoteSkillRunContract, type RemoteSkillRunContract, } from "./lib/remote-run-contract.js";
23
23
  export { addSchedule, listSchedules, removeSchedule, setScheduleEnabled, getDueSchedules, recordScheduleRun, validateCron, getNextRun, type SkillSchedule, } from "./lib/scheduler.js";
24
24
  export { parseSkillFrontmatter, validateRegistryConsistency, validateSkillDirectory, type RegistryConsistencyResult, type SkillFrontmatter, type SkillValidationMessage, type SkillValidationResult, } from "./lib/skill-validation.js";