uloop-cli 0.69.0 → 0.69.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uloop-cli",
3
- "version": "0.69.0",
3
+ "version": "0.69.1",
4
4
  "//version": "x-release-please-version",
5
5
  "description": "CLI tool for Unity Editor communication via uLoopMCP",
6
6
  "main": "dist/cli.bundle.cjs",
@@ -65,6 +65,20 @@ describe('validateConnectedProject', () => {
65
65
  );
66
66
  });
67
67
 
68
+ it('logs warning and continues when get-version returns Unknown tool error', async () => {
69
+ const client = createMockClient(
70
+ undefined,
71
+ new Error('Unity error: Internal error (Unknown tool: get-version)'),
72
+ );
73
+ const stderrSpy = jest.spyOn(console, 'error').mockImplementation();
74
+
75
+ await expect(validateConnectedProject(client, tempDirA)).resolves.toBeUndefined();
76
+
77
+ expect(stderrSpy).toHaveBeenCalledWith(
78
+ expect.stringContaining('Could not verify project identity'),
79
+ );
80
+ });
81
+
68
82
  it('re-throws non-Method-not-found errors', async () => {
69
83
  const client = createMockClient(undefined, new Error('Unity error: some other error'));
70
84
 
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.69.0",
2
+ "version": "0.69.1",
3
3
  "tools": [
4
4
  {
5
5
  "name": "compile",
@@ -113,7 +113,12 @@ export class DirectUnityClient {
113
113
  const response = JSON.parse(extractResult.jsonContent) as JsonRpcResponse;
114
114
 
115
115
  if (response.error) {
116
- reject(new Error(`Unity error: ${response.error.message}`));
116
+ const data = response.error.data;
117
+ const dataMessage =
118
+ data !== null && data !== undefined && typeof data === 'object' && 'message' in data
119
+ ? ` (${(data as { message: string }).message})`
120
+ : '';
121
+ reject(new Error(`Unity error: ${response.error.message}${dataMessage}`));
117
122
  return;
118
123
  }
119
124
 
@@ -45,7 +45,8 @@ export async function validateConnectedProject(
45
45
  if (
46
46
  error instanceof Error &&
47
47
  (error.message.includes(`${JSON_RPC_METHOD_NOT_FOUND}`) ||
48
- /method not found/i.test(error.message))
48
+ /method not found/i.test(error.message) ||
49
+ /unknown tool/i.test(error.message))
49
50
  ) {
50
51
  console.error(
51
52
  'Warning: Could not verify project identity (get-version not available). Consider updating uLoopMCP package.',
package/src/version.ts CHANGED
@@ -4,4 +4,4 @@
4
4
  * This file exists to avoid bundling the entire package.json into the CLI bundle.
5
5
  * This version is automatically updated by release-please.
6
6
  */
7
- export const VERSION = '0.69.0'; // x-release-please-version
7
+ export const VERSION = '0.69.1'; // x-release-please-version