@clinebot/core 0.0.3 → 0.0.5
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/agents/agent-config-parser.d.ts +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.node.js +113 -93
- package/dist/runtime/session-runtime.d.ts +1 -1
- package/dist/session/default-session-manager.d.ts +1 -1
- package/dist/session/session-host.d.ts +1 -1
- package/dist/session/session-manager.d.ts +1 -1
- package/dist/session/unified-session-persistence-service.d.ts +4 -0
- package/dist/types/config.d.ts +1 -1
- package/package.json +13 -13
- package/src/agents/agent-config-parser.ts +1 -1
- package/src/index.ts +28 -19
- package/src/providers/local-provider-service.ts +25 -7
- package/src/runtime/runtime-builder.ts +2 -2
- package/src/runtime/runtime-parity.test.ts +1 -1
- package/src/runtime/session-runtime.ts +1 -1
- package/src/session/default-session-manager.ts +4 -5
- package/src/session/session-host.ts +1 -1
- package/src/session/session-manager.ts +1 -1
- package/src/session/unified-session-persistence-service.ts +213 -23
- package/src/types/config.ts +1 -1
- 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/dist/{default-tools → tools}/constants.d.ts +0 -0
- /package/dist/{default-tools → tools}/definitions.d.ts +0 -0
- /package/dist/{default-tools → tools}/executors/apply-patch-parser.d.ts +0 -0
- /package/dist/{default-tools → tools}/executors/apply-patch.d.ts +0 -0
- /package/dist/{default-tools → tools}/executors/bash.d.ts +0 -0
- /package/dist/{default-tools → tools}/executors/editor.d.ts +0 -0
- /package/dist/{default-tools → tools}/executors/file-read.d.ts +0 -0
- /package/dist/{default-tools → tools}/executors/index.d.ts +0 -0
- /package/dist/{default-tools → tools}/executors/search.d.ts +0 -0
- /package/dist/{default-tools → tools}/executors/web-fetch.d.ts +0 -0
- /package/dist/{default-tools → tools}/index.d.ts +0 -0
- /package/dist/{default-tools → tools}/model-tool-routing.d.ts +0 -0
- /package/dist/{default-tools → tools}/presets.d.ts +0 -0
- /package/dist/{default-tools → tools}/schemas.d.ts +0 -0
- /package/dist/{default-tools → tools}/types.d.ts +0 -0
- /package/src/{default-tools → tools}/constants.ts +0 -0
- /package/src/{default-tools → tools}/definitions.test.ts +0 -0
- /package/src/{default-tools → tools}/definitions.ts +0 -0
- /package/src/{default-tools → tools}/executors/apply-patch-parser.ts +0 -0
- /package/src/{default-tools → tools}/executors/apply-patch.ts +0 -0
- /package/src/{default-tools → tools}/executors/bash.ts +0 -0
- /package/src/{default-tools → tools}/executors/editor.ts +0 -0
- /package/src/{default-tools → tools}/executors/file-read.test.ts +0 -0
- /package/src/{default-tools → tools}/executors/file-read.ts +0 -0
- /package/src/{default-tools → tools}/executors/index.ts +0 -0
- /package/src/{default-tools → tools}/executors/search.ts +0 -0
- /package/src/{default-tools → tools}/executors/web-fetch.ts +0 -0
- /package/src/{default-tools → tools}/index.ts +0 -0
- /package/src/{default-tools → tools}/model-tool-routing.test.ts +0 -0
- /package/src/{default-tools → tools}/model-tool-routing.ts +0 -0
- /package/src/{default-tools → tools}/presets.test.ts +0 -0
- /package/src/{default-tools → tools}/presets.ts +0 -0
- /package/src/{default-tools → tools}/schemas.ts +0 -0
- /package/src/{default-tools → tools}/types.ts +0 -0
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,17 +3,18 @@
|
|
|
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";
|
|
9
10
|
export { type ClineAccountBalance, type ClineAccountOperations, type ClineAccountOrganization, type ClineAccountOrganizationBalance, type ClineAccountOrganizationUsageTransaction, type ClineAccountPaymentTransaction, ClineAccountService, type ClineAccountServiceOptions, type ClineAccountUsageTransaction, type ClineAccountUser, executeRpcClineAccountAction, isRpcClineAccountActionRequest, RpcClineAccountService, type RpcProviderActionExecutor, } from "./account";
|
|
10
11
|
export type { ChatMessage, ChatSessionConfig, ChatSessionStatus, ChatSummary, ChatViewState, } from "./chat/chat-schema";
|
|
11
12
|
export { ChatMessageRoleSchema, ChatMessageSchema, ChatSessionConfigSchema, ChatSessionStatusSchema, ChatSummarySchema, ChatViewStateSchema, } from "./chat/chat-schema";
|
|
12
|
-
export { ALL_DEFAULT_TOOL_NAMES, type AskQuestionExecutor, type CreateBuiltinToolsOptions, type CreateDefaultToolsOptions, createBuiltinTools, createDefaultExecutors, createDefaultTools, createDefaultToolsWithPreset, createToolPoliciesWithPreset, type DefaultExecutorsOptions, type DefaultToolName, DefaultToolNames, type DefaultToolsConfig, type ToolExecutors, type ToolPolicyPresetName, type ToolPresetName, ToolPresets, } from "./default-tools";
|
|
13
13
|
export { hasMcpSettingsFile, InMemoryMcpManager, type LoadMcpSettingsOptions, loadMcpSettingsFile, type McpConnectionStatus, type McpManager, type McpManagerOptions, type McpServerClient, type McpServerClientFactory, type McpServerRegistration, type McpServerSnapshot, type McpServerTransportConfig, type McpSettingsFile, type McpSseTransportConfig, type McpStdioTransportConfig, type McpStreamableHttpTransportConfig, type RegisterMcpServersFromSettingsOptions, registerMcpServersFromSettingsFile, resolveDefaultMcpSettingsPath, resolveMcpServerRegistrations, } from "./mcp";
|
|
14
14
|
export { ProviderSettingsManager } from "./storage/provider-settings-manager";
|
|
15
15
|
export { SqliteTeamStore, type SqliteTeamStoreOptions, } from "./storage/team-store";
|
|
16
16
|
export { buildTeamProgressSummary, toTeamProgressLifecycleEvent, } from "./team";
|
|
17
|
+
export { ALL_DEFAULT_TOOL_NAMES, type AskQuestionExecutor, type CreateBuiltinToolsOptions, type CreateDefaultToolsOptions, createBuiltinTools, createDefaultExecutors, createDefaultTools, createDefaultToolsWithPreset, createToolPoliciesWithPreset, type DefaultExecutorsOptions, type DefaultToolName, DefaultToolNames, type DefaultToolsConfig, type ToolExecutors, type ToolPolicyPresetName, type ToolPresetName, ToolPresets, } from "./tools";
|
|
17
18
|
export type { RuntimeEnvironment, SessionEvent, StoredMessages } from "./types";
|
|
18
19
|
export type { SessionStatus } from "./types/common";
|
|
19
20
|
export { SESSION_STATUSES, SessionSource } from "./types/common";
|