codmir 0.4.1 → 0.6.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.
package/runkit-example.js DELETED
@@ -1,36 +0,0 @@
1
- // RunKit example for codmir package
2
- // This will appear as an interactive demo on npm
3
-
4
- const { CodmirClient } = require('codmir');
5
-
6
- // Initialize the client
7
- const client = new CodmirClient({
8
- apiKey: 'demo-api-key', // Replace with your API key
9
- baseUrl: 'https://codmir.com'
10
- });
11
-
12
- // Example: List projects (will fail without valid API key)
13
- async function demo() {
14
- try {
15
- console.log('codmir SDK - Interactive Demo');
16
- console.log('==============================\n');
17
-
18
- // You can try these methods with a valid API key:
19
- console.log('Available methods:');
20
- console.log('- client.tickets.create()');
21
- console.log('- client.tickets.list()');
22
- console.log('- client.tickets.update()');
23
- console.log('- client.testCases.create()');
24
- console.log('- client.testCases.list()');
25
- console.log('\nGet your API key at: https://codmir.com/settings/tokens');
26
-
27
- return {
28
- message: 'codmir - the AI that prevents wasted engineering time',
29
- docs: 'https://codmir.com/docs'
30
- };
31
- } catch (error) {
32
- console.error('Error:', error.message);
33
- }
34
- }
35
-
36
- demo();