@vosjs/cli 0.29.0 → 0.29.1
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.
- package/dist/{chunk-GSRCASV2.js → chunk-LST5JGI5.js} +18 -4
- package/dist/{chunk-GSRCASV2.js.map → chunk-LST5JGI5.js.map} +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{run-2KGUUW4W.js → run-WJ6IDJ3O.js} +2 -2
- package/package.json +4 -4
- /package/dist/{run-2KGUUW4W.js.map → run-WJ6IDJ3O.js.map} +0 -0
|
@@ -7406,7 +7406,7 @@ import {
|
|
|
7406
7406
|
migrateConfig,
|
|
7407
7407
|
vosConfigJsonSchema
|
|
7408
7408
|
} from "@vosjs/core";
|
|
7409
|
-
import { migrateHostedDoc as migrateHostedDoc4 } from "@vosjs/studio-core";
|
|
7409
|
+
import { lowerProgramDoc, migrateHostedDoc as migrateHostedDoc4 } from "@vosjs/studio-core";
|
|
7410
7410
|
|
|
7411
7411
|
// src/plugin/login.ts
|
|
7412
7412
|
import { hostname } from "os";
|
|
@@ -7704,6 +7704,7 @@ async function createProgramVos(opts) {
|
|
|
7704
7704
|
if (opts.remixOfId) body.remixOfId = opts.remixOfId;
|
|
7705
7705
|
if (opts.label) body.label = opts.label;
|
|
7706
7706
|
if (opts.note) body.note = opts.note;
|
|
7707
|
+
if (opts.doc) body.doc = opts.doc;
|
|
7707
7708
|
const res = await apiJson(opts.origin, "/api/vos", {
|
|
7708
7709
|
method: "POST",
|
|
7709
7710
|
key: opts.key,
|
|
@@ -7804,7 +7805,10 @@ with their key: vos push ${source} --vos ${String(created2.id ?? "<id>")}`
|
|
|
7804
7805
|
}
|
|
7805
7806
|
if (vosId) {
|
|
7806
7807
|
const trackedBase = state && state.vosId === vosId && state.versionId ? state.versionId : void 0;
|
|
7807
|
-
const body = {
|
|
7808
|
+
const body = {
|
|
7809
|
+
config: storedProgramConfig(config, programDoc),
|
|
7810
|
+
client: clientId()
|
|
7811
|
+
};
|
|
7808
7812
|
if (programDoc) body.doc = programDoc;
|
|
7809
7813
|
const base = strFlag(flags, "base") ?? trackedBase;
|
|
7810
7814
|
if (base) body.baseVersionId = base;
|
|
@@ -7869,7 +7873,12 @@ with their key: vos push ${source} --vos ${String(created2.id ?? "<id>")}`
|
|
|
7869
7873
|
const created = await createProgramVos({
|
|
7870
7874
|
origin,
|
|
7871
7875
|
key,
|
|
7872
|
-
config,
|
|
7876
|
+
config: storedProgramConfig(config, programDoc),
|
|
7877
|
+
// The document rode the version path and not the create path, so a
|
|
7878
|
+
// fresh push of a program directory silently dropped its doc.json
|
|
7879
|
+
// (found seeding one-layer members: `--with` then said the vos carried
|
|
7880
|
+
// no doc).
|
|
7881
|
+
doc: programDoc ?? void 0,
|
|
7873
7882
|
title,
|
|
7874
7883
|
slug: strFlag(flags, "slug"),
|
|
7875
7884
|
description: desc,
|
|
@@ -8066,6 +8075,11 @@ async function storeKey(key, origin, r) {
|
|
|
8066
8075
|
function isTakeDir(target) {
|
|
8067
8076
|
return directoryKind(target) === "take";
|
|
8068
8077
|
}
|
|
8078
|
+
function storedProgramConfig(config, programDoc) {
|
|
8079
|
+
if (!programDoc) return config;
|
|
8080
|
+
const doc = { audio: [], ...programDoc };
|
|
8081
|
+
return lowerProgramDoc(doc).config;
|
|
8082
|
+
}
|
|
8069
8083
|
async function readProgramDoc(dir, config) {
|
|
8070
8084
|
const docPath = join16(dir, "doc.json");
|
|
8071
8085
|
if (!existsSync13(docPath)) return null;
|
|
@@ -10587,4 +10601,4 @@ export {
|
|
|
10587
10601
|
convertAgentBrowser,
|
|
10588
10602
|
run
|
|
10589
10603
|
};
|
|
10590
|
-
//# sourceMappingURL=chunk-
|
|
10604
|
+
//# sourceMappingURL=chunk-LST5JGI5.js.map
|