runwork 0.13.2 → 0.13.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agents/__tests__/intro-skill.test.js +2 -2
- package/dist/agents/intro-skill.d.ts +1 -1
- package/dist/commands/__tests__/setup-persona.test.js +2 -2
- package/dist/commands/setup.js +2 -2
- package/dist/generated/version.d.ts +1 -1
- package/dist/generated/version.js +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -166,8 +166,8 @@ describe('generateInstructionHint', () => {
|
|
|
166
166
|
const hint = generateInstructionHint({ ...baseCtx, persona: { level: 3, label: 'engineer' } });
|
|
167
167
|
expect(hint).not.toContain('Communicating with this user');
|
|
168
168
|
});
|
|
169
|
-
it('adds
|
|
170
|
-
const hint = generateInstructionHint({ ...baseCtx, persona: { level: 1, label: '
|
|
169
|
+
it('adds an everyday persona block (level 1) telling agents to avoid dev tooling', () => {
|
|
170
|
+
const hint = generateInstructionHint({ ...baseCtx, persona: { level: 1, label: 'everyday' } });
|
|
171
171
|
expect(hint).toContain('Communicating with this user');
|
|
172
172
|
expect(hint).toContain('not a software developer');
|
|
173
173
|
expect(hint).toContain('npm, bun, node');
|
|
@@ -29,7 +29,7 @@ export interface InstructionHintContext {
|
|
|
29
29
|
*/
|
|
30
30
|
persona?: {
|
|
31
31
|
level: 1 | 2 | 3;
|
|
32
|
-
label: '
|
|
32
|
+
label: 'everyday' | 'curious' | 'engineer';
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
export declare function buildAppSkillDescription(appName: string, registries: WorkspaceAllData | null): string;
|
|
@@ -7,7 +7,7 @@ import { resolvePersona } from '../setup.js';
|
|
|
7
7
|
*/
|
|
8
8
|
describe('resolvePersona', () => {
|
|
9
9
|
it('maps a valid --persona flag to level and label', () => {
|
|
10
|
-
expect(resolvePersona('1', undefined)).toEqual({ level: 1, label: '
|
|
10
|
+
expect(resolvePersona('1', undefined)).toEqual({ level: 1, label: 'everyday' });
|
|
11
11
|
expect(resolvePersona('2', undefined)).toEqual({ level: 2, label: 'curious' });
|
|
12
12
|
expect(resolvePersona('3', undefined)).toEqual({ level: 3, label: 'engineer' });
|
|
13
13
|
});
|
|
@@ -25,7 +25,7 @@ describe('resolvePersona', () => {
|
|
|
25
25
|
expect(resolvePersona(undefined, undefined)).toBeUndefined();
|
|
26
26
|
});
|
|
27
27
|
it('prefers the flag over an existing on-disk persona', () => {
|
|
28
|
-
const existing = { level: 1, label: '
|
|
28
|
+
const existing = { level: 1, label: 'everyday' };
|
|
29
29
|
expect(resolvePersona('3', existing)).toEqual({ level: 3, label: 'engineer' });
|
|
30
30
|
});
|
|
31
31
|
});
|
package/dist/commands/setup.js
CHANGED
|
@@ -10,7 +10,7 @@ import { detectAgents, printNoAgentsMessage } from '../agents/detect.js';
|
|
|
10
10
|
import { syncFromState } from './sync.js';
|
|
11
11
|
import { loadSetupState } from '../utils/setup-state.js';
|
|
12
12
|
const PERSONA_LABELS = {
|
|
13
|
-
1: '
|
|
13
|
+
1: 'everyday',
|
|
14
14
|
2: 'curious',
|
|
15
15
|
3: 'engineer',
|
|
16
16
|
};
|
|
@@ -69,7 +69,7 @@ export const setupCommand = new Command('setup')
|
|
|
69
69
|
.option('--agent <slug>', 'Only configure a specific agent (e.g. claude-code, cursor)')
|
|
70
70
|
.option('--dry-run', 'Show what would be configured without writing files')
|
|
71
71
|
.option('-y, --yes', 'Skip all prompts, configure all detected agents with user scope')
|
|
72
|
-
.option('--persona <level>', 'Technical-level persona for agent instructions (1=
|
|
72
|
+
.option('--persona <level>', 'Technical-level persona for agent instructions (1=everyday, 2=curious, 3=engineer)')
|
|
73
73
|
.action(async (opts) => {
|
|
74
74
|
const credentials = requireAuth();
|
|
75
75
|
const client = new ApiClient(credentials);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.13.
|
|
1
|
+
export declare const VERSION = "0.13.3";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Auto-generated by scripts/embed-types.ts -- do not edit
|
|
2
|
-
export const VERSION = "0.13.
|
|
2
|
+
export const VERSION = "0.13.3";
|
package/dist/types.d.ts
CHANGED
package/package.json
CHANGED