50c 2.0.3 → 2.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/lib/packs/labs.js +42 -4
- package/package.json +3 -1
package/lib/packs/labs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 50c Labs Pack - PRO Tier Tools ($99/mo)
|
|
3
|
-
* genius, mind_opener,
|
|
3
|
+
* genius, mind_opener, agent_autopsy, prompt_fortress, context_*
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
const { apiRequest } = require('../config');
|
|
@@ -17,7 +17,13 @@ async function ideaFold(claim) {
|
|
|
17
17
|
return apiRequest('POST', '/tools/idea_fold', { claim });
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
async function agentAutopsy(trace, expected = null, context = null) {
|
|
21
|
+
return apiRequest('POST', '/tools/agent_autopsy', { trace, expected, context });
|
|
22
|
+
}
|
|
20
23
|
|
|
24
|
+
async function promptFortress(prompt, constraints = null) {
|
|
25
|
+
return apiRequest('POST', '/tools/prompt_fortress', { prompt, constraints });
|
|
26
|
+
}
|
|
21
27
|
|
|
22
28
|
async function contextHealth(text) {
|
|
23
29
|
return apiRequest('POST', '/tools/context_health', { text });
|
|
@@ -76,7 +82,35 @@ const LABS_TOOLS = [
|
|
|
76
82
|
cost: 0.10,
|
|
77
83
|
tier: 'pro'
|
|
78
84
|
},
|
|
79
|
-
|
|
85
|
+
{
|
|
86
|
+
name: 'agent_autopsy',
|
|
87
|
+
description: 'Diagnose WHY an AI agent failed. $0.10',
|
|
88
|
+
inputSchema: {
|
|
89
|
+
type: 'object',
|
|
90
|
+
properties: {
|
|
91
|
+
trace: { type: 'string', description: 'Agent logs/output/conversation' },
|
|
92
|
+
expected: { type: 'string', description: 'What agent should have done' },
|
|
93
|
+
context: { type: 'string', description: 'Task context' }
|
|
94
|
+
},
|
|
95
|
+
required: ['trace']
|
|
96
|
+
},
|
|
97
|
+
cost: 0.10,
|
|
98
|
+
tier: 'pro'
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: 'prompt_fortress',
|
|
102
|
+
description: 'Stress-test prompt against 6 attack vectors. $0.20',
|
|
103
|
+
inputSchema: {
|
|
104
|
+
type: 'object',
|
|
105
|
+
properties: {
|
|
106
|
+
prompt: { type: 'string', description: 'Prompt to test' },
|
|
107
|
+
constraints: { type: 'array', items: { type: 'string' }, description: 'Security constraints' }
|
|
108
|
+
},
|
|
109
|
+
required: ['prompt']
|
|
110
|
+
},
|
|
111
|
+
cost: 0.20,
|
|
112
|
+
tier: 'pro'
|
|
113
|
+
},
|
|
80
114
|
{
|
|
81
115
|
name: 'context_health',
|
|
82
116
|
description: 'Token zone, density, redundancy analysis. $0.05',
|
|
@@ -141,7 +175,10 @@ async function handleTool(name, args) {
|
|
|
141
175
|
return await mindOpener(args.problem);
|
|
142
176
|
case 'idea_fold':
|
|
143
177
|
return await ideaFold(args.claim);
|
|
144
|
-
|
|
178
|
+
case 'agent_autopsy':
|
|
179
|
+
return await agentAutopsy(args.trace, args.expected, args.context);
|
|
180
|
+
case 'prompt_fortress':
|
|
181
|
+
return await promptFortress(args.prompt, args.constraints);
|
|
145
182
|
case 'context_health':
|
|
146
183
|
return await contextHealth(args.text);
|
|
147
184
|
case 'context_compress':
|
|
@@ -164,7 +201,8 @@ module.exports = {
|
|
|
164
201
|
genius,
|
|
165
202
|
mindOpener,
|
|
166
203
|
ideaFold,
|
|
167
|
-
|
|
204
|
+
agentAutopsy,
|
|
205
|
+
promptFortress,
|
|
168
206
|
contextHealth,
|
|
169
207
|
contextCompress,
|
|
170
208
|
contextExtract,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "50c",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "AI toolkit. One install, 100+ tools. Works everywhere.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
"llm",
|
|
13
13
|
"tools",
|
|
14
14
|
"genius",
|
|
15
|
+
"agent-autopsy",
|
|
16
|
+
"prompt-fortress",
|
|
15
17
|
"bcalc",
|
|
16
18
|
"vault",
|
|
17
19
|
"cloudflare",
|