Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

chatwithcloud

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chatwithcloud - npm Package Compare versions

Comparing version 0.2.0 to 0.2.2

17

dist/openai.js

@@ -34,5 +34,5 @@ "use strict";

- Must written in Javascript (NodeJS) using AWS-SDK V2
- Must prefer promises over callbacks
- Should avoid hardcoded values like ARNs
- Code written should be as parallel as possible enabling the fastest execution
- Code should be handling errors gracefully
- DO NOT require or import "aws-sdk", it is already available as "AWS" variable

@@ -44,3 +44,6 @@ - Data returned from AWS-SDK must be returned as JSON containing only the minimal amount of data that is needed to answer the question. All extra data must be filtered out

- Do not include any comments in the code
- If you want to reply with code, never return it to the end user, run it using "runAwsCode" function/tool`;
- If you want to reply with code, never return it to the end user, run it using "runAwsCode" function/tool
Be concise, professional and to the point. Do not give generic advice, always reply with contextual data sourced from the current AWS environment. Assume user always wants to proceed, do not ask for confirmation.
`;
const completion = (messages) => __awaiter(void 0, void 0, void 0, function* () {

@@ -60,3 +63,3 @@ const firstMessage = messages[0];

messages,
model: "gpt-4-1106-preview",
model: (0, settings_1.getConfig)("model"),
stream: true,

@@ -68,3 +71,3 @@ tools: [

name: "runAwsCode",
description: "Runs AWS SDK V2 code against current AWS environment",
description: "Runs AWS SDK V2 code against current AWS environment. Always favor running this before giving an answer.",
parameters: {

@@ -145,7 +148,6 @@ type: "object",

generatingCode = false;
consola_1.consola.success("Done!");
let parsedArguments;
try {
parsedArguments = JSON.parse(accumulatedToolCallArgumentChunks);
consola_1.consola.start(parsedArguments.explanation + "...");
consola_1.consola.start(uppercaseFirstLetter(parsedArguments.explanation || "") + "...");
}

@@ -300,1 +302,4 @@ catch (error) {

}
function uppercaseFirstLetter(str) {
return str.charAt(0).toUpperCase() + str.slice(1);
}
{
"name": "chatwithcloud",
"version": "0.2.0",
"version": "0.2.2",
"description": "A CLI to chat with your AWS cloud, literally.",

@@ -16,4 +16,4 @@ "sideEffects": false,

"engines": {
"node": "^16.0.0",
"npm": "^8.0.0"
"node": ">=16.0.0",
"npm": ">=8.0.0"
},

@@ -20,0 +20,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc