agentblueprint 0.7.15 → 0.7.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +16 -1
  3. package/dist/__tests__/generation-client.test.d.ts +1 -0
  4. package/dist/__tests__/generation-client.test.js +96 -0
  5. package/dist/__tests__/generation-client.test.js.map +1 -0
  6. package/dist/__tests__/generation-tools.test.d.ts +1 -0
  7. package/dist/__tests__/generation-tools.test.js +168 -0
  8. package/dist/__tests__/generation-tools.test.js.map +1 -0
  9. package/dist/__tests__/renderers.test.js +47 -0
  10. package/dist/__tests__/renderers.test.js.map +1 -1
  11. package/dist/client.d.ts +79 -0
  12. package/dist/client.js +32 -19
  13. package/dist/client.js.map +1 -1
  14. package/dist/errors.d.ts +2 -1
  15. package/dist/errors.js +12 -1
  16. package/dist/errors.js.map +1 -1
  17. package/dist/renderers.js +48 -14
  18. package/dist/renderers.js.map +1 -1
  19. package/dist/server.js +40 -0
  20. package/dist/server.js.map +1 -1
  21. package/dist/tools/create-business-profile.d.ts +17 -0
  22. package/dist/tools/create-business-profile.js +28 -0
  23. package/dist/tools/create-business-profile.js.map +1 -0
  24. package/dist/tools/generate-blueprint.d.ts +21 -0
  25. package/dist/tools/generate-blueprint.js +25 -0
  26. package/dist/tools/generate-blueprint.js.map +1 -0
  27. package/dist/tools/generate-use-cases.d.ts +21 -0
  28. package/dist/tools/generate-use-cases.js +29 -0
  29. package/dist/tools/generate-use-cases.js.map +1 -0
  30. package/dist/tools/get-generation-status.d.ts +18 -0
  31. package/dist/tools/get-generation-status.js +41 -0
  32. package/dist/tools/get-generation-status.js.map +1 -0
  33. package/dist/tools/trigger-full-pipeline.d.ts +20 -0
  34. package/dist/tools/trigger-full-pipeline.js +24 -0
  35. package/dist/tools/trigger-full-pipeline.js.map +1 -0
  36. package/package.json +4 -3
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Agent Blueprint
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # agentblueprint
2
2
 
3
- CLI and MCP server for [Agent Blueprint](https://app.agentblueprint.ai) — gives your coding agent read access to your AI blueprints, business cases, implementation plans, and specs.
3
+ CLI and MCP server for [Agent Blueprint](https://app.agentblueprint.ai) — 23 MCP tools for creating structured business profiles, generating pipeline artifacts, exploring blueprint data, syncing implementation state, and downloading full Agent Skills directories. Vendor-agnostic output works with ServiceNow, Salesforce, OpenClaw, or any platform.
4
4
 
5
5
  ## CLI Quick Start
6
6
 
@@ -67,6 +67,14 @@ You can also start the MCP server explicitly with `agentblueprint serve`.
67
67
  2. Click "Create Token"
68
68
  3. Copy the token (shown once)
69
69
 
70
+ ## Supported Headless Workflow
71
+
72
+ Current scope is intentionally narrow:
73
+
74
+ `existing PAT + existing org -> create_business_profile -> generate_use_cases -> generate_blueprint or trigger_full_pipeline -> get_generation_status -> download_blueprint`
75
+
76
+ This release does **not** handle organization creation, OAuth bootstrap, or free-form context extraction into the business profile.
77
+
70
78
  ## Download Blueprint as Agent Skills
71
79
 
72
80
  Download a blueprint as a local Agent Skills directory that any coding agent can read from the filesystem. This is the recommended way to work with blueprints.
@@ -102,6 +110,11 @@ The [Agent Skills](https://agentskills.io) standard is supported by Claude Code,
102
110
 
103
111
  | Tool | Description |
104
112
  |------|-------------|
113
+ | `create_business_profile` | Create or upsert a structured business profile for an existing organization |
114
+ | `generate_use_cases` | Generate normalized use cases from the current business profile and readiness assessment |
115
+ | `generate_blueprint` | Start blueprint generation for a chosen use case and return an `auditId` |
116
+ | `trigger_full_pipeline` | Start the full pipeline for an existing business profile and return a `jobId` |
117
+ | `get_generation_status` | Poll either blueprint generation or full-pipeline generation status |
105
118
  | `list_blueprints` | List all blueprints (summaries) |
106
119
  | `get_blueprint` | Blueprint summary — title, agents, phases, pattern |
107
120
  | `get_business_case` | Business case summary — ROI, pilot economics, recommendation |
@@ -111,6 +124,8 @@ The [Agent Skills](https://agentskills.io) standard is supported by Claude Code,
111
124
  | `get_business_profile` | Organization business profile |
112
125
  | `download_blueprint` | Download full blueprint as Agent Skills file manifest |
113
126
 
127
+ The `generate_blueprint` and `trigger_full_pipeline` tools are asynchronous. Use `get_generation_status` to poll until the run completes, then call `download_blueprint` with the resolved `blueprintId`.
128
+
114
129
  The `get_blueprint`, `get_business_case`, and `get_implementation_plan` tools return concise summaries optimized for agent context windows. For full details (agent specs, financial projections, user stories), use `download_blueprint` to get the complete Agent Skills directory.
115
130
 
116
131
  ## Available Resources
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,96 @@
1
+ import { describe, it, expect, vi, beforeEach } from 'vitest';
2
+ import { AgentBlueprintClient } from '../client.js';
3
+ const mockConfig = {
4
+ apiKey: 'ab_live_test1234567890',
5
+ apiUrl: 'https://test.agentblueprint.ai',
6
+ };
7
+ describe('AgentBlueprintClient generation methods', () => {
8
+ let client;
9
+ beforeEach(() => {
10
+ client = new AgentBlueprintClient(mockConfig);
11
+ vi.restoreAllMocks();
12
+ });
13
+ it('createBusinessProfile posts to the v1 business-profile endpoint and preserves customerOrgId', async () => {
14
+ vi.stubGlobal('fetch', vi.fn().mockResolvedValue({
15
+ ok: true,
16
+ json: () => Promise.resolve({
17
+ success: true,
18
+ data: { id: 'profile-1', companyName: 'Acme', isNew: true },
19
+ timestamp: '',
20
+ }),
21
+ }));
22
+ await client.createBusinessProfile({ companyName: 'Acme' }, '11111111-1111-1111-1111-111111111111');
23
+ expect(fetch).toHaveBeenCalledWith('https://test.agentblueprint.ai/api/v1/business-profile?customerOrgId=11111111-1111-1111-1111-111111111111', expect.objectContaining({
24
+ method: 'POST',
25
+ body: JSON.stringify({ fields: { companyName: 'Acme' } }),
26
+ }));
27
+ });
28
+ it('generateUseCases posts to the new v1 route', async () => {
29
+ vi.stubGlobal('fetch', vi.fn().mockResolvedValue({
30
+ ok: true,
31
+ json: () => Promise.resolve({
32
+ success: true,
33
+ data: { useCases: [{ id: 'uc-1' }], generationMetadata: null, debugInfo: null },
34
+ timestamp: '',
35
+ }),
36
+ }));
37
+ await client.generateUseCases({ count: 2, guidanceText: 'Focus on service ops' });
38
+ expect(fetch).toHaveBeenCalledWith('https://test.agentblueprint.ai/api/v1/generate/use-cases', expect.objectContaining({
39
+ method: 'POST',
40
+ body: JSON.stringify({ count: 2, guidanceText: 'Focus on service ops' }),
41
+ }));
42
+ });
43
+ it('triggerBlueprintGeneration posts to the new v1 route', async () => {
44
+ vi.stubGlobal('fetch', vi.fn().mockResolvedValue({
45
+ ok: true,
46
+ json: () => Promise.resolve({ success: true, data: { auditId: 'audit-1' }, timestamp: '' }),
47
+ }));
48
+ await client.triggerBlueprintGeneration({ useCaseId: 'uc-1', platform: 'vendor_agnostic' });
49
+ expect(fetch).toHaveBeenCalledWith('https://test.agentblueprint.ai/api/v1/generate/blueprint', expect.objectContaining({
50
+ method: 'POST',
51
+ body: JSON.stringify({ useCaseId: 'uc-1', platform: 'vendor_agnostic' }),
52
+ }));
53
+ });
54
+ it('getBlueprintGenerationStatus hits the status endpoint and preserves customerOrgId', async () => {
55
+ vi.stubGlobal('fetch', vi.fn().mockResolvedValue({
56
+ ok: true,
57
+ json: () => Promise.resolve({
58
+ success: true,
59
+ data: { kind: 'blueprint', auditId: 'audit-1', status: 'completed', blueprintId: 'bp-1' },
60
+ timestamp: '',
61
+ }),
62
+ }));
63
+ await client.getBlueprintGenerationStatus('audit-1', '11111111-1111-1111-1111-111111111111');
64
+ expect(fetch).toHaveBeenCalledWith('https://test.agentblueprint.ai/api/v1/generate/blueprint/status/audit-1?customerOrgId=11111111-1111-1111-1111-111111111111', expect.objectContaining({ method: 'GET' }));
65
+ });
66
+ it('triggerFullPipeline posts to the new v1 route', async () => {
67
+ vi.stubGlobal('fetch', vi.fn().mockResolvedValue({
68
+ ok: true,
69
+ json: () => Promise.resolve({ success: true, data: { jobId: 'job-1' }, timestamp: '' }),
70
+ }));
71
+ await client.triggerFullPipeline({
72
+ businessProfileId: 'profile-1',
73
+ specialInstructions: 'Bias for customer support',
74
+ });
75
+ expect(fetch).toHaveBeenCalledWith('https://test.agentblueprint.ai/api/v1/generate/full-pipeline', expect.objectContaining({
76
+ method: 'POST',
77
+ body: JSON.stringify({
78
+ businessProfileId: 'profile-1',
79
+ specialInstructions: 'Bias for customer support',
80
+ }),
81
+ }));
82
+ });
83
+ it('getFullPipelineStatus hits the status endpoint', async () => {
84
+ vi.stubGlobal('fetch', vi.fn().mockResolvedValue({
85
+ ok: true,
86
+ json: () => Promise.resolve({
87
+ success: true,
88
+ data: { kind: 'full_pipeline', jobId: 'job-1', status: 'completed' },
89
+ timestamp: '',
90
+ }),
91
+ }));
92
+ await client.getFullPipelineStatus('job-1');
93
+ expect(fetch).toHaveBeenCalledWith('https://test.agentblueprint.ai/api/v1/generate/full-pipeline/status/job-1', expect.objectContaining({ method: 'GET' }));
94
+ });
95
+ });
96
+ //# sourceMappingURL=generation-client.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generation-client.test.js","sourceRoot":"","sources":["../../src/__tests__/generation-client.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAE9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEpD,MAAM,UAAU,GAAG;IACjB,MAAM,EAAE,wBAAwB;IAChC,MAAM,EAAE,gCAAgC;CACzC,CAAC;AAEF,QAAQ,CAAC,yCAAyC,EAAE,GAAG,EAAE;IACvD,IAAI,MAA4B,CAAC;IAEjC,UAAU,CAAC,GAAG,EAAE;QACd,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,CAAC,CAAC;QAC9C,EAAE,CAAC,eAAe,EAAE,CAAC;IACvB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,6FAA6F,EAAE,KAAK,IAAI,EAAE;QAC3G,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,iBAAiB,CAAC;YAC/C,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC;gBAC1B,OAAO,EAAE,IAAI;gBACb,IAAI,EAAE,EAAE,EAAE,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE;gBAC3D,SAAS,EAAE,EAAE;aACd,CAAC;SACH,CAAC,CAAC,CAAC;QAEJ,MAAM,MAAM,CAAC,qBAAqB,CAAC,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,sCAAsC,CAAC,CAAC;QAEpG,MAAM,CAAC,KAAK,CAAC,CAAC,oBAAoB,CAChC,2GAA2G,EAC3G,MAAM,CAAC,gBAAgB,CAAC;YACtB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI,CAA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J,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,168 @@
1
+ import { describe, it, expect, vi, beforeEach } from 'vitest';
2
+ import { AgentBlueprintClient } from '../client.js';
3
+ import { handleCreateBusinessProfile } from '../tools/create-business-profile.js';
4
+ import { handleGenerateUseCases } from '../tools/generate-use-cases.js';
5
+ import { handleGenerateBlueprint } from '../tools/generate-blueprint.js';
6
+ import { handleTriggerFullPipeline } from '../tools/trigger-full-pipeline.js';
7
+ import { handleGetGenerationStatus } from '../tools/get-generation-status.js';
8
+ const mockConfig = {
9
+ apiKey: 'ab_live_test',
10
+ apiUrl: 'https://test.agentblueprint.ai',
11
+ };
12
+ describe('Generation tool handlers', () => {
13
+ let client;
14
+ beforeEach(() => {
15
+ client = new AgentBlueprintClient(mockConfig);
16
+ vi.restoreAllMocks();
17
+ });
18
+ it('handleCreateBusinessProfile formats create-or-upsert results', async () => {
19
+ vi.stubGlobal('fetch', vi.fn().mockResolvedValue({
20
+ ok: true,
21
+ json: () => Promise.resolve({
22
+ success: true,
23
+ data: {
24
+ id: 'profile-1',
25
+ companyName: 'Acme Health',
26
+ isNew: true,
27
+ aiReadinessScore: 58,
28
+ },
29
+ timestamp: '',
30
+ }),
31
+ }));
32
+ const result = await handleCreateBusinessProfile(client, { fields: { companyName: 'Acme Health' } });
33
+ expect(result.isError).toBeUndefined();
34
+ expect(result.content[0].text).toContain('Business profile created.');
35
+ expect(result.content[0].text).toContain('profile-1');
36
+ });
37
+ it('handleGenerateUseCases returns JSON with a count and next-step hint', async () => {
38
+ vi.stubGlobal('fetch', vi.fn().mockResolvedValue({
39
+ ok: true,
40
+ json: () => Promise.resolve({
41
+ success: true,
42
+ data: {
43
+ useCases: [
44
+ { id: 'uc-1', title: 'AI Triage' },
45
+ { id: 'uc-2', title: 'AI Summaries' },
46
+ ],
47
+ generationMetadata: null,
48
+ debugInfo: null,
49
+ },
50
+ timestamp: '',
51
+ }),
52
+ }));
53
+ const result = await handleGenerateUseCases(client, { count: 2 });
54
+ const parsed = JSON.parse(result.content[0].text);
55
+ expect(parsed.useCaseCount).toBe(2);
56
+ expect(parsed.hint).toContain('generate_blueprint');
57
+ });
58
+ it('handleGenerateBlueprint returns the auditId and polling instruction', async () => {
59
+ vi.stubGlobal('fetch', vi.fn().mockResolvedValue({
60
+ ok: true,
61
+ json: () => Promise.resolve({ success: true, data: { auditId: 'audit-1' }, timestamp: '' }),
62
+ }));
63
+ const result = await handleGenerateBlueprint(client, { useCaseId: 'uc-1' });
64
+ expect(result.content[0].text).toContain('Blueprint generation started.');
65
+ expect(result.content[0].text).toContain('audit-1');
66
+ });
67
+ it('handleTriggerFullPipeline returns the jobId and polling instruction', async () => {
68
+ vi.stubGlobal('fetch', vi.fn().mockResolvedValue({
69
+ ok: true,
70
+ json: () => Promise.resolve({ success: true, data: { jobId: 'job-1' }, timestamp: '' }),
71
+ }));
72
+ const result = await handleTriggerFullPipeline(client, { businessProfileId: 'profile-1' });
73
+ expect(result.content[0].text).toContain('Full pipeline started.');
74
+ expect(result.content[0].text).toContain('job-1');
75
+ });
76
+ it('handleGetGenerationStatus normalizes blueprint polling responses', async () => {
77
+ vi.stubGlobal('fetch', vi.fn().mockResolvedValue({
78
+ ok: true,
79
+ json: () => Promise.resolve({
80
+ success: true,
81
+ data: {
82
+ kind: 'blueprint',
83
+ auditId: 'audit-1',
84
+ status: 'completed',
85
+ blueprintId: 'bp-1',
86
+ progressPercent: 100,
87
+ stage: 'done',
88
+ stageLabel: 'Done',
89
+ error: null,
90
+ entityRoute: '/blueprints/bp-1',
91
+ entityTitle: 'Blueprint',
92
+ updatedAt: '2026-04-21T00:00:00.000Z',
93
+ completedAt: '2026-04-21T00:00:00.000Z',
94
+ },
95
+ timestamp: '',
96
+ }),
97
+ }));
98
+ const result = await handleGetGenerationStatus(client, { auditId: 'audit-1' });
99
+ const parsed = JSON.parse(result.content[0].text);
100
+ expect(parsed.kind).toBe('blueprint');
101
+ expect(parsed.hint).toContain('download_blueprint');
102
+ });
103
+ it('handleGetGenerationStatus normalizes full-pipeline polling responses', async () => {
104
+ vi.stubGlobal('fetch', vi.fn().mockResolvedValue({
105
+ ok: true,
106
+ json: () => Promise.resolve({
107
+ success: true,
108
+ data: {
109
+ kind: 'full_pipeline',
110
+ jobId: 'job-1',
111
+ status: 'completed',
112
+ generatedArtifactIds: {
113
+ readinessId: 'read-1',
114
+ useCaseIds: ['uc-1'],
115
+ selectedUseCaseId: 'uc-1',
116
+ blueprintId: 'bp-1',
117
+ businessCaseId: 'bc-1',
118
+ implementationPlanId: 'ip-1',
119
+ },
120
+ progressPercent: 100,
121
+ currentStep: 'Done',
122
+ error: null,
123
+ businessProfileId: 'profile-1',
124
+ platform: 'vendor_agnostic',
125
+ strategicInitiativeId: null,
126
+ startedAt: '2026-04-21T00:00:00.000Z',
127
+ completedAt: '2026-04-21T00:00:00.000Z',
128
+ createdAt: '2026-04-21T00:00:00.000Z',
129
+ updatedAt: '2026-04-21T00:00:00.000Z',
130
+ },
131
+ timestamp: '',
132
+ }),
133
+ }));
134
+ const result = await handleGetGenerationStatus(client, { jobId: 'job-1' });
135
+ const parsed = JSON.parse(result.content[0].text);
136
+ expect(parsed.kind).toBe('full_pipeline');
137
+ expect(parsed.generatedArtifactIds.blueprintId).toBe('bp-1');
138
+ expect(parsed.hint).toContain('download_blueprint');
139
+ });
140
+ it('returns a validation error when get_generation_status receives both IDs', async () => {
141
+ const result = await handleGetGenerationStatus(client, { auditId: 'audit-1', jobId: 'job-1' });
142
+ expect(result.isError).toBe(true);
143
+ expect(result.content[0].text).toContain('exactly one');
144
+ });
145
+ it('formats 403 approval failures clearly', async () => {
146
+ vi.stubGlobal('fetch', vi.fn().mockResolvedValue({
147
+ ok: false,
148
+ status: 403,
149
+ statusText: 'Forbidden',
150
+ json: () => Promise.resolve({ error: 'AI generation requires an upgraded account. Contact support to unlock this feature.' }),
151
+ }));
152
+ const result = await handleGenerateUseCases(client, {});
153
+ expect(result.isError).toBe(true);
154
+ expect(result.content[0].text).toContain('Approval required (403)');
155
+ });
156
+ it('formats 429 rate limits clearly', async () => {
157
+ vi.stubGlobal('fetch', vi.fn().mockResolvedValue({
158
+ ok: false,
159
+ status: 429,
160
+ statusText: 'Too Many Requests',
161
+ json: () => Promise.resolve({ error: 'Rate limit exceeded. Maximum 5 use-case generations per hour.' }),
162
+ }));
163
+ const result = await handleGenerateUseCases(client, {});
164
+ expect(result.isError).toBe(true);
165
+ expect(result.content[0].text).toContain('Rate limit exceeded (429)');
166
+ });
167
+ });
168
+ //# sourceMappingURL=generation-tools.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generation-tools.test.js","sourceRoot":"","sources":["../../src/__tests__/generation-tools.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAE9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAE9E,MAAM,UAAU,GAAG;IACjB,MAAM,EAAE,cAAc;IACtB,MAAM,EAAE,gCAAgC;CACzC,CAAC;AAEF,QAAQ,CAAC,0BAA0B,EAAE,GAAG,EAAE;IACxC,IAAI,MAA4B,CAAC;IAEjC,UAAU,CAAC,GAAG,EAAE;QACd,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,CAAC,CAAC;QAC9C,EAAE,CAAC,eAAe,EAAE,CAAC;IACvB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,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AW;YACvB,IAAI,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,qFAAqF,EAAE,CAAC;SAC9H,CAAC,CAAC,CAAC;QAEJ,MAAM,MAAM,GAAG,MAAM,sBAAsB,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAExD,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAClC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,yBAAyB,CAAC,CAAC;IACtE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iCAAiC,EAAE,KAAK,IAAI,EAAE;QAC/C,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,iBAAiB,CAAC;YAC/C,EAAE,EAAE,KAAK;YACT,MAAM,EAAE,GAAG;YACX,UAAU,EAAE,mBAAmB;YAC/B,IAAI,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,+DAA+D,EAAE,CAAC;SACxG,CAAC,CAAC,CAAC;QAEJ,MAAM,MAAM,GAAG,MAAM,sBAAsB,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAExD,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAClC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,2BAA2B,CAAC,CAAC;IACxE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -737,6 +737,31 @@ describe('GETTING-STARTED.md implementation state reference', () => {
737
737
  const guide = files.get('GETTING-STARTED.md');
738
738
  expect(guide).toContain('agentblueprint sync');
739
739
  });
740
+ it('does not reference missing implementation roadmap files', () => {
741
+ const files = renderSkillDirectory(minimalInput);
742
+ const guide = files.get('GETTING-STARTED.md');
743
+ expect(guide).not.toContain('references/implementation-roadmap.md');
744
+ });
745
+ it('starts with the smallest executable pilot slice', () => {
746
+ const files = renderSkillDirectory(minimalInput);
747
+ const guide = files.get('GETTING-STARTED.md');
748
+ expect(guide).toContain('smallest executable pilot slice');
749
+ expect(guide).not.toContain('Build the first worker agent');
750
+ });
751
+ it('requires approval before demo or test sync', () => {
752
+ const files = renderSkillDirectory(minimalInput);
753
+ const guide = files.get('GETTING-STARTED.md');
754
+ expect(guide).toContain('ask the user before syncing local state back to Agent');
755
+ expect(guide).toContain('after approval in demo/test mode');
756
+ });
757
+ it('requires approval before high-impact actions', () => {
758
+ const files = renderSkillDirectory(minimalInput);
759
+ const guide = files.get('GETTING-STARTED.md');
760
+ expect(guide).toContain('background scripts');
761
+ expect(guide).toContain('production writes');
762
+ expect(guide).toContain('credential changes');
763
+ expect(guide).toContain('cleanup/deletion');
764
+ });
740
765
  });
741
766
  describe('GETTING-STARTED.md sync enhancements', () => {
742
767
  it('Step 5 has sync trigger points', () => {
@@ -1034,6 +1059,22 @@ describe('renderSkillDirectory with implementation state only', () => {
1034
1059
  expect(guide).toContain('CONTINUING AN IMPLEMENTATION');
1035
1060
  expect(guide).toContain('CURRENT-STATE.md');
1036
1061
  });
1062
+ it('return-visit GETTING-STARTED.md includes deployment path decision guidance', () => {
1063
+ const files = renderSkillDirectory(stateOnlyInput);
1064
+ const guide = files.get('GETTING-STARTED.md');
1065
+ expect(guide).toContain('deployment-path decision');
1066
+ expect(guide).toContain('PROGRESS.md');
1067
+ });
1068
+ it('return-visit GETTING-STARTED.md avoids missing roadmap references', () => {
1069
+ const files = renderSkillDirectory(stateOnlyInput);
1070
+ const guide = files.get('GETTING-STARTED.md');
1071
+ expect(guide).not.toContain('references/implementation-roadmap.md');
1072
+ });
1073
+ it('return-visit GETTING-STARTED.md keeps sync gated in demo or test mode', () => {
1074
+ const files = renderSkillDirectory(stateOnlyInput);
1075
+ const guide = files.get('GETTING-STARTED.md');
1076
+ expect(guide).toContain('ask the user before syncing');
1077
+ });
1037
1078
  it('return-visit Step 5 has MCP tool examples', () => {
1038
1079
  const files = renderSkillDirectory(stateOnlyInput);
1039
1080
  const guide = files.get('GETTING-STARTED.md');
@@ -1073,6 +1114,12 @@ describe('renderSkillDirectory with progress only', () => {
1073
1114
  expect(guide).not.toContain('CONTINUING AN IMPLEMENTATION');
1074
1115
  expect(guide).toContain('YOU ARE THE IMPLEMENTER');
1075
1116
  });
1117
+ it('GETTING-STARTED.md includes deployment path decision guidance', () => {
1118
+ const files = renderSkillDirectory(progressOnlyInput);
1119
+ const guide = files.get('GETTING-STARTED.md');
1120
+ expect(guide).toContain('deployment-path decision');
1121
+ expect(guide).toContain('PROGRESS.md');
1122
+ });
1076
1123
  it('evaluation-criteria.md is enriched with Actual columns', () => {
1077
1124
  const files = renderSkillDirectory(progressOnlyInput);
1078
1125
  const evalCriteria = files.get('references/evaluation-criteria.md');