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-K5CL76MG.js
DELETED
|
@@ -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
|
-
};
|