@prodara/templates 0.1.0
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/README.md +94 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/dist/phases/clarify.d.ts +4 -0
- package/dist/phases/clarify.d.ts.map +1 -0
- package/dist/phases/clarify.js +38 -0
- package/dist/phases/clarify.js.map +1 -0
- package/dist/phases/design.d.ts +4 -0
- package/dist/phases/design.d.ts.map +1 -0
- package/dist/phases/design.js +72 -0
- package/dist/phases/design.js.map +1 -0
- package/dist/phases/explore.d.ts +4 -0
- package/dist/phases/explore.d.ts.map +1 -0
- package/dist/phases/explore.js +52 -0
- package/dist/phases/explore.js.map +1 -0
- package/dist/phases/fix.d.ts +4 -0
- package/dist/phases/fix.d.ts.map +1 -0
- package/dist/phases/fix.js +42 -0
- package/dist/phases/fix.js.map +1 -0
- package/dist/phases/help.d.ts +4 -0
- package/dist/phases/help.d.ts.map +1 -0
- package/dist/phases/help.js +40 -0
- package/dist/phases/help.js.map +1 -0
- package/dist/phases/helpers.d.ts +4 -0
- package/dist/phases/helpers.d.ts.map +1 -0
- package/dist/phases/helpers.js +15 -0
- package/dist/phases/helpers.js.map +1 -0
- package/dist/phases/implement.d.ts +4 -0
- package/dist/phases/implement.d.ts.map +1 -0
- package/dist/phases/implement.js +62 -0
- package/dist/phases/implement.js.map +1 -0
- package/dist/phases/index.d.ts +13 -0
- package/dist/phases/index.d.ts.map +1 -0
- package/dist/phases/index.js +16 -0
- package/dist/phases/index.js.map +1 -0
- package/dist/phases/onboard.d.ts +4 -0
- package/dist/phases/onboard.d.ts.map +1 -0
- package/dist/phases/onboard.js +76 -0
- package/dist/phases/onboard.js.map +1 -0
- package/dist/phases/party.d.ts +4 -0
- package/dist/phases/party.d.ts.map +1 -0
- package/dist/phases/party.js +37 -0
- package/dist/phases/party.js.map +1 -0
- package/dist/phases/plan.d.ts +4 -0
- package/dist/phases/plan.d.ts.map +1 -0
- package/dist/phases/plan.js +43 -0
- package/dist/phases/plan.js.map +1 -0
- package/dist/phases/review.d.ts +4 -0
- package/dist/phases/review.d.ts.map +1 -0
- package/dist/phases/review.js +45 -0
- package/dist/phases/review.js.map +1 -0
- package/dist/phases/specify.d.ts +4 -0
- package/dist/phases/specify.d.ts.map +1 -0
- package/dist/phases/specify.js +39 -0
- package/dist/phases/specify.js.map +1 -0
- package/dist/platforms/claude.d.ts +8 -0
- package/dist/platforms/claude.d.ts.map +1 -0
- package/dist/platforms/claude.js +16 -0
- package/dist/platforms/claude.js.map +1 -0
- package/dist/platforms/codex.d.ts +8 -0
- package/dist/platforms/codex.d.ts.map +1 -0
- package/dist/platforms/codex.js +16 -0
- package/dist/platforms/codex.js.map +1 -0
- package/dist/platforms/copilot.d.ts +8 -0
- package/dist/platforms/copilot.d.ts.map +1 -0
- package/dist/platforms/copilot.js +24 -0
- package/dist/platforms/copilot.js.map +1 -0
- package/dist/platforms/cursor.d.ts +8 -0
- package/dist/platforms/cursor.d.ts.map +1 -0
- package/dist/platforms/cursor.js +24 -0
- package/dist/platforms/cursor.js.map +1 -0
- package/dist/platforms/index.d.ts +8 -0
- package/dist/platforms/index.d.ts.map +1 -0
- package/dist/platforms/index.js +10 -0
- package/dist/platforms/index.js.map +1 -0
- package/dist/platforms/opencode.d.ts +8 -0
- package/dist/platforms/opencode.d.ts.map +1 -0
- package/dist/platforms/opencode.js +16 -0
- package/dist/platforms/opencode.js.map +1 -0
- package/dist/platforms/registry.d.ts +71 -0
- package/dist/platforms/registry.d.ts.map +1 -0
- package/dist/platforms/registry.js +80 -0
- package/dist/platforms/registry.js.map +1 -0
- package/dist/renderer.d.ts +8 -0
- package/dist/renderer.d.ts.map +1 -0
- package/dist/renderer.js +123 -0
- package/dist/renderer.js.map +1 -0
- package/dist/reviewers/adversarial.d.ts +6 -0
- package/dist/reviewers/adversarial.d.ts.map +1 -0
- package/dist/reviewers/adversarial.js +30 -0
- package/dist/reviewers/adversarial.js.map +1 -0
- package/dist/reviewers/architecture.d.ts +6 -0
- package/dist/reviewers/architecture.d.ts.map +1 -0
- package/dist/reviewers/architecture.js +25 -0
- package/dist/reviewers/architecture.js.map +1 -0
- package/dist/reviewers/code-quality.d.ts +6 -0
- package/dist/reviewers/code-quality.d.ts.map +1 -0
- package/dist/reviewers/code-quality.js +25 -0
- package/dist/reviewers/code-quality.js.map +1 -0
- package/dist/reviewers/custom.d.ts +4 -0
- package/dist/reviewers/custom.d.ts.map +1 -0
- package/dist/reviewers/custom.js +25 -0
- package/dist/reviewers/custom.js.map +1 -0
- package/dist/reviewers/edge-case.d.ts +6 -0
- package/dist/reviewers/edge-case.d.ts.map +1 -0
- package/dist/reviewers/edge-case.js +28 -0
- package/dist/reviewers/edge-case.js.map +1 -0
- package/dist/reviewers/helpers.d.ts +6 -0
- package/dist/reviewers/helpers.d.ts.map +1 -0
- package/dist/reviewers/helpers.js +42 -0
- package/dist/reviewers/helpers.js.map +1 -0
- package/dist/reviewers/index.d.ts +10 -0
- package/dist/reviewers/index.d.ts.map +1 -0
- package/dist/reviewers/index.js +13 -0
- package/dist/reviewers/index.js.map +1 -0
- package/dist/reviewers/security.d.ts +6 -0
- package/dist/reviewers/security.d.ts.map +1 -0
- package/dist/reviewers/security.js +25 -0
- package/dist/reviewers/security.js.map +1 -0
- package/dist/reviewers/test-quality.d.ts +6 -0
- package/dist/reviewers/test-quality.d.ts.map +1 -0
- package/dist/reviewers/test-quality.js +25 -0
- package/dist/reviewers/test-quality.js.map +1 -0
- package/dist/reviewers/ux-quality.d.ts +6 -0
- package/dist/reviewers/ux-quality.d.ts.map +1 -0
- package/dist/reviewers/ux-quality.js +25 -0
- package/dist/reviewers/ux-quality.js.map +1 -0
- package/dist/types.d.ts +129 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +5 -0
- package/dist/types.js.map +1 -0
- package/package.json +51 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// ---------------------------------------------------------------------------
|
|
2
|
+
// Prodara Templates — Onboard Phase
|
|
3
|
+
// ---------------------------------------------------------------------------
|
|
4
|
+
import { appendArtifactRules } from './helpers.js';
|
|
5
|
+
/** Render the Onboard phase prompt — interactive onboarding guide. */
|
|
6
|
+
export function renderOnboard(ctx) {
|
|
7
|
+
const lines = [];
|
|
8
|
+
lines.push('# Prodara Onboarding');
|
|
9
|
+
lines.push('');
|
|
10
|
+
if (ctx.projectState === 'empty') {
|
|
11
|
+
lines.push('## Getting Started');
|
|
12
|
+
lines.push('');
|
|
13
|
+
lines.push('No `.prd` files found. Let\'s create your first product specification.');
|
|
14
|
+
lines.push('');
|
|
15
|
+
lines.push('### Steps');
|
|
16
|
+
lines.push('');
|
|
17
|
+
lines.push('1. Create a product declaration file (e.g. `app.prd`)');
|
|
18
|
+
lines.push('2. Add your first module with entities');
|
|
19
|
+
lines.push('3. Run `prodara build` to compile the product graph');
|
|
20
|
+
}
|
|
21
|
+
else if (ctx.projectState === 'basic') {
|
|
22
|
+
lines.push('## Expanding Your Specification');
|
|
23
|
+
lines.push('');
|
|
24
|
+
lines.push(`Found ${ctx.prdFileCount} .prd file(s) and ${ctx.modules.length} module(s).`);
|
|
25
|
+
lines.push('');
|
|
26
|
+
lines.push('### Suggested Next Steps');
|
|
27
|
+
lines.push('');
|
|
28
|
+
lines.push('1. Add workflows to model business processes');
|
|
29
|
+
lines.push('2. Add screens/surfaces for UI components');
|
|
30
|
+
lines.push('3. Add governance rules and policies');
|
|
31
|
+
lines.push('4. Run `prodara validate` to check for issues');
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
lines.push('## Advanced Configuration');
|
|
35
|
+
lines.push('');
|
|
36
|
+
lines.push(`Project has ${ctx.prdFileCount} .prd file(s), ${ctx.modules.length} module(s), and a build artifact.`);
|
|
37
|
+
lines.push('');
|
|
38
|
+
lines.push('### Suggested Next Steps');
|
|
39
|
+
lines.push('');
|
|
40
|
+
lines.push('1. Run `prodara review` to get reviewer feedback');
|
|
41
|
+
lines.push('2. Use `prodara propose <change>` to plan changes');
|
|
42
|
+
lines.push('3. Configure custom reviewers in `.prodara/reviewers/`');
|
|
43
|
+
lines.push('4. Set up a constitution in `.prodara/constitution.md`');
|
|
44
|
+
}
|
|
45
|
+
if (ctx.configuredItems.length > 0) {
|
|
46
|
+
lines.push('');
|
|
47
|
+
lines.push('## Already Configured');
|
|
48
|
+
lines.push('');
|
|
49
|
+
for (const item of ctx.configuredItems) {
|
|
50
|
+
lines.push(`- ✓ ${item}`);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
if (ctx.missingItems.length > 0) {
|
|
54
|
+
lines.push('');
|
|
55
|
+
lines.push('## Not Yet Configured');
|
|
56
|
+
lines.push('');
|
|
57
|
+
for (const item of ctx.missingItems) {
|
|
58
|
+
lines.push(`- ○ ${item}`);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
if (ctx.constitution) {
|
|
62
|
+
lines.push('');
|
|
63
|
+
lines.push('## Constitution');
|
|
64
|
+
lines.push('');
|
|
65
|
+
lines.push(ctx.constitution);
|
|
66
|
+
}
|
|
67
|
+
if (ctx.graphSlice) {
|
|
68
|
+
lines.push('');
|
|
69
|
+
lines.push('## Graph Context');
|
|
70
|
+
lines.push('');
|
|
71
|
+
lines.push(ctx.graphSlice);
|
|
72
|
+
}
|
|
73
|
+
appendArtifactRules(lines, ctx);
|
|
74
|
+
return lines.join('\n');
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=onboard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onboard.js","sourceRoot":"","sources":["../../src/phases/onboard.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,oCAAoC;AACpC,8EAA8E;AAG9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD,sEAAsE;AACtE,MAAM,UAAU,aAAa,CAAC,GAAmB;IAC/C,MAAM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ACpC,KAAK,CAAC,IAAI,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC;IAED,IAAI,GAAG,CAAC,YAAY,EAAE,CAAC;QACrB,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACf,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QAC9B,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACf,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IAC/B,CAAC;IAED,IAAI,GAAG,CAAC,UAAU,EAAE,CAAC;QACnB,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACf,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;QAC/B,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACf,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAC7B,CAAC;IAED,mBAAmB,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAEhC,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"party.d.ts","sourceRoot":"","sources":["../../src/phases/party.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAGhD,oEAAoE;AACpE,wBAAgB,WAAW,CAAC,GAAG,EAAE,YAAY,GAAG,MAAM,CAqCrD"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// ---------------------------------------------------------------------------
|
|
2
|
+
// Prodara Templates — Party Phase
|
|
3
|
+
// ---------------------------------------------------------------------------
|
|
4
|
+
import { appendArtifactRules } from './helpers.js';
|
|
5
|
+
/** Render the Party phase prompt — multi-perspective discussion. */
|
|
6
|
+
export function renderParty(ctx) {
|
|
7
|
+
const lines = [];
|
|
8
|
+
lines.push('# Party Mode');
|
|
9
|
+
lines.push('');
|
|
10
|
+
lines.push(`## Topic: ${ctx.topic}`);
|
|
11
|
+
lines.push('');
|
|
12
|
+
lines.push('Each perspective below provides its analysis. A synthesis section follows.');
|
|
13
|
+
lines.push('');
|
|
14
|
+
for (const p of ctx.perspectives) {
|
|
15
|
+
lines.push(`### ${p.name}`);
|
|
16
|
+
lines.push(`Role: ${p.role}`);
|
|
17
|
+
lines.push('');
|
|
18
|
+
}
|
|
19
|
+
lines.push('## Synthesis');
|
|
20
|
+
lines.push('');
|
|
21
|
+
lines.push('Combine insights from all perspectives above into a unified recommendation.');
|
|
22
|
+
if (ctx.constitution) {
|
|
23
|
+
lines.push('');
|
|
24
|
+
lines.push('## Constitution');
|
|
25
|
+
lines.push('');
|
|
26
|
+
lines.push(ctx.constitution);
|
|
27
|
+
}
|
|
28
|
+
if (ctx.graphSlice) {
|
|
29
|
+
lines.push('');
|
|
30
|
+
lines.push('## Graph Context');
|
|
31
|
+
lines.push('');
|
|
32
|
+
lines.push(ctx.graphSlice);
|
|
33
|
+
}
|
|
34
|
+
appendArtifactRules(lines, ctx);
|
|
35
|
+
return lines.join('\n');
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=party.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"party.js","sourceRoot":"","sources":["../../src/phases/party.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,kCAAkC;AAClC,8EAA8E;AAG9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD,oEAAoE;AACpE,MAAM,UAAU,WAAW,CAAC,GAAiB;IAC3C,MAAM,KAAK,GAAa,EAAE,CAAC;IAE3B,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAC3B,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACf,KAAK,CAAC,IAAI,CAAC,aAAa,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC;IACrC,KAAK,CAAC,I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.d.ts","sourceRoot":"","sources":["../../src/phases/plan.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/C,oEAAoE;AACpE,wBAAgB,UAAU,CAAC,GAAG,EAAE,WAAW,GAAG,MAAM,CA2CnD"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// ---------------------------------------------------------------------------
|
|
2
|
+
// Prodara Templates — Plan Phase
|
|
3
|
+
// ---------------------------------------------------------------------------
|
|
4
|
+
import { appendArtifactRules } from './helpers.js';
|
|
5
|
+
/** Render the Plan phase prompt with tasks, changes, and impact. */
|
|
6
|
+
export function renderPlan(ctx) {
|
|
7
|
+
const lines = [];
|
|
8
|
+
lines.push('# Execution Plan');
|
|
9
|
+
lines.push('');
|
|
10
|
+
if (ctx.changes.length > 0) {
|
|
11
|
+
lines.push(`## Changes (${ctx.changes.length})`);
|
|
12
|
+
lines.push('');
|
|
13
|
+
for (const c of ctx.changes) {
|
|
14
|
+
const detail = c.details ? ` — ${c.details}` : '';
|
|
15
|
+
lines.push(`- **${c.changeKind}** \`${c.nodeId}\`${detail}`);
|
|
16
|
+
}
|
|
17
|
+
lines.push('');
|
|
18
|
+
}
|
|
19
|
+
if (ctx.impacts.length > 0) {
|
|
20
|
+
lines.push(`## Impact Analysis (${ctx.impacts.length})`);
|
|
21
|
+
lines.push('');
|
|
22
|
+
for (const i of ctx.impacts) {
|
|
23
|
+
lines.push(`- \`${i.nodeId}\` — ${i.reason} (via ${i.via}, depth ${i.depth})`);
|
|
24
|
+
}
|
|
25
|
+
lines.push('');
|
|
26
|
+
}
|
|
27
|
+
if (ctx.tasks.length > 0) {
|
|
28
|
+
lines.push(`## Tasks (${ctx.tasks.length})`);
|
|
29
|
+
lines.push('');
|
|
30
|
+
for (const t of ctx.tasks) {
|
|
31
|
+
lines.push(`- [${t.taskId}] **${t.action}** \`${t.nodeId}\` — ${t.reason}`);
|
|
32
|
+
}
|
|
33
|
+
lines.push('');
|
|
34
|
+
}
|
|
35
|
+
if (ctx.graphSlice) {
|
|
36
|
+
lines.push('## Graph Context');
|
|
37
|
+
lines.push('');
|
|
38
|
+
lines.push(ctx.graphSlice);
|
|
39
|
+
}
|
|
40
|
+
appendArtifactRules(lines, ctx);
|
|
41
|
+
return lines.join('\n');
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=plan.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plan.js","sourceRoot":"","sources":["../../src/phases/plan.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,iCAAiC;AACjC,8EAA8E;AAG9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD,oEAAoE;AACpE,MAAM,UAAU,UAAU,CAAC,GAAgB;IACzC,MAAM,KAAK,GAAa,EAAE,CAAC;IAE3B,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAC/B,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAEf,IAAI,GAAG,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC3B,KAAK,CAAC,IAAI,CAAC,eAAe,GAAG,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC;QACjD,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACf,KAAK,MAAM,CAAC,IAAI,GAAG,CAAC,OAAO,EAAE,CAAC;YAC5B,MAAM,MAAM,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAClD,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,UAAU,QAAQ,CAAC,CAAC,MAAM,KAAK,MAAM,EAAE,CAAC,CAAC;QAC/D,CAAC;QACD,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACjB,CAAC;IAED,IAAI,GAAG,CAAC,OAAO,CAAC,MAAM,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AAC1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"review.d.ts","sourceRoot":"","sources":["../../src/phases/review.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAGjD,uEAAuE;AACvE,wBAAgB,YAAY,CAAC,GAAG,EAAE,aAAa,GAAG,MAAM,CA6CvD"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// ---------------------------------------------------------------------------
|
|
2
|
+
// Prodara Templates — Review Phase
|
|
3
|
+
// ---------------------------------------------------------------------------
|
|
4
|
+
import { appendArtifactRules } from './helpers.js';
|
|
5
|
+
/** Render the Review phase prompt for a named reviewer perspective. */
|
|
6
|
+
export function renderReview(ctx) {
|
|
7
|
+
const lines = [];
|
|
8
|
+
lines.push(`# Code Review: ${ctx.reviewerName}`);
|
|
9
|
+
lines.push(`Perspective: ${ctx.perspective}`);
|
|
10
|
+
lines.push('');
|
|
11
|
+
if (ctx.findings.length > 0) {
|
|
12
|
+
lines.push(`## Current Findings (${ctx.findings.length})`);
|
|
13
|
+
lines.push('');
|
|
14
|
+
for (const f of ctx.findings) {
|
|
15
|
+
const node = f.nodeId ? ` (${f.nodeId})` : '';
|
|
16
|
+
lines.push(`### [${f.severity.toUpperCase()}] ${f.category}${node}`);
|
|
17
|
+
lines.push(f.message);
|
|
18
|
+
if (f.suggestion) {
|
|
19
|
+
lines.push(`**Suggestion:** ${f.suggestion}`);
|
|
20
|
+
}
|
|
21
|
+
lines.push('');
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
if (ctx.codeContext) {
|
|
25
|
+
lines.push('## Code Context');
|
|
26
|
+
lines.push('');
|
|
27
|
+
lines.push(ctx.codeContext);
|
|
28
|
+
lines.push('');
|
|
29
|
+
}
|
|
30
|
+
if (ctx.constitution) {
|
|
31
|
+
lines.push('## Constitution');
|
|
32
|
+
lines.push('');
|
|
33
|
+
lines.push(ctx.constitution);
|
|
34
|
+
lines.push('');
|
|
35
|
+
}
|
|
36
|
+
if (ctx.graphSlice) {
|
|
37
|
+
lines.push('## Graph Context');
|
|
38
|
+
lines.push('');
|
|
39
|
+
lines.push(ctx.graphSlice);
|
|
40
|
+
lines.push('');
|
|
41
|
+
}
|
|
42
|
+
appendArtifactRules(lines, ctx);
|
|
43
|
+
return lines.join('\n');
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=review.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"review.js","sourceRoot":"","sources":["../../src/phases/review.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,mCAAmC;AACnC,8EAA8E;AAG9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD,uEAAuE;AACvE,MAAM,UAAU,YAAY,CAAC,GAAkB;IAC7C,MAAM,KAAK,GAAa,EAAE,CAAC;IAE3B,KAAK,CAAC,IAAI,CAAC,kBAAkB,GAAG,CAAC,YAAY,EAAE,CAAC,CAAC;IACjD,KAAK,CAAC,IAAI,CAAC,gBAAgB,GAAG,CAAC,WAAW,EAAE,CAAC,CAAC;IAC9C,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAEf,IAAI,GAAG,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC5B,KAAK,CAAC,IAAI,CAAC,wBAAwB,GAAG,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC;QAC3D,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACf,KAAK,MAAM,CAAC,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC;YAC7B,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;YAC9C,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,WAAW,EAAE,KAAK,CAA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
|
|
1
|
+
{"version":3,"file":"specify.d.ts","sourceRoot":"","sources":["../../src/phases/specify.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD,0DAA0D;AAC1D,wBAAgB,aAAa,CAAC,GAAG,EAAE,cAAc,GAAG,MAAM,CAczD"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// ---------------------------------------------------------------------------
|
|
2
|
+
// Prodara Templates — Specify Phase
|
|
3
|
+
// ---------------------------------------------------------------------------
|
|
4
|
+
import { appendArtifactRules } from './helpers.js';
|
|
5
|
+
/** Render the Specify phase prompt for a given module. */
|
|
6
|
+
export function renderSpecify(ctx) {
|
|
7
|
+
const lines = [];
|
|
8
|
+
lines.push(`# Specification Analysis: ${ctx.moduleName}`);
|
|
9
|
+
lines.push('');
|
|
10
|
+
lines.push('Analyze the following specification and identify all entities, workflows, edges, events, and constraints.');
|
|
11
|
+
lines.push('');
|
|
12
|
+
lines.push('## Specification');
|
|
13
|
+
lines.push('');
|
|
14
|
+
lines.push(ctx.specText);
|
|
15
|
+
appendCommonContext(lines, ctx);
|
|
16
|
+
return lines.join('\n');
|
|
17
|
+
}
|
|
18
|
+
function appendCommonContext(lines, ctx) {
|
|
19
|
+
if (ctx.constitution) {
|
|
20
|
+
lines.push('');
|
|
21
|
+
lines.push('## Constitution');
|
|
22
|
+
lines.push('');
|
|
23
|
+
lines.push(ctx.constitution);
|
|
24
|
+
}
|
|
25
|
+
if (ctx.graphSlice) {
|
|
26
|
+
lines.push('');
|
|
27
|
+
lines.push('## Graph Context');
|
|
28
|
+
lines.push('');
|
|
29
|
+
lines.push(ctx.graphSlice);
|
|
30
|
+
}
|
|
31
|
+
if (ctx.governance) {
|
|
32
|
+
lines.push('');
|
|
33
|
+
lines.push('## Governance Rules');
|
|
34
|
+
lines.push('');
|
|
35
|
+
lines.push(ctx.governance);
|
|
36
|
+
}
|
|
37
|
+
appendArtifactRules(lines, ctx);
|
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ACf,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;QAC/B,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACf,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAC7B,CAAC;IACD,IAAI,GAAG,CAAC,UAAU,EAAE,CAAC;QACnB,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACf,KAAK,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;QAClC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACf,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAC7B,CAAC;IACD,mBAAmB,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;AAClC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PlatformOutput } from '../types.js';
|
|
2
|
+
/** Default output directory for Claude command files. */
|
|
3
|
+
export declare const CLAUDE_DIR = ".claude/commands";
|
|
4
|
+
/** File extension for Claude command files. */
|
|
5
|
+
export declare const CLAUDE_EXT = ".md";
|
|
6
|
+
/** Wrap rendered content for Claude (pass-through with suggested path). */
|
|
7
|
+
export declare function wrapClaude(content: string, capability: string): PlatformOutput;
|
|
8
|
+
//# sourceMappingURL=claude.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claude.d.ts","sourceRoot":"","sources":["../../src/platforms/claude.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,yDAAyD;AACzD,eAAO,MAAM,UAAU,qBAAqB,CAAC;AAC7C,+CAA+C;AAC/C,eAAO,MAAM,UAAU,QAAQ,CAAC;AAEhC,2EAA2E;AAC3E,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,cAAc,CAM9E"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// ---------------------------------------------------------------------------
|
|
2
|
+
// Prodara Templates — Claude Platform Adapter
|
|
3
|
+
// ---------------------------------------------------------------------------
|
|
4
|
+
/** Default output directory for Claude command files. */
|
|
5
|
+
export const CLAUDE_DIR = '.claude/commands';
|
|
6
|
+
/** File extension for Claude command files. */
|
|
7
|
+
export const CLAUDE_EXT = '.md';
|
|
8
|
+
/** Wrap rendered content for Claude (pass-through with suggested path). */
|
|
9
|
+
export function wrapClaude(content, capability) {
|
|
10
|
+
return {
|
|
11
|
+
content,
|
|
12
|
+
suggestedPath: `${CLAUDE_DIR}/prodara-${capability}${CLAUDE_EXT}`,
|
|
13
|
+
extension: CLAUDE_EXT,
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=claude.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claude.js","sourceRoot":"","sources":["../../src/platforms/claude.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,8CAA8C;AAC9C,8EAA8E;AAI9E,yDAAyD;AACzD,MAAM,CAAC,MAAM,UAAU,GAAG,kBAAkB,CAAC;AAC7C,+CAA+C;AAC/C,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAC;AAEhC,2EAA2E;AAC3E,MAAM,UAAU,UAAU,CAAC,OAAe,EAAE,UAAkB;IAC5D,OAAO;QACL,OAAO;QACP,aAAa,EAAE,GAAG,UAAU,YAAY,UAAU,GAAG,UAAU,EAAE;QACjE,SAAS,EAAE,UAAU;KACtB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PlatformOutput } from '../types.js';
|
|
2
|
+
/** Default output directory for Codex agent files. */
|
|
3
|
+
export declare const CODEX_DIR = ".codex";
|
|
4
|
+
/** File extension for Codex agent files. */
|
|
5
|
+
export declare const CODEX_EXT = ".md";
|
|
6
|
+
/** Wrap rendered content for Codex (pass-through with suggested path). */
|
|
7
|
+
export declare function wrapCodex(content: string, capability: string): PlatformOutput;
|
|
8
|
+
//# sourceMappingURL=codex.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codex.d.ts","sourceRoot":"","sources":["../../src/platforms/codex.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,sDAAsD;AACtD,eAAO,MAAM,SAAS,WAAW,CAAC;AAClC,4CAA4C;AAC5C,eAAO,MAAM,SAAS,QAAQ,CAAC;AAE/B,0EAA0E;AAC1E,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,cAAc,CAM7E"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// ---------------------------------------------------------------------------
|
|
2
|
+
// Prodara Templates — Codex Platform Adapter
|
|
3
|
+
// ---------------------------------------------------------------------------
|
|
4
|
+
/** Default output directory for Codex agent files. */
|
|
5
|
+
export const CODEX_DIR = '.codex';
|
|
6
|
+
/** File extension for Codex agent files. */
|
|
7
|
+
export const CODEX_EXT = '.md';
|
|
8
|
+
/** Wrap rendered content for Codex (pass-through with suggested path). */
|
|
9
|
+
export function wrapCodex(content, capability) {
|
|
10
|
+
return {
|
|
11
|
+
content,
|
|
12
|
+
suggestedPath: `${CODEX_DIR}/prodara-${capability}${CODEX_EXT}`,
|
|
13
|
+
extension: CODEX_EXT,
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=codex.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codex.js","sourceRoot":"","sources":["../../src/platforms/codex.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,6CAA6C;AAC7C,8EAA8E;AAI9E,sDAAsD;AACtD,MAAM,CAAC,MAAM,SAAS,GAAG,QAAQ,CAAC;AAClC,4CAA4C;AAC5C,MAAM,CAAC,MAAM,SAAS,GAAG,KAAK,CAAC;AAE/B,0EAA0E;AAC1E,MAAM,UAAU,SAAS,CAAC,OAAe,EAAE,UAAkB;IAC3D,OAAO;QACL,OAAO;QACP,aAAa,EAAE,GAAG,SAAS,YAAY,UAAU,GAAG,SAAS,EAAE;QAC/D,SAAS,EAAE,SAAS;KACrB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PlatformOutput } from '../types.js';
|
|
2
|
+
/** Default output directory for Copilot prompt files. */
|
|
3
|
+
export declare const COPILOT_DIR = ".github/prompts";
|
|
4
|
+
/** File extension for Copilot prompt files. */
|
|
5
|
+
export declare const COPILOT_EXT = ".prompt.md";
|
|
6
|
+
/** Wrap rendered content with Copilot YAML frontmatter. */
|
|
7
|
+
export declare function wrapCopilot(content: string, capability: string): PlatformOutput;
|
|
8
|
+
//# sourceMappingURL=copilot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copilot.d.ts","sourceRoot":"","sources":["../../src/platforms/copilot.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,yDAAyD;AACzD,eAAO,MAAM,WAAW,oBAAoB,CAAC;AAC7C,+CAA+C;AAC/C,eAAO,MAAM,WAAW,eAAe,CAAC;AAExC,2DAA2D;AAC3D,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,cAAc,CAe/E"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// ---------------------------------------------------------------------------
|
|
2
|
+
// Prodara Templates — Copilot Platform Adapter
|
|
3
|
+
// ---------------------------------------------------------------------------
|
|
4
|
+
/** Default output directory for Copilot prompt files. */
|
|
5
|
+
export const COPILOT_DIR = '.github/prompts';
|
|
6
|
+
/** File extension for Copilot prompt files. */
|
|
7
|
+
export const COPILOT_EXT = '.prompt.md';
|
|
8
|
+
/** Wrap rendered content with Copilot YAML frontmatter. */
|
|
9
|
+
export function wrapCopilot(content, capability) {
|
|
10
|
+
const safeCap = capability.replace(/[\n\r"]/g, '');
|
|
11
|
+
const lines = [];
|
|
12
|
+
lines.push('---');
|
|
13
|
+
lines.push(`mode: ${safeCap}`);
|
|
14
|
+
lines.push('tools: []');
|
|
15
|
+
lines.push('---');
|
|
16
|
+
lines.push('');
|
|
17
|
+
lines.push(content);
|
|
18
|
+
return {
|
|
19
|
+
content: lines.join('\n'),
|
|
20
|
+
suggestedPath: `${COPILOT_DIR}/prodara-${safeCap}${COPILOT_EXT}`,
|
|
21
|
+
extension: COPILOT_EXT,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=copilot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copilot.js","sourceRoot":"","sources":["../../src/platforms/copilot.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,+CAA+C;AAC/C,8EAA8E;AAI9E,yDAAyD;AACzD,MAAM,CAAC,MAAM,WAAW,GAAG,iBAAiB,CAAC;AAC7C,+CAA+C;AAC/C,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC;AAExC,2DAA2D;AAC3D,MAAM,UAAU,WAAW,CAAC,OAAe,EAAE,UAAkB;IAC7D,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;IACnD,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAClB,KAAK,CAAC,IAAI,CAAC,SAAS,OAAO,EAAE,CAAC,CAAC;IAC/B,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACxB,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAClB,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACf,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAEpB,OAAO;QACL,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;QACzB,aAAa,EAAE,GAAG,WAAW,YAAY,OAAO,GAAG,WAAW,EAAE;QAChE,SAAS,EAAE,WAAW;KACvB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PlatformOutput } from '../types.js';
|
|
2
|
+
/** Default output directory for Cursor rule files. */
|
|
3
|
+
export declare const CURSOR_DIR = ".cursor/rules";
|
|
4
|
+
/** File extension for Cursor rule files. */
|
|
5
|
+
export declare const CURSOR_EXT = ".mdc";
|
|
6
|
+
/** Wrap rendered content with Cursor YAML frontmatter. */
|
|
7
|
+
export declare function wrapCursor(content: string, capability: string): PlatformOutput;
|
|
8
|
+
//# sourceMappingURL=cursor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cursor.d.ts","sourceRoot":"","sources":["../../src/platforms/cursor.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,sDAAsD;AACtD,eAAO,MAAM,UAAU,kBAAkB,CAAC;AAC1C,4CAA4C;AAC5C,eAAO,MAAM,UAAU,SAAS,CAAC;AAEjC,0DAA0D;AAC1D,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,cAAc,CAe9E"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// ---------------------------------------------------------------------------
|
|
2
|
+
// Prodara Templates — Cursor Platform Adapter
|
|
3
|
+
// ---------------------------------------------------------------------------
|
|
4
|
+
/** Default output directory for Cursor rule files. */
|
|
5
|
+
export const CURSOR_DIR = '.cursor/rules';
|
|
6
|
+
/** File extension for Cursor rule files. */
|
|
7
|
+
export const CURSOR_EXT = '.mdc';
|
|
8
|
+
/** Wrap rendered content with Cursor YAML frontmatter. */
|
|
9
|
+
export function wrapCursor(content, capability) {
|
|
10
|
+
const safeCap = capability.replace(/[\n\r"]/g, '');
|
|
11
|
+
const lines = [];
|
|
12
|
+
lines.push('---');
|
|
13
|
+
lines.push(`description: Prodara ${safeCap} phase`);
|
|
14
|
+
lines.push('globs: ["**/*.prd"]');
|
|
15
|
+
lines.push('---');
|
|
16
|
+
lines.push('');
|
|
17
|
+
lines.push(content);
|
|
18
|
+
return {
|
|
19
|
+
content: lines.join('\n'),
|
|
20
|
+
suggestedPath: `${CURSOR_DIR}/prodara-${safeCap}${CURSOR_EXT}`,
|
|
21
|
+
extension: CURSOR_EXT,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=cursor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cursor.js","sourceRoot":"","sources":["../../src/platforms/cursor.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,8CAA8C;AAC9C,8EAA8E;AAI9E,sDAAsD;AACtD,MAAM,CAAC,MAAM,UAAU,GAAG,eAAe,CAAC;AAC1C,4CAA4C;AAC5C,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC;AAEjC,0DAA0D;AAC1D,MAAM,UAAU,UAAU,CAAC,OAAe,EAAE,UAAkB;IAC5D,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;IACnD,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAClB,KAAK,CAAC,IAAI,CAAC,wBAAwB,OAAO,QAAQ,CAAC,CAAC;IACpD,KAAK,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;IAClC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAClB,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACf,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAEpB,OAAO;QACL,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;QACzB,aAAa,EAAE,GAAG,UAAU,YAAY,OAAO,GAAG,UAAU,EAAE;QAC9D,SAAS,EAAE,UAAU;KACtB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { wrapCopilot, COPILOT_DIR, COPILOT_EXT } from './copilot.js';
|
|
2
|
+
export { wrapClaude, CLAUDE_DIR, CLAUDE_EXT } from './claude.js';
|
|
3
|
+
export { wrapCursor, CURSOR_DIR, CURSOR_EXT } from './cursor.js';
|
|
4
|
+
export { wrapOpencode, OPENCODE_DIR, OPENCODE_EXT } from './opencode.js';
|
|
5
|
+
export { wrapCodex, CODEX_DIR, CODEX_EXT } from './codex.js';
|
|
6
|
+
export { makeAdapter, wrapGemini, GEMINI_DIR, GEMINI_EXT, wrapWindsurf, WINDSURF_DIR, WINDSURF_EXT, wrapKiro, KIRO_DIR, KIRO_EXT, wrapJules, JULES_DIR, JULES_EXT, wrapAmp, AMP_DIR, AMP_EXT, wrapRoo, ROO_DIR, ROO_EXT, wrapAider, AIDER_DIR, AIDER_EXT, wrapCline, CLINE_DIR, CLINE_EXT, wrapContinue, CONTINUE_DIR, CONTINUE_EXT, wrapZed, ZED_DIR, ZED_EXT, wrapBolt, BOLT_DIR, BOLT_EXT, wrapAide, AIDE_DIR, AIDE_EXT, wrapTrae, TRAE_DIR, TRAE_EXT, wrapAugment, AUGMENT_DIR, AUGMENT_EXT, wrapSourcegraph, SOURCEGRAPH_DIR, SOURCEGRAPH_EXT, wrapTabnine, TABNINE_DIR, TABNINE_EXT, wrapSupermaven, SUPERMAVEN_DIR, SUPERMAVEN_EXT, wrapVoid, VOID_DIR, VOID_EXT, wrapPear, PEAR_DIR, PEAR_EXT, wrapDouble, DOUBLE_DIR, DOUBLE_EXT, wrapGeneric, GENERIC_DIR, GENERIC_EXT, } from './registry.js';
|
|
7
|
+
export type { PlatformDef } from './registry.js';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources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AACvB,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// ---------------------------------------------------------------------------
|
|
2
|
+
// Prodara Templates — Platform Adapters Barrel
|
|
3
|
+
// ---------------------------------------------------------------------------
|
|
4
|
+
export { wrapCopilot, COPILOT_DIR, COPILOT_EXT } from './copilot.js';
|
|
5
|
+
export { wrapClaude, CLAUDE_DIR, CLAUDE_EXT } from './claude.js';
|
|
6
|
+
export { wrapCursor, CURSOR_DIR, CURSOR_EXT } from './cursor.js';
|
|
7
|
+
export { wrapOpencode, OPENCODE_DIR, OPENCODE_EXT } from './opencode.js';
|
|
8
|
+
export { wrapCodex, CODEX_DIR, CODEX_EXT } from './codex.js';
|
|
9
|
+
export { makeAdapter, wrapGemini, GEMINI_DIR, GEMINI_EXT, wrapWindsurf, WINDSURF_DIR, WINDSURF_EXT, wrapKiro, KIRO_DIR, KIRO_EXT, wrapJules, JULES_DIR, JULES_EXT, wrapAmp, AMP_DIR, AMP_EXT, wrapRoo, ROO_DIR, ROO_EXT, wrapAider, AIDER_DIR, AIDER_EXT, wrapCline, CLINE_DIR, CLINE_EXT, wrapContinue, CONTINUE_DIR, CONTINUE_EXT, wrapZed, ZED_DIR, ZED_EXT, wrapBolt, BOLT_DIR, BOLT_EXT, wrapAide, AIDE_DIR, AIDE_EXT, wrapTrae, TRAE_DIR, TRAE_EXT, wrapAugment, AUGMENT_DIR, AUGMENT_EXT, wrapSourcegraph, SOURCEGRAPH_DIR, SOURCEGRAPH_EXT, wrapTabnine, TABNINE_DIR, TABNINE_EXT, wrapSupermaven, SUPERMAVEN_DIR, SUPERMAVEN_EXT, wrapVoid, VOID_DIR, VOID_EXT, wrapPear, PEAR_DIR, PEAR_EXT, wrapDouble, DOUBLE_DIR, DOUBLE_EXT, wrapGeneric, GENERIC_DIR, GENERIC_EXT, } from './registry.js';
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
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,UAAU,EAAE,UAAU,EAAE,UAAU,EAClC,WAAW,EAAE,WAAW,EAAE,WAAW,GACtC,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PlatformOutput } from '../types.js';
|
|
2
|
+
/** Default output directory for OpenCode agent files. */
|
|
3
|
+
export declare const OPENCODE_DIR = ".opencode/agent";
|
|
4
|
+
/** File extension for OpenCode agent files. */
|
|
5
|
+
export declare const OPENCODE_EXT = ".md";
|
|
6
|
+
/** Wrap rendered content for OpenCode (pass-through with suggested path). */
|
|
7
|
+
export declare function wrapOpencode(content: string, capability: string): PlatformOutput;
|
|
8
|
+
//# sourceMappingURL=opencode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"opencode.d.ts","sourceRoot":"","sources":["../../src/platforms/opencode.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,yDAAyD;AACzD,eAAO,MAAM,YAAY,oBAAoB,CAAC;AAC9C,+CAA+C;AAC/C,eAAO,MAAM,YAAY,QAAQ,CAAC;AAElC,6EAA6E;AAC7E,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,cAAc,CAMhF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// ---------------------------------------------------------------------------
|
|
2
|
+
// Prodara Templates — OpenCode Platform Adapter
|
|
3
|
+
// ---------------------------------------------------------------------------
|
|
4
|
+
/** Default output directory for OpenCode agent files. */
|
|
5
|
+
export const OPENCODE_DIR = '.opencode/agent';
|
|
6
|
+
/** File extension for OpenCode agent files. */
|
|
7
|
+
export const OPENCODE_EXT = '.md';
|
|
8
|
+
/** Wrap rendered content for OpenCode (pass-through with suggested path). */
|
|
9
|
+
export function wrapOpencode(content, capability) {
|
|
10
|
+
return {
|
|
11
|
+
content,
|
|
12
|
+
suggestedPath: `${OPENCODE_DIR}/prodara-${capability}${OPENCODE_EXT}`,
|
|
13
|
+
extension: OPENCODE_EXT,
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=opencode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"opencode.js","sourceRoot":"","sources":["../../src/platforms/opencode.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,gDAAgD;AAChD,8EAA8E;AAI9E,yDAAyD;AACzD,MAAM,CAAC,MAAM,YAAY,GAAG,iBAAiB,CAAC;AAC9C,+CAA+C;AAC/C,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,CAAC;AAElC,6EAA6E;AAC7E,MAAM,UAAU,YAAY,CAAC,OAAe,EAAE,UAAkB;IAC9D,OAAO;QACL,OAAO;QACP,aAAa,EAAE,GAAG,YAAY,YAAY,UAAU,GAAG,YAAY,EAAE;QACrE,SAAS,EAAE,YAAY;KACxB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { PlatformOutput } from '../types.js';
|
|
2
|
+
export interface PlatformDef {
|
|
3
|
+
readonly dir: string;
|
|
4
|
+
readonly ext: string;
|
|
5
|
+
}
|
|
6
|
+
/** Create a pass-through adapter from a platform definition. */
|
|
7
|
+
export declare function makeAdapter(def: PlatformDef): (content: string, capability: string) => PlatformOutput;
|
|
8
|
+
export declare const GEMINI_DIR = ".gemini/prompts";
|
|
9
|
+
export declare const GEMINI_EXT = ".md";
|
|
10
|
+
export declare const wrapGemini: (content: string, capability: string) => PlatformOutput;
|
|
11
|
+
export declare const WINDSURF_DIR = ".windsurf/rules";
|
|
12
|
+
export declare const WINDSURF_EXT = ".md";
|
|
13
|
+
export declare const wrapWindsurf: (content: string, capability: string) => PlatformOutput;
|
|
14
|
+
export declare const KIRO_DIR = ".kiro/specs";
|
|
15
|
+
export declare const KIRO_EXT = ".md";
|
|
16
|
+
export declare const wrapKiro: (content: string, capability: string) => PlatformOutput;
|
|
17
|
+
export declare const JULES_DIR = ".jules/prompts";
|
|
18
|
+
export declare const JULES_EXT = ".md";
|
|
19
|
+
export declare const wrapJules: (content: string, capability: string) => PlatformOutput;
|
|
20
|
+
export declare const AMP_DIR = ".amp/rules";
|
|
21
|
+
export declare const AMP_EXT = ".md";
|
|
22
|
+
export declare const wrapAmp: (content: string, capability: string) => PlatformOutput;
|
|
23
|
+
export declare const ROO_DIR = ".roo/rules";
|
|
24
|
+
export declare const ROO_EXT = ".md";
|
|
25
|
+
export declare const wrapRoo: (content: string, capability: string) => PlatformOutput;
|
|
26
|
+
export declare const AIDER_DIR = ".aider/prompts";
|
|
27
|
+
export declare const AIDER_EXT = ".md";
|
|
28
|
+
export declare const wrapAider: (content: string, capability: string) => PlatformOutput;
|
|
29
|
+
export declare const CLINE_DIR = ".cline/rules";
|
|
30
|
+
export declare const CLINE_EXT = ".md";
|
|
31
|
+
export declare const wrapCline: (content: string, capability: string) => PlatformOutput;
|
|
32
|
+
export declare const CONTINUE_DIR = ".continue/rules";
|
|
33
|
+
export declare const CONTINUE_EXT = ".md";
|
|
34
|
+
export declare const wrapContinue: (content: string, capability: string) => PlatformOutput;
|
|
35
|
+
export declare const ZED_DIR = ".zed/prompts";
|
|
36
|
+
export declare const ZED_EXT = ".md";
|
|
37
|
+
export declare const wrapZed: (content: string, capability: string) => PlatformOutput;
|
|
38
|
+
export declare const BOLT_DIR = ".bolt/prompts";
|
|
39
|
+
export declare const BOLT_EXT = ".md";
|
|
40
|
+
export declare const wrapBolt: (content: string, capability: string) => PlatformOutput;
|
|
41
|
+
export declare const AIDE_DIR = ".aide/prompts";
|
|
42
|
+
export declare const AIDE_EXT = ".md";
|
|
43
|
+
export declare const wrapAide: (content: string, capability: string) => PlatformOutput;
|
|
44
|
+
export declare const TRAE_DIR = ".trae/rules";
|
|
45
|
+
export declare const TRAE_EXT = ".md";
|
|
46
|
+
export declare const wrapTrae: (content: string, capability: string) => PlatformOutput;
|
|
47
|
+
export declare const AUGMENT_DIR = ".augment/prompts";
|
|
48
|
+
export declare const AUGMENT_EXT = ".md";
|
|
49
|
+
export declare const wrapAugment: (content: string, capability: string) => PlatformOutput;
|
|
50
|
+
export declare const SOURCEGRAPH_DIR = ".sourcegraph/prompts";
|
|
51
|
+
export declare const SOURCEGRAPH_EXT = ".md";
|
|
52
|
+
export declare const wrapSourcegraph: (content: string, capability: string) => PlatformOutput;
|
|
53
|
+
export declare const TABNINE_DIR = ".tabnine/prompts";
|
|
54
|
+
export declare const TABNINE_EXT = ".md";
|
|
55
|
+
export declare const wrapTabnine: (content: string, capability: string) => PlatformOutput;
|
|
56
|
+
export declare const SUPERMAVEN_DIR = ".supermaven/prompts";
|
|
57
|
+
export declare const SUPERMAVEN_EXT = ".md";
|
|
58
|
+
export declare const wrapSupermaven: (content: string, capability: string) => PlatformOutput;
|
|
59
|
+
export declare const VOID_DIR = ".void/prompts";
|
|
60
|
+
export declare const VOID_EXT = ".md";
|
|
61
|
+
export declare const wrapVoid: (content: string, capability: string) => PlatformOutput;
|
|
62
|
+
export declare const PEAR_DIR = ".pear/prompts";
|
|
63
|
+
export declare const PEAR_EXT = ".md";
|
|
64
|
+
export declare const wrapPear: (content: string, capability: string) => PlatformOutput;
|
|
65
|
+
export declare const DOUBLE_DIR = ".double/prompts";
|
|
66
|
+
export declare const DOUBLE_EXT = ".md";
|
|
67
|
+
export declare const wrapDouble: (content: string, capability: string) => PlatformOutput;
|
|
68
|
+
export declare const GENERIC_DIR = ".ai/commands";
|
|
69
|
+
export declare const GENERIC_EXT = ".md";
|
|
70
|
+
export declare const wrapGeneric: (content: string, capability: string) => PlatformOutput;
|
|
71
|
+
//# sourceMappingURL=registry.d.ts.map
|