@multiclawcli/core 0.12.0 → 0.14.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/dist/config/permissionMode.d.ts +17 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.js +2879 -2366
- package/dist/orchestrator/AgentRunner.d.ts +4 -1
- package/dist/orchestrator/AgentSessionManager.d.ts +18 -10
- package/dist/orchestrator/Orchestrator.d.ts +22 -2
- package/dist/providers/catalog.d.ts +0 -2
- package/dist/types/agent.d.ts +14 -5
- package/dist/types/config.d.ts +42 -16
- package/dist/types/event.d.ts +21 -0
- package/dist/types/leader.d.ts +7 -2
- package/dist/types/runtime.d.ts +7 -5
- package/dist/types/session.d.ts +36 -0
- package/dist/utils/handoff.d.ts +7 -0
- package/dist/utils/resumePlan.d.ts +3 -3
- package/dist/utils/session.d.ts +7 -0
- package/dist/utils/work.d.ts +3 -0
- package/package.json +1 -1
- package/dist/config/toolsPolicy.d.ts +0 -10
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { AgentDefinition, PermissionMode } from "../types/agent";
|
|
2
|
+
import type { MultiClawConfig } from "../types/config";
|
|
3
|
+
/**
|
|
4
|
+
* The approval mode that applies to one agent.
|
|
5
|
+
*
|
|
6
|
+
* Three levels, most specific first: the agent's own `permissions`, then the
|
|
7
|
+
* project's `permissions`, then `defaults.permissions`. It lives here rather
|
|
8
|
+
* than inline in the runner because a second copy drifts: the console's header
|
|
9
|
+
* used to fold `defaults` into the same test as the project level, so a config
|
|
10
|
+
* with `permissions: { mode: "deny" }` and `defaults.permissions.mode: "auto"`
|
|
11
|
+
* announced `auto` while the runner enforced `deny`.
|
|
12
|
+
*
|
|
13
|
+
* `undefined` means nobody configured a mode and the runtime's own default
|
|
14
|
+
* applies. The console resolves that to `ask` for itself, because a human is
|
|
15
|
+
* sitting there to answer.
|
|
16
|
+
*/
|
|
17
|
+
export declare function resolvePermissionMode(config: Pick<MultiClawConfig, "permissions" | "defaults">, agent?: Pick<AgentDefinition, "permissions">): PermissionMode | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { agents } from "./agents";
|
|
2
2
|
export { defineConfig } from "./config/defineConfig";
|
|
3
|
-
export {
|
|
3
|
+
export { resolvePermissionMode } from "./config/permissionMode";
|
|
4
4
|
export { EventBus } from "./event/EventBus";
|
|
5
5
|
export { AgentSessionManager, type SupplementReport } from "./orchestrator/AgentSessionManager";
|
|
6
6
|
export { Orchestrator } from "./orchestrator/Orchestrator";
|
|
@@ -10,5 +10,8 @@ export { AcpRuntime, runtimeRegistry } from "./runtime";
|
|
|
10
10
|
export { validateRuntimeQuestionContent } from "./runtime/AcpRuntime";
|
|
11
11
|
export { RuntimeBase } from "./runtime/RuntimeBase";
|
|
12
12
|
export * from "./types";
|
|
13
|
+
export type { SessionEvent, SessionIntent, SessionRecord } from "./types/session";
|
|
13
14
|
export { ABORT_ERROR_NAME, abortError, isAbortError } from "./utils/abort";
|
|
14
15
|
export { describeResumePlan, type ResumePlan } from "./utils/resumePlan";
|
|
16
|
+
export { describeSession, isSessionEvent, isSessionRecord, sessionCompatibilityKey, } from "./utils/session";
|
|
17
|
+
export { isWorkContext } from "./utils/work";
|