@agentrix/cli 0.0.9 → 0.0.11

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/lib.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var _package = require('./logger-ChBQkYk7.cjs');
3
+ var _package = require('./logger-BZKdzrRM.cjs');
4
4
  require('winston');
5
5
  require('chalk');
6
6
  require('node:os');
package/dist/lib.d.cts CHANGED
@@ -67,6 +67,9 @@ declare class Machine implements AgentContext {
67
67
  getInitialCommitHashPath(userId: string, taskId: string): string;
68
68
  readInitialCommitHash(userId: string, taskId: string): Promise<string | null>;
69
69
  writeInitialCommitHash(userId: string, taskId: string, hash: string): Promise<void>;
70
+ getLastSentCommitHashPath(userId: string, taskId: string): string;
71
+ readLastSentCommitHash(userId: string, taskId: string): Promise<string | null>;
72
+ writeLastSentCommitHash(userId: string, taskId: string, hash: string): Promise<void>;
70
73
  writeTaskInput(data: CreateTaskEventData | ResumeTaskEventData): void;
71
74
  readTaskInput(userId: string, taskId: string): (CreateTaskEventData | ResumeTaskEventData);
72
75
  getSecretKey(): Promise<Uint8Array<ArrayBufferLike> | undefined>;
package/dist/lib.d.mts CHANGED
@@ -67,6 +67,9 @@ declare class Machine implements AgentContext {
67
67
  getInitialCommitHashPath(userId: string, taskId: string): string;
68
68
  readInitialCommitHash(userId: string, taskId: string): Promise<string | null>;
69
69
  writeInitialCommitHash(userId: string, taskId: string, hash: string): Promise<void>;
70
+ getLastSentCommitHashPath(userId: string, taskId: string): string;
71
+ readLastSentCommitHash(userId: string, taskId: string): Promise<string | null>;
72
+ writeLastSentCommitHash(userId: string, taskId: string, hash: string): Promise<void>;
70
73
  writeTaskInput(data: CreateTaskEventData | ResumeTaskEventData): void;
71
74
  readTaskInput(userId: string, taskId: string): (CreateTaskEventData | ResumeTaskEventData);
72
75
  getSecretKey(): Promise<Uint8Array<ArrayBufferLike> | undefined>;
package/dist/lib.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { M as Machine, l as logger, m as machine } from './logger-6H3e_sL6.mjs';
1
+ export { M as Machine, l as logger, m as machine } from './logger-7E71dnBD.mjs';
2
2
  import 'winston';
3
3
  import 'chalk';
4
4
  import 'node:os';
@@ -10,7 +10,7 @@ import { dirname, resolve } from 'path';
10
10
  import { fileURLToPath } from 'url';
11
11
 
12
12
  var name = "@agentrix/cli";
13
- var version = "0.0.9";
13
+ var version = "0.0.11";
14
14
  var description = "Mobile and Web client for Claude Code and Codex";
15
15
  var author = "agentrix.xmz.ai";
16
16
  var type = "module";
@@ -93,6 +93,10 @@ var dependencies = {
93
93
  "http-proxy": "^1.18.1",
94
94
  "http-proxy-middleware": "^3.0.5",
95
95
  ink: "^6.1.0",
96
+ "ink-box": "^2.0.0",
97
+ "ink-select-input": "^6.0.0",
98
+ "ink-spinner": "^5.0.0",
99
+ "ink-text-input": "^6.0.0",
96
100
  open: "^10.2.0",
97
101
  "ps-list": "^8.1.1",
98
102
  "qrcode-terminal": "^0.12.0",
@@ -387,6 +391,25 @@ class Machine {
387
391
  const path = this.getInitialCommitHashPath(userId, taskId);
388
392
  await writeFile(path, hash);
389
393
  }
394
+ getLastSentCommitHashPath(userId, taskId) {
395
+ return join(this.resolveDataDir(userId, taskId), "last-sent-commit-hash.txt");
396
+ }
397
+ async readLastSentCommitHash(userId, taskId) {
398
+ const path = this.getLastSentCommitHashPath(userId, taskId);
399
+ if (!existsSync(path)) {
400
+ return null;
401
+ }
402
+ try {
403
+ const content = await readFile(path, "utf-8");
404
+ return content.trim();
405
+ } catch {
406
+ return null;
407
+ }
408
+ }
409
+ async writeLastSentCommitHash(userId, taskId, hash) {
410
+ const path = this.getLastSentCommitHashPath(userId, taskId);
411
+ await writeFile(path, hash);
412
+ }
390
413
  writeTaskInput(data) {
391
414
  const path = this.resolveDataDir(data.userId, data.taskId);
392
415
  const inputFile = join(path, "input.json");
@@ -9,11 +9,11 @@ var promises = require('node:fs/promises');
9
9
  var path$1 = require('node:path');
10
10
  var shared = require('@agentrix/shared');
11
11
  var path = require('path');
12
- var url = require('url');
12
+ var require$$7 = require('url');
13
13
 
14
14
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
15
15
  var name = "@agentrix/cli";
16
- var version = "0.0.9";
16
+ var version = "0.0.11";
17
17
  var description = "Mobile and Web client for Claude Code and Codex";
18
18
  var author = "agentrix.xmz.ai";
19
19
  var type = "module";
@@ -96,6 +96,10 @@ var dependencies = {
96
96
  "http-proxy": "^1.18.1",
97
97
  "http-proxy-middleware": "^3.0.5",
98
98
  ink: "^6.1.0",
99
+ "ink-box": "^2.0.0",
100
+ "ink-select-input": "^6.0.0",
101
+ "ink-spinner": "^5.0.0",
102
+ "ink-text-input": "^6.0.0",
99
103
  open: "^10.2.0",
100
104
  "ps-list": "^8.1.1",
101
105
  "qrcode-terminal": "^0.12.0",
@@ -185,7 +189,7 @@ var _package = /*#__PURE__*/Object.freeze({
185
189
  version: version
186
190
  });
187
191
 
188
- const __dirname$1 = path.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('logger-ChBQkYk7.cjs', document.baseURI).href))));
192
+ const __dirname$1 = path.dirname(require$$7.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('logger-BZKdzrRM.cjs', document.baseURI).href))));
189
193
  function projectPath() {
190
194
  const path$1 = path.resolve(__dirname$1, "..");
191
195
  return path$1;
@@ -390,6 +394,25 @@ class Machine {
390
394
  const path = this.getInitialCommitHashPath(userId, taskId);
391
395
  await promises.writeFile(path, hash);
392
396
  }
397
+ getLastSentCommitHashPath(userId, taskId) {
398
+ return path$1.join(this.resolveDataDir(userId, taskId), "last-sent-commit-hash.txt");
399
+ }
400
+ async readLastSentCommitHash(userId, taskId) {
401
+ const path = this.getLastSentCommitHashPath(userId, taskId);
402
+ if (!fs.existsSync(path)) {
403
+ return null;
404
+ }
405
+ try {
406
+ const content = await promises.readFile(path, "utf-8");
407
+ return content.trim();
408
+ } catch {
409
+ return null;
410
+ }
411
+ }
412
+ async writeLastSentCommitHash(userId, taskId, hash) {
413
+ const path = this.getLastSentCommitHashPath(userId, taskId);
414
+ await promises.writeFile(path, hash);
415
+ }
393
416
  writeTaskInput(data) {
394
417
  const path = this.resolveDataDir(data.userId, data.taskId);
395
418
  const inputFile = path$1.join(path, "input.json");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentrix/cli",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "description": "Mobile and Web client for Claude Code and Codex",
5
5
  "author": "agentrix.xmz.ai",
6
6
  "type": "module",
@@ -83,6 +83,10 @@
83
83
  "http-proxy": "^1.18.1",
84
84
  "http-proxy-middleware": "^3.0.5",
85
85
  "ink": "^6.1.0",
86
+ "ink-box": "^2.0.0",
87
+ "ink-select-input": "^6.0.0",
88
+ "ink-spinner": "^5.0.0",
89
+ "ink-text-input": "^6.0.0",
86
90
  "open": "^10.2.0",
87
91
  "ps-list": "^8.1.1",
88
92
  "qrcode-terminal": "^0.12.0",