@assethub/cli 0.1.28 → 0.1.29
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/README.md +2 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/productionOneShot.d.ts +2 -9
- package/dist/productionOneShot.d.ts.map +1 -1
- package/dist/productionOneShot.js +3 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -305,9 +305,8 @@ with `--file`/`--source-id`/other source flags — it already resolves one.
|
|
|
305
305
|
- `--compose none`: disables automation's compose stage (`config.autoCompose:
|
|
306
306
|
false`); the run stops once every part's mesh is generated.
|
|
307
307
|
- `--compose v6`: requests an explicit Composer V6 pass via
|
|
308
|
-
`
|
|
309
|
-
(`autoCompose` is left at its default of `true`
|
|
310
|
-
rejected by the server). A server that has shipped this (assethub-web PR
|
|
308
|
+
top-level `partComposerAgentVersion: "part_composer_v6_auto_assemble"`
|
|
309
|
+
(`config.autoCompose` is left at its default of `true`). A server that has shipped this (assethub-web PR
|
|
311
310
|
#8179) does the V6 compose itself, in the same automation call, pairing
|
|
312
311
|
each part's mesh with its source image automatically. Against an older,
|
|
313
312
|
currently-deployed server (detected by the automation response lacking
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AA6BA,OAAO,EAQL,KAAK,wBAAwB,EAO7B,KAAK,YAAY,EAEjB,KAAK,UAAU,EAkBf,oBAAoB,EACrB,MAAM,sBAAsB,CAAA;AAc7B,OAAO,EAAC,kBAAkB,EAAc,MAAM,gCAAgC,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AA6BA,OAAO,EAQL,KAAK,wBAAwB,EAO7B,KAAK,YAAY,EAEjB,KAAK,UAAU,EAkBf,oBAAoB,EACrB,MAAM,sBAAsB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GAAG,SAAS,CAAA;IAC5B,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,MAAM,EAAE,OAAO,CAAA;IACf,YAAY,EAAE,OAAO,CAAA;CACtB,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAC9B,YAAY,MAAM,GAAG,SAAS,EAC9B,aAAa,MAAM,EAAE,EACrB,OAAO,KAAK,KACX,cAoBF,CAAA;AAED,KAAK,iBAAiB,GAAG,IAAI,CAC3B,OAAO,CAAC,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,EAC5C,SAAS,GACT,UAAU,GACV,KAAK,GACL,WAAW,GACX,QAAQ,GACR,OAAO,GACP,OAAO,GACP,UAAU,CACb,CAAA;AAED,eAAO,MAAM,iBAAiB,GAC5B,WAAW,MAAM,EACjB,MAAM,iBAAiB;;;;;;;;;;;;;;CAUvB,CAAA;AAEF,eAAO,MAAM,sBAAsB,GACjC,SAAS,UAAU,CAAC,OAAO,iBAAiB,CAAC,EAC7C,MAAM,iBAAiB,EACvB,SAAS,MAAM;;;;;;;;;;;;;;;;;;;;;;;CAYf,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -23,7 +23,7 @@ import { buildRunUploadPlan, formatBytes } from './runsUpload/buildRunUpload.js'
|
|
|
23
23
|
import { readGraphFolder } from './runsUpload/graphFolder.js';
|
|
24
24
|
import { uploadRun } from './runsUpload/uploadRun.js';
|
|
25
25
|
import { existsSync } from 'node:fs';
|
|
26
|
-
import { DEFAULT_MAX_PARTS, buildAutomationConfig, buildComposerPartsFromMeshExecutions, detectOneShotImageInput, estimateOneShotCost, exceedsMaxCost, formatExecutionSummaryLines, parseComposeFlag, pollAutomationBatch, readServerCostBreakdown, resolveFullBodyImageAssetId, serverSupportsV6Compose, withErrorHint, } from './productionOneShot.js';
|
|
26
|
+
import { DEFAULT_MAX_PARTS, PART_COMPOSER_V6_AGENT_VERSION, buildAutomationConfig, buildComposerPartsFromMeshExecutions, detectOneShotImageInput, estimateOneShotCost, exceedsMaxCost, formatExecutionSummaryLines, parseComposeFlag, pollAutomationBatch, readServerCostBreakdown, resolveFullBodyImageAssetId, serverSupportsV6Compose, withErrorHint, } from './productionOneShot.js';
|
|
27
27
|
const defaultBaseUrl = 'https://app.assethub.io';
|
|
28
28
|
// Mirrors PUBLIC_IMAGE_GENERATE_DEFAULT_MODEL_ID in apps/frontend
|
|
29
29
|
// (src/feature/imageGen/util/publicImageGenDefaultModel.ts). This package does
|
|
@@ -3186,6 +3186,7 @@ const commandProductionRunOneShot = async (ctx) => {
|
|
|
3186
3186
|
images: [analyzeImage],
|
|
3187
3187
|
agentVersion,
|
|
3188
3188
|
...(config ? { config } : {}),
|
|
3189
|
+
...(compose === 'v6' ? { partComposerAgentVersion: PART_COMPOSER_V6_AGENT_VERSION } : {}),
|
|
3189
3190
|
...(maxCostCredits != null ? { maxCostCredits } : {}),
|
|
3190
3191
|
};
|
|
3191
3192
|
const queued = (await executeRecorded(session, 'production.automation', body, executionOptions(ctx.flags)));
|
|
@@ -41,15 +41,8 @@ export declare const PART_COMPOSER_V6_AGENT_VERSION = "part_composer_v6_auto_ass
|
|
|
41
41
|
* - `--compose` omitted: returns `undefined` so the request carries no
|
|
42
42
|
* `config.autoCompose` at all, leaving the server default in effect.
|
|
43
43
|
* - `--compose none`: disables automation's own compose stage entirely.
|
|
44
|
-
* - `--compose v6`:
|
|
45
|
-
*
|
|
46
|
-
* unset (defaults to `true`) — the server 400s with
|
|
47
|
-
* `PART_COMPOSER_VERSION_REQUIRES_AUTO_COMPOSE` if both are sent together,
|
|
48
|
-
* so this function must never combine them. A server that predates #8179
|
|
49
|
-
* ignores the unrecognized field and runs its own default compose instead;
|
|
50
|
-
* `serverSupportsV6Compose` inspects the response afterward so the caller
|
|
51
|
-
* can still fall back to the client-side lineage-pairing compose
|
|
52
|
-
* (`buildComposerPartsFromMeshExecutions`) on that older server.
|
|
44
|
+
* - `--compose v6`: leaves config unset. The version is a top-level automation
|
|
45
|
+
* request field, added by the caller; `autoCompose` defaults to `true`.
|
|
53
46
|
*/
|
|
54
47
|
export declare const buildAutomationConfig: (compose: ComposeMode | undefined) => Record<string, unknown> | undefined;
|
|
55
48
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"productionOneShot.d.ts","sourceRoot":"","sources":["../src/productionOneShot.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EACV,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,qCAAqC,EACrC,qBAAqB,EACtB,MAAM,sBAAsB,CAAA;AAE7B,MAAM,MAAM,iBAAiB,GACzB;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAC,GAC5B;IAAC,IAAI,EAAE,YAAY,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAC,CAAA;AAE5C;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,GAClC,OAAO,MAAM,EACb,QAAQ,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,KAChC,iBACoF,CAAA;AAEvF,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,MAAM,CAAA;AAEvC,kFAAkF;AAClF,eAAO,MAAM,gBAAgB,GAAI,OAAO,MAAM,GAAG,SAAS,KAAG,WAAW,GAAG,SAI1E,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,mCAAmC,CAAA;AAE9E
|
|
1
|
+
{"version":3,"file":"productionOneShot.d.ts","sourceRoot":"","sources":["../src/productionOneShot.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EACV,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,qCAAqC,EACrC,qBAAqB,EACtB,MAAM,sBAAsB,CAAA;AAE7B,MAAM,MAAM,iBAAiB,GACzB;IAAC,IAAI,EAAE,MAA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C,KAAG,OAAO,CAAC,qCAAqC,CAkBhD,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,oCAAoC,GAC/C,YAAY,eAAe,EAAE,EAC7B,SAAS,MAAM,KACd,gBAAgB,EAclB,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B,GACtC,YAAY,eAAe,EAAE,EAC7B,SAAS,MAAM,KACd,MAAM,GAAG,SAQX,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE;QACR,WAAW,CAAC,EAAE,MAAM,CAAA;QACpB,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,YAAY,CAAC,EAAE,MAAM,CAAA;KACtB,CAAA;CACF,CAAA;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,YAAY,GAAI,OAAO,cAAc,KAAG,MAAM,GAAG,SA0B7D,CAAA;AAED,yEAAyE;AACzE,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,KAAK,GAAG;IAAC,OAAO,EAAE,MAAM,CAAA;CAAC,EAAE,OAAO,CAAC,KAAG,CAI7E,CAAA;AAED,gEAAgE;AAChE,eAAO,MAAM,2BAA2B,GAAI,WAAW,eAAe,KAAG,MAAM,EAe9E,CAAA"}
|
|
@@ -25,22 +25,11 @@ export const PART_COMPOSER_V6_AGENT_VERSION = 'part_composer_v6_auto_assemble';
|
|
|
25
25
|
* - `--compose` omitted: returns `undefined` so the request carries no
|
|
26
26
|
* `config.autoCompose` at all, leaving the server default in effect.
|
|
27
27
|
* - `--compose none`: disables automation's own compose stage entirely.
|
|
28
|
-
* - `--compose v6`:
|
|
29
|
-
*
|
|
30
|
-
* unset (defaults to `true`) — the server 400s with
|
|
31
|
-
* `PART_COMPOSER_VERSION_REQUIRES_AUTO_COMPOSE` if both are sent together,
|
|
32
|
-
* so this function must never combine them. A server that predates #8179
|
|
33
|
-
* ignores the unrecognized field and runs its own default compose instead;
|
|
34
|
-
* `serverSupportsV6Compose` inspects the response afterward so the caller
|
|
35
|
-
* can still fall back to the client-side lineage-pairing compose
|
|
36
|
-
* (`buildComposerPartsFromMeshExecutions`) on that older server.
|
|
28
|
+
* - `--compose v6`: leaves config unset. The version is a top-level automation
|
|
29
|
+
* request field, added by the caller; `autoCompose` defaults to `true`.
|
|
37
30
|
*/
|
|
38
31
|
export const buildAutomationConfig = (compose) => {
|
|
39
|
-
|
|
40
|
-
return undefined;
|
|
41
|
-
if (compose === 'none')
|
|
42
|
-
return { autoCompose: false };
|
|
43
|
-
return { partComposerAgentVersion: PART_COMPOSER_V6_AGENT_VERSION };
|
|
32
|
+
return compose === 'none' ? { autoCompose: false } : undefined;
|
|
44
33
|
};
|
|
45
34
|
/**
|
|
46
35
|
* `estimatedCostBreakdown` (added by #8179) only appears on a server new
|