@ours.network/tg-connector 1.0.0 → 1.0.1-nightly.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.
@@ -0,0 +1,30 @@
1
+ # Development before the selected SDK/CLI is published
2
+
3
+ This delivery uses SDK/CLI APIs not provided by the registry releases with the same version labels. For this source selection, plain registry installation is not the supported development recipe. Do not infer API compatibility from a version string.
4
+
5
+ Build the selected SDK repository and its CLI first, at the reviewed commit:
6
+
7
+ ```sh
8
+ cd "$SDK_SOURCE"
9
+ git submodule update --init --recursive
10
+ npm ci
11
+ bash scripts/compile-mufl.sh
12
+ npm run build
13
+ npm run build:cli
14
+ npm pack --ignore-scripts --pack-destination "$PACKAGE_OUT"
15
+ (cd packages/cli && npm pack --ignore-scripts --pack-destination "$PACKAGE_OUT")
16
+ ```
17
+
18
+ `SDK_SOURCE` is the selected SDK checkout; `PACKAGE_OUT` is an existing absolute output directory outside the repositories. Use private test HOME/config/state when exercising lifecycle tests. Do not point tests at an existing deployment.
19
+
20
+ In this consumer checkout, install the two actual archives as development inputs:
21
+
22
+ ```sh
23
+ npm install --no-save "$PACKAGE_OUT/ours.network-sdk-3.8.0.tgz" "$PACKAGE_OUT/ours.network-cli-2.8.0.tgz"
24
+ npm run build
25
+ npm test
26
+ ```
27
+
28
+ Use the filenames emitted by `npm pack` if versions change. The archives must come from the same selected SDK/CLI source, not arbitrary packages carrying those version strings. This local installation does not rewrite published dependency declarations; do not commit generated local lockfile paths. A later plain `npm install`/`npm ci` can replace these inputs with registry bytes, so repeat the explicit archive installation after changing dependencies.
29
+
30
+ For a portable delivery artifact, use the repository-owned `scripts/build-selected.mjs --sdk PATH --cli PATH --out-dir PATH` recipe instead. It stages the selected archives privately and produces the package consumed by the installer. Development installation, portable package construction, and final installation must be verified separately. Until compatible versions are published and selected, no registry-only development or release qualification is implied.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ours.network/tg-connector",
3
- "version": "1.0.0",
4
- "description": "Bridge Telegram bots to ours.network agents — attaches to an already-running ours daemon and bridges one Telegram chat/topic to one agent per route. Run `ours-tg-connector add_new_connection`.",
3
+ "version": "1.0.1-nightly.2",
4
+ "description": "Bridge Telegram bots to ours.network agents \u2014 attaches to an already-running ours daemon and bridges one Telegram chat/topic to one agent per route. Run `ours-tg-connector add_new_connection`.",
5
5
  "type": "module",
6
6
  "license": "FSL-1.1-Apache-2.0",
7
7
  "author": "Adapt Toolkit",
@@ -23,7 +23,7 @@
23
23
  "docs"
24
24
  ],
25
25
  "engines": {
26
- "node": ">=20"
26
+ "node": ">=22"
27
27
  },
28
28
  "scripts": {
29
29
  "build": "node build.mjs",
@@ -33,14 +33,15 @@
33
33
  "status": "node dist/cli.js status",
34
34
  "serve": "node dist/cli.js serve",
35
35
  "typecheck": "tsc -p tsconfig.json --noEmit",
36
- "test": "for f in tests/*.test.mjs; do echo \"# $f\"; node_modules/.bin/tsx \"$f\" || exit 1; done"
36
+ "test": "for f in tests/*.test.mjs; do echo \"# $f\"; node_modules/.bin/tsx \"$f\" || exit 1; done",
37
+ "test:v1-lifecycle": "node tests/v1-lifecycle.integration.mjs cli"
37
38
  },
38
39
  "dependencies": {
39
- "@ours.network/sdk": "3.0.1",
40
+ "@ours.network/sdk": "3.8.1-nightly.4",
40
41
  "undici": "^7.28.0"
41
42
  },
42
43
  "devDependencies": {
43
- "@ours.network/cli": "2.0.1",
44
+ "@ours.network/cli": "2.8.1-nightly.2",
44
45
  "@types/node": "^20.14.0",
45
46
  "esbuild": "^0.24.2",
46
47
  "tsx": "^4.19.0",