codebuff 1.0.262 → 1.0.264
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/client.d.ts +1 -1
- package/dist/code-map/tsconfig.tsbuildinfo +1 -1
- package/dist/common/actions.d.ts +10 -10
- package/dist/common/analytics.js +3 -3
- package/dist/common/analytics.js.map +1 -1
- package/dist/common/json-config/__tests__/__snapshots__/stringify-schema.test.js.snap +119 -0
- package/dist/common/types/agent-state.d.ts +2 -2
- package/dist/common/util/__tests__/saxy.test.js +125 -0
- package/dist/common/util/__tests__/saxy.test.js.map +1 -1
- package/dist/common/util/saxy.d.ts +1 -3
- package/dist/common/util/saxy.js +48 -24
- package/dist/common/util/saxy.js.map +1 -1
- package/dist/common/websockets/websocket-schema.d.ts +24 -24
- package/dist/index.js +16 -9
- package/dist/index.js.map +1 -1
- package/dist/project-files.d.ts +10 -1
- package/dist/project-files.js +24 -2
- package/dist/project-files.js.map +1 -1
- package/dist/utils/__tests__/__snapshots__/background-process-manager.test.js.snap +137 -0
- package/dist/utils/__tests__/background-process-manager.test.js +314 -276
- package/dist/utils/__tests__/background-process-manager.test.js.map +1 -1
- package/dist/utils/__tests__/file-paths.test.d.ts +1 -0
- package/dist/utils/__tests__/file-paths.test.js +37 -0
- package/dist/utils/__tests__/file-paths.test.js.map +1 -0
- package/dist/utils/__tests__/path.test.d.ts +1 -0
- package/dist/utils/__tests__/path.test.js +37 -0
- package/dist/utils/__tests__/path.test.js.map +1 -0
- package/dist/utils/analytics.js +9 -1
- package/dist/utils/analytics.js.map +1 -1
- package/dist/utils/file-paths.d.ts +9 -0
- package/dist/utils/file-paths.js +24 -0
- package/dist/utils/file-paths.js.map +1 -0
- package/dist/utils/path.d.ts +9 -0
- package/dist/utils/path.js +27 -0
- package/dist/utils/path.js.map +1 -0
- package/dist/utils/terminal.js +79 -72
- package/dist/utils/terminal.js.map +1 -1
- package/package.json +2 -2
- package/dist/common/bigquery/client.d.ts +0 -15
- package/dist/common/bigquery/client.js +0 -265
- package/dist/common/bigquery/client.js.map +0 -1
- package/dist/common/bigquery/schema.d.ts +0 -55
- package/dist/common/bigquery/schema.js +0 -24
- package/dist/common/bigquery/schema.js.map +0 -1
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
// Bun Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`getBackgroundProcessInfoString formats a running process correctly 1`] = `
|
|
4
|
+
"<background_process>
|
|
5
|
+
<process_id>123</process_id>
|
|
6
|
+
<command>npm test</command>
|
|
7
|
+
<start_time_utc>1970-01-01T00:00:01.000Z</start_time_utc>
|
|
8
|
+
<duration_ms>2000</duration_ms>
|
|
9
|
+
<stdout>test output</stdout>
|
|
10
|
+
<stderr>test error</stderr>
|
|
11
|
+
<status>running</status>
|
|
12
|
+
</background_process>"
|
|
13
|
+
`;
|
|
14
|
+
|
|
15
|
+
exports[`getBackgroundProcessInfoString formats a completed process correctly 1`] = `
|
|
16
|
+
"<background_process>
|
|
17
|
+
<process_id>456</process_id>
|
|
18
|
+
<command>npm build</command>
|
|
19
|
+
<start_time_utc>1970-01-01T00:00:01.000Z</start_time_utc>
|
|
20
|
+
<duration_ms>1000</duration_ms>
|
|
21
|
+
<stdout>build successful</stdout>
|
|
22
|
+
<status>completed</status>
|
|
23
|
+
<exit_code>0</exit_code>
|
|
24
|
+
</background_process>"
|
|
25
|
+
`;
|
|
26
|
+
|
|
27
|
+
exports[`getBackgroundProcessInfoString formats an errored process correctly 1`] = `
|
|
28
|
+
"<background_process>
|
|
29
|
+
<process_id>789</process_id>
|
|
30
|
+
<command>invalid-command</command>
|
|
31
|
+
<start_time_utc>1970-01-01T00:00:01.000Z</start_time_utc>
|
|
32
|
+
<duration_ms>1500</duration_ms>
|
|
33
|
+
<stderr>command not found</stderr>
|
|
34
|
+
<status>error</status>
|
|
35
|
+
<exit_code>1</exit_code>
|
|
36
|
+
<signal_code>SIGTERM</signal_code>
|
|
37
|
+
</background_process>"
|
|
38
|
+
`;
|
|
39
|
+
|
|
40
|
+
exports[`getBackgroundProcessInfoString handles new output since last report 1`] = `
|
|
41
|
+
"<background_process>
|
|
42
|
+
<process_id>102</process_id>
|
|
43
|
+
<command>echo test</command>
|
|
44
|
+
<start_time_utc>1970-01-01T00:00:01.000Z</start_time_utc>
|
|
45
|
+
<duration_ms>1000</duration_ms>
|
|
46
|
+
<stdout>[PREVIOUS OUTPUT]
|
|
47
|
+
more output</stdout>
|
|
48
|
+
<status>completed</status>
|
|
49
|
+
</background_process>"
|
|
50
|
+
`;
|
|
51
|
+
|
|
52
|
+
exports[`getBackgroundProcessInfoString handles no new content 1`] = `
|
|
53
|
+
"<background_process>
|
|
54
|
+
<process_id>103</process_id>
|
|
55
|
+
<command>echo test</command>
|
|
56
|
+
<start_time_utc>1970-01-01T00:00:01.000Z</start_time_utc>
|
|
57
|
+
<duration_ms>1000</duration_ms>
|
|
58
|
+
<status>running</status>
|
|
59
|
+
</background_process>"
|
|
60
|
+
`;
|
|
61
|
+
|
|
62
|
+
exports[`getBackgroundProcessInfoString handles new stderr without when no previous stderr 1`] = `
|
|
63
|
+
"<background_process>
|
|
64
|
+
<process_id>104</process_id>
|
|
65
|
+
<command>echo test</command>
|
|
66
|
+
<start_time_utc>1970-01-01T00:00:01.000Z</start_time_utc>
|
|
67
|
+
<duration_ms>1000</duration_ms>
|
|
68
|
+
<stderr>new error</stderr>
|
|
69
|
+
<status>error</status>
|
|
70
|
+
</background_process>"
|
|
71
|
+
`;
|
|
72
|
+
|
|
73
|
+
exports[`getBackgroundProcessInfoString handles new stdout without when no previous stdout 1`] = `
|
|
74
|
+
"<background_process>
|
|
75
|
+
<process_id>105</process_id>
|
|
76
|
+
<command>echo test</command>
|
|
77
|
+
<start_time_utc>1970-01-01T00:00:01.000Z</start_time_utc>
|
|
78
|
+
<duration_ms>2000</duration_ms>
|
|
79
|
+
<stdout>first output</stdout>
|
|
80
|
+
<status>running</status>
|
|
81
|
+
</background_process>"
|
|
82
|
+
`;
|
|
83
|
+
|
|
84
|
+
exports[`getBackgroundProcessInfoString reports completed process with new stderr even if stdout unchanged 1`] = `
|
|
85
|
+
"<background_process>
|
|
86
|
+
<process_id>106</process_id>
|
|
87
|
+
<command>echo test</command>
|
|
88
|
+
<start_time_utc>1970-01-01T00:00:01.000Z</start_time_utc>
|
|
89
|
+
<duration_ms>1000</duration_ms>
|
|
90
|
+
<stderr>new error</stderr>
|
|
91
|
+
<status>completed</status>
|
|
92
|
+
</background_process>"
|
|
93
|
+
`;
|
|
94
|
+
|
|
95
|
+
exports[`getBackgroundProcessInfoString reports completed process with new stdout even if stderr unchanged 1`] = `
|
|
96
|
+
"<background_process>
|
|
97
|
+
<process_id>107</process_id>
|
|
98
|
+
<command>echo test</command>
|
|
99
|
+
<start_time_utc>1970-01-01T00:00:01.000Z</start_time_utc>
|
|
100
|
+
<duration_ms>1000</duration_ms>
|
|
101
|
+
<stdout>[PREVIOUS OUTPUT]
|
|
102
|
+
more</stdout>
|
|
103
|
+
<status>completed</status>
|
|
104
|
+
</background_process>"
|
|
105
|
+
`;
|
|
106
|
+
|
|
107
|
+
exports[`getBackgroundProcessInfoString reports process when status changes even without output changes 1`] = `
|
|
108
|
+
"<background_process>
|
|
109
|
+
<process_id>108</process_id>
|
|
110
|
+
<command>echo test</command>
|
|
111
|
+
<start_time_utc>1970-01-01T00:00:01.000Z</start_time_utc>
|
|
112
|
+
<duration_ms>1000</duration_ms>
|
|
113
|
+
<status>completed</status>
|
|
114
|
+
</background_process>"
|
|
115
|
+
`;
|
|
116
|
+
|
|
117
|
+
exports[`getBackgroundProcessInfoString calculates duration from endTime when available 1`] = `
|
|
118
|
+
"<background_process>
|
|
119
|
+
<process_id>109</process_id>
|
|
120
|
+
<command>echo test</command>
|
|
121
|
+
<start_time_utc>1970-01-01T00:00:01.000Z</start_time_utc>
|
|
122
|
+
<duration_ms>1500</duration_ms>
|
|
123
|
+
<stdout>test</stdout>
|
|
124
|
+
<status>completed</status>
|
|
125
|
+
</background_process>"
|
|
126
|
+
`;
|
|
127
|
+
|
|
128
|
+
exports[`getBackgroundProcessInfoString calculates duration from current time when no endTime 1`] = `
|
|
129
|
+
"<background_process>
|
|
130
|
+
<process_id>110</process_id>
|
|
131
|
+
<command>echo test</command>
|
|
132
|
+
<start_time_utc>1970-01-01T00:00:01.000Z</start_time_utc>
|
|
133
|
+
<duration_ms>2000</duration_ms>
|
|
134
|
+
<stdout>test</stdout>
|
|
135
|
+
<status>running</status>
|
|
136
|
+
</background_process>"
|
|
137
|
+
`;
|