@slopus/happy-agent-base 0.0.1 → 0.0.3
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 -235
- package/dist/Agent.d.ts +71 -9
- package/dist/Agent.d.ts.map +1 -1
- package/dist/Agent.js +258 -40
- package/dist/Agent.js.map +1 -1
- package/dist/AgentBase.d.ts +268 -23
- package/dist/AgentBase.d.ts.map +1 -1
- package/dist/AgentBase.js +1620 -333
- package/dist/AgentBase.js.map +1 -1
- package/dist/AgentBaseHooks.d.ts +108 -24
- package/dist/AgentBaseHooks.d.ts.map +1 -1
- package/dist/AgentBasePending.d.ts +44 -0
- package/dist/AgentBasePending.d.ts.map +1 -0
- package/dist/AgentBasePending.js +64 -0
- package/dist/AgentBasePending.js.map +1 -0
- package/dist/AgentBaseState.d.ts +2 -0
- package/dist/AgentBaseState.d.ts.map +1 -1
- package/dist/AgentConfig.d.ts +67 -0
- package/dist/AgentConfig.d.ts.map +1 -0
- package/dist/AgentConfig.js +81 -0
- package/dist/AgentConfig.js.map +1 -0
- package/dist/AgentContexts.d.ts +40 -0
- package/dist/AgentContexts.d.ts.map +1 -0
- package/dist/AgentContexts.js +70 -0
- package/dist/AgentContexts.js.map +1 -0
- package/dist/AgentFeature.d.ts +118 -15
- package/dist/AgentFeature.d.ts.map +1 -1
- package/dist/AgentKV.d.ts +58 -0
- package/dist/AgentKV.d.ts.map +1 -0
- package/dist/AgentKV.js +114 -0
- package/dist/AgentKV.js.map +1 -0
- package/dist/AgentModel.d.ts +17 -0
- package/dist/AgentModel.d.ts.map +1 -0
- package/dist/AgentModel.js +2 -0
- package/dist/AgentModel.js.map +1 -0
- package/dist/{AgentBasePersistence.d.ts → AgentPersistence.d.ts} +13 -8
- package/dist/AgentPersistence.d.ts.map +1 -0
- package/dist/AgentPersistence.js +2 -0
- package/dist/AgentPersistence.js.map +1 -0
- package/dist/AgentProviders.d.ts +22 -7
- package/dist/AgentProviders.d.ts.map +1 -1
- package/dist/AgentProviders.js +18 -9
- package/dist/AgentProviders.js.map +1 -1
- package/dist/AgentRef.d.ts +41 -0
- package/dist/AgentRef.d.ts.map +1 -0
- package/dist/AgentRef.js +60 -0
- package/dist/AgentRef.js.map +1 -0
- package/dist/AgentStorage.d.ts +39 -0
- package/dist/AgentStorage.d.ts.map +1 -0
- package/dist/AgentStorage.js +49 -0
- package/dist/AgentStorage.js.map +1 -0
- package/dist/AgentSystem.d.ts +52 -0
- package/dist/AgentSystem.d.ts.map +1 -0
- package/dist/AgentSystem.js +2 -0
- package/dist/AgentSystem.js.map +1 -0
- package/dist/AgentSystemContext.d.ts +15 -0
- package/dist/AgentSystemContext.d.ts.map +1 -0
- package/dist/AgentSystemContext.js +20 -0
- package/dist/AgentSystemContext.js.map +1 -0
- package/dist/AgentSystemLocal.d.ts +104 -0
- package/dist/AgentSystemLocal.d.ts.map +1 -0
- package/dist/AgentSystemLocal.js +401 -0
- package/dist/AgentSystemLocal.js.map +1 -0
- package/dist/AgentSystemRef.d.ts +56 -0
- package/dist/AgentSystemRef.d.ts.map +1 -0
- package/dist/AgentSystemRef.js +75 -0
- package/dist/AgentSystemRef.js.map +1 -0
- package/dist/AgentTaskContext.d.ts +17 -0
- package/dist/AgentTaskContext.d.ts.map +1 -0
- package/dist/AgentTaskContext.js +26 -0
- package/dist/AgentTaskContext.js.map +1 -0
- package/dist/AgentTool.d.ts +40 -0
- package/dist/AgentTool.d.ts.map +1 -1
- package/dist/AgentTool.js.map +1 -1
- package/dist/index.d.ts +21 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +24 -3
- package/dist/index.js.map +1 -1
- package/dist/models.d.ts +62 -0
- package/dist/models.d.ts.map +1 -0
- package/dist/models.js +185 -0
- package/dist/models.js.map +1 -0
- package/package.json +6 -4
- package/dist/AgentBaseContext.d.ts +0 -22
- package/dist/AgentBaseContext.d.ts.map +0 -1
- package/dist/AgentBaseContext.js +0 -33
- package/dist/AgentBaseContext.js.map +0 -1
- package/dist/AgentBasePersistence.d.ts.map +0 -1
- package/dist/AgentBasePersistence.js +0 -2
- package/dist/AgentBasePersistence.js.map +0 -1
package/dist/AgentTool.d.ts
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import type { SessionOutputBlock, SessionToolLarkGrammar } from "@slopus/happy-providers";
|
|
2
2
|
import type { Static, TSchema } from "@sinclair/typebox";
|
|
3
3
|
import type { Context } from "@steve.kite/stdlib";
|
|
4
|
+
/** A tool-owned decision about one invocation while the agent is in Auto mode. */
|
|
5
|
+
export type AgentToolAutoPermissionPredicate<Args> = {
|
|
6
|
+
bivarianceHack(args: Args, ctx: Context): boolean | Promise<boolean>;
|
|
7
|
+
}["bivarianceHack"];
|
|
8
|
+
/** Human-readable description of the exact action an Auto reviewer is deciding on. */
|
|
9
|
+
export type AgentToolAutoPermissionActionDescriber<Args> = {
|
|
10
|
+
bivarianceHack(args: Args, ctx: Context): string;
|
|
11
|
+
}["bivarianceHack"];
|
|
4
12
|
/**
|
|
5
13
|
* An executable tool with TypeBox-typed arguments and structured result. The descriptor fields
|
|
6
14
|
* mirror the provider session tool. The agent validates arguments against `parameters` before
|
|
@@ -9,7 +17,9 @@ import type { Context } from "@steve.kite/stdlib";
|
|
|
9
17
|
* becomes an error tool result for the model rather than failing the run.
|
|
10
18
|
*/
|
|
11
19
|
export interface AgentTool<Args extends TSchema = TSchema, Result extends TSchema = TSchema> {
|
|
20
|
+
/** The tool name the model calls. */
|
|
12
21
|
readonly name: string;
|
|
22
|
+
/** Optional grouping the tool is exposed under, such as an MCP server name. */
|
|
13
23
|
readonly namespace?: string;
|
|
14
24
|
/** Description of the containing namespace, when this tool is namespaced. */
|
|
15
25
|
readonly namespaceDescription?: string;
|
|
@@ -21,13 +31,41 @@ export interface AgentTool<Args extends TSchema = TSchema, Result extends TSchem
|
|
|
21
31
|
readonly type: string;
|
|
22
32
|
readonly [key: string]: unknown;
|
|
23
33
|
};
|
|
34
|
+
/** Model-facing explanation of what the tool does and when to use it. */
|
|
24
35
|
readonly description?: string;
|
|
36
|
+
/** TypeBox schema the model's arguments are validated against before execute runs. */
|
|
25
37
|
readonly parameters?: Args;
|
|
38
|
+
/** TypeBox schema the structured result is validated against after execute runs. */
|
|
26
39
|
readonly returnType: Result;
|
|
27
40
|
/** Provider-neutral request to expose this tool through native tool discovery. */
|
|
28
41
|
readonly defer?: boolean;
|
|
29
42
|
/** Ignored by providers that do not support grammar-based tools. */
|
|
30
43
|
readonly grammar?: SessionToolLarkGrammar;
|
|
44
|
+
/**
|
|
45
|
+
* Provider-shaped guidance shown only in Auto mode. Use this for fields the model must set
|
|
46
|
+
* when it intentionally requests review or Full access.
|
|
47
|
+
*/
|
|
48
|
+
readonly autoPermissionInstructions?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Describes the exact action and boundary an Auto reviewer is deciding on. A tool whose
|
|
51
|
+
* `shouldReviewInAutoMode` can return true must provide this description.
|
|
52
|
+
*/
|
|
53
|
+
readonly describeAutoPermissionAction?: AgentToolAutoPermissionActionDescriber<Static<Args>>;
|
|
54
|
+
/**
|
|
55
|
+
* The tool cannot be contained by Rig's local restricted modes, so it is available only in
|
|
56
|
+
* Auto or Full access. This does not itself approve an Auto invocation.
|
|
57
|
+
*/
|
|
58
|
+
readonly requiresAutoOrFullAccess?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Whether this exact invocation requires an Auto review. Every tool owns this decision;
|
|
61
|
+
* routine tools state that explicitly with a predicate that returns false.
|
|
62
|
+
*/
|
|
63
|
+
readonly shouldReviewInAutoMode: AgentToolAutoPermissionPredicate<Static<Args>>;
|
|
64
|
+
/**
|
|
65
|
+
* Whether an approved invocation must temporarily run in Full access. Review and elevation
|
|
66
|
+
* are deliberately separate decisions; omission means the current sandbox remains active.
|
|
67
|
+
*/
|
|
68
|
+
readonly shouldRunInFullAccessInAutoMode?: AgentToolAutoPermissionPredicate<Static<Args>>;
|
|
31
69
|
/**
|
|
32
70
|
* A durable tool is safe to execute again, so an interrupted call is retried when the agent
|
|
33
71
|
* restarts. A non-durable call interrupted by a restart becomes an error tool result instead.
|
|
@@ -38,7 +76,9 @@ export interface AgentTool<Args extends TSchema = TSchema, Result extends TSchem
|
|
|
38
76
|
* observe cancellation and stop its own work.
|
|
39
77
|
*/
|
|
40
78
|
execute(ctx: Context, args: Static<Args>): Promise<Static<Result>>;
|
|
79
|
+
/** Renders a validated result into the content blocks the model actually sees. */
|
|
41
80
|
toLLM(result: Static<Result>): readonly SessionOutputBlock[];
|
|
81
|
+
/** Whether a structured result should be reported to the model as an error. */
|
|
42
82
|
isError?(result: Static<Result>): boolean;
|
|
43
83
|
}
|
|
44
84
|
export type AnyAgentTool = AgentTool<any, any>;
|
package/dist/AgentTool.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentTool.d.ts","sourceRoot":"","sources":["../sources/AgentTool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"AgentTool.d.ts","sourceRoot":"","sources":["../sources/AgentTool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAC1F,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD,kFAAkF;AAClF,MAAM,MAAM,gCAAgC,CAAC,IAAI,IAAI;IACjD,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACxE,CAAC,gBAAgB,CAAC,CAAC;AAEpB,sFAAsF;AACtF,MAAM,MAAM,sCAAsC,CAAC,IAAI,IAAI;IACvD,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,GAAG,MAAM,CAAC;CACpD,CAAC,gBA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AAC,CAAC;IAC1F;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B;;;OAGG;IACH,OAAO,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;IACnE,kFAAkF;IAClF,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,SAAS,kBAAkB,EAAE,CAAC;IAC7D,+EAA+E;IAC/E,OAAO,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC;CAC7C;AAMD,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAE/C,qEAAqE;AACrE,wBAAgB,eAAe,CAAC,KAAK,CAAC,IAAI,SAAS,OAAO,EAAE,KAAK,CAAC,MAAM,SAAS,OAAO,EACpF,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC,GAC9B,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC,CAEzB"}
|
package/dist/AgentTool.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentTool.js","sourceRoot":"","sources":["../sources/AgentTool.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AgentTool.js","sourceRoot":"","sources":["../sources/AgentTool.ts"],"names":[],"mappings":"AA0FA,qEAAqE;AACrE,MAAM,UAAU,eAAe,CAC3B,IAA6B;IAE7B,OAAO,IAAI,CAAC;AAChB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,25 @@
|
|
|
1
|
+
/** Public surface of `@slopus/happy-agent-base`, re-exported by concern. */
|
|
1
2
|
export { Agent, type AgentOptions } from "./Agent.js";
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
3
|
+
export { type AgentSystem } from "./AgentSystem.js";
|
|
4
|
+
export { type AgentInitialContext } from "./AgentSystem.js";
|
|
5
|
+
export { AgentSystemLocal, type AgentSystemLocalOptions } from "./AgentSystemLocal.js";
|
|
6
|
+
export { AgentSystemRef } from "./AgentSystemRef.js";
|
|
7
|
+
export { AgentRef } from "./AgentRef.js";
|
|
8
|
+
export { agentSystem, withAgentSystem } from "./AgentSystemContext.js";
|
|
9
|
+
export { agentConfig, agentConfigSchema, agentFeatureConfig, agentEnvironment, agentEnvironmentSchema, agentFeatureConfigSchema, agentPlatformSchema, currentAgentEnvironment, withAgentConfig, type AgentConfig, type AgentEnvironment, type AgentFeatureConfig, type AgentPlatform, } from "./AgentConfig.js";
|
|
10
|
+
export { AgentStorage, type AgentStorageLock, type AgentStorageOptions } from "./AgentStorage.js";
|
|
11
|
+
export { type AgentModel } from "./AgentModel.js";
|
|
12
|
+
export { knownModels, type Model } from "./models.js";
|
|
13
|
+
export { AgentBase, type AgentBaseAwaitOptions, type AgentBaseMessageOptions, type AgentBaseOptions, type AgentBaseQueueMode, } from "./AgentBase.js";
|
|
14
|
+
export { agentEffort, agentId, agentKV, agentModel, agentProvider, agentRunKV, agentServiceTier, withAgentContext, withAgentKV, withAgentRunKV, } from "./AgentContexts.js";
|
|
15
|
+
export { agentTaskContext, taskContextBeforeToolCall, withAgentTaskContext, } from "./AgentTaskContext.js";
|
|
16
|
+
export { AgentKV } from "./AgentKV.js";
|
|
17
|
+
export { type AgentBaseHooks, type AgentBaseInference, type AgentBaseModelChange, type AgentBaseToolExecution, type AgentBaseTurn, type AgentBaseTurnStart, type MaybePromise, } from "./AgentBaseHooks.js";
|
|
18
|
+
export { type AgentPersistence, type AgentRecord } from "./AgentPersistence.js";
|
|
19
|
+
export { agentBasePendingStateOf, agentBaseStoreOwesWork, AGENT_BASE_PENDING_KEY, type AgentBasePendingStage, type AgentBasePendingState, } from "./AgentBasePending.js";
|
|
6
20
|
export { type AgentBaseState } from "./AgentBaseState.js";
|
|
7
|
-
export { type AgentFeature } from "./AgentFeature.js";
|
|
21
|
+
export { type AgentFeature, type AgentFeatureAgent, type AgentFeatureScope, } from "./AgentFeature.js";
|
|
8
22
|
export { type AgentFeatureAction } from "./AgentFeatureAction.js";
|
|
9
|
-
export { AgentProviders } from "./AgentProviders.js";
|
|
10
|
-
export { defineAgentTool, type AgentTool, type AnyAgentTool, } from "./AgentTool.js";
|
|
23
|
+
export { AgentProviders, type AgentProviderSelection, type AgentProviderSource, } from "./AgentProviders.js";
|
|
24
|
+
export { defineAgentTool, type AgentTool, type AgentToolAutoPermissionActionDescriber, type AgentToolAutoPermissionPredicate, type AnyAgentTool, } from "./AgentTool.js";
|
|
11
25
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../sources/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EACH,SAAS,EACT,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,GAC1B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACH,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../sources/index.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAG5E,OAAO,EAAE,KAAK,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,KAAK,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AACvF,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAA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B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,GAC7B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAG1D,OAAO,EACH,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACzB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAGlE,OAAO,EACH,cAAc,EACd,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,GAC3B,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EACH,eAAe,EACf,KAAK,SAAS,EACd,KAAK,sCAAsC,EAC3C,KAAK,gCAAgC,EACrC,KAAK,YAAY,GACpB,MAAM,gBAAgB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,32 @@
|
|
|
1
|
+
/** Public surface of `@slopus/happy-agent-base`, re-exported by concern. */
|
|
2
|
+
// Agent instances and the collection that creates, resolves, and stores them.
|
|
1
3
|
export { Agent } from "./Agent.js";
|
|
4
|
+
export {} from "./AgentSystem.js";
|
|
5
|
+
export {} from "./AgentSystem.js";
|
|
6
|
+
export { AgentSystemLocal } from "./AgentSystemLocal.js";
|
|
7
|
+
export { AgentSystemRef } from "./AgentSystemRef.js";
|
|
8
|
+
export { AgentRef } from "./AgentRef.js";
|
|
9
|
+
export { agentSystem, withAgentSystem } from "./AgentSystemContext.js";
|
|
10
|
+
// Static agent configuration: environment, per-feature settings, and their context carrier.
|
|
11
|
+
export { agentConfig, agentConfigSchema, agentFeatureConfig, agentEnvironment, agentEnvironmentSchema, agentFeatureConfigSchema, agentPlatformSchema, currentAgentEnvironment, withAgentConfig, } from "./AgentConfig.js";
|
|
12
|
+
export { AgentStorage } from "./AgentStorage.js";
|
|
13
|
+
// Provider/model routing and the curated model catalog.
|
|
14
|
+
export {} from "./AgentModel.js";
|
|
15
|
+
export { knownModels } from "./models.js";
|
|
16
|
+
// The run loop itself: its context carriers, key-value store, hook contracts, and persistence.
|
|
2
17
|
export { AgentBase, } from "./AgentBase.js";
|
|
3
|
-
export {
|
|
18
|
+
export { agentEffort, agentId, agentKV, agentModel, agentProvider, agentRunKV, agentServiceTier, withAgentContext, withAgentKV, withAgentRunKV, } from "./AgentContexts.js";
|
|
19
|
+
export { agentTaskContext, taskContextBeforeToolCall, withAgentTaskContext, } from "./AgentTaskContext.js";
|
|
20
|
+
export { AgentKV } from "./AgentKV.js";
|
|
4
21
|
export {} from "./AgentBaseHooks.js";
|
|
5
|
-
export {} from "./
|
|
22
|
+
export {} from "./AgentPersistence.js";
|
|
23
|
+
export { agentBasePendingStateOf, agentBaseStoreOwesWork, AGENT_BASE_PENDING_KEY, } from "./AgentBasePending.js";
|
|
6
24
|
export {} from "./AgentBaseState.js";
|
|
25
|
+
// Features: pluggable capabilities that compose into an agent's hooks, tools, and instructions.
|
|
7
26
|
export {} from "./AgentFeature.js";
|
|
8
27
|
export {} from "./AgentFeatureAction.js";
|
|
9
|
-
|
|
28
|
+
// Registry of provider sources agents resolve their selected models through.
|
|
29
|
+
export { AgentProviders, } from "./AgentProviders.js";
|
|
30
|
+
// Tool definitions.
|
|
10
31
|
export { defineAgentTool, } from "./AgentTool.js";
|
|
11
32
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../sources/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAqB,MAAM,YAAY,CAAC;AACtD,OAAO,EACH,SAAS,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../sources/index.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAE5E,8EAA8E;AAC9E,OAAO,EAAE,KAAK,EAAqB,MAAM,YAAY,CAAC;AACtD,OAAO,EAAoB,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAA4B,MAAM,kBAAkB,CAAC;AAC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AAc,GAGjB,MAAM,qBAAqB,CAAC;AAE7B,oBAAoB;AACpB,OAAO,EACH,eAAe,GAKlB,MAAM,gBAAgB,CAAC"}
|
package/dist/models.d.ts
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Curated model catalog for rig defaults.
|
|
3
|
+
*
|
|
4
|
+
* Order matches the Conductor model picker.
|
|
5
|
+
*/
|
|
6
|
+
/** Model metadata exposed by a provider. */
|
|
7
|
+
export interface Model<TThinkingLevel extends string = string> {
|
|
8
|
+
/** The model identifier as the provider knows it. */
|
|
9
|
+
id: string;
|
|
10
|
+
/** Human-readable label shown in the model picker. */
|
|
11
|
+
name: string;
|
|
12
|
+
/** Thinking levels this model accepts, in picker order. */
|
|
13
|
+
thinkingLevels: readonly TThinkingLevel[];
|
|
14
|
+
/** The thinking level used when nothing more specific was requested. */
|
|
15
|
+
defaultThinkingLevel: TThinkingLevel;
|
|
16
|
+
/** Maximum input context accepted by the model. */
|
|
17
|
+
contextWindow?: number;
|
|
18
|
+
/** Smaller effective window used to decide when automatic compaction begins. */
|
|
19
|
+
autoCompactWindow?: number;
|
|
20
|
+
}
|
|
21
|
+
/** Anthropic's Fable 5, full effort ladder over a 1M-token context. */
|
|
22
|
+
export declare const modelAnthropicFable5: Model<"high" | "low" | "max" | "medium" | "off" | "ultra" | "xhigh">;
|
|
23
|
+
/** Anthropic's Opus 5, full effort ladder over a 1M-token context. */
|
|
24
|
+
export declare const modelAnthropicOpus5: Model<"high" | "low" | "max" | "medium" | "off" | "ultra" | "xhigh">;
|
|
25
|
+
/** Anthropic's Opus 4.8, full effort ladder over a 1M-token context. */
|
|
26
|
+
export declare const modelAnthropicOpus48: Model<"high" | "low" | "max" | "medium" | "off" | "ultra" | "xhigh">;
|
|
27
|
+
/** Anthropic's Opus 4.7, full effort ladder over a 1M-token context. */
|
|
28
|
+
export declare const modelAnthropicOpus47: Model<"high" | "low" | "max" | "medium" | "off" | "ultra" | "xhigh">;
|
|
29
|
+
/** Anthropic's Opus 4.6, a 1M-token context but without the xhigh/ultra effort levels. */
|
|
30
|
+
export declare const modelAnthropicOpus46: Model<"high" | "low" | "max" | "medium" | "off">;
|
|
31
|
+
/** Anthropic's Sonnet 5, full effort ladder over a 1M-token context. */
|
|
32
|
+
export declare const modelAnthropicSonnet5: Model<"high" | "low" | "max" | "medium" | "off" | "ultra" | "xhigh">;
|
|
33
|
+
/** Anthropic's Sonnet 4.6, 1M-token context variant without the xhigh/ultra effort levels. */
|
|
34
|
+
export declare const modelAnthropicSonnet461m: Model<"high" | "low" | "max" | "medium" | "off">;
|
|
35
|
+
/** Anthropic's Sonnet 4.6, the non-1M variant with the smaller default context window. */
|
|
36
|
+
export declare const modelAnthropicSonnet46: Model<"high" | "low" | "max" | "medium" | "off">;
|
|
37
|
+
/** Anthropic's Haiku 4.5, which has no thinking levels beyond off. */
|
|
38
|
+
export declare const modelAnthropicHaiku45: Model<"off">;
|
|
39
|
+
/** OpenAI's GPT-5.5, including the minimal effort level below low. */
|
|
40
|
+
export declare const modelOpenaiGpt55: Model<"high" | "low" | "medium" | "minimal" | "off" | "xhigh">;
|
|
41
|
+
/** OpenAI's GPT-5.6 Sol, full effort ladder up to ultra. */
|
|
42
|
+
export declare const modelOpenaiGpt56Sol: Model<"high" | "low" | "max" | "medium" | "off" | "ultra" | "xhigh">;
|
|
43
|
+
/** OpenAI's GPT-5.6 Terra, full effort ladder up to ultra. */
|
|
44
|
+
export declare const modelOpenaiGpt56Terra: Model<"high" | "low" | "max" | "medium" | "off" | "ultra" | "xhigh">;
|
|
45
|
+
/** OpenAI's GPT-5.6 Luna, full effort ladder up to max but without ultra. */
|
|
46
|
+
export declare const modelOpenaiGpt56Luna: Model<"high" | "low" | "max" | "medium" | "off" | "xhigh">;
|
|
47
|
+
/** OpenAI's GPT-5.4, including the minimal effort level below low. */
|
|
48
|
+
export declare const modelOpenaiGpt54: Model<"high" | "low" | "medium" | "minimal" | "off" | "xhigh">;
|
|
49
|
+
/**
|
|
50
|
+
* Reviews one proposed action for Auto permissions. It never appears in the model picker and is
|
|
51
|
+
* never used for ordinary inference, so it is deliberately absent from the profile catalog.
|
|
52
|
+
*/
|
|
53
|
+
export declare const modelOpenaiCodexAutoReview: Model<"high" | "low" | "medium" | "xhigh">;
|
|
54
|
+
/** xAI's Grok Build, which only ever runs at its single "on" thinking level. */
|
|
55
|
+
export declare const modelXaiGrokBuild: Model<"on">;
|
|
56
|
+
/** xAI's Grok 4.5. */
|
|
57
|
+
export declare const modelXaiGrok45: Model<"high" | "low" | "medium">;
|
|
58
|
+
/** xAI's Composer 2.5, which has no thinking levels beyond off. */
|
|
59
|
+
export declare const modelXaiGrokComposer25Fast: Model<"off">;
|
|
60
|
+
/** Every model definition in the catalog, in picker order. */
|
|
61
|
+
export declare const knownModels: readonly Model[];
|
|
62
|
+
//# sourceMappingURL=models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../sources/models.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,4CAA4C;AAC5C,MAAM,WAAW,KAAK,CAAC,cAAc,SAAS,MAAM,GAAG,MAAM;IACzD,qDAAqD;IACrD,EAAE,EAAE,MAAM,CAAC;IACX,sDAAsD;IACtD,IAAI,EAAE,MAAM,CAAC;IACb,2DAA2D;IAC3D,cAAc,EAAE,SAAS,cAAc,EAAE,CAAC;IAC1C,wEAAwE;IACxE,oBAAoB,EAAE,cAAc,CAAC;IACrC,mDAAmD;IACnD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gFAAgF;IAChF,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAcD,uEAAuE;AACvE,eAAO,MAAM,oBAAoB,sEAO/B,CAAC;AAEH,sEAAsE;AACtE,eAAO,MAAM,mBAAmB,sEAO9B,CAAC;AAEH,wEAAwE;AACxE,eAAO,MAAM,oBAAoB,sEAO/B,CAAC;AAEH,wEAAwE;AACxE,eAAO,MAAM,oBAAoB,sEAO/B,CAAC;AAEH,0FAA0F;AAC1F,eAAO,MAAM,oBAAoB,kDAO/B,CAAC;AAEH,wEAAwE;AACxE,eAAO,MAAM,qBAAqB,sEAOhC,CAAC;AAEH,8FAA8F;AAC9F,eAAO,MAAM,wBAAwB,kDAOnC,CAAC;AAEH,0FAA0F;AAC1F,eAAO,MAAM,sBAAsB,kDAMjC,CAAC;AAEH,sEAAsE;AACtE,eAAO,MAAM,qBAAqB,cAMhC,CAAC;AAEH,sEAAsE;AACtE,eAAO,MAAM,gBAAgB,gEAM3B,CAAC;AAEH,4DAA4D;AAC5D,eAAO,MAAM,mBAAmB,sEAM9B,CAAC;AAEH,8DAA8D;AAC9D,eAAO,MAAM,qBAAqB,sEAMhC,CAAC;AAEH,6EAA6E;AAC7E,eAAO,MAAM,oBAAoB,4DAM/B,CAAC;AAEH,sEAAsE;AACtE,eAAO,MAAM,gBAAgB,gEAM3B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,0BAA0B,4CAMrC,CAAC;AAEH,gFAAgF;AAChF,eAAO,MAAM,iBAAiB,aAM5B,CAAC;AAEH,sBAAsB;AACtB,eAAO,MAAM,cAAc,kCAMzB,CAAC;AAEH,mEAAmE;AACnE,eAAO,MAAM,0BAA0B,cAMrC,CAAC;AAEH,8DAA8D;AAC9D,eAAO,MAAM,WAAW,EAAE,SAAS,KAAK,EAmBvC,CAAC"}
|
package/dist/models.js
ADDED
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Curated model catalog for rig defaults.
|
|
3
|
+
*
|
|
4
|
+
* Order matches the Conductor model picker.
|
|
5
|
+
*/
|
|
6
|
+
/** Statically typed helper for constructing a model definition. */
|
|
7
|
+
function defineModel(model) {
|
|
8
|
+
return model;
|
|
9
|
+
}
|
|
10
|
+
/** Anthropic's Fable 5, full effort ladder over a 1M-token context. */
|
|
11
|
+
export const modelAnthropicFable5 = defineModel({
|
|
12
|
+
id: "anthropic/fable-5",
|
|
13
|
+
name: "Fable 5",
|
|
14
|
+
thinkingLevels: ["off", "low", "medium", "high", "xhigh", "max", "ultra"],
|
|
15
|
+
defaultThinkingLevel: "medium",
|
|
16
|
+
contextWindow: 1_000_000,
|
|
17
|
+
autoCompactWindow: 333_000,
|
|
18
|
+
});
|
|
19
|
+
/** Anthropic's Opus 5, full effort ladder over a 1M-token context. */
|
|
20
|
+
export const modelAnthropicOpus5 = defineModel({
|
|
21
|
+
id: "anthropic/opus-5",
|
|
22
|
+
name: "Opus 5 1M",
|
|
23
|
+
thinkingLevels: ["off", "low", "medium", "high", "xhigh", "max", "ultra"],
|
|
24
|
+
defaultThinkingLevel: "medium",
|
|
25
|
+
contextWindow: 1_000_000,
|
|
26
|
+
autoCompactWindow: 333_000,
|
|
27
|
+
});
|
|
28
|
+
/** Anthropic's Opus 4.8, full effort ladder over a 1M-token context. */
|
|
29
|
+
export const modelAnthropicOpus48 = defineModel({
|
|
30
|
+
id: "anthropic/opus-4-8",
|
|
31
|
+
name: "Opus 4.8 1M",
|
|
32
|
+
thinkingLevels: ["off", "low", "medium", "high", "xhigh", "max", "ultra"],
|
|
33
|
+
defaultThinkingLevel: "medium",
|
|
34
|
+
contextWindow: 1_000_000,
|
|
35
|
+
autoCompactWindow: 333_000,
|
|
36
|
+
});
|
|
37
|
+
/** Anthropic's Opus 4.7, full effort ladder over a 1M-token context. */
|
|
38
|
+
export const modelAnthropicOpus47 = defineModel({
|
|
39
|
+
id: "anthropic/opus-4-7",
|
|
40
|
+
name: "Opus 4.7 1M",
|
|
41
|
+
thinkingLevels: ["off", "low", "medium", "high", "xhigh", "max", "ultra"],
|
|
42
|
+
defaultThinkingLevel: "medium",
|
|
43
|
+
contextWindow: 1_000_000,
|
|
44
|
+
autoCompactWindow: 333_000,
|
|
45
|
+
});
|
|
46
|
+
/** Anthropic's Opus 4.6, a 1M-token context but without the xhigh/ultra effort levels. */
|
|
47
|
+
export const modelAnthropicOpus46 = defineModel({
|
|
48
|
+
id: "anthropic/opus-4-6",
|
|
49
|
+
name: "Opus 4.6 1M",
|
|
50
|
+
thinkingLevels: ["off", "low", "medium", "high", "max"],
|
|
51
|
+
defaultThinkingLevel: "medium",
|
|
52
|
+
contextWindow: 1_000_000,
|
|
53
|
+
autoCompactWindow: 333_000,
|
|
54
|
+
});
|
|
55
|
+
/** Anthropic's Sonnet 5, full effort ladder over a 1M-token context. */
|
|
56
|
+
export const modelAnthropicSonnet5 = defineModel({
|
|
57
|
+
id: "anthropic/sonnet-5",
|
|
58
|
+
name: "Sonnet 5",
|
|
59
|
+
thinkingLevels: ["off", "low", "medium", "high", "xhigh", "max", "ultra"],
|
|
60
|
+
defaultThinkingLevel: "medium",
|
|
61
|
+
contextWindow: 1_000_000,
|
|
62
|
+
autoCompactWindow: 333_000,
|
|
63
|
+
});
|
|
64
|
+
/** Anthropic's Sonnet 4.6, 1M-token context variant without the xhigh/ultra effort levels. */
|
|
65
|
+
export const modelAnthropicSonnet461m = defineModel({
|
|
66
|
+
id: "anthropic/sonnet-4-6-1m",
|
|
67
|
+
name: "Sonnet 4.6 1M",
|
|
68
|
+
thinkingLevels: ["off", "low", "medium", "high", "max"],
|
|
69
|
+
defaultThinkingLevel: "medium",
|
|
70
|
+
contextWindow: 1_000_000,
|
|
71
|
+
autoCompactWindow: 333_000,
|
|
72
|
+
});
|
|
73
|
+
/** Anthropic's Sonnet 4.6, the non-1M variant with the smaller default context window. */
|
|
74
|
+
export const modelAnthropicSonnet46 = defineModel({
|
|
75
|
+
id: "anthropic/sonnet-4-6",
|
|
76
|
+
name: "Sonnet 4.6",
|
|
77
|
+
thinkingLevels: ["off", "low", "medium", "high", "max"],
|
|
78
|
+
defaultThinkingLevel: "medium",
|
|
79
|
+
contextWindow: 200_000,
|
|
80
|
+
});
|
|
81
|
+
/** Anthropic's Haiku 4.5, which has no thinking levels beyond off. */
|
|
82
|
+
export const modelAnthropicHaiku45 = defineModel({
|
|
83
|
+
id: "anthropic/haiku-4-5",
|
|
84
|
+
name: "Haiku 4.5",
|
|
85
|
+
thinkingLevels: ["off"],
|
|
86
|
+
defaultThinkingLevel: "off",
|
|
87
|
+
contextWindow: 200_000,
|
|
88
|
+
});
|
|
89
|
+
/** OpenAI's GPT-5.5, including the minimal effort level below low. */
|
|
90
|
+
export const modelOpenaiGpt55 = defineModel({
|
|
91
|
+
id: "openai/gpt-5.5",
|
|
92
|
+
name: "GPT-5.5",
|
|
93
|
+
thinkingLevels: ["off", "minimal", "low", "medium", "high", "xhigh"],
|
|
94
|
+
defaultThinkingLevel: "medium",
|
|
95
|
+
contextWindow: 272_000,
|
|
96
|
+
});
|
|
97
|
+
/** OpenAI's GPT-5.6 Sol, full effort ladder up to ultra. */
|
|
98
|
+
export const modelOpenaiGpt56Sol = defineModel({
|
|
99
|
+
id: "openai/gpt-5.6-sol",
|
|
100
|
+
name: "GPT-5.6 Sol",
|
|
101
|
+
thinkingLevels: ["off", "low", "medium", "high", "xhigh", "max", "ultra"],
|
|
102
|
+
defaultThinkingLevel: "medium",
|
|
103
|
+
contextWindow: 372_000,
|
|
104
|
+
});
|
|
105
|
+
/** OpenAI's GPT-5.6 Terra, full effort ladder up to ultra. */
|
|
106
|
+
export const modelOpenaiGpt56Terra = defineModel({
|
|
107
|
+
id: "openai/gpt-5.6-terra",
|
|
108
|
+
name: "GPT-5.6 Terra",
|
|
109
|
+
thinkingLevels: ["off", "low", "medium", "high", "xhigh", "max", "ultra"],
|
|
110
|
+
defaultThinkingLevel: "medium",
|
|
111
|
+
contextWindow: 372_000,
|
|
112
|
+
});
|
|
113
|
+
/** OpenAI's GPT-5.6 Luna, full effort ladder up to max but without ultra. */
|
|
114
|
+
export const modelOpenaiGpt56Luna = defineModel({
|
|
115
|
+
id: "openai/gpt-5.6-luna",
|
|
116
|
+
name: "GPT-5.6 Luna",
|
|
117
|
+
thinkingLevels: ["off", "low", "medium", "high", "xhigh", "max"],
|
|
118
|
+
defaultThinkingLevel: "medium",
|
|
119
|
+
contextWindow: 372_000,
|
|
120
|
+
});
|
|
121
|
+
/** OpenAI's GPT-5.4, including the minimal effort level below low. */
|
|
122
|
+
export const modelOpenaiGpt54 = defineModel({
|
|
123
|
+
id: "openai/gpt-5.4",
|
|
124
|
+
name: "GPT-5.4",
|
|
125
|
+
thinkingLevels: ["off", "minimal", "low", "medium", "high", "xhigh"],
|
|
126
|
+
defaultThinkingLevel: "medium",
|
|
127
|
+
contextWindow: 272_000,
|
|
128
|
+
});
|
|
129
|
+
/**
|
|
130
|
+
* Reviews one proposed action for Auto permissions. It never appears in the model picker and is
|
|
131
|
+
* never used for ordinary inference, so it is deliberately absent from the profile catalog.
|
|
132
|
+
*/
|
|
133
|
+
export const modelOpenaiCodexAutoReview = defineModel({
|
|
134
|
+
id: "openai/codex-auto-review",
|
|
135
|
+
name: "Codex Auto Review",
|
|
136
|
+
thinkingLevels: ["low", "medium", "high", "xhigh"],
|
|
137
|
+
defaultThinkingLevel: "low",
|
|
138
|
+
contextWindow: 272_000,
|
|
139
|
+
});
|
|
140
|
+
/** xAI's Grok Build, which only ever runs at its single "on" thinking level. */
|
|
141
|
+
export const modelXaiGrokBuild = defineModel({
|
|
142
|
+
id: "xai/grok-build",
|
|
143
|
+
name: "Grok Build",
|
|
144
|
+
thinkingLevels: ["on"],
|
|
145
|
+
defaultThinkingLevel: "on",
|
|
146
|
+
contextWindow: 500_000,
|
|
147
|
+
});
|
|
148
|
+
/** xAI's Grok 4.5. */
|
|
149
|
+
export const modelXaiGrok45 = defineModel({
|
|
150
|
+
id: "xai/grok-4.5",
|
|
151
|
+
name: "Grok 4.5",
|
|
152
|
+
thinkingLevels: ["low", "medium", "high"],
|
|
153
|
+
defaultThinkingLevel: "high",
|
|
154
|
+
contextWindow: 500_000,
|
|
155
|
+
});
|
|
156
|
+
/** xAI's Composer 2.5, which has no thinking levels beyond off. */
|
|
157
|
+
export const modelXaiGrokComposer25Fast = defineModel({
|
|
158
|
+
id: "xai/grok-composer-2.5-fast",
|
|
159
|
+
name: "Composer 2.5",
|
|
160
|
+
thinkingLevels: ["off"],
|
|
161
|
+
defaultThinkingLevel: "off",
|
|
162
|
+
contextWindow: 200_000,
|
|
163
|
+
});
|
|
164
|
+
/** Every model definition in the catalog, in picker order. */
|
|
165
|
+
export const knownModels = [
|
|
166
|
+
modelAnthropicFable5,
|
|
167
|
+
modelAnthropicOpus5,
|
|
168
|
+
modelAnthropicOpus48,
|
|
169
|
+
modelAnthropicOpus47,
|
|
170
|
+
modelAnthropicOpus46,
|
|
171
|
+
modelAnthropicSonnet5,
|
|
172
|
+
modelAnthropicSonnet461m,
|
|
173
|
+
modelAnthropicSonnet46,
|
|
174
|
+
modelAnthropicHaiku45,
|
|
175
|
+
modelOpenaiGpt55,
|
|
176
|
+
modelOpenaiGpt56Sol,
|
|
177
|
+
modelOpenaiGpt56Terra,
|
|
178
|
+
modelOpenaiGpt56Luna,
|
|
179
|
+
modelOpenaiGpt54,
|
|
180
|
+
modelOpenaiCodexAutoReview,
|
|
181
|
+
modelXaiGrokBuild,
|
|
182
|
+
modelXaiGrok45,
|
|
183
|
+
modelXaiGrokComposer25Fast,
|
|
184
|
+
];
|
|
185
|
+
//# sourceMappingURL=models.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../sources/models.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAkBH,mEAAmE;AACnE,SAAS,WAAW,CAAsC,KAOzD;IACG,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,uEAAuE;AACvE,MAAM,CAAC,MAAM,oBAAoB,GAAG,WAAW,CAAC;IAC5C,EAAE,EAAE,mBAAmB;IACvB,IAAI,EAAE,SAAS;IACf,cAAc,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC;IACzE,oBAAoB,EAAE,QAAQ;IAC9B,aAAa,EAAE,SAAS;IACxB,iBAAiB,EAAE,OAAO;C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pB,oBAAoB;IACpB,qBAAqB;IACrB,wBAAwB;IACxB,sBAAsB;IACtB,qBAAqB;IACrB,gBAAgB;IAChB,mBAAmB;IACnB,qBAAqB;IACrB,oBAAoB;IACpB,gBAAgB;IAChB,0BAA0B;IAC1B,iBAAiB;IACjB,cAAc;IACd,0BAA0B;CAC7B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slopus/happy-agent-base",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.0.3",
|
|
4
|
+
"description": "Durable runtime for Happy agents.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -24,8 +24,9 @@
|
|
|
24
24
|
"access": "public"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
+
"@paralleldrive/cuid2": "^3.3.0",
|
|
27
28
|
"@sinclair/typebox": "^0.34.49",
|
|
28
|
-
"@slopus/happy-providers": "0.0.
|
|
29
|
+
"@slopus/happy-providers": "0.0.7",
|
|
29
30
|
"@steve.kite/stdlib": "0.0.8"
|
|
30
31
|
},
|
|
31
32
|
"devDependencies": {
|
|
@@ -39,6 +40,7 @@
|
|
|
39
40
|
"scripts": {
|
|
40
41
|
"build": "node --eval \"import('node:fs/promises').then(({ rm }) => rm('dist', { force: true, recursive: true }))\" && tsc -p tsconfig.build.json",
|
|
41
42
|
"check": "tsc --noEmit",
|
|
42
|
-
"test": "vitest run --passWithNoTests"
|
|
43
|
+
"test": "vitest run --passWithNoTests",
|
|
44
|
+
"test:real": "RIG_LIVE_TEST=1 vitest run tests/real-gym"
|
|
43
45
|
}
|
|
44
46
|
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { SessionReasoningEffort, SessionServiceTier } from "@slopus/happy-providers";
|
|
2
|
-
import { type Context } from "@steve.kite/stdlib";
|
|
3
|
-
/**
|
|
4
|
-
* Derive the agent's context carrying its provider ID, model, effort, and service tier — all serializable
|
|
5
|
-
* values. The agent applies this once at construction, so hooks and tool executions can read
|
|
6
|
-
* the values back through the accessors below.
|
|
7
|
-
*/
|
|
8
|
-
export declare function withAgentBaseContext(ctx: Context, values: {
|
|
9
|
-
readonly provider: string;
|
|
10
|
-
readonly model?: string | undefined;
|
|
11
|
-
readonly effort?: SessionReasoningEffort | undefined;
|
|
12
|
-
readonly serviceTier?: SessionServiceTier | undefined;
|
|
13
|
-
}): Context;
|
|
14
|
-
/** The model configured for the agent owning this context, when one was set. */
|
|
15
|
-
export declare function agentBaseModel(ctx: Context): string | undefined;
|
|
16
|
-
/** The reasoning effort configured for the agent owning this context, when one was set. */
|
|
17
|
-
export declare function agentBaseEffort(ctx: Context): SessionReasoningEffort | undefined;
|
|
18
|
-
/** The registry ID of the provider of the agent owning this context. */
|
|
19
|
-
export declare function agentBaseProvider(ctx: Context): string | undefined;
|
|
20
|
-
/** The service tier configured for the agent owning this context, when one was set. */
|
|
21
|
-
export declare function agentBaseServiceTier(ctx: Context): SessionServiceTier | undefined;
|
|
22
|
-
//# sourceMappingURL=AgentBaseContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AgentBaseContext.d.ts","sourceRoot":"","sources":["../sources/AgentBaseContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC1F,OAAO,EAA0B,KAAK,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAmB1E;;;;GAIG;AACH,wBAAgB,oBAAoB,CAChC,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE;IACJ,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,MAAM,CAAC,EAAE,sBAAsB,GAAG,SAAS,CAAC;IACrD,QAAQ,CAAC,WAAW,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;CACzD,GACF,OAAO,CAKT;AAED,gFAAgF;AAChF,wBAAgB,cAAc,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAE/D;AAED,2FAA2F;AAC3F,wBAAgB,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG,sBAAsB,GAAG,SAAS,CAEhF;AAED,wEAAwE;AACxE,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAElE;AAED,uFAAuF;AACvF,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,OAAO,GAAG,kBAAkB,GAAG,SAAS,CAEjF"}
|
package/dist/AgentBaseContext.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { createContextNamespace } from "@steve.kite/stdlib";
|
|
2
|
-
const modelNamespace = createContextNamespace("agentBaseModel", undefined);
|
|
3
|
-
const effortNamespace = createContextNamespace("agentBaseEffort", undefined);
|
|
4
|
-
const providerNamespace = createContextNamespace("agentBaseProvider", undefined);
|
|
5
|
-
const serviceTierNamespace = createContextNamespace("agentBaseServiceTier", undefined);
|
|
6
|
-
/**
|
|
7
|
-
* Derive the agent's context carrying its provider ID, model, effort, and service tier — all serializable
|
|
8
|
-
* values. The agent applies this once at construction, so hooks and tool executions can read
|
|
9
|
-
* the values back through the accessors below.
|
|
10
|
-
*/
|
|
11
|
-
export function withAgentBaseContext(ctx, values) {
|
|
12
|
-
const withProvider = providerNamespace.set(ctx, values.provider);
|
|
13
|
-
const withModel = modelNamespace.set(withProvider, values.model);
|
|
14
|
-
const withEffort = effortNamespace.set(withModel, values.effort);
|
|
15
|
-
return serviceTierNamespace.set(withEffort, values.serviceTier);
|
|
16
|
-
}
|
|
17
|
-
/** The model configured for the agent owning this context, when one was set. */
|
|
18
|
-
export function agentBaseModel(ctx) {
|
|
19
|
-
return modelNamespace.get(ctx);
|
|
20
|
-
}
|
|
21
|
-
/** The reasoning effort configured for the agent owning this context, when one was set. */
|
|
22
|
-
export function agentBaseEffort(ctx) {
|
|
23
|
-
return effortNamespace.get(ctx);
|
|
24
|
-
}
|
|
25
|
-
/** The registry ID of the provider of the agent owning this context. */
|
|
26
|
-
export function agentBaseProvider(ctx) {
|
|
27
|
-
return providerNamespace.get(ctx);
|
|
28
|
-
}
|
|
29
|
-
/** The service tier configured for the agent owning this context, when one was set. */
|
|
30
|
-
export function agentBaseServiceTier(ctx) {
|
|
31
|
-
return serviceTierNamespace.get(ctx);
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=AgentBaseContext.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AgentBaseContext.js","sourceRoot":"","sources":["../sources/AgentBaseContext.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAgB,MAAM,oBAAoB,CAAC;AAE1E,MAAM,cAAc,GAAG,sBAAsB,CACzC,gBAAgB,EAChB,SAAS,CACZ,CAAC;AACF,MAAM,eAAe,GAAG,sBAAsB,CAC1C,iBAAiB,EACjB,SAAS,CACZ,CAAC;AACF,MAAM,iBAAiB,GAAG,sBAAsB,CAC5C,mBAAmB,EACnB,SAAS,CACZ,CAAC;AACF,MAAM,oBAAoB,GAAG,sBAAsB,CAC/C,sBAAsB,EACtB,SAAS,CACZ,CAAC;AAEF;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAChC,GAAY,EACZ,MAKC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;IACjE,MAAM,SAAS,GAAG,cAAc,CAAC,GAAG,CAAC,YAAY,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IACjE,MAAM,UAAU,GAAG,eAAe,CAAC,GAAG,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IACjE,OAAO,oBAAoB,CAAC,GAAG,CAAC,UAAU,E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