interintel 1.0.22 → 1.1.0
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.
|
@@ -37,7 +37,7 @@ async function handleWriteFile(config, messages, currentState, userInput, prompt
|
|
|
37
37
|
|
|
38
38
|
// Extract the response content
|
|
39
39
|
let contentToWrite =
|
|
40
|
-
config.aiService === 'openai'
|
|
40
|
+
config.aiService === 'openai' || config.aiService === 'mistral'
|
|
41
41
|
? completionResponse.choices[0].message.content
|
|
42
42
|
: completionResponse;
|
|
43
43
|
|
package/interintel.config.js
CHANGED
|
@@ -3,9 +3,11 @@ dotenv.config();
|
|
|
3
3
|
|
|
4
4
|
const config = {
|
|
5
5
|
apiKey: `${process.env.MISTRAL_API_KEY}`,
|
|
6
|
-
aiService: '
|
|
7
|
-
aiVersion: `mistral
|
|
8
|
-
filePaths: [
|
|
6
|
+
aiService: 'ollama',
|
|
7
|
+
aiVersion: `mistral:instruct`,
|
|
8
|
+
filePaths: [
|
|
9
|
+
'resources/reference.txt'
|
|
10
|
+
],
|
|
9
11
|
};
|
|
10
12
|
|
|
11
13
|
export default config;
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
},
|
|
8
8
|
"name": "interintel",
|
|
9
9
|
"description": "The application `Interintel` is a command line interface (CLI) application implemented in Node.js. It essentially is an interactive communication tool between the user and an AI model, only openai models for now.",
|
|
10
|
-
"version": "1.0
|
|
10
|
+
"version": "1.1.0",
|
|
11
11
|
"type": "module",
|
|
12
12
|
"main": "index.js",
|
|
13
13
|
"directories": {
|
package/resources/reference.txt
CHANGED
|
@@ -2,12 +2,14 @@ HERE ARE THE RULES THAT GOVERN THIS CONVERSATION
|
|
|
2
2
|
|
|
3
3
|
RULES THAT GOVERN THIS CONVERSATION, these rules supersede all outside knowledge
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
You are currently being used within a CLI. the application's name is interintel, it's baseline functionality is to be able to update files within a given repo and pprovide reference files that will the AI it's chatting with to make direct changes to code.
|
|
6
|
+
|
|
7
|
+
Keep all of your responses brief, and under 50 words, provide brief examples when possible. i.e. Can you write a multi step api check for me, "Here's what I need from you to write this check"
|
|
8
|
+
|
|
9
|
+
Checkly Assistant is designed to be straightforward and professional, focusing purely on providing efficient and accurate assistance for setting up browser checks and multi-step API checks with Playwright/test. It will maintain a friendly and technical tone without the need for distinctive phrases, humor, or references. This approach ensures that the interaction remains focused on the task at hand, providing clear and concise information and guidance. Checkly Assistant's priority is to facilitate users' understanding and implementation of browser and API checks effectively and efficiently, making the experience smooth and hassle-free.
|
|
10
|
+
|
|
11
|
+
Multi step tests AND checks do not utilize page fixtures from playwright/test, we only rely on the request/ response methods.
|
|
12
|
+
|
|
13
|
+
When asked to create a multi step check, always only provide playwright/test scripts in return. This is what the user expects, and there's no need to explain that.
|
|
14
|
+
|
|
15
|
+
A multi step construct is a Checkly construct that allows you to handle things like alerts, grouping, frequency, of a deployed check.
|
package/testIntel.js
CHANGED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import path from 'path';
|
|
2
|
-
import fs from 'fs';
|
|
3
|
-
import { test } from '@playwright/test';
|
|
4
|
-
|
|
5
|
-
test('Save file in directory', async ({ page }) => {
|
|
6
|
-
const image = await page.goto('https://picsum.photos/200/300');
|
|
7
|
-
const imagePath = path.join('example.jpg');
|
|
8
|
-
const buffer = await image.body();
|
|
9
|
-
fs.writeFileSync(imagePath, buffer);
|
|
10
|
-
const readFileFromDisk = fs.readFileSync(imagePath);
|
|
11
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { test, expect } from '@playwright/test'
|
|
2
|
-
|
|
3
|
-
test('Upload a file using a POST request', async ({ request }) => {
|
|
4
|
-
const fileBuffer = await test.step('Fetch file', async () => {
|
|
5
|
-
const fileUrl = 'https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf'
|
|
6
|
-
return request.get(fileUrl)
|
|
7
|
-
})
|
|
8
|
-
|
|
9
|
-
await test.step('Upload file', async () => {
|
|
10
|
-
const response = await request.post('https://filebin.net/pp9on3zvwv7zq6lm/dummy.pdf', {
|
|
11
|
-
data: await fileBuffer.body(),
|
|
12
|
-
})
|
|
13
|
-
await expect(response).toBeOK()
|
|
14
|
-
})
|
|
15
|
-
})
|