notte-sdk 0.0.21 → 0.0.22
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 +20 -0
- package/dist/index.d.mts +536 -350
- package/dist/index.d.ts +536 -350
- package/dist/index.js +113 -55
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +107 -49
- package/dist/index.mjs.map +1 -1
- package/dist/proxy/core.js +7 -9
- package/dist/proxy/core.js.map +1 -1
- package/dist/proxy/core.mjs +7 -9
- package/dist/proxy/core.mjs.map +1 -1
- package/dist/proxy/next.js +7 -9
- package/dist/proxy/next.js.map +1 -1
- package/dist/proxy/next.mjs +7 -9
- package/dist/proxy/next.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -404,6 +404,26 @@ console.log('Status:', metadata.status); // 'active' | 'closed' | 'failed'
|
|
|
404
404
|
console.log('Result:', metadata);
|
|
405
405
|
```
|
|
406
406
|
|
|
407
|
+
#### Selecting the runtime
|
|
408
|
+
|
|
409
|
+
`run` defaults to the standard Lambda runtime. Where the extended runtime pilot
|
|
410
|
+
is enabled, select AgentCore per invocation with the second argument:
|
|
411
|
+
|
|
412
|
+
```typescript
|
|
413
|
+
const result = await fn.run(
|
|
414
|
+
{ url: 'https://example.com' },
|
|
415
|
+
{ runtime: 'extended' }
|
|
416
|
+
);
|
|
417
|
+
|
|
418
|
+
// The default is equivalent to an explicit standard selection.
|
|
419
|
+
await fn.run({ url: 'https://example.com' }, { runtime: 'standard' });
|
|
420
|
+
```
|
|
421
|
+
|
|
422
|
+
The runtime option stays separate from script input variables. Extended requests
|
|
423
|
+
fail explicitly if that runtime is unavailable or at capacity; they do not fall
|
|
424
|
+
back to Lambda. Browser sessions keep their own duration limits. Existing
|
|
425
|
+
schedules continue to use the standard runtime during the pilot.
|
|
426
|
+
|
|
407
427
|
#### Polling for completion
|
|
408
428
|
|
|
409
429
|
Since functions run asynchronously, you can poll for the result:
|