@wairon/cli 5.1.1-dev.67 → 5.1.1-dev.68
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/cli/index.js +26 -11
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +26 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11567,7 +11567,7 @@ function defaultTargetConfig(type) {
|
|
|
11567
11567
|
enabled: true
|
|
11568
11568
|
};
|
|
11569
11569
|
}
|
|
11570
|
-
var WAIRON_VERSION = "5.1.1-dev.
|
|
11570
|
+
var WAIRON_VERSION = "5.1.1-dev.68";
|
|
11571
11571
|
var GITHUB_REPO = "SYW-Apps/Waffle-AIron";
|
|
11572
11572
|
var ARCHITECT_AGENT_ID = "agent-architect";
|
|
11573
11573
|
var ARCHITECT_TEMPLATE_ID = "architect";
|
|
@@ -17176,19 +17176,34 @@ var exportConformanceRule = {
|
|
|
17176
17176
|
}
|
|
17177
17177
|
}
|
|
17178
17178
|
const takenFrom = /* @__PURE__ */ new Map();
|
|
17179
|
+
const take = (consumer, writtenIn, specifier, names) => {
|
|
17180
|
+
const target = resolveImport(writtenIn, specifier, code.paths);
|
|
17181
|
+
if (!target) return;
|
|
17182
|
+
let byName = takenFrom.get(target);
|
|
17183
|
+
if (!byName) takenFrom.set(target, byName = /* @__PURE__ */ new Map());
|
|
17184
|
+
for (const name of names) {
|
|
17185
|
+
if (!name) continue;
|
|
17186
|
+
let takers = byName.get(name);
|
|
17187
|
+
if (!takers) byName.set(name, takers = /* @__PURE__ */ new Set());
|
|
17188
|
+
takers.add(consumer);
|
|
17189
|
+
}
|
|
17190
|
+
};
|
|
17179
17191
|
for (const consumer of realization.paths) {
|
|
17180
17192
|
if (!code.exactPaths.has(consumer)) continue;
|
|
17181
|
-
|
|
17193
|
+
const facts = code.factsAt(consumer);
|
|
17194
|
+
if (!facts) continue;
|
|
17195
|
+
for (const [local, binding] of Object.entries(facts.importBindings ?? {})) {
|
|
17182
17196
|
if (binding.namespace) continue;
|
|
17183
|
-
|
|
17184
|
-
|
|
17185
|
-
|
|
17186
|
-
|
|
17187
|
-
|
|
17188
|
-
|
|
17189
|
-
|
|
17190
|
-
if (!
|
|
17191
|
-
|
|
17197
|
+
take(consumer, consumer, binding.from, [local, binding.imported]);
|
|
17198
|
+
}
|
|
17199
|
+
for (const sites of Object.values(facts.functionCallSites ?? {})) {
|
|
17200
|
+
for (const site of sites) {
|
|
17201
|
+
if (!site.member || !site.via) continue;
|
|
17202
|
+
const writtenIn = site.from ? pathKey(site.from) : consumer;
|
|
17203
|
+
const scope = site.from ? code.factsAt(writtenIn) : facts;
|
|
17204
|
+
if (!scope) continue;
|
|
17205
|
+
const binding = importBindingOf(scope, site.via);
|
|
17206
|
+
if (binding?.namespace) take(consumer, writtenIn, binding.from, [site.name]);
|
|
17192
17207
|
}
|
|
17193
17208
|
}
|
|
17194
17209
|
}
|