codecane 1.0.273 → 1.0.274

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.
@@ -0,0 +1,119 @@
1
+ // Bun Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`stringifySchema should correctly stringify StartupProcessSchema 1`] = `
4
+ "// Defines a single startup process.
5
+ {
6
+ // A user-friendly name for the process. Should be one word and unique.
7
+ "name": string,
8
+
9
+ // The actual shell command to execute.
10
+ "command": string,
11
+
12
+ // (optional): The working directory from which to run the command.
13
+ "cwd": string | undefined,
14
+
15
+ // (optional): Whether this process should be run, default: true
16
+ "enabled": boolean | undefined,
17
+
18
+ // (optional): Path to write the process's stdout. If not specified, stderr is not stored.
19
+ "stdoutFile": string | undefined,
20
+
21
+ // (optional): Path to write the process's stderr. If not specified, stderr will be put into the stdoutFile.
22
+ "stderrFile": string | undefined
23
+ }"
24
+ `;
25
+
26
+ exports[`stringifySchema should correctly stringify CodebuffConfigSchema 1`] = `
27
+ "// Defines the overall Codebuff configuration file (e.g., codebuff.json). This schema defines the top-level structure of the configuration.
28
+ {
29
+ // (optional): Does nothing. Put any thing you want here!
30
+ "description": any | undefined,
31
+
32
+ // (optional): An array of startup processes.
33
+ "startupProcesses": [
34
+
35
+ // Defines a single startup process.
36
+ {
37
+ // A user-friendly name for the process. Should be one word and unique.
38
+ "name": string,
39
+
40
+ // The actual shell command to execute.
41
+ "command": string,
42
+
43
+ // (optional): The working directory from which to run the command.
44
+ "cwd": string | undefined,
45
+
46
+ // (optional): Whether this process should be run, default: true
47
+ "enabled": boolean | undefined,
48
+
49
+ // (optional): Path to write the process's stdout. If not specified, stderr is not stored.
50
+ "stdoutFile": string | undefined,
51
+
52
+ // (optional): Path to write the process's stderr. If not specified, stderr will be put into the stdoutFile.
53
+ "stderrFile": string | undefined
54
+ }
55
+ ] | undefined
56
+ }"
57
+ `;
58
+
59
+ exports[`stringifySchema should handle a more complex schema 1`] = `
60
+ "// A complex test schema
61
+ {
62
+ // Unique identifier
63
+ "id": string,
64
+
65
+ // A positive integer count
66
+ "count": number,
67
+
68
+ // Activity status
69
+ "isActive": boolean,
70
+
71
+ // (optional): Optional list of tags
72
+ "tags": [
73
+
74
+ string
75
+ ] | undefined,
76
+
77
+ // A nested object structure
78
+ "nested": {
79
+ "value": string,
80
+
81
+ // Nested configuration
82
+ "config": {
83
+ // (optional): Number of retries, default: 3
84
+ "retries": number
85
+ }
86
+ }
87
+ }"
88
+ `;
89
+
90
+ exports[`stringifySchema should handle an empty object schema 1`] = `
91
+ "// An empty schema
92
+ {
93
+ }"
94
+ `;
95
+
96
+ exports[`stringifySchema should handle schema with only optional fields 1`] = `
97
+ "// Schema with only optional fields
98
+ {
99
+ // (optional): Optional field 1
100
+ "field1": string | undefined,
101
+
102
+ // (optional): Optional field 2
103
+ "field2": number | undefined
104
+ }"
105
+ `;
106
+
107
+ exports[`stringifySchema should handle schema with default values 1`] = `
108
+ "// Schema demonstrating default values
109
+ {
110
+ // (optional): Name with default, default: "anonymous"
111
+ "name": string,
112
+
113
+ // (optional): Level with default, default: 1
114
+ "level": number,
115
+
116
+ // (optional): Enabled with default, default: false
117
+ "enabled": boolean
118
+ }"
119
+ `;
package/dist/index.js CHANGED
@@ -137644,7 +137644,7 @@ var import_picocolors20 = __toESM(require_picocolors2(), 1);
137644
137644
  // package.json
137645
137645
  var package_default = {
137646
137646
  name: "codecane",
137647
- version: "1.0.273",
137647
+ version: "1.0.274",
137648
137648
  description: "AI dev assistant",
137649
137649
  license: "MIT",
137650
137650
  main: "dist/index.js",
@@ -0,0 +1,119 @@
1
+ // Bun Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`stringifySchema should correctly stringify StartupProcessSchema 1`] = `
4
+ "// Defines a single startup process.
5
+ {
6
+ // A user-friendly name for the process. Should be one word and unique.
7
+ "name": string,
8
+
9
+ // The actual shell command to execute.
10
+ "command": string,
11
+
12
+ // (optional): The working directory from which to run the command.
13
+ "cwd": string | undefined,
14
+
15
+ // (optional): Whether this process should be run, default: true
16
+ "enabled": boolean | undefined,
17
+
18
+ // (optional): Path to write the process's stdout. If not specified, stderr is not stored.
19
+ "stdoutFile": string | undefined,
20
+
21
+ // (optional): Path to write the process's stderr. If not specified, stderr will be put into the stdoutFile.
22
+ "stderrFile": string | undefined
23
+ }"
24
+ `;
25
+
26
+ exports[`stringifySchema should correctly stringify CodebuffConfigSchema 1`] = `
27
+ "// Defines the overall Codebuff configuration file (e.g., codebuff.json). This schema defines the top-level structure of the configuration.
28
+ {
29
+ // (optional): Does nothing. Put any thing you want here!
30
+ "description": any | undefined,
31
+
32
+ // (optional): An array of startup processes.
33
+ "startupProcesses": [
34
+
35
+ // Defines a single startup process.
36
+ {
37
+ // A user-friendly name for the process. Should be one word and unique.
38
+ "name": string,
39
+
40
+ // The actual shell command to execute.
41
+ "command": string,
42
+
43
+ // (optional): The working directory from which to run the command.
44
+ "cwd": string | undefined,
45
+
46
+ // (optional): Whether this process should be run, default: true
47
+ "enabled": boolean | undefined,
48
+
49
+ // (optional): Path to write the process's stdout. If not specified, stderr is not stored.
50
+ "stdoutFile": string | undefined,
51
+
52
+ // (optional): Path to write the process's stderr. If not specified, stderr will be put into the stdoutFile.
53
+ "stderrFile": string | undefined
54
+ }
55
+ ] | undefined
56
+ }"
57
+ `;
58
+
59
+ exports[`stringifySchema should handle a more complex schema 1`] = `
60
+ "// A complex test schema
61
+ {
62
+ // Unique identifier
63
+ "id": string,
64
+
65
+ // A positive integer count
66
+ "count": number,
67
+
68
+ // Activity status
69
+ "isActive": boolean,
70
+
71
+ // (optional): Optional list of tags
72
+ "tags": [
73
+
74
+ string
75
+ ] | undefined,
76
+
77
+ // A nested object structure
78
+ "nested": {
79
+ "value": string,
80
+
81
+ // Nested configuration
82
+ "config": {
83
+ // (optional): Number of retries, default: 3
84
+ "retries": number
85
+ }
86
+ }
87
+ }"
88
+ `;
89
+
90
+ exports[`stringifySchema should handle an empty object schema 1`] = `
91
+ "// An empty schema
92
+ {
93
+ }"
94
+ `;
95
+
96
+ exports[`stringifySchema should handle schema with only optional fields 1`] = `
97
+ "// Schema with only optional fields
98
+ {
99
+ // (optional): Optional field 1
100
+ "field1": string | undefined,
101
+
102
+ // (optional): Optional field 2
103
+ "field2": number | undefined
104
+ }"
105
+ `;
106
+
107
+ exports[`stringifySchema should handle schema with default values 1`] = `
108
+ "// Schema demonstrating default values
109
+ {
110
+ // (optional): Name with default, default: "anonymous"
111
+ "name": string,
112
+
113
+ // (optional): Level with default, default: 1
114
+ "level": number,
115
+
116
+ // (optional): Enabled with default, default: false
117
+ "enabled": boolean
118
+ }"
119
+ `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codecane",
3
- "version": "1.0.273",
3
+ "version": "1.0.274",
4
4
  "description": "AI dev assistant",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",