@celljs/ta-harness 4.10.0 → 4.11.0

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.
@@ -17,7 +17,7 @@ export declare namespace PackageArchive {
17
17
  /** Unpacked, at most: a package is code and a few assets, not data. */
18
18
  const MAX_BYTES: number;
19
19
  const MAX_FILES = 5000;
20
- /** The files of the package in `root`, without node_modules and .git; links are left out. */
20
+ /** The files of the package in `root`, without node_modules, .git and files of secrets (.env, .npmrc); links are left out. */
21
21
  function collect(root: string): ArchiveFile[];
22
22
  /**
23
23
  * Puts the files of an archive in `target`, in place of what was there: written beside it under a name
@@ -5,6 +5,11 @@ import { gunzipSync, gzipSync } from 'node:zlib';
5
5
  const BLOCK = 512;
6
6
  /** What a package carries that the one who gets it installs or has already. */
7
7
  const LEFT_OUT = new Set(['node_modules', '.git', '.DS_Store']);
8
+ /**
9
+ * What holds secrets rather than code: `.env`, `.env.local`… (not `.env.example`), `.npmrc` (its tokens of
10
+ * registries). A link hands the package to anyone who has it.
11
+ */
12
+ const SECRETS = /^(\.env(\.(?!example$|sample$).+)?|\.npmrc)$/;
8
13
  /**
9
14
  * A package in one file to hand on: a gzipped tar of its directory, as `tar -czf <name>.tgz <name>` makes
10
15
  * it, so that `tar` reads it too. Only directories and plain files; links and the rest are left out.
@@ -14,13 +19,13 @@ export var PackageArchive;
14
19
  /** Unpacked, at most: a package is code and a few assets, not data. */
15
20
  PackageArchive.MAX_BYTES = 20 * 1024 * 1024;
16
21
  PackageArchive.MAX_FILES = 5000;
17
- /** The files of the package in `root`, without node_modules and .git; links are left out. */
22
+ /** The files of the package in `root`, without node_modules, .git and files of secrets (.env, .npmrc); links are left out. */
18
23
  function collect(root) {
19
24
  const files = [];
20
25
  let bytes = 0;
21
26
  const walk = (directory, prefix) => {
22
27
  for (const name of readdirSync(directory).sort()) {
23
- if (LEFT_OUT.has(name)) {
28
+ if (LEFT_OUT.has(name) || SECRETS.test(name)) {
24
29
  continue;
25
30
  }
26
31
  const file = join(directory, name);
@@ -10,7 +10,7 @@ import { TaBrand } from './ta-brand.js';
10
10
  import { TaPackages } from './ta-packages.js';
11
11
  const SERVE_HELP = `Usage: ta serve [--host <host>] [--port <port>] [--web] [--exec <url>]
12
12
 
13
- Serves ta sessions over WebSocket to any number of clients, and the web client. Stops on SIGINT or SIGTERM.
13
+ Serves the sessions of Ta over WebSocket to any number of clients, and its web client. Stops on SIGINT or SIGTERM.
14
14
 
15
15
  --host Address to listen on. Default: 127.0.0.1
16
16
  --port Port to listen on. Default: the port of the last start if it is free, so that a web app
@@ -23,8 +23,15 @@ export var TaPackages;
23
23
  '@celljs/ta-computer-use',
24
24
  '@celljs/ta-changes',
25
25
  '@celljs/ta-cron',
26
+ '@celljs/ta-notify',
27
+ '@celljs/ta-recall',
28
+ '@celljs/ta-glance',
29
+ '@celljs/ta-games',
26
30
  '@celljs/ta-bots',
27
31
  '@celljs/ta-agents',
32
+ '@celljs/ta-manual',
33
+ '@celljs/ta-share',
34
+ '@celljs/ta-rooms',
28
35
  ];
29
36
  /** In the agent directory. */
30
37
  TaPackages.SETTINGS_FILE = 'ta.json';
@@ -17,7 +17,7 @@ export declare namespace PackageArchive {
17
17
  /** Unpacked, at most: a package is code and a few assets, not data. */
18
18
  const MAX_BYTES: number;
19
19
  const MAX_FILES = 5000;
20
- /** The files of the package in `root`, without node_modules and .git; links are left out. */
20
+ /** The files of the package in `root`, without node_modules, .git and files of secrets (.env, .npmrc); links are left out. */
21
21
  function collect(root: string): ArchiveFile[];
22
22
  /**
23
23
  * Puts the files of an archive in `target`, in place of what was there: written beside it under a name
@@ -8,6 +8,11 @@ const node_zlib_1 = require("node:zlib");
8
8
  const BLOCK = 512;
9
9
  /** What a package carries that the one who gets it installs or has already. */
10
10
  const LEFT_OUT = new Set(['node_modules', '.git', '.DS_Store']);
11
+ /**
12
+ * What holds secrets rather than code: `.env`, `.env.local`… (not `.env.example`), `.npmrc` (its tokens of
13
+ * registries). A link hands the package to anyone who has it.
14
+ */
15
+ const SECRETS = /^(\.env(\.(?!example$|sample$).+)?|\.npmrc)$/;
11
16
  /**
12
17
  * A package in one file to hand on: a gzipped tar of its directory, as `tar -czf <name>.tgz <name>` makes
13
18
  * it, so that `tar` reads it too. Only directories and plain files; links and the rest are left out.
@@ -17,13 +22,13 @@ var PackageArchive;
17
22
  /** Unpacked, at most: a package is code and a few assets, not data. */
18
23
  PackageArchive.MAX_BYTES = 20 * 1024 * 1024;
19
24
  PackageArchive.MAX_FILES = 5000;
20
- /** The files of the package in `root`, without node_modules and .git; links are left out. */
25
+ /** The files of the package in `root`, without node_modules, .git and files of secrets (.env, .npmrc); links are left out. */
21
26
  function collect(root) {
22
27
  const files = [];
23
28
  let bytes = 0;
24
29
  const walk = (directory, prefix) => {
25
30
  for (const name of (0, node_fs_1.readdirSync)(directory).sort()) {
26
- if (LEFT_OUT.has(name)) {
31
+ if (LEFT_OUT.has(name) || SECRETS.test(name)) {
27
32
  continue;
28
33
  }
29
34
  const file = (0, node_path_1.join)(directory, name);
@@ -13,7 +13,7 @@ const ta_brand_1 = require("./ta-brand");
13
13
  const ta_packages_1 = require("./ta-packages");
14
14
  const SERVE_HELP = `Usage: ta serve [--host <host>] [--port <port>] [--web] [--exec <url>]
15
15
 
16
- Serves ta sessions over WebSocket to any number of clients, and the web client. Stops on SIGINT or SIGTERM.
16
+ Serves the sessions of Ta over WebSocket to any number of clients, and its web client. Stops on SIGINT or SIGTERM.
17
17
 
18
18
  --host Address to listen on. Default: 127.0.0.1
19
19
  --port Port to listen on. Default: the port of the last start if it is free, so that a web app
@@ -22,8 +22,15 @@ var TaPackages;
22
22
  '@celljs/ta-computer-use',
23
23
  '@celljs/ta-changes',
24
24
  '@celljs/ta-cron',
25
+ '@celljs/ta-notify',
26
+ '@celljs/ta-recall',
27
+ '@celljs/ta-glance',
28
+ '@celljs/ta-games',
25
29
  '@celljs/ta-bots',
26
30
  '@celljs/ta-agents',
31
+ '@celljs/ta-manual',
32
+ '@celljs/ta-share',
33
+ '@celljs/ta-rooms',
27
34
  ];
28
35
  /** In the agent directory. */
29
36
  TaPackages.SETTINGS_FILE = 'ta.json';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/ta-harness",
3
- "version": "4.10.0",
3
+ "version": "4.11.0",
4
4
  "description": "The agent runtime of Ta on pi: branding, session locks and execution environment adapters",
5
5
  "homepage": "https://github.com/cellbang/cell",
6
6
  "bugs": {
@@ -29,9 +29,9 @@
29
29
  "watch": "tsc -b -w --preserveWatchOutput"
30
30
  },
31
31
  "dependencies": {
32
- "@celljs/ai-coding-agent": "4.10.0",
33
- "@celljs/ta-exec": "4.10.0",
34
- "@celljs/ta-relay": "4.10.0",
32
+ "@celljs/ai-coding-agent": "4.11.0",
33
+ "@celljs/ta-exec": "4.11.0",
34
+ "@celljs/ta-relay": "4.11.0",
35
35
  "@earendil-works/pi-coding-agent": "^1.5.2",
36
36
  "@earendil-works/pi-mcp": "^1.5.2"
37
37
  },