@robosystems/client 0.1.13 → 0.1.14
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/extensions/OperationClient.js +1 -1
- package/extensions/QueryClient.js +1 -1
- package/extensions/hooks.js +1 -1
- package/extensions/index.js +1 -1
- package/package.json +1 -1
- package/prepare.js +10 -5
|
@@ -6,7 +6,7 @@ exports.OperationClient = void 0;
|
|
|
6
6
|
* General Operations Client for monitoring async operations
|
|
7
7
|
* Handles graph creation, backups, imports, and other long-running tasks
|
|
8
8
|
*/
|
|
9
|
-
const sdk_gen_1 = require("../sdk
|
|
9
|
+
const sdk_gen_1 = require("../sdk.gen");
|
|
10
10
|
const SSEClient_1 = require("./SSEClient");
|
|
11
11
|
class OperationClient {
|
|
12
12
|
constructor(config) {
|
|
@@ -6,7 +6,7 @@ exports.QueuedQueryError = exports.QueryClient = void 0;
|
|
|
6
6
|
* Enhanced Query Client with SSE support
|
|
7
7
|
* Provides intelligent query execution with automatic strategy selection
|
|
8
8
|
*/
|
|
9
|
-
const sdk_gen_1 = require("../sdk
|
|
9
|
+
const sdk_gen_1 = require("../sdk.gen");
|
|
10
10
|
const SSEClient_1 = require("./SSEClient");
|
|
11
11
|
class QueryClient {
|
|
12
12
|
constructor(config) {
|
package/extensions/hooks.js
CHANGED
|
@@ -11,7 +11,7 @@ exports.useSDKClients = useSDKClients;
|
|
|
11
11
|
* Provides easy-to-use hooks for Next.js/React applications
|
|
12
12
|
*/
|
|
13
13
|
const react_1 = require("react");
|
|
14
|
-
const client_gen_1 = require("../
|
|
14
|
+
const client_gen_1 = require("../client.gen");
|
|
15
15
|
const config_1 = require("./config");
|
|
16
16
|
const OperationClient_1 = require("./OperationClient");
|
|
17
17
|
const QueryClient_1 = require("./QueryClient");
|
package/extensions/index.js
CHANGED
|
@@ -19,7 +19,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
21
|
exports.streamQuery = exports.executeQuery = exports.monitorOperation = exports.extensions = exports.useStreamingQuery = exports.useSDKClients = exports.useQuery = exports.useOperation = exports.useMultipleOperations = exports.SSEClient = exports.QueryClient = exports.OperationClient = exports.RoboSystemsExtensions = void 0;
|
|
22
|
-
const client_gen_1 = require("../
|
|
22
|
+
const client_gen_1 = require("../client.gen");
|
|
23
23
|
const OperationClient_1 = require("./OperationClient");
|
|
24
24
|
Object.defineProperty(exports, "OperationClient", { enumerable: true, get: function () { return OperationClient_1.OperationClient; } });
|
|
25
25
|
const QueryClient_1 = require("./QueryClient");
|
package/package.json
CHANGED
package/prepare.js
CHANGED
|
@@ -100,17 +100,22 @@ if (fs.existsSync(extensionsSourceDir)) {
|
|
|
100
100
|
|
|
101
101
|
if (file.endsWith('.js') || file.endsWith('.d.ts')) {
|
|
102
102
|
// Copy compiled JavaScript and declaration files
|
|
103
|
-
fs.
|
|
104
|
-
|
|
103
|
+
let content = fs.readFileSync(sourcePath, 'utf8')
|
|
104
|
+
|
|
105
|
+
// Fix imports for published package structure (../sdk/ -> ../)
|
|
106
|
+
content = content
|
|
107
|
+
.replace(/require\("\.\.\/sdk\//g, 'require("../')
|
|
108
|
+
.replace(/from ['"]\.\.\/sdk\//g, "from '../")
|
|
109
|
+
|
|
110
|
+
fs.writeFileSync(destPath, content)
|
|
111
|
+
console.log(` ✓ Copied and fixed ${file}`)
|
|
105
112
|
} else if (file.endsWith('.ts') && !file.endsWith('.d.ts')) {
|
|
106
113
|
// Copy TypeScript source files for reference
|
|
107
114
|
let content = fs.readFileSync(sourcePath, 'utf8')
|
|
108
115
|
|
|
109
116
|
// Adjust imports for published package structure
|
|
110
117
|
content = content
|
|
111
|
-
.replace(/from ['"]\.\.\/sdk
|
|
112
|
-
.replace(/from ['"]\.\.\/sdk\/types\.gen['"]/g, "from '../types.gen'")
|
|
113
|
-
.replace(/from ['"]\.\.\/sdk\/client\.gen['"]/g, "from '../client.gen'")
|
|
118
|
+
.replace(/from ['"]\.\.\/sdk\//g, "from '../")
|
|
114
119
|
|
|
115
120
|
fs.writeFileSync(destPath, content)
|
|
116
121
|
console.log(` ✓ Copied ${file}`)
|