lhremote 0.0.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/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +12 -0
- package/dist/cli.js.map +1 -0
- package/dist/cli.test.d.ts +2 -0
- package/dist/cli.test.d.ts.map +1 -0
- package/dist/cli.test.js +20 -0
- package/dist/cli.test.js.map +1 -0
- package/package.json +47 -0
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":""}
|
package/dist/cli.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createProgram } from "@lhremote/cli";
|
|
3
|
+
import { runStdioServer } from "@lhremote/mcp/stdio";
|
|
4
|
+
const program = createProgram();
|
|
5
|
+
program
|
|
6
|
+
.command("mcp")
|
|
7
|
+
.description("Start MCP server on stdio (for Claude Desktop, Cursor, etc.)")
|
|
8
|
+
.action(async () => {
|
|
9
|
+
await runStdioServer();
|
|
10
|
+
});
|
|
11
|
+
program.parse();
|
|
12
|
+
//# sourceMappingURL=cli.js.map
|
package/dist/cli.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,MAAM,OAAO,GAAG,aAAa,EAAE,CAAC;AAEhC,OAAO;KACJ,OAAO,CAAC,KAAK,CAAC;KACd,WAAW,CAAC,8DAA8D,CAAC;KAC3E,MAAM,CAAC,KAAK,IAAI,EAAE;IACjB,MAAM,cAAc,EAAE,CAAC;AACzB,CAAC,CAAC,CAAC;AAEL,OAAO,CAAC,KAAK,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.test.d.ts","sourceRoot":"","sources":["../src/cli.test.ts"],"names":[],"mappings":""}
|
package/dist/cli.test.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { describe, expect, it } from "vitest";
|
|
2
|
+
import { createProgram } from "@lhremote/cli";
|
|
3
|
+
describe("lhremote meta-package CLI", () => {
|
|
4
|
+
it("composes @lhremote/cli program with mcp subcommand", async () => {
|
|
5
|
+
const { createProgram: createBase } = await import("@lhremote/cli");
|
|
6
|
+
const program = createBase();
|
|
7
|
+
// Simulate what cli.ts does: add the mcp command
|
|
8
|
+
program
|
|
9
|
+
.command("mcp")
|
|
10
|
+
.description("Start MCP server on stdio (for Claude Desktop, Cursor, etc.)");
|
|
11
|
+
const commandNames = program.commands.map((c) => c.name());
|
|
12
|
+
expect(commandNames).toContain("mcp");
|
|
13
|
+
});
|
|
14
|
+
it("mcp command does not conflict with existing @lhremote/cli commands", () => {
|
|
15
|
+
const program = createProgram();
|
|
16
|
+
const baseNames = program.commands.map((c) => c.name());
|
|
17
|
+
expect(baseNames).not.toContain("mcp");
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
//# sourceMappingURL=cli.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.test.js","sourceRoot":"","sources":["../src/cli.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAE9C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,QAAQ,CAAC,2BAA2B,EAAE,GAAG,EAAE;IACzC,EAAE,CAAC,oDAAoD,EAAE,KAAK,IAAI,EAAE;QAClE,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,CAAC;QACpE,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;QAE7B,iDAAiD;QACjD,OAAO;aACJ,OAAO,CAAC,KAAK,CAAC;aACd,WAAW,CACV,8DAA8D,CAC/D,CAAC;QAEJ,MAAM,YAAY,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;QAC3D,MAAM,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACxC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,oEAAoE,EAAE,GAAG,EAAE;QAC5E,MAAM,OAAO,GAAG,aAAa,EAAE,CAAC;QAChC,MAAM,SAAS,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;QAExD,MAAM,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACzC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "lhremote",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "LinkedHelper automation toolkit — CLI & MCP server",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": ">=22"
|
|
8
|
+
},
|
|
9
|
+
"license": "AGPL-3.0-only",
|
|
10
|
+
"author": "Alexey Pelykh (https://github.com/alexey-pelykh)",
|
|
11
|
+
"homepage": "https://github.com/alexey-pelykh/lhremote",
|
|
12
|
+
"bugs": "https://github.com/alexey-pelykh/lhremote/issues",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "https://github.com/alexey-pelykh/lhremote.git",
|
|
16
|
+
"directory": "packages/lhremote"
|
|
17
|
+
},
|
|
18
|
+
"bin": {
|
|
19
|
+
"lhremote": "./dist/cli.js"
|
|
20
|
+
},
|
|
21
|
+
"keywords": [
|
|
22
|
+
"linkedhelper",
|
|
23
|
+
"linkedin",
|
|
24
|
+
"automation",
|
|
25
|
+
"mcp",
|
|
26
|
+
"cli"
|
|
27
|
+
],
|
|
28
|
+
"files": [
|
|
29
|
+
"dist"
|
|
30
|
+
],
|
|
31
|
+
"scripts": {
|
|
32
|
+
"build": "tsc",
|
|
33
|
+
"test": "vitest run",
|
|
34
|
+
"lint": "eslint src/",
|
|
35
|
+
"dev": "tsc --watch"
|
|
36
|
+
},
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@lhremote/cli": "workspace:^",
|
|
39
|
+
"@lhremote/mcp": "workspace:^"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@types/node": "catalog:",
|
|
43
|
+
"eslint": "catalog:",
|
|
44
|
+
"typescript": "catalog:",
|
|
45
|
+
"vitest": "catalog:"
|
|
46
|
+
}
|
|
47
|
+
}
|