oh-my-opencode-kikokikok 2.13.0 → 2.14.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/README.ja.md +32 -6
- package/README.ko.md +32 -6
- package/README.md +17 -7
- package/README.zh-cn.md +32 -6
- package/dist/agents/sisyphus-prompt-builder.d.ts +1 -0
- package/dist/cli/config-manager.d.ts +9 -0
- package/dist/cli/doctor/constants.d.ts +1 -1
- package/dist/cli/index.js +371 -99
- package/dist/config/schema.d.ts +273 -0
- package/dist/features/knowledge-provider/index.d.ts +8 -0
- package/dist/features/knowledge-provider/providers/local.d.ts +18 -0
- package/dist/features/knowledge-provider/providers/local.test.d.ts +1 -0
- package/dist/features/knowledge-provider/providers/mcp.d.ts +23 -0
- package/dist/features/knowledge-provider/providers/mem0.d.ts +23 -0
- package/dist/features/knowledge-provider/providers/notebooklm.d.ts +34 -0
- package/dist/features/knowledge-provider/providers/notebooklm.test.d.ts +1 -0
- package/dist/features/knowledge-provider/registry.d.ts +22 -0
- package/dist/features/knowledge-provider/registry.test.d.ts +1 -0
- package/dist/features/knowledge-provider/types.d.ts +266 -0
- package/dist/features/knowledge-repo/client.d.ts +9 -1
- package/dist/features/knowledge-repo/index.d.ts +1 -0
- package/dist/features/knowledge-repo/sync.d.ts +35 -0
- package/dist/features/knowledge-repo/types.d.ts +55 -1
- package/dist/features/mem0-memory/types.d.ts +6 -1
- package/dist/features/openspec/client.d.ts +39 -0
- package/dist/features/openspec/client.test.d.ts +1 -0
- package/dist/features/openspec/index.d.ts +3 -0
- package/dist/features/openspec/types.d.ts +365 -0
- package/dist/features/skill-mcp-manager/env-cleaner.d.ts +2 -0
- package/dist/features/skill-mcp-manager/env-cleaner.test.d.ts +1 -0
- package/dist/features/skill-mcp-manager/manager.d.ts +8 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/knowledge-monitor/index.test.d.ts +1 -0
- package/dist/hooks/memory-rehydration/constants.d.ts +4 -0
- package/dist/hooks/memory-rehydration/index.d.ts +17 -0
- package/dist/hooks/memory-rehydration/types.d.ts +12 -0
- package/dist/hooks/openspec-commitment/index.d.ts +32 -0
- package/dist/hooks/openspec-continuity/index.d.ts +15 -0
- package/dist/hooks/ralph-loop/types.d.ts +1 -0
- package/dist/hooks/tool-output-truncator.test.d.ts +1 -0
- package/dist/index.js +3338 -607
- package/dist/shared/config-path.d.ts +2 -2
- package/dist/shared/index.d.ts +2 -0
- package/dist/shared/opencode-config-dir.d.ts +19 -0
- package/dist/shared/opencode-config-dir.test.d.ts +1 -0
- package/dist/shared/package-info.d.ts +6 -0
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/memory/constants.d.ts +5 -0
- package/dist/tools/memory/index.d.ts +2 -0
- package/dist/tools/memory/tools.d.ts +3 -0
- package/dist/tools/memory/tools.test.d.ts +1 -0
- package/dist/tools/memory/types.d.ts +6 -0
- package/package.json +1 -1
package/dist/config/schema.d.ts
CHANGED
|
@@ -101,6 +101,10 @@ export declare const HookNameSchema: z.ZodEnum<{
|
|
|
101
101
|
"claude-code-hooks": "claude-code-hooks";
|
|
102
102
|
"auto-slash-command": "auto-slash-command";
|
|
103
103
|
"edit-error-recovery": "edit-error-recovery";
|
|
104
|
+
"knowledge-monitor": "knowledge-monitor";
|
|
105
|
+
"memory-rehydration": "memory-rehydration";
|
|
106
|
+
"openspec-continuity": "openspec-continuity";
|
|
107
|
+
"openspec-commitment": "openspec-commitment";
|
|
104
108
|
}>;
|
|
105
109
|
export declare const BuiltinCommandNameSchema: z.ZodEnum<{
|
|
106
110
|
"init-deep": "init-deep";
|
|
@@ -1420,6 +1424,155 @@ export declare const RalphLoopConfigSchema: z.ZodObject<{
|
|
|
1420
1424
|
default_max_iterations: z.ZodDefault<z.ZodNumber>;
|
|
1421
1425
|
state_dir: z.ZodOptional<z.ZodString>;
|
|
1422
1426
|
}, z.core.$strip>;
|
|
1427
|
+
export declare const MemoryLayerSchema: z.ZodEnum<{
|
|
1428
|
+
user: "user";
|
|
1429
|
+
agent: "agent";
|
|
1430
|
+
session: "session";
|
|
1431
|
+
project: "project";
|
|
1432
|
+
team: "team";
|
|
1433
|
+
org: "org";
|
|
1434
|
+
company: "company";
|
|
1435
|
+
}>;
|
|
1436
|
+
export declare const Mem0ConfigSchema: z.ZodObject<{
|
|
1437
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1438
|
+
apiKey: z.ZodOptional<z.ZodString>;
|
|
1439
|
+
endpoint: z.ZodOptional<z.ZodString>;
|
|
1440
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
1441
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
1442
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1443
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
1444
|
+
orgId: z.ZodOptional<z.ZodString>;
|
|
1445
|
+
companyId: z.ZodOptional<z.ZodString>;
|
|
1446
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
1447
|
+
autoRehydrate: z.ZodDefault<z.ZodBoolean>;
|
|
1448
|
+
rehydrateLayers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1449
|
+
user: "user";
|
|
1450
|
+
agent: "agent";
|
|
1451
|
+
session: "session";
|
|
1452
|
+
project: "project";
|
|
1453
|
+
team: "team";
|
|
1454
|
+
org: "org";
|
|
1455
|
+
company: "company";
|
|
1456
|
+
}>>>;
|
|
1457
|
+
}, z.core.$strip>;
|
|
1458
|
+
export declare const CentralHubConfigSchema: z.ZodObject<{
|
|
1459
|
+
url: z.ZodString;
|
|
1460
|
+
branch: z.ZodDefault<z.ZodString>;
|
|
1461
|
+
autoSync: z.ZodDefault<z.ZodBoolean>;
|
|
1462
|
+
syncIntervalMinutes: z.ZodDefault<z.ZodNumber>;
|
|
1463
|
+
}, z.core.$strip>;
|
|
1464
|
+
export declare const KnowledgeRepoConfigSchema: z.ZodObject<{
|
|
1465
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1466
|
+
rootDir: z.ZodDefault<z.ZodString>;
|
|
1467
|
+
autoLoadPolicies: z.ZodDefault<z.ZodBoolean>;
|
|
1468
|
+
orgId: z.ZodOptional<z.ZodString>;
|
|
1469
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
1470
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1471
|
+
centralHub: z.ZodOptional<z.ZodObject<{
|
|
1472
|
+
url: z.ZodString;
|
|
1473
|
+
branch: z.ZodDefault<z.ZodString>;
|
|
1474
|
+
autoSync: z.ZodDefault<z.ZodBoolean>;
|
|
1475
|
+
syncIntervalMinutes: z.ZodDefault<z.ZodNumber>;
|
|
1476
|
+
}, z.core.$strip>>;
|
|
1477
|
+
cache: z.ZodOptional<z.ZodObject<{
|
|
1478
|
+
memory: z.ZodDefault<z.ZodBoolean>;
|
|
1479
|
+
disk: z.ZodDefault<z.ZodBoolean>;
|
|
1480
|
+
ttlSeconds: z.ZodDefault<z.ZodNumber>;
|
|
1481
|
+
}, z.core.$strip>>;
|
|
1482
|
+
}, z.core.$strip>;
|
|
1483
|
+
export declare const OpenSpecEnforcementSchema: z.ZodEnum<{
|
|
1484
|
+
off: "off";
|
|
1485
|
+
soft: "soft";
|
|
1486
|
+
hard: "hard";
|
|
1487
|
+
}>;
|
|
1488
|
+
export declare const OpenSpecChangeTypeSchema: z.ZodEnum<{
|
|
1489
|
+
new_feature: "new_feature";
|
|
1490
|
+
enhancement: "enhancement";
|
|
1491
|
+
bug_fix: "bug_fix";
|
|
1492
|
+
refactoring: "refactoring";
|
|
1493
|
+
breaking_change: "breaking_change";
|
|
1494
|
+
documentation: "documentation";
|
|
1495
|
+
infrastructure: "infrastructure";
|
|
1496
|
+
}>;
|
|
1497
|
+
export declare const OpenSpecConfigSchema: z.ZodObject<{
|
|
1498
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1499
|
+
enforcement: z.ZodDefault<z.ZodEnum<{
|
|
1500
|
+
off: "off";
|
|
1501
|
+
soft: "soft";
|
|
1502
|
+
hard: "hard";
|
|
1503
|
+
}>>;
|
|
1504
|
+
requireSpecFor: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1505
|
+
new_feature: "new_feature";
|
|
1506
|
+
enhancement: "enhancement";
|
|
1507
|
+
bug_fix: "bug_fix";
|
|
1508
|
+
refactoring: "refactoring";
|
|
1509
|
+
breaking_change: "breaking_change";
|
|
1510
|
+
documentation: "documentation";
|
|
1511
|
+
infrastructure: "infrastructure";
|
|
1512
|
+
}>>>;
|
|
1513
|
+
rootDir: z.ZodDefault<z.ZodString>;
|
|
1514
|
+
}, z.core.$strip>;
|
|
1515
|
+
export declare const MCPKnowledgeProviderConfigSchema: z.ZodObject<{
|
|
1516
|
+
name: z.ZodString;
|
|
1517
|
+
searchTool: z.ZodString;
|
|
1518
|
+
getTool: z.ZodOptional<z.ZodString>;
|
|
1519
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1520
|
+
}, z.core.$strip>;
|
|
1521
|
+
export declare const NotebookLMProviderConfigSchema: z.ZodObject<{
|
|
1522
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1523
|
+
defaultNotebookId: z.ZodOptional<z.ZodString>;
|
|
1524
|
+
}, z.core.$strip>;
|
|
1525
|
+
export declare const KnowledgeProviderMergeStrategySchema: z.ZodEnum<{
|
|
1526
|
+
score: "score";
|
|
1527
|
+
"round-robin": "round-robin";
|
|
1528
|
+
"provider-priority": "provider-priority";
|
|
1529
|
+
}>;
|
|
1530
|
+
export declare const KnowledgeProviderConfigSchema: z.ZodObject<{
|
|
1531
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1532
|
+
providers: z.ZodOptional<z.ZodObject<{
|
|
1533
|
+
local: z.ZodOptional<z.ZodObject<{
|
|
1534
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1535
|
+
rootDir: z.ZodOptional<z.ZodString>;
|
|
1536
|
+
}, z.core.$strip>>;
|
|
1537
|
+
mem0: z.ZodOptional<z.ZodObject<{
|
|
1538
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1539
|
+
indexKnowledgeRepo: z.ZodDefault<z.ZodBoolean>;
|
|
1540
|
+
searchLayers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1541
|
+
user: "user";
|
|
1542
|
+
agent: "agent";
|
|
1543
|
+
session: "session";
|
|
1544
|
+
project: "project";
|
|
1545
|
+
team: "team";
|
|
1546
|
+
org: "org";
|
|
1547
|
+
company: "company";
|
|
1548
|
+
}>>>;
|
|
1549
|
+
}, z.core.$strip>>;
|
|
1550
|
+
mcp: z.ZodOptional<z.ZodObject<{
|
|
1551
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1552
|
+
servers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1553
|
+
name: z.ZodString;
|
|
1554
|
+
searchTool: z.ZodString;
|
|
1555
|
+
getTool: z.ZodOptional<z.ZodString>;
|
|
1556
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1557
|
+
}, z.core.$strip>>>;
|
|
1558
|
+
}, z.core.$strip>>;
|
|
1559
|
+
notebooklm: z.ZodOptional<z.ZodObject<{
|
|
1560
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1561
|
+
defaultNotebookId: z.ZodOptional<z.ZodString>;
|
|
1562
|
+
}, z.core.$strip>>;
|
|
1563
|
+
}, z.core.$strip>>;
|
|
1564
|
+
search: z.ZodOptional<z.ZodObject<{
|
|
1565
|
+
defaultLimit: z.ZodDefault<z.ZodNumber>;
|
|
1566
|
+
defaultThreshold: z.ZodDefault<z.ZodNumber>;
|
|
1567
|
+
mergeStrategy: z.ZodDefault<z.ZodEnum<{
|
|
1568
|
+
score: "score";
|
|
1569
|
+
"round-robin": "round-robin";
|
|
1570
|
+
"provider-priority": "provider-priority";
|
|
1571
|
+
}>>;
|
|
1572
|
+
providerPriority: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1573
|
+
deduplicate: z.ZodDefault<z.ZodBoolean>;
|
|
1574
|
+
}, z.core.$strip>>;
|
|
1575
|
+
}, z.core.$strip>;
|
|
1423
1576
|
export declare const OhMyOpenCodeConfigSchema: z.ZodObject<{
|
|
1424
1577
|
$schema: z.ZodOptional<z.ZodString>;
|
|
1425
1578
|
disabled_mcps: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
@@ -1484,6 +1637,10 @@ export declare const OhMyOpenCodeConfigSchema: z.ZodObject<{
|
|
|
1484
1637
|
"claude-code-hooks": "claude-code-hooks";
|
|
1485
1638
|
"auto-slash-command": "auto-slash-command";
|
|
1486
1639
|
"edit-error-recovery": "edit-error-recovery";
|
|
1640
|
+
"knowledge-monitor": "knowledge-monitor";
|
|
1641
|
+
"memory-rehydration": "memory-rehydration";
|
|
1642
|
+
"openspec-continuity": "openspec-continuity";
|
|
1643
|
+
"openspec-commitment": "openspec-commitment";
|
|
1487
1644
|
}>>>;
|
|
1488
1645
|
disabled_commands: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1489
1646
|
"init-deep": "init-deep";
|
|
@@ -2699,6 +2856,111 @@ export declare const OhMyOpenCodeConfigSchema: z.ZodObject<{
|
|
|
2699
2856
|
default_max_iterations: z.ZodDefault<z.ZodNumber>;
|
|
2700
2857
|
state_dir: z.ZodOptional<z.ZodString>;
|
|
2701
2858
|
}, z.core.$strip>>;
|
|
2859
|
+
mem0: z.ZodOptional<z.ZodObject<{
|
|
2860
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2861
|
+
apiKey: z.ZodOptional<z.ZodString>;
|
|
2862
|
+
endpoint: z.ZodOptional<z.ZodString>;
|
|
2863
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
2864
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
2865
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
2866
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
2867
|
+
orgId: z.ZodOptional<z.ZodString>;
|
|
2868
|
+
companyId: z.ZodOptional<z.ZodString>;
|
|
2869
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
2870
|
+
autoRehydrate: z.ZodDefault<z.ZodBoolean>;
|
|
2871
|
+
rehydrateLayers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
2872
|
+
user: "user";
|
|
2873
|
+
agent: "agent";
|
|
2874
|
+
session: "session";
|
|
2875
|
+
project: "project";
|
|
2876
|
+
team: "team";
|
|
2877
|
+
org: "org";
|
|
2878
|
+
company: "company";
|
|
2879
|
+
}>>>;
|
|
2880
|
+
}, z.core.$strip>>;
|
|
2881
|
+
knowledge_repo: z.ZodOptional<z.ZodObject<{
|
|
2882
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2883
|
+
rootDir: z.ZodDefault<z.ZodString>;
|
|
2884
|
+
autoLoadPolicies: z.ZodDefault<z.ZodBoolean>;
|
|
2885
|
+
orgId: z.ZodOptional<z.ZodString>;
|
|
2886
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
2887
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
2888
|
+
centralHub: z.ZodOptional<z.ZodObject<{
|
|
2889
|
+
url: z.ZodString;
|
|
2890
|
+
branch: z.ZodDefault<z.ZodString>;
|
|
2891
|
+
autoSync: z.ZodDefault<z.ZodBoolean>;
|
|
2892
|
+
syncIntervalMinutes: z.ZodDefault<z.ZodNumber>;
|
|
2893
|
+
}, z.core.$strip>>;
|
|
2894
|
+
cache: z.ZodOptional<z.ZodObject<{
|
|
2895
|
+
memory: z.ZodDefault<z.ZodBoolean>;
|
|
2896
|
+
disk: z.ZodDefault<z.ZodBoolean>;
|
|
2897
|
+
ttlSeconds: z.ZodDefault<z.ZodNumber>;
|
|
2898
|
+
}, z.core.$strip>>;
|
|
2899
|
+
}, z.core.$strip>>;
|
|
2900
|
+
knowledge_provider: z.ZodOptional<z.ZodObject<{
|
|
2901
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2902
|
+
providers: z.ZodOptional<z.ZodObject<{
|
|
2903
|
+
local: z.ZodOptional<z.ZodObject<{
|
|
2904
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2905
|
+
rootDir: z.ZodOptional<z.ZodString>;
|
|
2906
|
+
}, z.core.$strip>>;
|
|
2907
|
+
mem0: z.ZodOptional<z.ZodObject<{
|
|
2908
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2909
|
+
indexKnowledgeRepo: z.ZodDefault<z.ZodBoolean>;
|
|
2910
|
+
searchLayers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2911
|
+
user: "user";
|
|
2912
|
+
agent: "agent";
|
|
2913
|
+
session: "session";
|
|
2914
|
+
project: "project";
|
|
2915
|
+
team: "team";
|
|
2916
|
+
org: "org";
|
|
2917
|
+
company: "company";
|
|
2918
|
+
}>>>;
|
|
2919
|
+
}, z.core.$strip>>;
|
|
2920
|
+
mcp: z.ZodOptional<z.ZodObject<{
|
|
2921
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2922
|
+
servers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2923
|
+
name: z.ZodString;
|
|
2924
|
+
searchTool: z.ZodString;
|
|
2925
|
+
getTool: z.ZodOptional<z.ZodString>;
|
|
2926
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2927
|
+
}, z.core.$strip>>>;
|
|
2928
|
+
}, z.core.$strip>>;
|
|
2929
|
+
notebooklm: z.ZodOptional<z.ZodObject<{
|
|
2930
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2931
|
+
defaultNotebookId: z.ZodOptional<z.ZodString>;
|
|
2932
|
+
}, z.core.$strip>>;
|
|
2933
|
+
}, z.core.$strip>>;
|
|
2934
|
+
search: z.ZodOptional<z.ZodObject<{
|
|
2935
|
+
defaultLimit: z.ZodDefault<z.ZodNumber>;
|
|
2936
|
+
defaultThreshold: z.ZodDefault<z.ZodNumber>;
|
|
2937
|
+
mergeStrategy: z.ZodDefault<z.ZodEnum<{
|
|
2938
|
+
score: "score";
|
|
2939
|
+
"round-robin": "round-robin";
|
|
2940
|
+
"provider-priority": "provider-priority";
|
|
2941
|
+
}>>;
|
|
2942
|
+
providerPriority: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2943
|
+
deduplicate: z.ZodDefault<z.ZodBoolean>;
|
|
2944
|
+
}, z.core.$strip>>;
|
|
2945
|
+
}, z.core.$strip>>;
|
|
2946
|
+
openspec: z.ZodOptional<z.ZodObject<{
|
|
2947
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2948
|
+
enforcement: z.ZodDefault<z.ZodEnum<{
|
|
2949
|
+
off: "off";
|
|
2950
|
+
soft: "soft";
|
|
2951
|
+
hard: "hard";
|
|
2952
|
+
}>>;
|
|
2953
|
+
requireSpecFor: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
2954
|
+
new_feature: "new_feature";
|
|
2955
|
+
enhancement: "enhancement";
|
|
2956
|
+
bug_fix: "bug_fix";
|
|
2957
|
+
refactoring: "refactoring";
|
|
2958
|
+
breaking_change: "breaking_change";
|
|
2959
|
+
documentation: "documentation";
|
|
2960
|
+
infrastructure: "infrastructure";
|
|
2961
|
+
}>>>;
|
|
2962
|
+
rootDir: z.ZodDefault<z.ZodString>;
|
|
2963
|
+
}, z.core.$strip>>;
|
|
2702
2964
|
}, z.core.$strip>;
|
|
2703
2965
|
export type OhMyOpenCodeConfig = z.infer<typeof OhMyOpenCodeConfigSchema>;
|
|
2704
2966
|
export type AgentOverrideConfig = z.infer<typeof AgentOverrideConfigSchema>;
|
|
@@ -2714,4 +2976,15 @@ export type DynamicContextPruningConfig = z.infer<typeof DynamicContextPruningCo
|
|
|
2714
2976
|
export type SkillsConfig = z.infer<typeof SkillsConfigSchema>;
|
|
2715
2977
|
export type SkillDefinition = z.infer<typeof SkillDefinitionSchema>;
|
|
2716
2978
|
export type RalphLoopConfig = z.infer<typeof RalphLoopConfigSchema>;
|
|
2979
|
+
export type Mem0Config = z.infer<typeof Mem0ConfigSchema>;
|
|
2980
|
+
export type CentralHubConfig = z.infer<typeof CentralHubConfigSchema>;
|
|
2981
|
+
export type KnowledgeRepoConfig = z.infer<typeof KnowledgeRepoConfigSchema>;
|
|
2982
|
+
export type OpenSpecConfig = z.infer<typeof OpenSpecConfigSchema>;
|
|
2983
|
+
export type OpenSpecEnforcement = z.infer<typeof OpenSpecEnforcementSchema>;
|
|
2984
|
+
export type OpenSpecChangeType = z.infer<typeof OpenSpecChangeTypeSchema>;
|
|
2985
|
+
export type MemoryLayer = z.infer<typeof MemoryLayerSchema>;
|
|
2986
|
+
export type KnowledgeProviderConfig = z.infer<typeof KnowledgeProviderConfigSchema>;
|
|
2987
|
+
export type KnowledgeProviderMergeStrategy = z.infer<typeof KnowledgeProviderMergeStrategySchema>;
|
|
2988
|
+
export type MCPKnowledgeProviderConfig = z.infer<typeof MCPKnowledgeProviderConfigSchema>;
|
|
2989
|
+
export type NotebookLMProviderConfig = z.infer<typeof NotebookLMProviderConfigSchema>;
|
|
2717
2990
|
export { McpNameSchema, type McpName } from "../mcp/types";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./types";
|
|
2
|
+
export { KnowledgeProviderRegistry, getKnowledgeProviderRegistry, resetKnowledgeProviderRegistry, } from "./registry";
|
|
3
|
+
export { LocalKnowledgeProvider } from "./providers/local";
|
|
4
|
+
export { Mem0KnowledgeProvider } from "./providers/mem0";
|
|
5
|
+
export { MCPKnowledgeProvider } from "./providers/mcp";
|
|
6
|
+
export type { MCPInvoker } from "./providers/mcp";
|
|
7
|
+
export { NotebookLMKnowledgeProvider } from "./providers/notebooklm";
|
|
8
|
+
export type { NotebookLMProviderConfig } from "./providers/notebooklm";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { KnowledgeProvider, KnowledgeQuery, KnowledgeSearchResult, KnowledgeItem, ProviderHealth, LocalProviderConfig } from "../types";
|
|
2
|
+
export declare class LocalKnowledgeProvider implements KnowledgeProvider {
|
|
3
|
+
readonly name = "local";
|
|
4
|
+
readonly type: "local";
|
|
5
|
+
readonly description = "Local file-based knowledge repository";
|
|
6
|
+
private config;
|
|
7
|
+
private repository;
|
|
8
|
+
private initialized;
|
|
9
|
+
constructor(config?: Partial<LocalProviderConfig>);
|
|
10
|
+
initialize(): Promise<void>;
|
|
11
|
+
search(query: KnowledgeQuery): Promise<KnowledgeSearchResult[]>;
|
|
12
|
+
getById(id: string): Promise<KnowledgeItem | null>;
|
|
13
|
+
healthCheck(): Promise<ProviderHealth>;
|
|
14
|
+
private commitToItem;
|
|
15
|
+
private calculateScore;
|
|
16
|
+
private isKnowledgeType;
|
|
17
|
+
private isKnowledgeLayer;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { KnowledgeProvider, KnowledgeQuery, KnowledgeSearchResult, KnowledgeItem, ProviderHealth, MCPProviderConfig } from "../types";
|
|
2
|
+
export interface MCPInvoker {
|
|
3
|
+
invoke(serverName: string, toolName: string, args: Record<string, unknown>): Promise<unknown>;
|
|
4
|
+
isServerAvailable(serverName: string): Promise<boolean>;
|
|
5
|
+
}
|
|
6
|
+
export declare class MCPKnowledgeProvider implements KnowledgeProvider {
|
|
7
|
+
readonly name: string;
|
|
8
|
+
readonly type: "mcp";
|
|
9
|
+
readonly description: string;
|
|
10
|
+
private config;
|
|
11
|
+
private invoker;
|
|
12
|
+
private initialized;
|
|
13
|
+
constructor(config: MCPProviderConfig, invoker: MCPInvoker);
|
|
14
|
+
initialize(): Promise<void>;
|
|
15
|
+
search(query: KnowledgeQuery): Promise<KnowledgeSearchResult[]>;
|
|
16
|
+
getById(id: string): Promise<KnowledgeItem | null>;
|
|
17
|
+
healthCheck(): Promise<ProviderHealth>;
|
|
18
|
+
dispose(): Promise<void>;
|
|
19
|
+
private parseSearchResponse;
|
|
20
|
+
private responseItemToSearchResult;
|
|
21
|
+
private parseGetResponse;
|
|
22
|
+
private inferType;
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { KnowledgeProvider, KnowledgeQuery, KnowledgeSearchResult, KnowledgeItem, ProviderHealth, Mem0ProviderConfig } from "../types";
|
|
2
|
+
import type { Mem0Config } from "../../mem0-memory/types";
|
|
3
|
+
export declare class Mem0KnowledgeProvider implements KnowledgeProvider {
|
|
4
|
+
private mem0Config;
|
|
5
|
+
readonly name = "mem0";
|
|
6
|
+
readonly type: "mem0";
|
|
7
|
+
readonly description = "Vector-based semantic memory via Mem0";
|
|
8
|
+
private config;
|
|
9
|
+
private adapter;
|
|
10
|
+
private initialized;
|
|
11
|
+
constructor(config: Mem0ProviderConfig, mem0Config: Mem0Config);
|
|
12
|
+
initialize(): Promise<void>;
|
|
13
|
+
search(query: KnowledgeQuery): Promise<KnowledgeSearchResult[]>;
|
|
14
|
+
getById(id: string): Promise<KnowledgeItem | null>;
|
|
15
|
+
index(item: KnowledgeItem): Promise<void>;
|
|
16
|
+
healthCheck(): Promise<ProviderHealth>;
|
|
17
|
+
private memoryToItem;
|
|
18
|
+
private extractTitle;
|
|
19
|
+
private extractSummary;
|
|
20
|
+
private resolveSearchLayers;
|
|
21
|
+
private itemLayerToMemoryLayer;
|
|
22
|
+
private isMemoryLayer;
|
|
23
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { KnowledgeProvider, KnowledgeQuery, KnowledgeSearchResult, KnowledgeItem, ProviderHealth } from "../types";
|
|
2
|
+
import type { MCPInvoker } from "./mcp";
|
|
3
|
+
export interface NotebookLMProviderConfig {
|
|
4
|
+
enabled: boolean;
|
|
5
|
+
defaultNotebookId?: string;
|
|
6
|
+
}
|
|
7
|
+
interface NotebookInfo {
|
|
8
|
+
id: string;
|
|
9
|
+
title: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
sourceCount?: number;
|
|
12
|
+
createdAt?: string;
|
|
13
|
+
updatedAt?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare class NotebookLMKnowledgeProvider implements KnowledgeProvider {
|
|
16
|
+
readonly name = "notebooklm";
|
|
17
|
+
readonly type: "mcp";
|
|
18
|
+
readonly description = "Google NotebookLM AI-powered knowledge notebooks";
|
|
19
|
+
private config;
|
|
20
|
+
private invoker;
|
|
21
|
+
private initialized;
|
|
22
|
+
private notebooks;
|
|
23
|
+
constructor(config: NotebookLMProviderConfig, invoker: MCPInvoker);
|
|
24
|
+
initialize(): Promise<void>;
|
|
25
|
+
search(query: KnowledgeQuery): Promise<KnowledgeSearchResult[]>;
|
|
26
|
+
getById(id: string): Promise<KnowledgeItem | null>;
|
|
27
|
+
index(item: KnowledgeItem): Promise<void>;
|
|
28
|
+
healthCheck(): Promise<ProviderHealth>;
|
|
29
|
+
dispose(): Promise<void>;
|
|
30
|
+
listNotebooks(): Promise<NotebookInfo[]>;
|
|
31
|
+
private refreshNotebooks;
|
|
32
|
+
private getTargetNotebooks;
|
|
33
|
+
}
|
|
34
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { KnowledgeProvider, KnowledgeQuery, KnowledgeSearchResult, KnowledgeItem, ProviderHealth, IKnowledgeProviderRegistry, KnowledgeProviderRegistryConfig } from "./types";
|
|
2
|
+
export declare class KnowledgeProviderRegistry implements IKnowledgeProviderRegistry {
|
|
3
|
+
private providers;
|
|
4
|
+
private config;
|
|
5
|
+
constructor(config?: Partial<KnowledgeProviderRegistryConfig>);
|
|
6
|
+
register(provider: KnowledgeProvider): Promise<void>;
|
|
7
|
+
unregister(name: string): Promise<void>;
|
|
8
|
+
search(query: KnowledgeQuery): Promise<KnowledgeSearchResult[]>;
|
|
9
|
+
getById(id: string): Promise<KnowledgeItem | null>;
|
|
10
|
+
getProviders(): KnowledgeProvider[];
|
|
11
|
+
getProvider(name: string): KnowledgeProvider | undefined;
|
|
12
|
+
healthCheck(): Promise<Map<string, ProviderHealth>>;
|
|
13
|
+
private getTargetProviders;
|
|
14
|
+
private mergeResults;
|
|
15
|
+
private roundRobinMerge;
|
|
16
|
+
private priorityMerge;
|
|
17
|
+
private deduplicateResults;
|
|
18
|
+
private contentHash;
|
|
19
|
+
private parseId;
|
|
20
|
+
}
|
|
21
|
+
export declare function getKnowledgeProviderRegistry(): KnowledgeProviderRegistry;
|
|
22
|
+
export declare function resetKnowledgeProviderRegistry(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|