notoken-core 1.5.1 → 2.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.
Files changed (99) hide show
  1. package/config/chat-responses.json +767 -0
  2. package/config/concept-clusters.json +31 -0
  3. package/config/entities.json +93 -0
  4. package/config/image-prompts.json +20 -0
  5. package/config/intent-vectors.json +1 -0
  6. package/config/intents.json +5023 -65
  7. package/config/ollama-models.json +193 -0
  8. package/config/rules.json +32 -1
  9. package/dist/automation/discordPatchright.d.ts +35 -0
  10. package/dist/automation/discordPatchright.js +424 -0
  11. package/dist/automation/discordSetup.d.ts +31 -0
  12. package/dist/automation/discordSetup.js +338 -0
  13. package/dist/conversation/coreference.js +44 -4
  14. package/dist/conversation/pendingActions.d.ts +55 -0
  15. package/dist/conversation/pendingActions.js +127 -0
  16. package/dist/conversation/store.d.ts +72 -0
  17. package/dist/conversation/store.js +140 -1
  18. package/dist/conversation/topicTracker.d.ts +36 -0
  19. package/dist/conversation/topicTracker.js +141 -0
  20. package/dist/execution/ssh.d.ts +42 -1
  21. package/dist/execution/ssh.js +532 -3
  22. package/dist/handlers/executor.js +3981 -16
  23. package/dist/index.d.ts +25 -3
  24. package/dist/index.js +36 -2
  25. package/dist/nlp/batchParser.d.ts +30 -0
  26. package/dist/nlp/batchParser.js +77 -0
  27. package/dist/nlp/conceptExpansion.d.ts +54 -0
  28. package/dist/nlp/conceptExpansion.js +136 -0
  29. package/dist/nlp/conceptRouter.d.ts +49 -0
  30. package/dist/nlp/conceptRouter.js +302 -0
  31. package/dist/nlp/confidenceCalibrator.d.ts +62 -0
  32. package/dist/nlp/confidenceCalibrator.js +116 -0
  33. package/dist/nlp/correctionLearner.d.ts +45 -0
  34. package/dist/nlp/correctionLearner.js +207 -0
  35. package/dist/nlp/entitySpellCorrect.d.ts +35 -0
  36. package/dist/nlp/entitySpellCorrect.js +141 -0
  37. package/dist/nlp/knowledgeGraph.d.ts +70 -0
  38. package/dist/nlp/knowledgeGraph.js +380 -0
  39. package/dist/nlp/llmFallback.js +28 -1
  40. package/dist/nlp/multiClassifier.js +91 -6
  41. package/dist/nlp/multiIntent.d.ts +43 -0
  42. package/dist/nlp/multiIntent.js +154 -0
  43. package/dist/nlp/parseIntent.d.ts +6 -1
  44. package/dist/nlp/parseIntent.js +180 -5
  45. package/dist/nlp/ruleParser.js +315 -0
  46. package/dist/nlp/semanticSimilarity.d.ts +30 -0
  47. package/dist/nlp/semanticSimilarity.js +174 -0
  48. package/dist/nlp/vocabularyBuilder.d.ts +43 -0
  49. package/dist/nlp/vocabularyBuilder.js +224 -0
  50. package/dist/nlp/wikidata.d.ts +49 -0
  51. package/dist/nlp/wikidata.js +228 -0
  52. package/dist/policy/confirm.d.ts +10 -0
  53. package/dist/policy/confirm.js +39 -0
  54. package/dist/policy/safety.js +6 -4
  55. package/dist/utils/aliases.d.ts +5 -0
  56. package/dist/utils/aliases.js +39 -0
  57. package/dist/utils/analysis.js +71 -15
  58. package/dist/utils/browser.d.ts +64 -0
  59. package/dist/utils/browser.js +364 -0
  60. package/dist/utils/commandHistory.d.ts +20 -0
  61. package/dist/utils/commandHistory.js +108 -0
  62. package/dist/utils/completer.d.ts +17 -0
  63. package/dist/utils/completer.js +79 -0
  64. package/dist/utils/config.js +32 -2
  65. package/dist/utils/dbQuery.d.ts +25 -0
  66. package/dist/utils/dbQuery.js +248 -0
  67. package/dist/utils/discordDiag.d.ts +35 -0
  68. package/dist/utils/discordDiag.js +826 -0
  69. package/dist/utils/diskCleanup.d.ts +36 -0
  70. package/dist/utils/diskCleanup.js +775 -0
  71. package/dist/utils/entityResolver.d.ts +107 -0
  72. package/dist/utils/entityResolver.js +468 -0
  73. package/dist/utils/imageGen.d.ts +92 -0
  74. package/dist/utils/imageGen.js +2031 -0
  75. package/dist/utils/installTracker.d.ts +57 -0
  76. package/dist/utils/installTracker.js +160 -0
  77. package/dist/utils/multiExec.d.ts +21 -0
  78. package/dist/utils/multiExec.js +141 -0
  79. package/dist/utils/openclawDiag.d.ts +29 -0
  80. package/dist/utils/openclawDiag.js +1035 -0
  81. package/dist/utils/output.js +4 -0
  82. package/dist/utils/platform.js +2 -1
  83. package/dist/utils/progressReporter.d.ts +50 -0
  84. package/dist/utils/progressReporter.js +58 -0
  85. package/dist/utils/projectDetect.d.ts +44 -0
  86. package/dist/utils/projectDetect.js +319 -0
  87. package/dist/utils/projectScanner.d.ts +44 -0
  88. package/dist/utils/projectScanner.js +312 -0
  89. package/dist/utils/shellCompat.d.ts +78 -0
  90. package/dist/utils/shellCompat.js +186 -0
  91. package/dist/utils/smartArchive.d.ts +16 -0
  92. package/dist/utils/smartArchive.js +172 -0
  93. package/dist/utils/smartRetry.d.ts +26 -0
  94. package/dist/utils/smartRetry.js +114 -0
  95. package/dist/utils/updater.d.ts +1 -0
  96. package/dist/utils/updater.js +1 -1
  97. package/dist/utils/version.d.ts +20 -0
  98. package/dist/utils/version.js +212 -0
  99. package/package.json +6 -3
@@ -0,0 +1,193 @@
1
+ {
2
+ "models": {
3
+ "llama3.2": {
4
+ "name": "Llama 3.2",
5
+ "provider": "Meta",
6
+ "parameters": "3B",
7
+ "sizeGB": 2.0,
8
+ "minRAMGB": 4,
9
+ "recRAMGB": 8,
10
+ "context": 131072,
11
+ "capabilities": ["chat", "code", "reasoning"],
12
+ "description": "Meta's latest small model — fast, good for general chat and basic coding",
13
+ "tier": "small",
14
+ "speed": "fast"
15
+ },
16
+ "llama3.1": {
17
+ "name": "Llama 3.1",
18
+ "provider": "Meta",
19
+ "parameters": "8B",
20
+ "sizeGB": 4.7,
21
+ "minRAMGB": 8,
22
+ "recRAMGB": 16,
23
+ "context": 131072,
24
+ "capabilities": ["chat", "code", "reasoning", "multilingual"],
25
+ "description": "Meta's flagship open model — strong all-around, good coding and reasoning",
26
+ "tier": "medium",
27
+ "speed": "medium"
28
+ },
29
+ "llama3.1:70b": {
30
+ "name": "Llama 3.1 70B",
31
+ "provider": "Meta",
32
+ "parameters": "70B",
33
+ "sizeGB": 40,
34
+ "minRAMGB": 48,
35
+ "recRAMGB": 64,
36
+ "context": 131072,
37
+ "capabilities": ["chat", "code", "reasoning", "multilingual", "analysis"],
38
+ "description": "Meta's large model — near-GPT-4 quality, needs serious hardware",
39
+ "tier": "large",
40
+ "speed": "slow"
41
+ },
42
+ "llama2:13b": {
43
+ "name": "Llama 2 13B",
44
+ "provider": "Meta",
45
+ "parameters": "13B",
46
+ "sizeGB": 7.4,
47
+ "minRAMGB": 10,
48
+ "recRAMGB": 16,
49
+ "context": 4096,
50
+ "capabilities": ["chat", "reasoning"],
51
+ "description": "Older but proven — good for chat, limited context window",
52
+ "tier": "medium",
53
+ "speed": "medium"
54
+ },
55
+ "codellama": {
56
+ "name": "Code Llama",
57
+ "provider": "Meta",
58
+ "parameters": "7B",
59
+ "sizeGB": 3.8,
60
+ "minRAMGB": 6,
61
+ "recRAMGB": 8,
62
+ "context": 16384,
63
+ "capabilities": ["code", "completion", "infill"],
64
+ "description": "Specialized for code — completion, generation, and debugging",
65
+ "tier": "small",
66
+ "speed": "fast"
67
+ },
68
+ "mistral": {
69
+ "name": "Mistral 7B",
70
+ "provider": "Mistral AI",
71
+ "parameters": "7B",
72
+ "sizeGB": 4.1,
73
+ "minRAMGB": 6,
74
+ "recRAMGB": 8,
75
+ "context": 32768,
76
+ "capabilities": ["chat", "code", "reasoning", "multilingual"],
77
+ "description": "Efficient and capable — punches above its weight for a 7B model",
78
+ "tier": "small",
79
+ "speed": "fast"
80
+ },
81
+ "mixtral": {
82
+ "name": "Mixtral 8x7B",
83
+ "provider": "Mistral AI",
84
+ "parameters": "47B (MoE)",
85
+ "sizeGB": 26,
86
+ "minRAMGB": 32,
87
+ "recRAMGB": 48,
88
+ "context": 32768,
89
+ "capabilities": ["chat", "code", "reasoning", "multilingual", "analysis"],
90
+ "description": "Mixture of Experts — high quality with reasonable speed",
91
+ "tier": "large",
92
+ "speed": "medium"
93
+ },
94
+ "phi3": {
95
+ "name": "Phi-3 Mini",
96
+ "provider": "Microsoft",
97
+ "parameters": "3.8B",
98
+ "sizeGB": 2.3,
99
+ "minRAMGB": 4,
100
+ "recRAMGB": 8,
101
+ "context": 128000,
102
+ "capabilities": ["chat", "code", "reasoning"],
103
+ "description": "Microsoft's small model — surprisingly capable for its size, huge context",
104
+ "tier": "small",
105
+ "speed": "fast"
106
+ },
107
+ "gemma2": {
108
+ "name": "Gemma 2",
109
+ "provider": "Google",
110
+ "parameters": "9B",
111
+ "sizeGB": 5.4,
112
+ "minRAMGB": 8,
113
+ "recRAMGB": 16,
114
+ "context": 8192,
115
+ "capabilities": ["chat", "code", "reasoning"],
116
+ "description": "Google's open model — good for chat and coding tasks",
117
+ "tier": "medium",
118
+ "speed": "medium"
119
+ },
120
+ "qwen2.5": {
121
+ "name": "Qwen 2.5",
122
+ "provider": "Alibaba",
123
+ "parameters": "7B",
124
+ "sizeGB": 4.4,
125
+ "minRAMGB": 6,
126
+ "recRAMGB": 8,
127
+ "context": 131072,
128
+ "capabilities": ["chat", "code", "reasoning", "multilingual", "math"],
129
+ "description": "Strong coding and math — one of the best open 7B models",
130
+ "tier": "small",
131
+ "speed": "fast"
132
+ },
133
+ "deepseek-v3": {
134
+ "name": "DeepSeek V3",
135
+ "provider": "DeepSeek",
136
+ "parameters": "236B (MoE)",
137
+ "sizeGB": 130,
138
+ "minRAMGB": 160,
139
+ "recRAMGB": 192,
140
+ "context": 131072,
141
+ "capabilities": ["chat", "code", "reasoning", "math", "analysis"],
142
+ "description": "Frontier-class MoE model — rivals GPT-4, needs massive hardware",
143
+ "tier": "frontier",
144
+ "speed": "slow"
145
+ },
146
+ "deepseek-coder-v2": {
147
+ "name": "DeepSeek Coder V2",
148
+ "provider": "DeepSeek",
149
+ "parameters": "16B",
150
+ "sizeGB": 8.9,
151
+ "minRAMGB": 12,
152
+ "recRAMGB": 16,
153
+ "context": 131072,
154
+ "capabilities": ["code", "completion", "reasoning", "math"],
155
+ "description": "Specialized code model — excellent for programming tasks",
156
+ "tier": "medium",
157
+ "speed": "medium"
158
+ },
159
+ "starcoder2": {
160
+ "name": "StarCoder 2",
161
+ "provider": "BigCode",
162
+ "parameters": "7B",
163
+ "sizeGB": 4.0,
164
+ "minRAMGB": 6,
165
+ "recRAMGB": 8,
166
+ "context": 16384,
167
+ "capabilities": ["code", "completion"],
168
+ "description": "Code-focused — good for autocomplete and generation",
169
+ "tier": "small",
170
+ "speed": "fast"
171
+ },
172
+ "nomic-embed-text": {
173
+ "name": "Nomic Embed",
174
+ "provider": "Nomic AI",
175
+ "parameters": "137M",
176
+ "sizeGB": 0.27,
177
+ "minRAMGB": 1,
178
+ "recRAMGB": 2,
179
+ "context": 8192,
180
+ "capabilities": ["embeddings"],
181
+ "description": "Text embeddings model — for search, RAG, similarity",
182
+ "tier": "tiny",
183
+ "speed": "instant"
184
+ }
185
+ },
186
+ "tiers": {
187
+ "tiny": { "label": "Tiny", "ramRange": "< 2GB", "description": "Embeddings and utilities" },
188
+ "small": { "label": "Small", "ramRange": "4-8GB", "description": "Fast, runs on most machines" },
189
+ "medium": { "label": "Medium", "ramRange": "8-16GB", "description": "Good quality, needs decent RAM" },
190
+ "large": { "label": "Large", "ramRange": "32-64GB", "description": "High quality, needs serious hardware" },
191
+ "frontier": { "label": "Frontier", "ramRange": "160GB+", "description": "Top quality, datacenter only" }
192
+ }
193
+ }
package/config/rules.json CHANGED
@@ -95,6 +95,37 @@
95
95
  "clamav",
96
96
  "clamscan",
97
97
  "freshclam"
98
+ ],
99
+ "openclaw-gateway": [
100
+ "openclaw",
101
+ "openclaw gateway",
102
+ "openclaw-gateway",
103
+ "claw"
104
+ ],
105
+ "matrix-synapse": [
106
+ "matrix",
107
+ "synapse",
108
+ "matrix server",
109
+ "chat server",
110
+ "matrix-synapse"
111
+ ],
112
+ "mautrix-telegram": [
113
+ "telegram",
114
+ "telegram bridge",
115
+ "mautrix-telegram",
116
+ "telegram bot"
117
+ ],
118
+ "mautrix-discord": [
119
+ "discord",
120
+ "discord bridge",
121
+ "mautrix-discord",
122
+ "discord bot"
123
+ ],
124
+ "element-web": [
125
+ "element",
126
+ "element web",
127
+ "matrix client",
128
+ "chat client"
98
129
  ]
99
130
  }
100
- }
131
+ }
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Discord Developer Portal automation via patchright.
3
+ *
4
+ * Runs on Windows Node via cmd.exe (patchright can't launch visible
5
+ * Windows browsers from WSL due to pipe FD limitation).
6
+ *
7
+ * Scripts are written to C:\temp and executed via Windows Node.
8
+ * Browser uses persistent profile at C:\temp\notoken-browser-profile
9
+ * to preserve Discord login sessions across runs.
10
+ *
11
+ * User handles: captcha, MFA (password). Script waits patiently.
12
+ * Token captured via Windows clipboard (Get-Clipboard).
13
+ */
14
+ /**
15
+ * Ensure patchright is installed on Windows.
16
+ */
17
+ export declare function ensurePatchright(): boolean;
18
+ /**
19
+ * Create a Discord bot application, get token, enable intents.
20
+ * Returns { token, appId, success }.
21
+ */
22
+ export declare function createDiscordBot(appName?: string): Promise<{
23
+ token: string;
24
+ appId: string;
25
+ success: boolean;
26
+ }>;
27
+ /**
28
+ * Authorize (invite) a Discord bot to a server.
29
+ * Opens invite page, selects server, clicks authorize, waits for captcha.
30
+ */
31
+ export declare function authorizeDiscordBot(appId: string): Promise<boolean>;
32
+ /**
33
+ * Enable all Privileged Gateway Intents on the Discord Developer Portal.
34
+ */
35
+ export declare function enableDiscordIntents(appId: string): Promise<boolean>;