@lovelybunch/core 1.0.76-alpha.1 → 1.0.76-alpha.11

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 (44) hide show
  1. package/dist/change-proposal.d.ts +0 -3
  2. package/dist/change-proposal.d.ts.map +1 -1
  3. package/dist/change-proposal.js +3 -5
  4. package/dist/change-proposal.js.map +1 -1
  5. package/dist/context.d.ts +26 -26
  6. package/dist/context.d.ts.map +1 -1
  7. package/dist/context.js +4 -1
  8. package/dist/context.js.map +1 -1
  9. package/dist/events.d.ts +4 -4
  10. package/dist/index.d.ts +1 -0
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +1 -0
  13. package/dist/index.js.map +1 -1
  14. package/dist/knowledge.d.ts +94 -88
  15. package/dist/knowledge.d.ts.map +1 -1
  16. package/dist/knowledge.js +37 -9
  17. package/dist/knowledge.js.map +1 -1
  18. package/dist/logging/kinds.d.ts +18 -0
  19. package/dist/logging/kinds.d.ts.map +1 -1
  20. package/dist/logging/kinds.js +15 -0
  21. package/dist/logging/kinds.js.map +1 -1
  22. package/dist/mail.d.ts +22 -22
  23. package/dist/pipeline-builders.d.ts +49 -0
  24. package/dist/pipeline-builders.d.ts.map +1 -0
  25. package/dist/pipeline-builders.js +208 -0
  26. package/dist/pipeline-builders.js.map +1 -0
  27. package/dist/pipelines.d.ts +4 -0
  28. package/dist/pipelines.d.ts.map +1 -0
  29. package/dist/pipelines.js +3 -0
  30. package/dist/pipelines.js.map +1 -0
  31. package/dist/skill-instructions.d.ts +3 -3
  32. package/dist/skill-instructions.d.ts.map +1 -1
  33. package/dist/skill-instructions.js +81 -49
  34. package/dist/skill-instructions.js.map +1 -1
  35. package/dist/system-prompts/coconut-assistant.md +3 -2
  36. package/package.json +6 -2
  37. package/dist/agent-instructions.d.ts +0 -17
  38. package/dist/agent-instructions.d.ts.map +0 -1
  39. package/dist/agent-instructions.js +0 -160
  40. package/dist/agent-instructions.js.map +0 -1
  41. package/dist/proposals.d.ts +0 -765
  42. package/dist/proposals.d.ts.map +0 -1
  43. package/dist/proposals.js +0 -483
  44. package/dist/proposals.js.map +0 -1
@@ -0,0 +1,208 @@
1
+ import { getChangeTaskInstructions, getPrepareChangeTaskInstructions, getSkillInstructions, } from './skill-instructions.js';
2
+ /**
3
+ * Sanitize instruction text for safe embedding in shell commands.
4
+ * - Backticks -> single quotes (prevents shell command substitution)
5
+ * - Curly/smart quotes -> straight equivalents
6
+ */
7
+ export function sanitizeInstruction(text) {
8
+ return text
9
+ .replace(/`/g, "'")
10
+ .replace(/[\u2018\u2019]/g, "'")
11
+ .replace(/[\u201C\u201D]/g, '"');
12
+ }
13
+ function getInstructionParts(cfg) {
14
+ const skillPaths = cfg.selectedSkillIds.map((id) => `.nut/skills/${id}/SKILL.md`);
15
+ const safeCustom = cfg.customInstruction ? sanitizeInstruction(cfg.customInstruction) : cfg.customInstruction;
16
+ const parts = cfg.contextType === 'change-task'
17
+ ? getChangeTaskInstructions(cfg.taskId, skillPaths, safeCustom, cfg.includeDefaultInstructions ?? true)
18
+ : cfg.contextType === 'prepare-task'
19
+ ? getPrepareChangeTaskInstructions(cfg.taskId, skillPaths, safeCustom)
20
+ : getSkillInstructions(skillPaths, safeCustom);
21
+ return parts.join(' ');
22
+ }
23
+ /**
24
+ * Encode a string as base64 in a way that works in both Node.js and browsers.
25
+ */
26
+ function toBase64(str) {
27
+ const bytes = new TextEncoder().encode(str);
28
+ let binary = '';
29
+ for (let i = 0; i < bytes.length; i++)
30
+ binary += String.fromCharCode(bytes[i]);
31
+ return btoa(binary);
32
+ }
33
+ /**
34
+ * Wrap a JS script as a shell command that writes a temp file from a base64
35
+ * payload, executes it, then cleans up. This avoids PTY echo noise (the
36
+ * echoed text is an opaque base64 string instead of readable source) and
37
+ * sidesteps shell-escaping and input-buffer issues.
38
+ */
39
+ function wrapAsBase64TempFile(nodeJs, exitAfter = false) {
40
+ const b64 = toBase64(nodeJs);
41
+ const suffix = exitAfter ? '; exit' : '';
42
+ return `_f=$(mktemp /tmp/.nut-XXXXXX) && echo '${b64}' | base64 -d > "$_f" && node "$_f"; rm -f "$_f"${suffix}`;
43
+ }
44
+ function buildMcpSelSet(selectedMcpServers) {
45
+ return selectedMcpServers.map((n) => `'${n.replace(/'/g, "'\\''")}'`).join(',');
46
+ }
47
+ export const buildClaudeCommand = (cfg) => {
48
+ const interactive = cfg.interactive ?? true;
49
+ const instruction = getInstructionParts(cfg);
50
+ const selList = buildMcpSelSet(cfg.selectedMcpServers);
51
+ const args = [];
52
+ if (!interactive)
53
+ args.push(JSON.stringify('-p'));
54
+ args.push(JSON.stringify(instruction));
55
+ if (cfg.automationEnabled)
56
+ args.push(JSON.stringify('--dangerously-skip-permissions'));
57
+ const nodeJs = `const fs=require('fs'),{spawn}=require('child_process');const s=new Set([${selList}]);const c=JSON.parse(fs.readFileSync('.nut/mcp/config.json','utf8'));const filtered=Object.entries(c.mcpServers||{}).filter(([k])=>s.has(k)).map(([k,v])=>[k,{...v,type:v.type||(v.url?'http':'stdio')}]);const o={mcpServers:Object.fromEntries(filtered)};fs.writeFileSync('.mcp.json',JSON.stringify(o,null,2));const p=spawn('claude',[${args.join(',')}],{stdio:'inherit'});p.on('exit',code=>process.exit(code));`;
58
+ return wrapAsBase64TempFile(nodeJs, !interactive);
59
+ };
60
+ export const buildGeminiCommand = (cfg) => {
61
+ const interactive = cfg.interactive ?? true;
62
+ const instruction = getInstructionParts(cfg);
63
+ const selList = buildMcpSelSet(cfg.selectedMcpServers);
64
+ const args = [];
65
+ if (!interactive)
66
+ args.push(`'--non-interactive'`);
67
+ if (cfg.automationEnabled)
68
+ args.push(`'--yolo'`);
69
+ args.push(JSON.stringify(instruction));
70
+ const nodeJs = `const fs=require('fs'),path=require('path'),{spawn}=require('child_process');const s=new Set([${selList}]);const c=JSON.parse(fs.readFileSync('.nut/mcp/config.json','utf8'));const geminiPath=path.join(require('os').homedir(),'.gemini','settings.json');let settings={};try{settings=JSON.parse(fs.readFileSync(geminiPath,'utf8'))}catch(e){}settings.mcpServers=Object.fromEntries(Object.entries(c.mcpServers||{}).filter(([k])=>s.has(k)));fs.writeFileSync(geminiPath,JSON.stringify(settings,null,2));const p=spawn('gemini',[${args.join(',')}],{stdio:'inherit'});p.on('exit',code=>process.exit(code));`;
71
+ return wrapAsBase64TempFile(nodeJs, !interactive);
72
+ };
73
+ export const buildCodexCommand = (cfg) => {
74
+ const interactive = cfg.interactive ?? true;
75
+ const instruction = getInstructionParts(cfg);
76
+ const selList = buildMcpSelSet(cfg.selectedMcpServers);
77
+ const args = [];
78
+ if (!interactive)
79
+ args.push(JSON.stringify('exec'));
80
+ args.push(JSON.stringify(instruction));
81
+ if (cfg.automationEnabled)
82
+ args.push(JSON.stringify('--dangerously-bypass-approvals-and-sandbox'));
83
+ const nodeJs = `const fs=require('fs'),{spawn}=require('child_process');const s=new Set([${selList}]);const c=JSON.parse(fs.readFileSync('.nut/mcp/config.json','utf8'));const filtered=Object.entries(c.mcpServers||{}).filter(([k])=>s.has(k)).map(([k,v])=>[k,{...v,type:v.type||(v.url?'http':'stdio')}]);const o={mcpServers:Object.fromEntries(filtered)};fs.writeFileSync('.mcp.json',JSON.stringify(o,null,2));const p=spawn('codex',[${args.join(',')}],{stdio:'inherit'});p.on('exit',code=>process.exit(code));`;
84
+ return wrapAsBase64TempFile(nodeJs, !interactive);
85
+ };
86
+ export const buildDroidCommand = (cfg) => {
87
+ const interactive = cfg.interactive ?? true;
88
+ const instruction = getInstructionParts(cfg);
89
+ const selList = buildMcpSelSet(cfg.selectedMcpServers);
90
+ const args = [];
91
+ if (!interactive)
92
+ args.push(JSON.stringify('exec'));
93
+ args.push(JSON.stringify(instruction));
94
+ const nodeJs = `const fs=require('fs'),{spawn}=require('child_process');const s=new Set([${selList}]);const c=JSON.parse(fs.readFileSync('.nut/mcp/config.json','utf8'));const filtered=Object.entries(c.mcpServers||{}).filter(([k])=>s.has(k)).map(([k,v])=>[k,{...v,type:v.type||(v.url?'http':'stdio')}]);const o={mcpServers:Object.fromEntries(filtered)};fs.writeFileSync('.mcp.json',JSON.stringify(o,null,2));const p=spawn('droid',[${args.join(',')}],{stdio:'inherit'});p.on('exit',code=>process.exit(code));`;
95
+ return wrapAsBase64TempFile(nodeJs, !interactive);
96
+ };
97
+ export const buildKiroCommand = (cfg) => {
98
+ const interactive = cfg.interactive ?? true;
99
+ const instruction = getInstructionParts(cfg);
100
+ const selList = buildMcpSelSet(cfg.selectedMcpServers);
101
+ const args = [`'chat'`];
102
+ if (!interactive || cfg.automationEnabled)
103
+ args.push(`'--no-interactive'`);
104
+ if (cfg.automationEnabled)
105
+ args.push(`'--trust-all-tools'`);
106
+ args.push(JSON.stringify(instruction));
107
+ const nodeJs = `const fs=require('fs'),{spawn}=require('child_process');const s=new Set([${selList}]);const c=JSON.parse(fs.readFileSync('.nut/mcp/config.json','utf8'));const filtered=Object.entries(c.mcpServers||{}).filter(([k])=>s.has(k)).map(([k,v])=>[k,{...v,type:v.type||(v.url?'http':'stdio')}]);const o={mcpServers:Object.fromEntries(filtered)};fs.writeFileSync('.mcp.json',JSON.stringify(o,null,2));const p=spawn('kiro-cli',[${args.join(',')}],{stdio:'inherit'});p.on('exit',code=>process.exit(code));`;
108
+ return wrapAsBase64TempFile(nodeJs, !interactive);
109
+ };
110
+ /**
111
+ * Build a short banner printed in the terminal before the agent launches.
112
+ */
113
+ export function buildPipelineBanner(cfg) {
114
+ const mode = (cfg.interactive ?? true)
115
+ ? 'interactive'
116
+ : 'non-interactive (agent will exit on completion)';
117
+ return [
118
+ ``,
119
+ `Running ${cfg.cliAgent} 🥥`,
120
+ ``,
121
+ `Task: ${cfg.taskId}`,
122
+ `Context: ${cfg.contextType}`,
123
+ `Mode: ${mode}`,
124
+ ``,
125
+ ``,
126
+ ].join('\\n');
127
+ }
128
+ const BUILDERS = {
129
+ claude: buildClaudeCommand,
130
+ gemini: buildGeminiCommand,
131
+ codex: buildCodexCommand,
132
+ droid: buildDroidCommand,
133
+ kiro: buildKiroCommand,
134
+ };
135
+ /**
136
+ * Build the shell command for a given pipeline configuration.
137
+ * Returns a heredoc-wrapped command suitable for direct PTY input.
138
+ * Prefer `buildPipelineScript` + temp file for server/CLI callers
139
+ * to avoid PTY echo noise.
140
+ */
141
+ export function buildPipelineCommand(cfg) {
142
+ const builder = BUILDERS[cfg.cliAgent];
143
+ if (!builder) {
144
+ throw new Error(`Unknown CLI agent: ${cfg.cliAgent}`);
145
+ }
146
+ return builder(cfg);
147
+ }
148
+ /**
149
+ * Build just the raw Node.js script for a pipeline configuration.
150
+ * Callers should write this to a temp file and execute `node <path>`,
151
+ * which avoids PTY echo noise and input-buffer limits.
152
+ */
153
+ export function buildPipelineScript(cfg) {
154
+ const instruction = getInstructionParts(cfg);
155
+ const interactive = cfg.interactive ?? true;
156
+ const selList = buildMcpSelSet(cfg.selectedMcpServers);
157
+ const agentScripts = {
158
+ claude: () => {
159
+ const args = [];
160
+ if (!interactive)
161
+ args.push(JSON.stringify('-p'));
162
+ args.push(JSON.stringify(instruction));
163
+ if (cfg.automationEnabled)
164
+ args.push(JSON.stringify('--dangerously-skip-permissions'));
165
+ return `const fs=require('fs'),{spawn}=require('child_process');const s=new Set([${selList}]);const c=JSON.parse(fs.readFileSync('.nut/mcp/config.json','utf8'));const filtered=Object.entries(c.mcpServers||{}).filter(([k])=>s.has(k)).map(([k,v])=>[k,{...v,type:v.type||(v.url?'http':'stdio')}]);const o={mcpServers:Object.fromEntries(filtered)};fs.writeFileSync('.mcp.json',JSON.stringify(o,null,2));const p=spawn('claude',[${args.join(',')}],{stdio:'inherit'});p.on('exit',code=>process.exit(code));`;
166
+ },
167
+ gemini: () => {
168
+ const args = [];
169
+ if (!interactive)
170
+ args.push(`'--non-interactive'`);
171
+ if (cfg.automationEnabled)
172
+ args.push(`'--yolo'`);
173
+ args.push(JSON.stringify(instruction));
174
+ return `const fs=require('fs'),path=require('path'),{spawn}=require('child_process');const s=new Set([${selList}]);const c=JSON.parse(fs.readFileSync('.nut/mcp/config.json','utf8'));const geminiPath=path.join(require('os').homedir(),'.gemini','settings.json');let settings={};try{settings=JSON.parse(fs.readFileSync(geminiPath,'utf8'))}catch(e){}settings.mcpServers=Object.fromEntries(Object.entries(c.mcpServers||{}).filter(([k])=>s.has(k)));fs.writeFileSync(geminiPath,JSON.stringify(settings,null,2));const p=spawn('gemini',[${args.join(',')}],{stdio:'inherit'});p.on('exit',code=>process.exit(code));`;
175
+ },
176
+ codex: () => {
177
+ const args = [];
178
+ if (!interactive)
179
+ args.push(JSON.stringify('exec'));
180
+ args.push(JSON.stringify(instruction));
181
+ if (cfg.automationEnabled)
182
+ args.push(JSON.stringify('--dangerously-bypass-approvals-and-sandbox'));
183
+ return `const fs=require('fs'),{spawn}=require('child_process');const s=new Set([${selList}]);const c=JSON.parse(fs.readFileSync('.nut/mcp/config.json','utf8'));const filtered=Object.entries(c.mcpServers||{}).filter(([k])=>s.has(k)).map(([k,v])=>[k,{...v,type:v.type||(v.url?'http':'stdio')}]);const o={mcpServers:Object.fromEntries(filtered)};fs.writeFileSync('.mcp.json',JSON.stringify(o,null,2));const p=spawn('codex',[${args.join(',')}],{stdio:'inherit'});p.on('exit',code=>process.exit(code));`;
184
+ },
185
+ droid: () => {
186
+ const args = [];
187
+ if (!interactive)
188
+ args.push(JSON.stringify('exec'));
189
+ args.push(JSON.stringify(instruction));
190
+ return `const fs=require('fs'),{spawn}=require('child_process');const s=new Set([${selList}]);const c=JSON.parse(fs.readFileSync('.nut/mcp/config.json','utf8'));const filtered=Object.entries(c.mcpServers||{}).filter(([k])=>s.has(k)).map(([k,v])=>[k,{...v,type:v.type||(v.url?'http':'stdio')}]);const o={mcpServers:Object.fromEntries(filtered)};fs.writeFileSync('.mcp.json',JSON.stringify(o,null,2));const p=spawn('droid',[${args.join(',')}],{stdio:'inherit'});p.on('exit',code=>process.exit(code));`;
191
+ },
192
+ kiro: () => {
193
+ const args = [`'chat'`];
194
+ if (!interactive || cfg.automationEnabled)
195
+ args.push(`'--no-interactive'`);
196
+ if (cfg.automationEnabled)
197
+ args.push(`'--trust-all-tools'`);
198
+ args.push(JSON.stringify(instruction));
199
+ return `const fs=require('fs'),{spawn}=require('child_process');const s=new Set([${selList}]);const c=JSON.parse(fs.readFileSync('.nut/mcp/config.json','utf8'));const filtered=Object.entries(c.mcpServers||{}).filter(([k])=>s.has(k)).map(([k,v])=>[k,{...v,type:v.type||(v.url?'http':'stdio')}]);const o={mcpServers:Object.fromEntries(filtered)};fs.writeFileSync('.mcp.json',JSON.stringify(o,null,2));const p=spawn('kiro-cli',[${args.join(',')}],{stdio:'inherit'});p.on('exit',code=>process.exit(code));`;
200
+ },
201
+ };
202
+ const scriptBuilder = agentScripts[cfg.cliAgent];
203
+ if (!scriptBuilder) {
204
+ throw new Error(`Unknown CLI agent: ${cfg.cliAgent}`);
205
+ }
206
+ return scriptBuilder();
207
+ }
208
+ //# sourceMappingURL=pipeline-builders.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipeline-builders.js","sourceRoot":"","sources":["../src/pipeline-builders.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,gCAAgC,EAChC,oBAAoB,GACrB,MAAM,yBAAyB,CAAA;AAuBhC;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CAAC,IAAY;IAC9C,OAAO,IAAI;SACR,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC;SAClB,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC;SAC/B,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,CAAA;AACpC,CAAC;AAED,SAAS,mBAAmB,CAAC,GAAmB;IAC9C,MAAM,UAAU,GAAG,GAAG,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,eAAe,EAAE,WAAW,CAAC,CAAA;IACjF,MAAM,UAAU,GAAG,GAAG,CAAC,iBAAiB,CAAC,CAAC,CAAC,mBAAmB,CAAC,GAAG,CAAC,iB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AAI,CAAC,IAAI,CAAC,GAAG,CAAC,6DAA6D,CAAA;QACrf,CAAC;QACD,KAAK,EAAE,GAAG,EAAE;YACV,MAAM,IAAI,GAAa,EAAE,CAAA;YACzB,IAAI,CAAC,WAAW;gBAAE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAA;YACnD,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAA;YACtC,OAAO,4EAA4E,OAAO,8UAA8U,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,6DAA6D,CAAA;QACrf,CAAC;QACD,IAAI,EAAE,GAAG,EAAE;YACT,MAAM,IAAI,GAAa,CAAC,QAAQ,CAAC,CAAA;YACjC,IAAI,CAAC,WAAW,IAAI,GAAG,CAAC,iBAAiB;gBAAE,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAA;YAC1E,IAAI,GAAG,CAAC,iBAAiB;gBAAE,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAA;YAC3D,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAA;YACtC,OAAO,4EAA4E,OAAO,iVAAiV,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,6DAA6D,CAAA;QACxf,CAAC;KACF,CAAA;IAED,MAAM,aAAa,GAAG,YAAY,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;IAChD,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,MAAM,IAAI,KAAK,CAAC,sBAAsB,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAA;IACvD,CAAC;IACD,OAAO,aAAa,EAAE,CAAA;AACxB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { SCHEMA_REFERENCE_INSTRUCTION, PROJECT_REFERENCE_INSTRUCTION, getChangeTaskInstructions, getPrepareChangeTaskInstructions, getSkillInstructions, getAgentInstructions, } from './skill-instructions.js';
2
+ export { sanitizeInstruction, buildClaudeCommand, buildGeminiCommand, buildCodexCommand, buildDroidCommand, buildKiroCommand, buildPipelineCommand, buildPipelineScript, buildPipelineBanner, } from './pipeline-builders.js';
3
+ export type { CliAgent, PipelineContextType, PipelineConfig, BuildCommand, } from './pipeline-builders.js';
4
+ //# sourceMappingURL=pipelines.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipelines.d.ts","sourceRoot":"","sources":["../src/pipelines.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,yBAAyB,EACzB,gCAAgC,EAChC,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,yBAAyB,CAAA;AAEhC,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,wBAAwB,CAAA;AAE/B,YAAY,EACV,QAAQ,EACR,mBAAmB,EACnB,cAAc,EACd,YAAY,GACb,MAAM,wBAAwB,CAAA"}
@@ -0,0 +1,3 @@
1
+ export { SCHEMA_REFERENCE_INSTRUCTION, PROJECT_REFERENCE_INSTRUCTION, getChangeTaskInstructions, getPrepareChangeTaskInstructions, getSkillInstructions, getAgentInstructions, } from './skill-instructions.js';
2
+ export { sanitizeInstruction, buildClaudeCommand, buildGeminiCommand, buildCodexCommand, buildDroidCommand, buildKiroCommand, buildPipelineCommand, buildPipelineScript, buildPipelineBanner, } from './pipeline-builders.js';
3
+ //# sourceMappingURL=pipelines.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipelines.js","sourceRoot":"","sources":["../src/pipelines.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,yBAAyB,EACzB,gCAAgC,EAChC,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,yBAAyB,CAAA;AAEhC,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,wBAAwB,CAAA"}
@@ -1,11 +1,11 @@
1
1
  export declare const SCHEMA_REFERENCE_INSTRUCTION = "Consult the schema references in .nut/.schema (task.schema.md, project.schema.md, architecture.schema.md, skill.schema.md, knowledge.schema.md) so any updates you make follow the documented structure and include complete arrays for plan steps, dependencies, tags, labels, and comments.";
2
2
  export declare const PROJECT_REFERENCE_INSTRUCTION = "Use .nut/context/project.md and .nut/context/architecture.md for reference.";
3
3
  /**
4
- * Get instructions for change task (cp-*) workflows
4
+ * Get instructions for change task (task-*) workflows
5
5
  */
6
- export declare function getChangeTaskInstructions(proposalId: string, skillPaths: string[], customInstruction?: string, includeDefaultInstructions?: boolean): string[];
6
+ export declare function getChangeTaskInstructions(taskId: string, skillPaths: string[], customInstruction?: string, includeDefaultInstructions?: boolean): string[];
7
7
  /**
8
- * Get instructions for reviewing / preparing a change task (cp-*) before implementation.
8
+ * Get instructions for reviewing / preparing a change task (task-*) before implementation.
9
9
  * Assesses readiness without starting any actual work.
10
10
  */
11
11
  export declare function getPrepareChangeTaskInstructions(taskId: string, skillPaths: string[], customInstruction?: string): string[];
@@ -1 +1 @@
1
- {"version":3,"file":"skill-instructions.d.ts","sourceRoot":"","sources":["../src/skill-instructions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B,kSACwP,CAAC;AAClS,eAAO,MAAM,6BAA6B,gFACqC,CAAA;AAE/E;;GAEG;AACH,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAAE,EACpB,iBAAiB,CAAC,EAAE,MAAM,EAC1B,0BAA0B,GAAE,OAAc,GACzC,MAAM,EAAE,CAyEV;AAED;;;GAGG;AACH,wBAAgB,gCAAgC,CAC9C,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,EAAE,EACpB,iBAAiB,CAAC,EAAE,MAAM,GACzB,MAAM,EAAE,CAoEV;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,MAAM,EAAE,EACpB,iBAAiB,CAAC,EAAE,MAAM,GACzB,MAAM,EAAE,CAgBV;AAGD,mDAAmD;AACnD,eAAO,MAAM,oBAAoB,6BAAuB,CAAC"}
1
+ {"version":3,"file":"skill-instructions.d.ts","sourceRoot":"","sources":["../src/skill-instructions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B,kSACwP,CAAC;AAClS,eAAO,MAAM,6BAA6B,gFACqC,CAAA;AAE/E;;GAEG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,EAAE,EACpB,iBAAiB,CAAC,EAAE,MAAM,EAC1B,0BAA0B,GAAE,OAAc,GACzC,MAAM,EAAE,CAyFV;AAED;;;GAGG;AACH,wBAAgB,gCAAgC,CAC9C,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,EAAE,EACpB,iBAAiB,CAAC,EAAE,MAAM,GACzB,MAAM,EAAE,CAqFV;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,MAAM,EAAE,EACpB,iBAAiB,CAAC,EAAE,MAAM,GACzB,MAAM,EAAE,CAgBV;AAGD,mDAAmD;AACnD,eAAO,MAAM,oBAAoB,6BAAuB,CAAC"}
@@ -1,9 +1,9 @@
1
1
  export const SCHEMA_REFERENCE_INSTRUCTION = 'Consult the schema references in .nut/.schema (task.schema.md, project.schema.md, architecture.schema.md, skill.schema.md, knowledge.schema.md) so any updates you make follow the documented structure and include complete arrays for plan steps, dependencies, tags, labels, and comments.';
2
2
  export const PROJECT_REFERENCE_INSTRUCTION = 'Use .nut/context/project.md and .nut/context/architecture.md for reference.';
3
3
  /**
4
- * Get instructions for change task (cp-*) workflows
4
+ * Get instructions for change task (task-*) workflows
5
5
  */
6
- export function getChangeTaskInstructions(proposalId, skillPaths, customInstruction, includeDefaultInstructions = true) {
6
+ export function getChangeTaskInstructions(taskId, skillPaths, customInstruction, includeDefaultInstructions = true) {
7
7
  const sections = [];
8
8
  // Add default instructions only if requested
9
9
  if (includeDefaultInstructions) {
@@ -12,43 +12,58 @@ export function getChangeTaskInstructions(proposalId, skillPaths, customInstruct
12
12
  `## Task`,
13
13
  ``,
14
14
  `- Review and begin working on the following task:`,
15
- ` .nut/tasks/${proposalId}.md`,
16
- `- Retrieve your firstName, lastName, and email address from: .nut/config.json and use this identity to address yourself in any task updates, comments, git commits, etc.`,
15
+ ` .nut/tasks/${taskId}.md`,
16
+ `- Retrieve your firstName, lastName, and email address from: .nut/config.json and use this identity for task updates, comments, git commits, etc.`,
17
17
  ].join('\n'));
18
18
  // Task Lifecycle section
19
19
  sections.push([
20
20
  `## Task Lifecycle`,
21
21
  ``,
22
- `- Before beginning any work: nut task update ${proposalId} --status active`,
23
- `- Add appropriate steps with: nut task step ${proposalId} "Step description" --author "firstName lastName"`,
22
+ `1. Before beginning any work, set the task to active:`,
23
+ ` nut task update ${taskId} --status active`,
24
24
  ``,
25
- `- If you need human clarification or input: nut task update ${proposalId} --status blocked. The clarification can be communicated as follows: nut task comment ${proposalId} "Comments here" --author "firstName lastName". At this point please stop work.`,
25
+ `2. Work through the existing plan steps, updating each as you go:`,
26
+ ` nut task step-update ${taskId} <stepId> --status active (when starting a step)`,
27
+ ` nut task step-update ${taskId} <stepId> --status done (when complete)`,
28
+ ` nut task step-update ${taskId} <stepId> --status failed --error "reason"`,
29
+ ` nut task step-update ${taskId} <stepId> --status skipped (if not applicable)`,
30
+ ` If no steps exist yet, add them: nut task step ${taskId} "Step description"`,
26
31
  ``,
27
- `- When implementation is complete and ready for approval: nut task update ${proposalId} --status review`,
28
- `- Only mark the task complete once approval criteria are satisfied: nut task update ${proposalId} --status done`,
32
+ `3. If you need human clarification or input, block the task and stop work:`,
33
+ ` nut task update ${taskId} --status blocked`,
34
+ ` nut task comment ${taskId} "Describe what you need" --author "firstName lastName"`,
35
+ ``,
36
+ `4. When implementation is complete and ready for review:`,
37
+ ` nut task update ${taskId} --status review`,
38
+ ` nut task comment ${taskId} "Summary of what was done" --author "firstName lastName"`,
39
+ ``,
40
+ `### Handling Revision Requests`,
41
+ ``,
42
+ `If the task status is 'revision', the user has reviewed your work and left feedback.`,
43
+ `Read the most recent comment(s) carefully, address the feedback, then set back to review:`,
44
+ ` nut task update ${taskId} --status review`,
29
45
  ].join('\n'));
30
46
  // Abilities section
31
47
  sections.push([
32
48
  `## Abilities`,
33
49
  ``,
34
- `- The following abilities are at your disposal and should be factored into the plan where appropriate (each command has its own --help):`,
35
- ` - Work with knowledge documents (used for the output of any research-centric tasks):`,
36
- ` - nut knowledge create "Quick Note" --content "# Quick Note\\n\\nSome content here"`,
37
- ` - nut knowledge list`,
38
- ` - nut knowledge get example-filename.md`,
39
- ` - Creating media such as images, audio, or video:`,
40
- ` - nut resource`,
41
- ` - Using available skills (specialized, reusable, and portable modules). There is also an official registry you can pull from:`,
42
- ` - nut skill list`,
43
- ` - nut skill registry list`,
44
- `- Similarly, the following are available: git, gh, node, python`,
50
+ `Beyond task management, the following are at your disposal and should be factored into the plan where appropriate (each command has its own --help):`,
51
+ `- Knowledge documents (for research outputs, notes, and reference material):`,
52
+ ` - nut knowledge create "Title" --content "# Title\\n\\nContent here"`,
53
+ ` - nut knowledge list / get / update`,
54
+ `- Resource library (images, audio, video, or existing files):`,
55
+ ` - nut resource ls / add ./file.png`,
56
+ ` - nut resource image "description" --save`,
57
+ ` - nut resource audio "description" --save`,
58
+ `- Skills (specialized, reusable modules with an official registry):`,
59
+ ` - nut skill list / nut skill registry list`,
60
+ `- Also available: git, gh, node, python`,
45
61
  ].join('\n'));
46
62
  // Operational Rules section
47
63
  sections.push([
48
64
  `## Operational Rules`,
49
65
  ``,
50
- `- DO use the nut CLI to update task status as progress changes`,
51
- ` (nut --help or nut task --help for details)`,
66
+ `- DO use the nut CLI to update task and step status as progress changes`,
52
67
  `- DO NOT edit files outside the scope of the approved task (unless instructed by the Additional Instructions below)`,
53
68
  ].join('\n'));
54
69
  }
@@ -72,7 +87,7 @@ export function getChangeTaskInstructions(proposalId, skillPaths, customInstruct
72
87
  return [sections.join('\n\n')];
73
88
  }
74
89
  /**
75
- * Get instructions for reviewing / preparing a change task (cp-*) before implementation.
90
+ * Get instructions for reviewing / preparing a change task (task-*) before implementation.
76
91
  * Assesses readiness without starting any actual work.
77
92
  */
78
93
  export function getPrepareChangeTaskInstructions(taskId, skillPaths, customInstruction) {
@@ -81,43 +96,60 @@ export function getPrepareChangeTaskInstructions(taskId, skillPaths, customInstr
81
96
  sections.push([
82
97
  `## Your Task`,
83
98
  ``,
84
- `- Review the following task (including all the existing comments and implementation steps) to ensure you have enough information and resources (skills, tools, access, etc) to successfully complete it: .nut/tasks/${taskId}.md`,
85
- `- Note: DO NOT start any work at this stage, this is only a preparatory assessment phase.`,
86
- `- Retrieve your firstName, lastName, and email address from: .nut/config.json and use this identity to address yourself in any task updates, comments, etc.`,
87
- `- Add a readiness score between 0 and 100 where 100 is total confidence that you could complete the task without any mistakes or further user input: nut task update ${taskId} --readiness <score>`,
88
- `- Add a comment that communicates your readiness and any other relevant information: nut task comment ${taskId} "Comment here" --author "firstName lastName".`,
89
- `- If your readiness score is high enough, add appropriate implementation steps with: nut task step ${taskId} "Step description"`,
90
- `- Of particular importance is whether it would make sense to decompose this into separate tasks, although DO NOT do this without user confirmation first.`,
91
- `- Finally, update the task status to either 'ready' or 'blocked' based on your assessment: nut task update ${taskId} --status [ready|blocked]`,
99
+ `Review the following task to assess whether it is ready for implementation.`,
100
+ `This is a preparatory assessment phase only -- DO NOT start any implementation work.`,
101
+ ``,
102
+ `- Read the task (including all existing comments and plan steps): .nut/tasks/${taskId}.md`,
103
+ `- Retrieve your firstName, lastName, and email address from: .nut/config.json and use this identity for task updates, comments, etc.`,
104
+ ``,
105
+ `### Assessment Steps`,
106
+ ``,
107
+ `1. Set a readiness score (0-100, where 100 = total confidence you could complete the task without mistakes or further input):`,
108
+ ` nut task update ${taskId} --readiness <score>`,
109
+ ``,
110
+ `2. If readiness is high enough, add implementation plan steps:`,
111
+ ` nut task step ${taskId} "Step description"`,
112
+ ``,
113
+ `3. Evaluate whether the task should be decomposed into smaller tasks.`,
114
+ ` If decomposition is recommended, note this in your comment but DO NOT decompose without user confirmation.`,
115
+ ``,
116
+ `4. Add a comment summarizing your assessment (readiness rationale, risks, decomposition recommendation if any):`,
117
+ ` nut task comment ${taskId} "Assessment summary" --author "firstName lastName"`,
118
+ ``,
119
+ `5. Set the task status based on your assessment:`,
120
+ ` nut task update ${taskId} --status ready (if ready for implementation)`,
121
+ ` nut task update ${taskId} --status blocked (if missing information or resources)`,
122
+ ``,
123
+ `### Handling Revision Requests`,
124
+ ``,
125
+ `If the task status is 'revision', the user has reviewed your assessment and left feedback.`,
126
+ `Read the most recent comment(s) carefully, revise your plan steps and readiness accordingly,`,
127
+ `then set status back to 'ready' or 'blocked' as appropriate.`,
92
128
  ].join('\n'));
93
129
  // Abilities section
94
130
  sections.push([
95
131
  `## Abilities`,
96
132
  ``,
97
- `- The following abilities are at your disposal and should be factored into the plan where appropriate (each command has its own --help):`,
98
- ` - Work with knowledge documents (used for the output of any research-centric tasks):`,
99
- ` - nut knowledge create "Quick Note" --content "# Quick Note\\n\\nSome content here"`,
100
- ` - nut knowledge list`,
101
- ` - nut knowledge get example-filename.md`,
102
- ` - nut knowledge update example-filename.md --content "# Quick Note\\n\\nSome content here"`,
103
- ` - Creating media such as images, audio, or video or adding existing files to the resource library:`,
104
- ` - nut resource ls`,
105
- ` - nut resource add ./screenshot.png`,
106
- ` - nut resource image "A serene morning in Tokyo" --save`,
107
- ` - nut resource audio "Welcome to the future" --save`,
108
- ` - Using available skills (specialized, reusable, and portable modules). There is also an official registry you can pull from:`,
109
- ` - nut skill list`,
110
- ` - nut skill registry list`,
111
- `- Similarly, the following are available: git, gh, node, python`,
133
+ `Beyond task management, the following are at your disposal and should be factored into the plan where appropriate (each command has its own --help):`,
134
+ `- Knowledge documents (for research outputs, notes, and reference material):`,
135
+ ` - nut knowledge create "Title" --content "# Title\\n\\nContent here"`,
136
+ ` - nut knowledge list / get / update`,
137
+ `- Resource library (images, audio, video, or existing files):`,
138
+ ` - nut resource ls / add ./file.png`,
139
+ ` - nut resource image "description" --save`,
140
+ ` - nut resource audio "description" --save`,
141
+ `- Skills (specialized, reusable modules with an official registry):`,
142
+ ` - nut skill list / nut skill registry list`,
143
+ `- Also available: git, gh, node, python`,
112
144
  ].join('\n'));
113
145
  // Operational Rules section
114
146
  sections.push([
115
147
  `## Operational Rules`,
116
148
  ``,
149
+ `- DO NOT start any implementation work during this phase`,
117
150
  `- DO NOT use 'npx' when running the nut CLI`,
118
- `- DO use the nut CLI to update task status as progress changes`,
119
- ` (nut --help or nut task --help for details)`,
120
- `- DO NOT edit files outside the scope of the approved task (unless instructed by the Additional Instructions below)`,
151
+ `- DO use the nut CLI to update task status and readiness`,
152
+ `- DO NOT edit files outside the scope of the task (unless instructed by the Additional Instructions below)`,
121
153
  ].join('\n'));
122
154
  // Skills section (conditional)
123
155
  if (skillPaths.length > 0) {
@@ -1 +1 @@
1
- {"version":3,"file":"skill-instructions.js","sourceRoot":"","sources":["../src/skill-instructions.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,4BAA4B,GACvC,+RAA+R,CAAC;AAClS,MAAM,CAAC,MAAM,6BAA6B,GACxC,6EAA6E,CAAA;AAE/E;;GAEG;AACH,MAAM,UAAU,yBAAyB,CACvC,UAAkB,EAClB,UAAoB,EACpB,iBAA0B,EAC1B,6BAAsC,IAAI;IAE1C,MAAM,QAAQ,GAAa,EAAE,CAAA;IAE7B,6CAA6C;IAC7C,IAAI,0BAA0B,EAAE,CAAC;QAC/B,eAAe;QACf,QAAQ,CAAC,IAAI,CAAC;YACZ,SAAS;YACT,EAAE;YACF,mDAAmD;YACnD,g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,IAAI,CAAC,CAAC,CAAA;IACf,CAAC;IAED,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAA;AAChC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,oBAAoB,CAClC,UAAoB,EACpB,iBAA0B;IAE1B,MAAM,KAAK,GAAa,EAAE,CAAA;IAE1B,KAAK,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC;IAE1C,mCAAmC;IACnC,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC1B,KAAK,CAAC,IAAI,CAAC,4BAA4B,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IACjE,CAAC;IAED,qCAAqC;IACrC,IAAI,iBAAiB,IAAI,iBAAiB,CAAC,IAAI,EAAE,EAAE,CAAC;QAClD,KAAK,CAAC,IAAI,CAAC,2BAA2B,iBAAiB,CAAC,IAAI,EAAE,EAAE,CAAC,CAAA;IACnE,CAAC;IAED,OAAO,KAAK,CAAA;AACd,CAAC;AAED,kEAAkE;AAClE,mDAAmD;AACnD,MAAM,CAAC,MAAM,oBAAoB,GAAG,oBAAoB,CAAC"}
@@ -211,7 +211,8 @@ You can **create tasks directly** using the `tasks` tool. Tasks are executed by
211
211
  | `add_from_url` | Save a URL as a resource | `{ "operation": "add_from_url", "url": "https://..." }` |
212
212
 
213
213
  **Image generation models:**
214
- - `nano-banana-pro` (default) — fast, high-quality general purpose
214
+ - `nano-banana-pro` — fast, high-quality general purpose
215
+ - `nano-banana-2` (default) — Google's next-gen model
215
216
  - `flux-2-dev` — good for creative/artistic styles
216
217
  - `flux-2-pro` — higher quality, more control
217
218
  - `gpt-image-1.5` — best for transparent backgrounds, limited aspect ratios (1:1, 3:2, 2:3)
@@ -222,7 +223,7 @@ You can **create tasks directly** using the `tasks` tool. Tasks are executed by
222
223
  - **Video generation takes 2–5 minutes** — warn the user before starting; suggest image or audio if they need something quick
223
224
  - **One generation at a time** — consistent with the write-once rule
224
225
  - **Use `list` first** if the user asks about existing resources — don't guess IDs
225
- - **Default to `nano-banana-pro`** — only use other models if the user asks or the task benefits (e.g., transparent backgrounds → `gpt-image-1.5`)
226
+ - **Default to `nano-banana-2`** — only use other models if the user asks or the task benefits (e.g., transparent backgrounds → `gpt-image-1.5`)
226
227
 
227
228
  **When the user pastes a URL** to an image, audio, or video file, offer to save it as a resource using `add_from_url`.
228
229
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovelybunch/core",
3
- "version": "1.0.76-alpha.1",
3
+ "version": "1.0.76-alpha.11",
4
4
  "description": "Core Coconut functionality",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -13,6 +13,10 @@
13
13
  "./logging": {
14
14
  "types": "./dist/logging/index.d.ts",
15
15
  "import": "./dist/logging/index.js"
16
+ },
17
+ "./pipelines": {
18
+ "types": "./dist/pipelines.d.ts",
19
+ "import": "./dist/pipelines.js"
16
20
  }
17
21
  },
18
22
  "files": [
@@ -38,7 +42,7 @@
38
42
  "test:ui": "vitest --ui"
39
43
  },
40
44
  "dependencies": {
41
- "@lovelybunch/types": "^1.0.76-alpha.1",
45
+ "@lovelybunch/types": "^1.0.76-alpha.11",
42
46
  "@slack/web-api": "^7.13.0",
43
47
  "fuse.js": "^7.0.0",
44
48
  "gray-matter": "^4.0.3",
@@ -1,17 +0,0 @@
1
- export declare const SCHEMA_REFERENCE_INSTRUCTION = "Consult the schema references in .nut/.schema (proposal.schema.md, project.schema.md, architecture.schema.md, agent.schema.md, knowledge.schema.md) so any updates you make follow the documented structure and include complete arrays for plan steps, dependencies, tags, labels, and comments.";
2
- export declare const PROJECT_REFERENCE_INSTRUCTION = "Use .nut/context/project.md and .nut/context/architecture.md for reference.";
3
- /**
4
- * Get instructions for change proposal (cp-*) workflows
5
- */
6
- export declare function getChangeProposalInstructions(proposalId: string, agentPaths: string[], customInstruction?: string, includeDefaultInstructions?: boolean): string[];
7
- /**
8
- * Get instructions for reviewing / preparing a change proposal (cp-*) before implementation.
9
- * Assesses readiness without starting any actual work.
10
- */
11
- export declare function getPrepareChangeProposalInstructions(proposalId: string, agentPaths: string[], customInstruction?: string): string[];
12
- /**
13
- * Get instructions for agent (ag-*) workflows
14
- * Agent content and custom instructions drive the behavior
15
- */
16
- export declare function getAgentInstructions(agentPaths: string[], customInstruction?: string): string[];
17
- //# sourceMappingURL=agent-instructions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agent-instructions.d.ts","sourceRoot":"","sources":["../src/agent-instructions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B,sSAC4P,CAAC;AACtS,eAAO,MAAM,6BAA6B,gFACqC,CAAA;AAE/E;;GAEG;AACH,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAAE,EACpB,iBAAiB,CAAC,EAAE,MAAM,EAC1B,0BAA0B,GAAE,OAAc,GACzC,MAAM,EAAE,CA0EV;AAED;;;GAGG;AACH,wBAAgB,oCAAoC,CAClD,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAAE,EACpB,iBAAiB,CAAC,EAAE,MAAM,GACzB,MAAM,EAAE,CAqEV;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,MAAM,EAAE,EACpB,iBAAiB,CAAC,EAAE,MAAM,GACzB,MAAM,EAAE,CAgBV"}