@swifty.js/swifty 0.0.31 → 0.0.32
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 +46 -3
- package/dist/agent-2DUTUJFX.js +4 -0
- package/dist/{anthropic-CFM2DXMB.js → anthropic-KR5MXB5I.js} +1 -1
- package/dist/{checker-A6PGACKZ.js → checker-RKAWOOXC.js} +1 -1
- package/dist/{chunk-OQCEP2F5.js → chunk-2EV72T5X.js} +1 -1
- package/dist/{chunk-MVVSONAE.js → chunk-4YVJP2CO.js} +1 -1
- package/dist/chunk-BWWNI2FK.js +121 -0
- package/dist/{chunk-AGJYBJ5M.js → chunk-JMF2DWGY.js} +1 -1
- package/dist/{chunk-4ABFUBO4.js → chunk-LTFPTWX4.js} +117 -106
- package/dist/chunk-NERVCUWE.js +4 -0
- package/dist/chunk-S35E7OYL.js +5 -0
- package/dist/{chunk-C3WGLVVZ.js → chunk-TKQ5T5VO.js} +1 -1
- package/dist/{chunk-YAXZ2OUD.js → chunk-TW7RHCDS.js} +1 -1
- package/dist/lib/agent-3OEC4SOB.js +10 -0
- package/dist/lib/{anthropic-R6DMXE7U.js → anthropic-B33M2AVN.js} +4 -4
- package/dist/lib/{checker-M7RKMKJQ.js → checker-QNMXPZ7C.js} +3 -3
- package/dist/lib/{chunk-OQIQOU5S.js → chunk-3OFLDUAW.js} +121 -1
- package/dist/lib/{chunk-EY7HE52Q.js → chunk-3XCGUKGJ.js} +18 -24
- package/dist/lib/{chunk-EWE5IWZE.js → chunk-4BPKIIQD.js} +9 -0
- package/dist/lib/{chunk-FZ4Y6MBN.js → chunk-BCBD34D2.js} +1 -1
- package/dist/lib/{chunk-4MDCRPVV.js → chunk-FODSMOWP.js} +6 -6
- package/dist/lib/{chunk-A4MXZA5Q.js → chunk-SOOSTGHI.js} +2 -2
- package/dist/lib/{chunk-OEPCNATU.js → chunk-TJLAJGG4.js} +2 -2
- package/dist/lib/{chunk-J6AV7SIF.js → chunk-UH5M7FDP.js} +9 -5
- package/dist/lib/index.d.ts +1402 -721
- package/dist/lib/index.js +11656 -10928
- package/dist/lib/{openai-5N42ZYIJ.js → openai-C2PZFGJ2.js} +3 -3
- package/dist/lib/{tool-filter-XG2GXFVN.js → tool-filter-IMIU7CW2.js} +1 -1
- package/dist/main.js +175 -176
- package/dist/{node-4LTSRXL2.js → node-GXMM4JG3.js} +1 -1
- package/dist/{openai-NQYARTT6.js → openai-M7B2TITO.js} +1 -1
- package/dist/seatbelt-3GM2YGXV.js +5 -0
- package/dist/{server-BNT2IIKB.js → server-QMMIYNXW.js} +10 -17
- package/dist/{tool-filter-5NDJMSTD.js → tool-filter-7LLVAHD5.js} +1 -1
- package/package.json +9 -12
- package/dist/agent-O6C4FCQY.js +0 -4
- package/dist/chunk-AQ3A5CF4.js +0 -5
- package/dist/chunk-OTVZGPHD.js +0 -121
- package/dist/chunk-Y2UUXOQA.js +0 -4
- package/dist/lib/agent-YRTROHXU.js +0 -10
- package/dist/seatbelt-YXUQ5XR3.js +0 -5
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeToolResultContentBlock
|
|
3
3
|
} from "./chunk-XT67KGWE.js";
|
|
4
|
+
import {
|
|
5
|
+
MCP_TOOL_PREFIX,
|
|
6
|
+
isMcpToolLike
|
|
7
|
+
} from "./chunk-BCBD34D2.js";
|
|
4
8
|
import {
|
|
5
9
|
AuthenticationError,
|
|
6
10
|
ContextTooLongError,
|
|
@@ -17,11 +21,7 @@ import {
|
|
|
17
21
|
thinkingBudgetForLevel,
|
|
18
22
|
toAnthropicThinkingEffort,
|
|
19
23
|
toReasoningEffort
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import {
|
|
22
|
-
MCP_TOOL_PREFIX,
|
|
23
|
-
isMcpToolLike
|
|
24
|
-
} from "./chunk-FZ4Y6MBN.js";
|
|
24
|
+
} from "./chunk-3OFLDUAW.js";
|
|
25
25
|
import {
|
|
26
26
|
asErrorString,
|
|
27
27
|
asRecord,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
createChildLogger,
|
|
31
31
|
isRecord,
|
|
32
32
|
strArg
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-3XCGUKGJ.js";
|
|
34
34
|
|
|
35
35
|
// src/llm/anthropic.ts
|
|
36
36
|
import Anthropic from "@anthropic-ai/sdk";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mcpCallPermissionContent
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BCBD34D2.js";
|
|
4
4
|
import {
|
|
5
5
|
createChildLogger,
|
|
6
6
|
isRecord,
|
|
7
7
|
strArg
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3XCGUKGJ.js";
|
|
9
9
|
|
|
10
10
|
// src/permissions/checker.ts
|
|
11
11
|
import { readFileSync, writeFileSync, mkdirSync, statSync } from "fs";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
getThinkingLevel,
|
|
12
12
|
resolveAPIKey,
|
|
13
13
|
toReasoningEffort
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-3OFLDUAW.js";
|
|
15
15
|
import {
|
|
16
16
|
asRecord,
|
|
17
17
|
asString,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
createChildLogger,
|
|
20
20
|
isRecord,
|
|
21
21
|
strArg
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-3XCGUKGJ.js";
|
|
23
23
|
|
|
24
24
|
// src/llm/openai.ts
|
|
25
25
|
import OpenAI from "openai";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeToolResultContentBlock
|
|
3
3
|
} from "./chunk-XT67KGWE.js";
|
|
4
|
+
import {
|
|
5
|
+
McpCallTool
|
|
6
|
+
} from "./chunk-BCBD34D2.js";
|
|
4
7
|
import {
|
|
5
8
|
ContextTooLongError,
|
|
6
9
|
DEFAULT_CONTEXT_WINDOW,
|
|
7
10
|
DEFAULT_MAX_OUTPUT_TOKENS,
|
|
8
11
|
REJECTED_TOOL_RESULT,
|
|
9
12
|
RateLimitError
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import {
|
|
12
|
-
McpCallTool
|
|
13
|
-
} from "./chunk-FZ4Y6MBN.js";
|
|
13
|
+
} from "./chunk-3OFLDUAW.js";
|
|
14
14
|
import {
|
|
15
15
|
asErrorString,
|
|
16
16
|
asRecord,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
createChildLogger,
|
|
19
19
|
isObject,
|
|
20
20
|
strArg
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-3XCGUKGJ.js";
|
|
22
22
|
|
|
23
23
|
// src/agent/streaming-executor.ts
|
|
24
24
|
var log = createChildLogger({ module: "agent" });
|
|
@@ -2175,6 +2175,10 @@ function parseRetryAfter(header) {
|
|
|
2175
2175
|
|
|
2176
2176
|
export {
|
|
2177
2177
|
StreamingExecutor,
|
|
2178
|
+
SUMMARY_INSTRUCTIONS,
|
|
2179
|
+
buildSummaryInstructions,
|
|
2180
|
+
buildSummaryPrompt,
|
|
2181
|
+
buildCompactionSummaryMessage,
|
|
2178
2182
|
ConversationManager,
|
|
2179
2183
|
COMPACT_BOUNDARY,
|
|
2180
2184
|
toolUsesToRecords,
|