@hasna/skills 0.10.76 → 0.10.78
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 +45 -3
- package/bin/index.js +748 -339
- package/bin/mcp.js +200 -32
- package/bin/migrate.js +1 -1
- package/bin/server.js +36 -33
- package/bin/worker.js +4 -1
- package/dist/cli/commands/runtime-mcp.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +113 -21
- package/dist/lib/auth-store.d.ts +1 -1
- package/dist/lib/codex-plugin-capability-paths.d.ts +31 -0
- package/dist/lib/credential-profile-command.d.ts +5 -0
- package/dist/lib/fleet-credentials.d.ts +11 -5
- package/dist/lib/instance-credentials.d.ts +2 -0
- package/dist/lib/mcp-registration-environment.d.ts +2 -0
- package/dist/lib/private-publication-customer.d.ts +6 -2
- package/dist/lib/registry-types.d.ts +2 -0
- package/dist/lib/remote-private-publications.d.ts +22 -0
- package/dist/lib/sign-in.d.ts +1 -1
- package/dist/runtime-prerequisites.js +3 -2
- package/dist/sdk/index.d.ts +1 -1
- package/dist/sdk/index.js +215 -127
- package/package.json +1 -1
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { RemotePrivatePublicationsClient } from "./remote-private-publications.js";
|
|
2
2
|
import type { RemoteWorkspaceContext } from "./remote-workspace-selection.js";
|
|
3
|
-
/** Capture
|
|
4
|
-
|
|
3
|
+
/** Capture before code input, so a later profile/origin change cannot retarget consent. */
|
|
4
|
+
export declare function preparePrivatePublicationSession(requested?: RemoteWorkspaceContext): {
|
|
5
|
+
origin: string;
|
|
6
|
+
verify(email: string, code: string): Promise<RemotePrivatePublicationsClient>;
|
|
7
|
+
};
|
|
8
|
+
/** Neither the session nor a signed upload capability is saved to host credentials. */
|
|
5
9
|
export declare function privatePublicationSession(email: string, code: string, requested?: RemoteWorkspaceContext): Promise<RemotePrivatePublicationsClient>;
|
|
6
10
|
export declare function privatePublicationCustomerError(error: unknown): {
|
|
7
11
|
error: string;
|
|
@@ -5,6 +5,8 @@ export type SkillKind = "executable" | "instruction";
|
|
|
5
5
|
*/
|
|
6
6
|
export type SkillSource = "official" | "custom" | "remote" | "private" | "private-hosted" | "upstream" | "extension";
|
|
7
7
|
export interface SkillMeta {
|
|
8
|
+
/** Immutable server UUID, when supplied and validated by a remote metadata read. */
|
|
9
|
+
id?: string;
|
|
8
10
|
name: string;
|
|
9
11
|
displayName: string;
|
|
10
12
|
description: string;
|
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
import { type RemoteWorkspaceSession } from "./remote-workspace-selection.js";
|
|
2
2
|
export declare const PRIVATE_PUBLICATION_MAX_BYTES: number;
|
|
3
|
+
export interface CreatePrivateSkillInput {
|
|
4
|
+
slug: string;
|
|
5
|
+
displayName: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
visibility?: "private" | "team";
|
|
8
|
+
confirm: true;
|
|
9
|
+
}
|
|
10
|
+
/** Only validated identifiers and enums are returned; server free text stays private. */
|
|
11
|
+
export interface CreatedPrivateSkill {
|
|
12
|
+
id: string;
|
|
13
|
+
slug: string;
|
|
14
|
+
visibility: "private" | "team";
|
|
15
|
+
sourceType: "private_hosted";
|
|
16
|
+
ownerOrganizationId: string;
|
|
17
|
+
}
|
|
3
18
|
export type PrivatePublicationState = "awaiting_upload" | "queued" | "verifying" | "needs_attention" | "committed" | "rejected" | "cancelled" | "expired";
|
|
4
19
|
export interface PrivatePublicationDeclaration {
|
|
5
20
|
idempotencyKey: string;
|
|
@@ -45,6 +60,8 @@ export declare class PrivatePublicationError extends Error {
|
|
|
45
60
|
}
|
|
46
61
|
export declare const publicationUuid: (v: unknown) => v is string;
|
|
47
62
|
export declare const publicationSha256: (bytes: Uint8Array | string) => string;
|
|
63
|
+
/** Validate and capture before verification or any await. Confirmation is local only. */
|
|
64
|
+
export declare function checkedPrivateSkillCreate(value: unknown): Omit<Required<CreatePrivateSkillInput>, "confirm">;
|
|
48
65
|
export declare function checkedPublicationDeclaration(value: unknown): PrivatePublicationDeclaration;
|
|
49
66
|
export declare function checkedPublicationView(value: unknown, skillId: string, intentId?: string, declaration?: PrivatePublicationDeclaration): PrivatePublicationView;
|
|
50
67
|
/** Explicit hosted contract, unrelated to registry publishSkill and its content revisions.
|
|
@@ -56,6 +73,11 @@ export declare class RemotePrivatePublicationsClient {
|
|
|
56
73
|
readonly userId: string;
|
|
57
74
|
readonly membershipId: string;
|
|
58
75
|
constructor(apiUrl: string, session: RemoteWorkspaceSession);
|
|
76
|
+
/** One session-only POST. An uncertain result must be inspected, never replayed. */
|
|
77
|
+
createSkill(input: CreatePrivateSkillInput, options?: {
|
|
78
|
+
timeoutMs?: number;
|
|
79
|
+
signal?: AbortSignal;
|
|
80
|
+
}): Promise<CreatedPrivateSkill>;
|
|
59
81
|
getCapability(options?: {
|
|
60
82
|
timeoutMs?: number;
|
|
61
83
|
signal?: AbortSignal;
|
package/dist/lib/sign-in.d.ts
CHANGED
|
@@ -119,7 +119,7 @@ export declare function clearPendingDeviceSignIn(env?: Env, origin?: string): vo
|
|
|
119
119
|
* Store the key a sign-in produced, bound to the instance that issued it.
|
|
120
120
|
* A session-only answer (a token, no key) mints a CLI key first.
|
|
121
121
|
*/
|
|
122
|
-
export declare function persistSignIn(result: SignInResult, origin: string, env?: Env, issuedBy?: StoredKeyIssuer): Promise<string>;
|
|
122
|
+
export declare function persistSignIn(result: SignInResult, origin: string, env?: Env, issuedBy?: StoredKeyIssuer, assertUnchanged?: () => void): Promise<string>;
|
|
123
123
|
/**
|
|
124
124
|
* What happened to server-side revocation.
|
|
125
125
|
*
|
|
@@ -49,7 +49,7 @@ var __require = import.meta.require;
|
|
|
49
49
|
// src/runtime-prerequisites.ts
|
|
50
50
|
import { isAbsolute as isAbsolute7 } from "path";
|
|
51
51
|
// package.json
|
|
52
|
-
var version = "0.10.
|
|
52
|
+
var version = "0.10.78";
|
|
53
53
|
var package_default = {
|
|
54
54
|
name: "@hasna/skills",
|
|
55
55
|
version,
|
|
@@ -1955,7 +1955,8 @@ var MEASURED_CODEX_CAPABILITIES = {
|
|
|
1955
1955
|
"codex-cli 0.160.1": ["hooks", "qualified-skill-catalog", "installed-plugin-review"],
|
|
1956
1956
|
"codex-cli 0.161.0": ["hooks", "qualified-skill-catalog", "installed-plugin-review"],
|
|
1957
1957
|
"codex-cli 0.162.0": ["hooks", "qualified-skill-catalog", "installed-plugin-review"],
|
|
1958
|
-
"codex-cli 0.162.1": ["hooks", "qualified-skill-catalog", "installed-plugin-review"]
|
|
1958
|
+
"codex-cli 0.162.1": ["hooks", "qualified-skill-catalog", "installed-plugin-review"],
|
|
1959
|
+
"codex-cli 0.163.0": ["hooks", "qualified-skill-catalog", "installed-plugin-review"]
|
|
1959
1960
|
};
|
|
1960
1961
|
function supportsCodexNativeCapability(version2, capability) {
|
|
1961
1962
|
return typeof version2 === "string" && Object.hasOwn(MEASURED_CODEX_CAPABILITIES, version2) && MEASURED_CODEX_CAPABILITIES[version2].includes(capability);
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ export { WorkspaceLeaveInputError, RemoteWorkspaceLeaveError, RemoteWorkspaceLea
|
|
|
60
60
|
export type { RemoteWorkspaceInvitation, RemoteWorkspaceInvitationsPage, RemoteWorkspaceInvitationResult, RemoteWorkspaceInvitationAcceptance, ListRemoteWorkspaceInvitations, IssueRemoteWorkspaceInvitation, ResendRemoteWorkspaceInvitation, RevokeRemoteWorkspaceInvitation, AcceptRemoteWorkspaceInvitation, RemoteWorkspaceInvitationErrorCode } from "../lib/remote-invitations.js";
|
|
61
61
|
export { WorkspaceInvitationInputError, RemoteWorkspaceInvitationError, RemoteWorkspaceInvitationUnconfirmedError, RemoteWorkspaceInvitationReadError } from "../lib/remote-invitations.js";
|
|
62
62
|
export { InvitationEmailInputError, RemoteInvitationEmailError, RemoteInvitationEmailUnconfirmedError, type RequestInvitationEmailChallenge, type AcceptInvitationEmailChallenge, type RemoteInvitationEmailChallenge, type RemoteInvitationEmailAcceptance, type RemoteInvitationEmailErrorCode } from "../lib/remote-invitation-recovery.js";
|
|
63
|
-
export { RemotePrivatePublicationsClient, PrivatePublicationError, PRIVATE_PUBLICATION_MAX_BYTES, type PrivatePublicationDeclaration, type PrivatePublicationView, type PrivatePublicationState, type PrivatePublishingCapability } from "../lib/remote-private-publications.js";
|
|
63
|
+
export { RemotePrivatePublicationsClient, PrivatePublicationError, PRIVATE_PUBLICATION_MAX_BYTES, type CreatePrivateSkillInput, type CreatedPrivateSkill, type PrivatePublicationDeclaration, type PrivatePublicationView, type PrivatePublicationState, type PrivatePublishingCapability } from "../lib/remote-private-publications.js";
|
|
64
64
|
export { preparePrivatePublication, readPrivatePublicationRecovery, continuePrivatePublication, inspectPrivatePublication, type PrivatePublicationRecovery, type PrivatePublicationResult } from "../lib/private-publication-recovery.js";
|
|
65
65
|
export { createSkillOperationClient, SkillOperationClientError, SKILL_OPERATION_LIMITS, type SkillOperationClient, type SkillOperationTransport, type SkillOperationRequest, type SkillOperationResult, type SkillOperationJson, type SkillOperationRefusal, type SkillOperationClientErrorCode } from "./operations.js";
|
|
66
66
|
export type { RemoteCreditCheckoutOptions, RemoteCreditCheckout, RemoteCreditCheckoutErrorCode } from "../lib/remote-credit-checkout.js";
|