@tangle-network/sandbox-cli 0.23.339 → 0.23.341

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.
Files changed (30) hide show
  1. package/README.md +8 -0
  2. package/dist/{account-BNq-JAtr.mjs → account-CC7wRKa1.mjs} +1 -1
  3. package/dist/{clone-Ctt5zcKl.mjs → clone-Cpmvw-S0.mjs} +1 -1
  4. package/dist/{device-Drcxh3ox.mjs → device-CO9C7dED.mjs} +1 -1
  5. package/dist/graph-D9DYkXy7.mjs +50 -0
  6. package/dist/graph-campaign-child.mjs +1 -1
  7. package/dist/graph-dataset-zolc66IU.mjs +1 -0
  8. package/dist/{graph-knowledge-cloud-C217yG0s.mjs → graph-knowledge-cloud-BAwKQrCS.mjs} +1 -1
  9. package/dist/{graph-native-DdZwRWuP.mjs → graph-native-DvuFx-7g.mjs} +1 -1
  10. package/dist/graph-optimizer-handoff-RaJDEEjp.mjs +1 -0
  11. package/dist/graph-profile-learning-DqpgVPJe.mjs +1 -0
  12. package/dist/{graph-run-input-BUDJW0h4.mjs → graph-run-input-CdM_oVAE.mjs} +1 -1
  13. package/dist/graph-workflow-dataset-h91n8Gdy.mjs +1 -0
  14. package/dist/index.mjs +2 -2
  15. package/dist/{run-CmtNN1yp.mjs → run-D7CkQK0a.mjs} +1 -1
  16. package/dist/{submission-BGBWLdnE.mjs → submission-CwsoXcAK.mjs} +1 -1
  17. package/dist/{submit-D31nP5PW.mjs → submit-DWUYkfp2.mjs} +1 -1
  18. package/dist/{transactions-BoyuFZSe.mjs → transactions-kSAq23MO.mjs} +1 -1
  19. package/dist/{workspace-Ikei3Odt.mjs → workspace-eVb-wJta.mjs} +1 -1
  20. package/package.json +6 -6
  21. package/dist/graph-9_dDfGZK.mjs +0 -50
  22. package/dist/graph-profile-learning-BXNlJFAg.mjs +0 -1
  23. package/dist/graph-workflow-dataset-vaAzPsOW.mjs +0 -1
  24. /package/dist/{api-CXfJ5r0E.mjs → api-DCi5D06j.mjs} +0 -0
  25. /package/dist/{deployment-DRFHWxa_.mjs → deployment-Dyy6qSRE.mjs} +0 -0
  26. /package/dist/{dist-BGK1fD2n.mjs → dist-ClFZxicg.mjs} +0 -0
  27. /package/dist/{graph-native-producer-B8xZLpU8.mjs → graph-native-producer-B9Zsow0f.mjs} +0 -0
  28. /package/dist/{graph-view-CKGzRks5.mjs → graph-view-BvhP6Ju0.mjs} +0 -0
  29. /package/dist/{solve-checker-CscJCZ9E.mjs → solve-checker-B0Nd40np.mjs} +0 -0
  30. /package/dist/{solve-signer-DHk_-W9I.mjs → solve-signer-HCLlW_qr.mjs} +0 -0
package/README.md CHANGED
@@ -398,6 +398,14 @@ bundles before final execution. The
398
398
  [Factory delivery driver](https://github.com/tangle-network/factory/tree/main/benchmarks/tangle-episodes/native)
399
399
  shows how to bind a Harbor evaluator to this command.
400
400
 
401
+ After `tangle graph improve` completes a GEPA, Omni, or SkillOpt campaign,
402
+ run `tangle --json graph candidate proposals <campaign>` to hand its proposals
403
+ to that driver. The command opens the closed optimizer histories and returns
404
+ the exact baseline surface, retained proposal references, development case IDs,
405
+ and optimization accounting. The driver can use those entries with its existing
406
+ projection and staging functions. This command makes zero model calls and
407
+ leaves final assessment inputs sealed.
408
+
401
409
  Candidate admission uses Runtime's loader to bind each admitted task's parameters before checking its served model. Parameterized models, tools and budgets follow the same loader as execution. Candidates need explicit canonical seats and the baseline's measured model. The offline executor replaces Factory's exact repository-scoped GitHub proxy declaration with the case's local Git remote and supplies the replay placeholder to checks declaring `GITHUB_TOKEN`. It refuses other proxy and check secrets. The retained result records both the authored and executed source digests.
402
410
 
403
411
  `--probe` limits the admitted train cases before task assets are opened. The suite owns repetitions and total campaign bounds. The native author and its verifier use the existing single-graph mutation policy. With `--unseal <reason>`, confirmation freezes the selected CodeSurface before loading the test cohort and compares the baseline and candidate under the same parent budget. Eval retains the paired evidence and the candidate stays held for review. The probe limit also applies to the test cohort when confirmation is requested.
@@ -1 +1 @@
1
- import{a as e,o as t}from"./output-BRdLZpee.mjs";import{n,t as r}from"./solve-signer-DHk_-W9I.mjs";function i(i){let a=i.create?r():n();if(!a)throw Error("No Solve device signer found. Run `tangle solve account --create`");i.json?e({address:a.account.address,source:a.source}):t({Address:a.account.address,Source:a.source})}export{i as showSolveAccount};
1
+ import{a as e,o as t}from"./output-BRdLZpee.mjs";import{n,t as r}from"./solve-signer-HCLlW_qr.mjs";function i(i){let a=i.create?r():n();if(!a)throw Error("No Solve device signer found. Run `tangle solve account --create`");i.json?e({address:a.account.address,source:a.source}):t({Address:a.account.address,Source:a.source})}export{i as showSolveAccount};
@@ -1 +1 @@
1
- import{a as e,f as t,r as n,u as r}from"./output-BRdLZpee.mjs";import{r as i}from"./errors-CzkPwUni.mjs";import{f as a,g as o,i as s,p as c,r as l,t as u}from"./workspace-Ikei3Odt.mjs";import{a as d}from"./api-CXfJ5r0E.mjs";import*as f from"node:path";import{execFile as p}from"node:child_process";import{promisify as m}from"node:util";const h=m(p);function g(){return`Task source is '${u}'. Add your fork as 'origin', commit your candidate, push it, and open a pull request before submitting.`}async function _(p,m,_){try{let i=o(await d({path:`/v1/competitions/${encodeURIComponent(p)}`,apiUrl:_.apiUrl,profile:_.profile}),`competition response`),v=c(i.competition??i),y=f.resolve(m??v.slug),b=r(`Cloning ${v.slug}…`);_.json||b.start();try{await h(`git`,[`clone`,`--no-tags`,`--origin`,u,v.repository,y],{encoding:`utf8`,maxBuffer:1e6}),await l(y,[`checkout`,`--detach`,v.taskRevision]);let e=await l(y,[`rev-parse`,`HEAD`]);if(e.toLowerCase()!==v.taskRevision.toLowerCase())throw Error(`Pinned checkout resolved to ${e}, expected ${v.taskRevision}`);await a(f.join(y,`.tangle-solve.json`),v),await s(y)}finally{b.stop()}_.json?e({competition:v,directory:y}):(t(`Cloned ${v.slug} at ${v.taskRevision.slice(0,12)}`),v.provenance&&n(g()),n(`Run the pinned checker with: cd ${y} && tangle solve run`))}catch(e){i(e)}}export{_ as cloneCompetition};
1
+ import{a as e,f as t,r as n,u as r}from"./output-BRdLZpee.mjs";import{r as i}from"./errors-CzkPwUni.mjs";import{f as a,g as o,i as s,p as c,r as l,t as u}from"./workspace-eVb-wJta.mjs";import{a as d}from"./api-DCi5D06j.mjs";import*as f from"node:path";import{execFile as p}from"node:child_process";import{promisify as m}from"node:util";const h=m(p);function g(){return`Task source is '${u}'. Add your fork as 'origin', commit your candidate, push it, and open a pull request before submitting.`}async function _(p,m,_){try{let i=o(await d({path:`/v1/competitions/${encodeURIComponent(p)}`,apiUrl:_.apiUrl,profile:_.profile}),`competition response`),v=c(i.competition??i),y=f.resolve(m??v.slug),b=r(`Cloning ${v.slug}…`);_.json||b.start();try{await h(`git`,[`clone`,`--no-tags`,`--origin`,u,v.repository,y],{encoding:`utf8`,maxBuffer:1e6}),await l(y,[`checkout`,`--detach`,v.taskRevision]);let e=await l(y,[`rev-parse`,`HEAD`]);if(e.toLowerCase()!==v.taskRevision.toLowerCase())throw Error(`Pinned checkout resolved to ${e}, expected ${v.taskRevision}`);await a(f.join(y,`.tangle-solve.json`),v),await s(y)}finally{b.stop()}_.json?e({competition:v,directory:y}):(t(`Cloned ${v.slug} at ${v.taskRevision.slice(0,12)}`),v.provenance&&n(g()),n(`Run the pinned checker with: cd ${y} && tangle solve run`))}catch(e){i(e)}}export{_ as cloneCompetition};
@@ -1 +1 @@
1
- import{a as e,f as t,i as n,p as r,r as i}from"./output-BRdLZpee.mjs";import{r as a}from"./errors-CzkPwUni.mjs";import{t as o}from"./prompts-C34KLXxj.mjs";import{n as s,r as c}from"./solve-signer-DHk_-W9I.mjs";import{n as l,r as u,t as d}from"./api-CXfJ5r0E.mjs";import{t as f}from"./deployment-DRFHWxa_.mjs";import{n as p,o as m,v as h,x as g}from"./transactions-BoyuFZSe.mjs";import{createPublicClient as _,getAddress as v,http as y,isAddress as b}from"viem";import{tempoModerato as x}from"viem/chains";const S={...f,chainName:`Tempo Moderato`,nativeSymbol:`TNT`},C={async read(e){let t=_({chain:x,transport:y(S.rpcUrl,{timeout:15e3})}),n=e=>e.catch(()=>null),r=await Promise.all(e.map(async e=>{let[r,i]=await Promise.all([n(t.readContract({address:S.tangleAddress,abi:g,functionName:`isPermittedCaller`,args:[S.serviceId,e]})),n(t.readContract({address:S.managerAddress,abi:h,functionName:`isDeviceRevoked`,args:[e]}))]);return[e.toLowerCase(),{permitted:r,revoked:i}]}));return new Map(r)},async revokeSelf(e){return p(await m(S,e),S)}},w={permitted:null,revoked:null};function T(e){return e.revoked?`revoked`:e.permitted===null?`unknown`:e.permitted?`permitted`:`not permitted`}async function E(t,r=C){try{let{devices:i}=await l({apiUrl:t.apiUrl,profile:t.profile}),a=s()?.account.address.toLowerCase(),o=i.map(e=>({...e,local:e.address===a,status:e.revokedAt?`revoked`:`active`}));a&&!o.some(e=>e.local)&&o.push({address:a,local:!0,status:`unbound`,boundAt:null,lastUsedAt:null,revokedAt:null,revocationMethod:null,revocationReason:null});let c=await r.read(o.map(e=>v(e.address))),u=o.map(e=>({...e,onChain:c.get(e.address)??w}));if(t.json){e({serviceId:S.serviceId.toString(),devices:u});return}n([`Address`,`Status`,`Local`,`Service ${S.serviceId}`,`Last used`,`Revoked`],u.map(e=>[e.address,e.status,e.local?`yes`:``,T(e.onChain),e.lastUsedAt??``,e.revokedAt?`${e.revokedAt} (${e.revocationMethod})`:``]))}catch(e){a(e,t.json)}}async function D(n,l,f=C){try{if(!b(n))throw Error(`${n} is not an EVM address`);let a=v(n),p=s(),m=p?.account.address===a;if(!l.yes){if(!process.stdin.isTTY)throw Error(`Revoking a device is permanent. Re-run with --yes to confirm`);if(!await o(`Permanently revoke Solve device ${a}${m?` (this machine's device)`:``}? [y/N] `,`--yes`)){i(`Revocation cancelled`);return}}let h;if(p&&m){let e=await d({deviceAddress:a,purpose:`revoke`,apiUrl:l.apiUrl,profile:l.profile});h={challengeId:e.challengeId,signature:await p.account.signMessage({message:e.message})}}let g=await u({deviceAddress:a,reason:l.reason,...h,apiUrl:l.apiUrl,profile:l.profile}),_=a.toLowerCase(),y=(await f.read([a])).get(_)??w,x;if(p&&m&&!y.revoked){try{x=await f.revokeSelf(p.account)}catch(e){let t=e instanceof Error?e.message:String(e);throw Error(`The Solve API revoked ${a}, but the on-chain revocation failed and the local key was kept: ${t}. Run the command again to retry`)}y=(await f.read([a])).get(_)??w}let C=p&&m&&y.revoked?c(p):void 0;if(l.json){e({...g,serviceId:S.serviceId.toString(),onChain:y,...x?{revocationTransaction:x}:{},localKeyRetired:!!C});return}t(g.alreadyRevoked?`${a} was already revoked in the Solve API`:`Revoked ${a}; the Solve API refuses its signatures`),x&&t(`Revoked on Tempo in ${x}; service ${S.serviceId} refuses its jobs`),C&&i("The local device key was moved aside because its address may still hold stake or rewards. Run `tangle solve account --create` for a new device"),!m&&y.permitted&&r(`The device can still submit jobs to service ${S.serviceId}. Only its key, or the Solve blueprint owner, can revoke it on chain`)}catch(e){a(e,l.json)}}export{E as listSolveDevices,D as revokeSolveDevice};
1
+ import{a as e,f as t,i as n,p as r,r as i}from"./output-BRdLZpee.mjs";import{r as a}from"./errors-CzkPwUni.mjs";import{t as o}from"./prompts-C34KLXxj.mjs";import{n as s,r as c}from"./solve-signer-HCLlW_qr.mjs";import{n as l,r as u,t as d}from"./api-DCi5D06j.mjs";import{t as f}from"./deployment-Dyy6qSRE.mjs";import{n as p,o as m,v as h,x as g}from"./transactions-kSAq23MO.mjs";import{createPublicClient as _,getAddress as v,http as y,isAddress as b}from"viem";import{tempoModerato as x}from"viem/chains";const S={...f,chainName:`Tempo Moderato`,nativeSymbol:`TNT`},C={async read(e){let t=_({chain:x,transport:y(S.rpcUrl,{timeout:15e3})}),n=e=>e.catch(()=>null),r=await Promise.all(e.map(async e=>{let[r,i]=await Promise.all([n(t.readContract({address:S.tangleAddress,abi:g,functionName:`isPermittedCaller`,args:[S.serviceId,e]})),n(t.readContract({address:S.managerAddress,abi:h,functionName:`isDeviceRevoked`,args:[e]}))]);return[e.toLowerCase(),{permitted:r,revoked:i}]}));return new Map(r)},async revokeSelf(e){return p(await m(S,e),S)}},w={permitted:null,revoked:null};function T(e){return e.revoked?`revoked`:e.permitted===null?`unknown`:e.permitted?`permitted`:`not permitted`}async function E(t,r=C){try{let{devices:i}=await l({apiUrl:t.apiUrl,profile:t.profile}),a=s()?.account.address.toLowerCase(),o=i.map(e=>({...e,local:e.address===a,status:e.revokedAt?`revoked`:`active`}));a&&!o.some(e=>e.local)&&o.push({address:a,local:!0,status:`unbound`,boundAt:null,lastUsedAt:null,revokedAt:null,revocationMethod:null,revocationReason:null});let c=await r.read(o.map(e=>v(e.address))),u=o.map(e=>({...e,onChain:c.get(e.address)??w}));if(t.json){e({serviceId:S.serviceId.toString(),devices:u});return}n([`Address`,`Status`,`Local`,`Service ${S.serviceId}`,`Last used`,`Revoked`],u.map(e=>[e.address,e.status,e.local?`yes`:``,T(e.onChain),e.lastUsedAt??``,e.revokedAt?`${e.revokedAt} (${e.revocationMethod})`:``]))}catch(e){a(e,t.json)}}async function D(n,l,f=C){try{if(!b(n))throw Error(`${n} is not an EVM address`);let a=v(n),p=s(),m=p?.account.address===a;if(!l.yes){if(!process.stdin.isTTY)throw Error(`Revoking a device is permanent. Re-run with --yes to confirm`);if(!await o(`Permanently revoke Solve device ${a}${m?` (this machine's device)`:``}? [y/N] `,`--yes`)){i(`Revocation cancelled`);return}}let h;if(p&&m){let e=await d({deviceAddress:a,purpose:`revoke`,apiUrl:l.apiUrl,profile:l.profile});h={challengeId:e.challengeId,signature:await p.account.signMessage({message:e.message})}}let g=await u({deviceAddress:a,reason:l.reason,...h,apiUrl:l.apiUrl,profile:l.profile}),_=a.toLowerCase(),y=(await f.read([a])).get(_)??w,x;if(p&&m&&!y.revoked){try{x=await f.revokeSelf(p.account)}catch(e){let t=e instanceof Error?e.message:String(e);throw Error(`The Solve API revoked ${a}, but the on-chain revocation failed and the local key was kept: ${t}. Run the command again to retry`)}y=(await f.read([a])).get(_)??w}let C=p&&m&&y.revoked?c(p):void 0;if(l.json){e({...g,serviceId:S.serviceId.toString(),onChain:y,...x?{revocationTransaction:x}:{},localKeyRetired:!!C});return}t(g.alreadyRevoked?`${a} was already revoked in the Solve API`:`Revoked ${a}; the Solve API refuses its signatures`),x&&t(`Revoked on Tempo in ${x}; service ${S.serviceId} refuses its jobs`),C&&i("The local device key was moved aside because its address may still hold stake or rewards. Run `tangle solve account --create` for a new device"),!m&&y.permitted&&r(`The device can still submit jobs to service ${S.serviceId}. Only its key, or the Solve blueprint owner, can revoke it on chain`)}catch(e){a(e,l.json)}}export{E as listSolveDevices,D as revokeSolveDevice};