@duckmind/dm-darwin-x64 0.36.5 → 0.36.9

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 (168) hide show
  1. package/dm +0 -0
  2. package/extensions/.dm-extensions.json +1 -1
  3. package/extensions/dm-9router-ext/package.json +1 -1
  4. package/extensions/dm-9router-ext/src/index.ts +1 -1
  5. package/extensions/dm-ask-user/README.md +3 -3
  6. package/extensions/dm-ask-user/index.ts +2 -2
  7. package/extensions/dm-ask-user/package.json +4 -4
  8. package/extensions/dm-cli-anything/package.json +1 -1
  9. package/extensions/dm-context/package.json +1 -1
  10. package/extensions/dm-context/src/context.ts +2 -2
  11. package/extensions/dm-context/src/index.ts +3 -3
  12. package/extensions/dm-cua/package.json +2 -2
  13. package/extensions/dm-goal/package.json +6 -6
  14. package/extensions/dm-goal/src/commands.ts +1 -1
  15. package/extensions/dm-goal/src/index.ts +1 -1
  16. package/extensions/dm-goal/src/tools.ts +2 -2
  17. package/extensions/dm-goal/test/index.test.ts +1 -1
  18. package/extensions/dm-image2/index.js +1 -1
  19. package/extensions/dm-image2/package.json +2 -2
  20. package/extensions/dm-image2/src/image-lib.mjs +1 -1
  21. package/extensions/dm-last30days/package.json +1 -1
  22. package/extensions/dm-subagents/CHANGELOG.md +2 -2
  23. package/extensions/dm-subagents/node_modules/.package-lock.json +9 -0
  24. package/extensions/dm-subagents/package-lock.json +136 -2935
  25. package/extensions/dm-subagents/package.json +6 -6
  26. package/extensions/dm-subagents/src/agent-manager.ts +2 -2
  27. package/extensions/dm-subagents/src/agent-record.ts +1 -1
  28. package/extensions/dm-subagents/src/agent-runner.ts +2 -2
  29. package/extensions/dm-subagents/src/context.ts +1 -1
  30. package/extensions/dm-subagents/src/custom-agents.ts +1 -1
  31. package/extensions/dm-subagents/src/execution-state.ts +1 -1
  32. package/extensions/dm-subagents/src/index.ts +2 -2
  33. package/extensions/dm-subagents/src/parent-snapshot.ts +1 -1
  34. package/extensions/dm-subagents/src/renderer.ts +1 -1
  35. package/extensions/dm-subagents/src/service-adapter.ts +1 -1
  36. package/extensions/dm-subagents/src/settings.ts +1 -1
  37. package/extensions/dm-subagents/src/skill-loader.ts +1 -1
  38. package/extensions/dm-subagents/src/tools/agent-tool.ts +2 -2
  39. package/extensions/dm-subagents/src/tools/foreground-runner.ts +1 -1
  40. package/extensions/dm-subagents/src/tools/get-result-tool.ts +1 -1
  41. package/extensions/dm-subagents/src/tools/spawn-config.ts +1 -1
  42. package/extensions/dm-subagents/src/tools/steer-tool.ts +1 -1
  43. package/extensions/dm-subagents/src/types.ts +1 -1
  44. package/extensions/dm-subagents/src/ui/agent-config-editor.ts +1 -1
  45. package/extensions/dm-subagents/src/ui/agent-creation-wizard.ts +1 -1
  46. package/extensions/dm-subagents/src/ui/agent-menu.ts +1 -1
  47. package/extensions/dm-subagents/src/ui/conversation-viewer.ts +2 -2
  48. package/extensions/dm-subagents/src/ui/widget-renderer.ts +1 -1
  49. package/extensions/dm-subagents/test/agent-runner.test.ts +1 -1
  50. package/extensions/dm-subagents/test/conversation-viewer.test.ts +6 -6
  51. package/extensions/dm-subagents/test/custom-agents.test.ts +6 -6
  52. package/extensions/dm-subagents/test/helpers/mock-session.ts +1 -1
  53. package/extensions/dm-subagents/test/helpers/stub-ctx.ts +1 -1
  54. package/extensions/dm-subagents/test/parent-snapshot.test.ts +1 -1
  55. package/extensions/dm-subagents/test/settings.test.ts +5 -5
  56. package/extensions/dm-subagents/test/skill-loader.test.ts +5 -5
  57. package/extensions/dm-subagents/test/unit/subagent-contract.test.ts +5 -3
  58. package/extensions/dm-tasks/node_modules/.package-lock.json +3 -3
  59. package/extensions/dm-tasks/node_modules/typebox/build/schema/types/dependencies.mjs +1 -1
  60. package/extensions/dm-tasks/node_modules/typebox/build/type/action/_add_immutable.d.mts +11 -0
  61. package/extensions/dm-tasks/node_modules/typebox/build/type/action/_add_immutable.mjs +11 -0
  62. package/extensions/dm-tasks/node_modules/typebox/build/type/action/_add_optional.d.mts +11 -0
  63. package/extensions/dm-tasks/node_modules/typebox/build/type/action/_add_optional.mjs +11 -0
  64. package/extensions/dm-tasks/node_modules/typebox/build/type/action/_add_readonly.d.mts +11 -0
  65. package/extensions/dm-tasks/node_modules/typebox/build/type/action/_add_readonly.mjs +11 -0
  66. package/extensions/dm-tasks/node_modules/typebox/build/type/action/_remove_immutable.d.mts +11 -0
  67. package/extensions/dm-tasks/node_modules/typebox/build/type/action/_remove_immutable.mjs +11 -0
  68. package/extensions/dm-tasks/node_modules/typebox/build/type/action/_remove_optional.d.mts +11 -0
  69. package/extensions/dm-tasks/node_modules/typebox/build/type/action/_remove_optional.mjs +11 -0
  70. package/extensions/dm-tasks/node_modules/typebox/build/type/action/_remove_readonly.d.mts +11 -0
  71. package/extensions/dm-tasks/node_modules/typebox/build/type/action/_remove_readonly.mjs +11 -0
  72. package/extensions/dm-tasks/node_modules/typebox/build/type/action/conditional.d.mts +2 -3
  73. package/extensions/dm-tasks/node_modules/typebox/build/type/action/conditional.mjs +2 -1
  74. package/extensions/dm-tasks/node_modules/typebox/build/type/action/index.d.mts +6 -2
  75. package/extensions/dm-tasks/node_modules/typebox/build/type/action/index.mjs +6 -2
  76. package/extensions/dm-tasks/node_modules/typebox/build/type/action/mapped.d.mts +2 -3
  77. package/extensions/dm-tasks/node_modules/typebox/build/type/action/mapped.mjs +2 -1
  78. package/extensions/dm-tasks/node_modules/typebox/build/type/action/module.d.mts +8 -7
  79. package/extensions/dm-tasks/node_modules/typebox/build/type/action/module.mjs +7 -6
  80. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/call/instantiate.d.mts +1 -3
  81. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/call/instantiate.mjs +3 -2
  82. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.d.mts +3 -4
  83. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs +2 -1
  84. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/cyclic/instantiate.d.mts +2 -5
  85. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs +3 -2
  86. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/evaluate/composite.d.mts +10 -6
  87. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/evaluate/composite.mjs +10 -6
  88. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/immutable/instantiate_add.d.mts +10 -0
  89. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs +14 -0
  90. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/immutable/instantiate_remove.d.mts +10 -0
  91. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs +14 -0
  92. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/instantiate.d.mts +38 -21
  93. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/instantiate.mjs +65 -62
  94. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/interface/instantiate.d.mts +3 -6
  95. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/module/instantiate.d.mts +7 -9
  96. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/module/instantiate.mjs +17 -15
  97. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/optional/instantiate_add.d.mts +10 -0
  98. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs +14 -0
  99. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/optional/instantiate_remove.d.mts +10 -0
  100. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs +14 -0
  101. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/parameters/instantiate.d.mts +3 -4
  102. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/parameters/instantiate.mjs +2 -1
  103. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/partial/from_object.d.mts +2 -2
  104. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/partial/from_object.mjs +2 -2
  105. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/readonly/instantiate_add.d.mts +10 -0
  106. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs +14 -0
  107. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/readonly/instantiate_remove.d.mts +10 -0
  108. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs +14 -0
  109. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/readonly_object/from_array.d.mts +2 -2
  110. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs +2 -2
  111. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/readonly_object/from_object.d.mts +2 -2
  112. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs +2 -2
  113. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/readonly_object/from_tuple.d.mts +2 -2
  114. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs +2 -2
  115. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/ref/instantiate.d.mts +3 -3
  116. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/ref/instantiate.mjs +6 -6
  117. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/required/from_object.d.mts +2 -2
  118. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/required/from_object.mjs +2 -2
  119. package/extensions/dm-tasks/node_modules/typebox/build/type/engine/template_literal/is_pattern.mjs +1 -0
  120. package/extensions/dm-tasks/node_modules/typebox/build/type/extends/tuple.d.mts +3 -6
  121. package/extensions/dm-tasks/node_modules/typebox/build/type/extends/tuple.mjs +3 -2
  122. package/extensions/dm-tasks/node_modules/typebox/build/type/script/mapping.d.mts +68 -64
  123. package/extensions/dm-tasks/node_modules/typebox/build/type/script/mapping.mjs +64 -58
  124. package/extensions/dm-tasks/node_modules/typebox/build/type/script/parser.d.mts +29 -25
  125. package/extensions/dm-tasks/node_modules/typebox/build/type/script/parser.mjs +15 -13
  126. package/extensions/dm-tasks/node_modules/typebox/build/type/script/script.d.mts +3 -4
  127. package/extensions/dm-tasks/node_modules/typebox/build/type/script/script.mjs +3 -2
  128. package/extensions/dm-tasks/node_modules/typebox/build/type/types/_immutable.d.mts +2 -9
  129. package/extensions/dm-tasks/node_modules/typebox/build/type/types/_immutable.mjs +2 -10
  130. package/extensions/dm-tasks/node_modules/typebox/build/type/types/_optional.d.mts +2 -9
  131. package/extensions/dm-tasks/node_modules/typebox/build/type/types/_optional.mjs +2 -11
  132. package/extensions/dm-tasks/node_modules/typebox/build/type/types/_readonly.d.mts +2 -9
  133. package/extensions/dm-tasks/node_modules/typebox/build/type/types/_readonly.mjs +2 -10
  134. package/extensions/dm-tasks/node_modules/typebox/build/type/types/call.d.mts +3 -3
  135. package/extensions/dm-tasks/node_modules/typebox/build/type/types/call.mjs +3 -2
  136. package/extensions/dm-tasks/node_modules/typebox/build/type/types/deferred.d.mts +1 -0
  137. package/extensions/dm-tasks/node_modules/typebox/build/type/types/deferred.mjs +1 -1
  138. package/extensions/dm-tasks/node_modules/typebox/package.json +1 -1
  139. package/extensions/dm-tasks/package-lock.json +3 -3
  140. package/extensions/dm-tasks/src/index.ts +1 -1
  141. package/extensions/dm-tasks/src/ui/settings-menu.ts +2 -2
  142. package/extensions/dm-tasks/src/ui/task-widget.ts +1 -1
  143. package/extensions/dm-ultradex/AGENTS.md +2 -2
  144. package/extensions/dm-ultradex/account-manager.test.ts +1 -1
  145. package/extensions/dm-ultradex/account-manager.ts +1 -1
  146. package/extensions/dm-ultradex/auth.ts +1 -1
  147. package/extensions/dm-ultradex/browser.ts +1 -1
  148. package/extensions/dm-ultradex/commands.ts +4 -4
  149. package/extensions/dm-ultradex/extension.ts +2 -2
  150. package/extensions/dm-ultradex/index.test.ts +5 -3
  151. package/extensions/dm-ultradex/node_modules/.package-lock.json +9 -0
  152. package/extensions/dm-ultradex/package-lock.json +130 -2526
  153. package/extensions/dm-ultradex/package.json +7 -7
  154. package/extensions/dm-ultradex/provider.ts +2 -2
  155. package/extensions/dm-ultradex/refresh-race.test.ts +2 -2
  156. package/extensions/dm-ultradex/status.ts +4 -4
  157. package/extensions/dm-ultradex/stream-wrapper.ts +1 -1
  158. package/extensions/dm-usage/index.ts +3 -3
  159. package/extensions/dm-usage/package.json +4 -4
  160. package/extensions/greedysearch-dm/index.ts +1 -1
  161. package/extensions/greedysearch-dm/package-lock.json +2 -2
  162. package/extensions/greedysearch-dm/package.json +2 -2
  163. package/extensions/greedysearch-dm/src/tools/greedy-search-handler.ts +2 -2
  164. package/package.json +1 -1
  165. package/extensions/dm-tasks/node_modules/typebox/build/type/action/_optional.d.mts +0 -19
  166. package/extensions/dm-tasks/node_modules/typebox/build/type/action/_optional.mjs +0 -40
  167. package/extensions/dm-tasks/node_modules/typebox/build/type/action/_readonly.d.mts +0 -19
  168. package/extensions/dm-tasks/node_modules/typebox/build/type/action/_readonly.mjs +0 -40
@@ -26,17 +26,14 @@
26
26
  "zod": "^4.3.6"
27
27
  },
28
28
  "peerDependencies": {
29
- "@mariozechner/pi-ai": "*",
30
- "@mariozechner/pi-coding-agent": "*",
31
- "@mariozechner/pi-tui": "*"
29
+ "@earendil-works/pi-ai": "*",
30
+ "@earendil-works/pi-coding-agent": "*",
31
+ "@earendil-works/pi-tui": "*"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@biomejs/biome": "^2.4.7",
35
35
  "@commitlint/cli": "^20.4.4",
36
36
  "@commitlint/config-conventional": "^20.4.4",
37
- "@mariozechner/pi-ai": "^0.63.1",
38
- "@mariozechner/pi-coding-agent": "^0.63.1",
39
- "@mariozechner/pi-tui": "^0.63.1",
40
37
  "@semantic-release/changelog": "^6.0.3",
41
38
  "@semantic-release/commit-analyzer": "^13.0.1",
42
39
  "@semantic-release/git": "^10.0.1",
@@ -48,7 +45,10 @@
48
45
  "conventional-changelog-conventionalcommits": "^9.3.0",
49
46
  "semantic-release": "^25.0.3",
50
47
  "typescript": "^5.9.3",
51
- "vitest": "^4.1.0"
48
+ "vitest": "^4.1.0",
49
+ "@earendil-works/pi-ai": "file:../../pi-mono/packages/ai",
50
+ "@earendil-works/pi-coding-agent": "file:../../pi-mono/packages/coding-agent",
51
+ "@earendil-works/pi-tui": "file:../../pi-mono/packages/tui"
52
52
  },
53
53
  "pi": {
54
54
  "extensions": [
@@ -1,5 +1,5 @@
1
- import { getApiProvider } from "@mariozechner/pi-ai";
2
- import { openaiCodexOAuthProvider } from "@mariozechner/pi-ai/oauth";
1
+ import { getApiProvider } from "@earendil-works/pi-ai";
2
+ import { openaiCodexOAuthProvider } from "@earendil-works/pi-ai/oauth";
3
3
  import { mirrorProvider } from "pi-provider-utils/providers";
4
4
  import type { AccountManager } from "./account-manager";
5
5
  import { createStreamWrapper } from "./stream-wrapper";
@@ -9,7 +9,7 @@ import { beforeEach, describe, expect, it, vi } from "vitest";
9
9
  import { AccountManager } from "./account-manager";
10
10
 
11
11
  // Mock the oauth module before anything imports it.
12
- vi.mock("@mariozechner/pi-ai/oauth", () => ({
12
+ vi.mock("@earendil-works/pi-ai/oauth", () => ({
13
13
  refreshOpenAICodexToken: vi.fn(),
14
14
  }));
15
15
 
@@ -27,7 +27,7 @@ vi.mock("./auth", () => ({
27
27
  loadImportedOpenAICodexAuth: vi.fn().mockResolvedValue(undefined),
28
28
  }));
29
29
 
30
- import { refreshOpenAICodexToken } from "@mariozechner/pi-ai/oauth";
30
+ import { refreshOpenAICodexToken } from "@earendil-works/pi-ai/oauth";
31
31
 
32
32
  describe("AccountManager.ensureValidToken — concurrent refresh deduplication", () => {
33
33
  let manager: AccountManager;
@@ -1,15 +1,15 @@
1
- import type { Api, Model } from "@mariozechner/pi-ai";
1
+ import type { Api, Model } from "@earendil-works/pi-ai";
2
2
  import type {
3
3
  ExtensionCommandContext,
4
4
  ExtensionContext,
5
- } from "@mariozechner/pi-coding-agent";
6
- import { getSettingsListTheme } from "@mariozechner/pi-coding-agent";
5
+ } from "@earendil-works/pi-coding-agent";
6
+ import { getSettingsListTheme } from "@earendil-works/pi-coding-agent";
7
7
  import {
8
8
  Container,
9
9
  type SettingItem,
10
10
  SettingsList,
11
11
  Text,
12
- } from "@mariozechner/pi-tui";
12
+ } from "@earendil-works/pi-tui";
13
13
  import {
14
14
  getAgentSettingsPath,
15
15
  readJsonObjectFileAsync,
@@ -6,7 +6,7 @@ import {
6
6
  createAssistantMessageEventStream,
7
7
  type Model,
8
8
  type SimpleStreamOptions,
9
- } from "@mariozechner/pi-ai";
9
+ } from "@earendil-works/pi-ai";
10
10
  import {
11
11
  createErrorAssistantMessage,
12
12
  createLinkedAbortController,
@@ -7,9 +7,9 @@
7
7
  * - Enter expands/collapses to show models
8
8
  */
9
9
 
10
- import type { ExtensionAPI, ExtensionCommandContext, Theme } from "@mariozechner/pi-coding-agent";
11
- import { DynamicBorder } from "@mariozechner/pi-coding-agent";
12
- import { CancellableLoader, Container, Spacer, matchesKey, visibleWidth, truncateToWidth, wrapTextWithAnsi, type AutocompleteItem } from "@mariozechner/pi-tui";
10
+ import type { ExtensionAPI, ExtensionCommandContext, Theme } from "@earendil-works/pi-coding-agent";
11
+ import { DynamicBorder } from "@earendil-works/pi-coding-agent";
12
+ import { CancellableLoader, Container, Spacer, matchesKey, visibleWidth, truncateToWidth, wrapTextWithAnsi, type AutocompleteItem } from "@earendil-works/pi-tui";
13
13
  import { constants as fsConstants } from "node:fs";
14
14
  import { access, mkdir, readdir, readFile, writeFile } from "node:fs/promises";
15
15
  import { dirname, join } from "node:path";
@@ -36,11 +36,11 @@
36
36
  "image": "./screenshot.png"
37
37
  },
38
38
  "peerDependencies": {
39
- "@mariozechner/pi-coding-agent": "*",
40
- "@mariozechner/pi-tui": "*"
39
+ "@earendil-works/pi-coding-agent": "*",
40
+ "@earendil-works/pi-tui": "*"
41
41
  },
42
42
  "devDependencies": {
43
- "@mariozechner/pi-coding-agent": "^0.74.0",
44
- "@mariozechner/pi-tui": "^0.74.0"
43
+ "@earendil-works/pi-coding-agent": "file:../../pi-mono/packages/coding-agent",
44
+ "@earendil-works/pi-tui": "file:../../pi-mono/packages/tui"
45
45
  }
46
46
  }
@@ -13,7 +13,7 @@ import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
13
13
  import { homedir } from "node:os";
14
14
  import { dirname, join } from "node:path";
15
15
  import { fileURLToPath } from "node:url";
16
- import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
16
+ import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
17
17
 
18
18
  import { registerGreedySearchTool } from "./src/tools/greedy-search-handler.js";
19
19
  import { cdpAvailable } from "./src/tools/shared.js";
@@ -14,8 +14,8 @@
14
14
  "turndown": "^7.1.2"
15
15
  },
16
16
  "peerDependencies": {
17
- "@mariozechner/pi-coding-agent": "*",
18
- "@mariozechner/pi-tui": "*",
17
+ "@earendil-works/pi-coding-agent": "*",
18
+ "@earendil-works/pi-tui": "*",
19
19
  "@sinclair/typebox": "*"
20
20
  }
21
21
  },
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "peerDependencies": {
46
46
  "@sinclair/typebox": "*",
47
- "@mariozechner/pi-coding-agent": "*",
48
- "@mariozechner/pi-tui": "*"
47
+ "@earendil-works/pi-coding-agent": "*",
48
+ "@earendil-works/pi-tui": "*"
49
49
  }
50
50
  }
@@ -2,8 +2,8 @@
2
2
  * greedy_search tool handler — multi-engine AI web search
3
3
  */
4
4
 
5
- import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
6
- import { Text } from "@mariozechner/pi-tui";
5
+ import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
6
+ import { Text } from "@earendil-works/pi-tui";
7
7
  import { Type } from "@sinclair/typebox";
8
8
  import { formatResults } from "../formatters/results.js";
9
9
  import {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duckmind/dm-darwin-x64",
3
- "version": "0.36.5",
3
+ "version": "0.36.9",
4
4
  "description": "DuckMind (dm) binary payload for darwin x64",
5
5
  "license": "MIT",
6
6
  "os": [
@@ -1,19 +0,0 @@
1
- import { type TSchema } from '../types/schema.mjs';
2
- /** Represents a operation to apply Optional to a property */
3
- export interface TOptionalAddAction<Type extends TSchema = TSchema> extends TSchema {
4
- '~kind': 'OptionalAddAction';
5
- type: Type;
6
- }
7
- /** Creates an OptionalAddAction. */
8
- export declare function OptionalAddAction<Type extends TSchema>(type: Type): TOptionalAddAction<Type>;
9
- /** Returns true if this value is a OptionalAddAction. */
10
- export declare function IsOptionalAddAction(value: unknown): value is TOptionalAddAction;
11
- /** Represents a operation to remove Optional from a property */
12
- export interface TOptionalRemoveAction<Type extends TSchema = TSchema> extends TSchema {
13
- '~kind': 'OptionalRemoveAction';
14
- type: Type;
15
- }
16
- /** Creates a OptionalRemoveAction. */
17
- export declare function OptionalRemoveAction<Type extends TSchema>(type: Type): TOptionalRemoveAction<Type>;
18
- /** Returns true if this value is a OptionalRemoveAction. */
19
- export declare function IsOptionalRemoveAction(value: unknown): value is TOptionalRemoveAction;
@@ -1,40 +0,0 @@
1
- // deno-fmt-ignore-file
2
- import { Memory } from '../../system/memory/index.mjs';
3
- import { Guard } from '../../guard/index.mjs';
4
- import { IsSchema } from '../types/schema.mjs';
5
- // ------------------------------------------------------------------
6
- // Action
7
- // ------------------------------------------------------------------
8
- /** Creates an OptionalAddAction. */
9
- export function OptionalAddAction(type) {
10
- return Memory.Create({ ['~kind']: 'OptionalAddAction' }, { type }, {});
11
- }
12
- // ------------------------------------------------------------------
13
- // Guard
14
- // ------------------------------------------------------------------
15
- /** Returns true if this value is a OptionalAddAction. */
16
- export function IsOptionalAddAction(value) {
17
- return Guard.IsObject(value)
18
- && Guard.HasPropertyKey(value, '~kind')
19
- && Guard.HasPropertyKey(value, 'type')
20
- && Guard.IsEqual(value['~kind'], 'OptionalAddAction')
21
- && IsSchema(value.type);
22
- }
23
- // ------------------------------------------------------------------
24
- // Factory
25
- // ------------------------------------------------------------------
26
- /** Creates a OptionalRemoveAction. */
27
- export function OptionalRemoveAction(type) {
28
- return Memory.Create({ ['~kind']: 'OptionalRemoveAction' }, { type }, {});
29
- }
30
- // ------------------------------------------------------------------
31
- // Guard
32
- // ------------------------------------------------------------------
33
- /** Returns true if this value is a OptionalRemoveAction. */
34
- export function IsOptionalRemoveAction(value) {
35
- return Guard.IsObject(value)
36
- && Guard.HasPropertyKey(value, '~kind')
37
- && Guard.HasPropertyKey(value, 'type')
38
- && Guard.IsEqual(value['~kind'], 'OptionalRemoveAction')
39
- && IsSchema(value.type);
40
- }
@@ -1,19 +0,0 @@
1
- import { type TSchema } from '../types/schema.mjs';
2
- /** Represents an operation to apply Readonly to a property. */
3
- export interface TReadonlyAddAction<Type extends TSchema = TSchema> extends TSchema {
4
- '~kind': 'ReadonlyAddAction';
5
- type: Type;
6
- }
7
- /** Creates a ReadonlyAddAction. */
8
- export declare function ReadonlyAddAction<Type extends TSchema>(type: Type): TReadonlyAddAction<Type>;
9
- /** Returns true if this value is a ReadonlyAddAction. */
10
- export declare function IsReadonlyAddAction(value: unknown): value is TReadonlyAddAction;
11
- /** Represents an action to remove Readonly from a property. */
12
- export interface TReadonlyRemoveAction<Type extends TSchema = TSchema> extends TSchema {
13
- '~kind': 'ReadonlyRemoveAction';
14
- type: Type;
15
- }
16
- /** Creates a ReadonlyRemoveAction. */
17
- export declare function ReadonlyRemoveAction<Type extends TSchema>(type: Type): TReadonlyRemoveAction<Type>;
18
- /** Returns true if this value is a ReadonlyRemoveAction. */
19
- export declare function IsReadonlyRemoveAction(value: unknown): value is TReadonlyRemoveAction;
@@ -1,40 +0,0 @@
1
- // deno-fmt-ignore-file
2
- import { Memory } from '../../system/memory/index.mjs';
3
- import { Guard } from '../../guard/index.mjs';
4
- import { IsSchema } from '../types/schema.mjs';
5
- // ------------------------------------------------------------------
6
- // Action
7
- // ------------------------------------------------------------------
8
- /** Creates a ReadonlyAddAction. */
9
- export function ReadonlyAddAction(type) {
10
- return Memory.Create({ ['~kind']: 'ReadonlyAddAction' }, { type }, {});
11
- }
12
- // ------------------------------------------------------------------
13
- // Guard
14
- // ------------------------------------------------------------------
15
- /** Returns true if this value is a ReadonlyAddAction. */
16
- export function IsReadonlyAddAction(value) {
17
- return Guard.IsObject(value)
18
- && Guard.HasPropertyKey(value, '~kind')
19
- && Guard.HasPropertyKey(value, 'type')
20
- && Guard.IsEqual(value['~kind'], 'ReadonlyAddAction')
21
- && IsSchema(value.type);
22
- }
23
- // ------------------------------------------------------------------
24
- // Factory
25
- // ------------------------------------------------------------------
26
- /** Creates a ReadonlyRemoveAction. */
27
- export function ReadonlyRemoveAction(type) {
28
- return Memory.Create({ ['~kind']: 'ReadonlyRemoveAction' }, { type }, {});
29
- }
30
- // ------------------------------------------------------------------
31
- // Guard
32
- // ------------------------------------------------------------------
33
- /** Returns true if this value is a ReadonlyRemoveAction. */
34
- export function IsReadonlyRemoveAction(value) {
35
- return Guard.IsObject(value)
36
- && Guard.HasPropertyKey(value, '~kind')
37
- && Guard.HasPropertyKey(value, 'type')
38
- && Guard.IsEqual(value['~kind'], 'ReadonlyRemoveAction')
39
- && IsSchema(value.type);
40
- }