nexarch 0.9.16 → 0.9.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.
|
@@ -1540,11 +1540,11 @@ export async function initProject(args) {
|
|
|
1540
1540
|
if (entityTypeOverride === "application") {
|
|
1541
1541
|
pendingSteps.push({
|
|
1542
1542
|
step: stepNum++,
|
|
1543
|
-
action: "
|
|
1544
|
-
instruction: `Review the codebase to identify
|
|
1543
|
+
action: "discover_functions",
|
|
1544
|
+
instruction: `Review the codebase to identify discrete application functions (what the application does). Examine named modules, route layout, service boundaries, and any architecture documentation. Register functions as application_function entities with subtype core_function (primary business function), supporting_function (auxiliary/enablement), integration_function (external connectivity), or data_function (data processing). Only register functions clearly evidenced by the codebase — do not invent them.`,
|
|
1545
1545
|
commandTemplates: {
|
|
1546
|
-
updateEntity: `nexarch update-entity --key "
|
|
1547
|
-
addRelationship: `nexarch add-relationship --from "
|
|
1546
|
+
updateEntity: `nexarch update-entity --key "application_function:${projectSlug}-<function-slug>" --entity-type application_function --subtype core_function --name "..." --description "..."`,
|
|
1547
|
+
addRelationship: `nexarch add-relationship --from "application_function:${projectSlug}-<function-slug>" --to "${projectExternalKey}" --type part_of`,
|
|
1548
1548
|
},
|
|
1549
1549
|
});
|
|
1550
1550
|
}
|
|
@@ -1685,12 +1685,14 @@ export async function initProject(args) {
|
|
|
1685
1685
|
lines.push(` ${step++}. Update each sub-package listed under CLASSIFY_THESE above.`);
|
|
1686
1686
|
}
|
|
1687
1687
|
if (entityTypeOverride === "application") {
|
|
1688
|
-
lines.push(` ${step++}. Review the codebase to identify
|
|
1689
|
-
lines.push(` Examine
|
|
1690
|
-
lines.push(`
|
|
1688
|
+
lines.push(` ${step++}. Review the codebase to identify discrete application functions (what the application does).`);
|
|
1689
|
+
lines.push(` Examine named modules, route layout, service boundaries, and any architecture documentation.`);
|
|
1690
|
+
lines.push(` Use subtype core_function (primary business function), supporting_function (auxiliary/enablement),`);
|
|
1691
|
+
lines.push(` integration_function (external connectivity), or data_function (data processing).`);
|
|
1692
|
+
lines.push(` Only register functions clearly evidenced by the codebase — do not invent them.`);
|
|
1691
1693
|
lines.push(` For each one found:`);
|
|
1692
|
-
lines.push(` nexarch update-entity --key "
|
|
1693
|
-
lines.push(` nexarch add-relationship --from "
|
|
1694
|
+
lines.push(` nexarch update-entity --key "application_function:${projectExternalKey.split(":")[1] ?? "project"}-<function-slug>" --entity-type application_function --subtype core_function --name "..." --description "..."`);
|
|
1695
|
+
lines.push(` nexarch add-relationship --from "application_function:${projectExternalKey.split(":")[1] ?? "project"}-<function-slug>" --to "${projectExternalKey}" --type part_of`);
|
|
1694
1696
|
}
|
|
1695
1697
|
lines.push(` ${step++}. Scan the READMEs for platforms/SaaS not auto-detected (Vercel, Neon, Stripe, etc.).`);
|
|
1696
1698
|
lines.push(` For each found: nexarch resolve-names --names "..." --json → nexarch update-entity → nexarch add-relationship`);
|