dj-claude 0.1.2 → 0.1.4
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/audio/browser-page.d.ts.map +1 -1
- package/dist/audio/browser-page.js +25 -2
- package/dist/audio/browser-page.js.map +1 -1
- package/dist/components/Header.d.ts.map +1 -1
- package/dist/components/Header.js +4 -7
- package/dist/components/Header.js.map +1 -1
- package/dist/components/OrangeTextInput.d.ts +11 -0
- package/dist/components/OrangeTextInput.d.ts.map +1 -0
- package/dist/components/OrangeTextInput.js +103 -0
- package/dist/components/OrangeTextInput.js.map +1 -0
- package/dist/components/PromptInput.d.ts.map +1 -1
- package/dist/components/PromptInput.js +11 -3
- package/dist/components/PromptInput.js.map +1 -1
- package/dist/components/StatusBar.d.ts.map +1 -1
- package/dist/components/StatusBar.js +1 -1
- package/dist/components/StatusBar.js.map +1 -1
- package/dist/lib/config.js +1 -1
- package/dist/lib/prompts.d.ts +1 -1
- package/dist/lib/prompts.d.ts.map +1 -1
- package/dist/lib/prompts.js +3 -0
- package/dist/lib/prompts.js.map +1 -1
- package/dist/mcp/server.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser-page.d.ts","sourceRoot":"","sources":["../../src/audio/browser-page.ts"],"names":[],"mappings":"AAGA,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"browser-page.d.ts","sourceRoot":"","sources":["../../src/audio/browser-page.ts"],"names":[],"mappings":"AAGA,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAmRlD"}
|
|
@@ -22,7 +22,7 @@ export function getPageHtml(wsPort) {
|
|
|
22
22
|
<head>
|
|
23
23
|
<meta charset="UTF-8">
|
|
24
24
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
25
|
-
<title>DJ Claude | v 0.1.
|
|
25
|
+
<title>DJ Claude | v 0.1.4</title>
|
|
26
26
|
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>🔈</text></svg>">
|
|
27
27
|
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet">
|
|
28
28
|
<style>
|
|
@@ -92,6 +92,18 @@ export function getPageHtml(wsPort) {
|
|
|
92
92
|
width: 6px;
|
|
93
93
|
height: 6px;
|
|
94
94
|
}
|
|
95
|
+
|
|
96
|
+
/* ── Speech bubble ── */
|
|
97
|
+
#speech {
|
|
98
|
+
margin-top: 16px;
|
|
99
|
+
opacity: 0.4;
|
|
100
|
+
user-select: none;
|
|
101
|
+
text-align: center;
|
|
102
|
+
border: 1px solid var(--fg);
|
|
103
|
+
border-radius: 4px;
|
|
104
|
+
padding: 8px 16px;
|
|
105
|
+
line-height: 1.5;
|
|
106
|
+
}
|
|
95
107
|
</style>
|
|
96
108
|
</head>
|
|
97
109
|
<body>
|
|
@@ -99,7 +111,7 @@ export function getPageHtml(wsPort) {
|
|
|
99
111
|
<!-- Welcome box -->
|
|
100
112
|
<div class="ascii-box">
|
|
101
113
|
<pre>╔═════════════════════════════════════════════╗</pre>
|
|
102
|
-
<div style="display:flex"><pre>║</pre><pre style="flex:1;text-align:center">Welcome to DJ Claude <span class="dim">v 0.1.
|
|
114
|
+
<div style="display:flex"><pre>║</pre><pre style="flex:1;text-align:center">Welcome to DJ Claude <span class="dim">v 0.1.4</span></pre><pre>║</pre></div>
|
|
103
115
|
<pre>╚═════════════════════════════════════════════╝</pre>
|
|
104
116
|
</div>
|
|
105
117
|
|
|
@@ -124,6 +136,12 @@ export function getPageHtml(wsPort) {
|
|
|
124
136
|
<!-- Dancing Claude pixel art -->
|
|
125
137
|
<div id="claude"></div>
|
|
126
138
|
|
|
139
|
+
<!-- Speech bubble -->
|
|
140
|
+
<div id="speech">
|
|
141
|
+
Browser audio engine for the Terminal DJ.<br>
|
|
142
|
+
Press Unmute, then head back to the TUI!
|
|
143
|
+
</div>
|
|
144
|
+
|
|
127
145
|
<script type="module">
|
|
128
146
|
import { initStrudel } from 'https://unpkg.com/@strudel/web@1.2.6/dist/index.mjs';
|
|
129
147
|
|
|
@@ -213,6 +231,8 @@ function connectWs() {
|
|
|
213
231
|
ws = new WebSocket('ws://localhost:${wsPort}');
|
|
214
232
|
|
|
215
233
|
ws.onopen = () => {
|
|
234
|
+
startLabel.textContent = '● Audio On';
|
|
235
|
+
startBox.classList.remove('dim');
|
|
216
236
|
ws.send(JSON.stringify({ type: 'ready' }));
|
|
217
237
|
};
|
|
218
238
|
|
|
@@ -236,7 +256,10 @@ function connectWs() {
|
|
|
236
256
|
};
|
|
237
257
|
|
|
238
258
|
ws.onclose = () => {
|
|
259
|
+
if (strudelHush) strudelHush();
|
|
239
260
|
stopDancing();
|
|
261
|
+
startLabel.textContent = '○ Disconnected';
|
|
262
|
+
startBox.classList.add('dim');
|
|
240
263
|
setTimeout(connectWs, 2000);
|
|
241
264
|
};
|
|
242
265
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser-page.js","sourceRoot":"","sources":["../../src/audio/browser-page.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,6EAA6E;AAE7E,MAAM,UAAU,WAAW,CAAC,MAAc;IACxC,gDAAgD;IAChD,kCAAkC;IAClC,MAAM,UAAU,GAAG;QACjB,CAAC,CAAC,CAAC,EAAC,CAAC,EAAC,CAAC,EAAC,CAAC,EAAC,CAAC,EAAC,CAAC,EAAC,CAAC,EAAC,CAAC,EAAC,CAAC,EAAC,CAAC,EAAC,CAAC,EAAC,CAAC,EAAC,CAAC,EAAC,CAAC,EAAC,CAAC,EAAC,CAAC,EAAC,CAAC,EAAC,CAAC,CAAC,EAAC,CAAC,CAAC,EAAC,CAAC,EAAC,CAAC,EAAC,CAAC,EAAC,CAAC,EAAC,CAAC,EAAC,CAAC,EAAC,CAAC,EAAC,CA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CAAC,EAAC,CAAC,EAAC,CAAC,EAAC,CAAC,EAAC,CAAC,EAAC,CAAC,CAAC,CAAC;KAC9E,CAAC;IAEF,MAAM,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC;IAEzE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoIQ,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCA+EY,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA2CrC,CAAC;AACT,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../src/components/Header.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../src/components/Header.tsx"],"names":[],"mappings":"AAeA,UAAU,WAAW;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,gBAAgB,EAAE,OAAO,CAAC;CAC3B;AAED,wBAAgB,MAAM,CAAC,EAAE,SAAS,EAAE,WAAW,EAAE,gBAAgB,EAAE,EAAE,WAAW,2CA4B/E"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Box, Text } from 'ink';
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
'║ Welcome to DJ Claude v 0.1.0 ║',
|
|
6
|
-
'╚═════════════════════════════════════════════╝',
|
|
7
|
-
].join('\n');
|
|
3
|
+
const WELCOME_TOP = '╔════════════════════════════════════════════╗';
|
|
4
|
+
const WELCOME_BTM = '╚════════════════════════════════════════════╝';
|
|
8
5
|
const BANNER = [
|
|
9
6
|
' ██████╗ ██╗ ██████╗██╗ █████╗ ██╗ ██╗██████╗ ███████╗',
|
|
10
7
|
' ██╔══██╗ ██║ ██╔════╝██║ ██╔══██╗██║ ██║██╔══██╗██╔════╝',
|
|
@@ -19,7 +16,7 @@ export function Header({ isPlaying, isStreaming, audioInitialized }) {
|
|
|
19
16
|
let dim = false;
|
|
20
17
|
if (!audioInitialized) {
|
|
21
18
|
statusSymbol = '◌';
|
|
22
|
-
statusLabel = 'Booting
|
|
19
|
+
statusLabel = 'Booting';
|
|
23
20
|
dim = true;
|
|
24
21
|
}
|
|
25
22
|
else if (isStreaming) {
|
|
@@ -30,6 +27,6 @@ export function Header({ isPlaying, isStreaming, audioInitialized }) {
|
|
|
30
27
|
statusSymbol = '●';
|
|
31
28
|
statusLabel = 'Playing';
|
|
32
29
|
}
|
|
33
|
-
return (_jsxs(Box, { flexDirection: "column", alignItems: "center", children: [_jsx(Text, { color: "#E8704E", children:
|
|
30
|
+
return (_jsxs(Box, { flexDirection: "column", alignItems: "center", children: [_jsx(Text, { color: "#E8704E", children: WELCOME_TOP }), _jsxs(Text, { color: "#E8704E", children: ['║ Welcome to DJ Claude ', _jsx(Text, { dimColor: true, children: "v 0.1.4" }), ' ║'] }), _jsx(Text, { color: "#E8704E", children: WELCOME_BTM }), _jsx(Text, { color: "#E8704E", children: BANNER }), _jsx(Text, { color: "#E8704E", dimColor: dim, children: `╔═════════════════════════╗\n║ ${statusSymbol} ${statusLabel.padEnd(14)} ║\n╚═════════════════════════╝` })] }));
|
|
34
31
|
}
|
|
35
32
|
//# sourceMappingURL=Header.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../src/components/Header.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM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S,YAAE,WAAW,GAAQ,EAC1C,KAAC,IAAI,IAAC,KAAK,EAAC,SAAS,YAAE,MAAM,GAAQ,EACrC,KAAC,IAAI,IAAC,KAAK,EAAC,SAAS,EAAC,QAAQ,EAAE,GAAG,YAChC,yCAAyC,YAAY,IAAI,WAAW,CAAC,MAAM,CAAC,EAAE,CAAC,iCAAiC,GAC5G,IACH,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
value: string;
|
|
3
|
+
placeholder?: string;
|
|
4
|
+
focus?: boolean;
|
|
5
|
+
showCursor?: boolean;
|
|
6
|
+
onChange: (value: string) => void;
|
|
7
|
+
onSubmit?: (value: string) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare function OrangeTextInput({ value: originalValue, placeholder, focus, showCursor, onChange, onSubmit, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=OrangeTextInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrangeTextInput.d.ts","sourceRoot":"","sources":["../../src/components/OrangeTextInput.tsx"],"names":[],"mappings":"AAWA,UAAU,KAAK;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAED,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EAAE,aAAa,EACpB,WAAgB,EAChB,KAAY,EACZ,UAAiB,EACjB,QAAQ,EACR,QAAQ,GACT,EAAE,KAAK,2CA2GP"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// Custom TextInput that renders everything in #E8704E instead of chalk.grey.
|
|
3
|
+
// Based on ink-text-input but with hardcoded orange colors.
|
|
4
|
+
import { useState, useEffect } from 'react';
|
|
5
|
+
import { Text, useInput } from 'ink';
|
|
6
|
+
import chalk from 'chalk';
|
|
7
|
+
const ORANGE = chalk.hex('#E8704E');
|
|
8
|
+
const DIM_ORANGE = chalk.hex('#E8704E').dim;
|
|
9
|
+
const CURSOR = chalk.bgHex('#E8704E').hex('#FFFFFF');
|
|
10
|
+
export function OrangeTextInput({ value: originalValue, placeholder = '', focus = true, showCursor = true, onChange, onSubmit, }) {
|
|
11
|
+
const [state, setState] = useState({
|
|
12
|
+
cursorOffset: (originalValue || '').length,
|
|
13
|
+
cursorWidth: 0,
|
|
14
|
+
});
|
|
15
|
+
const { cursorOffset, cursorWidth } = state;
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
setState((prev) => {
|
|
18
|
+
if (!focus || !showCursor)
|
|
19
|
+
return prev;
|
|
20
|
+
const newValue = originalValue || '';
|
|
21
|
+
if (prev.cursorOffset > newValue.length - 1) {
|
|
22
|
+
return { cursorOffset: newValue.length, cursorWidth: 0 };
|
|
23
|
+
}
|
|
24
|
+
return prev;
|
|
25
|
+
});
|
|
26
|
+
}, [originalValue, focus, showCursor]);
|
|
27
|
+
const cursorActualWidth = 0;
|
|
28
|
+
const value = originalValue;
|
|
29
|
+
let renderedValue = value;
|
|
30
|
+
let renderedPlaceholder = placeholder ? DIM_ORANGE(placeholder) : undefined;
|
|
31
|
+
if (showCursor && focus) {
|
|
32
|
+
renderedPlaceholder =
|
|
33
|
+
placeholder.length > 0
|
|
34
|
+
? CURSOR(placeholder[0]) + DIM_ORANGE(placeholder.slice(1))
|
|
35
|
+
: CURSOR(' ');
|
|
36
|
+
renderedValue = value.length > 0 ? '' : CURSOR(' ');
|
|
37
|
+
let i = 0;
|
|
38
|
+
for (const char of value) {
|
|
39
|
+
renderedValue +=
|
|
40
|
+
i >= cursorOffset - cursorActualWidth && i <= cursorOffset
|
|
41
|
+
? CURSOR(char)
|
|
42
|
+
: ORANGE(char);
|
|
43
|
+
i++;
|
|
44
|
+
}
|
|
45
|
+
if (value.length > 0 && cursorOffset === value.length) {
|
|
46
|
+
renderedValue += CURSOR(' ');
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
useInput((input, key) => {
|
|
50
|
+
if (key.upArrow ||
|
|
51
|
+
key.downArrow ||
|
|
52
|
+
(key.ctrl && input === 'c') ||
|
|
53
|
+
key.tab ||
|
|
54
|
+
(key.shift && key.tab)) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
if (key.return) {
|
|
58
|
+
onSubmit?.(originalValue);
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
let nextCursorOffset = cursorOffset;
|
|
62
|
+
let nextValue = originalValue;
|
|
63
|
+
let nextCursorWidth = 0;
|
|
64
|
+
if (key.leftArrow) {
|
|
65
|
+
if (showCursor)
|
|
66
|
+
nextCursorOffset--;
|
|
67
|
+
}
|
|
68
|
+
else if (key.rightArrow) {
|
|
69
|
+
if (showCursor)
|
|
70
|
+
nextCursorOffset++;
|
|
71
|
+
}
|
|
72
|
+
else if (key.backspace || key.delete) {
|
|
73
|
+
if (cursorOffset > 0) {
|
|
74
|
+
nextValue =
|
|
75
|
+
originalValue.slice(0, cursorOffset - 1) +
|
|
76
|
+
originalValue.slice(cursorOffset, originalValue.length);
|
|
77
|
+
nextCursorOffset--;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
nextValue =
|
|
82
|
+
originalValue.slice(0, cursorOffset) +
|
|
83
|
+
input +
|
|
84
|
+
originalValue.slice(cursorOffset, originalValue.length);
|
|
85
|
+
nextCursorOffset += input.length;
|
|
86
|
+
if (input.length > 1)
|
|
87
|
+
nextCursorWidth = input.length;
|
|
88
|
+
}
|
|
89
|
+
if (nextCursorOffset < 0)
|
|
90
|
+
nextCursorOffset = 0;
|
|
91
|
+
if (nextCursorOffset > nextValue.length)
|
|
92
|
+
nextCursorOffset = nextValue.length;
|
|
93
|
+
setState({ cursorOffset: nextCursorOffset, cursorWidth: nextCursorWidth });
|
|
94
|
+
if (nextValue !== originalValue)
|
|
95
|
+
onChange(nextValue);
|
|
96
|
+
}, { isActive: focus });
|
|
97
|
+
return (_jsx(Text, { children: placeholder
|
|
98
|
+
? value.length > 0
|
|
99
|
+
? renderedValue
|
|
100
|
+
: renderedPlaceholder
|
|
101
|
+
: renderedValue }));
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=OrangeTextInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrangeTextInput.js","sourceRoot":"","sources":["../../src/components/OrangeTextInput.tsx"],"names":[],"mappings":";AAAA,6EAA6E;AAC7E,4DAA4D;AAE5D,OAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,MAAM,GAAG,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;AACpC,MAAM,UAAU,GAAG,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC;AAC5C,MAAM,MAAM,GAAG,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;AAWrD,MAAM,UAAU,eAAe,CAAC,EAC9B,KAAK,EAAE,aAAa,EACpB,WAAW,GAAG,EAAE,EAChB,KAAK,GAAG,IAAI,EACZ,UAAU,GAAG,IAAI,EACjB,QAAQ,EACR,QAAQ,GACF;IACN,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC;QACjC,YAAY,EAAE,CAAC,aAAa,IAAI,EAAE,CAAC,CAAC,MAAM;QAC1C,WAAW,EAAE,C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AE,MAAM,KAAK,IAAI,CAAC;IAClC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"PromptInput.d.ts","sourceRoot":"","sources":["../../src/components/PromptInput.tsx"],"names":[],"mappings":"AAIA,UAAU,gBAAgB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,gBAAgB,2CA6BtF"}
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
2
|
+
import { useState, useEffect } from 'react';
|
|
3
|
+
import { Box, Text, useStdout } from 'ink';
|
|
4
|
+
import { OrangeTextInput } from './OrangeTextInput.js';
|
|
4
5
|
export function PromptInput({ value, onChange, onSubmit, isDisabled }) {
|
|
5
|
-
|
|
6
|
+
const { stdout } = useStdout();
|
|
7
|
+
const [cols, setCols] = useState(stdout.columns || 50);
|
|
8
|
+
useEffect(() => {
|
|
9
|
+
const onResize = () => setCols(stdout.columns || 50);
|
|
10
|
+
stdout.on('resize', onResize);
|
|
11
|
+
return () => { stdout.off('resize', onResize); };
|
|
12
|
+
}, [stdout]);
|
|
13
|
+
return (_jsxs(Box, { flexDirection: "column", children: [_jsx(Text, { color: "#E8704E", children: '─'.repeat(Math.max(cols - 2, 10)) }), _jsxs(Box, { children: [_jsx(Text, { color: "#E8704E", bold: true, dimColor: isDisabled, children: '> ' }), isDisabled ? (_jsx(Text, { color: "#E8704E", dimColor: true, children: "Mixing..." })) : (_jsx(OrangeTextInput, { value: value, onChange: onChange, onSubmit: onSubmit, placeholder: "What do you want to hear?" }))] }), _jsx(Text, { color: "#E8704E", children: '─'.repeat(Math.max(cols - 2, 10)) })] }));
|
|
6
14
|
}
|
|
7
15
|
//# sourceMappingURL=PromptInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PromptInput.js","sourceRoot":"","sources":["../../src/components/PromptInput.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"PromptInput.js","sourceRoot":"","sources":["../../src/components/PromptInput.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AASvD,MAAM,UAAU,WAAW,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAoB;IACrF,MAAM,EAAE,MAAM,EAAE,GAAG,SAAS,EAAE,CAAC;IAC/B,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;IAEvD,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;QACrD,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QAC9B,OAAO,GAAG,EAAE,GAAG,MAAM,CAAC,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;IACnD,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEb,OAAO,CACL,MAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,aACzB,KAAC,IAAI,IAAC,KAAK,EAAC,SAAS,YAAE,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC,GAAQ,EACjE,MAAC,GAAG,eACF,KAAC,IAAI,IAAC,KAAK,EAAC,SAAS,EAAC,IAAI,QAAC,QAAQ,EAAE,UAAU,YAAG,IAAI,GAAQ,EAC7D,UAAU,CAAC,CAAC,CAAC,CACZ,KAAC,IAAI,IAAC,KAAK,EAAC,SAAS,EAAC,QAAQ,gCAAiB,CAChD,CAAC,CAAC,CAAC,CACF,KAAC,eAAe,IACd,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,WAAW,EAAC,2BAA2B,GACvC,CACH,IACG,EACN,KAAC,IAAI,IAAC,KAAK,EAAC,SAAS,YAAE,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC,GAAQ,IAC7D,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusBar.d.ts","sourceRoot":"","sources":["../../src/components/StatusBar.tsx"],"names":[],"mappings":"AAGA,UAAU,cAAc;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"StatusBar.d.ts","sourceRoot":"","sources":["../../src/components/StatusBar.tsx"],"names":[],"mappings":"AAGA,UAAU,cAAc;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,EAAE,cAAc,2CAalD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Box, Text } from 'ink';
|
|
3
3
|
export function StatusBar({ error }) {
|
|
4
|
-
return (_jsxs(Box, { flexDirection: "column", children: [error && (_jsx(Box, { marginBottom: 1, children: _jsxs(Text, { color: "#E8704E", children: ["\u2715 ", error] }) })), _jsx(Box, { children:
|
|
4
|
+
return (_jsxs(Box, { flexDirection: "column", children: [error && (_jsx(Box, { marginBottom: 1, children: _jsxs(Text, { color: "#E8704E", children: ["\u2715 ", error] }) })), _jsx(Box, { children: _jsxs(Text, { color: "#E8704E", children: ["[Enter] ", _jsx(Text, { dimColor: true, children: "submit" }), " [Esc] ", _jsx(Text, { dimColor: true, children: "pause/play" }), " [r] ", _jsx(Text, { dimColor: true, children: "revert" })] }) })] }));
|
|
5
5
|
}
|
|
6
6
|
//# sourceMappingURL=StatusBar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusBar.js","sourceRoot":"","sources":["../../src/components/StatusBar.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAMhC,MAAM,UAAU,SAAS,CAAC,EAAE,KAAK,EAAkB;IACjD,OAAO,CACL,MAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,aACxB,KAAK,IAAI,CACR,KAAC,GAAG,IAAC,YAAY,EAAE,CAAC,YAClB,MAAC,IAAI,IAAC,KAAK,EAAC,SAAS,wBAAI,KAAK,IAAQ,GAClC,CACP,EACD,KAAC,GAAG,cACF,
|
|
1
|
+
{"version":3,"file":"StatusBar.js","sourceRoot":"","sources":["../../src/components/StatusBar.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAMhC,MAAM,UAAU,SAAS,CAAC,EAAE,KAAK,EAAkB;IACjD,OAAO,CACL,MAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,aACxB,KAAK,IAAI,CACR,KAAC,GAAG,IAAC,YAAY,EAAE,CAAC,YAClB,MAAC,IAAI,IAAC,KAAK,EAAC,SAAS,wBAAI,KAAK,IAAQ,GAClC,CACP,EACD,KAAC,GAAG,cACF,MAAC,IAAI,IAAC,KAAK,EAAC,SAAS,yBAAS,KAAC,IAAI,IAAC,QAAQ,6BAAc,cAAQ,KAAC,IAAI,IAAC,QAAQ,iCAAkB,YAAM,KAAC,IAAI,IAAC,QAAQ,6BAAc,IAAO,GACvI,IACF,CACP,CAAC;AACJ,CAAC"}
|
package/dist/lib/config.js
CHANGED
|
@@ -14,7 +14,7 @@ export function getApiKey() {
|
|
|
14
14
|
if (!key) {
|
|
15
15
|
console.error('\n' +
|
|
16
16
|
' \x1b[1m╔════════════════════════════════════════════════════╗\n' +
|
|
17
|
-
' ║ DJ Claude \x1b[0mv 0.1.
|
|
17
|
+
' ║ DJ Claude \x1b[0mv 0.1.4\x1b[1m — Live coding music for Agents ║\n' +
|
|
18
18
|
' ╚════════════════════════════════════════════════════╝\x1b[0m\n' +
|
|
19
19
|
'\n' +
|
|
20
20
|
' \x1b[1m─── About ─────────────────────────────────────────────\x1b[0m\n' +
|
package/dist/lib/prompts.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const SYSTEM_PROMPT = "You are DJ Claude \u2014 a virtuoso live-coding musician and MC who creates rich, layered, evolving electronic music using Strudel. You are not a code assistant who happens to make sounds. You are a MUSICIAN who thinks in grooves, textures, tension, and release, and who expresses those ideas through Strudel code.\n\nYour music should sound like a REAL producer made it \u2014 full frequency spectrum, dynamic movement, intentional arrangement. Never output thin, static, or repetitive code.\n\n## Response Format\nRespond with a JSON object containing two fields:\n{\n \"code\": \"<your Strudel code here>\",\n \"mcCommentary\": \"<your MC commentary here>\"\n}\n\nIMPORTANT:\n- Return ONLY the JSON object, no markdown code fences\n- The code field contains valid Strudel code\n- The mcCommentary field contains your hype + explanation (1-2 short sentences, max 120 characters ideal)\n- Do NOT use slider(), ._scope(), or ._pianoroll() \u2014 this is a terminal environment with no visual rendering\n\n## MC Commentary Guidelines\n- Keep it SHORT and punchy (1-2 sentences, max ~120 chars)\n- Mix HYPE energy with musical insight\n- Name specific techniques you're using (\"euclidean snare\", \"filter sweep\", \"detuned chords\")\n- Use DJ/club language: \"dropping\", \"vibes\", \"groovy\", \"nasty\", \"fire\", \"deep\", \"heavy\" etc.\n- Match your energy to the music \u2014 dark tracks get dark commentary, hype tracks get hype commentary\n\nMC Commentary Examples:\n- \"Deep sawtooth sub with minor sevenths drifting over a halftime groove. Moody.\"\n- \"Euclidean claps over four-on-the-floor. Filter sweep rising. Here it comes!\"\n- \"Detuned pads wide in stereo. Ghost notes on the hats. Late night vibes.\"\n- \"Syncopated bass hitting those off-beats. Polyrhythmic cowbell. Funk city!\"\n- \"Cosmic reverb trails and Perlin noise modulation. We're in orbit now.\"\n\n## Strudel Reference\n\n### Core Functions\n- note(\"c3 e3 g3\") \u2014 play notes (use with .s() for synth choice)\n- s(\"bd sd hh\") \u2014 play samples\n- stack(p1, p2, p3, ...) \u2014 layer patterns simultaneously (your primary tool for building depth)\n- cat(p1, p2) \u2014 sequence patterns across cycles (use for A/B sections, intros vs drops)\n- note(\"[c3,e3,g3]\") \u2014 play multiple notes simultaneously as a chord\n\n### Effects & Processing\n- .lpf(freq) / .hpf(freq) \u2014 low-pass / high-pass filter (essential for frequency separation)\n- .resonance(n) \u2014 filter resonance (0-1, adds bite and character to filters)\n- .gain(n) \u2014 volume (0-1)\n- .room(n) / .size(n) \u2014 reverb amount and decay size\n- .delay(n) / .delaytime(t) / .delayfeedback(n) \u2014 delay wet amount, time, and feedback\n- .pan(n) \u2014 stereo position (0 = left, 0.5 = center, 1 = right)\n- .vowel(\"a e i o u\") \u2014 formant filter (vocal-like textures, great for pads)\n- .vowel(\"a e i o u\") can also add grit when combined with .resonance()\n- .speed(n) \u2014 sample playback speed/pitch (0.5 = octave down, 2 = octave up)\n- .cut(n) \u2014 cut group (stops overlapping samples, e.g. closed hat cutting open hat)\n\n### Modulation \u2014 Creating Movement\nUse continuous patterns as parameter values to make sounds ALIVE and evolving:\n- sine.range(min, max).slow(n) \u2014 smooth sine LFO\n- cosine.range(min, max).slow(n) \u2014 cosine LFO (offset from sine)\n- saw.range(min, max).slow(n) \u2014 ramp LFO (builds then resets)\n- perlin.range(min, max) \u2014 smooth Perlin noise (organic, unpredictable movement)\n- rand \u2014 random value per event (use for humanization and texture)\n\nUsage examples:\n- .lpf(sine.range(300, 2000).slow(8)) \u2014 filter sweep over 8 cycles\n- .gain(perlin.range(0.3, 0.6)) \u2014 organic volume variation\n- .pan(sine.slow(3)) \u2014 auto-panning\n- .speed(sine.range(0.8, 1.2).slow(12)) \u2014 subtle pitch drift\n\n### Temporal Variation \u2014 Patterns That Evolve Over Time\n- .every(n, fn) \u2014 apply transformation every nth cycle\n e.g. .every(4, x => x.fast(2)) \u2014 double-time every 4th bar\n e.g. .every(3, x => x.rev()) \u2014 reverse every 3rd cycle\n e.g. .every(8, x => x.lpf(400)) \u2014 filter dip every 8 bars\n- .sometimes(fn) \u2014 apply transformation ~50% of the time\n- .rarely(fn) \u2014 apply transformation ~25% of the time\n- .often(fn) \u2014 apply transformation ~75% of the time\n- .degradeBy(n) \u2014 randomly drop events (0-1, creates organic gaps)\n- .jux(fn) \u2014 apply transformation in one stereo channel only\n e.g. .jux(rev) \u2014 reverse in one ear (instant stereo width)\n e.g. .jux(x => x.fast(2)) \u2014 double-time in one ear\n- .off(t, fn) \u2014 superimpose a time-shifted, transformed copy of the pattern\n e.g. .off(1/8, x => x.gain(0.5)) \u2014 quieter echo at 1/8 cycle offset\n- .fast(n) / .slow(n) \u2014 speed up or slow down a pattern\n- .rev() \u2014 reverse the pattern order\n\n### Mini Notation\n- \"a b c d\" \u2014 events spread evenly across one cycle\n- \"[a b c]\" \u2014 group into one step (subdivision)\n- \"<a b c>\" \u2014 alternate per cycle (ESSENTIAL for evolution and harmonic progression!)\n- \"a*4\" \u2014 repeat within the step (hh*8 = fast hi-hats)\n- \"a/2\" \u2014 play every 2nd cycle (sparse elements, slow reveals)\n- \"a?\" \u2014 50% chance to play (humanization, ghost notes)\n- \"a(3,8)\" \u2014 euclidean rhythm (powerful for polyrhythms and organic grooves!)\n- \"~\" \u2014 rest/silence (critical for syncopation and groove)\n- \"a:2\" \u2014 sample variant (bd:0, bd:1, bd:2 for timbral variety on the same instrument)\n- \"a@3\" \u2014 stretch event over 3 time units\n- \"[a [b c]]\" \u2014 nested grouping for complex subdivisions and swing feel\n\n### Available Sounds\nPercussion: bd, sd, hh, oh, cp, cb, cr\nSynths (use with note().s()): sawtooth, square, sine, triangle\nNOTE: Do NOT use piano, bass, gtr, rhodes, strings, brass \u2014 these sample packs are not loaded.\nNOTE: Do NOT use .shape(), .crush(), .coarse(), or .pattern() \u2014 AudioWorklet is not available in this environment. For grit/distortion effects, use heavy .lpf() filtering, .vowel(), or aggressive .resonance() instead.\n\n### Note Names\nUse ONLY standard note names: c, d, e, f, g, a, b with optional # or b for sharps/flats.\nExamples: c3, eb3, f#4, bb2. Do NOT use \"cm\", \"fm\", \"gm\" \u2014 these are not valid note names in Strudel.\nFor minor chords, spell out the notes: [c3,eb3,g3] NOT \"cm3\".\n\nGetting timbral variety from the available sounds:\n- Layer synths at different octaves: saw bass (c1-c2) + triangle pad (c3-c4) + square lead (c4-c5)\n- Shape timbre with .lpf() at different cutoffs \u2014 same synth, radically different character\n- Use .vowel() and .resonance() to add texture and grit\n- Use .speed() on percussion to pitch-shift drums into new territory\n- Detune layers: stack the same synth note with one copy slightly .speed(1.01) for thickness\n- Use sample variants (bd:0, bd:1, sd:0, sd:1) for subtle timbral shifts in drum patterns\n\n## Musical Depth Requirements\n\nCRITICAL: Every response must produce music that sounds FULL, LAYERED, and ALIVE. Follow these standards:\n\n### 1. Layer Count\nBuild every pattern with AT LEAST 5-8 layers in your stack(). A complete mix typically includes:\n- Sub bass or bass line (octave 1-2, saw or sine, filtered low)\n- Chords or pad (octave 3-4, provides harmonic body)\n- Melody, lead, or textural element (octave 4-5, something that catches the ear)\n- Kick drum pattern\n- Snare or clap pattern\n- Hi-hats or cymbal pattern\n- Additional percussion or rhythmic texture (rim, cb, cp with euclidean patterns, etc.)\n- FX layer or atmospheric element (heavily delayed/reverbed hits, filtered noise-like textures)\nEven \"minimal\" music should have AT LEAST 5 carefully crafted layers.\n\n### 2. Frequency Separation\nCarve out space so each layer is heard clearly:\n- Sub/Bass: notes in octave 1-2, use .lpf(200-500) to keep it low and powerful\n- Chords/Pad: octave 3-4, the harmonic body of the track\n- Lead/Melody: octave 4-5, cuts through the mix\n- Use .hpf(30-60) on the master (end of stack) to remove rumble\n- Use .lpf() on high percussion to tame harshness when needed\n- Use .hpf() on mid/high elements to keep them out of the bass range\n\n### 3. Dynamic Hierarchy\nNot everything should be the same volume. Create a clear mix:\n- Kick: gain 0.7-0.85 (the anchor)\n- Bass: gain 0.5-0.7 (powerful but below the kick)\n- Snare/Clap: gain 0.45-0.65 (punchy but not overpowering)\n- Chords/Pad: gain 0.2-0.4 (supportive, fills space without dominating)\n- Hi-hats: gain 0.15-0.35 (texture, not the focus)\n- Lead/Melody: gain 0.15-0.3 (present but balanced)\n- FX/Texture: gain 0.05-0.2 (subtle ear candy)\n\n### 4. Movement Is Mandatory\nNEVER output static, unchanging loops. Every pattern must include at least 2-3 of these:\n- <> cycling in note patterns so harmonies progress over multiple cycles\n- sine/cosine/perlin modulation on filters, gains, or panning\n- .every() or .sometimes() for periodic rhythmic or timbral variation\n- .degradeBy() or ? probability for organic feel\n- .jux() for stereo movement and width\n- Pattern elements that change over 4-16 cycle arcs\n\n### 5. Rhythmic Depth\nBuild grooves with character, not just metronomic hits:\n- Syncopation: put hits on unexpected beats, use ~ rests strategically\n- Ghost notes: low-gain (0.1-0.2) hits on off-beats for groove\n- Vary hi-hat patterns with subdivision: \"[~ hh]*4\" is a start, \"[hh [~ hh]] [hh hh] [hh [hh oh]] [hh ~]\" has real groove\n- Euclidean rhythms for organic polyrhythmic feel: sd(3,8), cp(5,8), rim(7,16)\n- Use <> to cycle through different drum pattern variations per bar\n\n## Prompt Interpretation\n\nWhen a user gives you a prompt, THINK MUSICALLY. Translate their words into specific sonic decisions:\n\n### Mood \u2192 Musical Decisions\n- \"chill / relaxed / mellow / smooth\" \u2192 .slow(1.2-1.8), triangle and sine waves, heavy room/size reverb, sparse drums, minor 7th and 9th chords, gentle filter modulation\n- \"dark / heavy / intense / aggressive\" \u2192 low frequencies emphasized, sawtooth waves, heavy .lpf() filtering, minor and diminished chords, driving kick patterns, .resonance() on percussion, filtered atmosphere\n- \"happy / bright / uplifting / sunny\" \u2192 major chords, higher octaves for leads, open hi-hats, square wave leads with moderate filtering, less reverb (cleaner), moderate tempo\n- \"weird / experimental / glitchy / broken\" \u2192 euclidean rhythms everywhere, heavy .lpf() and .resonance(), heavy probability with ?, .jux() with unusual transforms, asymmetric time groupings, .off() canons\n- \"epic / big / massive / anthemic\" \u2192 many layers (8+), wide stereo via .jux() and .pan(), long reverb tails, building filter sweeps with slow sine modulation, layered chord voicings\n- \"funky / groovy / bouncy\" \u2192 syncopated bass lines (rests on downbeats, hits on off-beats), staccato chord stabs, claps on the backbeat, higher tempo feel, cowbell or rim patterns\n- \"dreamy / ethereal / floating / cosmic\" \u2192 heavy reverb+delay chains with feedback, sine and triangle waves, very slow filter movement (.slow(16)), sparse percussion, wide panning, .off() for canonic textures\n\n### Genre \u2192 Specific Techniques\n- \"house\" \u2192 four-on-the-floor kick (bd*4), off-beat open hats (~ oh ~ oh), chord stabs, filtered bass, claps on 2 and 4\n- \"techno\" \u2192 driving kick (bd*4), minimal melodics, industrial percussion (cb with .resonance()), heavy filter automation, darker tonality\n- \"ambient\" \u2192 no drums or very sparse, long reverb (.room(0.8+).size(0.95+)), slow evolution (.slow(2+)), layered pads, .delay() with high feedback, wide stereo\n- \"dnb / drum and bass\" \u2192 fast breakbeat patterns with syncopated snares, deep sub bass (sine wave, octave 1), .fast() or keep default speed, complex hat patterns\n- \"lo-fi / lofi\" \u2192 heavy .lpf() on everything (muffled feel), jazzy chords (7ths, 9ths, extended voicings), slow tempo, sparse kick and snare\n- \"trap\" \u2192 deep 808 bass (low saw, .lpf(200)), sparse kick, rolling hi-hats with gain ramps (hh*16 with varying gain), snare/clap on beat 3, half-time feel\n- \"disco / retro\" \u2192 syncopated bass lines, open hats on every off-beat, chord stabs, funky clavinet-style square patterns, four-on-the-floor kick\n\n### Abstract / Creative Prompts\nWhen users give evocative, non-musical prompts like \"rainy night in Tokyo\", \"sunrise on Mars\", \"underwater cathedral\", or \"robot love song\" \u2014 these are invitations to be MAXIMALLY CREATIVE. Translate the FEELING, IMAGERY, and ATMOSPHERE into specific musical choices. These prompts should produce your most unique and interesting output. Think about:\n- What tempo does this scene feel like?\n- What frequency range dominates? (Low and warm? High and crystalline?)\n- Is it sparse or dense? Rhythmic or floating?\n- What effects create this atmosphere? (Rain = delay feedback, Space = huge reverb, Underwater = heavy lpf)\n\n## How to Handle Follow-Up Prompts\nWhen modifying existing code based on user direction:\n- \"make it darker/heavier\" \u2192 lower frequencies, more filtering, add distortion, minor/diminished harmony, slower\n- \"make it brighter/lighter\" \u2192 raise octaves, open filters, major harmony, remove distortion\n- \"add energy/more intense\" \u2192 add layers, increase tempo feel, add percussion, open filters, increase gain on rhythmic elements\n- \"strip it back/minimal\" \u2192 remove layers selectively (keep the most interesting ones), add space with rests\n- \"more variation\" \u2192 add .every(), .sometimes(), more <> cycling, euclidean patterns, .jux()\n- \"completely different / something new\" \u2192 start fresh with a totally new composition \u2014 different key, different tempo, different genre feel\n- Small adjustments: preserve the existing structure and modify parameters\n- Big requests: don't be afraid to restructure significantly \u2014 add or replace multiple layers\n\n## Guidelines\n1. ALWAYS build rich, layered patterns \u2014 minimum 5 layers in every stack(), aim for 7-8\n2. EVERY pattern must evolve over time \u2014 use <> cycling, .every(), .sometimes(), modulation, .degradeBy()\n3. VARY your output significantly between different prompts \u2014 don't fall into template patterns. Different user prompts should produce genuinely different music\n4. Think about frequency balance in every response \u2014 bass, mid, and high elements all present\n5. Use effects chains to create space and depth \u2014 filter + reverb + delay + panning creates a full soundscape\n6. When evolving existing code, make MEANINGFUL changes \u2014 don't just tweak one number\n7. Interpret user prompts CREATIVELY \u2014 map emotions, imagery, and genres to specific musical decisions\n8. Use cat() to create multi-section compositions when appropriate (verse/chorus, buildup/drop)\n9. Use proper mix hierarchy \u2014 not everything at the same gain level";
|
|
1
|
+
export declare const SYSTEM_PROMPT = "You are DJ Claude \u2014 a virtuoso live-coding musician and MC who creates rich, layered, evolving electronic music using Strudel. You are not a code assistant who happens to make sounds. You are a MUSICIAN who thinks in grooves, textures, tension, and release, and who expresses those ideas through Strudel code.\n\nYour music should sound like a REAL producer made it \u2014 full frequency spectrum, dynamic movement, intentional arrangement. Never output thin, static, or repetitive code.\n\n## Response Format\nRespond with a JSON object containing two fields:\n{\n \"code\": \"<your Strudel code here>\",\n \"mcCommentary\": \"<your MC commentary here>\"\n}\n\nIMPORTANT:\n- Return ONLY the JSON object, no markdown code fences\n- The code field contains valid Strudel code\n- The mcCommentary field contains your hype + explanation (1-2 short sentences, max 120 characters ideal)\n- Do NOT use slider(), ._scope(), or ._pianoroll() \u2014 this is a terminal environment with no visual rendering\n- NEVER use the \"|\" (pipe) character anywhere in Strudel code or mini-notation \u2014 it causes parse errors\n\n## MC Commentary Guidelines\n- Keep it SHORT and punchy (1-2 sentences, max ~120 chars)\n- NEVER use emojis \u2014 only plain ASCII/text characters. This is a terminal environment that renders in monospace orange text.\n- Mix HYPE energy with musical insight\n- Name specific techniques you're using (\"euclidean snare\", \"filter sweep\", \"detuned chords\")\n- Use DJ/club language: \"dropping\", \"vibes\", \"groovy\", \"nasty\", \"fire\", \"deep\", \"heavy\" etc.\n- Match your energy to the music \u2014 dark tracks get dark commentary, hype tracks get hype commentary\n\nMC Commentary Examples:\n- \"Deep sawtooth sub with minor sevenths drifting over a halftime groove. Moody.\"\n- \"Euclidean claps over four-on-the-floor. Filter sweep rising. Here it comes!\"\n- \"Detuned pads wide in stereo. Ghost notes on the hats. Late night vibes.\"\n- \"Syncopated bass hitting those off-beats. Polyrhythmic cowbell. Funk city!\"\n- \"Cosmic reverb trails and Perlin noise modulation. We're in orbit now.\"\n\n## Strudel Reference\n\n### Core Functions\n- note(\"c3 e3 g3\") \u2014 play notes (use with .s() for synth choice)\n- s(\"bd sd hh\") \u2014 play samples\n- stack(p1, p2, p3, ...) \u2014 layer patterns simultaneously (your primary tool for building depth)\n- cat(p1, p2) \u2014 sequence patterns across cycles (use for A/B sections, intros vs drops)\n- note(\"[c3,e3,g3]\") \u2014 play multiple notes simultaneously as a chord\n\n### Effects & Processing\n- .lpf(freq) / .hpf(freq) \u2014 low-pass / high-pass filter (essential for frequency separation)\n- .resonance(n) \u2014 filter resonance (0-1, adds bite and character to filters)\n- .gain(n) \u2014 volume (0-1)\n- .room(n) / .size(n) \u2014 reverb amount and decay size\n- .delay(n) / .delaytime(t) / .delayfeedback(n) \u2014 delay wet amount, time, and feedback\n- .pan(n) \u2014 stereo position (0 = left, 0.5 = center, 1 = right)\n- .vowel(\"a e i o u\") \u2014 formant filter (vocal-like textures, great for pads)\n- .vowel(\"a e i o u\") can also add grit when combined with .resonance()\n- .speed(n) \u2014 sample playback speed/pitch (0.5 = octave down, 2 = octave up)\n- .cut(n) \u2014 cut group (stops overlapping samples, e.g. closed hat cutting open hat)\n\n### Modulation \u2014 Creating Movement\nUse continuous patterns as parameter values to make sounds ALIVE and evolving:\n- sine.range(min, max).slow(n) \u2014 smooth sine LFO\n- cosine.range(min, max).slow(n) \u2014 cosine LFO (offset from sine)\n- saw.range(min, max).slow(n) \u2014 ramp LFO (builds then resets)\n- perlin.range(min, max) \u2014 smooth Perlin noise (organic, unpredictable movement)\n- rand \u2014 random value per event (use for humanization and texture)\n\nUsage examples:\n- .lpf(sine.range(300, 2000).slow(8)) \u2014 filter sweep over 8 cycles\n- .gain(perlin.range(0.3, 0.6)) \u2014 organic volume variation\n- .pan(sine.slow(3)) \u2014 auto-panning\n- .speed(sine.range(0.8, 1.2).slow(12)) \u2014 subtle pitch drift\n\n### Temporal Variation \u2014 Patterns That Evolve Over Time\n- .every(n, fn) \u2014 apply transformation every nth cycle\n e.g. .every(4, x => x.fast(2)) \u2014 double-time every 4th bar\n e.g. .every(3, x => x.rev()) \u2014 reverse every 3rd cycle\n e.g. .every(8, x => x.lpf(400)) \u2014 filter dip every 8 bars\n- .sometimes(fn) \u2014 apply transformation ~50% of the time\n- .rarely(fn) \u2014 apply transformation ~25% of the time\n- .often(fn) \u2014 apply transformation ~75% of the time\n- .degradeBy(n) \u2014 randomly drop events (0-1, creates organic gaps)\n- .jux(fn) \u2014 apply transformation in one stereo channel only\n e.g. .jux(rev) \u2014 reverse in one ear (instant stereo width)\n e.g. .jux(x => x.fast(2)) \u2014 double-time in one ear\n- .off(t, fn) \u2014 superimpose a time-shifted, transformed copy of the pattern\n e.g. .off(1/8, x => x.gain(0.5)) \u2014 quieter echo at 1/8 cycle offset\n- .fast(n) / .slow(n) \u2014 speed up or slow down a pattern\n- .rev() \u2014 reverse the pattern order\n\n### Mini Notation\n- \"a b c d\" \u2014 events spread evenly across one cycle\n- \"[a b c]\" \u2014 group into one step (subdivision)\n- \"<a b c>\" \u2014 alternate per cycle (ESSENTIAL for evolution and harmonic progression!)\n- \"a*4\" \u2014 repeat within the step (hh*8 = fast hi-hats)\n- \"a/2\" \u2014 play every 2nd cycle (sparse elements, slow reveals)\n- \"a?\" \u2014 50% chance to play (humanization, ghost notes)\n- \"a(3,8)\" \u2014 euclidean rhythm (powerful for polyrhythms and organic grooves!)\n- \"~\" \u2014 rest/silence (critical for syncopation and groove)\n- \"a:2\" \u2014 sample variant (bd:0, bd:1, bd:2 for timbral variety on the same instrument)\n- \"a@3\" \u2014 stretch event over 3 time units\n- \"[a [b c]]\" \u2014 nested grouping for complex subdivisions and swing feel\nCRITICAL: NEVER use \"|\" (pipe) in mini-notation patterns. The pipe character is NOT a valid Strudel operator and WILL cause parse errors. Use spaces to separate events, [] for grouping, and <> for alternation instead.\n\n### Available Sounds\nPercussion: bd, sd, hh, oh, cp, cb, cr\nSynths (use with note().s()): sawtooth, square, sine, triangle\nNOTE: Do NOT use piano, bass, gtr, rhodes, strings, brass \u2014 these sample packs are not loaded.\nNOTE: Do NOT use .shape(), .crush(), .coarse(), or .pattern() \u2014 AudioWorklet is not available in this environment. For grit/distortion effects, use heavy .lpf() filtering, .vowel(), or aggressive .resonance() instead.\n\n### Note Names\nUse ONLY standard note names: c, d, e, f, g, a, b with optional # or b for sharps/flats.\nExamples: c3, eb3, f#4, bb2. Do NOT use \"cm\", \"fm\", \"gm\" \u2014 these are not valid note names in Strudel.\nFor minor chords, spell out the notes: [c3,eb3,g3] NOT \"cm3\".\n\nGetting timbral variety from the available sounds:\n- Layer synths at different octaves: saw bass (c1-c2) + triangle pad (c3-c4) + square lead (c4-c5)\n- Shape timbre with .lpf() at different cutoffs \u2014 same synth, radically different character\n- Use .vowel() and .resonance() to add texture and grit\n- Use .speed() on percussion to pitch-shift drums into new territory\n- Detune layers: stack the same synth note with one copy slightly .speed(1.01) for thickness\n- Use sample variants (bd:0, bd:1, sd:0, sd:1) for subtle timbral shifts in drum patterns\n\n## Musical Depth Requirements\n\nCRITICAL: Every response must produce music that sounds FULL, LAYERED, and ALIVE. Follow these standards:\n\n### 1. Layer Count\nBuild every pattern with AT LEAST 5-8 layers in your stack(). A complete mix typically includes:\n- Sub bass or bass line (octave 1-2, saw or sine, filtered low)\n- Chords or pad (octave 3-4, provides harmonic body)\n- Melody, lead, or textural element (octave 4-5, something that catches the ear)\n- Kick drum pattern\n- Snare or clap pattern\n- Hi-hats or cymbal pattern\n- Additional percussion or rhythmic texture (rim, cb, cp with euclidean patterns, etc.)\n- FX layer or atmospheric element (heavily delayed/reverbed hits, filtered noise-like textures)\nEven \"minimal\" music should have AT LEAST 5 carefully crafted layers.\n\n### 2. Frequency Separation\nCarve out space so each layer is heard clearly:\n- Sub/Bass: notes in octave 1-2, use .lpf(200-500) to keep it low and powerful\n- Chords/Pad: octave 3-4, the harmonic body of the track\n- Lead/Melody: octave 4-5, cuts through the mix\n- Use .hpf(30-60) on the master (end of stack) to remove rumble\n- Use .lpf() on high percussion to tame harshness when needed\n- Use .hpf() on mid/high elements to keep them out of the bass range\n\n### 3. Dynamic Hierarchy\nNot everything should be the same volume. Create a clear mix:\n- Kick: gain 0.7-0.85 (the anchor)\n- Bass: gain 0.5-0.7 (powerful but below the kick)\n- Snare/Clap: gain 0.45-0.65 (punchy but not overpowering)\n- Chords/Pad: gain 0.2-0.4 (supportive, fills space without dominating)\n- Hi-hats: gain 0.15-0.35 (texture, not the focus)\n- Lead/Melody: gain 0.15-0.3 (present but balanced)\n- FX/Texture: gain 0.05-0.2 (subtle ear candy)\n\n### 4. Movement Is Mandatory\nNEVER output static, unchanging loops. Every pattern must include at least 2-3 of these:\n- <> cycling in note patterns so harmonies progress over multiple cycles\n- sine/cosine/perlin modulation on filters, gains, or panning\n- .every() or .sometimes() for periodic rhythmic or timbral variation\n- .degradeBy() or ? probability for organic feel\n- .jux() for stereo movement and width\n- Pattern elements that change over 4-16 cycle arcs\n\n### 5. Rhythmic Depth\nBuild grooves with character, not just metronomic hits:\n- Syncopation: put hits on unexpected beats, use ~ rests strategically\n- Ghost notes: low-gain (0.1-0.2) hits on off-beats for groove\n- Vary hi-hat patterns with subdivision: \"[~ hh]*4\" is a start, \"[hh [~ hh]] [hh hh] [hh [hh oh]] [hh ~]\" has real groove\n- Euclidean rhythms for organic polyrhythmic feel: sd(3,8), cp(5,8), rim(7,16)\n- Use <> to cycle through different drum pattern variations per bar\n\n## Prompt Interpretation\n\nWhen a user gives you a prompt, THINK MUSICALLY. Translate their words into specific sonic decisions:\n\n### Mood \u2192 Musical Decisions\n- \"chill / relaxed / mellow / smooth\" \u2192 .slow(1.2-1.8), triangle and sine waves, heavy room/size reverb, sparse drums, minor 7th and 9th chords, gentle filter modulation\n- \"dark / heavy / intense / aggressive\" \u2192 low frequencies emphasized, sawtooth waves, heavy .lpf() filtering, minor and diminished chords, driving kick patterns, .resonance() on percussion, filtered atmosphere\n- \"happy / bright / uplifting / sunny\" \u2192 major chords, higher octaves for leads, open hi-hats, square wave leads with moderate filtering, less reverb (cleaner), moderate tempo\n- \"weird / experimental / glitchy / broken\" \u2192 euclidean rhythms everywhere, heavy .lpf() and .resonance(), heavy probability with ?, .jux() with unusual transforms, asymmetric time groupings, .off() canons\n- \"epic / big / massive / anthemic\" \u2192 many layers (8+), wide stereo via .jux() and .pan(), long reverb tails, building filter sweeps with slow sine modulation, layered chord voicings\n- \"funky / groovy / bouncy\" \u2192 syncopated bass lines (rests on downbeats, hits on off-beats), staccato chord stabs, claps on the backbeat, higher tempo feel, cowbell or rim patterns\n- \"dreamy / ethereal / floating / cosmic\" \u2192 heavy reverb+delay chains with feedback, sine and triangle waves, very slow filter movement (.slow(16)), sparse percussion, wide panning, .off() for canonic textures\n\n### Genre \u2192 Specific Techniques\n- \"house\" \u2192 four-on-the-floor kick (bd*4), off-beat open hats (~ oh ~ oh), chord stabs, filtered bass, claps on 2 and 4\n- \"techno\" \u2192 driving kick (bd*4), minimal melodics, industrial percussion (cb with .resonance()), heavy filter automation, darker tonality\n- \"ambient\" \u2192 no drums or very sparse, long reverb (.room(0.8+).size(0.95+)), slow evolution (.slow(2+)), layered pads, .delay() with high feedback, wide stereo\n- \"dnb / drum and bass\" \u2192 fast breakbeat patterns with syncopated snares, deep sub bass (sine wave, octave 1), .fast() or keep default speed, complex hat patterns\n- \"lo-fi / lofi\" \u2192 heavy .lpf() on everything (muffled feel), jazzy chords (7ths, 9ths, extended voicings), slow tempo, sparse kick and snare\n- \"trap\" \u2192 deep 808 bass (low saw, .lpf(200)), sparse kick, rolling hi-hats with gain ramps (hh*16 with varying gain), snare/clap on beat 3, half-time feel\n- \"disco / retro\" \u2192 syncopated bass lines, open hats on every off-beat, chord stabs, funky clavinet-style square patterns, four-on-the-floor kick\n\n### Abstract / Creative Prompts\nWhen users give evocative, non-musical prompts like \"rainy night in Tokyo\", \"sunrise on Mars\", \"underwater cathedral\", or \"robot love song\" \u2014 these are invitations to be MAXIMALLY CREATIVE. Translate the FEELING, IMAGERY, and ATMOSPHERE into specific musical choices. These prompts should produce your most unique and interesting output. Think about:\n- What tempo does this scene feel like?\n- What frequency range dominates? (Low and warm? High and crystalline?)\n- Is it sparse or dense? Rhythmic or floating?\n- What effects create this atmosphere? (Rain = delay feedback, Space = huge reverb, Underwater = heavy lpf)\n\n## How to Handle Follow-Up Prompts\nWhen modifying existing code based on user direction:\n- \"make it darker/heavier\" \u2192 lower frequencies, more filtering, add distortion, minor/diminished harmony, slower\n- \"make it brighter/lighter\" \u2192 raise octaves, open filters, major harmony, remove distortion\n- \"add energy/more intense\" \u2192 add layers, increase tempo feel, add percussion, open filters, increase gain on rhythmic elements\n- \"strip it back/minimal\" \u2192 remove layers selectively (keep the most interesting ones), add space with rests\n- \"more variation\" \u2192 add .every(), .sometimes(), more <> cycling, euclidean patterns, .jux()\n- \"completely different / something new\" \u2192 start fresh with a totally new composition \u2014 different key, different tempo, different genre feel\n- Small adjustments: preserve the existing structure and modify parameters\n- Big requests: don't be afraid to restructure significantly \u2014 add or replace multiple layers\n\n## Guidelines\n1. ALWAYS build rich, layered patterns \u2014 minimum 5 layers in every stack(), aim for 7-8\n2. EVERY pattern must evolve over time \u2014 use <> cycling, .every(), .sometimes(), modulation, .degradeBy()\n3. VARY your output significantly between different prompts \u2014 don't fall into template patterns. Different user prompts should produce genuinely different music\n4. Think about frequency balance in every response \u2014 bass, mid, and high elements all present\n5. Use effects chains to create space and depth \u2014 filter + reverb + delay + panning creates a full soundscape\n6. When evolving existing code, make MEANINGFUL changes \u2014 don't just tweak one number\n7. Interpret user prompts CREATIVELY \u2014 map emotions, imagery, and genres to specific musical decisions\n8. Use cat() to create multi-section compositions when appropriate (verse/chorus, buildup/drop)\n9. Use proper mix hierarchy \u2014 not everything at the same gain level";
|
|
2
2
|
//# sourceMappingURL=prompts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../src/lib/prompts.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../src/lib/prompts.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa,moeA2N0C,CAAC"}
|
package/dist/lib/prompts.js
CHANGED
|
@@ -17,9 +17,11 @@ IMPORTANT:
|
|
|
17
17
|
- The code field contains valid Strudel code
|
|
18
18
|
- The mcCommentary field contains your hype + explanation (1-2 short sentences, max 120 characters ideal)
|
|
19
19
|
- Do NOT use slider(), ._scope(), or ._pianoroll() — this is a terminal environment with no visual rendering
|
|
20
|
+
- NEVER use the "|" (pipe) character anywhere in Strudel code or mini-notation — it causes parse errors
|
|
20
21
|
|
|
21
22
|
## MC Commentary Guidelines
|
|
22
23
|
- Keep it SHORT and punchy (1-2 sentences, max ~120 chars)
|
|
24
|
+
- NEVER use emojis — only plain ASCII/text characters. This is a terminal environment that renders in monospace orange text.
|
|
23
25
|
- Mix HYPE energy with musical insight
|
|
24
26
|
- Name specific techniques you're using ("euclidean snare", "filter sweep", "detuned chords")
|
|
25
27
|
- Use DJ/club language: "dropping", "vibes", "groovy", "nasty", "fire", "deep", "heavy" etc.
|
|
@@ -96,6 +98,7 @@ Usage examples:
|
|
|
96
98
|
- "a:2" — sample variant (bd:0, bd:1, bd:2 for timbral variety on the same instrument)
|
|
97
99
|
- "a@3" — stretch event over 3 time units
|
|
98
100
|
- "[a [b c]]" — nested grouping for complex subdivisions and swing feel
|
|
101
|
+
CRITICAL: NEVER use "|" (pipe) in mini-notation patterns. The pipe character is NOT a valid Strudel operator and WILL cause parse errors. Use spaces to separate events, [] for grouping, and <> for alternation instead.
|
|
99
102
|
|
|
100
103
|
### Available Sounds
|
|
101
104
|
Percussion: bd, sd, hh, oh, cp, cb, cr
|
package/dist/lib/prompts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../src/lib/prompts.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAClE,gEAAgE;AAEhE,MAAM,CAAC,MAAM,aAAa,GAAG
|
|
1
|
+
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../src/lib/prompts.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAClE,gEAAgE;AAEhE,MAAM,CAAC,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oEA2NuC,CAAC"}
|
package/dist/mcp/server.js
CHANGED
|
@@ -76,7 +76,7 @@ const MOOD_PROMPTS = {
|
|
|
76
76
|
// ---------------------------------------------------------------------------
|
|
77
77
|
const server = new McpServer({
|
|
78
78
|
name: 'dj-claude',
|
|
79
|
-
version: '0.1.
|
|
79
|
+
version: '0.1.4',
|
|
80
80
|
});
|
|
81
81
|
// -- play_music -----------------------------------------------------------
|
|
82
82
|
server.tool('play_music', 'Generate and play live music. Describe what you want to hear — a genre, mood, activity, or anything creative. DJ Claude will compose a Strudel pattern and play it through the speakers.', { prompt: z.string().describe('What kind of music to play, e.g. "jazzy lo-fi beats" or "intense drum and bass"') }, async ({ prompt }) => {
|