tila-sdk 0.1.0 → 0.1.2
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/index.cjs +4 -5
- package/dist/index.js +4 -4
- package/package.json +4 -3
package/dist/index.cjs
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var module$1 = require('module');
|
|
4
3
|
var zod = require('zod');
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
// src/client.ts
|
|
5
|
+
// ../schemas/dist/entity.js
|
|
8
6
|
zod.z.object({
|
|
9
7
|
id: zod.z.string(),
|
|
10
8
|
type: zod.z.string(),
|
|
@@ -1199,9 +1197,10 @@ zod.z.object({
|
|
|
1199
1197
|
gates: zod.z.array(GateSchema)
|
|
1200
1198
|
});
|
|
1201
1199
|
|
|
1200
|
+
// src/version.ts
|
|
1201
|
+
var SDK_VERSION = "0.1.2";
|
|
1202
|
+
|
|
1202
1203
|
// src/client.ts
|
|
1203
|
-
var require2 = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)));
|
|
1204
|
-
var SDK_VERSION = require2("../package.json").version;
|
|
1205
1204
|
var TilaClient = class _TilaClient {
|
|
1206
1205
|
baseUrl;
|
|
1207
1206
|
token;
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { createRequire } from 'module';
|
|
2
1
|
import { z } from 'zod';
|
|
3
2
|
|
|
4
|
-
//
|
|
3
|
+
// ../schemas/dist/entity.js
|
|
5
4
|
z.object({
|
|
6
5
|
id: z.string(),
|
|
7
6
|
type: z.string(),
|
|
@@ -1196,9 +1195,10 @@ z.object({
|
|
|
1196
1195
|
gates: z.array(GateSchema)
|
|
1197
1196
|
});
|
|
1198
1197
|
|
|
1198
|
+
// src/version.ts
|
|
1199
|
+
var SDK_VERSION = "0.1.2";
|
|
1200
|
+
|
|
1199
1201
|
// src/client.ts
|
|
1200
|
-
var require2 = createRequire(import.meta.url);
|
|
1201
|
-
var SDK_VERSION = require2("../package.json").version;
|
|
1202
1202
|
var TilaClient = class _TilaClient {
|
|
1203
1203
|
baseUrl;
|
|
1204
1204
|
token;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tila-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "TypeScript SDK for tila — durable state & coordination for multi-machine agentic work",
|
|
6
6
|
"keywords": [
|
|
@@ -54,8 +54,9 @@
|
|
|
54
54
|
"@tila/schemas": "0.1.0"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
|
-
"build": "tsup",
|
|
57
|
+
"build": "node scripts/gen-version.mjs && tsup",
|
|
58
58
|
"typecheck": "tsc --noEmit",
|
|
59
|
-
"test": "vitest run"
|
|
59
|
+
"test": "vitest run",
|
|
60
|
+
"gen:version": "node scripts/gen-version.mjs"
|
|
60
61
|
}
|
|
61
62
|
}
|