@lovelybunch/core 1.0.76-alpha.1 → 1.0.76-alpha.3
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/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/mail.d.ts +30 -30
- package/dist/pipeline-builders.d.ts +49 -0
- package/dist/pipeline-builders.d.ts.map +1 -0
- package/dist/pipeline-builders.js +208 -0
- package/dist/pipeline-builders.js.map +1 -0
- package/dist/pipelines.d.ts +4 -0
- package/dist/pipelines.d.ts.map +1 -0
- package/dist/pipelines.js +3 -0
- package/dist/pipelines.js.map +1 -0
- package/dist/skill-instructions.d.ts +3 -3
- package/dist/skill-instructions.d.ts.map +1 -1
- package/dist/skill-instructions.js +81 -49
- package/dist/skill-instructions.js.map +1 -1
- package/dist/tasks.d.ts +76 -76
- package/package.json +6 -2
- package/dist/agent-instructions.d.ts +0 -17
- package/dist/agent-instructions.d.ts.map +0 -1
- package/dist/agent-instructions.js +0 -160
- package/dist/agent-instructions.js.map +0 -1
- package/dist/change-proposal.d.ts +0 -74
- package/dist/change-proposal.d.ts.map +0 -1
- package/dist/change-proposal.js +0 -207
- package/dist/change-proposal.js.map +0 -1
- package/dist/proposals.d.ts +0 -765
- package/dist/proposals.d.ts.map +0 -1
- package/dist/proposals.js +0 -483
- package/dist/proposals.js.map +0 -1
|
@@ -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 (
|
|
4
|
+
* Get instructions for change task (task-*) workflows
|
|
5
5
|
*/
|
|
6
|
-
export function getChangeTaskInstructions(
|
|
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/${
|
|
16
|
-
`- Retrieve your firstName, lastName, and email address from: .nut/config.json and use this identity
|
|
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
|
-
|
|
23
|
-
|
|
22
|
+
`1. Before beginning any work, set the task to active:`,
|
|
23
|
+
` nut task update ${taskId} --status active`,
|
|
24
24
|
``,
|
|
25
|
-
|
|
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
|
-
|
|
28
|
-
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
`
|
|
37
|
-
`
|
|
38
|
-
|
|
39
|
-
` -
|
|
40
|
-
`
|
|
41
|
-
` -
|
|
42
|
-
|
|
43
|
-
`
|
|
44
|
-
`-
|
|
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 (
|
|
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
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
`-
|
|
88
|
-
`-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
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
|
-
|
|
98
|
-
|
|
99
|
-
`
|
|
100
|
-
`
|
|
101
|
-
|
|
102
|
-
`
|
|
103
|
-
` -
|
|
104
|
-
`
|
|
105
|
-
|
|
106
|
-
`
|
|
107
|
-
|
|
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
|
|
119
|
-
|
|
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,
|
|
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,MAAc,EACd,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,gBAAgB,MAAM,KAAK;YAC3B,mJ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