@xn-intenton-z2a/agentic-lib 7.4.33 → 7.4.34

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.
@@ -198,6 +198,12 @@ jobs:
198
198
  return;
199
199
  }
200
200
  let content = fs.readFileSync(path, 'utf8');
201
+ // Remove any duplicate schedule: blocks (keep only the first)
202
+ const dupScheduleRegex = /(\n schedule:\n - cron: "[^"]*"\n)(\s*schedule:\n\s*- cron: "[^"]*"\n)/;
203
+ if (dupScheduleRegex.test(content)) {
204
+ content = content.replace(dupScheduleRegex, '$1');
205
+ core.info(`${label}: removed duplicate schedule block`);
206
+ }
201
207
  const cronRegex = /- cron: "[^"]*"/;
202
208
  if (cronRegex.test(content)) {
203
209
  content = content.replace(cronRegex, `- cron: "${cron}"`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xn-intenton-z2a/agentic-lib",
3
- "version": "7.4.33",
3
+ "version": "7.4.34",
4
4
  "description": "Agentic-lib Agentic Coding Systems SDK powering automated GitHub workflows.",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -124,7 +124,7 @@ async function buildMetricAssessment(ctx, config) {
124
124
  /**
125
125
  * Build the director prompt (lean version — model explores via tools).
126
126
  */
127
- function buildPrompt(ctx, agentInstructions, metricAssessment) {
127
+ function buildPrompt(ctx, agentInstructions, metricAssessment, config) {
128
128
  return [
129
129
  "## Instructions",
130
130
  agentInstructions,
@@ -508,7 +508,7 @@ export async function direct(context) {
508
508
 
509
509
  // --- LLM decision via hybrid session ---
510
510
  const agentInstructions = instructions || "You are the director. Evaluate mission readiness.";
511
- const prompt = buildPrompt(ctx, agentInstructions, metricAssessment);
511
+ const prompt = buildPrompt(ctx, agentInstructions, metricAssessment, config);
512
512
 
513
513
  const systemPrompt =
514
514
  "You are the director of an autonomous coding repository. Your job is to evaluate whether the mission is complete, failed, or in progress. You produce a structured assessment — you do NOT dispatch workflows or create issues." +
@@ -17,7 +17,7 @@
17
17
  "author": "",
18
18
  "license": "MIT",
19
19
  "dependencies": {
20
- "@xn-intenton-z2a/agentic-lib": "^7.4.33"
20
+ "@xn-intenton-z2a/agentic-lib": "^7.4.34"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@playwright/test": "^1.58.0",