bedrock-wrapper 2.6.0 → 2.6.2

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,93 +0,0 @@
1
- [
2
- {
3
- "session_id": "e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3",
4
- "transcript_path": "C:\\Users\\Justin.Parker\\.claude\\projects\\C--git-bedrock-wrapper\\e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3.jsonl",
5
- "cwd": "C:\\git\\bedrock-wrapper",
6
- "hook_event_name": "Stop",
7
- "stop_hook_active": false
8
- },
9
- {
10
- "session_id": "e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3",
11
- "transcript_path": "C:\\Users\\Justin.Parker\\.claude\\projects\\C--git-bedrock-wrapper\\e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3.jsonl",
12
- "cwd": "C:\\git\\bedrock-wrapper",
13
- "hook_event_name": "Stop",
14
- "stop_hook_active": false
15
- },
16
- {
17
- "session_id": "e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3",
18
- "transcript_path": "C:\\Users\\Justin.Parker\\.claude\\projects\\C--git-bedrock-wrapper\\e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3.jsonl",
19
- "cwd": "C:\\git\\bedrock-wrapper",
20
- "hook_event_name": "Stop",
21
- "stop_hook_active": false
22
- },
23
- {
24
- "session_id": "e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3",
25
- "transcript_path": "C:\\Users\\Justin.Parker\\.claude\\projects\\C--git-bedrock-wrapper\\e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3.jsonl",
26
- "cwd": "C:\\git\\bedrock-wrapper",
27
- "hook_event_name": "Stop",
28
- "stop_hook_active": false
29
- },
30
- {
31
- "session_id": "e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3",
32
- "transcript_path": "C:\\Users\\Justin.Parker\\.claude\\projects\\C--git-bedrock-wrapper\\e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3.jsonl",
33
- "cwd": "C:\\git\\bedrock-wrapper",
34
- "hook_event_name": "Stop",
35
- "stop_hook_active": false
36
- },
37
- {
38
- "session_id": "e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3",
39
- "transcript_path": "C:\\Users\\Justin.Parker\\.claude\\projects\\C--git-bedrock-wrapper\\e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3.jsonl",
40
- "cwd": "C:\\git\\bedrock-wrapper",
41
- "hook_event_name": "Stop",
42
- "stop_hook_active": false
43
- },
44
- {
45
- "session_id": "e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3",
46
- "transcript_path": "C:\\Users\\Justin.Parker\\.claude\\projects\\C--git-bedrock-wrapper\\e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3.jsonl",
47
- "cwd": "C:\\git\\bedrock-wrapper",
48
- "hook_event_name": "Stop",
49
- "stop_hook_active": false
50
- },
51
- {
52
- "session_id": "e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3",
53
- "transcript_path": "C:\\Users\\Justin.Parker\\.claude\\projects\\C--git-bedrock-wrapper\\e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3.jsonl",
54
- "cwd": "C:\\git\\bedrock-wrapper",
55
- "hook_event_name": "Stop",
56
- "stop_hook_active": false
57
- },
58
- {
59
- "session_id": "e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3",
60
- "transcript_path": "C:\\Users\\Justin.Parker\\.claude\\projects\\C--git-bedrock-wrapper\\e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3.jsonl",
61
- "cwd": "C:\\git\\bedrock-wrapper",
62
- "hook_event_name": "Stop",
63
- "stop_hook_active": false
64
- },
65
- {
66
- "session_id": "e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3",
67
- "transcript_path": "C:\\Users\\Justin.Parker\\.claude\\projects\\C--git-bedrock-wrapper\\e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3.jsonl",
68
- "cwd": "C:\\git\\bedrock-wrapper",
69
- "hook_event_name": "Stop",
70
- "stop_hook_active": false
71
- },
72
- {
73
- "session_id": "e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3",
74
- "transcript_path": "C:\\Users\\Justin.Parker\\.claude\\projects\\C--git-bedrock-wrapper\\e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3.jsonl",
75
- "cwd": "C:\\git\\bedrock-wrapper",
76
- "hook_event_name": "Stop",
77
- "stop_hook_active": false
78
- },
79
- {
80
- "session_id": "e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3",
81
- "transcript_path": "C:\\Users\\Justin.Parker\\.claude\\projects\\C--git-bedrock-wrapper\\e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3.jsonl",
82
- "cwd": "C:\\git\\bedrock-wrapper",
83
- "hook_event_name": "Stop",
84
- "stop_hook_active": false
85
- },
86
- {
87
- "session_id": "e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3",
88
- "transcript_path": "C:\\Users\\Justin.Parker\\.claude\\projects\\C--git-bedrock-wrapper\\e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3.jsonl",
89
- "cwd": "C:\\git\\bedrock-wrapper",
90
- "hook_event_name": "Stop",
91
- "stop_hook_active": false
92
- }
93
- ]
@@ -1,93 +0,0 @@
1
- [
2
- {
3
- "session_id": "e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3",
4
- "transcript_path": "C:\\Users\\Justin.Parker\\.claude\\projects\\C--git-bedrock-wrapper\\e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3.jsonl",
5
- "cwd": "C:\\git\\bedrock-wrapper",
6
- "hook_event_name": "UserPromptSubmit",
7
- "prompt": "The project converts prompts to the correct format required by AWS Bedrock for the Invoke API. I want to add an optional 3rd parameter you pass when calling `bedrockWrapper` that would use the `converse` API instead of invoke (call the optional parameter `useConverseAPI` default to false). Tests will need to be updated as well. Use the Context7 MCP for aws bedrock documentation, as well as search the AWS website on how to use the converse api. When developing this use a Test Driven Development approach. my creds are already setup in my @.env file for you to run."
8
- },
9
- {
10
- "session_id": "e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3",
11
- "transcript_path": "C:\\Users\\Justin.Parker\\.claude\\projects\\C--git-bedrock-wrapper\\e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3.jsonl",
12
- "cwd": "C:\\git\\bedrock-wrapper",
13
- "hook_event_name": "UserPromptSubmit",
14
- "prompt": "great, now think ULTRAHARD about @bedrock-wrapper.js and the `bedrockWrapper` function. make sure there isn't any extra complexities only required for invoke, as converse api should be way simplified. If needed break out the complexities to external function calls in this file. I fear we have retained unneeded logic only required for invoke api calls (this involves extra config from our models config that may only be needed for invoke vs converse). be very careful not to break functionality."
15
- },
16
- {
17
- "session_id": "e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3",
18
- "transcript_path": "C:\\Users\\Justin.Parker\\.claude\\projects\\C--git-bedrock-wrapper\\e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3.jsonl",
19
- "cwd": "C:\\git\\bedrock-wrapper",
20
- "hook_event_name": "UserPromptSubmit",
21
- "prompt": "great, now update our @interactive-example.js with a question that asks if we want to use the Converse API"
22
- },
23
- {
24
- "session_id": "e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3",
25
- "transcript_path": "C:\\Users\\Justin.Parker\\.claude\\projects\\C--git-bedrock-wrapper\\e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3.jsonl",
26
- "cwd": "C:\\git\\bedrock-wrapper",
27
- "hook_event_name": "UserPromptSubmit",
28
- "prompt": "please update @test-vision.js, @test-models.js and @test-stop-sequences.js to include both converse api and invoke api"
29
- },
30
- {
31
- "session_id": "e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3",
32
- "transcript_path": "C:\\Users\\Justin.Parker\\.claude\\projects\\C--git-bedrock-wrapper\\e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3.jsonl",
33
- "cwd": "C:\\git\\bedrock-wrapper",
34
- "hook_event_name": "UserPromptSubmit",
35
- "prompt": "I ran the @test-models.js with the --both flag to test invoke and converse api. Everything seemed to work well except for the claude thining calls the think tag isn't being returned when using the converse api, but it is with invoke. please investigate."
36
- },
37
- {
38
- "session_id": "e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3",
39
- "transcript_path": "C:\\Users\\Justin.Parker\\.claude\\projects\\C--git-bedrock-wrapper\\e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3.jsonl",
40
- "cwd": "C:\\git\\bedrock-wrapper",
41
- "hook_event_name": "UserPromptSubmit",
42
- "prompt": "hmmm, I'm not sure why we have @thinking-patch.js , we should make sure @bedrock-wrapper.js converse api supports all thinking models output just like invoke seems to."
43
- },
44
- {
45
- "session_id": "e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3",
46
- "transcript_path": "C:\\Users\\Justin.Parker\\.claude\\projects\\C--git-bedrock-wrapper\\e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3.jsonl",
47
- "cwd": "C:\\git\\bedrock-wrapper",
48
- "hook_event_name": "UserPromptSubmit",
49
- "prompt": "hmm, after running `npm run test` I still don't see the output thinking tokens for the Claude models when using the Converse API "
50
- },
51
- {
52
- "session_id": "e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3",
53
- "transcript_path": "C:\\Users\\Justin.Parker\\.claude\\projects\\C--git-bedrock-wrapper\\e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3.jsonl",
54
- "cwd": "C:\\git\\bedrock-wrapper",
55
- "hook_event_name": "UserPromptSubmit",
56
- "prompt": "add an entry to the top of the @CHANGELOG.md "
57
- },
58
- {
59
- "session_id": "e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3",
60
- "transcript_path": "C:\\Users\\Justin.Parker\\.claude\\projects\\C--git-bedrock-wrapper\\e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3.jsonl",
61
- "cwd": "C:\\git\\bedrock-wrapper",
62
- "hook_event_name": "UserPromptSubmit",
63
- "prompt": "in @bedrock-wrapper.js \n\n```\n if (content.length > 0 && content.some(item => item.text && item.text.trim() !== '')) {\n converseMessages.push({\n role: msg.role,\n content: content\n });\n }\n```\n\nThe current logic for building Converse API messages incorrectly filters out messages that contain only images. The condition content.some(item => item.text && item.text.trim() !== '') requires at least one text part with non-whitespace content, but the Converse API allows user messages to contain only images. This will cause multimodal requests with image-only messages to fail or be ignored. The check should be simplified to ensure any message with content (text or image) is included.\n\n```\n // Only add messages with actual content (Converse API doesn't allow empty content)\n if (content.length > 0) {\n converseMessages.push({\n role: msg.role,\n content: content\n });\n }\n```"
64
- },
65
- {
66
- "session_id": "e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3",
67
- "transcript_path": "C:\\Users\\Justin.Parker\\.claude\\projects\\C--git-bedrock-wrapper\\e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3.jsonl",
68
- "cwd": "C:\\git\\bedrock-wrapper",
69
- "hook_event_name": "UserPromptSubmit",
70
- "prompt": "in @bedrock-wrapper.js \n\n```\n // Add thinking configuration for Claude models\n if (awsModel.special_request_schema?.thinking?.type === \"enabled\") {\n let budget_tokens = awsModel.special_request_schema?.thinking?.budget_tokens;\n if (budget_tokens > (inferenceConfig.maxTokens * 0.8)) {\n budget_tokens = Math.floor(inferenceConfig.maxTokens * 0.8);\n }\n if (budget_tokens < 1024) {\n budget_tokens = 1024;\n }\n\n converseRequest.additionalModelRequestFields = {\n thinking: {\n type: \"enabled\",\n budget_tokens: budget_tokens\n }\n };\n\n if (awsModel.special_request_schema?.anthropic_beta) {\n converseRequest.additionalModelRequestFields.anthropic_beta = awsModel.special_request_schema.anthropic_beta;\n }\n }\n```\n\nThis block duplicates the budget_tokens calculation logic from lines 528-534. This is redundant and can be simplified by calculating the value once and using it to set both inferenceConfig and additionalModelRequestFields in the same logic block.\n\nConsider refactoring the if block at line 522 to handle all thinking-related configuration, and then remove this redundant block."
71
- },
72
- {
73
- "session_id": "e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3",
74
- "transcript_path": "C:\\Users\\Justin.Parker\\.claude\\projects\\C--git-bedrock-wrapper\\e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3.jsonl",
75
- "cwd": "C:\\git\\bedrock-wrapper",
76
- "hook_event_name": "UserPromptSubmit",
77
- "prompt": "in @test-converse-api.js \n\n```\nComment on lines +177 to +178\n---\n const converseStoppedCorrectly = !converseResponse.includes(\"6, 7\");\n const invokeStoppedCorrectly = !invokeResponse.includes(\"6, 7\");\n```\n\nThe check for whether the stop sequence worked correctly is not quite right. The stop sequence is [\"6\"], which means generation should stop before 6 is produced. The current check !converseResponse.includes(\"6, 7\") would pass even if the response is \"1, 2, 3, 4, 5, 6\", which is incorrect. The check should ensure that the stop sequence itself (\"6\") is not present in the final output."
78
- },
79
- {
80
- "session_id": "e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3",
81
- "transcript_path": "C:\\Users\\Justin.Parker\\.claude\\projects\\C--git-bedrock-wrapper\\e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3.jsonl",
82
- "cwd": "C:\\git\\bedrock-wrapper",
83
- "hook_event_name": "UserPromptSubmit",
84
- "prompt": "/init "
85
- },
86
- {
87
- "session_id": "e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3",
88
- "transcript_path": "C:\\Users\\Justin.Parker\\.claude\\projects\\C--git-bedrock-wrapper\\e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3.jsonl",
89
- "cwd": "C:\\git\\bedrock-wrapper",
90
- "hook_event_name": "UserPromptSubmit",
91
- "prompt": "I want to add our \"use converse api\" optional parameter to the `bedrock-proxy-endpoint` project. We use an optional paramaeter in a similar way for `include_thinking_data`; lets use this same approach."
92
- }
93
- ]