@burdenoff/cli-sdk 2026.627.3 → 2026.627.5

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 (41) hide show
  1. package/dist/modules/cosmicintersection/index.cjs +334 -0
  2. package/dist/modules/cosmicintersection/index.d.cts +7 -0
  3. package/dist/modules/cosmicintersection/index.d.ts +7 -0
  4. package/dist/modules/cosmicintersection/index.js +334 -0
  5. package/dist/modules/ecoimpacthub/index.cjs +305 -0
  6. package/dist/modules/ecoimpacthub/index.d.cts +7 -0
  7. package/dist/modules/ecoimpacthub/index.d.ts +7 -0
  8. package/dist/modules/ecoimpacthub/index.js +305 -0
  9. package/dist/modules/govcitizenhub/index.cjs +279 -0
  10. package/dist/modules/govcitizenhub/index.d.cts +7 -0
  11. package/dist/modules/govcitizenhub/index.d.ts +7 -0
  12. package/dist/modules/govcitizenhub/index.js +279 -0
  13. package/dist/modules/intelwatchtower/index.cjs +311 -0
  14. package/dist/modules/intelwatchtower/index.d.cts +7 -0
  15. package/dist/modules/intelwatchtower/index.d.ts +7 -0
  16. package/dist/modules/intelwatchtower/index.js +311 -0
  17. package/dist/modules/manufacturedops/index.cjs +292 -0
  18. package/dist/modules/manufacturedops/index.d.cts +7 -0
  19. package/dist/modules/manufacturedops/index.d.ts +7 -0
  20. package/dist/modules/manufacturedops/index.js +292 -0
  21. package/dist/modules/mybodyshield/index.cjs +281 -0
  22. package/dist/modules/mybodyshield/index.d.cts +7 -0
  23. package/dist/modules/mybodyshield/index.d.ts +7 -0
  24. package/dist/modules/mybodyshield/index.js +281 -0
  25. package/dist/modules/semanticfed/index.cjs +287 -0
  26. package/dist/modules/semanticfed/index.d.cts +7 -0
  27. package/dist/modules/semanticfed/index.d.ts +7 -0
  28. package/dist/modules/semanticfed/index.js +287 -0
  29. package/dist/modules/technospam/index.cjs +325 -0
  30. package/dist/modules/technospam/index.d.cts +7 -0
  31. package/dist/modules/technospam/index.d.ts +7 -0
  32. package/dist/modules/technospam/index.js +325 -0
  33. package/dist/modules/theculturepost/index.cjs +228 -0
  34. package/dist/modules/theculturepost/index.d.cts +7 -0
  35. package/dist/modules/theculturepost/index.d.ts +7 -0
  36. package/dist/modules/theculturepost/index.js +228 -0
  37. package/dist/modules/theglobalfuel/index.cjs +251 -0
  38. package/dist/modules/theglobalfuel/index.d.cts +7 -0
  39. package/dist/modules/theglobalfuel/index.d.ts +7 -0
  40. package/dist/modules/theglobalfuel/index.js +251 -0
  41. package/package.json +1 -1
@@ -0,0 +1,287 @@
1
+ import {a,b as b$1,h as h$1,p,g as g$1,i,d}from'../../chunk-WXDQ3S5J.js';import {o}from'../../chunk-TCBALVP4.js';var h=`
2
+ query SemConnector($id: ID!) {
3
+ semConnector(id: $id) {
4
+ id name kind description isActive capabilities
5
+ dataSources { id name status }
6
+ createdAt updatedAt workspaceId
7
+ }
8
+ }
9
+ `,A=`
10
+ query SemListConnectors($kind: SemConnectorKind, $pagination: PaginationInput) {
11
+ semListConnectors(kind: $kind, pagination: $pagination) {
12
+ items {
13
+ id name kind description isActive capabilities createdAt updatedAt workspaceId
14
+ }
15
+ pageInfo { cursor hasMore }
16
+ }
17
+ }
18
+ `,D=`
19
+ mutation SemCreateConnector($input: SemCreateConnectorInput!) {
20
+ semCreateConnector(input: $input) {
21
+ id name kind description isActive capabilities createdAt updatedAt workspaceId
22
+ }
23
+ }
24
+ `,w=`
25
+ mutation SemUpdateConnector($id: ID!, $input: SemUpdateConnectorInput!) {
26
+ semUpdateConnector(id: $id, input: $input) {
27
+ id name kind description isActive capabilities updatedAt workspaceId
28
+ }
29
+ }
30
+ `,R=`
31
+ mutation SemArchiveConnector($id: ID!) {
32
+ semArchiveConnector(id: $id)
33
+ }
34
+ `,M=`
35
+ query SemDataSource($id: ID!) {
36
+ semDataSource(id: $id) {
37
+ id connectorId name description endpoint pushdownEnabled secretRef
38
+ status tags lastIntrospectedAt
39
+ connector { id name kind }
40
+ createdAt updatedAt workspaceId
41
+ }
42
+ }
43
+ `,O=`
44
+ query SemListDataSources(
45
+ $connectorId: ID
46
+ $status: SemDataSourceStatus
47
+ $pagination: PaginationInput
48
+ ) {
49
+ semListDataSources(connectorId: $connectorId, status: $status, pagination: $pagination) {
50
+ items {
51
+ id connectorId name description pushdownEnabled secretRef status tags
52
+ lastIntrospectedAt createdAt updatedAt workspaceId
53
+ }
54
+ pageInfo { cursor hasMore }
55
+ }
56
+ }
57
+ `,T=`
58
+ mutation SemCreateDataSource($input: SemCreateDataSourceInput!) {
59
+ semCreateDataSource(input: $input) {
60
+ id connectorId name description endpoint pushdownEnabled secretRef
61
+ status tags createdAt updatedAt workspaceId
62
+ }
63
+ }
64
+ `,_=`
65
+ mutation SemUpdateDataSource($id: ID!, $input: SemUpdateDataSourceInput!) {
66
+ semUpdateDataSource(id: $id, input: $input) {
67
+ id connectorId name description endpoint pushdownEnabled secretRef
68
+ status tags updatedAt workspaceId
69
+ }
70
+ }
71
+ `,b=`
72
+ mutation SemArchiveDataSource($id: ID!) {
73
+ semArchiveDataSource(id: $id)
74
+ }
75
+ `,k=`
76
+ mutation SemTransitionDataSource($id: ID!, $status: SemDataSourceStatus!) {
77
+ semTransitionDataSource(id: $id, status: $status) {
78
+ id name status updatedAt workspaceId
79
+ }
80
+ }
81
+ `,$=`
82
+ query SemListConnections($dataSourceId: ID!) {
83
+ semListConnections(dataSourceId: $dataSourceId) {
84
+ id dataSourceId health latencyMs message probedAt createdAt updatedAt workspaceId
85
+ }
86
+ }
87
+ `,N=`
88
+ mutation SemRecordConnection($input: SemRecordConnectionInput!) {
89
+ semRecordConnection(input: $input) {
90
+ id dataSourceId health latencyMs message probedAt createdAt updatedAt workspaceId
91
+ }
92
+ }
93
+ `,L=`
94
+ query SemModel($id: ID!) {
95
+ semModel(id: $id) {
96
+ id name description status version tags publishedAt
97
+ entities { id name kind }
98
+ relationships { id name kind }
99
+ createdAt updatedAt workspaceId
100
+ }
101
+ }
102
+ `,v=`
103
+ query SemListModels($status: SemModelStatus, $pagination: PaginationInput) {
104
+ semListModels(status: $status, pagination: $pagination) {
105
+ items {
106
+ id name description status version tags publishedAt createdAt updatedAt workspaceId
107
+ }
108
+ pageInfo { cursor hasMore }
109
+ }
110
+ }
111
+ `,U=`
112
+ mutation SemCreateModel($input: SemCreateModelInput!) {
113
+ semCreateModel(input: $input) {
114
+ id name description status version tags createdAt updatedAt workspaceId
115
+ }
116
+ }
117
+ `,q=`
118
+ mutation SemUpdateModel($id: ID!, $input: SemUpdateModelInput!) {
119
+ semUpdateModel(id: $id, input: $input) {
120
+ id name description status version tags updatedAt workspaceId
121
+ }
122
+ }
123
+ `,P=`
124
+ mutation SemArchiveModel($id: ID!) {
125
+ semArchiveModel(id: $id)
126
+ }
127
+ `,Q=`
128
+ mutation SemPublishModel($id: ID!) {
129
+ semPublishModel(id: $id) {
130
+ id name status version publishedAt updatedAt workspaceId
131
+ }
132
+ }
133
+ `,x=`
134
+ query SemEntity($id: ID!) {
135
+ semEntity(id: $id) {
136
+ id modelId dataSourceId name kind physicalName primaryKey sqlDefinition description
137
+ dimensions { id name dataType isPrimary }
138
+ metrics { id name aggregation }
139
+ createdAt updatedAt workspaceId
140
+ }
141
+ }
142
+ `,F=`
143
+ query SemListEntities($modelId: ID!) {
144
+ semListEntities(modelId: $modelId) {
145
+ id modelId dataSourceId name kind physicalName primaryKey sqlDefinition
146
+ description createdAt updatedAt workspaceId
147
+ }
148
+ }
149
+ `,H=`
150
+ mutation SemCreateEntity($input: SemCreateEntityInput!) {
151
+ semCreateEntity(input: $input) {
152
+ id modelId dataSourceId name kind physicalName primaryKey sqlDefinition
153
+ description createdAt updatedAt workspaceId
154
+ }
155
+ }
156
+ `,Y=`
157
+ mutation SemUpdateEntity($id: ID!, $input: SemUpdateEntityInput!) {
158
+ semUpdateEntity(id: $id, input: $input) {
159
+ id modelId dataSourceId name kind physicalName primaryKey sqlDefinition
160
+ description updatedAt workspaceId
161
+ }
162
+ }
163
+ `,B=`
164
+ mutation SemDeleteEntity($id: ID!) {
165
+ semDeleteEntity(id: $id)
166
+ }
167
+ `,K=`
168
+ mutation SemCreateDimension($input: SemCreateDimensionInput!) {
169
+ semCreateDimension(input: $input) {
170
+ id entityId name dataType expression isPrimary description
171
+ createdAt updatedAt workspaceId
172
+ }
173
+ }
174
+ `,W=`
175
+ mutation SemCreateMetric($input: SemCreateMetricInput!) {
176
+ semCreateMetric(input: $input) {
177
+ id entityId name aggregation expression format description
178
+ createdAt updatedAt workspaceId
179
+ }
180
+ }
181
+ `,G=`
182
+ query SemListRelationships($modelId: ID!) {
183
+ semListRelationships(modelId: $modelId) {
184
+ id modelId name kind fromEntityId fromField toEntityId toField description
185
+ createdAt updatedAt workspaceId
186
+ }
187
+ }
188
+ `,V=`
189
+ mutation SemCreateRelationship($input: SemCreateRelationshipInput!) {
190
+ semCreateRelationship(input: $input) {
191
+ id modelId name kind fromEntityId fromField toEntityId toField description
192
+ createdAt updatedAt workspaceId
193
+ }
194
+ }
195
+ `,j=`
196
+ query SemQuery($id: ID!) {
197
+ semQuery(id: $id) {
198
+ id modelId name description queryText parameters cacheable cacheTtlSeconds
199
+ status tags
200
+ runs { id status startedAt finishedAt rowCount }
201
+ createdAt updatedAt workspaceId
202
+ }
203
+ }
204
+ `,J=`
205
+ query SemListQueries(
206
+ $modelId: ID
207
+ $status: SemQueryStatus
208
+ $pagination: PaginationInput
209
+ ) {
210
+ semListQueries(modelId: $modelId, status: $status, pagination: $pagination) {
211
+ items {
212
+ id modelId name description queryText cacheable cacheTtlSeconds status tags
213
+ createdAt updatedAt workspaceId
214
+ }
215
+ pageInfo { cursor hasMore }
216
+ }
217
+ }
218
+ `,z=`
219
+ mutation SemCreateQuery($input: SemCreateQueryInput!) {
220
+ semCreateQuery(input: $input) {
221
+ id modelId name description queryText parameters cacheable cacheTtlSeconds
222
+ status tags createdAt updatedAt workspaceId
223
+ }
224
+ }
225
+ `,X=`
226
+ mutation SemUpdateQuery($id: ID!, $input: SemUpdateQueryInput!) {
227
+ semUpdateQuery(id: $id, input: $input) {
228
+ id modelId name description queryText parameters cacheable cacheTtlSeconds
229
+ status tags updatedAt workspaceId
230
+ }
231
+ }
232
+ `,Z=`
233
+ mutation SemArchiveQuery($id: ID!) {
234
+ semArchiveQuery(id: $id)
235
+ }
236
+ `,tt=`
237
+ mutation SemPublishQuery($id: ID!) {
238
+ semPublishQuery(id: $id) {
239
+ id name status updatedAt workspaceId
240
+ }
241
+ }
242
+ `,et=`
243
+ mutation SemRunQuery($id: ID!) {
244
+ semRunQuery(id: $id) {
245
+ id queryId status startedAt finishedAt durationMs rowCount sourcesTouched
246
+ fromCache errorMessage createdAt updatedAt workspaceId
247
+ }
248
+ }
249
+ `,nt=`
250
+ query SemListQueryRuns(
251
+ $queryId: ID!
252
+ $status: SemQueryRunStatus
253
+ $pagination: PaginationInput
254
+ ) {
255
+ semListQueryRuns(queryId: $queryId, status: $status, pagination: $pagination) {
256
+ items {
257
+ id queryId status startedAt finishedAt durationMs rowCount sourcesTouched
258
+ fromCache errorMessage runById createdAt updatedAt workspaceId
259
+ }
260
+ pageInfo { cursor hasMore }
261
+ }
262
+ }
263
+ `,it=`
264
+ query SemListAccessPolicies($entityId: ID, $modelId: ID) {
265
+ semListAccessPolicies(entityId: $entityId, modelId: $modelId) {
266
+ id name description principal effect scope entityId modelId rule isActive
267
+ createdAt updatedAt workspaceId
268
+ }
269
+ }
270
+ `,ot=`
271
+ mutation SemCreateAccessPolicy($input: SemCreateAccessPolicyInput!) {
272
+ semCreateAccessPolicy(input: $input) {
273
+ id name description principal effect scope entityId modelId rule isActive
274
+ createdAt updatedAt workspaceId
275
+ }
276
+ }
277
+ `,rt=`
278
+ mutation SemSetAccessPolicyActive($id: ID!, $isActive: Boolean!) {
279
+ semSetAccessPolicyActive(id: $id, isActive: $isActive) {
280
+ id name isActive updatedAt workspaceId
281
+ }
282
+ }
283
+ `,at=`
284
+ query SemHealth {
285
+ semHealth
286
+ }
287
+ `;function g(d,i){try{return JSON.parse(i)}catch{throw new o(`--${d} must be valid JSON`)}}function u(d){let i=Number.parseInt(d,10);if(Number.isNaN(i))throw new o(`Expected an integer but got "${d}"`);return i}function E(d){return d.split(",").map(i=>i.trim()).filter(i=>i.length>0)}function S(d){let i={};return d.limit!==void 0&&(i.limit=d.limit),d.offset!==void 0&&(i.offset=d.offset),d.cursor&&(i.cursor=d.cursor),Object.keys(i).length?i:void 0}function st(d){let i$1=d.command("connectors").description("SemanticFed connectors (database/warehouse/API drivers)");i$1.command("list").description("List connectors").option("--kind <k>","Filter by connector kind (e.g. POSTGRES, BIGQUERY)").option("--limit <n>","Page size",u,50).option("--offset <n>","Offset",u,0).option("--cursor <c>","Opaque pagination cursor").option("-f, --format <format>","Output format").action(async t=>{try{let n=(await b$1(A,{kind:t.kind?t.kind.toUpperCase():void 0,pagination:S(t)})).semListConnectors.items;h$1(t,n,{headers:["ID","Name","Kind","Active","Description"],rows:n.map(a=>[p(a.id,12),a.name,a.kind,a.isActive?"yes":"no",p(a.description??"",32)])});}catch(e){g$1(e);}}),i$1.command("get").description("Get a connector by id").argument("<id>","Connector ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await b$1(h,{id:t});if(!n.semConnector)throw new o(`Connector ${t} not found`);h$1(e,n.semConnector);}catch(n){g$1(n);}}),i$1.command("create").description("Create a connector").requiredOption("--name <name>","Connector name").option("--kind <k>","Connector kind (e.g. POSTGRES, BIGQUERY)","POSTGRES").option("--description <s>","Description").option("--capabilities <json>","Capabilities JSON").option("-f, --format <format>","Output format").action(async t=>{try{let e={name:t.name,kind:(t.kind??"POSTGRES").toUpperCase()};t.description&&(e.description=t.description),t.capabilities&&(e.capabilities=g("capabilities",t.capabilities));let n=await b$1(D,{input:e});i(`Connector created: ${n.semCreateConnector.name}`),h$1(t,n.semCreateConnector);}catch(e){g$1(e);}}),i$1.command("update").description("Update a connector").argument("<id>","Connector ID").option("--name <name>","Connector name").option("--kind <k>","Connector kind").option("--description <s>","Description").option("--capabilities <json>","Capabilities JSON").option("--active <bool>","true|false",t=>t==="true").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n={};if(e.name&&(n.name=e.name),e.kind&&(n.kind=e.kind.toUpperCase()),e.description!==void 0&&(n.description=e.description),e.capabilities&&(n.capabilities=g("capabilities",e.capabilities)),e.active!==void 0&&(n.isActive=e.active),!Object.keys(n).length)throw new o("No updates specified");let a=await b$1(w,{id:t,input:n});i("Connector updated"),h$1(e,a.semUpdateConnector);}catch(n){g$1(n);}}),i$1.command("archive").description("Archive a connector").argument("<id>","Connector ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await b$1(R,{id:t});if(!n.semArchiveConnector)throw new o(`Connector ${t} could not be archived`);i(`Connector ${t} archived`),h$1(e,{archived:n.semArchiveConnector});}catch(n){g$1(n);}});}function ct(d){let i$1=d.command("data-sources").description("SemanticFed data sources (federated query targets)");i$1.command("list").description("List data sources").option("--connector <id>","Filter by connector ID").option("--status <s>","Filter by data source status").option("--limit <n>","Page size",u,50).option("--offset <n>","Offset",u,0).option("--cursor <c>","Opaque pagination cursor").option("-f, --format <format>","Output format").action(async t=>{try{let n=(await b$1(O,{connectorId:t.connector,status:t.status?t.status.toUpperCase():void 0,pagination:S(t)})).semListDataSources.items;h$1(t,n,{headers:["ID","Name","Connector","Status","Pushdown"],rows:n.map(a=>[p(a.id,12),a.name,p(a.connectorId,12),a.status,a.pushdownEnabled?"yes":"no"])});}catch(e){g$1(e);}}),i$1.command("get").description("Get a data source by id").argument("<id>","Data source ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await b$1(M,{id:t});if(!n.semDataSource)throw new o(`Data source ${t} not found`);h$1(e,n.semDataSource);}catch(n){g$1(n);}}),i$1.command("create").description("Create a data source").requiredOption("--connector <id>","Connector ID").requiredOption("--name <name>","Data source name").option("--description <s>","Description").option("--endpoint <json>","Endpoint JSON (host/db/url/\u2026)").option("--secret-ref <ref>","Secret reference (Key Vault key)").option("--pushdown <bool>","Enable predicate pushdown true|false",t=>t==="true").option("--tags <csv>","Comma-separated tags").option("-f, --format <format>","Output format").action(async t=>{try{let e={connectorId:t.connector,name:t.name};t.description&&(e.description=t.description),t.endpoint&&(e.endpoint=g("endpoint",t.endpoint)),t.secretRef&&(e.secretRef=t.secretRef),t.pushdown!==void 0&&(e.pushdownEnabled=t.pushdown),t.tags&&(e.tags=E(t.tags));let n=await b$1(T,{input:e});i(`Data source created: ${n.semCreateDataSource.name}`),h$1(t,n.semCreateDataSource);}catch(e){g$1(e);}}),i$1.command("update").description("Update a data source").argument("<id>","Data source ID").option("--name <name>","Data source name").option("--description <s>","Description").option("--endpoint <json>","Endpoint JSON").option("--secret-ref <ref>","Secret reference").option("--pushdown <bool>","Enable predicate pushdown true|false",t=>t==="true").option("--tags <csv>","Comma-separated tags").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n={};if(e.name&&(n.name=e.name),e.description!==void 0&&(n.description=e.description),e.endpoint&&(n.endpoint=g("endpoint",e.endpoint)),e.secretRef&&(n.secretRef=e.secretRef),e.pushdown!==void 0&&(n.pushdownEnabled=e.pushdown),e.tags&&(n.tags=E(e.tags)),!Object.keys(n).length)throw new o("No updates specified");let a=await b$1(_,{id:t,input:n});i("Data source updated"),h$1(e,a.semUpdateDataSource);}catch(n){g$1(n);}}),i$1.command("archive").description("Archive a data source").argument("<id>","Data source ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await b$1(b,{id:t});if(!n.semArchiveDataSource)throw new o(`Data source ${t} could not be archived`);i(`Data source ${t} archived`),h$1(e,{archived:n.semArchiveDataSource});}catch(n){g$1(n);}}),i$1.command("transition").description("Move a data source through its connectivity lifecycle").argument("<id>","Data source ID").requiredOption("--status <s>","DRAFT|CONNECTED|DEGRADED|DISCONNECTED|DISABLED").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await b$1(k,{id:t,status:e.status.toUpperCase()});i(`Data source status set to ${n.semTransitionDataSource.status}`),h$1(e,n.semTransitionDataSource);}catch(n){g$1(n);}}),i$1.command("connections").description("List connection health probes for a data source").argument("<dataSourceId>","Data source ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await b$1($,{dataSourceId:t});h$1(e,n.semListConnections,{headers:["ID","Health","Latency (ms)","Probed At","Message"],rows:n.semListConnections.map(a=>[p(a.id,12),a.health,a.latencyMs!=null?String(a.latencyMs):"-",a.probedAt,p(a.message??"",32)])});}catch(n){g$1(n);}}),i$1.command("record-connection").description("Record a connection health probe for a data source").requiredOption("--data-source <id>","Data source ID").requiredOption("--health <h>","HEALTHY|DEGRADED|UNREACHABLE|UNKNOWN").option("--latency-ms <n>","Latency in milliseconds",u).option("--message <s>","Probe message").option("-f, --format <format>","Output format").action(async t=>{try{let e={dataSourceId:t.dataSource,health:t.health.toUpperCase()};t.latencyMs!==void 0&&(e.latencyMs=t.latencyMs),t.message&&(e.message=t.message);let n=await b$1(N,{input:e});i(`Connection recorded: ${n.semRecordConnection.health}`),h$1(t,n.semRecordConnection);}catch(e){g$1(e);}});}function dt(d){let i$1=d.command("models").description("SemanticFed semantic models (versioned entity/metric graphs)");i$1.command("list").description("List semantic models").option("--status <s>","Filter by model status (DRAFT|PUBLISHED|DEPRECATED|ARCHIVED)").option("--limit <n>","Page size",u,50).option("--offset <n>","Offset",u,0).option("--cursor <c>","Opaque pagination cursor").option("-f, --format <format>","Output format").action(async t=>{try{let n=(await b$1(v,{status:t.status?t.status.toUpperCase():void 0,pagination:S(t)})).semListModels.items;h$1(t,n,{headers:["ID","Name","Status","Version","Description"],rows:n.map(a=>[p(a.id,12),a.name,a.status,String(a.version),p(a.description??"",32)])});}catch(e){g$1(e);}}),i$1.command("get").description("Get a semantic model by id").argument("<id>","Model ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await b$1(L,{id:t});if(!n.semModel)throw new o(`Model ${t} not found`);h$1(e,n.semModel);}catch(n){g$1(n);}}),i$1.command("create").description("Create a semantic model").requiredOption("--name <name>","Model name").option("--description <s>","Description").option("--tags <csv>","Comma-separated tags").option("-f, --format <format>","Output format").action(async t=>{try{let e={name:t.name};t.description&&(e.description=t.description),t.tags&&(e.tags=E(t.tags));let n=await b$1(U,{input:e});i(`Model created: ${n.semCreateModel.name}`),h$1(t,n.semCreateModel);}catch(e){g$1(e);}}),i$1.command("update").description("Update a semantic model").argument("<id>","Model ID").option("--name <name>","Model name").option("--description <s>","Description").option("--tags <csv>","Comma-separated tags").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n={};if(e.name&&(n.name=e.name),e.description!==void 0&&(n.description=e.description),e.tags&&(n.tags=E(e.tags)),!Object.keys(n).length)throw new o("No updates specified");let a=await b$1(q,{id:t,input:n});i("Model updated"),h$1(e,a.semUpdateModel);}catch(n){g$1(n);}}),i$1.command("archive").description("Archive a semantic model").argument("<id>","Model ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await b$1(P,{id:t});if(!n.semArchiveModel)throw new o(`Model ${t} could not be archived`);i(`Model ${t} archived`),h$1(e,{archived:n.semArchiveModel});}catch(n){g$1(n);}}),i$1.command("publish").description("Publish a draft model (bumps version, flips status to PUBLISHED)").argument("<id>","Model ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await b$1(Q,{id:t});i(`Model published (v${n.semPublishModel.version})`),h$1(e,n.semPublishModel);}catch(n){g$1(n);}});}function mt(d){let i$1=d.command("entities").description("SemanticFed entities (tables/views/derived datasets in a model)");i$1.command("list").description("List entities in a model").requiredOption("--model <id>","Model ID").option("-f, --format <format>","Output format").action(async t=>{try{let e=await b$1(F,{modelId:t.model});h$1(t,e.semListEntities,{headers:["ID","Name","Kind","Physical Name","Primary Key"],rows:e.semListEntities.map(n=>[p(n.id,12),n.name,n.kind,n.physicalName??"-",n.primaryKey??"-"])});}catch(e){g$1(e);}}),i$1.command("get").description("Get an entity by id").argument("<id>","Entity ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await b$1(x,{id:t});if(!n.semEntity)throw new o(`Entity ${t} not found`);h$1(e,n.semEntity);}catch(n){g$1(n);}}),i$1.command("create").description("Create an entity").requiredOption("--model <id>","Model ID").requiredOption("--name <name>","Entity name").option("--kind <k>","TABLE|VIEW|DERIVED|EXTERNAL","TABLE").option("--data-source <id>","Backing data source ID").option("--physical-name <n>","Physical (DB) name").option("--primary-key <k>","Primary key column").option("--sql-definition <sql>","SQL definition (for derived entities)").option("--description <s>","Description").option("-f, --format <format>","Output format").action(async t=>{try{let e={modelId:t.model,name:t.name,kind:(t.kind??"TABLE").toUpperCase()};t.dataSource&&(e.dataSourceId=t.dataSource),t.physicalName&&(e.physicalName=t.physicalName),t.primaryKey&&(e.primaryKey=t.primaryKey),t.sqlDefinition&&(e.sqlDefinition=t.sqlDefinition),t.description&&(e.description=t.description);let n=await b$1(H,{input:e});i(`Entity created: ${n.semCreateEntity.name}`),h$1(t,n.semCreateEntity);}catch(e){g$1(e);}}),i$1.command("update").description("Update an entity").argument("<id>","Entity ID").option("--name <name>","Entity name").option("--kind <k>","TABLE|VIEW|DERIVED|EXTERNAL").option("--data-source <id>","Backing data source ID").option("--physical-name <n>","Physical (DB) name").option("--primary-key <k>","Primary key column").option("--sql-definition <sql>","SQL definition").option("--description <s>","Description").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n={};if(e.name&&(n.name=e.name),e.kind&&(n.kind=e.kind.toUpperCase()),e.dataSource&&(n.dataSourceId=e.dataSource),e.physicalName&&(n.physicalName=e.physicalName),e.primaryKey&&(n.primaryKey=e.primaryKey),e.sqlDefinition&&(n.sqlDefinition=e.sqlDefinition),e.description!==void 0&&(n.description=e.description),!Object.keys(n).length)throw new o("No updates specified");let a=await b$1(Y,{id:t,input:n});i("Entity updated"),h$1(e,a.semUpdateEntity);}catch(n){g$1(n);}}),i$1.command("delete").description("Delete an entity").argument("<id>","Entity ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await b$1(B,{id:t});if(!n.semDeleteEntity)throw new o(`Entity ${t} could not be deleted`);i(`Entity ${t} deleted`),h$1(e,{deleted:n.semDeleteEntity});}catch(n){g$1(n);}});}function pt(d){d.command("dimensions").description("SemanticFed dimensions (queryable attributes on an entity)").command("create").description("Create a dimension").requiredOption("--entity <id>","Entity ID").requiredOption("--name <name>","Dimension name").option("--data-type <t>","STRING|INTEGER|DECIMAL|BOOLEAN|DATE|TIMESTAMP|JSON|GEO","STRING").option("--expression <e>","SQL expression").option("--primary","Mark as primary dimension").option("--description <s>","Description").option("-f, --format <format>","Output format").action(async t=>{try{let e={entityId:t.entity,name:t.name,dataType:(t.dataType??"STRING").toUpperCase()};t.expression&&(e.expression=t.expression),t.primary&&(e.isPrimary=!0),t.description&&(e.description=t.description);let n=await b$1(K,{input:e});i(`Dimension created: ${n.semCreateDimension.name}`),h$1(t,n.semCreateDimension);}catch(e){g$1(e);}});}function ut(d){d.command("metrics").description("SemanticFed metrics (aggregated measures on an entity)").command("create").description("Create a metric").requiredOption("--entity <id>","Entity ID").requiredOption("--name <name>","Metric name").option("--aggregation <a>","SUM|AVG|MIN|MAX|COUNT|COUNT_DISTINCT|MEDIAN|CUSTOM","SUM").option("--expression <e>","SQL expression").option("--format-spec <f>","Display format (e.g. currency, percent)").option("--description <s>","Description").option("-f, --format <format>","Output format").action(async t=>{try{let e={entityId:t.entity,name:t.name,aggregation:(t.aggregation??"SUM").toUpperCase()};t.expression&&(e.expression=t.expression),t.formatSpec&&(e.format=t.formatSpec),t.description&&(e.description=t.description);let n=await b$1(W,{input:e});i(`Metric created: ${n.semCreateMetric.name}`),h$1(t,n.semCreateMetric);}catch(e){g$1(e);}});}function lt(d){let i$1=d.command("relationships").description("SemanticFed relationships (joins between entities in a model)");i$1.command("list").description("List relationships in a model").requiredOption("--model <id>","Model ID").option("-f, --format <format>","Output format").action(async t=>{try{let e=await b$1(G,{modelId:t.model});h$1(t,e.semListRelationships,{headers:["ID","Name","Kind","From","To"],rows:e.semListRelationships.map(n=>[p(n.id,12),n.name,n.kind,`${p(n.fromEntityId,8)}.${n.fromField}`,`${p(n.toEntityId,8)}.${n.toField}`])});}catch(e){g$1(e);}}),i$1.command("create").description("Create a relationship").requiredOption("--model <id>","Model ID").requiredOption("--name <name>","Relationship name").requiredOption("--from-entity <id>","From entity ID").requiredOption("--from-field <f>","From field").requiredOption("--to-entity <id>","To entity ID").requiredOption("--to-field <f>","To field").option("--kind <k>","ONE_TO_ONE|ONE_TO_MANY|MANY_TO_ONE|MANY_TO_MANY","MANY_TO_ONE").option("--description <s>","Description").option("-f, --format <format>","Output format").action(async t=>{try{let e={modelId:t.model,name:t.name,fromEntityId:t.fromEntity,fromField:t.fromField,toEntityId:t.toEntity,toField:t.toField,kind:(t.kind??"MANY_TO_ONE").toUpperCase()};t.description&&(e.description=t.description);let n=await b$1(V,{input:e});i(`Relationship created: ${n.semCreateRelationship.name}`),h$1(t,n.semCreateRelationship);}catch(e){g$1(e);}});}function ft(d){let i$1=d.command("queries").description("SemanticFed saved federated queries & run history");i$1.command("list").description("List saved queries").option("--model <id>","Filter by model ID").option("--status <s>","Filter by query status (DRAFT|PUBLISHED|ARCHIVED)").option("--limit <n>","Page size",u,50).option("--offset <n>","Offset",u,0).option("--cursor <c>","Opaque pagination cursor").option("-f, --format <format>","Output format").action(async t=>{try{let n=(await b$1(J,{modelId:t.model,status:t.status?t.status.toUpperCase():void 0,pagination:S(t)})).semListQueries.items;h$1(t,n,{headers:["ID","Name","Status","Model","Cacheable"],rows:n.map(a=>[p(a.id,12),a.name,a.status,a.modelId?p(a.modelId,12):"-",a.cacheable?"yes":"no"])});}catch(e){g$1(e);}}),i$1.command("get").description("Get a saved query by id").argument("<id>","Query ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await b$1(j,{id:t});if(!n.semQuery)throw new o(`Query ${t} not found`);h$1(e,n.semQuery);}catch(n){g$1(n);}}),i$1.command("create").description("Create a saved query").requiredOption("--name <name>","Query name").requiredOption("--query-text <sql>","Federated query text").option("--model <id>","Associated model ID").option("--description <s>","Description").option("--cacheable <bool>","true|false",t=>t==="true").option("--cache-ttl <n>","Cache TTL seconds",u).option("--parameters <json>","Parameters JSON").option("--tags <csv>","Comma-separated tags").option("-f, --format <format>","Output format").action(async t=>{try{let e={name:t.name,queryText:t.queryText};t.model&&(e.modelId=t.model),t.description&&(e.description=t.description),t.cacheable!==void 0&&(e.cacheable=t.cacheable),t.cacheTtl!==void 0&&(e.cacheTtlSeconds=t.cacheTtl),t.parameters&&(e.parameters=g("parameters",t.parameters)),t.tags&&(e.tags=E(t.tags));let n=await b$1(z,{input:e});i(`Query created: ${n.semCreateQuery.name}`),h$1(t,n.semCreateQuery);}catch(e){g$1(e);}}),i$1.command("update").description("Update a saved query").argument("<id>","Query ID").option("--name <name>","Query name").option("--query-text <sql>","Federated query text").option("--model <id>","Associated model ID").option("--description <s>","Description").option("--cacheable <bool>","true|false",t=>t==="true").option("--cache-ttl <n>","Cache TTL seconds",u).option("--parameters <json>","Parameters JSON").option("--tags <csv>","Comma-separated tags").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n={};if(e.name&&(n.name=e.name),e.queryText&&(n.queryText=e.queryText),e.model&&(n.modelId=e.model),e.description!==void 0&&(n.description=e.description),e.cacheable!==void 0&&(n.cacheable=e.cacheable),e.cacheTtl!==void 0&&(n.cacheTtlSeconds=e.cacheTtl),e.parameters&&(n.parameters=g("parameters",e.parameters)),e.tags&&(n.tags=E(e.tags)),!Object.keys(n).length)throw new o("No updates specified");let a=await b$1(X,{id:t,input:n});i("Query updated"),h$1(e,a.semUpdateQuery);}catch(n){g$1(n);}}),i$1.command("archive").description("Archive a saved query").argument("<id>","Query ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await b$1(Z,{id:t});if(!n.semArchiveQuery)throw new o(`Query ${t} could not be archived`);i(`Query ${t} archived`),h$1(e,{archived:n.semArchiveQuery});}catch(n){g$1(n);}}),i$1.command("publish").description("Publish a draft query").argument("<id>","Query ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await b$1(tt,{id:t});i(`Query published: ${n.semPublishQuery.name}`),h$1(e,n.semPublishQuery);}catch(n){g$1(n);}}),i$1.command("run").description("Enqueue a federated execution of a saved query").argument("<id>","Query ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await b$1(et,{id:t});i(`Query run enqueued: ${n.semRunQuery.id} (${n.semRunQuery.status})`),h$1(e,n.semRunQuery);}catch(n){g$1(n);}}),i$1.command("runs").description("List run history for a saved query").requiredOption("--query <id>","Query ID").option("--status <s>","Filter by run status").option("--limit <n>","Page size",u,50).option("--offset <n>","Offset",u,0).option("--cursor <c>","Opaque pagination cursor").option("-f, --format <format>","Output format").action(async t=>{try{let n=(await b$1(nt,{queryId:t.query,status:t.status?t.status.toUpperCase():void 0,pagination:S(t)})).semListQueryRuns.items;h$1(t,n,{headers:["ID","Status","Rows","Duration (ms)","Cached"],rows:n.map(a=>[p(a.id,12),a.status,a.rowCount!=null?String(a.rowCount):"-",a.durationMs!=null?String(a.durationMs):"-",a.fromCache?"yes":"no"])});}catch(e){g$1(e);}});}function gt(d){let i$1=d.command("access-policies").description("SemanticFed access policies (row/column/entity governance)");i$1.command("list").description("List access policies").option("--entity <id>","Filter by entity ID").option("--model <id>","Filter by model ID").option("-f, --format <format>","Output format").action(async t=>{try{let e=await b$1(it,{entityId:t.entity,modelId:t.model});h$1(t,e.semListAccessPolicies,{headers:["ID","Name","Principal","Effect","Scope","Active"],rows:e.semListAccessPolicies.map(n=>[p(n.id,12),n.name,n.principal,n.effect,n.scope,n.isActive?"yes":"no"])});}catch(e){g$1(e);}}),i$1.command("create").description("Create an access policy").requiredOption("--name <name>","Policy name").requiredOption("--principal <p>","Principal (user/role/group expression)").option("--effect <e>","ALLOW|DENY","ALLOW").option("--scope <s>","ROW|COLUMN|ENTITY","ROW").option("--entity <id>","Scoped entity ID").option("--model <id>","Scoped model ID").option("--rule <json>","Rule JSON (predicate / column list)").option("--description <s>","Description").option("-f, --format <format>","Output format").action(async t=>{try{let e={name:t.name,principal:t.principal,effect:(t.effect??"ALLOW").toUpperCase(),scope:(t.scope??"ROW").toUpperCase()};t.entity&&(e.entityId=t.entity),t.model&&(e.modelId=t.model),t.rule&&(e.rule=g("rule",t.rule)),t.description&&(e.description=t.description);let n=await b$1(ot,{input:e});i(`Access policy created: ${n.semCreateAccessPolicy.name}`),h$1(t,n.semCreateAccessPolicy);}catch(e){g$1(e);}}),i$1.command("set-active").description("Activate or deactivate an access policy").argument("<id>","Policy ID").requiredOption("--active <bool>","true|false",t=>t==="true").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let n=await b$1(rt,{id:t,isActive:e.active});i(`Access policy ${t} ${n.semSetAccessPolicyActive.isActive?"activated":"deactivated"}`),h$1(e,n.semSetAccessPolicyActive);}catch(n){g$1(n);}});}function yt(d$1){d$1.command("health").description("SemanticFed subgraph liveness/identity probe (public)").option("-f, --format <format>","Output format").action(async i$1=>{try{let t=await d(at);i(t.semHealth),h$1(i$1,{health:t.semHealth});}catch(t){g$1(t);}});}var Et={id:"semanticfed",version:"1.0.0",displayName:"SemanticFed",dependsOn:["auth","workspaces"],register(d,i){a(i);let t=d.command("semanticfed").description("SemanticFed data-federation & governed semantic layer");st(t),ct(t),dt(t),mt(t),pt(t),ut(t),lt(t),ft(t),gt(t),yt(t);}},pe=Et;export{pe as default};