@aria-cli/tools 1.0.0 → 1.0.1

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 (63) hide show
  1. package/dist/.aria-build-stamp.json +2 -2
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/definitions/network.js +2 -2
  4. package/dist/definitions/network.js.map +1 -1
  5. package/dist/executors/memory.d.ts +1 -1
  6. package/dist/executors/memory.d.ts.map +1 -1
  7. package/dist/executors/restart.js +1 -1
  8. package/dist/executors/restart.js.map +1 -1
  9. package/dist/executors/session-history.js +1 -1
  10. package/dist/executors/session-history.js.map +1 -1
  11. package/dist/executors/utils.d.ts +1 -1
  12. package/dist/executors/utils.d.ts.map +1 -1
  13. package/dist/executors/utils.js +1 -1
  14. package/dist/executors/utils.js.map +1 -1
  15. package/dist/executors/web.js +1 -1
  16. package/dist/executors/web.js.map +1 -1
  17. package/dist/network-runtime/local-control-contract.d.ts +1 -1
  18. package/dist/network-runtime/local-control-contract.d.ts.map +1 -1
  19. package/dist/providers/router.js +1 -1
  20. package/dist/providers/router.js.map +1 -1
  21. package/dist/registry/registry.d.ts +1 -1
  22. package/dist/registry/registry.d.ts.map +1 -1
  23. package/dist/types.d.ts +2 -2
  24. package/dist/types.d.ts.map +1 -1
  25. package/dist-cjs/.tsbuildinfo +1 -1
  26. package/dist-cjs/definitions/network.js +2 -2
  27. package/dist-cjs/definitions/network.js.map +1 -1
  28. package/dist-cjs/executors/memory.d.ts +1 -1
  29. package/dist-cjs/executors/restart.js +1 -1
  30. package/dist-cjs/executors/restart.js.map +1 -1
  31. package/dist-cjs/executors/session-history.js +1 -1
  32. package/dist-cjs/executors/session-history.js.map +1 -1
  33. package/dist-cjs/executors/utils.d.ts +1 -1
  34. package/dist-cjs/executors/utils.js +1 -1
  35. package/dist-cjs/executors/utils.js.map +1 -1
  36. package/dist-cjs/executors/web.js +1 -1
  37. package/dist-cjs/executors/web.js.map +1 -1
  38. package/dist-cjs/headless-control-contract.d.ts +15 -15
  39. package/dist-cjs/network-runtime/local-control-contract.d.ts +3 -3
  40. package/dist-cjs/providers/router.js +1 -1
  41. package/dist-cjs/providers/router.js.map +1 -1
  42. package/dist-cjs/registry/registry.d.ts +1 -1
  43. package/dist-cjs/types.d.ts +2 -2
  44. package/package.json +1 -1
  45. package/src/definitions/network.ts +2 -2
  46. package/src/executors/memory.ts +2 -2
  47. package/src/executors/restart.ts +1 -1
  48. package/src/executors/session-history.ts +1 -1
  49. package/src/executors/utils.ts +1 -1
  50. package/src/executors/web.ts +1 -1
  51. package/src/network-runtime/local-control-contract.ts +1 -1
  52. package/src/providers/router.ts +1 -1
  53. package/src/registry/registry.ts +1 -1
  54. package/src/types.ts +2 -2
  55. package/tests/definitions/messaging-inbox-scope.test.ts +7 -7
  56. package/tests/definitions/messaging.test.ts +1 -1
  57. package/tests/e2e/memory-tool-discovery-contract.e2e.test.ts +1 -1
  58. package/tests/executors/memory-real-memoria.integration.test.ts +1 -1
  59. package/tests/executors/restart.test.ts +1 -1
  60. package/tests/guards/tools-package-test-commands.e2e.test.ts +2 -2
  61. package/tests/integration.test.ts +1 -1
  62. package/tests/network-runtime/runtime-bootstrap-contract.test.ts +1 -1
  63. package/vitest.config.ts +7 -7
@@ -12,7 +12,7 @@ import type {
12
12
  ToolInfo,
13
13
  Logger,
14
14
  } from "../types.js";
15
- import type { ToolItem } from "@aria/types";
15
+ import type { ToolItem } from "@aria-cli/types";
16
16
  import { MCPClient } from "../mcp/client.js";
17
17
  import type { MCPServerConfig, MCPTool } from "../mcp/types.js";
18
18
  import { executeBash } from "../executors/shell.js";
package/src/types.ts CHANGED
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  import type { JSONSchema7 } from "json-schema";
9
- import type { IMemoria } from "@aria/types";
9
+ import type { IMemoria } from "@aria-cli/types";
10
10
  import type {
11
11
  CanonicalDeliveryReceipt as CanonicalDeliveryReceiptShape,
12
12
  ClientId,
@@ -299,7 +299,7 @@ export interface ProviderContext {
299
299
  /** Provider name */
300
300
  name: string; // "anthropic" | "openai" | "google" | "local"
301
301
  /** Capabilities the provider supports */
302
- capabilities: import("@aria/types").ProviderCapabilities;
302
+ capabilities: import("@aria-cli/types").ProviderCapabilities;
303
303
  }
304
304
 
305
305
  // ── Quest Store Ref ────────────────────────────────────────────────
@@ -2,8 +2,8 @@ import { afterEach, describe, expect, it } from "vitest";
2
2
  import { createRequire } from "node:module";
3
3
  import { dirname, join } from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
- import { MessageStore } from "@aria/memoria/storage";
6
- import { NodeIdSchema } from "@aria/tools";
5
+ import { MessageStore } from "@aria-cli/memoria/storage";
6
+ import { NodeIdSchema } from "@aria-cli/tools";
7
7
  import { MESSAGING_TOOL_DEFINITIONS } from "../../src/definitions/messaging.js";
8
8
  import type { ToolContext } from "../../src/types.js";
9
9
 
@@ -137,7 +137,7 @@ describe("messaging tool inbox scoping", () => {
137
137
  timestamp: 2,
138
138
  },
139
139
  "received",
140
- { kind: "client", clientId: "cli-abc" as unknown as import("@aria/tools").ClientId },
140
+ { kind: "client", clientId: "cli-abc" as unknown as import("@aria-cli/tools").ClientId },
141
141
  );
142
142
 
143
143
  // Context simulates an attached client: inboxAddress is client, but nodeId also present
@@ -149,7 +149,7 @@ describe("messaging tool inbox scoping", () => {
149
149
  nodeId,
150
150
  inboxAddress: {
151
151
  kind: "client",
152
- clientId: "cli-abc" as unknown as import("@aria/tools").ClientId,
152
+ clientId: "cli-abc" as unknown as import("@aria-cli/tools").ClientId,
153
153
  },
154
154
  };
155
155
 
@@ -167,7 +167,7 @@ describe("messaging tool inbox scoping", () => {
167
167
  expect(
168
168
  store.unreadCountForInbox({
169
169
  kind: "client",
170
- clientId: "cli-abc" as unknown as import("@aria/tools").ClientId,
170
+ clientId: "cli-abc" as unknown as import("@aria-cli/tools").ClientId,
171
171
  }),
172
172
  ).toBe(0);
173
173
 
@@ -201,7 +201,7 @@ describe("messaging tool inbox scoping", () => {
201
201
  timestamp: 2,
202
202
  },
203
203
  "received",
204
- { kind: "client", clientId: "cli-search" as unknown as import("@aria/tools").ClientId },
204
+ { kind: "client", clientId: "cli-search" as unknown as import("@aria-cli/tools").ClientId },
205
205
  );
206
206
 
207
207
  const ctx: ToolContext = {
@@ -212,7 +212,7 @@ describe("messaging tool inbox scoping", () => {
212
212
  nodeId,
213
213
  inboxAddress: {
214
214
  kind: "client",
215
- clientId: "cli-search" as unknown as import("@aria/tools").ClientId,
215
+ clientId: "cli-search" as unknown as import("@aria-cli/tools").ClientId,
216
216
  },
217
217
  };
218
218
 
@@ -14,7 +14,7 @@ import { createRequire } from "node:module";
14
14
  import { dirname, join } from "node:path";
15
15
  import { fileURLToPath } from "node:url";
16
16
  import { MESSAGING_TOOL_DEFINITIONS } from "../../src/definitions/messaging.js";
17
- import { MessageStore } from "@aria/memoria/storage";
17
+ import { MessageStore } from "@aria-cli/memoria/storage";
18
18
  import type { ToolContext } from "../../src/types.js";
19
19
 
20
20
  // Resolve better-sqlite3 through @aria/memoria's dependency tree.
@@ -1,5 +1,5 @@
1
1
  import { afterEach, describe, expect, it } from "vitest";
2
- import { Memoria } from "@aria/memoria";
2
+ import { Memoria } from "@aria-cli/memoria";
3
3
  import { createToolRegistry } from "../../src/index.js";
4
4
  import type { ToolContext } from "../../src/types.js";
5
5
 
@@ -22,7 +22,7 @@ import {
22
22
  executeForget,
23
23
  executeDiscover,
24
24
  } from "../../src/executors/memory.js";
25
- import { Memoria } from "@aria/memoria";
25
+ import { Memoria } from "@aria-cli/memoria";
26
26
 
27
27
  /**
28
28
  * Create a real Memoria instance with in-memory storage for testing
@@ -13,7 +13,7 @@ vi.mock("node:child_process", () => ({
13
13
 
14
14
  import type { ToolContext } from "../../src/types.js";
15
15
  import { executeRestart } from "../../src/executors/restart.js";
16
- import { NO_RELAUNCH_ENV, RELAUNCH_EXIT_CODE } from "@aria/types";
16
+ import { NO_RELAUNCH_ENV, RELAUNCH_EXIT_CODE } from "@aria-cli/types";
17
17
 
18
18
  function createContext(workingDir: string): ToolContext {
19
19
  return {
@@ -8,7 +8,7 @@ describe("tools package test commands", () => {
8
8
  it("exposes a package-level list command for the safe default lane", () => {
9
9
  const listing = execPnpmJsonCommand<{ defaultLane: string; files: string[] }>(
10
10
  repoRoot,
11
- ["--filter", "@aria/tools", "test:list"],
11
+ ["--filter", "@aria-cli/tools", "test:list"],
12
12
  {
13
13
  timeout: 15_000,
14
14
  maxBuffer: 10 * 1024 * 1024,
@@ -28,7 +28,7 @@ describe("tools package test commands", () => {
28
28
  defaultLane: string;
29
29
  counts: Record<string, number>;
30
30
  unclassified: string[];
31
- }>(repoRoot, ["--filter", "@aria/tools", "test:lanes"], {
31
+ }>(repoRoot, ["--filter", "@aria-cli/tools", "test:lanes"], {
32
32
  timeout: 15_000,
33
33
  maxBuffer: 10 * 1024 * 1024,
34
34
  });
@@ -26,7 +26,7 @@ try {
26
26
  ptyAvailable = false;
27
27
  }
28
28
 
29
- describe("@aria/tools Integration", () => {
29
+ describe("@aria-cli/tools Integration", () => {
30
30
  let testDir: string;
31
31
  let ctx: ToolContext;
32
32
 
@@ -165,7 +165,7 @@ describe("runtime bootstrap contract", () => {
165
165
  });
166
166
 
167
167
  it("keeps the published @aria/tools bootstrap schema in sync with hard-cut authority fields", async () => {
168
- const publishedTools = (await import("@aria/tools")) as {
168
+ const publishedTools = (await import("@aria-cli/tools")) as {
169
169
  RuntimeBootstrapRecordSchema?: {
170
170
  parse: <T>(value: T) => T;
171
171
  safeParse: (value: unknown) => { success: boolean };
package/vitest.config.ts CHANGED
@@ -18,13 +18,13 @@ const workspaceRoot = fileURLToPath(new URL("../..", import.meta.url));
18
18
  export default defineConfig({
19
19
  resolve: {
20
20
  alias: workspaceSourceAliases(workspaceRoot, {
21
- "@aria/auth": "packages/auth/src/index.ts",
22
- "@aria/models": "packages/models/src/index.ts",
23
- "@aria/tools/network-runtime": "packages/tools/src/network-runtime/index.ts",
24
- "@aria/tools": "packages/tools/src/index.ts",
25
- "@aria/memoria/storage": "packages/memoria/src/storage/index.ts",
26
- "@aria/memoria": "packages/memoria/src/index.ts",
27
- "@aria/types": "packages/types/src/index.ts",
21
+ "@aria-cli/auth": "packages/auth/src/index.ts",
22
+ "@aria-cli/models": "packages/models/src/index.ts",
23
+ "@aria-cli/tools/network-runtime": "packages/tools/src/network-runtime/index.ts",
24
+ "@aria-cli/tools": "packages/tools/src/index.ts",
25
+ "@aria-cli/memoria/storage": "packages/memoria/src/storage/index.ts",
26
+ "@aria-cli/memoria": "packages/memoria/src/index.ts",
27
+ "@aria-cli/types": "packages/types/src/index.ts",
28
28
  }),
29
29
  },
30
30
  test: {