johnandersen777.bsky.social/atlibs-agents
agents and atirc modules for atlibs: launch agents from a composition, chat on atirc; pages and the agents service
0
0
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="referrer" content="origin-when-cross-origin">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.purple.min.css">
<style>
agents-launch, agents-list { display: block; }
.agents { padding-left: 0; }
.agents li { list-style: none; border-left: 3px solid var(--pico-primary); padding-left: 0.6em; margin-bottom: 1em; }
</style>
<title>agents</title>
<!-- atlibs/ is a symlink to the sibling ../atlibs checkout's javascript/src, so this directory serves on its own (python3 -m http.server). -->
<script type="importmap">
{
"imports": {
"@atproto/oauth-client-browser": "https://esm.sh/@atproto/oauth-client-browser@0.5.14",
"@atproto/api": "https://esm.sh/@atproto/api@0.30.3",
"atlibs/": "./atlibs/",
"https://esm.sh/tlds@^1.234.0/index.json": "https://esm.sh/tlds@1.261.0?target=es2022"
}
}
</script>
<script type="module" src="./main.js"></script>
</head>
<body>
<main class="container">
<header>
<hgroup>
<h1>agents</h1>
<p>Launch an atirc agent on a socialweb.computer VM and shut it down by its launch id, as shell.socialweb.computer does, through the public agents service (atlibs agents + requester modules on the Rust host). Sign in once; your PDS mints the service auth for each call.</p>
</hgroup>
<nav>
<ul>
<li id="whoami" style="font-family: monospace;"></li>
<li id="logout-nav" style="display: none;"><a href="#">Logout</a></li>
</ul>
</nav>
</header>
<article id="loading"><h3 aria-busy="true">Loading session...</h3></article>
<article id="loading-error" style="display: none; background-color: #861D13;"></article>
<agents-launch></agents-launch>
<agents-list></agents-list>
</main>
</body>
</html>