@autohq/cli 0.1.310 → 0.1.311
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/agent-bridge.js +1 -1
- package/dist/index.js +17 -12
- package/package.json +1 -1
package/dist/agent-bridge.js
CHANGED
|
@@ -23407,7 +23407,7 @@ Object.assign(lookup, {
|
|
|
23407
23407
|
// package.json
|
|
23408
23408
|
var package_default = {
|
|
23409
23409
|
name: "@autohq/cli",
|
|
23410
|
-
version: "0.1.
|
|
23410
|
+
version: "0.1.311",
|
|
23411
23411
|
license: "SEE LICENSE IN README.md",
|
|
23412
23412
|
publishConfig: {
|
|
23413
23413
|
access: "public"
|
package/dist/index.js
CHANGED
|
@@ -25610,7 +25610,7 @@ var init_package = __esm({
|
|
|
25610
25610
|
"package.json"() {
|
|
25611
25611
|
package_default = {
|
|
25612
25612
|
name: "@autohq/cli",
|
|
25613
|
-
version: "0.1.
|
|
25613
|
+
version: "0.1.311",
|
|
25614
25614
|
license: "SEE LICENSE IN README.md",
|
|
25615
25615
|
publishConfig: {
|
|
25616
25616
|
access: "public"
|
|
@@ -27723,15 +27723,15 @@ var init_template_staleness = __esm({
|
|
|
27723
27723
|
function readProjectApplyDirectorySource(input) {
|
|
27724
27724
|
const resourceRoot = normalizeSourcePath(input.resourceRoot ?? "");
|
|
27725
27725
|
const displayResourceRoot2 = input.displayResourceRoot ?? (resourceRoot || ".auto");
|
|
27726
|
-
const
|
|
27727
|
-
|
|
27728
|
-
|
|
27729
|
-
|
|
27730
|
-
|
|
27731
|
-
);
|
|
27732
|
-
assertNoStandaloneSourceFiles(
|
|
27733
|
-
assertValidFragmentSourceFiles(
|
|
27734
|
-
const agentFiles =
|
|
27726
|
+
const files = injectManagedTemplateFiles({
|
|
27727
|
+
files: input.files,
|
|
27728
|
+
registry: defaultTemplateRegistry
|
|
27729
|
+
});
|
|
27730
|
+
const fileIndex = sourceFileIndex(files);
|
|
27731
|
+
assertNoLegacySessionSourceFiles(files, resourceRoot, displayResourceRoot2);
|
|
27732
|
+
assertNoStandaloneSourceFiles(files, resourceRoot, displayResourceRoot2);
|
|
27733
|
+
assertValidFragmentSourceFiles(files, resourceRoot, fileIndex);
|
|
27734
|
+
const agentFiles = files.filter(
|
|
27735
27735
|
(file2) => isResourceFileUnderDirectory(
|
|
27736
27736
|
file2.path,
|
|
27737
27737
|
sourcePathJoin(resourceRoot, primaryApplyDirectory())
|
|
@@ -27747,7 +27747,7 @@ function readProjectApplyDirectorySource(input) {
|
|
|
27747
27747
|
}))
|
|
27748
27748
|
);
|
|
27749
27749
|
}
|
|
27750
|
-
const configResource = readProjectConfigResource(
|
|
27750
|
+
const configResource = readProjectConfigResource(files, resourceRoot);
|
|
27751
27751
|
const resources = [
|
|
27752
27752
|
...dedupeGeneratedResources(resourceRecords),
|
|
27753
27753
|
...configResource ? [configResource] : []
|
|
@@ -27765,7 +27765,12 @@ function readProjectApplyDirectorySource(input) {
|
|
|
27765
27765
|
}
|
|
27766
27766
|
function readProjectApplyFileSource(input) {
|
|
27767
27767
|
const request = readProjectApplyDocumentSourceFile(input.file, {
|
|
27768
|
-
fileIndex: sourceFileIndex(
|
|
27768
|
+
fileIndex: sourceFileIndex(
|
|
27769
|
+
injectManagedTemplateFiles({
|
|
27770
|
+
files: input.files ?? [input.file],
|
|
27771
|
+
registry: defaultTemplateRegistry
|
|
27772
|
+
})
|
|
27773
|
+
)
|
|
27769
27774
|
});
|
|
27770
27775
|
return ProjectApplyRequestSchema.parse({
|
|
27771
27776
|
...request,
|