@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.
- package/dist/agent.d.ts +1 -1
- package/dist/analyst-loop.d.ts +1 -1
- package/dist/{coordination-DEVknvQo.d.ts → coordination-c_7Olmtq.d.ts} +2 -2
- package/dist/index.d.ts +11 -7
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +1 -1
- package/dist/lifecycle.d.ts +8 -7
- package/dist/lifecycle.js +1 -1
- package/dist/lifecycle.js.map +1 -1
- package/dist/{loop-runner-bin-BPthX22l.d.ts → loop-runner-bin-Dbtg787n.d.ts} +2 -2
- package/dist/loop-runner-bin.d.ts +4 -4
- package/dist/loops.d.ts +8 -8
- package/dist/mcp/index.d.ts +6 -6
- package/dist/{openai-tools-D-VCAEmw.d.ts → openai-tools-D5tcirFF.d.ts} +1 -1
- package/dist/profiles.d.ts +1 -1
- package/dist/{types-YimN9PQP.d.ts → types-B-jWSfcu.d.ts} +16 -1
- package/dist/{worktree-CtuEQ7bZ.d.ts → worktree-CDxqwxGo.d.ts} +1 -1
- package/dist/{worktree-fanout-Cdez8GR7.d.ts → worktree-fanout-CljF1L2v.d.ts} +2 -2
- package/package.json +3 -3
package/dist/intelligence.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as LoopTraceEvent } from './types-
|
|
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';
|
package/dist/lifecycle.d.ts
CHANGED
|
@@ -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`
|
|
636
|
-
*
|
|
637
|
-
*
|
|
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
|
|
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 =
|
|
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(
|