The agentapi module is a building block for modules that need to run an
agentapi server. It's not meant for end users of Coder.
The agentapi-specific logic is mostly extracted from [the claude-code
module](c0f2d945c5/registry/coder/modules/claude-code).
You can see this module in action in [the goose 2.0
PR](https://github.com/coder/registry/pull/178).
10 lines
195 B
JavaScript
10 lines
195 B
JavaScript
#!/usr/bin/env node
|
|
|
|
const main = async () => {
|
|
console.log("mocking an ai agent");
|
|
// sleep for 30 minutes
|
|
await new Promise((resolve) => setTimeout(resolve, 30 * 60 * 1000));
|
|
};
|
|
|
|
main();
|