@sweny-ai/core 0.1.136 → 0.1.138

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/main.js CHANGED
@@ -1244,6 +1244,18 @@ workflowCmd
1244
1244
  }
1245
1245
  console.log();
1246
1246
  });
1247
+ // ── sweny tool-bridge (hidden, #414) ──────────────────────────────────
1248
+ // stdio MCP shim a harness starts to reach this run's skill tools over the
1249
+ // per-run unix socket. Not for humans; started by harness/tool-bridge/server.ts.
1250
+ program
1251
+ .command("tool-bridge", { hidden: true })
1252
+ .description("Internal: stdio MCP shim for sweny skill tools")
1253
+ .requiredOption("--socket <path>", "Per-run bridge socket")
1254
+ .option("--token <token>", "Per-run token (default: SWENY_TOOL_BRIDGE_TOKEN)")
1255
+ .action(async (options) => {
1256
+ const { runToolBridgeShim } = await import("../harness/tool-bridge/shim.js");
1257
+ await runToolBridgeShim({ socket: options.socket, token: options.token, version });
1258
+ });
1247
1259
  // ── sweny upgrade / update ────────────────────────────────────────────
1248
1260
  // Self-update the globally-installed @sweny-ai/core. Mirrors the UX of
1249
1261
  // `bun upgrade`, `deno upgrade`, `rustup update`, etc.
package/dist/cli/new.js CHANGED
@@ -804,6 +804,9 @@ export async function runNew(options) {
804
804
  }
805
805
  if (template) {
806
806
  steps.push(`${stepNum++}. Run your workflow:`, ` ${cli} workflow run .sweny/workflows/${template.id}.yml`);
807
+ if (template.pack) {
808
+ steps.push("", `${stepNum++}. Run it automatically (GitHub Actions trigger and permissions):`, ` https://docs.sweny.ai/workflows/packs/#${template.id}`);
809
+ }
807
810
  }
808
811
  else {
809
812
  steps.push(`${stepNum++}. Create your first workflow:`, ` ${cli} new`);
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Recurring workflow packs (#338): three opinionated starters that are meant
3
+ * to run on a schedule or on every PR, so the value shows up again next week.
4
+ *
5
+ * weekly-digest what changed this week, delivered to an issue or Slack
6
+ * dependency-drift lockfile + advisories, one deduped issue
7
+ * pr-risk-review read-only scope and risk review on every pull request
8
+ *
9
+ * Shared contract (enforced by src/__tests__/recurring-packs.test.ts):
10
+ * - validates with no credentials
11
+ * - every node declares an `output` schema and at least one `eval` gate
12
+ * - value and function gates first; a judge only where a rule cannot decide
13
+ * - every node is read-only except the delivery node, and each node's write
14
+ * tools are named in `pack.writes`; the delivery node also restricts its
15
+ * tool list with `tools.allow`
16
+ * - harness-agnostic: instructions name SWEny skill tools and plain
17
+ * read-only shell commands, never a specific agent's built-in tools
18
+ */
19
+ import type { WorkflowTemplate } from "./templates.js";
20
+ export declare const PACK_TEMPLATES: WorkflowTemplate[];