airgen-cli 0.10.0 → 0.10.2
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.
|
@@ -146,8 +146,8 @@ export function registerDocumentCommands(program, client) {
|
|
|
146
146
|
.argument("<to-section-id>", "Target section ID")
|
|
147
147
|
.option("--dry-run", "Show what would be moved without executing")
|
|
148
148
|
.action(async (tenant, project, fromId, toId, opts) => {
|
|
149
|
-
// Get requirements in source section
|
|
150
|
-
const secData = await client.get(`/sections/${fromId}/requirements
|
|
149
|
+
// Get requirements in source section (tenant query param required for auth)
|
|
150
|
+
const secData = await client.get(`/sections/${fromId}/requirements`, { tenant });
|
|
151
151
|
const reqs = secData.requirements ?? [];
|
|
152
152
|
if (reqs.length === 0) {
|
|
153
153
|
console.log("Source section has no requirements.");
|
|
@@ -56,27 +56,30 @@ export function registerProjectCommands(program, client) {
|
|
|
56
56
|
.option("--template <tpl>", "Template: se (default), safety", "se")
|
|
57
57
|
.action(async (tenant, opts) => {
|
|
58
58
|
const slug = opts.key ?? `se-${opts.name.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)/g, "")}`;
|
|
59
|
+
// Document codes are short prefixes (STK, SYS, SUB, ARC, VER, TRC).
|
|
60
|
+
// Section codes distinguish within the document.
|
|
61
|
+
// Ref pattern: {docCode}-{sectionCode}-{number} e.g. STK-OPS-001
|
|
59
62
|
const seDocuments = [
|
|
60
|
-
{ name: "Stakeholder Needs", code: "STK
|
|
63
|
+
{ name: "Stakeholder Needs", code: "STK", sections: [
|
|
61
64
|
{ name: "Operational Needs", code: "OPS" },
|
|
62
65
|
{ name: "Performance Needs", code: "PERF" },
|
|
63
66
|
{ name: "Constraints", code: "CON" },
|
|
64
67
|
] },
|
|
65
|
-
{ name: "System Requirements", code: "SYS
|
|
68
|
+
{ name: "System Requirements", code: "SYS", sections: [
|
|
66
69
|
{ name: "Functional Requirements", code: "FUNC" },
|
|
67
70
|
{ name: "Performance Requirements", code: "PERF" },
|
|
68
71
|
{ name: "Interface Requirements", code: "IFC" },
|
|
69
72
|
{ name: "Environmental Requirements", code: "ENV" },
|
|
70
73
|
] },
|
|
71
|
-
{ name: "Subsystem Requirements", code: "SUB
|
|
74
|
+
{ name: "Subsystem Requirements", code: "SUB", sections: [
|
|
72
75
|
{ name: "Subsystem Functional", code: "FUNC" },
|
|
73
76
|
{ name: "Subsystem Performance", code: "PERF" },
|
|
74
77
|
{ name: "Subsystem Interface", code: "IFC" },
|
|
75
78
|
] },
|
|
76
79
|
{ name: "Architecture Description", code: "ARC", sections: [
|
|
77
|
-
{ name: "System Architecture", code: "SYS
|
|
80
|
+
{ name: "System Architecture", code: "SYS" },
|
|
78
81
|
{ name: "Subsystem Allocation", code: "ALLOC" },
|
|
79
|
-
{ name: "Interface Definitions", code: "IFC
|
|
82
|
+
{ name: "Interface Definitions", code: "IFC" },
|
|
80
83
|
] },
|
|
81
84
|
{ name: "Verification Plan", code: "VER", sections: [
|
|
82
85
|
{ name: "Test Cases", code: "TEST" },
|
|
@@ -96,7 +99,7 @@ export function registerProjectCommands(program, client) {
|
|
|
96
99
|
];
|
|
97
100
|
const safetyExtras = [
|
|
98
101
|
{ name: "Hazard Analysis", code: "HAZ", sections: [
|
|
99
|
-
{ name: "Hazard Identification", code: "
|
|
102
|
+
{ name: "Hazard Identification", code: "ID" },
|
|
100
103
|
{ name: "Risk Assessment", code: "RISK" },
|
|
101
104
|
{ name: "Safety Requirements", code: "SAFE" },
|
|
102
105
|
] },
|