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,81 +0,0 @@
1
- // src/browser/chrome.ts
2
- import { homedir, platform } from "os";
3
- import { join } from "path";
4
- import { existsSync, readFileSync } from "fs";
5
- function detectChromePaths() {
6
- const os = platform();
7
- if (os === "darwin") {
8
- const executable2 = "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome";
9
- return {
10
- executable: existsSync(executable2) ? executable2 : null,
11
- defaultUserDataDir: join(
12
- homedir(),
13
- "Library",
14
- "Application Support",
15
- "Google",
16
- "Chrome"
17
- )
18
- };
19
- }
20
- if (os === "win32") {
21
- const executable2 = join(
22
- process.env.PROGRAMFILES || "C:\\Program Files",
23
- "Google",
24
- "Chrome",
25
- "Application",
26
- "chrome.exe"
27
- );
28
- return {
29
- executable: existsSync(executable2) ? executable2 : null,
30
- defaultUserDataDir: join(
31
- process.env.LOCALAPPDATA || join(homedir(), "AppData", "Local"),
32
- "Google",
33
- "Chrome",
34
- "User Data"
35
- )
36
- };
37
- }
38
- const executable = "/usr/bin/google-chrome";
39
- return {
40
- executable: existsSync(executable) ? executable : null,
41
- defaultUserDataDir: join(homedir(), ".config", "google-chrome")
42
- };
43
- }
44
- function expandHome(p) {
45
- if (p.startsWith("~/") || p === "~") {
46
- return join(homedir(), p.slice(1));
47
- }
48
- return p;
49
- }
50
- function listLocalChromeProfiles(userDataDir = detectChromePaths().defaultUserDataDir) {
51
- const resolvedUserDataDir = expandHome(userDataDir);
52
- const localStatePath = join(resolvedUserDataDir, "Local State");
53
- if (!existsSync(localStatePath)) {
54
- return [];
55
- }
56
- try {
57
- const raw = JSON.parse(readFileSync(localStatePath, "utf-8"));
58
- const infoCache = raw && typeof raw === "object" && !Array.isArray(raw) && raw.profile && typeof raw.profile === "object" && !Array.isArray(raw.profile) ? raw.profile.info_cache : void 0;
59
- if (!infoCache || typeof infoCache !== "object") {
60
- return [];
61
- }
62
- return Object.entries(infoCache).map(([directory, info]) => {
63
- const record = info && typeof info === "object" && !Array.isArray(info) ? info : {};
64
- const name = typeof record.name === "string" && record.name.trim() ? record.name.trim() : directory;
65
- return {
66
- directory,
67
- name
68
- };
69
- }).filter((profile) => profile.directory.trim().length > 0).sort(
70
- (left, right) => left.directory.localeCompare(right.directory)
71
- );
72
- } catch {
73
- return [];
74
- }
75
- }
76
-
77
- export {
78
- detectChromePaths,
79
- expandHome,
80
- listLocalChromeProfiles
81
- };