bare-agent 0.39.0 → 0.40.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.
- package/bareagent.context.md +1 -1
- package/index.d.ts +54 -0
- package/index.js +15 -0
- package/package.json +1 -1
- package/src/provider-clipipe.d.ts +3 -2
- package/src/provider-clipipe.js +6 -0
package/bareagent.context.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# bareagent — Integration Guide
|
|
2
2
|
|
|
3
3
|
> For AI assistants and developers wiring bareagent into a project.
|
|
4
|
-
> v0.
|
|
4
|
+
> v0.40.0 | Node.js >= 18 | zero required deps (`bareguard >=0.9.0 <0.14.0` optional peer for governance) | Apache 2.0
|
|
5
5
|
>
|
|
6
6
|
> Full human guide with composition examples, design philosophy, and recipes: [Usage Guide](docs/archive/usage-guide.md)
|
|
7
7
|
|
package/index.d.ts
CHANGED
|
@@ -1,3 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export the shared cross-cutting type shapes so adopters can name them when
|
|
3
|
+
* annotating their own wiring (tools arrays, providers, ctx, metrics). Declared
|
|
4
|
+
* in `types/index.d.ts`; surfaced here on the root entry so `types` resolves them.
|
|
5
|
+
*/
|
|
6
|
+
export type ToolDef = import("./types").ToolDef;
|
|
7
|
+
/**
|
|
8
|
+
* Re-export the shared cross-cutting type shapes so adopters can name them when
|
|
9
|
+
* annotating their own wiring (tools arrays, providers, ctx, metrics). Declared
|
|
10
|
+
* in `types/index.d.ts`; surfaced here on the root entry so `types` resolves them.
|
|
11
|
+
*/
|
|
12
|
+
export type ToolCall = import("./types").ToolCall;
|
|
13
|
+
/**
|
|
14
|
+
* Re-export the shared cross-cutting type shapes so adopters can name them when
|
|
15
|
+
* annotating their own wiring (tools arrays, providers, ctx, metrics). Declared
|
|
16
|
+
* in `types/index.d.ts`; surfaced here on the root entry so `types` resolves them.
|
|
17
|
+
*/
|
|
18
|
+
export type Message = import("./types").Message;
|
|
19
|
+
/**
|
|
20
|
+
* Re-export the shared cross-cutting type shapes so adopters can name them when
|
|
21
|
+
* annotating their own wiring (tools arrays, providers, ctx, metrics). Declared
|
|
22
|
+
* in `types/index.d.ts`; surfaced here on the root entry so `types` resolves them.
|
|
23
|
+
*/
|
|
24
|
+
export type Provider = import("./types").Provider;
|
|
25
|
+
/**
|
|
26
|
+
* Re-export the shared cross-cutting type shapes so adopters can name them when
|
|
27
|
+
* annotating their own wiring (tools arrays, providers, ctx, metrics). Declared
|
|
28
|
+
* in `types/index.d.ts`; surfaced here on the root entry so `types` resolves them.
|
|
29
|
+
*/
|
|
30
|
+
export type GenerateResult = import("./types").GenerateResult;
|
|
31
|
+
/**
|
|
32
|
+
* Re-export the shared cross-cutting type shapes so adopters can name them when
|
|
33
|
+
* annotating their own wiring (tools arrays, providers, ctx, metrics). Declared
|
|
34
|
+
* in `types/index.d.ts`; surfaced here on the root entry so `types` resolves them.
|
|
35
|
+
*/
|
|
36
|
+
export type Usage = import("./types").Usage;
|
|
37
|
+
/**
|
|
38
|
+
* Re-export the shared cross-cutting type shapes so adopters can name them when
|
|
39
|
+
* annotating their own wiring (tools arrays, providers, ctx, metrics). Declared
|
|
40
|
+
* in `types/index.d.ts`; surfaced here on the root entry so `types` resolves them.
|
|
41
|
+
*/
|
|
42
|
+
export type RunMetrics = import("./types").RunMetrics;
|
|
43
|
+
/**
|
|
44
|
+
* Re-export the shared cross-cutting type shapes so adopters can name them when
|
|
45
|
+
* annotating their own wiring (tools arrays, providers, ctx, metrics). Declared
|
|
46
|
+
* in `types/index.d.ts`; surfaced here on the root entry so `types` resolves them.
|
|
47
|
+
*/
|
|
48
|
+
export type Store = import("./types").Store;
|
|
49
|
+
/**
|
|
50
|
+
* Re-export the shared cross-cutting type shapes so adopters can name them when
|
|
51
|
+
* annotating their own wiring (tools arrays, providers, ctx, metrics). Declared
|
|
52
|
+
* in `types/index.d.ts`; surfaced here on the root entry so `types` resolves them.
|
|
53
|
+
*/
|
|
54
|
+
export type Ctx = import("./types").Ctx;
|
|
1
55
|
import { Loop } from "./src/loop";
|
|
2
56
|
import { Planner } from "./src/planner";
|
|
3
57
|
import { Evaluator } from "./src/evaluator";
|
package/index.js
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Re-export the shared cross-cutting type shapes so adopters can name them when
|
|
5
|
+
* annotating their own wiring (tools arrays, providers, ctx, metrics). Declared
|
|
6
|
+
* in `types/index.d.ts`; surfaced here on the root entry so `types` resolves them.
|
|
7
|
+
* @typedef {import('./types').ToolDef} ToolDef
|
|
8
|
+
* @typedef {import('./types').ToolCall} ToolCall
|
|
9
|
+
* @typedef {import('./types').Message} Message
|
|
10
|
+
* @typedef {import('./types').Provider} Provider
|
|
11
|
+
* @typedef {import('./types').GenerateResult} GenerateResult
|
|
12
|
+
* @typedef {import('./types').Usage} Usage
|
|
13
|
+
* @typedef {import('./types').RunMetrics} RunMetrics
|
|
14
|
+
* @typedef {import('./types').Store} Store
|
|
15
|
+
* @typedef {import('./types').Ctx} Ctx
|
|
16
|
+
*/
|
|
17
|
+
|
|
3
18
|
const { Loop } = require('./src/loop');
|
|
4
19
|
const { Planner } = require('./src/planner');
|
|
5
20
|
const { Evaluator } = require('./src/evaluator');
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export type Message = import("../types").Message;
|
|
2
2
|
export type ToolDef = import("../types").ToolDef;
|
|
3
3
|
export type GenerateResult = import("../types").GenerateResult;
|
|
4
|
+
export type ParsedEnvelope = import("./provider-clipipe-tools.js").ParsedEnvelope;
|
|
4
5
|
export type CLIPipeOptions = {
|
|
5
6
|
/**
|
|
6
7
|
* - CLI command to spawn (required).
|
|
@@ -142,11 +143,11 @@ export class CLIPipeProvider {
|
|
|
142
143
|
toolProtocol: {
|
|
143
144
|
name: string;
|
|
144
145
|
turnArgs(systemPrompt: string): string[];
|
|
145
|
-
parseResult(stdout: string): ParsedEnvelope;
|
|
146
|
+
parseResult(stdout: string): import("./provider-clipipe-tools").ParsedEnvelope;
|
|
146
147
|
probe: {
|
|
147
148
|
system: string;
|
|
148
149
|
user: string;
|
|
149
|
-
isCapable: (parsed: ParsedEnvelope) => boolean;
|
|
150
|
+
isCapable: (parsed: import("./provider-clipipe-tools").ParsedEnvelope) => boolean;
|
|
150
151
|
};
|
|
151
152
|
} | null;
|
|
152
153
|
probeCapability: boolean;
|
package/src/provider-clipipe.js
CHANGED
|
@@ -8,6 +8,12 @@ const { createBridge, resolveSessionError, runSession } = require('./provider-cl
|
|
|
8
8
|
/** @typedef {import('../types').Message} Message */
|
|
9
9
|
/** @typedef {import('../types').ToolDef} ToolDef */
|
|
10
10
|
/** @typedef {import('../types').GenerateResult} GenerateResult */
|
|
11
|
+
// `toolProtocol`'s inferred type references ParsedEnvelope, which is declared in
|
|
12
|
+
// provider-clipipe-tools.js. Without this alias the name is not in scope when tsc
|
|
13
|
+
// emits this file's .d.ts, so the declaration shipped a bare `ParsedEnvelope` that
|
|
14
|
+
// adopters could not resolve (TS2304) — invisible here because our own tsconfig
|
|
15
|
+
// sets skipLibCheck.
|
|
16
|
+
/** @typedef {import('./provider-clipipe-tools.js').ParsedEnvelope} ParsedEnvelope */
|
|
11
17
|
|
|
12
18
|
/**
|
|
13
19
|
* @typedef {object} CLIPipeOptions
|