@lnar/cli 0.0.1-dev.e586780 → 0.0.1-dev.f1de48c

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.
@@ -1,20 +0,0 @@
1
- import type { AgentSnapshot } from '../types.js';
2
- /**
3
- * ChatGPT Desktop / ChatGPT connectors のスキャナー (placeholder)。
4
- *
5
- * 現状の制限:
6
- * ChatGPT Desktop (macOS) の connector 一覧は
7
- * `~/Library/Application Support/com.openai.chat/connector-apps-<uuid>/apps.data` に
8
- * **暗号化されたバイナリ** で保存されており、平文の MCP 設定として読めない。
9
- * 暗号鍵は OS Keychain (`com.openai.chat`) に格納されている可能性が高く、
10
- * ユーザー同意なくアクセスするのは不適切。
11
- *
12
- * したがって本スキャナーは「ChatGPT Desktop が **インストールされている**」ことだけを
13
- * 検出し、agent_kind='chatgpt' の空 snapshot を返す。MCP リストの取得は将来 OpenAI 側で
14
- * 公開 API が用意されるか、ユーザー操作で明示的に export してもらう必要がある。
15
- */
16
- export declare const chatgptDataDir: (home?: string, os?: NodeJS.Platform) => string | null;
17
- export declare const scanChatgpt: (options?: {
18
- home?: string;
19
- platform?: NodeJS.Platform;
20
- }) => Promise<AgentSnapshot | null>;
@@ -1,49 +0,0 @@
1
- import { stat } from 'node:fs/promises';
2
- import { homedir, platform } from 'node:os';
3
- import { join } from 'node:path';
4
- /**
5
- * ChatGPT Desktop / ChatGPT connectors のスキャナー (placeholder)。
6
- *
7
- * 現状の制限:
8
- * ChatGPT Desktop (macOS) の connector 一覧は
9
- * `~/Library/Application Support/com.openai.chat/connector-apps-<uuid>/apps.data` に
10
- * **暗号化されたバイナリ** で保存されており、平文の MCP 設定として読めない。
11
- * 暗号鍵は OS Keychain (`com.openai.chat`) に格納されている可能性が高く、
12
- * ユーザー同意なくアクセスするのは不適切。
13
- *
14
- * したがって本スキャナーは「ChatGPT Desktop が **インストールされている**」ことだけを
15
- * 検出し、agent_kind='chatgpt' の空 snapshot を返す。MCP リストの取得は将来 OpenAI 側で
16
- * 公開 API が用意されるか、ユーザー操作で明示的に export してもらう必要がある。
17
- */
18
- export const chatgptDataDir = (home = homedir(), os = platform()) => {
19
- if (os === 'darwin') {
20
- return join(home, 'Library', 'Application Support', 'com.openai.chat');
21
- }
22
- if (os === 'win32') {
23
- const appdata = process.env.APPDATA ?? join(home, 'AppData', 'Roaming');
24
- return join(appdata, 'OpenAI', 'ChatGPT');
25
- }
26
- // Linux 用クライアントは未公式
27
- return null;
28
- };
29
- const exists = async (path) => {
30
- if (path == null)
31
- return false;
32
- try {
33
- const s = await stat(path);
34
- return s.isDirectory();
35
- }
36
- catch {
37
- return false;
38
- }
39
- };
40
- export const scanChatgpt = async (options = {}) => {
41
- const dir = chatgptDataDir(options.home, options.platform);
42
- if (!(await exists(dir))) {
43
- return null;
44
- }
45
- // インストール検出済み。設定の読み出しは未対応 — 空 snapshot を返して
46
- // 「ユーザーが ChatGPT を使っている」事実だけ伝える。
47
- return { agentKind: 'chatgpt', servers: [] };
48
- };
49
- //# sourceMappingURL=chatgpt.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chatgpt.js","sourceRoot":"","sources":["../../src/scanners/chatgpt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAGjC;;;;;;;;;;;;;GAaG;AAEH,MAAM,CAAC,MAAM,cAAc,GAAG,CAC5B,OAAe,OAAO,EAAE,EACxB,KAAsB,QAAQ,EAAE,EACjB,EAAE;IACjB,IAAI,EAAE,KAAK,QAAQ,EAAE,CAAC;QACpB,OAAO,IAAI,CAAC,IAAI,EAAE,SAAS,EAAE,qBAAqB,EAAE,iBAAiB,CAAC,CAAC;IACzE,CAAC;IACD,IAAI,EAAE,KAAK,OAAO,EAAE,CAAC;QACnB,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,OAAO,IAAI,IAAI,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;QACxE,OAAO,IAAI,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;IAC5C,CAAC;IACD,oBAAoB;IACpB,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,KAAK,EAAE,IAAmB,EAAoB,EAAE;IAC7D,IAAI,IAAI,IAAI,IAAI;QAAE,OAAO,KAAK,CAAC;IAC/B,IAAI,CAAC;QACH,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,CAAC;QAC3B,OAAO,CAAC,CAAC,WAAW,EAAE,CAAC;IACzB,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,EAC9B,UAAyD,EAAE,EAC5B,EAAE;IACjC,MAAM,GAAG,GAAG,cAAc,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC3D,IAAI,CAAC,CAAC,MAAM,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,2CAA2C;IAC3C,iCAAiC;IACjC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;AAC/C,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- import type { Writer } from './index.js';
2
- /**
3
- * ChatGPT Desktop: connector データは OS Keychain で暗号化されており、
4
- * 平文の MCP 設定ファイルが存在しない。よって書き込みは未対応 (unsupported)。
5
- *
6
- * 将来 OpenAI 側が export / API を公開した場合に実装する。
7
- */
8
- export declare const chatgptWriter: Writer;
@@ -1,12 +0,0 @@
1
- /**
2
- * ChatGPT Desktop: connector データは OS Keychain で暗号化されており、
3
- * 平文の MCP 設定ファイルが存在しない。よって書き込みは未対応 (unsupported)。
4
- *
5
- * 将来 OpenAI 側が export / API を公開した場合に実装する。
6
- */
7
- export const chatgptWriter = {
8
- async apply(_change) {
9
- return 'unsupported';
10
- },
11
- };
12
- //# sourceMappingURL=chatgpt.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chatgpt.js","sourceRoot":"","sources":["../../src/writers/chatgpt.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,aAAa,GAAW;IACnC,KAAK,CAAC,KAAK,CAAC,OAAO;QACjB,OAAO,aAAa,CAAA;IACtB,CAAC;CACF,CAAA"}