@vite-hub/workspace 0.1.0 → 0.3.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/README.md +164 -107
- package/dist/abort-BCwpdrN0.js +32 -0
- package/dist/blob-database.d.ts +70 -117
- package/dist/blob-database.js +48 -41
- package/dist/checkout.d.ts +128 -0
- package/dist/checkout.js +849 -0
- package/dist/cloudflare.d.ts +2 -2
- package/dist/cloudflare.js +1 -1
- package/dist/config-B-863EgC.js +15 -0
- package/dist/{config-B7dmzDX3.js → config-BAgL2dtB.js} +48 -84
- package/dist/{config-DLKdaFWN.d.ts → config-BQKcPawI.d.ts} +1 -1
- package/dist/discard-CNNtCozM.js +8 -0
- package/dist/durability.d.ts +22 -0
- package/dist/durability.js +70 -0
- package/dist/error-diagnostics-CtKjGtGb.js +188 -0
- package/dist/error-diagnostics-DSkCJC_L.js +266 -0
- package/dist/file-2pFYNtsU.js +22 -0
- package/dist/{files-C7Px8uaC.js → files-BOo4SbwE.js} +2 -2
- package/dist/files.d.ts +38 -0
- package/dist/files.js +6 -0
- package/dist/{github-CPxHtFB7.js → github-CrYp4v8k.js} +32 -5
- package/dist/{glob--XcLlcml.js → glob-B8YGvTrZ.js} +4 -5
- package/dist/{glob--kNYDbfU.js → glob-Cjxms1t7.js} +1 -1
- package/dist/{host-CFnrTXTK.js → host-BFBpXn0N.js} +58 -47
- package/dist/{hosted-acMA5XyL.js → hosted-KcUR_jPv.js} +216 -93
- package/dist/hosted-vercel-blob-B3-wRdUm.js +410 -0
- package/dist/hosted-vercel-blob.d.ts +2 -2
- package/dist/hosted-vercel-blob.js +1 -1
- package/dist/hosted.d.ts +5 -3
- package/dist/hosted.js +2 -2
- package/dist/index.d.ts +9 -51
- package/dist/index.js +21 -91
- package/dist/{lifecycle-BwZ7c9hb.js → lifecycle-B-enk_4A.js} +8 -8
- package/dist/lineage.d.ts +26 -0
- package/dist/lineage.js +76 -0
- package/dist/loader.d.ts +1 -1
- package/dist/loader.js +2 -2
- package/dist/{mcp-resources-BREFCmtn.js → mcp-resources-DF0F5rcL.js} +2 -2
- package/dist/{memory-BbwOqDXl.js → memory-BOexthyW.js} +3 -4
- package/dist/{metadata-target-DZEZQGHA.js → metadata-target-CWz6KHKq.js} +17 -16
- package/dist/object-Da1zyPCR.js +11 -0
- package/dist/operation-definition-8gOe-ubD.d.ts +234 -0
- package/dist/operations-C6FpR8Rr.js +389 -0
- package/dist/operations-CE2drFih.js +1234 -0
- package/dist/operations.d.ts +41 -4
- package/dist/operations.js +3 -2
- package/dist/{path-CNAwN7pw.js → path--wrT_Azm.js} +2 -3
- package/dist/path-AxMho1wo.d.ts +7 -0
- package/dist/{plugins-DqQ8b4T5.d.ts → plugins-C8C0auoW.d.ts} +1 -1
- package/dist/{provider-kXjfli9u.js → provider-9s4Ufkm5.js} +104 -82
- package/dist/providers/github/store.d.ts +1 -1
- package/dist/providers/github/store.js +1 -1
- package/dist/registry-B3BBm4Ts.d.ts +19 -0
- package/dist/{registry-Bp-8UUfG.js → registry-CNphafBx.js} +55 -20
- package/dist/registry-CYNN623b.d.ts +9 -0
- package/dist/request-scope-Dw5n8bMC.js +83 -0
- package/dist/results-DgkZUmTL.js +8 -0
- package/dist/{rolldown-runtime-B4iAMlE-.js → rolldown-runtime-rQ84J-ij.js} +2 -3
- package/dist/runtime/assets.d.ts +1 -1
- package/dist/runtime/assets.js +3 -3
- package/dist/runtime/empty-assets-registry.d.ts +1 -1
- package/dist/runtime/empty-registry.d.ts +2 -1
- package/dist/runtime/registry.d.ts +2 -0
- package/dist/runtime/registry.js +23 -0
- package/dist/runtime/request.d.ts +4 -0
- package/dist/runtime/request.js +8 -0
- package/dist/runtime/state.d.ts +5 -4
- package/dist/runtime/state.js +8 -18
- package/dist/runtime/workspace.d.ts +1 -1
- package/dist/runtime/workspace.js +1 -1
- package/dist/runtime.d.ts +9 -8
- package/dist/runtime.js +23 -26
- package/dist/{search-CrTmXj5h.js → search-C_RfoM2j.js} +2 -2
- package/dist/{server-BNQ-Nbjj.js → server-8tGltlGz.js} +53 -40
- package/dist/server.d.ts +17 -8
- package/dist/server.js +1 -1
- package/dist/shared-B3_EUk89.js +848 -0
- package/dist/source-metadata.d.ts +6 -2
- package/dist/source-metadata.js +8 -8
- package/dist/state-BISnUf1s.d.ts +35 -0
- package/dist/{ai-BZyLwULx.js → state-DbrW-njQ.js} +96 -54
- package/dist/{store-CXgmu-uw.js → store-ybhyD38Z.js} +250 -106
- package/dist/{sync-CN6ec-5M.js → sync-CCD_VYC8.js} +4 -4
- package/dist/target-jWhTdIuF.js +89 -0
- package/dist/test.d.ts +1 -1
- package/dist/test.js +1 -1
- package/dist/{types-DeK9GIxy.d.ts → types-BbtwmBZ5.d.ts} +68 -14
- package/dist/use-C6lV3-wC.d.ts +321 -0
- package/dist/{use-BQj7nSz6.js → use-CSpT5W87.js} +75 -82
- package/dist/{utils-Blrh4N2n.js → utils-CgMZCHsX.js} +112 -41
- package/dist/vite.d.ts +585 -2
- package/dist/vite.js +21368 -1
- package/dist/{workspace-BWJQBK1u.d.ts → workspace-CYB2xZ1T.d.ts} +1 -1
- package/dist/{workspace-6pxkOuxr.js → workspace-sPWn2Jxj.js} +125 -40
- package/package.json +46 -55
- package/dist/ai-BW2ZhizI.d.ts +0 -177
- package/dist/ai.d.ts +0 -3
- package/dist/ai.js +0 -2
- package/dist/association-Cm0dUTDU-CDDhJnIh-Cv3bWnVb.js +0 -19
- package/dist/error-diagnostics-A_8Kp-48.js +0 -116
- package/dist/error-diagnostics-DY5GP47p.js +0 -96
- package/dist/events-7EBoeIPd-A2RUkJi5-BxrICQ17.js +0 -354
- package/dist/events-CRaLy7U3-3PNNp5WZ-Gv9nd0cH.js +0 -214
- package/dist/events-CeChclTf-CX-gD8oy-4aL2j6V-.js +0 -527
- package/dist/feed-DsC7Vws1-M_de2nSK-tKc0Pwo8.js +0 -248
- package/dist/feed-Dyf730Ys-D0HgBba6-BUnCa5gS.js +0 -179
- package/dist/file-C0_aPWSS.js +0 -26
- package/dist/file-metadata-CxDy-E2H.js +0 -58
- package/dist/forgejo-BN8ItCfl-Bbn4vhDd.js +0 -2278
- package/dist/github-DtncTfmv-Du2S8lGF.js +0 -4159
- package/dist/gitlab-BoDm8-BC-xzZsW9eW.js +0 -2530
- package/dist/graphql-DG5aJBT3-DceyFYdM-C4saqX37.js +0 -489
- package/dist/hosted-vercel-blob-DKntsHaf.js +0 -12603
- package/dist/inspect-BoObD2cJ.js +0 -167
- package/dist/mountx.d.ts +0 -8
- package/dist/mountx.js +0 -145
- package/dist/nitro.d.ts +0 -2
- package/dist/nitro.js +0 -2
- package/dist/nuxt.d.ts +0 -27
- package/dist/nuxt.js +0 -38
- package/dist/operations-BcpWr41m.js +0 -159
- package/dist/operations-CGqY1XeG.js +0 -965
- package/dist/operations-DnOwKsJT.d.ts +0 -136
- package/dist/registry-Cg1TJVVZ.d.ts +0 -10
- package/dist/request-execution-Dk9rY-Yh.js +0 -84
- package/dist/shared-DalXdP0i.js +0 -2158
- package/dist/state-B8zbLi5t.d.ts +0 -26
- package/dist/target-D4Bqb1eH.js +0 -11
- package/dist/templates-Bn8a-pd2-D9DhJEVD-CBfXNRzz.js +0 -125
- package/dist/token-CO62GglH.js +0 -61
- package/dist/use-DhwhbAVV.d.ts +0 -108
- package/dist/vite-BEvgU2GY.js +0 -20909
- package/dist/vite-CcZmMQ7S.d.ts +0 -476
- package/dist/webhooks-DgHwxxYz-D1V2LOr1-azofFOiP.js +0 -1565
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
2
|
-
//#region ../internal/src/operations.d.ts
|
|
3
|
-
/** `read` never changes state. `write` changes state. `destructive` deletes or publishes. */
|
|
4
|
-
type OperationKind = "read" | "write" | "destructive";
|
|
5
|
-
/** The signed-in user of a call. */
|
|
6
|
-
interface OperationUser {
|
|
7
|
-
id: string;
|
|
8
|
-
name?: string;
|
|
9
|
-
email?: string;
|
|
10
|
-
image?: string;
|
|
11
|
-
[key: string]: unknown;
|
|
12
|
-
}
|
|
13
|
-
/** The Agent Actor when an agent calls through a capability or MCP on behalf of a user. */
|
|
14
|
-
interface OperationActor {
|
|
15
|
-
id: string;
|
|
16
|
-
kind?: string;
|
|
17
|
-
label?: string;
|
|
18
|
-
meta?: object;
|
|
19
|
-
}
|
|
20
|
-
/** The checked Console access of a call. `vite-hub` issues it. `ConsoleAccess` has this shape. */
|
|
21
|
-
interface OperationAccess {
|
|
22
|
-
readonly mode: string;
|
|
23
|
-
/**
|
|
24
|
-
* The sections that the call may use. `"all"` when no section filter applies. An entry is a section id (`"kv"`, every
|
|
25
|
-
* operation of the section) or `"<section>:read"` (only the operations that read).
|
|
26
|
-
*/
|
|
27
|
-
readonly sections: "all" | readonly string[];
|
|
28
|
-
readonly user?: OperationUser;
|
|
29
|
-
}
|
|
30
|
-
interface OperationContext {
|
|
31
|
-
/** The checked Console access of the call. */
|
|
32
|
-
access: OperationAccess;
|
|
33
|
-
/** The signed-in user, or null. */
|
|
34
|
-
user: OperationUser | null;
|
|
35
|
-
/** The Agent Actor when an agent calls on behalf of `user`. */
|
|
36
|
-
actor?: OperationActor;
|
|
37
|
-
surface: "console" | "cli" | "mcp" | "agent";
|
|
38
|
-
/** Set by the host from generated build identity, never from request input or runtime NODE_ENV. */
|
|
39
|
-
development?: boolean;
|
|
40
|
-
env?: Record<string, unknown>;
|
|
41
|
-
waitUntil?: (task: Promise<unknown>) => void;
|
|
42
|
-
request?: Request;
|
|
43
|
-
/** Operations set a success status here, such as 202 for an accepted call. */
|
|
44
|
-
response?: {
|
|
45
|
-
status?: number;
|
|
46
|
-
};
|
|
47
|
-
/**
|
|
48
|
-
* An agent or an MCP client may pass `lease: "override"` to `content.save`, `content.remove`, and `content.restore`
|
|
49
|
-
* only when the developer allowed it. Defaults to false, so a model cannot take over a document that a person is editing.
|
|
50
|
-
*/
|
|
51
|
-
overrideLeases?: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* What an Agent may read of the Channel conversations, set by `operations({ conversations })`. `participant`: only the
|
|
54
|
-
* threads that the Actor takes part in. `all`: every thread. Unset: none.
|
|
55
|
-
*/
|
|
56
|
-
conversations?: "all" | "participant";
|
|
57
|
-
}
|
|
58
|
-
interface OperationDefinition<Input, Output> {
|
|
59
|
-
/** `<section>.<verb>`, such as `content.publish`. Unique per app. */
|
|
60
|
-
name: string;
|
|
61
|
-
/** One sentence. Becomes the CLI help line and the MCP tool description. */
|
|
62
|
-
description: string;
|
|
63
|
-
/**
|
|
64
|
-
* Console section that grants access, such as `content`. `false`: any Console user. A function reads the section
|
|
65
|
-
* from the input, for operations that serve several sections.
|
|
66
|
-
*/
|
|
67
|
-
section: string | false | ((input: Input) => string | undefined);
|
|
68
|
-
/** `read` never changes state. `write` changes state. `destructive` deletes or publishes; the CLI asks for `--yes`, MCP marks `destructiveHint`, agents require approval by default. */
|
|
69
|
-
kind: OperationKind;
|
|
70
|
-
/** Standard Schema (valibot in this repo). Its Standard JSON Schema builds CLI flags and the MCP input schema. */
|
|
71
|
-
input: StandardSchemaV1<unknown, Input>;
|
|
72
|
-
output?: StandardSchemaV1<unknown, Output>;
|
|
73
|
-
cli?: {
|
|
74
|
-
/** Defaults: namespace = section, command = verb. */
|
|
75
|
-
namespace?: string;
|
|
76
|
-
command?: string;
|
|
77
|
-
/** Input keys read from positional arguments, in order. */
|
|
78
|
-
positional?: string[];
|
|
79
|
-
/** Human output, written verbatim. Without it the CLI prints JSON. `--json` always prints JSON. */
|
|
80
|
-
format?: (output: Output) => string;
|
|
81
|
-
/** `vitehub <namespace>` runs this command when no command is named, such as `vitehub usage`. */
|
|
82
|
-
default?: boolean;
|
|
83
|
-
/**
|
|
84
|
-
* Route of the app that takes a signed dispatch of this operation, such as `/_vitehub/schedules/run`. With `--url`
|
|
85
|
-
* and a dispatch key in the environment (`VITEHUB_DISPATCH_KEY`), the command signs the input and posts it there, so
|
|
86
|
-
* a CI job needs no Console credentials. Without a key it calls the RPC.
|
|
87
|
-
*/
|
|
88
|
-
dispatch?: string;
|
|
89
|
-
};
|
|
90
|
-
/** Largest request body in bytes. It can raise the 64 KiB default but not lower it. */
|
|
91
|
-
maxRequestBytes?: number;
|
|
92
|
-
/**
|
|
93
|
-
* Returns true when this call only reads, such as a dry run of a `destructive` operation. The CLI then skips the
|
|
94
|
-
* confirmation, and agents run it without approval. Without it, every call of a `destructive` operation asks.
|
|
95
|
-
*/
|
|
96
|
-
readOnlyWhen?: (input: Input) => boolean;
|
|
97
|
-
/** `false`: MCP does not offer the operation as a tool, such as an editor transport that only the Console uses. */
|
|
98
|
-
mcp?: false;
|
|
99
|
-
/** `false`: the operation never reads `context.user`, so the Console skips the session lookup for it. */
|
|
100
|
-
user?: false;
|
|
101
|
-
/**
|
|
102
|
-
* The operation runs code of the app, such as a workflow, a job, a task, or a schedule. The Console registers it only
|
|
103
|
-
* when `console.invoke` is on, which is the default in development and off in a production build.
|
|
104
|
-
*/
|
|
105
|
-
invoke?: true;
|
|
106
|
-
run: (input: Input, context: OperationContext) => Output | Promise<Output>;
|
|
107
|
-
}
|
|
108
|
-
/** An operation of any input and output, as a registry holds it. */
|
|
109
|
-
interface AnyOperation extends Omit<OperationDefinition<unknown, unknown>, "cli" | "input" | "output" | "readOnlyWhen" | "run" | "section"> {
|
|
110
|
-
readOnlyWhen?: (input: never) => boolean;
|
|
111
|
-
cli?: {
|
|
112
|
-
namespace?: string;
|
|
113
|
-
command?: string;
|
|
114
|
-
default?: boolean;
|
|
115
|
-
dispatch?: string;
|
|
116
|
-
positional?: string[];
|
|
117
|
-
format?: (output: never) => string;
|
|
118
|
-
};
|
|
119
|
-
input: StandardSchemaV1;
|
|
120
|
-
output?: StandardSchemaV1;
|
|
121
|
-
run: (input: never, context: OperationContext) => unknown;
|
|
122
|
-
section: string | false | ((input: never) => string | undefined);
|
|
123
|
-
}
|
|
124
|
-
/** The contribution of one plugin: operations, or a module that exports them. */
|
|
125
|
-
interface OperationContributionEntry {
|
|
126
|
-
/** Module the app imports, such as `@vite-hub/content/operations`. */
|
|
127
|
-
module: string;
|
|
128
|
-
/** Named export that holds an operation or an array of operations. Defaults to `default`. */
|
|
129
|
-
export?: string;
|
|
130
|
-
/** Loads the export in the tool process, for a module that the tool cannot resolve by name. */
|
|
131
|
-
load?: () => Promise<unknown>;
|
|
132
|
-
/** `false`: the app already has these operations at runtime. Only tools such as the CLI and `vitehub inspect` read the entry. */
|
|
133
|
-
runtime?: false;
|
|
134
|
-
}
|
|
135
|
-
//#endregion
|
|
136
|
-
export { OperationContributionEntry as n, AnyOperation as t };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { F as WorkspaceDefinition, I as WorkspaceDefinitionInput } from "./types-DeK9GIxy.js";
|
|
2
|
-
//#region src/core/registry.d.ts
|
|
3
|
-
type WorkspaceRegistryModule = {
|
|
4
|
-
default?: WorkspaceDefinitionInput;
|
|
5
|
-
};
|
|
6
|
-
type WorkspaceRegistry = Record<string, () => Promise<WorkspaceRegistryModule>>;
|
|
7
|
-
declare function registerWorkspace(name: string, definition: WorkspaceDefinitionInput): WorkspaceDefinition;
|
|
8
|
-
declare function resolveRegisteredWorkspaceDefinition(name: string, abortSignal?: AbortSignal): Promise<WorkspaceDefinition>;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { registerWorkspace as n, resolveRegisteredWorkspaceDefinition as r, WorkspaceRegistry as t };
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { a as normalizeWorkspaceSources, g as getWorkspaceSourceRequestExecutor, n as createSourceContext, v as workspaceSourceRequestDescriptorPath, y as requestJsonEqual } from "./config-B7dmzDX3.js";
|
|
2
|
-
import { t as workspaceErrorDiagnostics } from "./error-diagnostics-DY5GP47p.js";
|
|
3
|
-
//#region src/sources/request-execution.ts
|
|
4
|
-
const sourceRequestExecutions = /* @__PURE__ */ new WeakMap();
|
|
5
|
-
function isWeakKey(value) {
|
|
6
|
-
return Object(value) === value;
|
|
7
|
-
}
|
|
8
|
-
function attachWorkspaceSourceRequestExecution(target, executor) {
|
|
9
|
-
if (!executor) return target;
|
|
10
|
-
sourceRequestExecutions.set(target, executor);
|
|
11
|
-
return target;
|
|
12
|
-
}
|
|
13
|
-
function getWorkspaceSourceRequestExecution(input) {
|
|
14
|
-
if (!isWeakKey(input)) return void 0;
|
|
15
|
-
return sourceRequestExecutions.get(input);
|
|
16
|
-
}
|
|
17
|
-
function createWorkspaceSourceRequestExecution(definition, options = {}) {
|
|
18
|
-
const sources = normalizeWorkspaceSources(definition.sources).filter((source) => source.requestDescriptor && getWorkspaceSourceRequestExecutor(source.source)).filter((source) => sourceRequestVisible(source, options.selectedWorkspaceScope));
|
|
19
|
-
if (!sources.length) return void 0;
|
|
20
|
-
return { async executeSourceRequest(input) {
|
|
21
|
-
const matches = sources.filter((source) => source.requestDescriptor && workspaceSourceRequestMatches(source.requestDescriptor, input));
|
|
22
|
-
if (matches.length !== 1) throw workspaceErrorDiagnostics.WORKSPACE_R0063({ message: matches.length > 1 ? "[vitehub] Source request is ambiguous; more than one visible Source matches this curl target." : "[vitehub] Source request is not visible in the selected workspace scope or does not match a declared Source target." });
|
|
23
|
-
const source = matches[0];
|
|
24
|
-
const executor = getWorkspaceSourceRequestExecutor(source.source);
|
|
25
|
-
if (!executor) throw workspaceErrorDiagnostics.WORKSPACE_R0064({ message: "[vitehub] Source request executor is unavailable." });
|
|
26
|
-
const contextOptions = {
|
|
27
|
-
...input.signal ? { abortSignal: input.signal } : {},
|
|
28
|
-
selectedWorkspaceScope: options.selectedWorkspaceScope
|
|
29
|
-
};
|
|
30
|
-
return await executor(input, createSourceContext(definition, {
|
|
31
|
-
key: source.key,
|
|
32
|
-
mountPath: source.mountPath
|
|
33
|
-
}, void 0, contextOptions));
|
|
34
|
-
} };
|
|
35
|
-
}
|
|
36
|
-
function sourceRequestVisible(source, scope) {
|
|
37
|
-
if (!scope || scope.all) return true;
|
|
38
|
-
const descriptorPath = workspaceSourceRequestDescriptorPath(source.key);
|
|
39
|
-
return Boolean(scope.paths?.some((path) => pathIntersects(path, descriptorPath)));
|
|
40
|
-
}
|
|
41
|
-
function pathContains(container, path) {
|
|
42
|
-
if (!container || !path) return container === path;
|
|
43
|
-
return path === container || path.startsWith(`${container}/`);
|
|
44
|
-
}
|
|
45
|
-
function pathIntersects(left, right) {
|
|
46
|
-
return pathContains(left, right) || pathContains(right, left);
|
|
47
|
-
}
|
|
48
|
-
function workspaceSourceRequestMatches(descriptor, input) {
|
|
49
|
-
return descriptor.method === input.method && sameRequestTarget(descriptor.url, input.url) && requestShapeMatches(descriptor, input);
|
|
50
|
-
}
|
|
51
|
-
function sameRequestTarget(left, right) {
|
|
52
|
-
const leftUrl = new URL(left);
|
|
53
|
-
const rightUrl = new URL(right);
|
|
54
|
-
return leftUrl.origin === rightUrl.origin && leftUrl.pathname === rightUrl.pathname;
|
|
55
|
-
}
|
|
56
|
-
function requestShapeMatches(descriptor, input) {
|
|
57
|
-
const request = descriptor.request;
|
|
58
|
-
if (request?.querySchema) return bodyShapeMatches(request, input);
|
|
59
|
-
if (!requestJsonEqual(queryFromUrl(new URL(input.url)) || {}, serializedQuery(request?.query) || {})) return false;
|
|
60
|
-
return bodyShapeMatches(request, input);
|
|
61
|
-
}
|
|
62
|
-
function bodyShapeMatches(request, input) {
|
|
63
|
-
if (request?.bodySchema) return true;
|
|
64
|
-
if (request && "body" in request) return requestJsonEqual(input.body, request.body);
|
|
65
|
-
return input.body === void 0;
|
|
66
|
-
}
|
|
67
|
-
function queryFromUrl(url) {
|
|
68
|
-
const query = Object.fromEntries([...new Set(url.searchParams.keys())].map((key) => {
|
|
69
|
-
const values = url.searchParams.getAll(key);
|
|
70
|
-
return [key, values.length > 1 ? values : values[0]];
|
|
71
|
-
}));
|
|
72
|
-
return Object.keys(query).length ? query : void 0;
|
|
73
|
-
}
|
|
74
|
-
function serializedQuery(query) {
|
|
75
|
-
if (!query) return void 0;
|
|
76
|
-
const params = new URLSearchParams();
|
|
77
|
-
for (const [key, value] of Object.entries(query)) {
|
|
78
|
-
const values = Array.isArray(value) ? value : [value];
|
|
79
|
-
for (const item of values) params.append(key, String(item));
|
|
80
|
-
}
|
|
81
|
-
return queryFromUrl(new URL(`https://vitehub.local/?${params}`));
|
|
82
|
-
}
|
|
83
|
-
//#endregion
|
|
84
|
-
export { workspaceSourceRequestMatches as i, createWorkspaceSourceRequestExecution as n, getWorkspaceSourceRequestExecution as r, attachWorkspaceSourceRequestExecution as t };
|