@celljs/ta-dash 4.43.0 → 4.44.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.
- package/host/index.mjs +60 -0
- package/package.json +4 -4
package/host/index.mjs
CHANGED
|
@@ -991,6 +991,11 @@ var TaCallSceneUtil;
|
|
|
991
991
|
var MOVES = 40;
|
|
992
992
|
// ../ta-protocol/esm/common/cloud-protocol.js
|
|
993
993
|
var TaCloudServer = Symbol("TaCloudServer");
|
|
994
|
+
var TaCloudTools;
|
|
995
|
+
(function(TaCloudTools2) {
|
|
996
|
+
TaCloudTools2.DIR = ".ta/tools";
|
|
997
|
+
TaCloudTools2.BIN = `${TaCloudTools2.DIR}/bin`;
|
|
998
|
+
})(TaCloudTools || (TaCloudTools = {}));
|
|
994
999
|
var PATTERN = /^(\*|(\*\.)?[a-z0-9_]([a-z0-9_-]*[a-z0-9_])?(\.[a-z0-9_]([a-z0-9_-]*[a-z0-9_])?)*)(:(\d{1,5}|\*))?$/;
|
|
995
1000
|
var PORTS = [80, 443];
|
|
996
1001
|
var TaEgressHosts;
|
|
@@ -1070,6 +1075,61 @@ var TaEgressHosts;
|
|
|
1070
1075
|
}
|
|
1071
1076
|
TaEgressHosts2.refusal = refusal;
|
|
1072
1077
|
})(TaEgressHosts || (TaEgressHosts = {}));
|
|
1078
|
+
// ../ta-protocol/esm/common/command-prelude.js
|
|
1079
|
+
var CommandPrelude;
|
|
1080
|
+
(function(CommandPrelude2) {
|
|
1081
|
+
function quote(value) {
|
|
1082
|
+
return `'${value.replace(/'/g, `'\\''`)}'`;
|
|
1083
|
+
}
|
|
1084
|
+
CommandPrelude2.quote = quote;
|
|
1085
|
+
function usesGit(command) {
|
|
1086
|
+
return /(^|[\s;&|(`])git\s+-?[A-Za-z]/.test(command);
|
|
1087
|
+
}
|
|
1088
|
+
CommandPrelude2.usesGit = usesGit;
|
|
1089
|
+
function usesSsh(command) {
|
|
1090
|
+
return /(^|[\s;&|(`/])(ssh|scp|sftp|rsync|git)(\s|$)/.test(command);
|
|
1091
|
+
}
|
|
1092
|
+
CommandPrelude2.usesSsh = usesSsh;
|
|
1093
|
+
function gitHelper(name, user) {
|
|
1094
|
+
return `!f() { test "$1" = get || return 0; printf 'username=%s\\npassword=%s\\n' ${quote(user)} "$TA_SECRET_${name}"; }; f`;
|
|
1095
|
+
}
|
|
1096
|
+
CommandPrelude2.gitHelper = gitHelper;
|
|
1097
|
+
function script(parts) {
|
|
1098
|
+
const lines = [];
|
|
1099
|
+
for (const [name, value] of parts.env) {
|
|
1100
|
+
lines.push(`export TA_SECRET_${name}=${quote(value)}`);
|
|
1101
|
+
}
|
|
1102
|
+
if (parts.git.length) {
|
|
1103
|
+
lines.push("ta_git=${GIT_CONFIG_COUNT:-0}");
|
|
1104
|
+
const config = (key, value) => {
|
|
1105
|
+
lines.push(`export "GIT_CONFIG_KEY_$ta_git"=${quote(key)} "GIT_CONFIG_VALUE_$ta_git"=${quote(value)}`, "ta_git=$((ta_git + 1))");
|
|
1106
|
+
};
|
|
1107
|
+
for (const one of parts.git) {
|
|
1108
|
+
const key = `credential.https://${one.host}.helper`;
|
|
1109
|
+
config(key, "");
|
|
1110
|
+
config(key, gitHelper(one.name, one.user));
|
|
1111
|
+
}
|
|
1112
|
+
lines.push("export GIT_CONFIG_COUNT=$ta_git GIT_TERMINAL_PROMPT=0", "unset ta_git");
|
|
1113
|
+
}
|
|
1114
|
+
if (parts.proxy) {
|
|
1115
|
+
const url = quote(parts.proxy.url);
|
|
1116
|
+
const bundle = quote(parts.proxy.bundle);
|
|
1117
|
+
lines.push(`export HTTPS_PROXY=${url} https_proxy=${url} HTTP_PROXY=${url} http_proxy=${url} NODE_USE_ENV_PROXY=1`, "export NO_PROXY='localhost,127.0.0.1,::1' no_proxy='localhost,127.0.0.1,::1'", `export SSL_CERT_FILE=${bundle} CURL_CA_BUNDLE=${bundle} REQUESTS_CA_BUNDLE=${bundle} NODE_EXTRA_CA_CERTS=${bundle} GIT_SSL_CAINFO=${bundle} DENO_CERT=${bundle}`, "unset ALL_PROXY all_proxy");
|
|
1118
|
+
}
|
|
1119
|
+
if (parts.keys.length) {
|
|
1120
|
+
lines.push('eval "$(ssh-agent -s -t 1800)" >/dev/null');
|
|
1121
|
+
for (const key of parts.keys) {
|
|
1122
|
+
lines.push(`ssh-add -q ${quote(key)} </dev/null >/dev/null 2>&1`);
|
|
1123
|
+
}
|
|
1124
|
+
lines.push("trap 'ssh-agent -k >/dev/null 2>&1' EXIT");
|
|
1125
|
+
}
|
|
1126
|
+
lines.push("true");
|
|
1127
|
+
return `${lines.join(`
|
|
1128
|
+
`)}
|
|
1129
|
+
`;
|
|
1130
|
+
}
|
|
1131
|
+
CommandPrelude2.script = script;
|
|
1132
|
+
})(CommandPrelude || (CommandPrelude = {}));
|
|
1073
1133
|
// ../ta-protocol/esm/common/confine-protocol.js
|
|
1074
1134
|
var TA_CONFINED_MARK = "[ta:confined]";
|
|
1075
1135
|
var AT = String.raw`(?:^|[;&|(\`]|\$\()\s*(?:sudo\s+|env\s+(?:\S+=\S*\s+)*|npx\s+|bunx\s+|pnpm\s+(?:exec|dlx)\s+|yarn\s+dlx\s+|exec\s+|xargs\s+(?:-\S+\s+)*)*`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-dash",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.44.0",
|
|
4
4
|
"description": "A pi package for Ta: dashboards of replies whose numbers come from queries run on the user's computer, kept current, each showing the query behind it",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"watch": "tsc -b -w --preserveWatchOutput"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@celljs/core": "4.
|
|
31
|
-
"@celljs/ta-protocol": "4.
|
|
32
|
-
"@celljs/ta-web": "4.
|
|
30
|
+
"@celljs/core": "4.44.0",
|
|
31
|
+
"@celljs/ta-protocol": "4.44.0",
|
|
32
|
+
"@celljs/ta-web": "4.44.0",
|
|
33
33
|
"@types/node": "^24.0.0",
|
|
34
34
|
"@types/react": "^19.3.3"
|
|
35
35
|
},
|