@sweny-ai/core 0.1.21 → 0.1.22

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
@@ -450,6 +450,13 @@ implementCmd.action(async (issueId, options) => {
450
450
  }
451
451
  };
452
452
  const observer = composeObservers(implProgressObserver, Boolean(options.stream) ? createStreamObserver() : undefined);
453
+ // Resolve rules/context from .sweny.yml (same as triage path)
454
+ const providerCtx = buildProviderCtx(config, mcpServers);
455
+ const { rules, context, rulesUrls, contextUrls } = await resolveRulesAndContext(config);
456
+ const implContextParts = [providerCtx];
457
+ if (config.additionalInstructions)
458
+ implContextParts.push(config.additionalInstructions);
459
+ const fullImplContext = [implContextParts.join("\n\n"), context].filter(Boolean).join("\n\n---\n\n");
453
460
  // Build workflow input for implement
454
461
  const workflowInput = {
455
462
  issueIdentifier: issueId,
@@ -459,6 +466,11 @@ implementCmd.action(async (issueId, options) => {
459
466
  prLabels: config.prLabels,
460
467
  reviewMode: config.reviewMode,
461
468
  additionalInstructions: config.additionalInstructions,
469
+ // Structured rules/context for executor
470
+ rules,
471
+ context: fullImplContext,
472
+ rulesUrls,
473
+ contextUrls,
462
474
  };
463
475
  try {
464
476
  const results = await execute(implementWorkflow, workflowInput, {
package/dist/index.d.ts CHANGED
@@ -38,3 +38,5 @@ export { buildWorkflow, refineWorkflow } from "./workflow-builder.js";
38
38
  export type { BuildWorkflowOptions } from "./workflow-builder.js";
39
39
  export { resolveTemplates, loadAdditionalContext, loadTemplate } from "./templates.js";
40
40
  export type { Templates } from "./templates.js";
41
+ export { loadConfigFile } from "./cli/config-file.js";
42
+ export type { FileConfig } from "./cli/config-file.js";
package/dist/index.js CHANGED
@@ -36,3 +36,5 @@ export { buildAutoMcpServers, buildProviderContext } from "./mcp.js";
36
36
  export { buildWorkflow, refineWorkflow } from "./workflow-builder.js";
37
37
  // Templates
38
38
  export { resolveTemplates, loadAdditionalContext, loadTemplate } from "./templates.js";
39
+ // Config file
40
+ export { loadConfigFile } from "./cli/config-file.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sweny-ai/core",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "sweny": "./dist/cli/main.js"