@zmeel/server 0.3.1 → 2026.404.0-canary.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.
Files changed (46) hide show
  1. package/dist/app.d.ts +1 -0
  2. package/dist/app.d.ts.map +1 -1
  3. package/dist/app.js +1 -0
  4. package/dist/app.js.map +1 -1
  5. package/dist/auth/better-auth.d.ts +1 -1
  6. package/dist/auth/better-auth.d.ts.map +1 -1
  7. package/dist/auth/better-auth.js +13 -1
  8. package/dist/auth/better-auth.js.map +1 -1
  9. package/dist/config.d.ts +1 -0
  10. package/dist/config.d.ts.map +1 -1
  11. package/dist/config.js +6 -2
  12. package/dist/config.js.map +1 -1
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.js +2 -1
  15. package/dist/index.js.map +1 -1
  16. package/dist/routes/authz.d.ts +5 -5
  17. package/dist/routes/health.d.ts +1 -0
  18. package/dist/routes/health.d.ts.map +1 -1
  19. package/dist/routes/health.js +6 -1
  20. package/dist/routes/health.js.map +1 -1
  21. package/dist/services/activity.d.ts +3 -3
  22. package/dist/services/agents.d.ts +3 -3
  23. package/dist/services/approvals.d.ts +2 -2
  24. package/dist/services/costs.d.ts +2 -2
  25. package/dist/services/feedback.d.ts +2 -2
  26. package/dist/services/finance.d.ts +2 -2
  27. package/dist/services/goals.d.ts +6 -6
  28. package/dist/services/heartbeat.d.ts +17 -17
  29. package/dist/services/issues.d.ts +3 -3
  30. package/dist/services/plugin-registry.d.ts +73 -73
  31. package/dist/services/routines.d.ts +15 -15
  32. package/dist/services/saas-provisioning.d.ts +17 -0
  33. package/dist/services/saas-provisioning.d.ts.map +1 -0
  34. package/dist/services/saas-provisioning.js +55 -0
  35. package/dist/services/saas-provisioning.js.map +1 -0
  36. package/dist/services/workspace-runtime.d.ts +2 -2
  37. package/package.json +14 -14
  38. package/skills/para-memory-files/SKILL.md +104 -0
  39. package/skills/para-memory-files/references/schemas.md +35 -0
  40. package/skills/zmeel/SKILL.md +390 -0
  41. package/skills/zmeel/references/api-reference.md +721 -0
  42. package/skills/zmeel/references/company-skills.md +193 -0
  43. package/skills/zmeel/references/routines.md +187 -0
  44. package/skills/zmeel-create-agent/SKILL.md +142 -0
  45. package/skills/zmeel-create-agent/references/api-reference.md +105 -0
  46. package/skills/zmeel-create-plugin/SKILL.md +101 -0
@@ -2,6 +2,7 @@ import type { Db } from "@zmeel/db";
2
2
  import { goals } from "@zmeel/db";
3
3
  type GoalReader = Pick<Db, "select">;
4
4
  export declare function getDefaultCompanyGoal(db: GoalReader, companyId: string): Promise<{
5
+ level: string;
5
6
  id: string;
6
7
  description: string | null;
7
8
  status: string;
@@ -9,7 +10,6 @@ export declare function getDefaultCompanyGoal(db: GoalReader, companyId: string)
9
10
  updatedAt: Date;
10
11
  companyId: string;
11
12
  title: string;
12
- level: string;
13
13
  parentId: string | null;
14
14
  ownerAgentId: string | null;
15
15
  }>;
@@ -186,6 +186,7 @@ export declare function goalService(db: Db): {
186
186
  generated: undefined;
187
187
  }, {}, {}>;
188
188
  }, "single", Record<"goals", "not-null">, false, "where", {
189
+ level: string;
189
190
  id: string;
190
191
  description: string | null;
191
192
  status: string;
@@ -193,7 +194,6 @@ export declare function goalService(db: Db): {
193
194
  updatedAt: Date;
194
195
  companyId: string;
195
196
  title: string;
196
- level: string;
197
197
  parentId: string | null;
198
198
  ownerAgentId: string | null;
199
199
  }[], {
@@ -369,6 +369,7 @@ export declare function goalService(db: Db): {
369
369
  }, {}, {}>;
370
370
  }>, "where">;
371
371
  getById: (id: string) => Promise<{
372
+ level: string;
372
373
  id: string;
373
374
  description: string | null;
374
375
  status: string;
@@ -376,11 +377,11 @@ export declare function goalService(db: Db): {
376
377
  updatedAt: Date;
377
378
  companyId: string;
378
379
  title: string;
379
- level: string;
380
380
  parentId: string | null;
381
381
  ownerAgentId: string | null;
382
382
  }>;
383
383
  getDefaultCompanyGoal: (companyId: string) => Promise<{
384
+ level: string;
384
385
  id: string;
385
386
  description: string | null;
386
387
  status: string;
@@ -388,11 +389,11 @@ export declare function goalService(db: Db): {
388
389
  updatedAt: Date;
389
390
  companyId: string;
390
391
  title: string;
391
- level: string;
392
392
  parentId: string | null;
393
393
  ownerAgentId: string | null;
394
394
  }>;
395
395
  create: (companyId: string, data: Omit<typeof goals.$inferInsert, "companyId">) => Promise<{
396
+ level: string;
396
397
  id: string;
397
398
  description: string | null;
398
399
  status: string;
@@ -400,7 +401,6 @@ export declare function goalService(db: Db): {
400
401
  updatedAt: Date;
401
402
  companyId: string;
402
403
  title: string;
403
- level: string;
404
404
  parentId: string | null;
405
405
  ownerAgentId: string | null;
406
406
  }>;
@@ -417,6 +417,7 @@ export declare function goalService(db: Db): {
417
417
  updatedAt: Date;
418
418
  }>;
419
419
  remove: (id: string) => Promise<{
420
+ level: string;
420
421
  id: string;
421
422
  description: string | null;
422
423
  status: string;
@@ -424,7 +425,6 @@ export declare function goalService(db: Db): {
424
425
  updatedAt: Date;
425
426
  companyId: string;
426
427
  title: string;
427
- level: string;
428
428
  parentId: string | null;
429
429
  ownerAgentId: string | null;
430
430
  }>;
@@ -124,17 +124,17 @@ export declare function heartbeatService(db: Db): {
124
124
  updatedAt: Date;
125
125
  }[]>;
126
126
  getRun: (runId: string) => Promise<{
127
+ error: string | null;
127
128
  id: string;
128
129
  status: string;
129
130
  createdAt: Date;
130
131
  updatedAt: Date;
131
132
  companyId: string;
132
133
  agentId: string;
133
- triggerDetail: string | null;
134
- finishedAt: Date | null;
135
- error: string | null;
136
134
  invocationSource: string;
135
+ triggerDetail: string | null;
137
136
  startedAt: Date | null;
137
+ finishedAt: Date | null;
138
138
  wakeupRequestId: string | null;
139
139
  exitCode: number | null;
140
140
  signal: string | null;
@@ -417,18 +417,18 @@ export declare function heartbeatService(db: Db): {
417
417
  generated: undefined;
418
418
  }, {}, {}>;
419
419
  }, "single", Record<"heartbeat_run_events", "not-null">, false, "where" | "orderBy" | "limit", {
420
+ level: string | null;
420
421
  id: number;
421
422
  createdAt: Date;
422
423
  companyId: string;
423
424
  payload: Record<string, unknown> | null;
424
425
  agentId: string;
425
426
  runId: string;
426
- level: string | null;
427
427
  color: string | null;
428
- message: string | null;
429
428
  seq: number;
430
429
  eventType: string;
431
430
  stream: string | null;
431
+ message: string | null;
432
432
  }[], {
433
433
  id: import("drizzle-orm/pg-core").PgColumn<{
434
434
  name: "id";
@@ -651,17 +651,17 @@ export declare function heartbeatService(db: Db): {
651
651
  actorType?: "user" | "agent" | "system";
652
652
  actorId?: string | null;
653
653
  }) => Promise<{
654
+ error: string | null;
654
655
  id: string;
655
656
  status: string;
656
657
  createdAt: Date;
657
658
  updatedAt: Date;
658
659
  companyId: string;
659
660
  agentId: string;
660
- triggerDetail: string | null;
661
- finishedAt: Date | null;
662
- error: string | null;
663
661
  invocationSource: string;
662
+ triggerDetail: string | null;
664
663
  startedAt: Date | null;
664
+ finishedAt: Date | null;
665
665
  wakeupRequestId: string | null;
666
666
  exitCode: number | null;
667
667
  signal: string | null;
@@ -685,17 +685,17 @@ export declare function heartbeatService(db: Db): {
685
685
  contextSnapshot: Record<string, unknown> | null;
686
686
  } | null>;
687
687
  wakeup: (agentId: string, opts?: WakeupOptions) => Promise<{
688
+ error: string | null;
688
689
  id: string;
689
690
  status: string;
690
691
  createdAt: Date;
691
692
  updatedAt: Date;
692
693
  companyId: string;
693
694
  agentId: string;
694
- triggerDetail: string | null;
695
- finishedAt: Date | null;
696
- error: string | null;
697
695
  invocationSource: string;
696
+ triggerDetail: string | null;
698
697
  startedAt: Date | null;
698
+ finishedAt: Date | null;
699
699
  wakeupRequestId: string | null;
700
700
  exitCode: number | null;
701
701
  signal: string | null;
@@ -765,17 +765,17 @@ export declare function heartbeatService(db: Db): {
765
765
  skipped: number;
766
766
  }>;
767
767
  cancelRun: (runId: string) => Promise<{
768
+ error: string | null;
768
769
  id: string;
769
770
  status: string;
770
771
  createdAt: Date;
771
772
  updatedAt: Date;
772
773
  companyId: string;
773
774
  agentId: string;
774
- triggerDetail: string | null;
775
- finishedAt: Date | null;
776
- error: string | null;
777
775
  invocationSource: string;
776
+ triggerDetail: string | null;
778
777
  startedAt: Date | null;
778
+ finishedAt: Date | null;
779
779
  wakeupRequestId: string | null;
780
780
  exitCode: number | null;
781
781
  signal: string | null;
@@ -801,17 +801,17 @@ export declare function heartbeatService(db: Db): {
801
801
  cancelActiveForAgent: (agentId: string) => Promise<number>;
802
802
  cancelBudgetScopeWork: (scope: BudgetEnforcementScope) => Promise<void>;
803
803
  getActiveRunForAgent: (agentId: string) => Promise<{
804
+ error: string | null;
804
805
  id: string;
805
806
  status: string;
806
807
  createdAt: Date;
807
808
  updatedAt: Date;
808
809
  companyId: string;
809
810
  agentId: string;
810
- triggerDetail: string | null;
811
- finishedAt: Date | null;
812
- error: string | null;
813
811
  invocationSource: string;
812
+ triggerDetail: string | null;
814
813
  startedAt: Date | null;
814
+ finishedAt: Date | null;
815
815
  wakeupRequestId: string | null;
816
816
  exitCode: number | null;
817
817
  signal: string | null;
@@ -395,10 +395,10 @@ export declare function issueService(db: Db): {
395
395
  updatedAt: Date;
396
396
  companyId: string;
397
397
  issueId: string;
398
- body: string;
399
398
  createdByRunId: string | null;
400
399
  authorAgentId: string | null;
401
400
  authorUserId: string | null;
401
+ body: string;
402
402
  }[]>;
403
403
  getCommentCursor: (issueId: string) => Promise<{
404
404
  totalComments: number;
@@ -411,10 +411,10 @@ export declare function issueService(db: Db): {
411
411
  updatedAt: Date;
412
412
  companyId: string;
413
413
  issueId: string;
414
- body: string;
415
414
  createdByRunId: string | null;
416
415
  authorAgentId: string | null;
417
416
  authorUserId: string | null;
417
+ body: string;
418
418
  } | null>;
419
419
  addComment: (issueId: string, body: string, actor: {
420
420
  agentId?: string;
@@ -426,10 +426,10 @@ export declare function issueService(db: Db): {
426
426
  updatedAt: Date;
427
427
  companyId: string;
428
428
  issueId: string;
429
- body: string;
430
429
  createdByRunId: string | null;
431
430
  authorAgentId: string | null;
432
431
  authorUserId: string | null;
432
+ body: string;
433
433
  }>;
434
434
  createAttachment: (input: {
435
435
  issueId: string;