@clinebot/core 0.0.3 → 0.0.4
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 +7 -7
- package/dist/index.d.ts +1 -0
- package/dist/index.node.js +113 -93
- package/package.json +12 -13
- package/src/index.ts +9 -0
- package/dist/index.browser.d.ts +0 -1
- package/dist/index.browser.js +0 -220
- package/dist/index.js +0 -220
- package/src/index.browser.ts +0 -1
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ session lifecycle into a host-ready runtime.
|
|
|
10
10
|
- provider settings and account services
|
|
11
11
|
- default runtime tools and MCP integration
|
|
12
12
|
- storage-backed session and team state helpers
|
|
13
|
-
- host-facing Node helpers through `@clinebot/core
|
|
13
|
+
- host-facing Node helpers through `@clinebot/core`
|
|
14
14
|
|
|
15
15
|
## Installation
|
|
16
16
|
|
|
@@ -20,15 +20,15 @@ npm install @clinebot/core
|
|
|
20
20
|
|
|
21
21
|
## Entry Points
|
|
22
22
|
|
|
23
|
-
- `@clinebot/core`: core contracts, shared utilities, and
|
|
24
|
-
- `@clinebot/core/node`:
|
|
23
|
+
- `@clinebot/core`: core contracts, shared utilities, and Node/server helpers for building hosts and runtimes
|
|
24
|
+
- `@clinebot/core/node`: optional alias for the same Node/server runtime surface
|
|
25
25
|
|
|
26
26
|
## Typical Usage
|
|
27
27
|
|
|
28
|
-
Most host apps should start with `@clinebot/core
|
|
28
|
+
Most host apps should start with `@clinebot/core`.
|
|
29
29
|
|
|
30
30
|
```ts
|
|
31
|
-
import { createSessionHost } from "@clinebot/core
|
|
31
|
+
import { createSessionHost } from "@clinebot/core";
|
|
32
32
|
|
|
33
33
|
const host = await createSessionHost({});
|
|
34
34
|
|
|
@@ -53,7 +53,7 @@ await host.dispose();
|
|
|
53
53
|
|
|
54
54
|
### Runtime and Sessions
|
|
55
55
|
|
|
56
|
-
Use `@clinebot/core
|
|
56
|
+
Use `@clinebot/core` for host-facing runtime assembly:
|
|
57
57
|
|
|
58
58
|
- `createSessionHost(...)`
|
|
59
59
|
- `DefaultSessionManager`
|
|
@@ -73,7 +73,7 @@ The package also exports storage and settings helpers such as:
|
|
|
73
73
|
|
|
74
74
|
- `ProviderSettingsManager`
|
|
75
75
|
- `SqliteTeamStore`
|
|
76
|
-
- SQLite RPC session backend helpers from `@clinebot/core
|
|
76
|
+
- SQLite RPC session backend helpers from `@clinebot/core`
|
|
77
77
|
|
|
78
78
|
## Related Packages
|
|
79
79
|
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Runtime-agnostic core contracts and shared state utilities.
|
|
5
5
|
*/
|
|
6
|
+
export { type AgentConfig, createTool, getClineDefaultSystemPrompt, type Tool, type ToolApprovalRequest, type ToolApprovalResult, type ToolContext, } from "@clinebot/agents";
|
|
6
7
|
export type { AgentMode, BasicLogger, ConnectorHookEvent, HookSessionContext, RpcAddProviderActionRequest, RpcChatMessage, RpcChatRunTurnRequest, RpcChatRuntimeConfigBase, RpcChatRuntimeLoggerConfig, RpcChatStartSessionArtifacts, RpcChatStartSessionRequest, RpcChatTurnResult, RpcClineAccountActionRequest, RpcOAuthProviderId, RpcProviderActionRequest, RpcProviderCapability, RpcProviderCatalogResponse, RpcProviderListItem, RpcProviderModel, RpcProviderOAuthLoginResponse, RpcSaveProviderSettingsActionRequest, SessionLineage, TeamProgressProjectionEvent, ToolPolicy, } from "@clinebot/shared";
|
|
7
8
|
export { normalizeUserInput, RPC_TEAM_LIFECYCLE_EVENT_TYPE, RPC_TEAM_PROGRESS_EVENT_TYPE, resolveHookLogPath, } from "@clinebot/shared";
|
|
8
9
|
export { ensureHookLogDir, ensureParentDir, resolveClineDataDir, resolveSessionDataDir, setHomeDir, setHomeDirIfUnset, } from "@clinebot/shared/storage";
|