agent-afk 5.299.4 → 5.299.6

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.
Files changed (32) hide show
  1. package/dist/agent/tools/dispatcher.batch-process.d.ts +2 -0
  2. package/dist/agent/tools/dispatcher.d.ts +1 -0
  3. package/dist/agent/tools/dispatcher.execute-batch.d.ts +2 -0
  4. package/dist/agent/tools/strategy-nudge.d.ts +27 -0
  5. package/dist/agent/trace/events.d.ts +2 -0
  6. package/dist/agent/trace/events.session-phase.d.ts +2 -0
  7. package/dist/agent/trace/receipt.d.ts +2 -1
  8. package/dist/agent/trace/types.session-phase.d.ts +1 -1
  9. package/dist/bundled-plugins/awa-bundled/skills/ship/SKILL.md +34 -0
  10. package/dist/cli/_lib/testing/virtual-screen.csi.d.ts +0 -2
  11. package/dist/cli/permission-mode-cycle.d.ts +3 -0
  12. package/dist/cli/terminal-compositor.archived-reveal.d.ts +18 -0
  13. package/dist/cli/terminal-compositor.content-hug.d.ts +4 -2
  14. package/dist/cli/terminal-compositor.d.ts +2 -0
  15. package/dist/cli/terminal-compositor.frame.d.ts +1 -0
  16. package/dist/cli/terminal-compositor.frame.layout.d.ts +1 -1
  17. package/dist/cli/terminal-compositor.frame.position.d.ts +1 -1
  18. package/dist/cli/terminal-compositor.input-dispatch.d.ts +1 -0
  19. package/dist/cli/terminal-compositor.mode-notice.d.ts +14 -0
  20. package/dist/cli/terminal-compositor.reset.d.ts +1 -0
  21. package/dist/cli.mjs +436 -428
  22. package/dist/index.mjs +161 -157
  23. package/dist/service/index.d.ts +1 -1
  24. package/dist/service/types.d.ts +2 -1
  25. package/dist/service/windows/argv.d.ts +8 -0
  26. package/dist/service/windows/install.d.ts +9 -0
  27. package/dist/service/windows/manager.d.ts +2 -0
  28. package/dist/service/windows/paths.d.ts +7 -0
  29. package/dist/service/windows/status.d.ts +7 -0
  30. package/dist/service/windows/task-xml.d.ts +9 -0
  31. package/dist/telegram.mjs +206 -201
  32. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
1
  import type { ServiceManager } from './types.js';
2
2
  export * from './types.js';
3
3
  export declare function serviceManagerFor(platform?: NodeJS.Platform): ServiceManager | null;
4
- export declare const SUPPORTED_SERVICE_PLATFORMS = "macOS (launchd) and Linux (systemd --user)";
4
+ export declare const SUPPORTED_SERVICE_PLATFORMS = "macOS (launchd), Linux (systemd --user), and Windows (Task Scheduler)";
@@ -61,11 +61,12 @@ export interface ServiceStatus {
61
61
  installed: boolean;
62
62
  configPath: string;
63
63
  pid?: number;
64
+ running?: boolean;
64
65
  lastExitStatus?: number;
65
66
  logFile: string;
66
67
  }
67
68
  export interface ServiceManager {
68
- readonly backend: 'launchd' | 'systemd';
69
+ readonly backend: 'launchd' | 'systemd' | 'task-scheduler';
69
70
  readonly configKind: string;
70
71
  install(name: ServiceName, opts?: ServiceInstallOptions): ServiceInstallOutcome;
71
72
  uninstall(name: ServiceName): ServiceUninstallOutcome;
@@ -0,0 +1,8 @@
1
+ import type { ServiceName } from '../types.js';
2
+ export interface WindowsArgvDeps {
3
+ existsCheck?: (p: string) => boolean;
4
+ argv1?: string | undefined;
5
+ execPath?: string;
6
+ realpathFn?: (p: string) => string;
7
+ }
8
+ export declare function resolveWindowsProgramArguments(name: ServiceName, deps?: WindowsArgvDeps): string[];
@@ -0,0 +1,9 @@
1
+ import type { ServiceInstallOptions, ServiceInstallOutcome, ServiceName, ServiceUninstallOutcome } from '../types.js';
2
+ export interface WindowsInstallOptions extends ServiceInstallOptions {
3
+ _entrypointExistsCheck?: (p: string) => boolean;
4
+ }
5
+ export declare function writeUtf16Le(path: string, content: string): string | undefined;
6
+ export declare function renderWindowsTask(name: ServiceName, opts?: WindowsInstallOptions): string;
7
+ export declare function installWindowsTask(name: ServiceName, opts?: WindowsInstallOptions): ServiceInstallOutcome;
8
+ export declare function uninstallWindowsTask(name: ServiceName): ServiceUninstallOutcome;
9
+ export declare function readTaskFile(name: ServiceName): string | undefined;
@@ -0,0 +1,2 @@
1
+ import type { ServiceManager } from '../types.js';
2
+ export declare const windowsManager: ServiceManager;
@@ -0,0 +1,7 @@
1
+ import { serviceLogPath as sharedServiceLogPath } from '../types.js';
2
+ import type { ServiceName } from '../types.js';
3
+ export declare function taskName(name: ServiceName): string;
4
+ export declare function windowsServiceDir(): string;
5
+ export declare function taskXmlPath(name: ServiceName): string;
6
+ export declare const serviceLogPath: typeof sharedServiceLogPath;
7
+ export declare const SCHTASKS_TIMEOUT_MS = 8000;
@@ -0,0 +1,7 @@
1
+ import type { ServiceName, ServiceStatus } from '../types.js';
2
+ export interface SchtasksQueryResult {
3
+ running: boolean;
4
+ lastExitStatus?: number;
5
+ }
6
+ export declare function parseSchtasksQuery(output: string): SchtasksQueryResult;
7
+ export declare function windowsStatus(name: ServiceName): ServiceStatus;
@@ -0,0 +1,9 @@
1
+ export interface TaskXmlOptions {
2
+ label: string;
3
+ userId: string;
4
+ programArguments: string[];
5
+ workingDirectory: string;
6
+ logFile: string;
7
+ environmentVariables?: Record<string, string>;
8
+ }
9
+ export declare function renderTaskXml(opts: TaskXmlOptions): string;