oneie 5.8.0 → 5.9.0
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 +114 -6
- package/dist/package.json +37 -11
- package/dist/src/age-1k8hs4ec.js +1 -0
- package/dist/src/client-n6fpnd9f.js +1 -0
- package/dist/src/evm-tx-cqhm9rtt.js +1 -0
- package/dist/src/hl-run-0pv1e0p2.js +1 -0
- package/dist/src/index-f5vhzspa.js +12 -0
- package/dist/src/index-h3nrt8bx.js +4 -0
- package/dist/src/index-st6k9vhc.js +2062 -0
- package/dist/src/index.js +1122 -134
- package/dist/src/message-key-yczrxszr.js +1 -0
- package/dist/src/message-lock-thr851d5.js +5 -0
- package/dist/src/sweep-order-jrq2hkye.js +1 -0
- package/dist/src/sweep-runner-jftw9em7.js +1 -0
- package/package.json +37 -11
- package/dist/src/agent.d.ts +0 -75
- package/dist/src/agent.js +0 -1334
- package/dist/src/agentverse.d.ts +0 -26
- package/dist/src/agentverse.js +0 -171
- package/dist/src/args.d.ts +0 -9
- package/dist/src/args.js +0 -61
- package/dist/src/auth.d.ts +0 -6
- package/dist/src/auth.js +0 -121
- package/dist/src/balances.d.ts +0 -89
- package/dist/src/balances.js +0 -202
- package/dist/src/banner.d.ts +0 -1
- package/dist/src/banner.js +0 -17
- package/dist/src/broadcast.d.ts +0 -8
- package/dist/src/broadcast.js +0 -175
- package/dist/src/catalog.d.ts +0 -12
- package/dist/src/catalog.js +0 -76
- package/dist/src/ceiling.d.ts +0 -36
- package/dist/src/ceiling.js +0 -189
- package/dist/src/chat.d.ts +0 -2
- package/dist/src/chat.js +0 -92
- package/dist/src/check.d.ts +0 -11
- package/dist/src/check.js +0 -53
- package/dist/src/client.d.ts +0 -5
- package/dist/src/client.js +0 -157
- package/dist/src/compiler.d.ts +0 -36
- package/dist/src/compiler.js +0 -366
- package/dist/src/config.d.ts +0 -24
- package/dist/src/config.js +0 -70
- package/dist/src/connect.d.ts +0 -2
- package/dist/src/connect.js +0 -64
- package/dist/src/coordinate.d.ts +0 -3
- package/dist/src/coordinate.js +0 -58
- package/dist/src/create.d.ts +0 -2
- package/dist/src/create.js +0 -113
- package/dist/src/credits.d.ts +0 -29
- package/dist/src/credits.js +0 -88
- package/dist/src/deploy.d.ts +0 -2
- package/dist/src/deploy.js +0 -19
- package/dist/src/dev.d.ts +0 -2
- package/dist/src/dev.js +0 -75
- package/dist/src/device-flow.d.ts +0 -57
- package/dist/src/device-flow.js +0 -173
- package/dist/src/doctor.d.ts +0 -26
- package/dist/src/doctor.js +0 -146
- package/dist/src/draw.d.ts +0 -18
- package/dist/src/draw.js +0 -156
- package/dist/src/endpoint.d.ts +0 -2
- package/dist/src/endpoint.js +0 -250
- package/dist/src/env.d.ts +0 -3
- package/dist/src/env.js +0 -37
- package/dist/src/eval.d.ts +0 -2
- package/dist/src/eval.js +0 -43
- package/dist/src/fn.d.ts +0 -2
- package/dist/src/fn.js +0 -70
- package/dist/src/group.d.ts +0 -2
- package/dist/src/group.js +0 -117
- package/dist/src/hl-run.d.ts +0 -119
- package/dist/src/hl-run.js +0 -480
- package/dist/src/hl.d.ts +0 -17
- package/dist/src/hl.js +0 -148
- package/dist/src/index.d.ts +0 -2
- package/dist/src/init.d.ts +0 -76
- package/dist/src/init.js +0 -278
- package/dist/src/join.d.ts +0 -11
- package/dist/src/join.js +0 -297
- package/dist/src/key-publish.d.ts +0 -40
- package/dist/src/key-publish.js +0 -232
- package/dist/src/key-seal.d.ts +0 -21
- package/dist/src/key-seal.js +0 -142
- package/dist/src/key-sweep.d.ts +0 -93
- package/dist/src/key-sweep.js +0 -270
- package/dist/src/key.d.ts +0 -26
- package/dist/src/key.js +0 -338
- package/dist/src/lib/age-plugin.d.ts +0 -51
- package/dist/src/lib/age-plugin.js +0 -130
- package/dist/src/lib/agent-env.d.ts +0 -12
- package/dist/src/lib/agent-env.js +0 -48
- package/dist/src/lib/api-path.d.ts +0 -2
- package/dist/src/lib/api-path.js +0 -40
- package/dist/src/lib/asker.d.ts +0 -34
- package/dist/src/lib/asker.js +0 -126
- package/dist/src/lib/check-words.d.ts +0 -57
- package/dist/src/lib/check-words.js +0 -144
- package/dist/src/lib/client.d.ts +0 -20
- package/dist/src/lib/client.js +0 -71
- package/dist/src/lib/env-sealed.d.ts +0 -53
- package/dist/src/lib/env-sealed.js +0 -184
- package/dist/src/lib/flow-tag.d.ts +0 -86
- package/dist/src/lib/flow-tag.js +0 -230
- package/dist/src/lib/hl-core/actions.d.ts +0 -99
- package/dist/src/lib/hl-core/actions.js +0 -69
- package/dist/src/lib/hl-core/eip712.d.ts +0 -33
- package/dist/src/lib/hl-core/eip712.js +0 -107
- package/dist/src/lib/hl-core/errors.d.ts +0 -10
- package/dist/src/lib/hl-core/errors.js +0 -15
- package/dist/src/lib/hl-core/exchange.d.ts +0 -24
- package/dist/src/lib/hl-core/exchange.js +0 -47
- package/dist/src/lib/hl-core/index.d.ts +0 -13
- package/dist/src/lib/hl-core/index.js +0 -14
- package/dist/src/lib/hl-core/meta.d.ts +0 -57
- package/dist/src/lib/hl-core/meta.js +0 -110
- package/dist/src/lib/hl-core/msgpack.d.ts +0 -18
- package/dist/src/lib/hl-core/msgpack.js +0 -136
- package/dist/src/lib/hl-core/net.d.ts +0 -2
- package/dist/src/lib/hl-core/net.js +0 -7
- package/dist/src/lib/hl-core/signing.d.ts +0 -103
- package/dist/src/lib/hl-core/signing.js +0 -295
- package/dist/src/lib/hl-core/wire.d.ts +0 -34
- package/dist/src/lib/hl-core/wire.js +0 -81
- package/dist/src/lib/invoked-as.d.ts +0 -2
- package/dist/src/lib/invoked-as.js +0 -24
- package/dist/src/lib/journey-words.d.ts +0 -84
- package/dist/src/lib/journey-words.js +0 -363
- package/dist/src/lib/journey.d.ts +0 -150
- package/dist/src/lib/journey.js +0 -264
- package/dist/src/lib/key-receipt.d.ts +0 -48
- package/dist/src/lib/key-receipt.js +0 -116
- package/dist/src/lib/key-source.d.ts +0 -9
- package/dist/src/lib/key-source.js +0 -33
- package/dist/src/lib/keyfile.d.ts +0 -136
- package/dist/src/lib/keyfile.js +0 -397
- package/dist/src/lib/launch-claude.d.ts +0 -5
- package/dist/src/lib/launch-claude.js +0 -45
- package/dist/src/lib/lock-lookup.d.ts +0 -40
- package/dist/src/lib/lock-lookup.js +0 -92
- package/dist/src/lib/message-seal.d.ts +0 -63
- package/dist/src/lib/message-seal.js +0 -150
- package/dist/src/lib/net-choice.d.ts +0 -28
- package/dist/src/lib/net-choice.js +0 -72
- package/dist/src/lib/network.d.ts +0 -22
- package/dist/src/lib/network.js +0 -50
- package/dist/src/lib/next-words.d.ts +0 -105
- package/dist/src/lib/next-words.js +0 -298
- package/dist/src/lib/paths.d.ts +0 -41
- package/dist/src/lib/paths.js +0 -91
- package/dist/src/lib/plan-draw.d.ts +0 -56
- package/dist/src/lib/plan-draw.js +0 -219
- package/dist/src/lib/plan-live.d.ts +0 -20
- package/dist/src/lib/plan-live.js +0 -192
- package/dist/src/lib/qr.d.ts +0 -21
- package/dist/src/lib/qr.js +0 -402
- package/dist/src/lib/roster.d.ts +0 -20
- package/dist/src/lib/roster.js +0 -79
- package/dist/src/lib/sale-card.d.ts +0 -117
- package/dist/src/lib/sale-card.js +0 -261
- package/dist/src/lib/shop-init.d.ts +0 -62
- package/dist/src/lib/shop-init.js +0 -63
- package/dist/src/lib/sui-grpc-send.d.ts +0 -90
- package/dist/src/lib/sui-grpc-send.js +0 -128
- package/dist/src/lib/swap-core.d.ts +0 -163
- package/dist/src/lib/swap-core.js +0 -405
- package/dist/src/lib/tasks-digest.d.ts +0 -66
- package/dist/src/lib/tasks-digest.js +0 -200
- package/dist/src/lib/tasks-graph.d.ts +0 -79
- package/dist/src/lib/tasks-graph.js +0 -463
- package/dist/src/lib/tasks-lens.d.ts +0 -31
- package/dist/src/lib/tasks-lens.js +0 -47
- package/dist/src/lib/tasks-next.d.ts +0 -25
- package/dist/src/lib/tasks-next.js +0 -103
- package/dist/src/lib/tasks-prove.d.ts +0 -15
- package/dist/src/lib/tasks-prove.js +0 -68
- package/dist/src/lib/tasks-route.d.ts +0 -29
- package/dist/src/lib/tasks-route.js +0 -151
- package/dist/src/lib/tasks-score.d.ts +0 -36
- package/dist/src/lib/tasks-score.js +0 -152
- package/dist/src/lib/tasks-workspace.d.ts +0 -18
- package/dist/src/lib/tasks-workspace.js +0 -73
- package/dist/src/lib/timed-fetch.d.ts +0 -33
- package/dist/src/lib/timed-fetch.js +0 -59
- package/dist/src/lib/vault-read.d.ts +0 -24
- package/dist/src/lib/vault-read.js +0 -77
- package/dist/src/lib/vaultfile.d.ts +0 -103
- package/dist/src/lib/vaultfile.js +0 -249
- package/dist/src/lib/wallet-money.d.ts +0 -222
- package/dist/src/lib/wallet-money.js +0 -578
- package/dist/src/lib/wallet-request.d.ts +0 -50
- package/dist/src/lib/wallet-request.js +0 -86
- package/dist/src/links.d.ts +0 -5
- package/dist/src/links.js +0 -45
- package/dist/src/media.d.ts +0 -29
- package/dist/src/media.js +0 -487
- package/dist/src/message-receipt.d.ts +0 -25
- package/dist/src/message-receipt.js +0 -71
- package/dist/src/message.d.ts +0 -13
- package/dist/src/message.js +0 -92
- package/dist/src/move.d.ts +0 -36
- package/dist/src/move.js +0 -152
- package/dist/src/network-cmd.d.ts +0 -17
- package/dist/src/network-cmd.js +0 -74
- package/dist/src/next.d.ts +0 -12
- package/dist/src/next.js +0 -67
- package/dist/src/onboard.d.ts +0 -16
- package/dist/src/onboard.js +0 -149
- package/dist/src/plugin.d.ts +0 -2
- package/dist/src/plugin.js +0 -193
- package/dist/src/push.d.ts +0 -2
- package/dist/src/push.js +0 -115
- package/dist/src/render.d.ts +0 -21
- package/dist/src/render.js +0 -32
- package/dist/src/secrets-device.d.ts +0 -32
- package/dist/src/secrets-device.js +0 -127
- package/dist/src/secrets-give.d.ts +0 -125
- package/dist/src/secrets-give.js +0 -236
- package/dist/src/secrets-list.d.ts +0 -27
- package/dist/src/secrets-list.js +0 -84
- package/dist/src/secrets-run.d.ts +0 -31
- package/dist/src/secrets-run.js +0 -182
- package/dist/src/secrets.d.ts +0 -33
- package/dist/src/secrets.js +0 -200
- package/dist/src/setup.d.ts +0 -6
- package/dist/src/setup.js +0 -127
- package/dist/src/ship.d.ts +0 -2
- package/dist/src/ship.js +0 -18
- package/dist/src/shop-buy.d.ts +0 -16
- package/dist/src/shop-buy.js +0 -101
- package/dist/src/shop.d.ts +0 -10
- package/dist/src/shop.js +0 -112
- package/dist/src/skill-parser.d.ts +0 -14
- package/dist/src/skill-parser.js +0 -113
- package/dist/src/skill.d.ts +0 -2
- package/dist/src/skill.js +0 -493
- package/dist/src/slug.d.ts +0 -2
- package/dist/src/slug.js +0 -6
- package/dist/src/social.d.ts +0 -2
- package/dist/src/social.js +0 -106
- package/dist/src/staff.d.ts +0 -2
- package/dist/src/staff.js +0 -104
- package/dist/src/start.d.ts +0 -27
- package/dist/src/start.js +0 -225
- package/dist/src/status.d.ts +0 -2
- package/dist/src/status.js +0 -52
- package/dist/src/substrate.d.ts +0 -2
- package/dist/src/substrate.js +0 -258
- package/dist/src/swap.d.ts +0 -93
- package/dist/src/swap.js +0 -622
- package/dist/src/tasks.d.ts +0 -2
- package/dist/src/tasks.js +0 -743
- package/dist/src/templates.d.ts +0 -1
- package/dist/src/templates.js +0 -213
- package/dist/src/thread.d.ts +0 -2
- package/dist/src/thread.js +0 -52
- package/dist/src/trade.d.ts +0 -2
- package/dist/src/trade.js +0 -91
- package/dist/src/trail.d.ts +0 -2
- package/dist/src/trail.js +0 -41
- package/dist/src/validate.d.ts +0 -13
- package/dist/src/validate.js +0 -35
- package/dist/src/wallet-money.d.ts +0 -158
- package/dist/src/wallet-money.js +0 -664
- package/dist/src/wallet.d.ts +0 -169
- package/dist/src/wallet.js +0 -973
- package/dist/src/workflow.d.ts +0 -2
- package/dist/src/workflow.js +0 -169
- package/dist/src/write.d.ts +0 -43
- package/dist/src/write.js +0 -180
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{K,ie,we}from"./index-f5vhzspa.js";import{m,L,D,U,v}from"./index-st6k9vhc.js";var o="message-x25519-v1";function n(e){if(e.length!==32)throw Error("the master is 32 bytes");let t=K(m,e,new Uint8Array(0),new TextEncoder().encode(o),32),r=L.getPublicKey(t);return{recipient:ie(r),publicKey:r,secret:t}}function d(e){let t=e.trim().toLowerCase().split(/\s+/).join(" ");if(!U(t,v))throw Error("that is not a valid 24-word BIP-39 recovery phrase");let r=D(t,v);if(r.length!==32)throw Error("that is not a 24-word BIP-39 recovery phrase");try{return n(r)}finally{r.fill(0)}}function h(e){return we(e.secret)}export{o as MESSAGE_KEY_INFO,n as deriveMessageKey,h as messageIdentityText,d as messageKeyFromPhrase};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{T,_,q}from"./index-st6k9vhc.js";var a="ONE message lock v1",c=/^age1[a-z0-9]{58}$/,l=/^[a-z0-9][a-z0-9-]{0,62}$/,u=/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/;function g(n,t){return`${a}
|
|
2
|
+
${n}
|
|
3
|
+
${t}`}function h(n,t,e){return`${a}
|
|
4
|
+
${n}/${t}
|
|
5
|
+
${e}`}function A(n){let[t,...e]=n.trim().split("/"),r=t.toLowerCase();if(!l.test(r))return null;if(e.length===0)return{slug:r};if(e.length>1||!u.test(e[0]))return null;return{slug:r,agent:e[0]}}var i=[3,0,0];function k(n){let t=[],e=n;do{let r=e&127;if(e>>>=7,e!==0)r|=128;t.push(r)}while(e!==0);return t}function f(n){let t=new TextEncoder().encode(n),e=k(t.length),r=new Uint8Array(i.length+e.length+t.length);return r.set(i,0),r.set(e,i.length),r.set(t,i.length+e.length),_(r,{dkLen:32})}var m=(n)=>{let t="";for(let e=0;e<n.length;e++)t+=String.fromCharCode(n[e]);return btoa(t)};function E(n,t){if(n.length!==32)throw Error("a Sui ed25519 secret is 32 bytes");let e=T.getPublicKey(n),r=T.sign(f(t),n),o=new Uint8Array(97);return o[0]=0,o.set(r,1),o.set(e,65),{address:q(e),signature:m(o)}}function p(n,t){let e;try{let s=atob(t.trim());e=Uint8Array.from(s,(d)=>d.charCodeAt(0))}catch{return null}if(e.length!==97||e[0]!==0)return null;let r=e.subarray(1,65),o=e.subarray(65,97);try{if(!T.verify(r,f(n),o))return null}catch{return null}return q(o)}function w(n,t,e){if(!l.test(n))return{ok:!1,reason:"malformed",detail:"that is not a name"};if(e!==void 0&&!u.test(e))return{ok:!1,reason:"malformed",detail:"that is not an agent name"};if(typeof t?.lock!=="string"||!c.test(t.lock))return{ok:!1,reason:"malformed",detail:"the published lock is not a lock"};if(typeof t.suiAddress!=="string"||typeof t.signature!=="string")return{ok:!1,reason:"malformed",detail:"the published lock has no signer or no signature"};let r=e===void 0?n:`${n}/${e}`,o=e===void 0?g(n,t.lock):h(n,e,t.lock);if(t.message!==o)return{ok:!1,reason:"not_for_slug",detail:`the signed text does not say this lock belongs to ${r}`};let s=p(o,t.signature);if(!s)return{ok:!1,reason:"invalid",detail:"the signature does not hold for that text"};if(s.toLowerCase()!==t.suiAddress.toLowerCase())return{ok:!1,reason:"invalid",detail:"the signature was made by a different key than the address named"};return{ok:!0,lock:t.lock,suiAddress:s.toLowerCase()}}export{h as agentLockMessage,g as lockMessage,A as parseLockName,E as signSuiPersonalMessage,w as verifyLockRecord};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{lt,ke,ae,ve}from"./index-h3nrt8bx.js";export{lt as ORDER_MAX_TTL_MS,ke as ORDER_MIN_REMAINING_MS,ve as handoverMessage,ae as sweepOrderMessage};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ke,ae,ve}from"./index-h3nrt8bx.js";import{M,qe}from"./index-st6k9vhc.js";function A(e,r){return M(r.chain,e,ae(r))}function x(e,r){return M(r.chain,e,ve(r))}function v(){let e=crypto.getRandomValues(new Uint8Array(24));return btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}var p=(e,r)=>typeof e==="string"&&typeof r==="string"&&e.toLowerCase()===r.toLowerCase();async function E(e,r){let s=r.now??(()=>Date.now()),t=await r.ask("wallet:sweep",{workspace:e.workspace,actor:e.actor,chain:e.chain,pending:!0});if(t.ok!==!0)return{ok:!1,error:String(t.error??"pending_read_failed"),results:[]};if(!p(t.agentAddress,e.agentKey.address))return{ok:!1,error:"agent_address_mismatch",results:[]};let c=String(t.to??"");if(!c)return{ok:!1,error:"owner_address_unproven",results:[]};if(e.ownerAddress!==void 0&&!p(e.ownerAddress,c))return{ok:!1,error:"owner_address_mismatch",results:[]};let i=Array.isArray(t.orders)?t.orders:[],a=[];for(let n of i){let o=String(n.nonce??""),u=(d)=>(a.push({nonce:o,ok:!1,error:d}),a),f=typeof n.amountUnits==="string"&&/^\d+$/.test(n.amountUnits)?BigInt(n.amountUnits):null,w=Number(n.expiresAt);if(f===null||f<=0n||!Number.isSafeInteger(w)){u("order_invalid");continue}if(w-s()<ke){u("order_too_close_to_expiry");continue}if(!p(n.destination,c)){u("order_destination_mismatch");continue}let m={workspace:e.workspace,actor:e.actor,chain:e.chain,destination:String(n.destination),amount:f,nonce:o,expiresAt:w};if(!qe(e.chain,c,n.signature,ae(m))){u("order_signature_invalid");continue}let y=r.transfer?.[e.chain];if(!y){u(`no_signer:${e.chain}`);continue}let l;try{l=await y({chain:e.chain,from:e.agentKey.address,to:m.destination,amountUnits:f,privateKeyHex:e.agentKey.privateKeyHex})}catch(d){return u(`transfer_failed:${d instanceof Error?d.message:String(d)}`),{ok:!1,error:"transfer_failed",results:a}}let h=await r.ask("wallet:sweep",{workspace:e.workspace,actor:e.actor,chain:e.chain,nonce:o,paymentTx:l});if(h.settled===!0)a.push({nonce:o,ok:!0,settled:!0,paymentTx:l});else a.push({nonce:o,ok:!1,settled:!1,paymentTx:l,error:String(h.error??"settle_failed")})}return{ok:a.every((n)=>n.ok),results:a}}var _=(e)=>Uint8Array.from((e.match(/.{2}/g)??[]).map((r)=>parseInt(r,16)));async function g(e){let[r,s,t]=await Promise.all([e("@mysten/sui/keypairs/ed25519"),e("@mysten/sui/jsonRpc"),e("@mysten/sui/transactions")]);return{keypairs:r,client:s,transactions:t}}function K(e){let r=e.load??((s)=>import(s));return async(s)=>{if(s.chain!=="sui")throw Error(`no_signer:${s.chain}`);let t;try{t=await g(r)}catch{throw Error("sui_signer_unavailable: install @mysten/sui in the agent runtime")}let c=t.keypairs.Ed25519Keypair.fromSecretKey(_(s.privateKeyHex));if(!p(c.toSuiAddress(),s.from))throw Error("agent_key_mismatch");let i=new t.transactions.Transaction;i.setSender(c.toSuiAddress());let[a]=i.splitCoins(i.gas,[i.pure.u64(s.amountUnits)]);i.transferObjects([a],i.pure.address(s.to));let n=new t.client.SuiJsonRpcClient({url:e.rpcUrl,network:e.network}),o=await n.signAndExecuteTransaction({transaction:i,signer:c,options:{showEffects:!0}});if(await n.waitForTransaction({digest:o.digest}),o.effects?.status?.status!=="success")throw Error(o.effects?.status?.error??"sui_transfer_failed");return o.digest}}export{v as newOrderNonce,E as runSweepOrders,x as signHandoverOffer,A as signSweepOrder,K as suiTransfer};
|
package/package.json
CHANGED
|
@@ -1,33 +1,56 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oneie",
|
|
3
|
-
"version": "5.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "5.9.0",
|
|
4
|
+
"description": "Give your agent financial superpowers. One command makes a key on your machine, five wallets, a shop and a test sale — your agent can sell and be paid in USDC, and asks you before real money moves.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"oneie": "dist/src/index.js",
|
|
8
8
|
"one": "dist/src/index.js"
|
|
9
9
|
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"ai-agent",
|
|
12
|
+
"ai-agents",
|
|
13
|
+
"agent-payments",
|
|
14
|
+
"agentic-payments",
|
|
15
|
+
"agent-wallet",
|
|
16
|
+
"mcp",
|
|
17
|
+
"claude-code",
|
|
18
|
+
"codex",
|
|
19
|
+
"cursor",
|
|
20
|
+
"llms-txt",
|
|
21
|
+
"x402",
|
|
22
|
+
"usdc",
|
|
23
|
+
"stablecoin",
|
|
24
|
+
"sui",
|
|
25
|
+
"solana",
|
|
26
|
+
"base",
|
|
27
|
+
"crypto-payments",
|
|
28
|
+
"payments",
|
|
29
|
+
"wallet",
|
|
30
|
+
"checkout",
|
|
31
|
+
"cli",
|
|
32
|
+
"one"
|
|
33
|
+
],
|
|
10
34
|
"files": [
|
|
11
35
|
"dist",
|
|
12
36
|
"README.md"
|
|
13
37
|
],
|
|
14
38
|
"scripts": {
|
|
15
|
-
"build": "
|
|
39
|
+
"build": "rm -rf dist && bun build src/index.ts --target=node --format=esm --splitting --minify --outdir dist/src --external '@mysten/*' --external @oneie/evals && cp package.json dist/ && chmod +x dist/src/index.js",
|
|
16
40
|
"dev": "tsx src/index.ts",
|
|
17
41
|
"typecheck": "tsc --noEmit",
|
|
18
42
|
"test": "bash ../../.claude/scripts/gate-run.sh test-cli -- ./node_modules/.bin/vitest run",
|
|
19
43
|
"prepublishOnly": "bun run build"
|
|
20
44
|
},
|
|
21
|
-
"dependencies": {
|
|
22
|
-
|
|
23
|
-
"@
|
|
45
|
+
"dependencies": {},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@mysten/sui": "^2.20.0",
|
|
24
48
|
"@noble/curves": "^2.2.0",
|
|
25
49
|
"@noble/hashes": "^2.2.0",
|
|
26
|
-
"@mysten/sui": "^2.20.0"
|
|
27
|
-
},
|
|
28
|
-
"devDependencies": {
|
|
29
50
|
"@oneie/evals": "^0.2.0",
|
|
51
|
+
"@oneie/sdk": "^0.17.6",
|
|
30
52
|
"@types/node": "^25.6.0",
|
|
53
|
+
"commander": "^12.0.0",
|
|
31
54
|
"tsx": "^4.0.0",
|
|
32
55
|
"typescript": "^5.4.0",
|
|
33
56
|
"vitest": "^4.1.6"
|
|
@@ -35,7 +58,10 @@
|
|
|
35
58
|
"license": "SEE LICENSE IN LICENSE",
|
|
36
59
|
"repository": {
|
|
37
60
|
"type": "git",
|
|
38
|
-
"url": "git+https://github.com/one-ie/
|
|
39
|
-
|
|
61
|
+
"url": "git+https://github.com/one-ie/one.git"
|
|
62
|
+
},
|
|
63
|
+
"homepage": "https://one.ie/?utm_source=npm&utm_medium=package&utm_campaign=oneie",
|
|
64
|
+
"bugs": {
|
|
65
|
+
"url": "https://github.com/one-ie/one/issues"
|
|
40
66
|
}
|
|
41
67
|
}
|
package/dist/src/agent.d.ts
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { Command } from 'commander';
|
|
2
|
-
export declare function agentCmd(): Command;
|
|
3
|
-
/**
|
|
4
|
-
* Structural validation — mirrors the rules enforced by the web's Zod schema
|
|
5
|
-
* (web/src/lib/agent-schema.ts) without pulling Zod or js-yaml into the CLI
|
|
6
|
-
* dependency graph. Catches the contract violations partners hit most often:
|
|
7
|
-
* missing frontmatter, name shape, journey/section anchor mismatches, chip
|
|
8
|
-
* id collisions, kebab-case ids. Anything outside these rules falls through
|
|
9
|
-
* to the live server-side validation when the agent is published.
|
|
10
|
-
*/
|
|
11
|
-
/** Required: a reader REFUSES or silently SUBSTITUTES identity without it.
|
|
12
|
-
* name → publish refuses (world-receivers.ts:1407). kind → one-agents.mjs:191
|
|
13
|
-
* skips the file. (The non-empty body is checked separately.) */
|
|
14
|
-
export declare const AGENT_REQUIRED: readonly ["name", "kind"];
|
|
15
|
-
/** Recommended: every reader falls back without it, but the fallback is a
|
|
16
|
-
* different agent on the page (title → dir, description → 'Generic helpful
|
|
17
|
-
* assistant', tier/domain → inferred from the id). Warned when absent. */
|
|
18
|
-
export declare const AGENT_RECOMMENDED: readonly ["title", "tier", "domain", "subscribes"];
|
|
19
|
-
/** The closed enums the web schema owns (agent-schema.ts) — role-types.ts INFERS
|
|
20
|
-
* a value from the id when the declared one is off-enum, so an off-enum value
|
|
21
|
-
* is a silent re-placement on the org chart, not a load failure. */
|
|
22
|
-
export declare const AGENT_ENUMS: Record<string, readonly string[]>;
|
|
23
|
-
/** Keys the channels parser (channels/src/lib/agent-md.ts) can only read as a
|
|
24
|
-
* BLOCK list. An inline `[a, b]` is stored as the string "[a, b]", so
|
|
25
|
-
* `Array.isArray` fails in resolvePersona and the field is dropped at runtime. */
|
|
26
|
-
export declare const AGENT_BLOCK_LIST_KEYS: readonly ["tools", "subscribes", "emits", "skills", "tags"];
|
|
27
|
-
/** Every top-level key at least one reader consumes — the union of AgentMeta
|
|
28
|
-
* (agent-md.ts:435), agentFrontmatterSchema (agent-schema.ts:229), Persona
|
|
29
|
-
* (channels/src/context.ts:590), compile.ts:319, one-agents.mjs:130,
|
|
30
|
-
* role-types.ts and the publish path. A key outside this set is read by
|
|
31
|
-
* nothing; the validator names it rather than refusing it. `direction` is NOT here on
|
|
32
|
-
* purpose: C20 deleted it from 118 corpus files (0 readers; 93/95 `bidirectional`
|
|
33
|
-
* merely restated subscribes+emits, the rest contradicted them) — keeping it out
|
|
34
|
-
* is what makes `--strict` refuse a resurrection. */
|
|
35
|
-
export declare const AGENT_KNOWN_KEYS: ReadonlySet<string>;
|
|
36
|
-
export interface ValidateResult {
|
|
37
|
-
/** Fail the verdict — a required field is absent or the file is not an agent. */
|
|
38
|
-
errors: string[];
|
|
39
|
-
/** Measured hazards that do not fail by default; `--strict` promotes them. */
|
|
40
|
-
warnings: string[];
|
|
41
|
-
/** Top-level keys no reader consumes, by name. */
|
|
42
|
-
unknownKeys: string[];
|
|
43
|
-
}
|
|
44
|
-
export interface ValidateOpts {
|
|
45
|
-
/** Warnings become errors. */
|
|
46
|
-
strict?: boolean;
|
|
47
|
-
/** `publish` keeps the door's pre-spec gate: frontmatter + name + anchors. */
|
|
48
|
-
door?: 'validate' | 'publish';
|
|
49
|
-
}
|
|
50
|
-
export declare function validate(path: string, opts?: ValidateOpts): ValidateResult;
|
|
51
|
-
/**
|
|
52
|
-
* Targets the CLI can actually emit. `a2a` and `erc8004` were advertised in
|
|
53
|
-
* --target help and in the docs but had no branch — they fell through to
|
|
54
|
-
* `return content`, echoing the raw agent.md back as if it had compiled. They
|
|
55
|
-
* now FAIL LOUDLY: there is no a2a/erc8004 compiler anywhere in @oneie/sdk to
|
|
56
|
-
* delegate to, and inventing one here would be worse than an honest error.
|
|
57
|
-
*/
|
|
58
|
-
export declare const CLI_TARGETS: readonly ["mcp", "uagents", "skillmd", "web"];
|
|
59
|
-
export interface AgentverseReadiness {
|
|
60
|
-
ready: boolean;
|
|
61
|
-
/** Required and absent. Refuses the upload. */
|
|
62
|
-
missing: string[];
|
|
63
|
-
/** Optional and absent — named so an operator can choose, never a refusal. */
|
|
64
|
-
recommended: string[];
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Is this agent.md ready to be a HOSTED Agentverse agent?
|
|
68
|
-
*
|
|
69
|
-
* `seed` is the only REQUIRED field, and it is required for one reason: it is the
|
|
70
|
-
* deterministic identity. Without it every deploy of the same file is a different
|
|
71
|
-
* agent as far as the network is concerned — a fresh address, so every peer that
|
|
72
|
-
* learned the old one is now talking to nobody.
|
|
73
|
-
*/
|
|
74
|
-
export declare function agentverseReadiness(agentMd: string): AgentverseReadiness;
|
|
75
|
-
export declare function compileTarget(content: string, target: string, skills?: Record<string, string>): string;
|