@project-ava-supernova/core 0.2.188 → 0.2.189
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/agent/agent.d.ts.map +1 -1
- package/dist/agent/agent.js +10 -2
- package/dist/agent/agent.js.map +1 -1
- package/dist/agent/mode-tags.d.ts.map +1 -1
- package/dist/agent/mode-tags.js +3 -1
- package/dist/agent/mode-tags.js.map +1 -1
- package/dist/agent/social-craft.d.ts +1 -1
- package/dist/agent/social-craft.d.ts.map +1 -1
- package/dist/agent/social-craft.js +1 -1
- package/dist/agent/system-prompt.d.ts +13 -18
- package/dist/agent/system-prompt.d.ts.map +1 -1
- package/dist/agent/system-prompt.js +86 -37
- package/dist/agent/system-prompt.js.map +1 -1
- package/dist/brainstorm/brainstorm-store.d.ts +47 -25
- package/dist/brainstorm/brainstorm-store.d.ts.map +1 -1
- package/dist/brainstorm/brainstorm-store.js +221 -104
- package/dist/brainstorm/brainstorm-store.js.map +1 -1
- package/dist/brainstorm/page.d.ts +41 -0
- package/dist/brainstorm/page.d.ts.map +1 -0
- package/dist/brainstorm/page.js +109 -0
- package/dist/brainstorm/page.js.map +1 -0
- package/dist/brainstorm/types.d.ts +75 -19
- package/dist/brainstorm/types.d.ts.map +1 -1
- package/dist/brainstorm/types.js +19 -14
- package/dist/brainstorm/types.js.map +1 -1
- package/dist/brainstorm/work-plans.d.ts +23 -0
- package/dist/brainstorm/work-plans.d.ts.map +1 -0
- package/dist/brainstorm/work-plans.js +56 -0
- package/dist/brainstorm/work-plans.js.map +1 -0
- package/dist/brand/brand-kits.d.ts +17 -0
- package/dist/brand/brand-kits.d.ts.map +1 -1
- package/dist/brand/brand-kits.js +10 -0
- package/dist/brand/brand-kits.js.map +1 -1
- package/dist/config/personality.js +1 -1
- package/dist/docs/content/concepts.js +1 -1
- package/dist/docs/content/concepts.js.map +1 -1
- package/dist/docs/content/reference.js +1 -1
- package/dist/docs/content/reference.js.map +1 -1
- package/dist/docs/content/start.js +2 -2
- package/dist/docs/content/start.js.map +1 -1
- package/dist/docs/data/modes.d.ts.map +1 -1
- package/dist/docs/data/modes.js +3 -9
- package/dist/docs/data/modes.js.map +1 -1
- package/dist/docs/data/personas.js +4 -4
- package/dist/docs/data/personas.js.map +1 -1
- package/dist/docs/data/shortcuts.d.ts.map +1 -1
- package/dist/docs/data/shortcuts.js +8 -7
- package/dist/docs/data/shortcuts.js.map +1 -1
- package/dist/docs/i18n/translations.d.ts.map +1 -1
- package/dist/docs/i18n/translations.js +1 -1
- package/dist/docs/i18n/translations.js.map +1 -1
- package/dist/history/conversation-title.d.ts +1 -1
- package/dist/history/conversation-title.d.ts.map +1 -1
- package/dist/history/conversation-title.js +1 -0
- package/dist/history/conversation-title.js.map +1 -1
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +88 -3
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +88 -3
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +84 -0
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +88 -3
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +88 -3
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +88 -3
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +88 -3
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/id.d.ts.map +1 -1
- package/dist/i18n/locales/id.js +88 -3
- package/dist/i18n/locales/id.js.map +1 -1
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +88 -3
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +88 -3
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/ko.d.ts.map +1 -1
- package/dist/i18n/locales/ko.js +88 -3
- package/dist/i18n/locales/ko.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +88 -3
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +88 -3
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +88 -3
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +88 -3
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/th.d.ts.map +1 -1
- package/dist/i18n/locales/th.js +88 -3
- package/dist/i18n/locales/th.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +88 -3
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/uk.d.ts.map +1 -1
- package/dist/i18n/locales/uk.js +88 -3
- package/dist/i18n/locales/uk.js.map +1 -1
- package/dist/i18n/locales/vi.d.ts.map +1 -1
- package/dist/i18n/locales/vi.js +88 -3
- package/dist/i18n/locales/vi.js.map +1 -1
- package/dist/i18n/locales/zh-CN.d.ts.map +1 -1
- package/dist/i18n/locales/zh-CN.js +88 -3
- package/dist/i18n/locales/zh-CN.js.map +1 -1
- package/dist/i18n/locales/zh-TW.d.ts.map +1 -1
- package/dist/i18n/locales/zh-TW.js +88 -3
- package/dist/i18n/locales/zh-TW.js.map +1 -1
- package/dist/index.d.ts +6 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/memory/ambient-capture.js +1 -1
- package/dist/memory/ambient-capture.js.map +1 -1
- package/dist/personas/definitions.d.ts.map +1 -1
- package/dist/personas/definitions.js +55 -42
- package/dist/personas/definitions.js.map +1 -1
- package/dist/tools/brainstorm-plan.d.ts +25 -0
- package/dist/tools/brainstorm-plan.d.ts.map +1 -0
- package/dist/tools/brainstorm-plan.js +179 -0
- package/dist/tools/brainstorm-plan.js.map +1 -0
- package/dist/tools/brainstorm-session.d.ts +14 -12
- package/dist/tools/brainstorm-session.d.ts.map +1 -1
- package/dist/tools/brainstorm-session.js +220 -113
- package/dist/tools/brainstorm-session.js.map +1 -1
- package/dist/tools/create-project.js +1 -1
- package/dist/tools/create-project.js.map +1 -1
- package/dist/tools/open-brainstorm-room.d.ts +22 -0
- package/dist/tools/open-brainstorm-room.d.ts.map +1 -0
- package/dist/tools/open-brainstorm-room.js +40 -0
- package/dist/tools/open-brainstorm-room.js.map +1 -0
- package/dist/tools/switch-mode.d.ts.map +1 -1
- package/dist/tools/switch-mode.js +4 -3
- package/dist/tools/switch-mode.js.map +1 -1
- package/dist/tools/tool-registry.d.ts.map +1 -1
- package/dist/tools/tool-registry.js +8 -1
- package/dist/tools/tool-registry.js.map +1 -1
- package/dist/tools/tool-request-words.d.ts.map +1 -1
- package/dist/tools/tool-request-words.js +4 -0
- package/dist/tools/tool-request-words.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,176 +1,264 @@
|
|
|
1
|
-
import { BrainstormStore } from '../brainstorm/brainstorm-store.js';
|
|
1
|
+
import { BrainstormStore, addChange, normaliseKind, setExperience, setPlan, tickSteps } from '../brainstorm/brainstorm-store.js';
|
|
2
|
+
import { BRAINSTORM_KINDS } from '../brainstorm/types.js';
|
|
3
|
+
import { kitForProject, proposeBrandKit, readBrandKit, updateBrandKit } from '../brand/brand-kits.js';
|
|
2
4
|
/**
|
|
3
|
-
*
|
|
5
|
+
* Brainstorms, as a tool (plan Decisions/plans/2026-11-17-brainstorm.md).
|
|
4
6
|
*
|
|
5
7
|
* Brainstorm mode is for someone who is not ready to commit yet. If nothing is
|
|
6
|
-
* written down until they commit, the
|
|
7
|
-
* lost — explore five ideas over an evening, pick none, close the app, and
|
|
8
|
-
* Thursday starts from nothing.
|
|
9
|
-
* relieve.
|
|
8
|
+
* written down until they commit, the brainstorms most worth keeping are the
|
|
9
|
+
* ones lost — explore five ideas over an evening, pick none, close the app, and
|
|
10
|
+
* Thursday starts from nothing. So it's saved as it happens, locally.
|
|
10
11
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
12
|
+
* A brainstorm holds: what KIND of fragment it was (project, feature,
|
|
13
|
+
* experience, direction, not sure), the ideas — including the ones turned down
|
|
14
|
+
* and why — a living plan (steps that get ticked, and what changed while
|
|
15
|
+
* building), the experience their users should have, and the project it's
|
|
16
|
+
* assigned to (a link; the file stays in ~/.ava/brainstorm).
|
|
13
17
|
*
|
|
14
|
-
* NOT memory. Memory holds durable facts about the PERSON
|
|
15
|
-
*
|
|
16
|
-
* forever. This holds the session: the ideas, the ones turned down, and why.
|
|
17
|
-
* Saving every musing to memory degrades recall and leaves Ava quoting
|
|
18
|
-
* half-thoughts back as settled fact.
|
|
18
|
+
* NOT memory. Memory holds durable facts about the PERSON. This holds the
|
|
19
|
+
* thinking. The experience goes on to a brand kit — only with his yes.
|
|
19
20
|
*/
|
|
20
21
|
export class BrainstormSessionTool {
|
|
22
|
+
store;
|
|
21
23
|
name = 'brainstorm_session';
|
|
22
|
-
description = 'Keep and recall
|
|
23
|
-
'Stored locally
|
|
24
|
-
'Use recall at the START of a brainstorm to see what they were circling before; save as ideas emerge; ' +
|
|
25
|
-
'attach when a project folder gets created so the thinking follows the project.';
|
|
24
|
+
description = 'Keep and recall brainstorms — the ideas (including parked and rejected ones, and why), a living plan, the experience ' +
|
|
25
|
+
'their users should have, and the project it is assigned to. Stored locally in ~/.ava/brainstorm, never in a project.';
|
|
26
26
|
riskLevel = 'safe';
|
|
27
|
+
// experience_to_kit changes a brand kit: that one always asks (ToolRegistry.needsConfirmation).
|
|
27
28
|
requiresConfirmation = false;
|
|
28
29
|
schema = {
|
|
29
30
|
name: 'brainstorm_session',
|
|
30
|
-
description: '
|
|
31
|
-
'
|
|
32
|
-
'
|
|
31
|
+
description: 'Brainstorms, kept locally. recall — list them (call early; "you were circling this three weeks ago" is the most useful thing '
|
|
32
|
+
+ 'you can say to someone stuck). read — one in full. save — create or update one: its kind, headline, ideas, notes, plan '
|
|
33
|
+
+ '(summary + steps, small first then ambitious), ticks, changes, experience. assign — link it to a project folder (it stays '
|
|
34
|
+
+ 'here; Ava sees it while working in that project); project_path "" unassigns. experience_to_kit — save its experience to a '
|
|
35
|
+
+ 'brand kit (he always sees a card): the project\'s linked kit, a kit by id, or a new PROPOSED kit he agrees in Brand Kits, in the Creative Studio.',
|
|
33
36
|
parameters: {
|
|
34
37
|
type: 'object',
|
|
35
38
|
properties: {
|
|
36
|
-
action: {
|
|
37
|
-
|
|
38
|
-
enum: ['recall', 'save', 'attach', 'read'],
|
|
39
|
-
description: 'What to do',
|
|
40
|
-
},
|
|
41
|
-
session_id: {
|
|
42
|
-
type: 'string',
|
|
43
|
-
description: 'Session to update, read, or attach. Omit on save to start a new one.',
|
|
44
|
-
},
|
|
39
|
+
action: { type: 'string', enum: ['recall', 'read', 'save', 'assign', 'attach', 'experience_to_kit'], description: 'What to do' },
|
|
40
|
+
session_id: { type: 'string', description: 'The brainstorm. Omit on save to start a new one.' },
|
|
45
41
|
kind: {
|
|
46
42
|
type: 'string',
|
|
47
|
-
enum:
|
|
48
|
-
description: 'save:
|
|
49
|
-
|
|
50
|
-
headline: {
|
|
51
|
-
type: 'string',
|
|
52
|
-
description: 'save: what the session is about, in the user\'s own terms.',
|
|
43
|
+
enum: BRAINSTORM_KINDS,
|
|
44
|
+
description: 'save: what kind of fragment it is — project (something new), feature (an addition to an existing project), '
|
|
45
|
+
+ 'experience (what their users should feel), direction (where an existing project goes next), unsure (working it out).',
|
|
53
46
|
},
|
|
47
|
+
headline: { type: 'string', description: 'save: what it is about, in their own words.' },
|
|
54
48
|
ideas: {
|
|
55
49
|
type: 'array',
|
|
56
|
-
description: 'save: the ideas so far. Include rejected ones WITH a reason — an idea turned down and not recorded '
|
|
57
|
-
'gets proposed again next time, and the reason is the useful half.',
|
|
50
|
+
description: 'save: the ideas so far. Include rejected and parked ones WITH a reason — an idea turned down and not recorded gets proposed again next time.',
|
|
58
51
|
items: {
|
|
59
52
|
type: 'object',
|
|
60
53
|
properties: {
|
|
61
54
|
title: { type: 'string', description: 'Short name' },
|
|
62
55
|
summary: { type: 'string', description: 'A sentence or two — enough to recognise it months later' },
|
|
63
|
-
status: {
|
|
64
|
-
|
|
65
|
-
enum: ['candidate', 'chosen', 'parked', 'rejected'],
|
|
66
|
-
description: 'Where it got to',
|
|
67
|
-
},
|
|
68
|
-
reason: { type: 'string', description: 'Why parked or rejected' },
|
|
56
|
+
status: { type: 'string', enum: ['candidate', 'chosen', 'parked', 'rejected'] },
|
|
57
|
+
reason: { type: 'string', description: 'Why parked or rejected, in their words where possible' },
|
|
69
58
|
},
|
|
70
59
|
required: ['title', 'summary', 'status'],
|
|
71
60
|
},
|
|
72
61
|
},
|
|
73
|
-
notes: {
|
|
62
|
+
notes: { type: 'array', items: { type: 'string' }, description: 'save: threads worth keeping that are not ideas — constraints, tangents, context.' },
|
|
63
|
+
plan: {
|
|
64
|
+
type: 'object',
|
|
65
|
+
description: 'save: the plan for the chosen idea. Steps replace the list (ticks are kept for steps with the same text).',
|
|
66
|
+
properties: {
|
|
67
|
+
summary: { type: 'string', description: 'What it is, in a sentence or two.' },
|
|
68
|
+
steps: {
|
|
69
|
+
type: 'array',
|
|
70
|
+
items: {
|
|
71
|
+
type: 'object',
|
|
72
|
+
properties: {
|
|
73
|
+
text: { type: 'string' },
|
|
74
|
+
tier: { type: 'string', enum: ['small', 'ambitious'], description: 'small — the finishable first version; ambitious — after it.' },
|
|
75
|
+
done: { type: 'boolean' },
|
|
76
|
+
},
|
|
77
|
+
required: ['text'],
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
tick: { type: 'array', items: { type: 'string' }, description: 'save: steps done (by id or text).' },
|
|
83
|
+
untick: { type: 'array', items: { type: 'string' }, description: 'save: steps no longer done.' },
|
|
84
|
+
changes: {
|
|
74
85
|
type: 'array',
|
|
75
|
-
|
|
76
|
-
|
|
86
|
+
description: 'save: what happened to the plan — changed (and WHY), a new idea the work turned up, or a note.',
|
|
87
|
+
items: {
|
|
88
|
+
type: 'object',
|
|
89
|
+
properties: {
|
|
90
|
+
type: { type: 'string', enum: ['changed', 'new-idea', 'note'] },
|
|
91
|
+
text: { type: 'string' },
|
|
92
|
+
},
|
|
93
|
+
required: ['type', 'text'],
|
|
94
|
+
},
|
|
77
95
|
},
|
|
78
|
-
|
|
79
|
-
type: '
|
|
80
|
-
description: '
|
|
96
|
+
experience: {
|
|
97
|
+
type: 'object',
|
|
98
|
+
description: 'save: what their users should feel. Fields given replace those fields.',
|
|
99
|
+
properties: {
|
|
100
|
+
words: { type: 'array', items: { type: 'string' }, description: 'The words for it: calm, in control…' },
|
|
101
|
+
not_words: { type: 'array', items: { type: 'string' }, description: 'What it must never be: guilty, rushed…' },
|
|
102
|
+
principles: {
|
|
103
|
+
type: 'array',
|
|
104
|
+
description: '3–5 principles, each with what it means in practice.',
|
|
105
|
+
items: {
|
|
106
|
+
type: 'object',
|
|
107
|
+
properties: { title: { type: 'string' }, do: { type: 'string' }, dont: { type: 'string' } },
|
|
108
|
+
required: ['title', 'do', 'dont'],
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
},
|
|
81
112
|
},
|
|
113
|
+
project_path: { type: 'string', description: 'assign: the project folder\'s absolute path; "" to unassign.' },
|
|
114
|
+
kit_id: { type: 'string', description: 'experience_to_kit: a particular kit. Omit to use the project\'s linked kit, or propose a new one.' },
|
|
115
|
+
kit_name: { type: 'string', description: 'experience_to_kit: the name for a new proposed kit.' },
|
|
82
116
|
},
|
|
83
117
|
required: ['action'],
|
|
84
118
|
},
|
|
85
119
|
};
|
|
120
|
+
constructor(store = new BrainstormStore()) {
|
|
121
|
+
this.store = store;
|
|
122
|
+
}
|
|
86
123
|
async execute(args, context) {
|
|
87
|
-
const store =
|
|
124
|
+
const store = this.store;
|
|
88
125
|
const action = String(args.action ?? '');
|
|
89
126
|
const projectRoot = context.cwd;
|
|
127
|
+
const id = args.session_id ? String(args.session_id) : '';
|
|
90
128
|
try {
|
|
91
129
|
switch (action) {
|
|
92
130
|
case 'recall': {
|
|
93
|
-
const
|
|
94
|
-
if (
|
|
95
|
-
return { success: true, output: 'No previous
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
131
|
+
const all = await store.list(projectRoot);
|
|
132
|
+
if (all.length === 0)
|
|
133
|
+
return { success: true, output: 'No previous brainstorms. This is a first conversation.' };
|
|
134
|
+
const lines = all.slice(0, 15).map((s) => {
|
|
135
|
+
const bits = [
|
|
136
|
+
s.updatedAt.slice(0, 10), s.kind, s.headline,
|
|
137
|
+
`${s.ideaCount} ideas${s.openCount ? `, ${s.openCount} still open` : ''}`,
|
|
138
|
+
s.stepsTotal ? `plan ${s.stepsDone}/${s.stepsTotal} done` : '',
|
|
139
|
+
s.hasExperience ? 'has an experience' : '',
|
|
140
|
+
s.projectPath ? `assigned to ${s.projectPath}` : 'not assigned',
|
|
141
|
+
].filter(Boolean);
|
|
142
|
+
return `- [${s.id}] ${bits.join(' · ')}`;
|
|
101
143
|
});
|
|
102
|
-
return {
|
|
103
|
-
success: true,
|
|
104
|
-
output: `${sessions.length} previous session(s):\n${lines.join('\n')}\n\nRead one with action="read" before assuming what was covered.`,
|
|
105
|
-
};
|
|
144
|
+
return { success: true, output: `${all.length} brainstorm(s):\n${lines.join('\n')}\n\nRead one with action="read" before assuming what it covered.` };
|
|
106
145
|
}
|
|
107
146
|
case 'read': {
|
|
108
|
-
const id = String(args.session_id ?? '');
|
|
109
147
|
if (!id)
|
|
110
|
-
return { success: false, output: 'session_id is required to read a
|
|
111
|
-
const
|
|
112
|
-
|
|
113
|
-
return { success: false, output: `No session ${id}.` };
|
|
114
|
-
return { success: true, output: JSON.stringify(session, null, 2) };
|
|
148
|
+
return { success: false, output: 'session_id is required to read a brainstorm.' };
|
|
149
|
+
const s = await store.get(id);
|
|
150
|
+
return s ? { success: true, output: JSON.stringify(s, null, 2) } : { success: false, output: `No brainstorm ${id}.` };
|
|
115
151
|
}
|
|
116
152
|
case 'save': {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
session.headline = String(args.headline);
|
|
128
|
-
}
|
|
129
|
-
const incoming = Array.isArray(args.ideas) ? args.ideas : [];
|
|
130
|
-
for (const raw of incoming) {
|
|
131
|
-
if (!raw?.title)
|
|
132
|
-
continue;
|
|
133
|
-
const title = String(raw.title);
|
|
134
|
-
const existing = session.ideas.find((i) => i.title === title);
|
|
135
|
-
if (existing) {
|
|
136
|
-
existing.summary = String(raw.summary ?? existing.summary);
|
|
137
|
-
existing.status = raw.status ?? existing.status;
|
|
138
|
-
if (raw.reason)
|
|
139
|
-
existing.reason = String(raw.reason);
|
|
140
|
-
existing.updatedAt = new Date().toISOString();
|
|
141
|
-
}
|
|
142
|
-
else {
|
|
143
|
-
store.addIdea(session, {
|
|
144
|
-
title,
|
|
145
|
-
summary: String(raw.summary ?? ''),
|
|
146
|
-
status: raw.status ?? 'candidate',
|
|
147
|
-
...(raw.reason ? { reason: String(raw.reason) } : {}),
|
|
148
|
-
});
|
|
149
|
-
}
|
|
153
|
+
let s = id ? await store.get(id) : null;
|
|
154
|
+
if (id && !s)
|
|
155
|
+
return { success: false, output: `No brainstorm ${id}. Omit session_id to start a new one.` };
|
|
156
|
+
if (!s)
|
|
157
|
+
s = store.create(normaliseKind(args.kind ?? 'unsure'), String(args.headline ?? 'Untitled brainstorm'));
|
|
158
|
+
else {
|
|
159
|
+
if (args.kind)
|
|
160
|
+
s.kind = normaliseKind(args.kind);
|
|
161
|
+
if (args.headline)
|
|
162
|
+
s.headline = String(args.headline);
|
|
150
163
|
}
|
|
164
|
+
mergeIdeas(store, s, args.ideas);
|
|
151
165
|
if (Array.isArray(args.notes)) {
|
|
152
166
|
for (const n of args.notes) {
|
|
153
167
|
const note = String(n).trim();
|
|
154
|
-
if (note && !
|
|
155
|
-
|
|
168
|
+
if (note && !s.notes.includes(note))
|
|
169
|
+
s.notes.push(note);
|
|
156
170
|
}
|
|
157
171
|
}
|
|
158
|
-
|
|
172
|
+
if (args.plan && typeof args.plan === 'object')
|
|
173
|
+
setPlan(s, args.plan);
|
|
174
|
+
const ticked = Array.isArray(args.tick) ? tickSteps(s, args.tick.map(String), true) : 0;
|
|
175
|
+
if (Array.isArray(args.untick))
|
|
176
|
+
tickSteps(s, args.untick.map(String), false);
|
|
177
|
+
for (const c of (Array.isArray(args.changes) ? args.changes : [])) {
|
|
178
|
+
const type = ['changed', 'new-idea', 'note'].find((t) => t === c?.type) ?? 'note';
|
|
179
|
+
// Work in a project writes through its own tool (Phase 4), marked 'work'.
|
|
180
|
+
addChange(s, { type, text: String(c?.text ?? ''), from: 'brainstorm' });
|
|
181
|
+
}
|
|
182
|
+
if (args.experience && typeof args.experience === 'object') {
|
|
183
|
+
const e = args.experience;
|
|
184
|
+
setExperience(s, {
|
|
185
|
+
words: e.words,
|
|
186
|
+
notWords: (e.not_words ?? e.notWords),
|
|
187
|
+
principles: e.principles,
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
await store.save(s);
|
|
191
|
+
const steps = s.plan?.steps ?? [];
|
|
159
192
|
return {
|
|
160
193
|
success: true,
|
|
161
|
-
output: `Saved
|
|
194
|
+
output: `Saved brainstorm ${s.id} (${s.kind}: ${s.ideas.length} ideas${steps.length ? `, plan ${steps.filter((x) => x.done).length}/${steps.length} done` : ''}${ticked ? `, ${ticked} ticked` : ''}${s.experience ? ', experience kept' : ''}). Kept locally — not in any project.`,
|
|
162
195
|
};
|
|
163
196
|
}
|
|
197
|
+
case 'assign':
|
|
164
198
|
case 'attach': {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
199
|
+
if (!id)
|
|
200
|
+
return { success: false, output: 'assign needs session_id.' };
|
|
201
|
+
const path = String(args.project_path ?? '').trim();
|
|
202
|
+
const s = await store.assign(id, path || null);
|
|
203
|
+
if (!s)
|
|
204
|
+
return { success: false, output: `No brainstorm ${id}.` };
|
|
205
|
+
return {
|
|
206
|
+
success: true,
|
|
207
|
+
output: path
|
|
208
|
+
? `Brainstorm ${id} is assigned to ${path}. It stays in Brainstorm; whenever work happens in that project, Ava sees it and keeps its plan up to date.`
|
|
209
|
+
: `Brainstorm ${id} is no longer assigned to a project.`,
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
case 'experience_to_kit': {
|
|
213
|
+
if (!id)
|
|
214
|
+
return { success: false, output: 'experience_to_kit needs session_id.' };
|
|
215
|
+
const s = await store.get(id);
|
|
216
|
+
if (!s)
|
|
217
|
+
return { success: false, output: `No brainstorm ${id}.` };
|
|
218
|
+
const e = s.experience;
|
|
219
|
+
if (!e || (!e.words.length && !e.principles.length))
|
|
220
|
+
return { success: false, output: 'This brainstorm has no experience yet: pin it down first (save with experience).' };
|
|
221
|
+
const experience = { words: e.words, notWords: e.notWords, principles: e.principles };
|
|
222
|
+
const reasoning = `From the brainstorm "${s.headline}": what the people using it should feel.`;
|
|
223
|
+
let kitId = args.kit_id ? String(args.kit_id) : '';
|
|
224
|
+
if (!kitId && s.projectPath) {
|
|
225
|
+
const found = await kitForProject(s.projectPath);
|
|
226
|
+
if (found.status === 'linked')
|
|
227
|
+
kitId = found.kit.id;
|
|
169
228
|
}
|
|
170
|
-
|
|
171
|
-
if (
|
|
172
|
-
|
|
173
|
-
|
|
229
|
+
let saved;
|
|
230
|
+
if (kitId) {
|
|
231
|
+
const kit = await readBrandKit(kitId);
|
|
232
|
+
if (!kit)
|
|
233
|
+
return { success: false, output: `There is no kit ${kitId}.` };
|
|
234
|
+
if (kit.status === 'proposed') {
|
|
235
|
+
const r = await proposeBrandKit(kitId, { experience }, kit.reasoning ?? reasoning, kit.proposedFor ?? s.projectPath);
|
|
236
|
+
if ('refused' in r)
|
|
237
|
+
return { success: false, output: r.refused };
|
|
238
|
+
saved = { id: r.id, name: r.name, proposed: true };
|
|
239
|
+
}
|
|
240
|
+
else {
|
|
241
|
+
const r = await updateBrandKit(kitId, { experience });
|
|
242
|
+
if (!r)
|
|
243
|
+
return { success: false, output: `There is no kit ${kitId}.` };
|
|
244
|
+
saved = { id: r.id, name: r.name, proposed: false };
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
else {
|
|
248
|
+
const name = String(args.kit_name ?? '').trim() || s.headline;
|
|
249
|
+
const r = await proposeBrandKit(undefined, { name, experience }, reasoning, s.projectPath ?? null);
|
|
250
|
+
if ('refused' in r)
|
|
251
|
+
return { success: false, output: r.refused };
|
|
252
|
+
saved = { id: r.id, name: r.name, proposed: true };
|
|
253
|
+
}
|
|
254
|
+
s.experience = { ...e, kitId: saved.id };
|
|
255
|
+
await store.save(s);
|
|
256
|
+
return {
|
|
257
|
+
success: true,
|
|
258
|
+
output: saved.proposed
|
|
259
|
+
? `The experience is in the proposed kit "${saved.name}" [${saved.id}]. It is not in use until he agrees the kit in Brand Kits, in the Creative Studio — tell him that's where to look.`
|
|
260
|
+
: `The experience is saved in the brand kit "${saved.name}" [${saved.id}]; every mode working with that kit now designs and writes for it.`,
|
|
261
|
+
};
|
|
174
262
|
}
|
|
175
263
|
default:
|
|
176
264
|
return { success: false, output: `Unknown action "${action}".` };
|
|
@@ -181,4 +269,23 @@ export class BrainstormSessionTool {
|
|
|
181
269
|
}
|
|
182
270
|
}
|
|
183
271
|
}
|
|
272
|
+
function mergeIdeas(store, s, incoming) {
|
|
273
|
+
for (const raw of (Array.isArray(incoming) ? incoming : [])) {
|
|
274
|
+
if (!raw?.title)
|
|
275
|
+
continue;
|
|
276
|
+
const title = String(raw.title);
|
|
277
|
+
const existing = s.ideas.find((i) => i.title === title);
|
|
278
|
+
const status = ['candidate', 'chosen', 'parked', 'rejected'].find((x) => x === raw.status);
|
|
279
|
+
if (existing) {
|
|
280
|
+
existing.summary = String(raw.summary ?? existing.summary);
|
|
281
|
+
existing.status = status ?? existing.status;
|
|
282
|
+
if (raw.reason)
|
|
283
|
+
existing.reason = String(raw.reason);
|
|
284
|
+
existing.updatedAt = new Date().toISOString();
|
|
285
|
+
}
|
|
286
|
+
else {
|
|
287
|
+
store.addIdea(s, { title, summary: String(raw.summary ?? ''), status: status ?? 'candidate', ...(raw.reason ? { reason: String(raw.reason) } : {}) });
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
184
291
|
//# sourceMappingURL=brainstorm-session.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brainstorm-session.js","sourceRoot":"","sources":["../../src/tools/brainstorm-session.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAGpE;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,OAAO,qBAAqB;IACvB,IAAI,GAAG,oBAAoB,CAAC;IAC5B,WAAW,GAClB,kGAAkG;QAClG,yEAAyE;QACzE,uGAAuG;QACvG,gFAAgF,CAAC;IAC1E,SAAS,GAAkB,MAAM,CAAC;IAClC,oBAAoB,GAAG,KAAK,CAAC;IAE7B,MAAM,GAAmB;QAChC,IAAI,EAAE,oBAAoB;QAC1B,WAAW,EACT,kHAAkH;YAClH,4GAA4G;YAC5G,oGAAoG;QACtG,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC;oBAC1C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AAM,CAAqC,CAAC;QAC1I,IAAI,QAAQ,EAAE,CAAC;YACb,QAAQ,CAAC,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,OAAO,IAAI,QAAQ,CAAC,OAAO,CAAC,CAAC;YAC3D,QAAQ,CAAC,MAAM,GAAG,MAAM,IAAI,QAAQ,CAAC,MAAM,CAAC;YAC5C,IAAI,GAAG,CAAC,MAAM;gBAAE,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;YACrD,QAAQ,CAAC,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;QAChD,CAAC;aAAM,CAAC;YACN,KAAK,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,GAAG,CAAC,OAAO,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,IAAI,WAAW,EAAE,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QACxJ,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -38,7 +38,7 @@ export class CreateProjectTool {
|
|
|
38
38
|
schema = {
|
|
39
39
|
name: 'create_project',
|
|
40
40
|
description: 'Create a new, empty project folder in the user\'s projects home ' +
|
|
41
|
-
'(
|
|
41
|
+
'(~/.ava/projects by default) and return its absolute path. ' +
|
|
42
42
|
'Use this when the user asks to START A NEW PROJECT rather than work on ' +
|
|
43
43
|
'the one that is open — every other file tool is restricted to the ' +
|
|
44
44
|
'currently open project, so without this a new project would be created ' +
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-project.js","sourceRoot":"","sources":["../../src/tools/create-project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,kBA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AG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE;aAC1F,CAAC;QACJ,CAAC;QAED,qEAAqE;QACrE,wEAAwE;QACxE,2EAA2E;QAC3E,mEAAmE;QACnE,yEAAyE;QACzE,0EAA0E;QAC1E,IAAI,SAAS,GAAG,KAAK,CAAC;QACtB,IAAI,CAAC;YACH,MAAM,uBAAuB,CAAC,MAAM,CAAC,CAAC;YACtC,SAAS,GAAG,IAAI,CAAC;QACnB,CAAC;QAAC,MAAM,CAAC;YACP,yEAAyE;YACzE,kEAAkE;YAClE,8CAA8C;QAChD,CAAC;QAED,OAAO;YACL,OAAO,EAAE,IAAI;YACb,MAAM,EACJ,WAAW,MAAM,MAAM;gBACvB,CAAC,SAAS;oBACR,CAAC,CAAC,oEAAoE;wBACpE,iCAAiC;oBACnC,CAAC,CAAC,EAAE,CAAC;gBACP,gEAAgE;gBAChE,kEAAkE;gBAClE,wCAAwC;YAC1C,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE;SACrE,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Tool, ToolResult, ToolExecutionContext, ToolRiskLevel } from './types.js';
|
|
2
|
+
import type { FunctionSchema } from '../providers/types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Hand off from the main chat to the Brainstorm room (plan
|
|
5
|
+
* 2026-11-17-brainstorm, Phase 3) — the focused space where a fragment of an
|
|
6
|
+
* idea becomes ideas, a plan and an experience, all kept and visible beside the
|
|
7
|
+
* chat. Mirror of open_learning_room: the surface renders a button; tapping it
|
|
8
|
+
* opens the room on a NEW brainstorm and sends the primer as its first message,
|
|
9
|
+
* so the thread continues instead of starting cold.
|
|
10
|
+
*
|
|
11
|
+
* Since 17 Nov 2026 the room is the ONLY place brainstorming happens — it is no
|
|
12
|
+
* longer a main-chat mode — so this is how Code, Plan and Chat get there.
|
|
13
|
+
*/
|
|
14
|
+
export declare class OpenBrainstormRoomTool implements Tool {
|
|
15
|
+
readonly name = "open_brainstorm_room";
|
|
16
|
+
readonly description = "Hand the user to the Brainstorm room to work an idea through properly \u2014 its ideas, plan and experience kept and visible beside the chat. Shows a button that takes them there.";
|
|
17
|
+
readonly riskLevel: ToolRiskLevel;
|
|
18
|
+
readonly requiresConfirmation = false;
|
|
19
|
+
readonly schema: FunctionSchema;
|
|
20
|
+
execute(_args: Record<string, unknown>, _context: ToolExecutionContext): Promise<ToolResult>;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=open-brainstorm-room.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open-brainstorm-room.d.ts","sourceRoot":"","sources":["../../src/tools/open-brainstorm-room.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AACxF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAE5D;;;;;;;;;;GAUG;AACH,qBAAa,sBAAuB,YAAW,IAAI;IACjD,QAAQ,CAAC,IAAI,0BAA0B;IACvC,QAAQ,CAAC,WAAW,yLAC+J;IACnL,QAAQ,CAAC,SAAS,EAAE,aAAa,CAAU;IAC3C,QAAQ,CAAC,oBAAoB,SAAS;IAEtC,QAAQ,CAAC,MAAM,EAAE,cAAc,CAoB7B;IAEI,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,EAAE,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC;CAGnG"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hand off from the main chat to the Brainstorm room (plan
|
|
3
|
+
* 2026-11-17-brainstorm, Phase 3) — the focused space where a fragment of an
|
|
4
|
+
* idea becomes ideas, a plan and an experience, all kept and visible beside the
|
|
5
|
+
* chat. Mirror of open_learning_room: the surface renders a button; tapping it
|
|
6
|
+
* opens the room on a NEW brainstorm and sends the primer as its first message,
|
|
7
|
+
* so the thread continues instead of starting cold.
|
|
8
|
+
*
|
|
9
|
+
* Since 17 Nov 2026 the room is the ONLY place brainstorming happens — it is no
|
|
10
|
+
* longer a main-chat mode — so this is how Code, Plan and Chat get there.
|
|
11
|
+
*/
|
|
12
|
+
export class OpenBrainstormRoomTool {
|
|
13
|
+
name = 'open_brainstorm_room';
|
|
14
|
+
description = 'Hand the user to the Brainstorm room to work an idea through properly — its ideas, plan and experience kept and visible beside the chat. Shows a button that takes them there.';
|
|
15
|
+
riskLevel = 'safe';
|
|
16
|
+
requiresConfirmation = false;
|
|
17
|
+
schema = {
|
|
18
|
+
name: 'open_brainstorm_room',
|
|
19
|
+
description: 'Offer a one-tap jump to the Brainstorm room (the focused space where an idea — a project, a feature, an experience or a direction — '
|
|
20
|
+
+ 'becomes ideas, a plan and an experience, kept beside the chat). Brainstorming lives there, not in the main chat: use it whenever '
|
|
21
|
+
+ 'they want to brainstorm or work an idea through. Pair it with one warm line. A passing question about an idea you can just answer.',
|
|
22
|
+
parameters: {
|
|
23
|
+
type: 'object',
|
|
24
|
+
properties: {
|
|
25
|
+
topic: { type: 'string', description: 'What the brainstorm is about, so the button can name it. Omit if unclear.' },
|
|
26
|
+
primer: {
|
|
27
|
+
type: 'string',
|
|
28
|
+
description: 'Their idea so far, written in the FIRST PERSON as their opening message to the room — the real detail they gave '
|
|
29
|
+
+ '(the fragment, what it is for, how it should feel), e.g. "I want a budgeting app that feels calm — money stresses me out." '
|
|
30
|
+
+ 'When they tap through, the room sends this for them so the thread continues. Omit only if they gave no specifics.',
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
required: [],
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
async execute(_args, _context) {
|
|
37
|
+
return { success: true, output: 'Offered a jump to the Brainstorm room.' };
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=open-brainstorm-room.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open-brainstorm-room.js","sourceRoot":"","sources":["../../src/tools/open-brainstorm-room.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AACH,MAAM,OAAO,sBAAsB;IACxB,IAAI,GAAG,sBAAsB,CAAC;IAC9B,WAAW,GAClB,gLAAgL,CAAC;IAC1K,SAAS,GAAkB,MAAM,CAAC;IAClC,oBAAoB,GAAG,KAAK,CAAC;IAE7B,MAAM,GAAmB;QAChC,IAAI,EAAE,sBAAsB;QAC5B,WAAW,EACT,sIAAsI;cACpI,mIAAmI;cACnI,oIAAoI;QACxI,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,2EAA2E,EAAE;gBACnH,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,kHAAkH;0BAChH,6HAA6H;0BAC7H,mHAAmH;iBACxH;aACF;YACD,QAAQ,EAAE,EAAE;SACb;KACF,CAAC;IAEF,KAAK,CAAC,OAAO,CAAC,KAA8B,EAAE,QAA8B;QAC1E,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,wCAAwC,EAAE,CAAC;IAC7E,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch-mode.d.ts","sourceRoot":"","sources":["../../src/tools/switch-mode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AACxF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"switch-mode.d.ts","sourceRoot":"","sources":["../../src/tools/switch-mode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AACxF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAM5D,qBAAa,cAAe,YAAW,IAAI;IACzC,QAAQ,CAAC,IAAI,iBAAiB;IAC9B,QAAQ,CAAC,WAAW,yHAA0H;IAC9I,QAAQ,CAAC,SAAS,EAAE,aAAa,CAAU;IAC3C,QAAQ,CAAC,oBAAoB,QAAQ;IAErC,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;IAEhC;;;;;;;;OAQG;gBACS,gBAAgB,UAAO;IAgC7B,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,EAAE,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC;CAQnG"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
/** Modes offered on every surface.
|
|
2
|
-
|
|
1
|
+
/** Modes offered on every surface. Brainstorm is not one: it is a room (17 Nov
|
|
2
|
+
* 2026), reached with open_brainstorm_room, not a mode the main chat switches to. */
|
|
3
|
+
const CROSS_SURFACE_MODES = ['work', 'plan', 'chat', 'teach', 'security', 'write'];
|
|
3
4
|
export class SwitchModeTool {
|
|
4
5
|
name = 'switch_mode';
|
|
5
6
|
description = 'Offer to transition to a different mode when the current mode\'s work is complete. Always check with the user first.';
|
|
@@ -20,7 +21,7 @@ export class SwitchModeTool {
|
|
|
20
21
|
this.schema = {
|
|
21
22
|
name: 'switch_mode',
|
|
22
23
|
description: 'Offer to switch to a different mode when a natural transition point is reached. ' +
|
|
23
|
-
'Examples: Plan mode after plan approved → Work mode.
|
|
24
|
+
'Examples: Plan mode after plan approved → Work mode. An idea worked out in the Brainstorm room → Plan or Work. ' +
|
|
24
25
|
'Security after findings → Work to fix. Chat when a task is mentioned → Work or Plan. ' +
|
|
25
26
|
'The user will see this as a transition card and can confirm, add more context, or decline. ' +
|
|
26
27
|
'Always ask if there is anything to add before switching.',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch-mode.js","sourceRoot":"","sources":["../../src/tools/switch-mode.ts"],"names":[],"mappings":"AAGA
|
|
1
|
+
{"version":3,"file":"switch-mode.js","sourceRoot":"","sources":["../../src/tools/switch-mode.ts"],"names":[],"mappings":"AAGA;sFACsF;AACtF,MAAM,mBAAmB,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,CAAU,CAAC;AAE5F,MAAM,OAAO,cAAc;IAChB,IAAI,GAAG,aAAa,CAAC;IACrB,WAAW,GAAG,sHAAsH,CAAC;IACrI,SAAS,GAAkB,MAAM,CAAC;IAClC,oBAAoB,GAAG,IAAI,CAAC;IAE5B,MAAM,CAAiB;IAEhC;;;;;;;;OAQG;IACH,YAAY,gBAAgB,GAAG,IAAI;QACjC,MAAM,OAAO,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAAC,GAAG,mBAAmB,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,mBAAmB,CAAC,CAAC;QAClG,IAAI,CAAC,MAAM,GAAG;YACd,IAAI,EAAE,aAAa;YACnB,WAAW,EACT,kFAAkF;gBAClF,iHAAiH;gBACjH,uFAAuF;gBACvF,6FAA6F;gBAC7F,0DAA0D;YAC5D,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,WAAW,EAAE;wBACX,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,OAAO;wBACb,WAAW,EAAE,2BAA2B;qBACzC;oBACD,MAAM,EAAE;wBACN,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,8FAA8F;qBAC5G;oBACD,eAAe,EAAE;wBACf,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,gGAAgG;qBAC9G;iBACF;gBACD,QAAQ,EAAE,CAAC,aAAa,EAAE,QAAQ,EAAE,iBAAiB,CAAC;aACvD;SACA,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,KAA8B,EAAE,QAA8B;QAC1E,kFAAkF;QAClF,2EAA2E;QAC3E,OAAO;YACL,OAAO,EAAE,IAAI;YACb,MAAM,EAAE,4BAA4B;SACrC,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-registry.d.ts","sourceRoot":"","sources":["../../src/tools/tool-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,IAAI,EAAE,UAAU,EAAE,oBAAoB,EAAE,uBAAuB,EAC/D,cAAc,EAAE,YAAY,EAAE,kBAAkB,EAAE,aAAa,EAChE,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"tool-registry.d.ts","sourceRoot":"","sources":["../../src/tools/tool-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,IAAI,EAAE,UAAU,EAAE,oBAAoB,EAAE,uBAAuB,EAC/D,cAAc,EAAE,YAAY,EAAE,kBAAkB,EAAE,aAAa,EAChE,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AA0KxD,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAsE1D,CAAC;AASF,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAC3C,OAAO,CAAC,cAAc,EAAE,QAAQ,CAAC,EACjC,MAAM,CAAC,YAAY,EAAE,kBAAkB,CAAC,CAsCzC,CAAC;AAiBF,qBAAa,YAAY;IACvB,OAAO,CAAC,KAAK,CAA2B;IACxC,OAAO,CAAC,mBAAmB,CAAC,CAA0B;IACtD,OAAO,CAAC,cAAc,CAA4B;IAGlD,OAAO,CAAC,iBAAiB,CAA+C;IAExE,OA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