@tangle-network/sandbox-cli 0.23.303 → 0.23.304
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/README.md +6 -0
- package/dist/{account-tlBfbLTV.mjs → account-BNq-JAtr.mjs} +1 -1
- package/dist/{clone-Bu55AzT9.mjs → clone-BZr5tVep.mjs} +1 -1
- package/dist/{device-K2UPMLI2.mjs → device-CzsmcnlA.mjs} +1 -1
- package/dist/{graph-Dlr9ZFEZ.mjs → graph-BL-kHmUJ.mjs} +16 -16
- package/dist/graph-campaign-child.mjs +1 -1
- package/dist/{graph-knowledge-cloud-Q-_ZdXEr.mjs → graph-knowledge-cloud-DsfIzh9z.mjs} +1 -1
- package/dist/graph-learning-l4SxwBc9.mjs +2 -0
- package/dist/{graph-profile-learning-CykNpXGy.mjs → graph-profile-learning-D7p4XCLh.mjs} +1 -1
- package/dist/{graph-workflow-dataset-UTTc4sbN.mjs → graph-workflow-dataset-CiYYzMTf.mjs} +1 -1
- package/dist/index.mjs +2 -2
- package/dist/run-MszBSFIR.mjs +1 -0
- package/dist/solve-checker-CscJCZ9E.mjs +1 -0
- package/dist/submission-BGBWLdnE.mjs +1 -0
- package/dist/submit-DKWW1Rxv.mjs +1 -0
- package/dist/{transactions-XVvR5emz.mjs → transactions-BoyuFZSe.mjs} +1 -1
- package/dist/{workspace-CcKbTUkt.mjs → workspace-Ikei3Odt.mjs} +1 -1
- package/package.json +5 -5
- package/dist/graph-learning-BVktiNO8.mjs +0 -2
- package/dist/run-8Jm0eK4N.mjs +0 -1
- package/dist/solve-checker-y9X3P0Kd.mjs +0 -1
- package/dist/submit-B_pQeyiV.mjs +0 -1
- /package/dist/{api-JalPvZTa.mjs → api-BfuOcfdS.mjs} +0 -0
- /package/dist/{deployment-DpnJF4w8.mjs → deployment-DRFHWxa_.mjs} +0 -0
- /package/dist/{dist-CRDACRRr.mjs → dist-BGK1fD2n.mjs} +0 -0
- /package/dist/{graph-view-XzT3ULwI.mjs → graph-view-BOXGsEQC.mjs} +0 -0
- /package/dist/{solve-signer-zVHCNCI-.mjs → solve-signer-DHk_-W9I.mjs} +0 -0
package/README.md
CHANGED
|
@@ -221,6 +221,12 @@ the candidate's workspace. Include `calibration` entries with a `request` and
|
|
|
221
221
|
independently known `quality` of zero or one; both classes must pass before
|
|
222
222
|
inference begins. A failed evaluator is an unmeasured cell, never a quality zero.
|
|
223
223
|
Evaluator commands follow the operator's subscription-only spending policy.
|
|
224
|
+
Set `evaluator.isolation` to `"offline"` for a grader that runs entirely on
|
|
225
|
+
local inputs. On Linux with Bubblewrap, the CLI runs calibration and grading
|
|
226
|
+
with networking disabled, an empty inherited environment, and only the
|
|
227
|
+
declared suite files mounted read-only. Keep grader files inside the suite
|
|
228
|
+
directory and pass their paths relative to it or as literal absolute
|
|
229
|
+
arguments. The campaign binds the sandbox launcher and executable by digest.
|
|
224
230
|
|
|
225
231
|
Complete static inline profiles opt into `"mutation": "agent-profile"` in the
|
|
226
232
|
same suite. This path runs Runtime's profile search over the whole node profile
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,o as t}from"./output-BRdLZpee.mjs";import{n,t as r}from"./solve-signer-
|
|
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 +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-DrYiP5_c.mjs";import{f as a,g as o,i as s,p as c,r as l,t as u}from"./workspace-
|
|
1
|
+
import{a as e,f as t,r as n,u as r}from"./output-BRdLZpee.mjs";import{r as i}from"./errors-DrYiP5_c.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-BfuOcfdS.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-DrYiP5_c.mjs";import{t as o}from"./prompts-C34KLXxj.mjs";import{n as s,r as c}from"./solve-signer-
|
|
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-DrYiP5_c.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-BfuOcfdS.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};
|