@hasna/skills 0.8.9 → 0.8.11
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 +103 -1
- package/bin/index.js +26509 -24016
- package/bin/mcp.js +596 -222
- package/bin/migrate.js +7 -5
- package/bin/server.js +12313 -73626
- package/bin/worker.js +7636 -60520
- package/dist/cli/commands/plugin-admission.d.ts +2 -0
- package/dist/index.d.ts +9 -2
- package/dist/index.js +23559 -21779
- package/dist/lib/agent-adapters.d.ts +1 -0
- package/dist/lib/agent-codex-trust.d.ts +42 -0
- package/dist/lib/agent-discovery.d.ts +4 -2
- package/dist/lib/claude-marketplace-registry.d.ts +17 -0
- package/dist/lib/codex-hook-rpc.d.ts +13 -0
- package/dist/lib/codex-hook-trust-files.d.ts +15 -0
- package/dist/lib/codex-hook-trust-identity.d.ts +16 -0
- package/dist/lib/codex-hook-trust-layout.d.ts +3 -0
- package/dist/lib/fleet-credentials.d.ts +18 -0
- package/dist/lib/hook-diagnostics.d.ts +7 -0
- package/dist/lib/plugin-admission.d.ts +101 -0
- package/dist/lib/plugin-discovery.d.ts +13 -0
- package/dist/lib/plugin-projection-store.d.ts +14 -0
- package/dist/lib/plugin-projection.d.ts +80 -0
- package/dist/lib/profile-client.d.ts +10 -0
- package/dist/lib/recurring-recovery.d.ts +2 -2
- package/dist/lib/recurring-surface.d.ts +1 -1
- package/dist/lib/remote-client.d.ts +14 -4
- package/dist/lib/remote-credit-checkout.d.ts +22 -0
- package/dist/lib/remote-customer-operations.d.ts +3 -4
- package/dist/lib/remote-permissions.d.ts +24 -0
- package/dist/lib/selection-cache.d.ts +32 -0
- package/dist/lib/selection-resolver.d.ts +3 -1
- package/dist/lib/session-reconciliation.d.ts +100 -0
- package/dist/sdk/index.d.ts +5 -2
- package/dist/sdk/index.js +18528 -78089
- package/docs/plugin-admission.md +221 -0
- package/package.json +7 -5
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { type ProfileClient } from "./profile-client.js";
|
|
2
|
+
import { type SelectionCacheOptions } from "./selection-cache.js";
|
|
3
|
+
export interface SessionReconciliationInput {
|
|
4
|
+
sessionId: string;
|
|
5
|
+
fromProfile: string;
|
|
6
|
+
fromRevision: string;
|
|
7
|
+
receiptSha256: string;
|
|
8
|
+
selectionProfile: string;
|
|
9
|
+
profileRevision: string;
|
|
10
|
+
apply?: boolean;
|
|
11
|
+
planDigest?: string;
|
|
12
|
+
planIssuedAt?: string;
|
|
13
|
+
planExpiresAt?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface SessionReconciliationOptions extends SelectionCacheOptions {
|
|
16
|
+
client?: ProfileClient;
|
|
17
|
+
}
|
|
18
|
+
export declare const SESSION_RECONCILIATION_PLAN_TTL_MS: number;
|
|
19
|
+
/** Metadata only: inspection never displays skill payloads or resolves credentials. */
|
|
20
|
+
export declare function inspectSkillSession(sessionId: string, options?: SelectionCacheOptions): {
|
|
21
|
+
sessionId: string;
|
|
22
|
+
path: string;
|
|
23
|
+
receiptSha256: string;
|
|
24
|
+
generation: number;
|
|
25
|
+
verifiedAt: string;
|
|
26
|
+
authority: string;
|
|
27
|
+
workspaceId: string;
|
|
28
|
+
profileId: string;
|
|
29
|
+
profileRevision: string;
|
|
30
|
+
selectionCount: number;
|
|
31
|
+
loadedCount: number;
|
|
32
|
+
};
|
|
33
|
+
/** Explicit opt-in only. Ordinary loads and hooks retain their immutable session pins. */
|
|
34
|
+
export declare function reconcileSkillSession(input: SessionReconciliationInput, options?: SessionReconciliationOptions): Promise<{
|
|
35
|
+
applied: false;
|
|
36
|
+
plan: {
|
|
37
|
+
schemaVersion: number;
|
|
38
|
+
issuedAt: string;
|
|
39
|
+
expiresAt: string;
|
|
40
|
+
sessionId: string;
|
|
41
|
+
sessionPath: string;
|
|
42
|
+
before: {
|
|
43
|
+
receiptSha256: string;
|
|
44
|
+
generation: number;
|
|
45
|
+
profileId: string;
|
|
46
|
+
profileRevision: string;
|
|
47
|
+
selectionCount: number;
|
|
48
|
+
};
|
|
49
|
+
target: {
|
|
50
|
+
authority: string;
|
|
51
|
+
workspaceId: string;
|
|
52
|
+
profileId: string;
|
|
53
|
+
profileRevision: string;
|
|
54
|
+
profileSha256: string;
|
|
55
|
+
selectionCount: number;
|
|
56
|
+
};
|
|
57
|
+
replacementGeneration: number;
|
|
58
|
+
retainedLoadedCount: number;
|
|
59
|
+
retiredLoadedCount: number;
|
|
60
|
+
scope: string;
|
|
61
|
+
};
|
|
62
|
+
planDigest: string;
|
|
63
|
+
archivePath: undefined;
|
|
64
|
+
receiptPath: undefined;
|
|
65
|
+
beforeSha256: string;
|
|
66
|
+
afterSha256: undefined;
|
|
67
|
+
} | {
|
|
68
|
+
archivePath: string;
|
|
69
|
+
receiptPath: string;
|
|
70
|
+
beforeSha256: string;
|
|
71
|
+
afterSha256: string;
|
|
72
|
+
applied: true;
|
|
73
|
+
plan: {
|
|
74
|
+
schemaVersion: number;
|
|
75
|
+
issuedAt: string;
|
|
76
|
+
expiresAt: string;
|
|
77
|
+
sessionId: string;
|
|
78
|
+
sessionPath: string;
|
|
79
|
+
before: {
|
|
80
|
+
receiptSha256: string;
|
|
81
|
+
generation: number;
|
|
82
|
+
profileId: string;
|
|
83
|
+
profileRevision: string;
|
|
84
|
+
selectionCount: number;
|
|
85
|
+
};
|
|
86
|
+
target: {
|
|
87
|
+
authority: string;
|
|
88
|
+
workspaceId: string;
|
|
89
|
+
profileId: string;
|
|
90
|
+
profileRevision: string;
|
|
91
|
+
profileSha256: string;
|
|
92
|
+
selectionCount: number;
|
|
93
|
+
};
|
|
94
|
+
replacementGeneration: number;
|
|
95
|
+
retainedLoadedCount: number;
|
|
96
|
+
retiredLoadedCount: number;
|
|
97
|
+
scope: string;
|
|
98
|
+
};
|
|
99
|
+
planDigest: string;
|
|
100
|
+
}>;
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
*/
|
|
18
18
|
export { readExecutionGrantPolicy, saveExecutionGrantPolicy, resolveExecutionGrant } from "../lib/execution-grant-client.js";
|
|
19
19
|
export type { ExecutionGrant, ExecutionGrantPolicy, ExecutionGrantRequest, ResolvedExecutionGrant } from "../lib/execution-grants.js";
|
|
20
|
-
export { HttpProfileClient, createProfileClient, type ProfileClient } from "../lib/profile-client.js";
|
|
20
|
+
export { HttpProfileClient, createProfileClient, type ProfileClient, type AuthenticatedProfilePrincipal, type AuthenticatedProfileRole } from "../lib/profile-client.js";
|
|
21
|
+
export { inspectSkillSession, reconcileSkillSession, type SessionReconciliationInput, type SessionReconciliationOptions } from "../lib/session-reconciliation.js";
|
|
21
22
|
export { resolveSelectedRun, executeSelectedLocal, prepareSelectedSecretBindings, type ResolvedSelectedRun, type SelectedLocalRunOptions } from "../lib/selected-run.js";
|
|
22
23
|
export { readSelectedSecretBindings, type SelectedSecretBindings, type SelectedSecretsClient } from "../lib/execution-secrets.js";
|
|
23
24
|
export type { SkillSelection, SkillProfile, ResolvedSkillSelection, ResolvedSkillProfile, StationSkillStateInput, StationSkillState } from "../types/skill-selection.js";
|
|
@@ -36,7 +37,8 @@ export * from "./events.js";
|
|
|
36
37
|
export * from "./spend.js";
|
|
37
38
|
export * from "./offline.js";
|
|
38
39
|
export * from "./execution/index.js";
|
|
39
|
-
export { RemoteSkillsClient, createRemoteSkillsClient, RemoteRequestError, RemoteRouteUnsupportedError, RemoteCapabilityUnavailableError, RemoteQuoteUnavailableError, RemoteWorkspaceMemberError } from "../lib/remote-client.js";
|
|
40
|
+
export { RemoteSkillsClient, createRemoteSkillsClient, RemoteRequestError, RemoteCreditCheckoutError, RemoteRouteUnsupportedError, RemoteCapabilityUnavailableError, RemoteQuoteUnavailableError, RemoteWorkspaceMemberError } from "../lib/remote-client.js";
|
|
41
|
+
export { RemoteSkillsPermissionError, type RemoteSkillsAccess, type RemoteSkillsPermissions } from "../lib/remote-permissions.js";
|
|
40
42
|
export * from "../lib/remote-recurring-contract.js";
|
|
41
43
|
export { RecurringInputError, RemoteRecurringError, RemoteRecurringUnavailableError, RemoteRecurringReadError, RemoteRecurringUnconfirmedError } from "../lib/remote-recurring.js";
|
|
42
44
|
export type { RecurringCapability, RecurringListOptions, RemoteRecurringErrorCode } from "../lib/remote-recurring.js";
|
|
@@ -59,3 +61,4 @@ export { InvitationEmailInputError, RemoteInvitationEmailError, RemoteInvitation
|
|
|
59
61
|
export { RemotePrivatePublicationsClient, PrivatePublicationError, PRIVATE_PUBLICATION_MAX_BYTES, type PrivatePublicationDeclaration, type PrivatePublicationView, type PrivatePublicationState, type PrivatePublishingCapability } from "../lib/remote-private-publications.js";
|
|
60
62
|
export { preparePrivatePublication, readPrivatePublicationRecovery, continuePrivatePublication, inspectPrivatePublication, type PrivatePublicationRecovery, type PrivatePublicationResult } from "../lib/private-publication-recovery.js";
|
|
61
63
|
export { createSkillOperationClient, SkillOperationClientError, SKILL_OPERATION_LIMITS, type SkillOperationClient, type SkillOperationTransport, type SkillOperationRequest, type SkillOperationResult, type SkillOperationJson, type SkillOperationRefusal, type SkillOperationClientErrorCode } from "./operations.js";
|
|
64
|
+
export type { RemoteCreditCheckoutOptions, RemoteCreditCheckout, RemoteCreditCheckoutErrorCode } from "../lib/remote-credit-checkout.js";
|