@botiverse/bottega 0.0.0-stage → 0.3.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.
@@ -0,0 +1,25 @@
1
+ /**
2
+ * bottega for a program that runs agents: one session, driven over JSON lines.
3
+ *
4
+ * A host runs a session in its own process, `node <CLI> serve` (or `bottega
5
+ * serve` on the path), or in its own, by handing `serve` two streams. Either
6
+ * way the lines are the same; the README lists them, and
7
+ * `bottega/src/serve.ts`, which runs them, describes them in full.
8
+ *
9
+ * Every signature here is written out, so the declaration file this module
10
+ * compiles to names nothing but Node's types.
11
+ */
12
+ import type { Readable, Writable } from "node:stream";
13
+ /**
14
+ * Run one session over these streams: commands in, what happened out. Resolves
15
+ * when the session has ended, after `dispose` or when `input` ends. A process
16
+ * that runs one this way routes its own requests: the command line sends them
17
+ * through the proxy its environment names, and this does not.
18
+ */
19
+ export declare function serve(input: Readable, output: Writable): Promise<void>;
20
+ /** The version of the lines, as `ready` reports it. */
21
+ export declare const PROTOCOL: number;
22
+ /** This package's version. */
23
+ export declare const VERSION: string;
24
+ /** The command line's file, for a host that starts a session as `node <CLI> serve`. */
25
+ export declare const CLI: string;
package/dist/index.js ADDED
@@ -0,0 +1,22 @@
1
+ import {
2
+ SERVE_PROTOCOL,
3
+ bottegaVersion,
4
+ installApps,
5
+ serve
6
+ } from "./chunk-W6FG2Y6S.js";
7
+
8
+ // src/index.ts
9
+ import { fileURLToPath } from "node:url";
10
+ async function serve2(input, output) {
11
+ await installApps();
12
+ await serve(input, output);
13
+ }
14
+ var PROTOCOL = SERVE_PROTOCOL;
15
+ var VERSION = bottegaVersion();
16
+ var CLI = fileURLToPath(new URL("./cli.js", import.meta.url));
17
+ export {
18
+ CLI,
19
+ PROTOCOL,
20
+ VERSION,
21
+ serve2 as serve
22
+ };
package/package.json CHANGED
@@ -1,6 +1,64 @@
1
1
  {
2
- "name": "@botiverse/bottega",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
2
+ "name": "@botiverse/bottega",
3
+ "version": "0.3.0",
4
+ "description": "The bottega agent without its desktop: the command line, and one session another program drives",
5
+ "keywords": [
6
+ "agent",
7
+ "harness",
8
+ "llm",
9
+ "context",
10
+ "oar",
11
+ "raft"
12
+ ],
13
+ "license": "Apache-2.0",
14
+ "author": "Botiverse, Inc.",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/botiverse/bottega.git",
18
+ "directory": "headless"
19
+ },
20
+ "homepage": "https://github.com/botiverse/bottega/tree/main/headless#readme",
21
+ "bugs": {
22
+ "url": "https://github.com/botiverse/bottega/issues"
23
+ },
24
+ "type": "module",
25
+ "exports": {
26
+ ".": {
27
+ "types": "./dist/index.d.ts",
28
+ "default": "./dist/index.js"
29
+ },
30
+ "./package.json": "./package.json"
31
+ },
32
+ "bin": {
33
+ "bottega": "dist/cli.js"
34
+ },
35
+ "files": [
36
+ "dist",
37
+ "README.md",
38
+ "LICENSE",
39
+ "NOTICE"
40
+ ],
41
+ "engines": {
42
+ "node": ">=24"
43
+ },
44
+ "publishConfig": {
45
+ "access": "public"
46
+ },
47
+ "scripts": {
48
+ "build": "node build.ts",
49
+ "prepack": "node build.ts",
50
+ "check": "tsc --noEmit",
51
+ "test": "node build.ts && node --test 'test/*.test.ts'"
52
+ },
53
+ "dependencies": {
54
+ "@earendil-works/pi-ai": "^1.7.0",
55
+ "@modelcontextprotocol/sdk": "^1.32.1",
56
+ "typebox": "^1.3.27",
57
+ "undici": "7.29.1"
58
+ },
59
+ "devDependencies": {
60
+ "@types/node": "^26.6.5",
61
+ "esbuild": "^0.28.2",
62
+ "typescript": "^7.0.2"
63
+ }
64
+ }