@semacode/cli 1.5.26 → 1.5.28

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sema/gerador-javascript",
3
- "version": "1.5.26",
3
+ "version": "1.5.28",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sema/gerador-lua",
3
- "version": "1.5.26",
3
+ "version": "1.5.28",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sema/gerador-python",
3
- "version": "1.5.26",
3
+ "version": "1.5.28",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sema/gerador-typescript",
3
- "version": "1.5.26",
3
+ "version": "1.5.28",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sema/nucleo",
3
- "version": "1.5.26",
3
+ "version": "1.5.28",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sema/padroes",
3
- "version": "1.5.26",
3
+ "version": "1.5.28",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@semacode/cli",
3
- "version": "1.5.26",
3
+ "version": "1.5.28",
4
4
  "description": "Semantic governance CLI for AI agents: contracts, drift, impact, documentation gates, and Sema profiles for live systems.",
5
5
  "type": "module",
6
6
  "icon": "logo.png",
@@ -49,15 +49,15 @@
49
49
  "LICENSE"
50
50
  ],
51
51
  "dependencies": {
52
- "@sema/nucleo": "1.5.26",
53
- "@sema/gerador-dart": "1.5.26",
54
- "@sema/gerador-lua": "1.5.26",
55
- "@sema/gerador-python": "1.5.26",
56
- "@sema/gerador-typescript": "1.5.26",
57
- "@sema/gerador-javascript": "1.5.26",
58
- "@sema/gerador-html": "1.5.26",
59
- "@sema/gerador-css": "1.5.26",
60
- "@sema/padroes": "1.5.26",
52
+ "@sema/nucleo": "1.5.28",
53
+ "@sema/gerador-dart": "1.5.28",
54
+ "@sema/gerador-lua": "1.5.28",
55
+ "@sema/gerador-python": "1.5.28",
56
+ "@sema/gerador-typescript": "1.5.28",
57
+ "@sema/gerador-javascript": "1.5.28",
58
+ "@sema/gerador-html": "1.5.28",
59
+ "@sema/gerador-css": "1.5.28",
60
+ "@sema/padroes": "1.5.28",
61
61
  "typescript": "^5.8.3"
62
62
  },
63
63
  "bundledDependencies": [
@@ -1,326 +0,0 @@
1
- export type SemaPlanId = "free" | "pro" | "team" | "agency";
2
- export type SemaAuthProvider = "email_password" | "google" | "facebook" | "microsoft";
3
- export interface SupabaseRpcResult<T> {
4
- data: T | null;
5
- error: {
6
- message?: string;
7
- } | null;
8
- }
9
- export interface SupabaseRpcClient {
10
- rpc<T>(functionName: string, params: Record<string, unknown>): Promise<SupabaseRpcResult<T>>;
11
- }
12
- export interface ProvisionarWorkspaceFreeInput {
13
- authUserId: string;
14
- email: string;
15
- emailVerified: boolean;
16
- authProvider: SemaAuthProvider | string;
17
- displayName?: string;
18
- organizationName?: string;
19
- projectName?: string;
20
- }
21
- export interface ProvisionarWorkspaceFreeResult {
22
- usuario_id: string;
23
- organizacao_id: string;
24
- projeto_id: string;
25
- assinatura_id: string;
26
- periodo_inicio: string;
27
- semas_mensais: number;
28
- }
29
- export interface ConsultarContextoComercialUsuarioInput {
30
- authUserId: string;
31
- }
32
- export interface ClaimFreeWorkspaceInput {
33
- displayName?: string;
34
- organizationName?: string;
35
- projectName?: string;
36
- authProvider?: SemaAuthProvider | string;
37
- }
38
- export interface ConsultaContextoComercialUsuarioPlano {
39
- id: SemaPlanId;
40
- name: string;
41
- monthly_semas: number;
42
- }
43
- export interface ConsultaContextoComercialUsuarioResult {
44
- authUserId: string;
45
- tabelas: readonly string[];
46
- filtros: {
47
- perfil: {
48
- id: string;
49
- };
50
- memberships: {
51
- user_id: string;
52
- };
53
- };
54
- }
55
- export interface SemaUsageBreakdownItem {
56
- projectId?: string | null;
57
- projectName?: string | null;
58
- projectSlug?: string | null;
59
- clientId?: string | null;
60
- clientName?: string | null;
61
- tokenPrefix?: string | null;
62
- toolName?: string | null;
63
- requestedSemas: number;
64
- chargedSemas: number;
65
- usedSemas?: number;
66
- callCount: number;
67
- adminBypassCount?: number;
68
- share?: number;
69
- lastUsedAt?: string | null;
70
- usagePeriods?: SemaUsagePeriods;
71
- dailySeries?: SemaUsageDailyPoint[];
72
- }
73
- export interface SemaUsagePeriod {
74
- requestedSemas: number;
75
- chargedSemas: number;
76
- usedSemas?: number;
77
- callCount: number;
78
- adminBypassCount?: number;
79
- }
80
- export interface SemaUsagePeriods {
81
- today: SemaUsagePeriod;
82
- week: SemaUsagePeriod;
83
- month: SemaUsagePeriod;
84
- all: SemaUsagePeriod;
85
- }
86
- export interface SemaUsageDailyPoint {
87
- date: string;
88
- requestedSemas: number;
89
- chargedSemas: number;
90
- usedSemas?: number;
91
- callCount: number;
92
- }
93
- export interface SemaUsageSummary {
94
- totalRequestedSemas: number;
95
- totalChargedSemas: number;
96
- callCount: number;
97
- adminBypassCount: number;
98
- byProject: SemaUsageBreakdownItem[];
99
- byKey: SemaUsageBreakdownItem[];
100
- byTool: SemaUsageBreakdownItem[];
101
- usagePeriods?: SemaUsagePeriods;
102
- dailySeries?: SemaUsageDailyPoint[];
103
- }
104
- export interface SemaMcpClientSummary {
105
- id: string;
106
- name: string;
107
- tokenPrefix?: string | null;
108
- token?: string | null;
109
- copyable?: boolean;
110
- status: string;
111
- organizationId?: string;
112
- defaultProjectId?: string | null;
113
- projectId?: string | null;
114
- projectName?: string | null;
115
- projectSlug?: string | null;
116
- scope?: "workspace" | "project" | string;
117
- createdAt?: string;
118
- updatedAt?: string;
119
- lastUsedAt?: string | null;
120
- requestedSemas?: number;
121
- chargedSemas?: number;
122
- usedSemas?: number;
123
- callCount?: number;
124
- }
125
- export interface SemaAccountContext {
126
- authenticated: boolean;
127
- provisioned: boolean;
128
- user: {
129
- id: string;
130
- email: string;
131
- displayName?: string;
132
- phone?: string | null;
133
- locale?: string | null;
134
- timezone?: string | null;
135
- emailVerified: boolean;
136
- provider: string;
137
- };
138
- admin: {
139
- isAdmin: boolean;
140
- displayName?: string | null;
141
- infiniteSemas: boolean;
142
- };
143
- organization: {
144
- id: string;
145
- name: string;
146
- slug: string;
147
- role: string;
148
- } | null;
149
- plan: {
150
- id: SemaPlanId;
151
- name: string;
152
- monthlySemas: number;
153
- projectLimit: number;
154
- userLimit: number;
155
- retentionDays: number;
156
- monthlyPriceUsd: number;
157
- } | null;
158
- balance: {
159
- periodStart: string;
160
- periodEnd: string;
161
- monthlySemas: number;
162
- usedSemas: number;
163
- reservedSemas: number;
164
- remainingSemas: number | null;
165
- infiniteSemas: boolean;
166
- accumulates: boolean;
167
- } | null;
168
- projects: Array<{
169
- id: string;
170
- name: string;
171
- description?: string;
172
- slug: string;
173
- status: string;
174
- createdAt?: string;
175
- updatedAt?: string;
176
- requestedSemas?: number;
177
- chargedSemas?: number;
178
- usedSemas?: number;
179
- callCount?: number;
180
- activeKeyCount?: number;
181
- lastUsedAt?: string | null;
182
- usagePeriods?: SemaUsagePeriods;
183
- dailySeries?: SemaUsageDailyPoint[];
184
- }>;
185
- usage: Array<{
186
- id: string;
187
- toolName: string;
188
- requestedSemas: number;
189
- chargedSemas: number;
190
- adminBypass: boolean;
191
- projectId?: string | null;
192
- projectName?: string | null;
193
- projectSlug?: string | null;
194
- mcpClientId?: string | null;
195
- mcpClientName?: string | null;
196
- createdAt?: string;
197
- }>;
198
- usageSummary?: SemaUsageSummary;
199
- mcpKeys?: SemaMcpClientSummary[];
200
- }
201
- export interface SemaAccountProfile {
202
- id: string;
203
- email: string;
204
- displayName?: string | null;
205
- phone?: string | null;
206
- locale?: string | null;
207
- timezone?: string | null;
208
- emailVerified: boolean;
209
- provider: string;
210
- profileFound: boolean;
211
- }
212
- export interface AtualizarPerfilContaInput {
213
- displayName?: string | null;
214
- phone?: string | null;
215
- locale?: string | null;
216
- timezone?: string | null;
217
- }
218
- export interface AtualizarPerfilContaResult {
219
- updated: boolean;
220
- profile: SemaAccountProfile;
221
- context: SemaAccountContext;
222
- }
223
- export interface SemaMcpClientContext {
224
- active: boolean;
225
- activeCount?: number;
226
- token?: string | null;
227
- copyable?: boolean;
228
- client: SemaMcpClientSummary | null;
229
- clients?: SemaMcpClientSummary[];
230
- keys?: SemaMcpClientSummary[];
231
- }
232
- export interface CriarProjetoWorkspaceInput {
233
- name: string;
234
- description?: string;
235
- }
236
- export interface CriarProjetoWorkspaceResult {
237
- created: boolean;
238
- project: {
239
- id: string;
240
- name: string;
241
- description?: string;
242
- slug: string;
243
- status: string;
244
- };
245
- context: SemaAccountContext;
246
- }
247
- export interface AtualizarProjetoWorkspaceInput {
248
- projectId: string;
249
- name?: string;
250
- description?: string;
251
- }
252
- export interface AtualizarProjetoWorkspaceResult {
253
- updated: boolean;
254
- project: {
255
- id: string;
256
- name: string;
257
- description?: string;
258
- slug: string;
259
- status: string;
260
- };
261
- context: SemaAccountContext;
262
- }
263
- export interface ArquivarProjetoWorkspaceInput {
264
- projectId: string;
265
- }
266
- export interface ArquivarProjetoWorkspaceResult {
267
- archived: boolean;
268
- projectId: string;
269
- context: SemaAccountContext;
270
- }
271
- export interface GerarChaveMcpWorkspaceInput {
272
- name?: string;
273
- projectId?: string | null;
274
- }
275
- export interface GerarChaveMcpWorkspaceResult {
276
- generated: boolean;
277
- token: string;
278
- copyable?: boolean;
279
- client: SemaMcpClientSummary;
280
- mcpKey: SemaMcpClientContext;
281
- }
282
- export interface RevogarChaveMcpWorkspaceInput {
283
- clientId: string;
284
- }
285
- export interface RevogarChaveMcpWorkspaceResult {
286
- revoked: boolean;
287
- clientId: string;
288
- mcpKey: SemaMcpClientContext;
289
- }
290
- export interface ConsumirSemasMcpInput {
291
- actorUserId?: string;
292
- organizationId?: string;
293
- projectId?: string;
294
- amount?: number;
295
- toolName: string;
296
- requestSummary?: string;
297
- idempotencyKey: string;
298
- metadata?: Record<string, unknown>;
299
- privateRpc?: boolean;
300
- mcpTokenHash?: string;
301
- }
302
- export interface ConsumirSemasMcpResult {
303
- authorized: boolean;
304
- idempotent: boolean;
305
- usageEventId: string;
306
- organizationId: string;
307
- projectId?: string | null;
308
- requestedSemas: number;
309
- chargedSemas: number;
310
- remainingSemas: number | null;
311
- infiniteSemas: boolean;
312
- adminBypass: boolean;
313
- }
314
- export declare function provisionarWorkspaceFree(client: SupabaseRpcClient, input: ProvisionarWorkspaceFreeInput): Promise<ProvisionarWorkspaceFreeResult>;
315
- export declare function claimFreeWorkspace(client: SupabaseRpcClient, input?: ClaimFreeWorkspaceInput): Promise<ProvisionarWorkspaceFreeResult>;
316
- export declare function consultarContextoComercialUsuario(input: ConsultarContextoComercialUsuarioInput): ConsultaContextoComercialUsuarioResult;
317
- export declare function consultarPainelUsuario(client: SupabaseRpcClient): Promise<SemaAccountContext>;
318
- export declare function consultarPerfilConta(client: SupabaseRpcClient): Promise<SemaAccountProfile>;
319
- export declare function atualizarPerfilConta(client: SupabaseRpcClient, input: AtualizarPerfilContaInput): Promise<AtualizarPerfilContaResult>;
320
- export declare function criarProjetoWorkspace(client: SupabaseRpcClient, input: CriarProjetoWorkspaceInput): Promise<CriarProjetoWorkspaceResult>;
321
- export declare function atualizarProjetoWorkspace(client: SupabaseRpcClient, input: AtualizarProjetoWorkspaceInput): Promise<AtualizarProjetoWorkspaceResult>;
322
- export declare function arquivarProjetoWorkspace(client: SupabaseRpcClient, input: ArquivarProjetoWorkspaceInput): Promise<ArquivarProjetoWorkspaceResult>;
323
- export declare function consultarChaveMcpWorkspace(client: SupabaseRpcClient): Promise<SemaMcpClientContext>;
324
- export declare function gerarChaveMcpWorkspace(client: SupabaseRpcClient, input?: GerarChaveMcpWorkspaceInput): Promise<GerarChaveMcpWorkspaceResult>;
325
- export declare function revogarChaveMcpWorkspace(client: SupabaseRpcClient, input: RevogarChaveMcpWorkspaceInput): Promise<RevogarChaveMcpWorkspaceResult>;
326
- export declare function consumirSemasMcp(client: SupabaseRpcClient, input: ConsumirSemasMcpInput): Promise<ConsumirSemasMcpResult>;