olkcli 0.9.3
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/bin/olk.js +35 -0
- package/package.json +39 -0
package/bin/olk.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
// Launcher for the `olk` CLI distributed via npm. The actual binary ships in a
|
|
5
|
+
// per-platform optional dependency (olk-<platform>-<arch>); npm installs only
|
|
6
|
+
// the one matching this host (via the package's "os"/"cpu" fields). We resolve
|
|
7
|
+
// that binary and exec it, forwarding args, stdio, and exit code.
|
|
8
|
+
|
|
9
|
+
const { execFileSync } = require("child_process");
|
|
10
|
+
|
|
11
|
+
function binaryPath() {
|
|
12
|
+
const pkg = `olk-${process.platform}-${process.arch}`;
|
|
13
|
+
const exe = process.platform === "win32" ? "olk.exe" : "olk";
|
|
14
|
+
try {
|
|
15
|
+
return require.resolve(`${pkg}/bin/${exe}`);
|
|
16
|
+
} catch (_) {
|
|
17
|
+
throw new Error(
|
|
18
|
+
`olk: no prebuilt binary for ${process.platform}-${process.arch}. ` +
|
|
19
|
+
`The optional dependency "${pkg}" is missing — reinstall without ` +
|
|
20
|
+
`--no-optional, or build from source (https://github.com/rlrghb/olkcli).`
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
try {
|
|
26
|
+
execFileSync(binaryPath(), process.argv.slice(2), { stdio: "inherit" });
|
|
27
|
+
} catch (err) {
|
|
28
|
+
if (typeof err.status === "number") {
|
|
29
|
+
process.exit(err.status);
|
|
30
|
+
}
|
|
31
|
+
if (err.message) {
|
|
32
|
+
process.stderr.write(err.message + "\n");
|
|
33
|
+
}
|
|
34
|
+
process.exit(1);
|
|
35
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "olkcli",
|
|
3
|
+
"version": "0.9.3",
|
|
4
|
+
"mcpName": "io.github.rlrghb/olk",
|
|
5
|
+
"description": "CLI for Microsoft Outlook and OneDrive via the Microsoft Graph API (mail, calendar, contacts, tasks, files) — and an MCP server for AI agents (olk mcp).",
|
|
6
|
+
"bin": {
|
|
7
|
+
"olk": "bin/olk.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"bin/olk.js"
|
|
11
|
+
],
|
|
12
|
+
"optionalDependencies": {
|
|
13
|
+
"olk-darwin-arm64": "0.9.3",
|
|
14
|
+
"olk-darwin-x64": "0.9.3",
|
|
15
|
+
"olk-linux-arm64": "0.9.3",
|
|
16
|
+
"olk-linux-x64": "0.9.3",
|
|
17
|
+
"olk-win32-arm64": "0.9.3",
|
|
18
|
+
"olk-win32-x64": "0.9.3"
|
|
19
|
+
},
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "git+https://github.com/rlrghb/olkcli.git"
|
|
23
|
+
},
|
|
24
|
+
"homepage": "https://github.com/rlrghb/olkcli",
|
|
25
|
+
"bugs": "https://github.com/rlrghb/olkcli/issues",
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"keywords": [
|
|
28
|
+
"outlook",
|
|
29
|
+
"microsoft-graph",
|
|
30
|
+
"onedrive",
|
|
31
|
+
"cli",
|
|
32
|
+
"mcp",
|
|
33
|
+
"email",
|
|
34
|
+
"calendar"
|
|
35
|
+
],
|
|
36
|
+
"engines": {
|
|
37
|
+
"node": ">=18"
|
|
38
|
+
}
|
|
39
|
+
}
|