@aylith/inspekt-cli 0.1.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/chunk-HD6ANKAP.js +20 -0
- package/dist/chunk-HD6ANKAP.js.map +1 -0
- package/dist/cli.cjs +451 -0
- package/dist/cli.cjs.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +419 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.cjs +55 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/setup/detect.d.ts +11 -0
- package/dist/setup/detect.d.ts.map +1 -0
- package/dist/setup/index.d.ts +23 -0
- package/dist/setup/index.d.ts.map +1 -0
- package/dist/setup/token.d.ts +13 -0
- package/dist/setup/token.d.ts.map +1 -0
- package/dist/setup/types.d.ts +17 -0
- package/dist/setup/types.d.ts.map +1 -0
- package/dist/setup/writers/antigravity.d.ts +6 -0
- package/dist/setup/writers/antigravity.d.ts.map +1 -0
- package/dist/setup/writers/claude-code.d.ts +8 -0
- package/dist/setup/writers/claude-code.d.ts.map +1 -0
- package/dist/setup/writers/codex.d.ts +6 -0
- package/dist/setup/writers/codex.d.ts.map +1 -0
- package/dist/setup/writers/cursor.d.ts +6 -0
- package/dist/setup/writers/cursor.d.ts.map +1 -0
- package/dist/setup/writers/gemini-cli.d.ts +6 -0
- package/dist/setup/writers/gemini-cli.d.ts.map +1 -0
- package/dist/setup/writers/json-writer.d.ts +18 -0
- package/dist/setup/writers/json-writer.d.ts.map +1 -0
- package/dist/setup/writers/mcp-entry.d.ts +8 -0
- package/dist/setup/writers/mcp-entry.d.ts.map +1 -0
- package/package.json +46 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type AgentId = 'claude-code' | 'cursor' | 'codex' | 'gemini-cli' | 'antigravity';
|
|
2
|
+
export interface DetectedAgent {
|
|
3
|
+
id: AgentId;
|
|
4
|
+
label: string;
|
|
5
|
+
configPath: string;
|
|
6
|
+
/** True when the config file already exists. */
|
|
7
|
+
installed: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface SetupContext {
|
|
10
|
+
/** Home directory override (used by tests). */
|
|
11
|
+
home: string;
|
|
12
|
+
/** Token used for X-Inspekt-Token (generated if absent). */
|
|
13
|
+
token: string;
|
|
14
|
+
/** Daemon address written into each agent's MCP entry. */
|
|
15
|
+
daemonUrl: string;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/setup/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG,aAAa,GAAG,QAAQ,GAAG,OAAO,GAAG,YAAY,GAAG,aAAa,CAAC;AAExF,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,OAAO,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,+CAA+C;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,4DAA4D;IAC5D,KAAK,EAAE,MAAM,CAAC;IACd,0DAA0D;IAC1D,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"antigravity.d.ts","sourceRoot":"","sources":["../../../src/setup/writers/antigravity.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,wBAAsB,gBAAgB,CACpC,GAAG,EAAE,YAAY,EACjB,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC,CAOjC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { InspektConfig } from '../token.js';
|
|
2
|
+
import type { SetupContext } from '../types.js';
|
|
3
|
+
export interface ClaudeCodeWriteResult {
|
|
4
|
+
configPath: string;
|
|
5
|
+
skillPath: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function writeClaudeCode(ctx: SetupContext, config: InspektConfig): Promise<ClaudeCodeWriteResult>;
|
|
8
|
+
//# sourceMappingURL=claude-code.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claude-code.d.ts","sourceRoot":"","sources":["../../../src/setup/writers/claude-code.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAyChD,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAsB,eAAe,CACnC,GAAG,EAAE,YAAY,EACjB,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC,qBAAqB,CAAC,CAiBhC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codex.d.ts","sourceRoot":"","sources":["../../../src/setup/writers/codex.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAqBhD,wBAAsB,UAAU,CAC9B,GAAG,EAAE,YAAY,EACjB,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC,CAqBjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cursor.d.ts","sourceRoot":"","sources":["../../../src/setup/writers/cursor.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,wBAAsB,WAAW,CAC/B,GAAG,EAAE,YAAY,EACjB,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC,CAOjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gemini-cli.d.ts","sourceRoot":"","sources":["../../../src/setup/writers/gemini-cli.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,wBAAsB,cAAc,CAClC,GAAG,EAAE,YAAY,EACjB,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC,CAOjC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { McpEntry } from './mcp-entry.js';
|
|
2
|
+
export interface JsonMergeOptions {
|
|
3
|
+
/**
|
|
4
|
+
* Path inside the JSON config where the mcpServers map lives. Empty array
|
|
5
|
+
* means the root has `mcpServers` directly; otherwise we walk into the
|
|
6
|
+
* given keys, creating objects as needed.
|
|
7
|
+
*/
|
|
8
|
+
mcpServersPath: string[];
|
|
9
|
+
/** Server name to use inside mcpServers (default 'inspekt'). */
|
|
10
|
+
serverName?: string;
|
|
11
|
+
/** Indent for re-serialization (default 2 spaces). */
|
|
12
|
+
indent?: number;
|
|
13
|
+
}
|
|
14
|
+
export declare function writeMcpEntryToJsonConfig(configPath: string, entry: McpEntry, options: JsonMergeOptions): Promise<{
|
|
15
|
+
written: boolean;
|
|
16
|
+
previousEntry: McpEntry | null;
|
|
17
|
+
}>;
|
|
18
|
+
//# sourceMappingURL=json-writer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json-writer.d.ts","sourceRoot":"","sources":["../../../src/setup/writers/json-writer.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE/C,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,gEAAgE;IAChE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sDAAsD;IACtD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAsB,yBAAyB,CAC7C,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,QAAQ,EACf,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,aAAa,EAAE,QAAQ,GAAG,IAAI,CAAA;CAAE,CAAC,CA4C/D"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { InspektConfig } from '../token.js';
|
|
2
|
+
export interface McpEntry {
|
|
3
|
+
command: string;
|
|
4
|
+
args: string[];
|
|
5
|
+
env: Record<string, string>;
|
|
6
|
+
}
|
|
7
|
+
export declare function buildMcpEntry(config: InspektConfig): McpEntry;
|
|
8
|
+
//# sourceMappingURL=mcp-entry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-entry.d.ts","sourceRoot":"","sources":["../../../src/setup/writers/mcp-entry.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC7B;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,aAAa,GAAG,QAAQ,CAS7D"}
|
package/package.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@aylith/inspekt-cli",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Inspekt CLI — open files in IDE from terminal",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"bin": {
|
|
10
|
+
"inspekt": "./dist/cli.js"
|
|
11
|
+
},
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": "./dist/index.js",
|
|
15
|
+
"require": "./dist/index.cjs",
|
|
16
|
+
"types": "./dist/index.d.ts"
|
|
17
|
+
},
|
|
18
|
+
"./cli": "./dist/cli.js"
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist",
|
|
22
|
+
"!dist/**/__tests__/**",
|
|
23
|
+
"!dist/**/*.test.d.ts",
|
|
24
|
+
"!dist/**/*.test.d.ts.map"
|
|
25
|
+
],
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "tsup && tsc -p tsconfig.json --noEmit false --declaration --emitDeclarationOnly --outDir dist --rootDir src",
|
|
28
|
+
"dev": "tsup --watch",
|
|
29
|
+
"test": "vitest run --passWithNoTests",
|
|
30
|
+
"typecheck": "tsc --noEmit",
|
|
31
|
+
"clean": "rm -rf dist"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"launch-editor": "^2.14.1"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"tsup": "^8.5.1",
|
|
38
|
+
"typescript": "^7.0.2",
|
|
39
|
+
"vitest": "^4.1.10",
|
|
40
|
+
"@types/node": "^26.1.1"
|
|
41
|
+
},
|
|
42
|
+
"license": "MIT",
|
|
43
|
+
"publishConfig": {
|
|
44
|
+
"access": "public"
|
|
45
|
+
}
|
|
46
|
+
}
|