stk-codegen 1.2.1 → 1.2.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.
- package/dist/327.index.js +3 -2
- package/dist/i18n/en_US.yaml +2 -0
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/327.index.js
CHANGED
|
@@ -29,7 +29,7 @@ var agent_toolExecutor = __webpack_require__(7035);
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
async function runHeadless(prompt) {
|
|
32
|
+
async function runHeadless(prompt, effort) {
|
|
33
33
|
const approvalStrategy = new AutoApprovalStrategy();
|
|
34
34
|
const toolExecutor = new agent_toolExecutor/* ToolExecutor */.K(approvalStrategy, {
|
|
35
35
|
onStateEvent: (eventType, data) => {
|
|
@@ -103,7 +103,8 @@ async function runHeadless(prompt) {
|
|
|
103
103
|
.then(() => {
|
|
104
104
|
websocketClient/* websocketClient */.V.send({
|
|
105
105
|
type: 'user_message',
|
|
106
|
-
payload: { prompt }
|
|
106
|
+
payload: { prompt },
|
|
107
|
+
effort: effort
|
|
107
108
|
});
|
|
108
109
|
})
|
|
109
110
|
.catch(finalize);
|
package/dist/i18n/en_US.yaml
CHANGED
|
@@ -45,12 +45,14 @@ STK_MESSAGE_BUSINESS_EXCEPTION_RENEW_SESSION_TOKEN_ERROR: 'An error occurred whi
|
|
|
45
45
|
STK_MESSAGE_BUSINESS_EXCEPTION_REVOKE_SESSION_TOKEN_ERROR: 'An error occurred while revoking the current session token. Check the logs for more details.'
|
|
46
46
|
STK_MESSAGE_OUTPUT_ERROR_BROWSER_OPEN_FAILED: Could not open your default browser automatically. Please open the URL manually
|
|
47
47
|
STK_MESSAGE_OUTPUT_ERROR_AUTH_VERIFICATION_URL_NOT_AVAILABLE: Could not start authentication because the verification URL was not provided by the identity provider.
|
|
48
|
+
STK_MESSAGE_OUTPUT_ERROR_UNEXPECTED_ERROR: 'Unexpected error during authentication: {message}'
|
|
48
49
|
STK_MESSAGE_OUTPUT_ERROR_TOOL_NOT_FOUND: "Error: Tool '{toolName}' not found."
|
|
49
50
|
STK_MESSAGE_OUTPUT_ERROR_USER_REJECTED_COMMAND_EXECUTION: User rejected command execution.
|
|
50
51
|
STK_MESSAGE_OUTPUT_ERROR_USER_REJECTED_CHANGES: User rejected changes.
|
|
51
52
|
STK_MESSAGE_OUTPUT_ERROR_HEADLESS_SESSION_ERROR: 'Headless session error: {message}'
|
|
52
53
|
STK_MESSAGE_OUTPUT_INFO_SHELL_REJECTED_BY_USER: '· Shell: {command} (rejected by user)'
|
|
53
54
|
STK_MESSAGE_OUTPUT_ERROR_SHELL_SIGINT_FAILED: 'Failed to send SIGINT to shell process: {error}'
|
|
55
|
+
STK_MESSAGE_OUTPUT_ERROR_INVALID_EFFORT: 'Invalid value for flag effort: {effort}.'
|
|
54
56
|
|
|
55
57
|
# User Settings
|
|
56
58
|
STK_MESSAGE_OUTPUT_ERROR_USER_SETTINGS_INVALID_FORMAT: 'Invalid {filePath} format:'
|