@tangle-network/agent-runtime 0.74.0 → 0.75.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.
@@ -1,4 +1,4 @@
1
- import { c as LoopTraceEvent } from './types-YimN9PQP.js';
1
+ import { c as LoopTraceEvent } from './types-B-jWSfcu.js';
2
2
  import { AgentProfileMcpServer } from '@tangle-network/agent-interface';
3
3
  import { T as ToolSpec } from './router-client-C7kp_ECN.js';
4
4
  import '@tangle-network/agent-eval';
@@ -632,9 +632,10 @@ declare function runLifecycle(opts: RunLifecycleOptions): Promise<RunLifecycleRe
632
632
  * reflection over the trace produces the first draft.
633
633
  *
634
634
  * 2. REFINE — take the distilled draft and improve its wording/structure. The
635
- * production `refine` wraps agent-eval's skill optimizer (`runSkillOpt`).
636
- * Refinement is optional: with no `refine`, the distilled draft IS the
637
- * candidate.
635
+ * production `refine` drives agent-eval's `skillOptProposer` (the uniform
636
+ * skill-surface proposer factory from `@tangle-network/agent-eval/campaign`,
637
+ * the same source as `gepaProposer` for the prompt surface). Refinement is
638
+ * optional: with no `refine`, the distilled draft IS the candidate.
638
639
  *
639
640
  * Both steps are INJECTED seams, not hardcoded engines — per the §1.5 law, the
640
641
  * generator AUTHORS a profile piece; it does not embed a specific LLM loop. That
@@ -661,8 +662,8 @@ interface SkillDraft {
661
662
  type DistillSkills = (ctx: GenerateContext) => Promise<SkillDraft[]> | SkillDraft[];
662
663
  /**
663
664
  * REFINE — improve ONE distilled draft (wording, structure, examples). The
664
- * production implementation wraps `runSkillOpt`. Returns the refined draft; when
665
- * omitted from `skillGenerator`, the distilled draft is used as-is.
665
+ * production implementation drives `skillOptProposer`. Returns the refined draft;
666
+ * when omitted from `skillGenerator`, the distilled draft is used as-is.
666
667
  */
667
668
  type RefineSkill = (draft: SkillDraft) => Promise<SkillDraft> | SkillDraft;
668
669
  interface SkillGeneratorOptions {
@@ -676,10 +677,10 @@ interface SkillGeneratorOptions {
676
677
  * from history, then (optionally) refines them, and emits each as a `skill`
677
678
  * artifact carrying an inline `SKILL.md` resource ref.
678
679
  *
679
- * @example Production wiring (distill = LLM reflection, refine = skillOpt):
680
+ * @example Production wiring (distill = LLM reflection, refine = skillOptProposer):
680
681
  * skillGenerator({
681
682
  * distill: reflectiveDistill, // creates the draft from traces
682
- * refine: skillOptRefine, // optimizes the draft
683
+ * refine: skillOptRefine, // optimizes the draft via skillOptProposer
683
684
  * })
684
685
  */
685
686
  declare function skillGenerator(opts: SkillGeneratorOptions): CandidateGenerator<'skill'>;
package/dist/lifecycle.js CHANGED
@@ -279,9 +279,9 @@ function recordsOf(runs, arm, artifactId) {
279
279
  // src/lifecycle/prompt-generator.ts
280
280
  import { callLlmJson } from "@tangle-network/agent-eval";
281
281
  import {
282
+ gepaProposer,
282
283
  isProposedCandidate
283
284
  } from "@tangle-network/agent-eval/campaign";
284
- import { gepaProposer } from "@tangle-network/agent-eval/contract";
285
285
  function promptGenerator(opts) {
286
286
  if (!opts.refine && !opts.authorDiverseSeeds) {
287
287
  throw new TypeError(