@sequenceholdings/artifact-studio 0.1.5 → 0.1.6

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 (2) hide show
  1. package/dist/cli.js +7 -3
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -326,12 +326,16 @@ async function pullCommand(args) {
326
326
  if (!projectData.project.activeDeploymentId) {
327
327
  throw new Error('Project has no active deployment to pull.');
328
328
  }
329
- const deploymentData = await getJson({
329
+ // Files were split off the deployment-detail route to keep iframe
330
+ // loads small (~400kB → ~few kB); they live under /files now.
331
+ // The deployment-detail GET no longer includes them, so we hit
332
+ // the dedicated subroute to get source content.
333
+ const filesData = await getJson({
330
334
  baseUrl: env.url,
331
335
  token,
332
- path: `/api/artifact-studio/projects/${projectId}/deployments/${projectData.project.activeDeploymentId}`,
336
+ path: `/api/artifact-studio/projects/${projectId}/deployments/${projectData.project.activeDeploymentId}/files`,
333
337
  });
334
- for (const file of deploymentData.deployment.files) {
338
+ for (const file of filesData.files) {
335
339
  const target = join(out, file.path);
336
340
  await mkdir(dirname(target), { recursive: true });
337
341
  await writeFile(target, file.content, 'utf8');
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "restricted"
5
5
  },
6
- "version": "0.1.5",
6
+ "version": "0.1.6",
7
7
  "description": "CLI and SDK types for building Artifact Studio apps",
8
8
  "type": "module",
9
9
  "bin": {