@theokit/agents 4.24.0 → 4.25.1

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.
@@ -1,4 +1,4 @@
1
- export * from '@theokit/sdk/interactive';
1
+ export { InteractiveBackend, InteractiveProvider, InteractiveUnavailableError, NoSuchSessionError, StartInteractiveOptions, StartInteractiveResult, WriteStdinOptions, WriteStdinResult, resolveInteractive } from '@theokit/sdk/interactive';
2
2
  import '@theokit/sdk/persistence';
3
3
  import '@theokit/sdk-pty';
4
4
  import '@theokit/sdk/sandbox';
@@ -1,3 +1,11 @@
1
+ import "./chunk-7QVYU63E.js";
2
+
1
3
  // src/interactive-entry.ts
2
- export * from "@theokit/sdk/interactive";
4
+ import { InteractiveBackend, InteractiveUnavailableError, NoSuchSessionError, resolveInteractive } from "@theokit/sdk/interactive";
5
+ export {
6
+ InteractiveBackend,
7
+ InteractiveUnavailableError,
8
+ NoSuchSessionError,
9
+ resolveInteractive
10
+ };
3
11
  //# sourceMappingURL=interactive.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/interactive-entry.ts"],"sourcesContent":["// M58 — `@theokit/agents/interactive`: pass-through of the SDK's already-OO interactive surface\n// (`InteractiveBackend` contract + `StartInteractiveOptions` / `StartInteractiveResult`). Re-export,\n// never a wrapper (parsimony-ladder Rung 9): the backend interface is already the seam to depend on.\nexport * from '@theokit/sdk/interactive'\n"],"mappings":";AAGA,cAAc;","names":[]}
1
+ {"version":3,"sources":["../src/interactive-entry.ts"],"sourcesContent":["// M58 — `@theokit/agents/interactive`: pass-through of the SDK's already-OO interactive surface\n// (`InteractiveBackend` contract + `StartInteractiveOptions` / `StartInteractiveResult`). Re-export,\n// never a wrapper (parsimony-ladder Rung 9): the backend interface is already the seam to depend on.\n\n// M90 — a lista é NOMEADA, não `export *`.\n//\n// A decisão de não envolver em wrapper (rung 9, acima) continua valendo: enumerar não é envolver. O\n// que muda é outra coisa — com `export *`, um símbolo removido upstream simplesmente deixa de existir\n// na superfície e o build DESTA camada passa; o consumidor descobre em call site. Com nome explícito,\n// o `tsc` aponta a linha. É a propriedade que `auth-entry.ts` já tinha e estes cinco não.\n//\n// A superfície é preservada INTEIRA (medido: 9 símbolos, paridade idêntica à fonte). Reduzir seria\n// breaking para outros consumidores, e o M73 já escreveu a regra no `auth-entry.ts`: enriquecer nunca\n// reduz. Se um símbolo for deliberadamente retido no futuro, a razão vem escrita aqui, como lá.\n//\n// Gerado por `scripts/gerar-reexports.mts`; travado por `tests/unit/subpath-surface.test.ts`.\n\nexport {\n InteractiveBackend,\n InteractiveUnavailableError,\n NoSuchSessionError,\n resolveInteractive,\n} from '@theokit/sdk/interactive'\n\nexport type {\n InteractiveProvider,\n StartInteractiveOptions,\n StartInteractiveResult,\n WriteStdinOptions,\n WriteStdinResult,\n} from '@theokit/sdk/interactive'\n"],"mappings":";;;AAiBA,SACEA,oBACAC,6BACAC,oBACAC,0BACK;","names":["InteractiveBackend","InteractiveUnavailableError","NoSuchSessionError","resolveInteractive"]}
@@ -1 +1 @@
1
- export * from '@theokit/sdk/persistence';
1
+ export { AtomicWriteJsonOptions, FileLockOptions, ForkTranscriptOptions, JsonlParseError, LiveSessionError, OpenSqliteResilientOptions, PersistenceSchema, ReadJsonlTailOptions, ResilientSqliteDb, SessionBusyError, SessionWriterLease, WalApplyResult, acquireSessionWriter, appendJsonl, applyWalWithFallback, atomicWriteJson, atomicWriteText, encodeProjectDir, forkTranscript, isCorruptionError, loadJsonl, openSqliteResilient, readJsonlIds, readJsonlTail, replaceFileAtomic, sanitizeFts5Query, transcriptPath, withCwdMutex, withFileLock } from '@theokit/sdk/persistence';
@@ -1,3 +1,28 @@
1
+ import "./chunk-7QVYU63E.js";
2
+
1
3
  // src/persistence-entry.ts
2
- export * from "@theokit/sdk/persistence";
4
+ import { acquireSessionWriter, appendJsonl, applyWalWithFallback, atomicWriteJson, atomicWriteText, encodeProjectDir, forkTranscript, isCorruptionError, JsonlParseError, LiveSessionError, loadJsonl, openSqliteResilient, PersistenceSchema, readJsonlIds, readJsonlTail, replaceFileAtomic, sanitizeFts5Query, SessionBusyError, transcriptPath, withCwdMutex, withFileLock } from "@theokit/sdk/persistence";
5
+ export {
6
+ JsonlParseError,
7
+ LiveSessionError,
8
+ PersistenceSchema,
9
+ SessionBusyError,
10
+ acquireSessionWriter,
11
+ appendJsonl,
12
+ applyWalWithFallback,
13
+ atomicWriteJson,
14
+ atomicWriteText,
15
+ encodeProjectDir,
16
+ forkTranscript,
17
+ isCorruptionError,
18
+ loadJsonl,
19
+ openSqliteResilient,
20
+ readJsonlIds,
21
+ readJsonlTail,
22
+ replaceFileAtomic,
23
+ sanitizeFts5Query,
24
+ transcriptPath,
25
+ withCwdMutex,
26
+ withFileLock
27
+ };
3
28
  //# sourceMappingURL=persistence.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/persistence-entry.ts"],"sourcesContent":["// M58 — `@theokit/agents/persistence`: pass-through of the SDK's pure persistence helpers\n// (`transcriptPath`, `encodeProjectDir`, `atomicWriteText`, `SessionRecord`). These are stateless\n// path/IO helpers — wrapping a pure free function in a class would be the ceremony parsimony refuses\n// (Rung 5). Re-export only (Rung 9); the consumer imports them from the Theokit layer.\nexport * from '@theokit/sdk/persistence'\n"],"mappings":";AAIA,cAAc;","names":[]}
1
+ {"version":3,"sources":["../src/persistence-entry.ts"],"sourcesContent":["// M58 — `@theokit/agents/persistence`: pass-through of the SDK's pure persistence helpers\n// (`transcriptPath`, `encodeProjectDir`, `atomicWriteText`, `SessionRecord`). These are stateless\n// path/IO helpers — wrapping a pure free function in a class would be the ceremony parsimony refuses\n// (Rung 5). Re-export only (Rung 9); the consumer imports them from the Theokit layer.\n\n// M90 — a lista é NOMEADA, não `export *`.\n//\n// A decisão de não envolver em wrapper (rung 9, acima) continua valendo: enumerar não é envolver. O\n// que muda é outra coisa — com `export *`, um símbolo removido upstream simplesmente deixa de existir\n// na superfície e o build DESTA camada passa; o consumidor descobre em call site. Com nome explícito,\n// o `tsc` aponta a linha. É a propriedade que `auth-entry.ts` já tinha e estes cinco não.\n//\n// A superfície é preservada INTEIRA (medido: 29 símbolos, paridade idêntica à fonte). Reduzir seria\n// breaking para outros consumidores, e o M73 já escreveu a regra no `auth-entry.ts`: enriquecer nunca\n// reduz. Se um símbolo for deliberadamente retido no futuro, a razão vem escrita aqui, como lá.\n//\n// Gerado por `scripts/gerar-reexports.mts`; travado por `tests/unit/subpath-surface.test.ts`.\n\nexport {\n acquireSessionWriter,\n appendJsonl,\n applyWalWithFallback,\n atomicWriteJson,\n atomicWriteText,\n encodeProjectDir,\n forkTranscript,\n isCorruptionError,\n JsonlParseError,\n LiveSessionError,\n loadJsonl,\n openSqliteResilient,\n PersistenceSchema,\n readJsonlIds,\n readJsonlTail,\n replaceFileAtomic,\n sanitizeFts5Query,\n SessionBusyError,\n transcriptPath,\n withCwdMutex,\n withFileLock,\n} from '@theokit/sdk/persistence'\n\nexport type {\n AtomicWriteJsonOptions,\n FileLockOptions,\n ForkTranscriptOptions,\n OpenSqliteResilientOptions,\n ReadJsonlTailOptions,\n ResilientSqliteDb,\n SessionWriterLease,\n WalApplyResult,\n} from '@theokit/sdk/persistence'\n"],"mappings":";;;AAkBA,SACEA,sBACAC,aACAC,sBACAC,iBACAC,iBACAC,kBACAC,gBACAC,mBACAC,iBACAC,kBACAC,WACAC,qBACAC,mBACAC,cACAC,eACAC,mBACAC,mBACAC,kBACAC,gBACAC,cACAC,oBACK;","names":["acquireSessionWriter","appendJsonl","applyWalWithFallback","atomicWriteJson","atomicWriteText","encodeProjectDir","forkTranscript","isCorruptionError","JsonlParseError","LiveSessionError","loadJsonl","openSqliteResilient","PersistenceSchema","readJsonlIds","readJsonlTail","replaceFileAtomic","sanitizeFts5Query","SessionBusyError","transcriptPath","withCwdMutex","withFileLock"]}
package/dist/pty.d.ts CHANGED
@@ -1 +1 @@
1
- export * from '@theokit/sdk-pty';
1
+ export { MaxSessionsError, PtyInteractiveBackend, PtyInteractiveBackendOptions, YIELD_MAX_MS, YIELD_MIN_MS, clampYield } from '@theokit/sdk-pty';
package/dist/pty.js CHANGED
@@ -1,3 +1,12 @@
1
+ import "./chunk-7QVYU63E.js";
2
+
1
3
  // src/pty-entry.ts
2
- export * from "@theokit/sdk-pty";
4
+ import { clampYield, MaxSessionsError, PtyInteractiveBackend, YIELD_MAX_MS, YIELD_MIN_MS } from "@theokit/sdk-pty";
5
+ export {
6
+ MaxSessionsError,
7
+ PtyInteractiveBackend,
8
+ YIELD_MAX_MS,
9
+ YIELD_MIN_MS,
10
+ clampYield
11
+ };
3
12
  //# sourceMappingURL=pty.js.map
package/dist/pty.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/pty-entry.ts"],"sourcesContent":["// M58 — `@theokit/agents/pty`: pass-through of `@theokit/sdk-pty`'s already-OO `PtyInteractiveBackend`\n// (the PTY implementation of the `InteractiveBackend` contract). Re-export, never a wrapper\n// (parsimony-ladder Rung 9). This is the one M58 domain that pulls a SEPARATE package, so `@theokit/\n// sdk-pty` is declared a dependency of `@theokit/agents` — the consumer no longer depends on it directly.\nexport * from '@theokit/sdk-pty'\n"],"mappings":";AAIA,cAAc;","names":[]}
1
+ {"version":3,"sources":["../src/pty-entry.ts"],"sourcesContent":["// M58 — `@theokit/agents/pty`: pass-through of `@theokit/sdk-pty`'s already-OO `PtyInteractiveBackend`\n// (the PTY implementation of the `InteractiveBackend` contract). Re-export, never a wrapper\n// (parsimony-ladder Rung 9). This is the one M58 domain that pulls a SEPARATE package, so `@theokit/\n// sdk-pty` is declared a dependency of `@theokit/agents` — the consumer no longer depends on it directly.\n// M90 — a lista é NOMEADA, não `export *`.\n//\n// A decisão de não envolver em wrapper (rung 9, acima) continua valendo: enumerar não é envolver. O\n// que muda é outra coisa — com `export *`, um símbolo removido upstream simplesmente deixa de existir\n// na superfície e o build DESTA camada passa; o consumidor descobre em call site. Com nome explícito,\n// o `tsc` aponta a linha. É a propriedade que `auth-entry.ts` já tinha e estes cinco não.\n//\n// A superfície é preservada INTEIRA (medido: 6 símbolos, paridade idêntica à fonte). Reduzir seria\n// breaking para outros consumidores, e o M73 já escreveu a regra no `auth-entry.ts`: enriquecer nunca\n// reduz. Se um símbolo for deliberadamente retido no futuro, a razão vem escrita aqui, como lá.\n//\n// Gerado por `scripts/gerar-reexports.mts`; travado por `tests/unit/subpath-surface.test.ts`.\n\nexport {\n clampYield,\n MaxSessionsError,\n PtyInteractiveBackend,\n YIELD_MAX_MS,\n YIELD_MIN_MS,\n} from '@theokit/sdk-pty'\n\nexport type {\n PtyInteractiveBackendOptions,\n} from '@theokit/sdk-pty'\n"],"mappings":";;;AAiBA,SACEA,YACAC,kBACAC,uBACAC,cACAC,oBACK;","names":["clampYield","MaxSessionsError","PtyInteractiveBackend","YIELD_MAX_MS","YIELD_MIN_MS"]}
package/dist/sandbox.d.ts CHANGED
@@ -1 +1 @@
1
- export * from '@theokit/sdk/sandbox';
1
+ export { BwrapArgvOptions, BwrapDetection, BwrapProbes, CreateSandboxBackendOptions, ExecuteResult, InteractiveWrapOptions, LinuxSandbox, LocalSandbox, ProvisionRepoOptions, RepoProvisionError, SandboxBackend, SandboxConfig, SandboxMode, SandboxNotAvailableError, SandboxPosture, SandboxProvider, SandboxSecurityError, SeccompOptions, allowlistedEnv, buildBwrapArgv, buildSeccompFilter, createSandboxBackend, detectBwrap, detectBwrapMemoizado, interactiveWrapCommand, provisionRepo, realProbeCount, realProbes, resetBwrapMemo, resetInteractiveWarnLatch, resetSandboxWarnLatch, resolveSandbox, resolveSandboxPosture, restrictedSeccompPath, seccompPathForArch, wrapCommandForSandbox } from '@theokit/sdk/sandbox';
package/dist/sandbox.js CHANGED
@@ -1,3 +1,31 @@
1
+ import "./chunk-7QVYU63E.js";
2
+
1
3
  // src/sandbox-entry.ts
2
- export * from "@theokit/sdk/sandbox";
4
+ import { allowlistedEnv, buildBwrapArgv, buildSeccompFilter, createSandboxBackend, detectBwrap, detectBwrapMemoizado, interactiveWrapCommand, LinuxSandbox, LocalSandbox, provisionRepo, realProbeCount, realProbes, RepoProvisionError, resetBwrapMemo, resetInteractiveWarnLatch, resetSandboxWarnLatch, resolveSandbox, resolveSandboxPosture, restrictedSeccompPath, SandboxBackend, SandboxNotAvailableError, SandboxSecurityError, seccompPathForArch, wrapCommandForSandbox } from "@theokit/sdk/sandbox";
5
+ export {
6
+ LinuxSandbox,
7
+ LocalSandbox,
8
+ RepoProvisionError,
9
+ SandboxBackend,
10
+ SandboxNotAvailableError,
11
+ SandboxSecurityError,
12
+ allowlistedEnv,
13
+ buildBwrapArgv,
14
+ buildSeccompFilter,
15
+ createSandboxBackend,
16
+ detectBwrap,
17
+ detectBwrapMemoizado,
18
+ interactiveWrapCommand,
19
+ provisionRepo,
20
+ realProbeCount,
21
+ realProbes,
22
+ resetBwrapMemo,
23
+ resetInteractiveWarnLatch,
24
+ resetSandboxWarnLatch,
25
+ resolveSandbox,
26
+ resolveSandboxPosture,
27
+ restrictedSeccompPath,
28
+ seccompPathForArch,
29
+ wrapCommandForSandbox
30
+ };
3
31
  //# sourceMappingURL=sandbox.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/sandbox-entry.ts"],"sourcesContent":["// M58 — `@theokit/agents/sandbox`: pass-through of the SDK's already-OO sandbox surface\n// (`LocalSandbox` class + `SandboxBackend` contract + `SandboxConfig`). The consumer imports its\n// sandbox primitives from the Theokit layer, not from `@theokit/sdk/sandbox` directly. Re-export,\n// never a wrapper (parsimony-ladder Rung 9): `SandboxBackend` is already the interface to depend on.\nexport * from '@theokit/sdk/sandbox'\n"],"mappings":";AAIA,cAAc;","names":[]}
1
+ {"version":3,"sources":["../src/sandbox-entry.ts"],"sourcesContent":["// M58 — `@theokit/agents/sandbox`: pass-through of the SDK's already-OO sandbox surface\n// (`LocalSandbox` class + `SandboxBackend` contract + `SandboxConfig`). The consumer imports its\n// sandbox primitives from the Theokit layer, not from `@theokit/sdk/sandbox` directly. Re-export,\n// never a wrapper (parsimony-ladder Rung 9): `SandboxBackend` is already the interface to depend on.\n\n// M90 — a lista é NOMEADA, não `export *`.\n//\n// A decisão de não envolver em wrapper (rung 9, acima) continua valendo: enumerar não é envolver. O\n// que muda é outra coisa — com `export *`, um símbolo removido upstream simplesmente deixa de existir\n// na superfície e o build DESTA camada passa; o consumidor descobre em call site. Com nome explícito,\n// o `tsc` aponta a linha. É a propriedade que `auth-entry.ts` já tinha e estes cinco não.\n//\n// A superfície é preservada INTEIRA (medido: 36 símbolos, paridade idêntica à fonte). Reduzir seria\n// breaking para outros consumidores, e o M73 já escreveu a regra no `auth-entry.ts`: enriquecer nunca\n// reduz. Se um símbolo for deliberadamente retido no futuro, a razão vem escrita aqui, como lá.\n//\n// Gerado por `scripts/gerar-reexports.mts`; travado por `tests/unit/subpath-surface.test.ts`.\n\nexport {\n allowlistedEnv,\n buildBwrapArgv,\n buildSeccompFilter,\n createSandboxBackend,\n detectBwrap,\n detectBwrapMemoizado,\n interactiveWrapCommand,\n LinuxSandbox,\n LocalSandbox,\n provisionRepo,\n realProbeCount,\n realProbes,\n RepoProvisionError,\n resetBwrapMemo,\n resetInteractiveWarnLatch,\n resetSandboxWarnLatch,\n resolveSandbox,\n resolveSandboxPosture,\n restrictedSeccompPath,\n SandboxBackend,\n SandboxNotAvailableError,\n SandboxSecurityError,\n seccompPathForArch,\n wrapCommandForSandbox,\n} from '@theokit/sdk/sandbox'\n\nexport type {\n BwrapArgvOptions,\n BwrapDetection,\n BwrapProbes,\n CreateSandboxBackendOptions,\n ExecuteResult,\n InteractiveWrapOptions,\n ProvisionRepoOptions,\n SandboxConfig,\n SandboxMode,\n SandboxPosture,\n SandboxProvider,\n SeccompOptions,\n} from '@theokit/sdk/sandbox'\n"],"mappings":";;;AAkBA,SACEA,gBACAC,gBACAC,oBACAC,sBACAC,aACAC,sBACAC,wBACAC,cACAC,cACAC,eACAC,gBACAC,YACAC,oBACAC,gBACAC,2BACAC,uBACAC,gBACAC,uBACAC,uBACAC,gBACAC,0BACAC,sBACAC,oBACAC,6BACK;","names":["allowlistedEnv","buildBwrapArgv","buildSeccompFilter","createSandboxBackend","detectBwrap","detectBwrapMemoizado","interactiveWrapCommand","LinuxSandbox","LocalSandbox","provisionRepo","realProbeCount","realProbes","RepoProvisionError","resetBwrapMemo","resetInteractiveWarnLatch","resetSandboxWarnLatch","resolveSandbox","resolveSandboxPosture","restrictedSeccompPath","SandboxBackend","SandboxNotAvailableError","SandboxSecurityError","seccompPathForArch","wrapCommandForSandbox"]}
package/dist/tools.d.ts CHANGED
@@ -1 +1 @@
1
- export * from '@theokit/sdk-tools';
1
+ export { CatastrophicCommandError, CommandPolicy, ContextMatchError, ContextMatchReason, CreateApplyPatchToolOptions, CreateBraveWebSearchAdapterOptions, CreateCurrentTimeToolOptions, CreateEditFileToolOptions, CreateGenericHttpSearchAdapterOptions, CreateGitDiffToolOptions, CreateGitStatusToolOptions, CreateGlobToolOptions, CreateInteractiveShellToolOptions, CreateListDirToolOptions, CreateReadFileToolOptions, CreateRunVitestToolOptions, CreateSearchTextToolOptions, CreateShellToolOptions, CreateWebFetchToolOptions, CreateWebSearchToolOptions, CreateWriteFileToolOptions, DEFAULT_TOOL_GUIDANCE, EnvContextOptions, PlanModeTool, PlanModeToolOptions, PlanModeToolWithStore, PlanNode, QuestionTool, QuestionToolOptions, ReadTracker, ReasoningTools, RedirectBlockedError, RepoMapOptions, ResolveAndScreenOptions, ScreenedFetchOptions, SessionArtifactStore, SessionArtifactStoreOptions, SsrfBlockedError, TodoItem, TodolistTool, ToolGuidanceMap, TruncationMode, TruncationOptions, TruncationResult, VitestSummary, WebSearchCallback, WebSearchResult, buildEnvContext, buildRepoMap, catastrophicShellReason, commandDenialReason, createApplyPatchTool, createBraveWebSearchAdapter, createCurrentTimeTool, createEditFileTool, createGenericHttpSearchAdapter, createGitDiffTool, createGitStatusTool, createGlobTool, createInteractiveShellTool, createListDirTool, createPlanModeTool, createQuestionTool, createReadFileTool, createRunVitestTool, createSearchTextTool, createSessionArtifactStore, createShellTool, createTodolistTool, createUpdatePlanTool, createWebFetchTool, createWebSearchTool, createWriteFileTool, createWriteStdinTool, denyCatastrophicCommands, formatCode, formatDiff, formatError, formatFileList, injectGuidance, isBlockedIp, isCommandAllowed, renderToolList, replaceUnique, resolveAndScreen, screenedFetch, todoItemsToPlanNodes, truncateOutput, withDefaultGuidance, withDescription, withName, withShellExitGuidance, withToolResultGuidance } from '@theokit/sdk-tools';
package/dist/tools.js CHANGED
@@ -1,3 +1,60 @@
1
+ import "./chunk-7QVYU63E.js";
2
+
1
3
  // src/tools-entry.ts
2
- export * from "@theokit/sdk-tools";
4
+ import { buildEnvContext, buildRepoMap, CatastrophicCommandError, catastrophicShellReason, commandDenialReason, ContextMatchError, createApplyPatchTool, createBraveWebSearchAdapter, createCurrentTimeTool, createEditFileTool, createGenericHttpSearchAdapter, createGitDiffTool, createGitStatusTool, createGlobTool, createInteractiveShellTool, createListDirTool, createPlanModeTool, createQuestionTool, createReadFileTool, createRunVitestTool, createSearchTextTool, createSessionArtifactStore, createShellTool, createTodolistTool, createUpdatePlanTool, createWebFetchTool, createWebSearchTool, createWriteFileTool, createWriteStdinTool, DEFAULT_TOOL_GUIDANCE, denyCatastrophicCommands, formatCode, formatDiff, formatError, formatFileList, injectGuidance, isBlockedIp, isCommandAllowed, ReadTracker, ReasoningTools, RedirectBlockedError, renderToolList, replaceUnique, resolveAndScreen, screenedFetch, SsrfBlockedError, todoItemsToPlanNodes, truncateOutput, withDefaultGuidance, withDescription, withName, withShellExitGuidance, withToolResultGuidance } from "@theokit/sdk-tools";
5
+ export {
6
+ CatastrophicCommandError,
7
+ ContextMatchError,
8
+ DEFAULT_TOOL_GUIDANCE,
9
+ ReadTracker,
10
+ ReasoningTools,
11
+ RedirectBlockedError,
12
+ SsrfBlockedError,
13
+ buildEnvContext,
14
+ buildRepoMap,
15
+ catastrophicShellReason,
16
+ commandDenialReason,
17
+ createApplyPatchTool,
18
+ createBraveWebSearchAdapter,
19
+ createCurrentTimeTool,
20
+ createEditFileTool,
21
+ createGenericHttpSearchAdapter,
22
+ createGitDiffTool,
23
+ createGitStatusTool,
24
+ createGlobTool,
25
+ createInteractiveShellTool,
26
+ createListDirTool,
27
+ createPlanModeTool,
28
+ createQuestionTool,
29
+ createReadFileTool,
30
+ createRunVitestTool,
31
+ createSearchTextTool,
32
+ createSessionArtifactStore,
33
+ createShellTool,
34
+ createTodolistTool,
35
+ createUpdatePlanTool,
36
+ createWebFetchTool,
37
+ createWebSearchTool,
38
+ createWriteFileTool,
39
+ createWriteStdinTool,
40
+ denyCatastrophicCommands,
41
+ formatCode,
42
+ formatDiff,
43
+ formatError,
44
+ formatFileList,
45
+ injectGuidance,
46
+ isBlockedIp,
47
+ isCommandAllowed,
48
+ renderToolList,
49
+ replaceUnique,
50
+ resolveAndScreen,
51
+ screenedFetch,
52
+ todoItemsToPlanNodes,
53
+ truncateOutput,
54
+ withDefaultGuidance,
55
+ withDescription,
56
+ withName,
57
+ withShellExitGuidance,
58
+ withToolResultGuidance
59
+ };
3
60
  //# sourceMappingURL=tools.js.map
package/dist/tools.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/tools-entry.ts"],"sourcesContent":["// M62 — `@theokit/agents/tools`: pass-through of `@theokit/sdk-tools`'s ready-made tool factories\n// (`createReadFileTool`, `createShellTool`, … + `withName`/`withDescription`). These are stateless\n// third-party factories — enriching them would be reinventing the SDK-tools' own sugar (blueprint Q5),\n// so this is a pure re-export (parsimony Rung 9). The consumer imports its built-in tools from the\n// Theokit layer, not from `@theokit/sdk-tools` directly. `@theokit/sdk-tools` is an OPTIONAL peer —\n// only consumers of this subpath need it installed.\nexport * from '@theokit/sdk-tools'\n"],"mappings":";AAMA,cAAc;","names":[]}
1
+ {"version":3,"sources":["../src/tools-entry.ts"],"sourcesContent":["// M62 — `@theokit/agents/tools`: pass-through of `@theokit/sdk-tools`'s ready-made tool factories\n// (`createReadFileTool`, `createShellTool`, … + `withName`/`withDescription`). These are stateless\n// third-party factories — enriching them would be reinventing the SDK-tools' own sugar (blueprint Q5),\n// so this is a pure re-export (parsimony Rung 9). The consumer imports its built-in tools from the\n// Theokit layer, not from `@theokit/sdk-tools` directly. `@theokit/sdk-tools` is an OPTIONAL peer —\n// only consumers of this subpath need it installed.\n\n// M90 — a lista é NOMEADA, não `export *`.\n//\n// A decisão de não envolver em wrapper (rung 9, acima) continua valendo: enumerar não é envolver. O\n// que muda é outra coisa — com `export *`, um símbolo removido upstream simplesmente deixa de existir\n// na superfície e o build DESTA camada passa; o consumidor descobre em call site. Com nome explícito,\n// o `tsc` aponta a linha. É a propriedade que `auth-entry.ts` já tinha e estes cinco não.\n//\n// A superfície é preservada INTEIRA (medido: 93 símbolos, paridade idêntica à fonte). Reduzir seria\n// breaking para outros consumidores, e o M73 já escreveu a regra no `auth-entry.ts`: enriquecer nunca\n// reduz. Se um símbolo for deliberadamente retido no futuro, a razão vem escrita aqui, como lá.\n//\n// Gerado por `scripts/gerar-reexports.mts`; travado por `tests/unit/subpath-surface.test.ts`.\n\nexport {\n buildEnvContext,\n buildRepoMap,\n CatastrophicCommandError,\n catastrophicShellReason,\n commandDenialReason,\n ContextMatchError,\n createApplyPatchTool,\n createBraveWebSearchAdapter,\n createCurrentTimeTool,\n createEditFileTool,\n createGenericHttpSearchAdapter,\n createGitDiffTool,\n createGitStatusTool,\n createGlobTool,\n createInteractiveShellTool,\n createListDirTool,\n createPlanModeTool,\n createQuestionTool,\n createReadFileTool,\n createRunVitestTool,\n createSearchTextTool,\n createSessionArtifactStore,\n createShellTool,\n createTodolistTool,\n createUpdatePlanTool,\n createWebFetchTool,\n createWebSearchTool,\n createWriteFileTool,\n createWriteStdinTool,\n DEFAULT_TOOL_GUIDANCE,\n denyCatastrophicCommands,\n formatCode,\n formatDiff,\n formatError,\n formatFileList,\n injectGuidance,\n isBlockedIp,\n isCommandAllowed,\n ReadTracker,\n ReasoningTools,\n RedirectBlockedError,\n renderToolList,\n replaceUnique,\n resolveAndScreen,\n screenedFetch,\n SsrfBlockedError,\n todoItemsToPlanNodes,\n truncateOutput,\n withDefaultGuidance,\n withDescription,\n withName,\n withShellExitGuidance,\n withToolResultGuidance,\n} from '@theokit/sdk-tools'\n\nexport type {\n CommandPolicy,\n ContextMatchReason,\n CreateApplyPatchToolOptions,\n CreateBraveWebSearchAdapterOptions,\n CreateCurrentTimeToolOptions,\n CreateEditFileToolOptions,\n CreateGenericHttpSearchAdapterOptions,\n CreateGitDiffToolOptions,\n CreateGitStatusToolOptions,\n CreateGlobToolOptions,\n CreateInteractiveShellToolOptions,\n CreateListDirToolOptions,\n CreateReadFileToolOptions,\n CreateRunVitestToolOptions,\n CreateSearchTextToolOptions,\n CreateShellToolOptions,\n CreateWebFetchToolOptions,\n CreateWebSearchToolOptions,\n CreateWriteFileToolOptions,\n EnvContextOptions,\n PlanModeTool,\n PlanModeToolOptions,\n PlanModeToolWithStore,\n PlanNode,\n QuestionTool,\n QuestionToolOptions,\n RepoMapOptions,\n ResolveAndScreenOptions,\n ScreenedFetchOptions,\n SessionArtifactStore,\n SessionArtifactStoreOptions,\n TodoItem,\n TodolistTool,\n ToolGuidanceMap,\n TruncationMode,\n TruncationOptions,\n TruncationResult,\n VitestSummary,\n WebSearchCallback,\n WebSearchResult,\n} from '@theokit/sdk-tools'\n"],"mappings":";;;AAoBA,SACEA,iBACAC,cACAC,0BACAC,yBACAC,qBACAC,mBACAC,sBACAC,6BACAC,uBACAC,oBACAC,gCACAC,mBACAC,qBACAC,gBACAC,4BACAC,mBACAC,oBACAC,oBACAC,oBACAC,qBACAC,sBACAC,4BACAC,iBACAC,oBACAC,sBACAC,oBACAC,qBACAC,qBACAC,sBACAC,uBACAC,0BACAC,YACAC,YACAC,aACAC,gBACAC,gBACAC,aACAC,kBACAC,aACAC,gBACAC,sBACAC,gBACAC,eACAC,kBACAC,eACAC,kBACAC,sBACAC,gBACAC,qBACAC,iBACAC,UACAC,uBACAC,8BACK;","names":["buildEnvContext","buildRepoMap","CatastrophicCommandError","catastrophicShellReason","commandDenialReason","ContextMatchError","createApplyPatchTool","createBraveWebSearchAdapter","createCurrentTimeTool","createEditFileTool","createGenericHttpSearchAdapter","createGitDiffTool","createGitStatusTool","createGlobTool","createInteractiveShellTool","createListDirTool","createPlanModeTool","createQuestionTool","createReadFileTool","createRunVitestTool","createSearchTextTool","createSessionArtifactStore","createShellTool","createTodolistTool","createUpdatePlanTool","createWebFetchTool","createWebSearchTool","createWriteFileTool","createWriteStdinTool","DEFAULT_TOOL_GUIDANCE","denyCatastrophicCommands","formatCode","formatDiff","formatError","formatFileList","injectGuidance","isBlockedIp","isCommandAllowed","ReadTracker","ReasoningTools","RedirectBlockedError","renderToolList","replaceUnique","resolveAndScreen","screenedFetch","SsrfBlockedError","todoItemsToPlanNodes","truncateOutput","withDefaultGuidance","withDescription","withName","withShellExitGuidance","withToolResultGuidance"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theokit/agents",
3
- "version": "4.24.0",
3
+ "version": "4.25.1",
4
4
  "description": "AI agents as first-class citizens of the TheoKit pipeline. The fluent agent()/tool() builders compile to SDK Agent.create() (M31 builder-only authoring API).",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -66,8 +66,8 @@
66
66
  "peerDependencies": {
67
67
  "@theokit/http": ">=0.1.0-alpha.0",
68
68
  "ai": ">=7.0.0",
69
- "zod": "^4.0.0",
70
- "react": ">=18"
69
+ "react": ">=18",
70
+ "zod": "^4.0.0"
71
71
  },
72
72
  "peerDependenciesMeta": {
73
73
  "@theokit/sdk-pty": {
@@ -100,6 +100,6 @@
100
100
  "dependencies": {
101
101
  "@theokit/sdk": "^4.30.0",
102
102
  "@theokit/sdk-pty": ">=0.2.0 <1.0.0",
103
- "@theokit/sdk-tools": ">=0.24.1 <1.0.0"
103
+ "@theokit/sdk-tools": "^0.26.1"
104
104
  }
105
105
  }