@skj1724/oh-my-opencode 3.23.2 → 3.23.4

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.
@@ -0,0 +1,8 @@
1
+ export type GetAgentFromSessionMessagesFn = (sessionID: string) => string | undefined;
2
+ export interface ResolveCurrentAgentOptions {
3
+ staleThresholdMs?: number;
4
+ getAgentFromSessionMessages?: GetAgentFromSessionMessagesFn | null;
5
+ logger?: ((message: string, data?: unknown) => void) | null;
6
+ }
7
+ export declare function resolveCurrentAgent(sessionID: string, inputAgent?: string | null, options?: ResolveCurrentAgentOptions): string | undefined;
8
+ export declare function isAgentIdentityConsistent(sessionID: string, inputAgent: string | undefined | null, staleThresholdMs?: number): boolean;
@@ -0,0 +1 @@
1
+ export {};
@@ -38,3 +38,4 @@ export * from "./windows-reserved-names";
38
38
  export * from "./usage-tracker";
39
39
  export * from "./language-enforcer";
40
40
  export * from "./language-detector";
41
+ export * from "./agent-identity-resolver";
@@ -17,7 +17,7 @@ export declare function isEnglishText(text: string, threshold: number): boolean;
17
17
  * 检测 agent thinking 块中的英文违规。
18
18
  *
19
19
  * - 最小 meaningful 长度:4 字符(thinking 块通常较短,需敏感检测)
20
- * - 含 17 个英文 trigger 词检测
20
+ * - 含 40+ 个英文 trigger 词检测(开头匹配 + 全文关键词双层扫描)
21
21
  * - 含 Markdown 链接剥离:`[text](url)` → `text`
22
22
  * - 返回 `false | 'trigger' | 'ascii'`
23
23
  */
@@ -46,7 +46,7 @@ export interface DelegateTaskMessageInfo {
46
46
  modelID?: string;
47
47
  providerID?: string;
48
48
  }
49
- export declare function extractResumeInfoFromMessages(messages: Array<{
49
+ export declare function extractResumeInfoFromMessages(sessionID: string, messages: Array<{
50
50
  info?: DelegateTaskMessageInfo;
51
51
  }>): {
52
52
  agent: string | undefined;
package/package.json CHANGED
@@ -1,89 +1,89 @@
1
- {
2
- "name": "@skj1724/oh-my-opencode",
3
- "version": "3.23.02",
4
- "description": "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "type": "module",
8
- "bin": {
9
- "oh-my-opencode": "./bin/oh-my-opencode.js"
10
- },
11
- "files": [
12
- "dist",
13
- "bin",
14
- "postinstall.mjs"
15
- ],
16
- "exports": {
17
- ".": {
18
- "types": "./dist/index.d.ts",
19
- "import": "./dist/index.js"
20
- },
21
- "./schema.json": "./dist/oh-my-opencode.schema.json"
22
- },
23
- "scripts": {
24
- "build": "bun build src/index.ts --outdir dist --target bun --format esm --external @ast-grep/napi && tsc --emitDeclarationOnly && bun build src/cli/index.ts --outdir dist/cli --target bun --format esm --external @ast-grep/napi && bun run build:schema",
25
- "build:all": "bun run build && bun run build:binaries",
26
- "build:binaries": "bun run script/build-binaries.ts",
27
- "build:schema": "bun run script/build-schema.ts",
28
- "clean": "rm -rf dist",
29
- "postinstall": "node postinstall.mjs",
30
- "prepublishOnly": "bun run clean && bun run build",
31
- "typecheck": "tsc --noEmit",
32
- "test": "bun test"
33
- },
34
- "keywords": [
35
- "opencode",
36
- "plugin",
37
- "oracle",
38
- "librarian",
39
- "agents",
40
- "ai",
41
- "llm"
42
- ],
43
- "author": "YeonGyu-Kim",
44
- "license": "SUL-1.0",
45
- "repository": {
46
- "type": "git",
47
- "url": "git+https://github.com/code-yeongyu/oh-my-opencode.git"
48
- },
49
- "bugs": {
50
- "url": "https://github.com/code-yeongyu/oh-my-opencode/issues"
51
- },
52
- "homepage": "https://github.com/code-yeongyu/oh-my-opencode#readme",
53
- "dependencies": {
54
- "@ast-grep/cli": "^0.40.5",
55
- "@ast-grep/napi": "^0.40.5",
56
- "@clack/prompts": "^0.11.0",
57
- "@code-yeongyu/comment-checker": "^0.6.1",
58
- "@modelcontextprotocol/sdk": "^1.29.0",
59
- "@opencode-ai/plugin": "^1.16.2",
60
- "@opencode-ai/sdk": "^1.16.2",
61
- "commander": "^14.0.3",
62
- "detect-libc": "^2.1.2",
63
- "js-yaml": "^4.2.0",
64
- "jsonc-parser": "^3.3.1",
65
- "picocolors": "^1.1.1",
66
- "picomatch": "^4.0.4",
67
- "zod": "^4.4.3"
68
- },
69
- "devDependencies": {
70
- "@types/js-yaml": "^4.0.9",
71
- "@types/picomatch": "^3.0.2",
72
- "bun-types": "^1.3.14",
73
- "typescript": "^5.9.3"
74
- },
75
- "optionalDependencies": {
76
- "oh-my-opencode-darwin-arm64": "3.0.1",
77
- "oh-my-opencode-darwin-x64": "3.0.1",
78
- "oh-my-opencode-linux-arm64": "3.0.1",
79
- "oh-my-opencode-linux-arm64-musl": "3.0.1",
80
- "oh-my-opencode-linux-x64": "3.0.1",
81
- "oh-my-opencode-linux-x64-musl": "3.0.1",
82
- "oh-my-opencode-windows-x64": "3.0.1"
83
- },
84
- "trustedDependencies": [
85
- "@ast-grep/cli",
86
- "@ast-grep/napi",
87
- "@code-yeongyu/comment-checker"
88
- ]
89
- }
1
+ {
2
+ "name": "@skj1724/oh-my-opencode",
3
+ "version": "3.23.04",
4
+ "description": "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "type": "module",
8
+ "bin": {
9
+ "oh-my-opencode": "./bin/oh-my-opencode.js"
10
+ },
11
+ "files": [
12
+ "dist",
13
+ "bin",
14
+ "postinstall.mjs"
15
+ ],
16
+ "exports": {
17
+ ".": {
18
+ "types": "./dist/index.d.ts",
19
+ "import": "./dist/index.js"
20
+ },
21
+ "./schema.json": "./dist/oh-my-opencode.schema.json"
22
+ },
23
+ "scripts": {
24
+ "build": "bun build src/index.ts --outdir dist --target bun --format esm --external @ast-grep/napi && tsc --emitDeclarationOnly && bun build src/cli/index.ts --outdir dist/cli --target bun --format esm --external @ast-grep/napi && bun run build:schema",
25
+ "build:all": "bun run build && bun run build:binaries",
26
+ "build:binaries": "bun run script/build-binaries.ts",
27
+ "build:schema": "bun run script/build-schema.ts",
28
+ "clean": "rm -rf dist",
29
+ "postinstall": "node postinstall.mjs",
30
+ "prepublishOnly": "bun run clean && bun run build",
31
+ "typecheck": "tsc --noEmit",
32
+ "test": "bun test"
33
+ },
34
+ "keywords": [
35
+ "opencode",
36
+ "plugin",
37
+ "oracle",
38
+ "librarian",
39
+ "agents",
40
+ "ai",
41
+ "llm"
42
+ ],
43
+ "author": "YeonGyu-Kim",
44
+ "license": "SUL-1.0",
45
+ "repository": {
46
+ "type": "git",
47
+ "url": "git+https://github.com/code-yeongyu/oh-my-opencode.git"
48
+ },
49
+ "bugs": {
50
+ "url": "https://github.com/code-yeongyu/oh-my-opencode/issues"
51
+ },
52
+ "homepage": "https://github.com/code-yeongyu/oh-my-opencode#readme",
53
+ "dependencies": {
54
+ "@ast-grep/cli": "^0.40.5",
55
+ "@ast-grep/napi": "^0.40.5",
56
+ "@clack/prompts": "^0.11.0",
57
+ "@code-yeongyu/comment-checker": "^0.6.1",
58
+ "@modelcontextprotocol/sdk": "^1.29.0",
59
+ "@opencode-ai/plugin": "^1.16.2",
60
+ "@opencode-ai/sdk": "^1.16.2",
61
+ "commander": "^14.0.3",
62
+ "detect-libc": "^2.1.2",
63
+ "js-yaml": "^4.2.0",
64
+ "jsonc-parser": "^3.3.1",
65
+ "picocolors": "^1.1.1",
66
+ "picomatch": "^4.0.4",
67
+ "zod": "^4.4.3"
68
+ },
69
+ "devDependencies": {
70
+ "@types/js-yaml": "^4.0.9",
71
+ "@types/picomatch": "^3.0.2",
72
+ "bun-types": "^1.3.14",
73
+ "typescript": "^5.9.3"
74
+ },
75
+ "optionalDependencies": {
76
+ "oh-my-opencode-darwin-arm64": "3.0.1",
77
+ "oh-my-opencode-darwin-x64": "3.0.1",
78
+ "oh-my-opencode-linux-arm64": "3.0.1",
79
+ "oh-my-opencode-linux-arm64-musl": "3.0.1",
80
+ "oh-my-opencode-linux-x64": "3.0.1",
81
+ "oh-my-opencode-linux-x64-musl": "3.0.1",
82
+ "oh-my-opencode-windows-x64": "3.0.1"
83
+ },
84
+ "trustedDependencies": [
85
+ "@ast-grep/cli",
86
+ "@ast-grep/napi",
87
+ "@code-yeongyu/comment-checker"
88
+ ]
89
+ }