@agentuity/cli 0.0.45 → 0.0.47

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 +1 @@
1
- {"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../../../src/cmd/cloud/scp/upload.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,aAAa,yCA4CxB,CAAC"}
1
+ {"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../../../src/cmd/cloud/scp/upload.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,aAAa,yCA0CxB,CAAC"}
package/dist/config.d.ts CHANGED
@@ -22,7 +22,7 @@ export declare function generateYAMLTemplate(name: string): string;
22
22
  type ProjectConfig = z.infer<typeof ProjectSchema>;
23
23
  export declare function loadProjectConfig(dir: string, config?: Config | null): Promise<ProjectConfig>;
24
24
  type InitialProjectConfig = ProjectConfig & {
25
- apiKey: string;
25
+ sdkKey: string;
26
26
  };
27
27
  export declare function createProjectConfig(dir: string, config: InitialProjectConfig): Promise<void>;
28
28
  export declare function loadBuildMetadata(dir: string): Promise<BuildMetadata>;
@@ -1 +1 @@
1
- {"version":3,"file":"zip.d.ts","sourceRoot":"","sources":["../../src/utils/zip.ts"],"names":[],"mappings":"AAIA,UAAU,OAAO;IAChB,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC;CACzD;AAED,wBAAsB,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,iBA4B1E"}
1
+ {"version":3,"file":"zip.d.ts","sourceRoot":"","sources":["../../src/utils/zip.ts"],"names":[],"mappings":"AAIA,UAAU,OAAO;IAChB,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC;CACzD;AAED,wBAAsB,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,iBA8B1E"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentuity/cli",
3
- "version": "0.0.45",
3
+ "version": "0.0.47",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Agentuity employees and contributors",
6
6
  "type": "module",
@@ -30,8 +30,8 @@
30
30
  "prepublishOnly": "bun run clean && bun run build"
31
31
  },
32
32
  "dependencies": {
33
- "@agentuity/core": "0.0.45",
34
- "@agentuity/server": "0.0.45",
33
+ "@agentuity/core": "0.0.47",
34
+ "@agentuity/server": "0.0.47",
35
35
  "@terascope/fetch-github-release": "^2.2.1",
36
36
  "acorn-loose": "^8.5.2",
37
37
  "adm-zip": "^0.5.16",
@@ -55,5 +55,5 @@ export const downloadCommand = createSubcommand({
55
55
  );
56
56
  process.exit(1);
57
57
  }
58
- },
58
+ },
59
59
  });
@@ -53,10 +53,8 @@ export const uploadCommand = createSubcommand({
53
53
  process.exit(spawn.exitCode ?? 1);
54
54
  }
55
55
  } catch (error) {
56
- tui.error(
57
- `SCP upload error: ${error instanceof Error ? error.message : 'Unknown error'}`
58
- );
56
+ tui.error(`SCP upload error: ${error instanceof Error ? error.message : 'Unknown error'}`);
59
57
  process.exit(1);
60
58
  }
61
- },
59
+ },
62
60
  });
@@ -310,14 +310,14 @@ export async function runCreateFlow(options: CreateFlowOptions): Promise<void> {
310
310
  callback: async () => {
311
311
  const project = await projectCreate(apiClient, {
312
312
  name: projectName,
313
- organization_id: orgId,
314
- provider: 'bunjs',
313
+ orgId,
314
+ cloudRegion: region ?? 'usc',
315
315
  });
316
316
  projectId = project.id;
317
317
  return createProjectConfig(dest, {
318
318
  projectId: project.id,
319
319
  orgId,
320
- apiKey: project.api_key,
320
+ sdkKey: project.sdkKey,
321
321
  deployment: {
322
322
  resources: resourceConfig,
323
323
  },
package/src/config.ts CHANGED
@@ -544,11 +544,11 @@ export async function loadProjectConfig(
544
544
  }
545
545
 
546
546
  type InitialProjectConfig = ProjectConfig & {
547
- apiKey: string;
547
+ sdkKey: string;
548
548
  };
549
549
 
550
550
  export async function createProjectConfig(dir: string, config: InitialProjectConfig) {
551
- const { apiKey, ...sanitizedConfig } = config;
551
+ const { sdkKey, ...sanitizedConfig } = config;
552
552
 
553
553
  const configPath = join(dir, 'agentuity.json');
554
554
  const json5Content = generateJSON5WithComments(ProjectSchema, sanitizedConfig);
@@ -557,7 +557,7 @@ export async function createProjectConfig(dir: string, config: InitialProjectCon
557
557
  const envPath = join(dir, '.env');
558
558
  const comment =
559
559
  '# AGENTUITY_SDK_KEY is a sensitive value and should not be committed to version control.';
560
- const content = `${comment}\nAGENTUITY_SDK_KEY=${apiKey}\n`;
560
+ const content = `${comment}\nAGENTUITY_SDK_KEY=${sdkKey}\n`;
561
561
  await Bun.write(envPath, content);
562
562
  await chmod(envPath, 0o600);
563
563
  }
package/src/utils/zip.ts CHANGED
@@ -9,7 +9,9 @@ interface Options {
9
9
 
10
10
  export async function zipDir(dir: string, outdir: string, options?: Options) {
11
11
  const zip = new AdmZip();
12
- const files = await Array.fromAsync(new Glob('**').scan({ cwd: dir, absolute: true }));
12
+ const files = await Array.fromAsync(
13
+ new Glob('**/*').scan({ cwd: dir, absolute: true, dot: true })
14
+ );
13
15
  const total = files.length;
14
16
  let count = 0;
15
17
  for (const file of files) {