fix: apply default workspace dependencies to raw app runnables (#10427)

* fix: apply default workspace dependencies to raw app runnables

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* test: state the tree-path constraint in the raw app deps regression test

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix: honor defaultTs when loading raw app runnables for lock generation

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix: resolve defaultTs from wmill.yaml at every raw app runnable read

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* refactor: thread defaultTs from command entry instead of re-reading the config

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* refactor: give pushObj an options object for its optional arguments

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* docs: reattach the pushObj JSDoc after the options-object refactor

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ruben Fiszel
2026-07-31 11:42:43 +02:00
committed by GitHub
co-authored by Claude Opus 5
parent c69f08073a
commit 38b6099b4c
7 changed files with 187 additions and 54 deletions
+23 -15
View File
@@ -4628,13 +4628,17 @@ export async function push(
newObj,
opts.plainSecrets ?? false,
alreadySynced,
opts.message,
originalWorkspaceSpecificPath,
permissionedAsContext,
isWsSpecific ? true : undefined,
{
noninteractive: (opts.yes ?? false) || !process.stdin.isTTY,
skipReencrypt: opts.skipReencryptOnKeyChange,
message: opts.message,
originalLocalPath: originalWorkspaceSpecificPath,
permissionedAsContext,
wsSpecific: isWsSpecific ? true : undefined,
keyPushOpts: {
noninteractive:
(opts.yes ?? false) || !process.stdin.isTTY,
skipReencrypt: opts.skipReencryptOnKeyChange,
},
defaultTs: opts.defaultTs,
},
);
@@ -4754,13 +4758,17 @@ export async function push(
obj,
opts.plainSecrets ?? false,
[],
opts.message,
localFilePath, // Pass the actual local file path
permissionedAsContext,
isAddedWsSpecific ? true : undefined,
{
noninteractive: (opts.yes ?? false) || !process.stdin.isTTY,
skipReencrypt: opts.skipReencryptOnKeyChange,
message: opts.message,
originalLocalPath: localFilePath,
permissionedAsContext,
wsSpecific: isAddedWsSpecific ? true : undefined,
keyPushOpts: {
noninteractive:
(opts.yes ?? false) || !process.stdin.isTTY,
skipReencrypt: opts.skipReencryptOnKeyChange,
},
defaultTs: opts.defaultTs,
},
);
@@ -4871,7 +4879,7 @@ export async function push(
undefined,
opts.plainSecrets ?? false,
alreadySynced,
opts.message,
{ message: opts.message },
);
} else {
// Flow folder doesn't exist locally — delete on server
@@ -4913,7 +4921,7 @@ export async function push(
undefined,
opts.plainSecrets ?? false,
alreadySynced,
opts.message,
{ message: opts.message },
);
} else {
// App folder doesn't exist locally — delete on server
@@ -4956,7 +4964,7 @@ export async function push(
undefined,
opts.plainSecrets ?? false,
alreadySynced,
opts.message,
{ message: opts.message, defaultTs: opts.defaultTs },
);
} else {
// The entire raw app folder was deleted locally,