@apicircle/core 1.0.0 → 1.0.2
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/LICENSE +110 -110
- package/README.md +181 -12
- package/dist/chunk-SGI6KGQ7.js +129 -0
- package/dist/chunk-SGI6KGQ7.js.map +1 -0
- package/dist/index.cjs +7 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/workspace/file-backed.js +5 -122
- package/dist/workspace/file-backed.js.map +1 -1
- package/dist/workspace/registry.cjs +301 -0
- package/dist/workspace/registry.cjs.map +1 -0
- package/dist/workspace/registry.d.cts +85 -0
- package/dist/workspace/registry.d.ts +85 -0
- package/dist/workspace/registry.js +162 -0
- package/dist/workspace/registry.js.map +1 -0
- package/package.json +63 -43
package/dist/index.d.cts
CHANGED
|
@@ -41,7 +41,7 @@ interface HeaderEntry {
|
|
|
41
41
|
* HTTP layer) the restriction does NOT apply — the header can
|
|
42
42
|
* still be set manually.
|
|
43
43
|
*
|
|
44
|
-
* `app` — Automatically injected by
|
|
44
|
+
* `app` — Automatically injected by API Circle Studio at send-time (see
|
|
45
45
|
* autoHeaders.ts). Users can override these in the Headers tab
|
|
46
46
|
* and their value will take precedence.
|
|
47
47
|
*
|
|
@@ -299,7 +299,7 @@ interface BuildRequestOptions {
|
|
|
299
299
|
declare function buildRequest(req: Request, opts?: BuildRequestOptions): Promise<BuiltRequest>;
|
|
300
300
|
|
|
301
301
|
/**
|
|
302
|
-
* Detect whether the host is the
|
|
302
|
+
* Detect whether the host is the API Circle Studio Desktop shell.
|
|
303
303
|
*
|
|
304
304
|
* The Electron preload script attaches a bridge object on `globalThis.apicircleDesktop`
|
|
305
305
|
* (see `apps/desktop/src/main/preload.ts`). The web app exposes nothing, so a
|
package/dist/index.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ interface HeaderEntry {
|
|
|
41
41
|
* HTTP layer) the restriction does NOT apply — the header can
|
|
42
42
|
* still be set manually.
|
|
43
43
|
*
|
|
44
|
-
* `app` — Automatically injected by
|
|
44
|
+
* `app` — Automatically injected by API Circle Studio at send-time (see
|
|
45
45
|
* autoHeaders.ts). Users can override these in the Headers tab
|
|
46
46
|
* and their value will take precedence.
|
|
47
47
|
*
|
|
@@ -299,7 +299,7 @@ interface BuildRequestOptions {
|
|
|
299
299
|
declare function buildRequest(req: Request, opts?: BuildRequestOptions): Promise<BuiltRequest>;
|
|
300
300
|
|
|
301
301
|
/**
|
|
302
|
-
* Detect whether the host is the
|
|
302
|
+
* Detect whether the host is the API Circle Studio Desktop shell.
|
|
303
303
|
*
|
|
304
304
|
* The Electron preload script attaches a bridge object on `globalThis.apicircleDesktop`
|
|
305
305
|
* (see `apps/desktop/src/main/preload.ts`). The web app exposes nothing, so a
|
package/dist/index.js
CHANGED
|
@@ -209,7 +209,11 @@ var HTTP_HEADERS_MAP = [
|
|
|
209
209
|
{
|
|
210
210
|
name: "User-Agent",
|
|
211
211
|
description: "Client application identifier",
|
|
212
|
-
values: [
|
|
212
|
+
values: [
|
|
213
|
+
"API Circle Studio/1.0.0",
|
|
214
|
+
"Mozilla/5.0 (compatible; API Circle Studio)",
|
|
215
|
+
"curl/8.0.0"
|
|
216
|
+
],
|
|
213
217
|
reserved: "browser",
|
|
214
218
|
reservedNote: "Forbidden in web fetch; settable in Desktop (native) requests"
|
|
215
219
|
},
|
|
@@ -221,7 +225,7 @@ var HTTP_HEADERS_MAP = [
|
|
|
221
225
|
{
|
|
222
226
|
name: "X-Client-Name",
|
|
223
227
|
description: "Auto-fed: client application name",
|
|
224
|
-
values: ["
|
|
228
|
+
values: ["API Circle Studio"],
|
|
225
229
|
reserved: "app",
|
|
226
230
|
reservedNote: "Injected automatically; your value overrides it"
|
|
227
231
|
},
|
|
@@ -2124,7 +2128,7 @@ function isDesktop() {
|
|
|
2124
2128
|
|
|
2125
2129
|
// src/request/autoHeaders.ts
|
|
2126
2130
|
var APP_VERSION = "1.0.0";
|
|
2127
|
-
var APP_NAME = "
|
|
2131
|
+
var APP_NAME = "API Circle Studio";
|
|
2128
2132
|
var DESKTOP_APP_ORIGIN = "http://app.studio.apicircle.dev";
|
|
2129
2133
|
function generateSpanId() {
|
|
2130
2134
|
const bytes = new Uint8Array(8);
|