@hugex/artifact 0.1.1 → 0.2.0
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/dist/do/ArtifactDO.d.ts +21 -3
- package/dist/hash.d.ts +11 -3
- package/dist/host-route.d.ts +8 -0
- package/dist/host.d.ts +3 -2
- package/dist/index.js +354 -289
- package/dist/limits.d.ts +1 -1
- package/dist/mcp/auth.d.ts +11 -3
- package/dist/mcp/authz.d.ts +1 -0
- package/dist/mcp/context.d.ts +17 -0
- package/dist/mcp/domains/artifacts.d.ts +8 -0
- package/dist/mcp/index.d.ts +6 -4
- package/dist/mcp/oauth/config.d.ts +16 -0
- package/dist/mcp/oauth/consent.d.ts +4 -0
- package/dist/mcp/oauth/oidc.d.ts +29 -0
- package/dist/mcp/oauth/provider.d.ts +21 -0
- package/dist/mcp/oauth/transactions.d.ts +5 -0
- package/dist/mcp/registry.d.ts +3 -0
- package/dist/mcp/scopes.d.ts +5 -0
- package/dist/mcp/tools.d.ts +2 -4
- package/dist/types.d.ts +81 -1
- package/dist/validate.d.ts +6 -0
- package/dist/worker-client.d.ts +2 -0
- package/package.json +3 -2
package/dist/limits.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** MVP caps from
|
|
1
|
+
/** MVP caps from plans/notes/artifacts-design.md section 10 (workspace root). Byte counts are decimal MB as in the spike. */
|
|
2
2
|
export declare const LIMITS: {
|
|
3
3
|
readonly fileBytes: 1000000;
|
|
4
4
|
readonly versionBytes: 5000000;
|
package/dist/mcp/auth.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/** Entire header value. No lowercase scheme, no extra whitespace, base64url segments only. */
|
|
2
2
|
export declare const BEARER_RE: RegExp;
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const ANY_BEARER_RE: RegExp;
|
|
4
|
+
export declare const WWW_AUTHENTICATE = "Bearer realm=\"hugex\"";
|
|
4
5
|
export interface ArtifactIdentity {
|
|
6
|
+
sub?: string;
|
|
5
7
|
email: string;
|
|
6
8
|
org: string;
|
|
7
9
|
tenant: string;
|
|
@@ -10,19 +12,25 @@ export interface AuthEnv {
|
|
|
10
12
|
TENANT: string;
|
|
11
13
|
/** Keycloak RS256 public key: base64 SPKI body, no PEM armor. */
|
|
12
14
|
KC_RS256_PK: string;
|
|
15
|
+
KC_BASE_URL?: string;
|
|
16
|
+
KC_CLIENT_ID?: string;
|
|
17
|
+
MCP_KC_ISSUER?: string;
|
|
18
|
+
MCP_LEGACY_ALLOWED_AZP?: string;
|
|
19
|
+
MCP_LEGACY_JWT?: string;
|
|
13
20
|
}
|
|
14
21
|
export declare function parseBearer(authorization: string | null | undefined): string | null;
|
|
22
|
+
export declare function parseAnyBearer(authorization: string | null | undefined): string | null;
|
|
15
23
|
export declare function spkiPem(publicKeyBody: string): string;
|
|
16
24
|
/** Import a Keycloak RS256 public key. `publicKey` is the PEM body (or a full PEM). */
|
|
17
25
|
export declare function importRs256PublicKey(publicKey: string): Promise<CryptoKey>;
|
|
18
|
-
export declare function unauthorizedResponse(): Response;
|
|
26
|
+
export declare function unauthorizedResponse(resourceMetadataUrl?: string): Response;
|
|
19
27
|
export declare function canonicalEmail(payload: Record<string, unknown>): string | null;
|
|
20
28
|
/**
|
|
21
29
|
* Verify an already-parsed bearer token.
|
|
22
30
|
* `publicKey` is a CryptoKey or the same SPKI body stored in KC_RS256_PK.
|
|
23
31
|
* Returns null on any failure (bad signature, wrong tenant, missing email).
|
|
24
32
|
*/
|
|
25
|
-
export declare function verifyArtifactToken(token: string, publicKey: CryptoKey | string, expectedTenant: string): Promise<ArtifactIdentity | null>;
|
|
33
|
+
export declare function verifyArtifactToken(token: string, publicKey: CryptoKey | string, expectedTenant: string, expectedIssuer: string, allowedAzp: ReadonlySet<string>): Promise<ArtifactIdentity | null>;
|
|
26
34
|
export declare function authenticateRequest(request: Request, env: AuthEnv): Promise<{
|
|
27
35
|
ok: true;
|
|
28
36
|
identity: ArtifactIdentity;
|
package/dist/mcp/authz.d.ts
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { GrantSummary, ListResult } from '@cloudflare/workers-oauth-provider';
|
|
2
|
+
import type { ArtifactEnv } from '../types';
|
|
3
|
+
import type { ArtifactAccess } from './authz';
|
|
4
|
+
import type { ArtifactIdentity } from './auth';
|
|
5
|
+
export interface McpRequestContext {
|
|
6
|
+
env: ArtifactEnv;
|
|
7
|
+
identity: ArtifactIdentity;
|
|
8
|
+
upstreamToken: string;
|
|
9
|
+
credentialKind: 'oauth' | 'legacy-jwt';
|
|
10
|
+
scopes: ReadonlySet<string>;
|
|
11
|
+
access: ArtifactAccess | null;
|
|
12
|
+
accessMode: 'phase1' | 'rbac';
|
|
13
|
+
userId?: string;
|
|
14
|
+
resourceMetadataUrl: string;
|
|
15
|
+
listConnections?: (cursor?: string) => Promise<ListResult<GrantSummary>>;
|
|
16
|
+
revokeConnection?: (grantId: string) => Promise<boolean>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ToolDefinition } from '../tools';
|
|
2
|
+
export interface McpDomain {
|
|
3
|
+
id: string;
|
|
4
|
+
tools: readonly ToolDefinition[];
|
|
5
|
+
requiredScope(name: string, args: Record<string, unknown>): string;
|
|
6
|
+
listTools(scopes: ReadonlySet<string>): ToolDefinition[];
|
|
7
|
+
}
|
|
8
|
+
export declare const artifactDomain: McpDomain;
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
* Stateless Streamable HTTP MCP for @hugex/artifact. JSON-RPC 2.0 by hand, no SDK, no CORS.
|
|
3
3
|
*/
|
|
4
4
|
import type { ArtifactEnv } from '../types';
|
|
5
|
+
import type { McpRequestContext } from './context';
|
|
5
6
|
export declare const MAX_BODY_BYTES: number;
|
|
6
|
-
export declare const SERVER_NAME = "hugex
|
|
7
|
-
export declare const SERVER_VERSION = "
|
|
8
|
-
export declare const DEFAULT_PROTOCOL_VERSION = "2025-
|
|
9
|
-
export declare const SUPPORTED_PROTOCOL_VERSIONS: readonly ['2024-11-05', '2025-03-26', '2025-06-18'];
|
|
7
|
+
export declare const SERVER_NAME = "hugex";
|
|
8
|
+
export declare const SERVER_VERSION = "2.0.0";
|
|
9
|
+
export declare const DEFAULT_PROTOCOL_VERSION = "2025-11-25";
|
|
10
|
+
export declare const SUPPORTED_PROTOCOL_VERSIONS: readonly ['2024-11-05', '2025-03-26', '2025-06-18', '2025-11-25'];
|
|
10
11
|
export type AccessMode = 'phase1' | 'rbac';
|
|
11
12
|
export declare function mcpInstructions(mode: AccessMode): string;
|
|
12
13
|
export declare function handleArtifactMcp(request: Request, env: ArtifactEnv, ctx: ExecutionContext): Promise<Response>;
|
|
14
|
+
export declare function handleArtifactMcpAuthenticated(request: Request, env: ArtifactEnv, input: Omit<McpRequestContext, 'env'>): Promise<Response>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ArtifactEnv } from '../../types';
|
|
2
|
+
export declare const OAUTH_SCOPES: readonly ['artifacts:read', 'artifacts:write', 'offline_access'];
|
|
3
|
+
export interface OAuthConfig {
|
|
4
|
+
resource: string;
|
|
5
|
+
issuer: string;
|
|
6
|
+
mount: string;
|
|
7
|
+
authorizeEndpoint: string;
|
|
8
|
+
tokenEndpoint: string;
|
|
9
|
+
registrationEndpoint: string;
|
|
10
|
+
callbackEndpoint: string;
|
|
11
|
+
clientIdMetadataDocumentEnabled: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare function oauthConfigured(env: ArtifactEnv): boolean;
|
|
14
|
+
export declare function getOAuthConfig(env: ArtifactEnv): OAuthConfig;
|
|
15
|
+
export declare function protectedResourceMetadataUrl(resource: string): string;
|
|
16
|
+
export declare function isAuthorizationOrigin(request: Request, config: OAuthConfig): boolean;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ConsentDescription } from '@cloudflare/workers-oauth-provider';
|
|
2
|
+
import type { UpstreamIdentity } from './oidc';
|
|
3
|
+
export declare function consentResponse(request: Request, details: ConsentDescription, identity: UpstreamIdentity, handle: string, helperHeaders: Headers): Response;
|
|
4
|
+
export declare function oauthHtmlError(message: string, status?: number): Response;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ArtifactEnv } from '../../types';
|
|
2
|
+
export interface UpstreamIdentity {
|
|
3
|
+
sub: string;
|
|
4
|
+
email: string;
|
|
5
|
+
org: string;
|
|
6
|
+
tenant: string;
|
|
7
|
+
}
|
|
8
|
+
export interface UpstreamTokens {
|
|
9
|
+
identity: UpstreamIdentity;
|
|
10
|
+
accessToken: string;
|
|
11
|
+
refreshToken: string;
|
|
12
|
+
accessExpiresAt: number;
|
|
13
|
+
refreshExpiresAt: number;
|
|
14
|
+
sessionStartedAt: number;
|
|
15
|
+
}
|
|
16
|
+
export declare function createPkceVerifier(): string;
|
|
17
|
+
export declare function pkceChallenge(verifier: string): Promise<string>;
|
|
18
|
+
export declare function createNonce(): string;
|
|
19
|
+
export declare function upstreamAuthorizeUrl(env: ArtifactEnv, callbackEndpoint: string, state: string, verifierChallenge: string, nonce: string): string;
|
|
20
|
+
export declare function exchangeAuthorizationCode(env: ArtifactEnv, code: string, callbackEndpoint: string, verifier: string, nonce: string): Promise<UpstreamTokens>;
|
|
21
|
+
export type RefreshResult = {
|
|
22
|
+
ok: true;
|
|
23
|
+
tokens: UpstreamTokens;
|
|
24
|
+
} | {
|
|
25
|
+
ok: false;
|
|
26
|
+
terminal: boolean;
|
|
27
|
+
retryAfter?: string;
|
|
28
|
+
};
|
|
29
|
+
export declare function refreshUpstream(env: ArtifactEnv, previous: UpstreamTokens): Promise<RefreshResult>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { OAuthAuthorizationServer, type AuthRequest, type GrantSummary, type ListResult, type OAuthHelpers } from '@cloudflare/workers-oauth-provider';
|
|
2
|
+
import type { ArtifactEnv } from '../../types';
|
|
3
|
+
import { type OAuthConfig } from './config';
|
|
4
|
+
import { type UpstreamTokens } from './oidc';
|
|
5
|
+
export interface McpGrantProps extends UpstreamTokens {
|
|
6
|
+
v: 1;
|
|
7
|
+
authKind: 'oauth';
|
|
8
|
+
}
|
|
9
|
+
export interface McpAccessTokenProps {
|
|
10
|
+
v: 1;
|
|
11
|
+
authKind: 'oauth';
|
|
12
|
+
identity: UpstreamTokens['identity'];
|
|
13
|
+
accessToken: string;
|
|
14
|
+
accessExpiresAt: number;
|
|
15
|
+
sessionStartedAt: number;
|
|
16
|
+
}
|
|
17
|
+
export declare function createAuthorizationServer(env: ArtifactEnv, config: OAuthConfig): OAuthAuthorizationServer<ArtifactEnv>;
|
|
18
|
+
export declare function handleOAuthRequest(request: Request, env: ArtifactEnv, ctx: ExecutionContext): Promise<Response>;
|
|
19
|
+
export declare function listResourceConnections(helpers: Pick<OAuthHelpers, 'listUserGrants'>, userId: string, resource: string, cursor?: string): Promise<ListResult<GrantSummary>>;
|
|
20
|
+
export declare function revokeResourceConnection(helpers: Pick<OAuthHelpers, 'listUserGrants' | 'revokeGrant'>, userId: string, resource: string, grantId: string): Promise<boolean>;
|
|
21
|
+
export declare function withDefaultAuthorizationScope(request: AuthRequest): AuthRequest;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ArtifactEnv } from '../../types';
|
|
2
|
+
import type { UpstreamTokens } from './oidc';
|
|
3
|
+
export declare function storePendingTokens(env: ArtifactEnv, handle: string, tokens: UpstreamTokens): Promise<void>;
|
|
4
|
+
export declare function consumePendingTokens(env: ArtifactEnv, handle: string): Promise<UpstreamTokens | null>;
|
|
5
|
+
export declare function deletePendingTokens(env: ArtifactEnv, handle: string): Promise<void>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const ARTIFACT_READ_SCOPE = "artifacts:read";
|
|
2
|
+
export declare const ARTIFACT_WRITE_SCOPE = "artifacts:write";
|
|
3
|
+
export declare function effectiveScopes(scopes: ReadonlySet<string>): ReadonlySet<string>;
|
|
4
|
+
export declare function requiredScope(tool: string, args: Record<string, unknown>): string;
|
|
5
|
+
export declare function hasScope(scopes: ReadonlySet<string>, required: string): boolean;
|
package/dist/mcp/tools.d.ts
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MCP tool definitions and handlers for @hugex/artifact.
|
|
3
|
-
* Authorization happens before any mutating RPC. The Durable Object does not authorize.
|
|
4
|
-
*/
|
|
5
1
|
import { isSingleSelect } from '../sql';
|
|
6
2
|
import { artifactIndexRpc, artifactRpc } from '../rpc';
|
|
7
3
|
import type { ArtifactEnv } from '../types';
|
|
@@ -15,6 +11,8 @@ interface ToolDeps {
|
|
|
15
11
|
identity: ArtifactIdentity;
|
|
16
12
|
requestUrl: string;
|
|
17
13
|
access: ArtifactAccess | null;
|
|
14
|
+
/** Verified upstream Keycloak token, never the opaque MCP credential. */
|
|
15
|
+
upstreamToken?: string;
|
|
18
16
|
}
|
|
19
17
|
export interface ToolDefinition {
|
|
20
18
|
name: string;
|
package/dist/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Contract shared by the @hugex/artifact runtime (ArtifactDO, ArtifactIndexDO, host routing) and the MCP layer.
|
|
3
|
-
* Owned by the orchestrator: workers must not change these shapes without updating
|
|
3
|
+
* Owned by the orchestrator: workers must not change these shapes without updating plans/notes/artifacts-design.md (§10 contract, workspace root).
|
|
4
4
|
*/
|
|
5
5
|
/** Bindings and vars a tenant worker must provide to mount @hugex/artifact. */
|
|
6
6
|
export interface ArtifactEnv {
|
|
@@ -27,6 +27,26 @@ export interface ArtifactEnv {
|
|
|
27
27
|
ARTIFACT_DEV_PATH?: string;
|
|
28
28
|
/** Keycloak RS256 public key (base64 SPKI body, no PEM header), same secret ora already uses. */
|
|
29
29
|
KC_RS256_PK: string;
|
|
30
|
+
/** Existing password-login client. OAuth MCP uses the separate MCP_KC_* variables. */
|
|
31
|
+
KC_BASE_URL?: string;
|
|
32
|
+
KC_CLIENT_ID?: string;
|
|
33
|
+
/** Canonical protected resource, e.g. https://app-tenant.hugex.co/mcp. */
|
|
34
|
+
MCP_RESOURCE_URL?: string;
|
|
35
|
+
/** Trusted authorization-server origin, separate from ARTIFACT_HOST in production. */
|
|
36
|
+
OAUTH_ISSUER?: string;
|
|
37
|
+
/** Dedicated OAuth provider storage; never shared between tenants. */
|
|
38
|
+
OAUTH_KV?: KVNamespace;
|
|
39
|
+
/** Dedicated confidential OIDC client for the MCP. */
|
|
40
|
+
MCP_KC_ISSUER?: string;
|
|
41
|
+
MCP_KC_CLIENT_ID?: string;
|
|
42
|
+
MCP_KC_CLIENT_SECRET?: string;
|
|
43
|
+
/** 32+ character secret for short-lived encrypted consent state. */
|
|
44
|
+
OAUTH_TRANSACTION_SECRET?: string;
|
|
45
|
+
/** Set true only where global_fetch_strictly_public is enabled. */
|
|
46
|
+
MCP_CIMD_ENABLED?: string;
|
|
47
|
+
/** Legacy JWT is on by default; set "off" to disable it. */
|
|
48
|
+
MCP_LEGACY_JWT?: string;
|
|
49
|
+
MCP_LEGACY_ALLOWED_AZP?: string;
|
|
30
50
|
/**
|
|
31
51
|
* hx-ora base URL, e.g. `http://localhost:3002`. Together with `HX_API_KEY` this turns on
|
|
32
52
|
* Phase 2: RBAC via `POST /internal/artifacts/access` and index replication via `PUT`.
|
|
@@ -35,7 +55,45 @@ export interface ArtifactEnv {
|
|
|
35
55
|
HX_ORA_URL?: string;
|
|
36
56
|
/** Tenant API key sent as the `Authorization` header to hx-ora internal routes (no `Bearer` prefix). */
|
|
37
57
|
HX_API_KEY?: string;
|
|
58
|
+
/**
|
|
59
|
+
* hx-core base URL, e.g. `http://localhost:3001`. Same variable the ora worker already uses.
|
|
60
|
+
* `artifact_workers grant` needs it (with `HX_API_KEY`) to check that the owner can use the flow.
|
|
61
|
+
* Without it, granting a Worker fails; list and revoke still work.
|
|
62
|
+
*/
|
|
63
|
+
HX_CORE_URL?: string;
|
|
64
|
+
}
|
|
65
|
+
/** Target of the same-origin agent route `<base>/__hx/agent/<flowId>/<sessionId>`. */
|
|
66
|
+
export interface ArtifactAgentProxyTarget {
|
|
67
|
+
flowId: string;
|
|
68
|
+
sessionId: string;
|
|
38
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* Injected by the tenant (for example `artifactAgentProxy` from `@hugex/ai`). Runs the tenant's
|
|
72
|
+
* flow chat handler for the visitor. `@hugex/artifact` does not depend on the agent runtime.
|
|
73
|
+
*/
|
|
74
|
+
export type ArtifactAgentProxy = (request: Request, env: any, ctx: ExecutionContext, target: ArtifactAgentProxyTarget) => Promise<Response>;
|
|
75
|
+
export interface ArtifactHostOptions {
|
|
76
|
+
/** Without it, `__hx/agent/...` is a 404. */
|
|
77
|
+
agentProxy?: ArtifactAgentProxy;
|
|
78
|
+
}
|
|
79
|
+
/** A flow the artifact owner allowed this artifact to talk to. */
|
|
80
|
+
export interface WorkerGrant {
|
|
81
|
+
flowId: string;
|
|
82
|
+
grantedBy: string;
|
|
83
|
+
grantedAt: string;
|
|
84
|
+
}
|
|
85
|
+
export type AllowsWorkerInput = {
|
|
86
|
+
flowId: string;
|
|
87
|
+
key?: string | null;
|
|
88
|
+
mode: 'browser' | 'server';
|
|
89
|
+
artifactUuid?: string;
|
|
90
|
+
};
|
|
91
|
+
export type AllowsWorkerResult = {
|
|
92
|
+
ok: true;
|
|
93
|
+
owner: string;
|
|
94
|
+
} | {
|
|
95
|
+
ok: false;
|
|
96
|
+
};
|
|
39
97
|
export type ArtifactGroup = 'none' | 'all' | (string & {});
|
|
40
98
|
export type VersionState = 'provisional' | 'activa' | 'fallida' | 'anterior';
|
|
41
99
|
export interface ArtifactMeta {
|
|
@@ -197,6 +255,28 @@ export interface ArtifactRpc {
|
|
|
197
255
|
ok: true;
|
|
198
256
|
oraSyncFailed?: boolean;
|
|
199
257
|
} | null>;
|
|
258
|
+
/**
|
|
259
|
+
* May this artifact talk to the Worker `flowId`? `browser` also requires access to the artifact
|
|
260
|
+
* (public, or a valid key). `server` requires artifactUuid to match the current artifact and checks the grant.
|
|
261
|
+
* In browser mode artifactUuid is optional; when supplied it must also match.
|
|
262
|
+
*/
|
|
263
|
+
allowsWorker(input: AllowsWorkerInput): Promise<AllowsWorkerResult>;
|
|
264
|
+
/** Grants, oldest first. Null when the artifact does not exist. */
|
|
265
|
+
listWorkerGrants(): Promise<WorkerGrant[] | null>;
|
|
266
|
+
/** Upsert. The caller validated the owner and flow. Null when UUID or owner no longer matches. */
|
|
267
|
+
grantWorker(input: {
|
|
268
|
+
flowId: string;
|
|
269
|
+
grantedBy: string;
|
|
270
|
+
expectUuid: string;
|
|
271
|
+
expectOwner: string;
|
|
272
|
+
}): Promise<WorkerGrant | null>;
|
|
273
|
+
/** Null when the artifact does not exist or its UUID no longer matches. */
|
|
274
|
+
revokeWorker(input: {
|
|
275
|
+
flowId: string;
|
|
276
|
+
expectUuid: string;
|
|
277
|
+
}): Promise<{
|
|
278
|
+
removed: boolean;
|
|
279
|
+
} | null>;
|
|
200
280
|
}
|
|
201
281
|
/** RPC surface of ArtifactIndexDO (stub = env.ARTIFACT_INDEX.get(env.ARTIFACT_INDEX.idFromName('index'))). */
|
|
202
282
|
export interface ArtifactIndexRpc {
|
package/dist/validate.d.ts
CHANGED
|
@@ -8,6 +8,12 @@ export declare function validateSlug(slug: string): string | null;
|
|
|
8
8
|
* Rejects `..`, a leading `/`, backslashes, empty segments, and paths over 200 chars.
|
|
9
9
|
*/
|
|
10
10
|
export declare function validateFilePath(path: string): string | null;
|
|
11
|
+
/** Same flow id grammar as the tenant's flow chat route. */
|
|
12
|
+
export declare const WORKER_FLOW_ID_RE: RegExp;
|
|
13
|
+
/** Browser sessions are `crypto.randomUUID()` values (UUID v4). */
|
|
14
|
+
export declare const WORKER_SESSION_ID_RE: RegExp;
|
|
15
|
+
export declare function isWorkerFlowId(value: unknown): value is string;
|
|
16
|
+
export declare function isWorkerSessionId(value: unknown): value is string;
|
|
11
17
|
export type ArtifactTheme = "hugex" | "none";
|
|
12
18
|
export type ArtifactManifest = {
|
|
13
19
|
title: string;
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hugex/artifact",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "HugeX Artifacts runtime for Cloudflare Workers",
|
|
5
5
|
"author": "a@hugex.co",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"jose": "^6.2.3"
|
|
9
|
+
"jose": "^6.2.3",
|
|
10
|
+
"@cloudflare/workers-oauth-provider": "1.2.3"
|
|
10
11
|
},
|
|
11
12
|
"publishConfig": {
|
|
12
13
|
"access": "public"
|