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.
Files changed (62) hide show
  1. package/README.md +256 -184
  2. package/dist/chunk-PQYA6IX2.js +32571 -0
  3. package/dist/chunk-PQYA6IX2.js.map +1 -0
  4. package/dist/cli/bin.cjs +38201 -0
  5. package/dist/cli/bin.cjs.map +1 -0
  6. package/dist/cli/bin.d.cts +1 -0
  7. package/dist/cli/bin.d.ts +1 -0
  8. package/dist/cli/bin.js +5612 -0
  9. package/dist/cli/bin.js.map +1 -0
  10. package/dist/index.cjs +31309 -16009
  11. package/dist/index.cjs.map +1 -0
  12. package/dist/index.d.cts +4440 -670
  13. package/dist/index.d.ts +4440 -670
  14. package/dist/index.js +438 -378
  15. package/dist/index.js.map +1 -0
  16. package/package.json +56 -62
  17. package/skills/README.md +21 -20
  18. package/skills/opensteer/SKILL.md +60 -194
  19. package/skills/opensteer/references/cli-reference.md +69 -113
  20. package/skills/opensteer/references/request-workflow.md +81 -0
  21. package/skills/opensteer/references/sdk-reference.md +101 -154
  22. package/CHANGELOG.md +0 -75
  23. package/bin/opensteer.mjs +0 -1423
  24. package/dist/browser-profile-client-CGXc0-P9.d.cts +0 -228
  25. package/dist/browser-profile-client-DHLzMf-K.d.ts +0 -228
  26. package/dist/chunk-2ES46WCO.js +0 -1437
  27. package/dist/chunk-3H5RRIMZ.js +0 -69
  28. package/dist/chunk-AVXUMEDG.js +0 -62
  29. package/dist/chunk-DN3GI5CH.js +0 -57
  30. package/dist/chunk-FAHE5DB2.js +0 -190
  31. package/dist/chunk-HBTSQ2V4.js +0 -15259
  32. package/dist/chunk-K5CL76MG.js +0 -81
  33. package/dist/chunk-U724TBY6.js +0 -1262
  34. package/dist/chunk-ZRCFF546.js +0 -77
  35. package/dist/cli/auth.cjs +0 -2022
  36. package/dist/cli/auth.d.cts +0 -114
  37. package/dist/cli/auth.d.ts +0 -114
  38. package/dist/cli/auth.js +0 -15
  39. package/dist/cli/local-profile.cjs +0 -197
  40. package/dist/cli/local-profile.d.cts +0 -18
  41. package/dist/cli/local-profile.d.ts +0 -18
  42. package/dist/cli/local-profile.js +0 -97
  43. package/dist/cli/profile.cjs +0 -18548
  44. package/dist/cli/profile.d.cts +0 -79
  45. package/dist/cli/profile.d.ts +0 -79
  46. package/dist/cli/profile.js +0 -1328
  47. package/dist/cli/server.cjs +0 -17232
  48. package/dist/cli/server.d.cts +0 -2
  49. package/dist/cli/server.d.ts +0 -2
  50. package/dist/cli/server.js +0 -977
  51. package/dist/cli/skills-installer.cjs +0 -230
  52. package/dist/cli/skills-installer.d.cts +0 -28
  53. package/dist/cli/skills-installer.d.ts +0 -28
  54. package/dist/cli/skills-installer.js +0 -201
  55. package/dist/extractor-4Q3TFZJB.js +0 -8
  56. package/dist/resolver-MGN64KCP.js +0 -7
  57. package/dist/types-Cr10igF3.d.cts +0 -345
  58. package/dist/types-Cr10igF3.d.ts +0 -345
  59. package/skills/electron/SKILL.md +0 -87
  60. package/skills/electron/references/opensteer-electron-recipes.md +0 -88
  61. package/skills/electron/references/opensteer-electron-workflow.md +0 -85
  62. package/skills/opensteer/references/examples.md +0 -118
@@ -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
- };