replicas-cli 0.2.308 → 0.2.310
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.mjs +13 -5
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -8562,7 +8562,7 @@ If you encounter a Linear issue link (e.g. \`https://linear.app/team/issue/ENG-1
|
|
|
8562
8562
|
|
|
8563
8563
|
\`\`\`bash
|
|
8564
8564
|
jq -n --arg identifier "ENG-123" '{
|
|
8565
|
-
query: "query($identifier: String!) {
|
|
8565
|
+
query: "query($identifier: String!) { issue(id: $identifier) { id identifier title description state { name } assignee { name } parent { identifier title description } } }",
|
|
8566
8566
|
variables: { identifier: $identifier }
|
|
8567
8567
|
}' | linear_graphql
|
|
8568
8568
|
\`\`\`
|
|
@@ -8591,7 +8591,7 @@ jq -n --arg issueId "ISSUE_UUID" --arg body "Your comment here" '{
|
|
|
8591
8591
|
|
|
8592
8592
|
\`\`\`bash
|
|
8593
8593
|
jq -n --arg query "search terms" '{
|
|
8594
|
-
query: "query($query: String!) {
|
|
8594
|
+
query: "query($query: String!) { issues(filter: { or: [{ title: { containsIgnoreCase: $query } }, { description: { containsIgnoreCase: $query } }] }, first: 10) { nodes { identifier title state { name } } } }",
|
|
8595
8595
|
variables: { query: $query }
|
|
8596
8596
|
}' | linear_graphql
|
|
8597
8597
|
\`\`\`
|
|
@@ -9360,7 +9360,7 @@ var HOOK_EXEC_MAX_BUFFER_BYTES = 10 * 1024 * 1024;
|
|
|
9360
9360
|
var REPLICAS_CONFIG_FILENAMES = ["replicas.json", "replicas.yaml", "replicas.yml"];
|
|
9361
9361
|
|
|
9362
9362
|
// ../shared/src/cli-version.ts
|
|
9363
|
-
var CLI_VERSION = "0.2.
|
|
9363
|
+
var CLI_VERSION = "0.2.310";
|
|
9364
9364
|
|
|
9365
9365
|
// ../shared/src/engine/environment.ts
|
|
9366
9366
|
var DESKTOP_NOVNC_PORT = 6080;
|
|
@@ -14344,6 +14344,7 @@ var STATE_DIR = process.env.REPLICAS_DESKTOP_STATE_DIR || "/tmp/replicas-compute
|
|
|
14344
14344
|
var DEFAULT_DISPLAY = process.env.REPLICAS_DESKTOP_DISPLAY || ":99";
|
|
14345
14345
|
var NOVNC_PORT = process.env.REPLICAS_DESKTOP_NOVNC_PORT ? parseInt(process.env.REPLICAS_DESKTOP_NOVNC_PORT, 10) : DESKTOP_NOVNC_PORT;
|
|
14346
14346
|
var SERVICES_SCRIPT = "/usr/local/bin/replicas-start-desktop-services";
|
|
14347
|
+
var CHROME_WRAPPER = "/usr/local/bin/replicas-chrome";
|
|
14347
14348
|
var INFO_WAIT_TIMEOUT_MS = 1e4;
|
|
14348
14349
|
var INFO_WAIT_INTERVAL_MS = 500;
|
|
14349
14350
|
function fail(msg) {
|
|
@@ -14596,7 +14597,7 @@ async function computerDragCommand(fx, fy, tx, ty) {
|
|
|
14596
14597
|
console.log(`dragged (${fromX},${fromY}) -> (${toX},${toY})`);
|
|
14597
14598
|
}
|
|
14598
14599
|
var APP_ALIASES = {
|
|
14599
|
-
chrome: [
|
|
14600
|
+
chrome: [CHROME_WRAPPER],
|
|
14600
14601
|
chromium: ["chromium", "--no-first-run", "--no-default-browser-check"],
|
|
14601
14602
|
firefox: ["firefox"],
|
|
14602
14603
|
terminal: ["xfce4-terminal"],
|
|
@@ -14606,9 +14607,16 @@ var APP_ALIASES = {
|
|
|
14606
14607
|
files: ["thunar"],
|
|
14607
14608
|
filemanager: ["thunar"]
|
|
14608
14609
|
};
|
|
14610
|
+
var LEGACY_CHROME_ALIAS = [
|
|
14611
|
+
"google-chrome",
|
|
14612
|
+
"--no-first-run",
|
|
14613
|
+
"--no-default-browser-check",
|
|
14614
|
+
"--start-maximized",
|
|
14615
|
+
"--user-data-dir=/tmp/replicas-computer/chrome-profile"
|
|
14616
|
+
];
|
|
14609
14617
|
async function computerLaunchCommand(app, args) {
|
|
14610
14618
|
ensureServicesRunning();
|
|
14611
|
-
const baseArgs = APP_ALIASES[app] ?? [app];
|
|
14619
|
+
const baseArgs = app === "chrome" && !existsSync(CHROME_WRAPPER) ? LEGACY_CHROME_ALIAS : APP_ALIASES[app] ?? [app];
|
|
14612
14620
|
const bin = baseArgs[0];
|
|
14613
14621
|
const fullArgs = [...baseArgs.slice(1), ...args];
|
|
14614
14622
|
const child = spawn3(bin, fullArgs, {
|