libfx 0.0.13 → 0.0.14-dev.1534.g6afa7c33dac5
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 +409 -486
- package/browser.js +18 -4
- package/chatgpt-sign-in.js +141 -0
- package/chatgpt.js +68 -0
- package/custom-provider.js +123 -0
- package/durable/local.mjs +190 -0
- package/durable/vercel.mjs +268 -0
- package/durable/world.mjs +1 -0
- package/durable.js +2591 -0
- package/fetch-cleanup.js +12 -0
- package/fx-core.wasm +0 -0
- package/fx-harness.js +220 -0
- package/fx-sdk.js +1226 -115
- package/fx-term.wasm +0 -0
- package/grok-sign-in.js +145 -0
- package/grok.js +108 -0
- package/libfx.darwin-arm64.node +0 -0
- package/libfx.darwin-x64.node +0 -0
- package/libfx.linux-arm64.node +0 -0
- package/libfx.linux-x64.node +0 -0
- package/mcp.js +3 -0
- package/node.cjs +4159 -212
- package/node.js +193 -47
- package/oauth.js +64 -0
- package/package.json +66 -13
- package/subscription.js +251 -0
- package/types/browser.d.ts +139 -0
- package/types/chatgpt.d.ts +58 -0
- package/types/durable-local.d.ts +18 -0
- package/types/durable-vercel.d.ts +22 -0
- package/types/durable-world.d.ts +89 -0
- package/types/grok.d.ts +61 -0
- package/types/libfx.d.cts +935 -0
- package/types/mcp.d.ts +41 -0
- package/types/node.d.cts +158 -0
- package/types/node.d.ts +3 -0
- package/types/skills-node.d.ts +25 -0
- package/types/skills.d.ts +28 -0
- package/types/wasm.d.ts +99 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var h=Symbol.for("libfx.durability");function g(r,f={}){let u=typeof r==="function";if(!u&&!(r&&typeof r==="object"))throw TypeError("world() takes a World or a function that creates one");if(!f||typeof f!=="object"||Array.isArray(f))throw TypeError("world() options must be an object");let{name:e="world",livenessKnown:d=!1,queueLeases:a=!1,runInRequest:l=a,waitUntil:w,queueDurable:c=!1,pollMs:t,leaseMs:o,maxDurationMs:y,reserveMs:b,alive:s,holderInfo:p,gatewayKey:m}=f;if(typeof e!=="string"||e.length===0)throw TypeError("world() name must be a non-empty string");for(let[i,n]of Object.entries({livenessKnown:d,queueLeases:a,runInRequest:l,queueDurable:c}))if(typeof n!=="boolean")throw TypeError(`${e}() ${i} must be a boolean`);if(t!==void 0&&!(Number.isSafeInteger(t)&&t>0))throw TypeError(`${e}() pollMs must be a positive integer`);if(o!==void 0&&!(Number.isSafeInteger(o)&&o>=1000))throw TypeError(`${e}() leaseMs must be an integer of at least 1000`);for(let[i,n]of Object.entries({maxDurationMs:y,reserveMs:b}))if(n!==void 0&&!(Number.isSafeInteger(n)&&n>=0))throw TypeError(`${e}() ${i} must be a non-negative integer`);for(let[i,n]of Object.entries({alive:s,holderInfo:p,gatewayKey:m,waitUntil:w}))if(n!==void 0&&typeof n!=="function")throw TypeError(`${e}() ${i} must be a function`);if(d&&!s)throw TypeError(`${e}() livenessKnown needs alive()`);if(l&&!a)throw TypeError(`${e}() runInRequest needs queueLeases`);return{[h]:!0,name:e,world:u?r:()=>r,owned:u,livenessKnown:d,queueLeases:a,runInRequest:l,queueDurable:c,...t===void 0?{}:{pollMs:t},...o===void 0?{}:{leaseMs:o},...y===void 0?{}:{maxDurationMs:y},...b===void 0?{}:{reserveMs:b},...s===void 0?{}:{alive:s},...p===void 0?{}:{holderInfo:p},...m===void 0?{}:{gatewayKey:m},...w===void 0?{}:{waitUntil:w}}}export{g as world};
|