@withgateway/sdk 0.2.1 → 0.2.2
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.js +309 -59
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +309 -59
- package/dist/cli.mjs.map +1 -1
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -3
- package/dist/index.mjs.map +1 -1
- package/dist/tracing/index.js +1 -1
- package/dist/tracing/index.js.map +1 -1
- package/dist/tracing/index.mjs +1 -1
- package/dist/tracing/index.mjs.map +1 -1
- package/dist/worlds/index.js +7 -2
- package/dist/worlds/index.js.map +1 -1
- package/dist/worlds/index.mjs +7 -2
- package/dist/worlds/index.mjs.map +1 -1
- package/package.json +1 -1
- package/runtime/gatewaysdk/environment/schema/api.py +61 -3
- package/runtime/gatewaysdk/environment/schema/batch.py +5 -1
- package/runtime/gatewaysdk/environment/schema/connector.py +11 -0
- package/runtime/gatewaysdk/environment/schema/data.py +76 -2
- package/runtime/gatewaysdk/environment/schema/dependencies.py +11 -1
- package/runtime/gatewaysdk/environment/schema/host.py +8 -17
- package/runtime/gatewaysdk/environment/schema/local.py +105 -19
- package/runtime/gatewaysdk/environment/schema/mapping.py +13 -1
- package/runtime/gatewaysdk/environment/schema/platform.py +32 -5
- package/runtime/gatewaysdk/environment/schema/skills/benchmarks-getting-started/SKILL.md +4 -1
- package/runtime/gatewaysdk/environment/schema/tools_world.py +5 -1
- package/runtime/gatewaysdk/environment/schema/validation.py +4 -3
- package/skills/benchmarks-getting-started/SKILL.md +4 -1
package/dist/worlds/index.mjs
CHANGED
|
@@ -2635,14 +2635,19 @@ async function importLocalWorldData(dir, rows, opts, creds) {
|
|
|
2635
2635
|
files: readWorldFiles(dir),
|
|
2636
2636
|
rows,
|
|
2637
2637
|
mode: opts.mode ?? "append",
|
|
2638
|
+
...opts.merge && opts.merge !== "upsert" ? { merge: opts.merge } : {},
|
|
2638
2639
|
...opts.redact && opts.redact !== "off" ? { redact: opts.redact } : {}
|
|
2639
2640
|
});
|
|
2640
2641
|
if (res.files?.length) writeWorldFiles(dir, res.files);
|
|
2641
|
-
|
|
2642
|
+
const dropped = res.changed ? dropBuildOutputs(dir) : [];
|
|
2642
2643
|
return {
|
|
2643
2644
|
kind: res.kind ?? "unknown",
|
|
2644
2645
|
entity_counts: res.entity_counts ?? {},
|
|
2645
|
-
changed: Boolean(res.changed)
|
|
2646
|
+
changed: Boolean(res.changed),
|
|
2647
|
+
...dropped.length ? {
|
|
2648
|
+
dropped_build_outputs: dropped,
|
|
2649
|
+
next: `gateway worlds schema compile ${dir} # rebuilds the snapshots from the imported data`
|
|
2650
|
+
} : {}
|
|
2646
2651
|
};
|
|
2647
2652
|
}
|
|
2648
2653
|
function dropBuildOutputs(dir) {
|