@whittlelabs/sifter 0.42.0 → 0.42.1
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/bin.js +14 -2
- package/bin.js.map +2 -2
- package/package.json +1 -1
package/bin.js
CHANGED
|
@@ -9636,6 +9636,7 @@ var require_canonicalise = __commonJS({
|
|
|
9636
9636
|
description: workflow.description ?? null,
|
|
9637
9637
|
ownerClass: opts.ownerClass,
|
|
9638
9638
|
ownerId: opts.ownerId,
|
|
9639
|
+
...opts.visibility !== void 0 ? { visibility: opts.visibility } : {},
|
|
9639
9640
|
retainPublishedVersions: workflow.retain?.publishedVersions ?? null,
|
|
9640
9641
|
...opts.publish !== void 0 ? { publish: opts.publish } : {},
|
|
9641
9642
|
nodes,
|
|
@@ -9802,7 +9803,15 @@ var require_seed_workflows = __commonJS({
|
|
|
9802
9803
|
for (const workflow of opts.workflows) {
|
|
9803
9804
|
let ownerClass;
|
|
9804
9805
|
let ownerId;
|
|
9805
|
-
|
|
9806
|
+
let visibility;
|
|
9807
|
+
if ("platform" in workflow.owner) {
|
|
9808
|
+
if (!opts.platformOrgId) {
|
|
9809
|
+
throw new errors_1.SeedWorkflowsError(workflow.name, "seedWorkflows: a platform workflow needs platformOrgId, the Whittle Labs org id");
|
|
9810
|
+
}
|
|
9811
|
+
ownerClass = "org";
|
|
9812
|
+
ownerId = opts.platformOrgId;
|
|
9813
|
+
visibility = "published";
|
|
9814
|
+
} else if ("service" in workflow.owner) {
|
|
9806
9815
|
ownerClass = "service";
|
|
9807
9816
|
ownerId = workflow.owner.service;
|
|
9808
9817
|
} else {
|
|
@@ -9814,6 +9823,8 @@ var require_seed_workflows = __commonJS({
|
|
|
9814
9823
|
ownerId = orgId;
|
|
9815
9824
|
}
|
|
9816
9825
|
const opts2 = { ownerClass, ownerId };
|
|
9826
|
+
if (visibility !== void 0)
|
|
9827
|
+
opts2.visibility = visibility;
|
|
9817
9828
|
if (opts.env !== void 0)
|
|
9818
9829
|
opts2.env = opts.env;
|
|
9819
9830
|
if (opts.publish !== void 0)
|
|
@@ -9822,6 +9833,7 @@ var require_seed_workflows = __commonJS({
|
|
|
9822
9833
|
logger.info(`seeding workflow ${workflow.name}`, {
|
|
9823
9834
|
ownerClass,
|
|
9824
9835
|
ownerId,
|
|
9836
|
+
...visibility !== void 0 ? { visibility } : {},
|
|
9825
9837
|
nodes: body2.nodes.length,
|
|
9826
9838
|
transitions: body2.transitions.length
|
|
9827
9839
|
});
|
|
@@ -75984,7 +75996,7 @@ var import_path = require("path");
|
|
|
75984
75996
|
var import_promises = require("fs/promises");
|
|
75985
75997
|
var import_yaml = __toESM(require_dist5());
|
|
75986
75998
|
var import_shuttle = __toESM(require_dist8());
|
|
75987
|
-
var buildVersion = true ? "0.42.
|
|
75999
|
+
var buildVersion = true ? "0.42.1" : pkg.version;
|
|
75988
76000
|
var AGENT_EXECUTORS = ["claude-code", "codex", "copilot"];
|
|
75989
76001
|
var sifterBrand = {
|
|
75990
76002
|
product: {
|