opensteer 0.6.13 → 0.7.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 +256 -184
- package/dist/chunk-PQYA6IX2.js +32571 -0
- package/dist/chunk-PQYA6IX2.js.map +1 -0
- package/dist/cli/bin.cjs +38201 -0
- package/dist/cli/bin.cjs.map +1 -0
- package/dist/cli/bin.d.cts +1 -0
- package/dist/cli/bin.d.ts +1 -0
- package/dist/cli/bin.js +5612 -0
- package/dist/cli/bin.js.map +1 -0
- package/dist/index.cjs +31309 -16009
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +4440 -670
- package/dist/index.d.ts +4440 -670
- package/dist/index.js +438 -378
- package/dist/index.js.map +1 -0
- package/package.json +56 -62
- package/skills/README.md +21 -20
- package/skills/opensteer/SKILL.md +60 -194
- package/skills/opensteer/references/cli-reference.md +69 -113
- package/skills/opensteer/references/request-workflow.md +81 -0
- package/skills/opensteer/references/sdk-reference.md +101 -154
- package/CHANGELOG.md +0 -75
- package/bin/opensteer.mjs +0 -1423
- package/dist/browser-profile-client-CGXc0-P9.d.cts +0 -228
- package/dist/browser-profile-client-DHLzMf-K.d.ts +0 -228
- package/dist/chunk-2ES46WCO.js +0 -1437
- package/dist/chunk-3H5RRIMZ.js +0 -69
- package/dist/chunk-AVXUMEDG.js +0 -62
- package/dist/chunk-DN3GI5CH.js +0 -57
- package/dist/chunk-FAHE5DB2.js +0 -190
- package/dist/chunk-HBTSQ2V4.js +0 -15259
- package/dist/chunk-K5CL76MG.js +0 -81
- package/dist/chunk-U724TBY6.js +0 -1262
- package/dist/chunk-ZRCFF546.js +0 -77
- package/dist/cli/auth.cjs +0 -2022
- package/dist/cli/auth.d.cts +0 -114
- package/dist/cli/auth.d.ts +0 -114
- package/dist/cli/auth.js +0 -15
- package/dist/cli/local-profile.cjs +0 -197
- package/dist/cli/local-profile.d.cts +0 -18
- package/dist/cli/local-profile.d.ts +0 -18
- package/dist/cli/local-profile.js +0 -97
- package/dist/cli/profile.cjs +0 -18548
- package/dist/cli/profile.d.cts +0 -79
- package/dist/cli/profile.d.ts +0 -79
- package/dist/cli/profile.js +0 -1328
- package/dist/cli/server.cjs +0 -17232
- package/dist/cli/server.d.cts +0 -2
- package/dist/cli/server.d.ts +0 -2
- package/dist/cli/server.js +0 -977
- package/dist/cli/skills-installer.cjs +0 -230
- package/dist/cli/skills-installer.d.cts +0 -28
- package/dist/cli/skills-installer.d.ts +0 -28
- package/dist/cli/skills-installer.js +0 -201
- package/dist/extractor-4Q3TFZJB.js +0 -8
- package/dist/resolver-MGN64KCP.js +0 -7
- package/dist/types-Cr10igF3.d.cts +0 -345
- package/dist/types-Cr10igF3.d.ts +0 -345
- package/skills/electron/SKILL.md +0 -87
- package/skills/electron/references/opensteer-electron-recipes.md +0 -88
- package/skills/electron/references/opensteer-electron-workflow.md +0 -85
- package/skills/opensteer/references/examples.md +0 -118
package/dist/chunk-ZRCFF546.js
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
cloudAuthHeaders,
|
|
3
|
-
normalizeCloudBaseUrl,
|
|
4
|
-
parseCloudHttpError
|
|
5
|
-
} from "./chunk-2ES46WCO.js";
|
|
6
|
-
|
|
7
|
-
// src/cloud/browser-profile-client.ts
|
|
8
|
-
var BrowserProfileClient = class {
|
|
9
|
-
baseUrl;
|
|
10
|
-
key;
|
|
11
|
-
authScheme;
|
|
12
|
-
constructor(baseUrl, key, authScheme = "api-key") {
|
|
13
|
-
this.baseUrl = normalizeCloudBaseUrl(baseUrl);
|
|
14
|
-
this.key = key;
|
|
15
|
-
this.authScheme = authScheme;
|
|
16
|
-
}
|
|
17
|
-
async list(request = {}) {
|
|
18
|
-
const query = new URLSearchParams();
|
|
19
|
-
if (request.cursor) {
|
|
20
|
-
query.set("cursor", request.cursor);
|
|
21
|
-
}
|
|
22
|
-
if (typeof request.limit === "number" && Number.isFinite(request.limit)) {
|
|
23
|
-
query.set("limit", String(Math.max(1, Math.trunc(request.limit))));
|
|
24
|
-
}
|
|
25
|
-
if (request.status) {
|
|
26
|
-
query.set("status", request.status);
|
|
27
|
-
}
|
|
28
|
-
const querySuffix = query.toString() ? `?${query.toString()}` : "";
|
|
29
|
-
const response = await fetch(
|
|
30
|
-
`${this.baseUrl}/browser-profiles${querySuffix}`,
|
|
31
|
-
{
|
|
32
|
-
method: "GET",
|
|
33
|
-
headers: {
|
|
34
|
-
...cloudAuthHeaders(this.key, this.authScheme)
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
);
|
|
38
|
-
if (!response.ok) {
|
|
39
|
-
throw await parseCloudHttpError(response);
|
|
40
|
-
}
|
|
41
|
-
return await response.json();
|
|
42
|
-
}
|
|
43
|
-
async get(profileId) {
|
|
44
|
-
const normalized = profileId.trim();
|
|
45
|
-
const response = await fetch(
|
|
46
|
-
`${this.baseUrl}/browser-profiles/${encodeURIComponent(normalized)}`,
|
|
47
|
-
{
|
|
48
|
-
method: "GET",
|
|
49
|
-
headers: {
|
|
50
|
-
...cloudAuthHeaders(this.key, this.authScheme)
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
);
|
|
54
|
-
if (!response.ok) {
|
|
55
|
-
throw await parseCloudHttpError(response);
|
|
56
|
-
}
|
|
57
|
-
return await response.json();
|
|
58
|
-
}
|
|
59
|
-
async create(request) {
|
|
60
|
-
const response = await fetch(`${this.baseUrl}/browser-profiles`, {
|
|
61
|
-
method: "POST",
|
|
62
|
-
headers: {
|
|
63
|
-
"content-type": "application/json",
|
|
64
|
-
...cloudAuthHeaders(this.key, this.authScheme)
|
|
65
|
-
},
|
|
66
|
-
body: JSON.stringify(request)
|
|
67
|
-
});
|
|
68
|
-
if (!response.ok) {
|
|
69
|
-
throw await parseCloudHttpError(response);
|
|
70
|
-
}
|
|
71
|
-
return await response.json();
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
export {
|
|
76
|
-
BrowserProfileClient
|
|
77
|
-
};
|