@agentuity/cli 0.0.55 → 0.0.56

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 (43) hide show
  1. package/dist/cmd/ai/schema/generate.d.ts +3 -0
  2. package/dist/cmd/ai/schema/generate.d.ts.map +1 -0
  3. package/dist/cmd/ai/schema/generate.js +50 -0
  4. package/dist/cmd/ai/schema/generate.js.map +1 -0
  5. package/dist/cmd/ai/schema/index.d.ts.map +1 -1
  6. package/dist/cmd/ai/schema/index.js +2 -1
  7. package/dist/cmd/ai/schema/index.js.map +1 -1
  8. package/dist/cmd/build/ast.d.ts.map +1 -1
  9. package/dist/cmd/build/ast.js +101 -81
  10. package/dist/cmd/build/ast.js.map +1 -1
  11. package/dist/cmd/build/ast.test.js +135 -370
  12. package/dist/cmd/build/ast.test.js.map +1 -1
  13. package/dist/cmd/build/bundler.d.ts.map +1 -1
  14. package/dist/cmd/build/bundler.js +8 -5
  15. package/dist/cmd/build/bundler.js.map +1 -1
  16. package/dist/cmd/build/plugin.d.ts.map +1 -1
  17. package/dist/cmd/build/plugin.js +9 -1
  18. package/dist/cmd/build/plugin.js.map +1 -1
  19. package/dist/cmd/cloud/session/get.d.ts.map +1 -1
  20. package/dist/cmd/cloud/session/get.js +77 -17
  21. package/dist/cmd/cloud/session/get.js.map +1 -1
  22. package/dist/cmd/project/template-flow.d.ts.map +1 -1
  23. package/dist/cmd/project/template-flow.js +1 -0
  24. package/dist/cmd/project/template-flow.js.map +1 -1
  25. package/dist/config.d.ts +27 -3
  26. package/dist/config.d.ts.map +1 -1
  27. package/dist/config.js +31 -3
  28. package/dist/config.js.map +1 -1
  29. package/dist/types.d.ts +24 -2
  30. package/dist/types.d.ts.map +1 -1
  31. package/dist/types.js +4 -75
  32. package/dist/types.js.map +1 -1
  33. package/package.json +3 -3
  34. package/src/cmd/ai/schema/generate.ts +64 -0
  35. package/src/cmd/ai/schema/index.ts +2 -1
  36. package/src/cmd/build/ast.test.ts +157 -549
  37. package/src/cmd/build/ast.ts +115 -89
  38. package/src/cmd/build/bundler.ts +8 -5
  39. package/src/cmd/build/plugin.ts +10 -1
  40. package/src/cmd/cloud/session/get.ts +91 -19
  41. package/src/cmd/project/template-flow.ts +1 -0
  42. package/src/config.ts +44 -5
  43. package/src/types.ts +5 -84
package/src/types.ts CHANGED
@@ -1,9 +1,11 @@
1
1
  import type { Logger } from '@agentuity/core';
2
- import { Deployment } from '@agentuity/server';
2
+ import { Deployment, BuildMetadataSchema as ServerBuildMetadataSchema } from '@agentuity/server';
3
3
  import type * as z from 'zod';
4
4
  import { z as zod } from 'zod';
5
5
  import type { APIClient } from './api';
6
6
 
7
+ export { Deployment };
8
+
7
9
  export type { Logger };
8
10
 
9
11
  export const ConfigSchema = zod.object({
@@ -426,91 +428,10 @@ export type SubcommandDefinition =
426
428
  export const ProjectSchema = zod.object({
427
429
  projectId: zod.string().describe('the project id'),
428
430
  orgId: zod.string().describe('the organization id'),
431
+ region: zod.string().describe('the region identifier that the project is deployed into'),
429
432
  deployment: Deployment.optional().describe('the deployment configuration'),
430
433
  });
431
434
 
432
- const FileFields = {
433
- filename: zod.string().describe('the relative path for the file'),
434
- version: zod.string().describe('the SHA256 content of the file'),
435
- identifier: zod.string().describe('the folder for the file'),
436
- };
437
-
438
- const EvalSchema = zod.object({
439
- ...FileFields,
440
- id: zod.string().describe('the unique calculated id for the eval'),
441
- evalId: zod.string().describe('the unique id for eval for the project across deployments'),
442
- name: zod.string().describe('the name of the eval'),
443
- description: zod.string().optional().describe('the eval description'),
444
- agentIdentifier: zod.string().describe('the identifier of the agent'),
445
- projectId: zod.string().describe('the project id'),
446
- });
447
-
448
- const BaseAgentFields = {
449
- ...FileFields,
450
- id: zod.string().describe('the unique calculated id for the agent'),
451
- agentId: zod.string().describe('the unique id for agent for the project across deployments'),
452
- projectId: zod.string().describe('the project id'),
453
- name: zod.string().describe('the name of the agent'),
454
- description: zod.string().optional().describe('the agent description'),
455
- evals: zod.array(EvalSchema).optional().describe('the evals for the agent'),
456
- };
457
-
458
- const AgentSchema = zod.object({
459
- ...BaseAgentFields,
460
- subagents: zod.array(zod.object(BaseAgentFields)).optional().describe('subagents of this agent'),
461
- });
462
-
463
- export const BuildMetadataSchema = zod.object({
464
- routes: zod.array(
465
- zod.object({
466
- id: zod.string().describe('the unique calculated id for the route'),
467
- filename: zod.string().describe('the relative path for the file'),
468
- path: zod.string().describe('the route path'),
469
- method: zod.enum(['get', 'post', 'put', 'delete', 'patch']).describe('the HTTP method'),
470
- version: zod.string().describe('the SHA256 content of the file'),
471
- type: zod.enum(['api', 'sms', 'email', 'cron', 'websocket', 'sse', 'stream']),
472
- config: zod
473
- .record(zod.string(), zod.unknown())
474
- .optional()
475
- .describe('type specific configuration'),
476
- })
477
- ),
478
- agents: zod.array(AgentSchema),
479
- assets: zod.array(
480
- zod.object({
481
- filename: zod.string().describe('the relative path for the file'),
482
- kind: zod.string().describe('the type of asset'),
483
- contentType: zod.string().describe('the content-type for the file'),
484
- size: zod.number().describe('the size in bytes for the file'),
485
- })
486
- ),
487
- project: zod.object({
488
- id: zod.string().describe('the project id'),
489
- name: zod.string().describe('the name of the project (from package.json)'),
490
- version: zod.string().optional().describe('the version of the project (from package.json)'),
491
- }),
492
- deployment: zod.object({
493
- id: zod.string().describe('the deployment id'),
494
- date: zod.string().describe('the date the deployment was created in UTC format'),
495
- git: zod
496
- .object({
497
- repo: zod.string().optional().describe('the repository name'),
498
- commit: zod.string().optional().describe('the git commit sha'),
499
- message: zod.string().optional().describe('the git commit message'),
500
- branch: zod.string().optional().describe('the git branch'),
501
- tags: zod.array(zod.string()).optional().describe('the tags for the current branch'),
502
- pr: zod.string().optional().describe('the pull request number'),
503
- })
504
- .optional()
505
- .describe('git commit information'),
506
- build: zod.object({
507
- bun: zod.string().describe('the version of bun that was used to build the deployment'),
508
- agentuity: zod.string().describe('the version of the agentuity runtime'),
509
- arch: zod.string().describe('the machine architecture'),
510
- platform: zod.string().describe('the machine os platform'),
511
- }),
512
- }),
513
- });
514
-
435
+ export const BuildMetadataSchema = ServerBuildMetadataSchema;
515
436
  export type BuildMetadata = zod.infer<typeof BuildMetadataSchema>;
516
437
  export type Project = zod.infer<typeof ProjectSchema>;