@tangle-network/agent-profile-materialize 1.1.6 → 1.1.8

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 (95) hide show
  1. package/dist/index.d.ts +1226 -29
  2. package/dist/index.js +4987 -23
  3. package/package.json +7 -5
  4. package/dist/candidate-types.d.ts +0 -36
  5. package/dist/candidate-types.js +0 -1
  6. package/dist/candidate.d.ts +0 -9
  7. package/dist/candidate.js +0 -283
  8. package/dist/commands.d.ts +0 -2
  9. package/dist/commands.js +0 -32
  10. package/dist/control-maps.d.ts +0 -58
  11. package/dist/control-maps.js +0 -277
  12. package/dist/execution-controls.d.ts +0 -5
  13. package/dist/execution-controls.js +0 -199
  14. package/dist/harness-prompt.d.ts +0 -22
  15. package/dist/harness-prompt.js +0 -64
  16. package/dist/harness.d.ts +0 -131
  17. package/dist/harness.js +0 -416
  18. package/dist/hooks.d.ts +0 -6
  19. package/dist/hooks.js +0 -250
  20. package/dist/managed-workspace-bind.d.ts +0 -4
  21. package/dist/managed-workspace-bind.js +0 -112
  22. package/dist/managed-workspace-stage.d.ts +0 -25
  23. package/dist/managed-workspace-stage.js +0 -199
  24. package/dist/managed-workspace-types.d.ts +0 -38
  25. package/dist/managed-workspace-types.js +0 -1
  26. package/dist/managed-workspace.d.ts +0 -37
  27. package/dist/managed-workspace.js +0 -290
  28. package/dist/mcp-config-ownership.d.ts +0 -13
  29. package/dist/mcp-config-ownership.js +0 -79
  30. package/dist/mcp-opencode.d.ts +0 -25
  31. package/dist/mcp-opencode.js +0 -52
  32. package/dist/mcp-timeouts.d.ts +0 -7
  33. package/dist/mcp-timeouts.js +0 -48
  34. package/dist/mcp.d.ts +0 -4
  35. package/dist/mcp.js +0 -246
  36. package/dist/model-id.d.ts +0 -55
  37. package/dist/model-id.js +0 -67
  38. package/dist/pi-models-config.d.ts +0 -32
  39. package/dist/pi-models-config.js +0 -65
  40. package/dist/plan-application.d.ts +0 -10
  41. package/dist/plan-application.js +0 -190
  42. package/dist/plan-digest.d.ts +0 -18
  43. package/dist/plan-digest.js +0 -116
  44. package/dist/plan-json.d.ts +0 -13
  45. package/dist/plan-json.js +0 -91
  46. package/dist/plan-normalize.d.ts +0 -12
  47. package/dist/plan-normalize.js +0 -168
  48. package/dist/plan-prompt.d.ts +0 -38
  49. package/dist/plan-prompt.js +0 -49
  50. package/dist/plan-support.d.ts +0 -9
  51. package/dist/plan-support.js +0 -22
  52. package/dist/plan-types.d.ts +0 -341
  53. package/dist/plan-types.js +0 -105
  54. package/dist/prime-agent-dir.d.ts +0 -64
  55. package/dist/prime-agent-dir.js +0 -173
  56. package/dist/prime-fork.d.ts +0 -155
  57. package/dist/prime-fork.js +0 -262
  58. package/dist/prime-profile.d.ts +0 -88
  59. package/dist/prime-profile.js +0 -297
  60. package/dist/profile-bundle-cache.d.ts +0 -37
  61. package/dist/profile-bundle-cache.js +0 -320
  62. package/dist/profile-bundle-key.d.ts +0 -69
  63. package/dist/profile-bundle-key.js +0 -62
  64. package/dist/profile-bundle-lru.d.ts +0 -56
  65. package/dist/profile-bundle-lru.js +0 -220
  66. package/dist/profile-materializer.d.ts +0 -24
  67. package/dist/profile-materializer.js +0 -114
  68. package/dist/profile-plan.d.ts +0 -16
  69. package/dist/profile-plan.js +0 -90
  70. package/dist/profile-prompt.d.ts +0 -4
  71. package/dist/profile-prompt.js +0 -107
  72. package/dist/profile-support.d.ts +0 -8
  73. package/dist/profile-support.js +0 -6
  74. package/dist/resource-lowering.d.ts +0 -6
  75. package/dist/resource-lowering.js +0 -103
  76. package/dist/resource-resolution.d.ts +0 -27
  77. package/dist/resource-resolution.js +0 -265
  78. package/dist/secret-concurrent-revision.d.ts +0 -30
  79. package/dist/secret-concurrent-revision.js +0 -291
  80. package/dist/secret-session-view.d.ts +0 -36
  81. package/dist/secret-session-view.js +0 -179
  82. package/dist/subagents.d.ts +0 -6
  83. package/dist/subagents.js +0 -137
  84. package/dist/tool-bin-path.d.ts +0 -23
  85. package/dist/tool-bin-path.js +0 -61
  86. package/dist/workspace-apply-files.d.ts +0 -57
  87. package/dist/workspace-apply-files.js +0 -193
  88. package/dist/workspace-apply-publish.d.ts +0 -22
  89. package/dist/workspace-apply-publish.js +0 -178
  90. package/dist/workspace-apply.d.ts +0 -11
  91. package/dist/workspace-apply.js +0 -124
  92. package/dist/workspace-files.d.ts +0 -8
  93. package/dist/workspace-files.js +0 -46
  94. package/dist/workspace-launch.d.ts +0 -3
  95. package/dist/workspace-launch.js +0 -13
@@ -1,46 +0,0 @@
1
- export const compareStrings = (a, b) => a < b ? -1 : a > b ? 1 : 0;
2
- export const DEFAULT_FILE_MODE = 0o644;
3
- export const PRIVATE_FILE_MODE = 0o600;
4
- export const EXECUTABLE_FILE_MODE = 0o755;
5
- export const SAFE_WRITE_FLAGS = fsConstants.O_WRONLY |
6
- fsConstants.O_CREAT |
7
- fsConstants.O_EXCL |
8
- (typeof fsConstants.O_NOFOLLOW === "number" ? fsConstants.O_NOFOLLOW : 0);
9
- export function normalizeWorkspaceRelativePath(pathValue) {
10
- if (typeof pathValue !== "string" ||
11
- !pathValue ||
12
- hasControlCharacter(pathValue)) {
13
- throw new Error("Workspace file path must be non-empty and contain no control characters");
14
- }
15
- if (isAbsolute(pathValue) ||
16
- win32.isAbsolute(pathValue) ||
17
- /^[A-Za-z]:/.test(pathValue)) {
18
- throw new Error(`Workspace file path must be relative: ${pathValue}`);
19
- }
20
- const segments = pathValue.replace(/\\/g, "/").split("/");
21
- if (segments.some((segment) => !segment ||
22
- segment === "." ||
23
- segment === ".." ||
24
- segment === ".git" ||
25
- segment === ".sidecar")) {
26
- throw new Error(`Workspace file path must be canonical: ${pathValue}`);
27
- }
28
- return segments.join("/");
29
- }
30
- export function hasControlCharacter(value) {
31
- for (let index = 0; index < value.length; index++) {
32
- const code = value.charCodeAt(index);
33
- if (code < 0x20 || code === 0x7f)
34
- return true;
35
- }
36
- return false;
37
- }
38
- export function validateFileMode(mode) {
39
- const normalized = mode ?? DEFAULT_FILE_MODE;
40
- if (!Number.isInteger(normalized) || normalized < 0 || normalized > 0o777) {
41
- throw new Error(`Workspace file mode must be between 0o000 and 0o777: ${mode}`);
42
- }
43
- return normalized;
44
- }
45
- import { constants as fsConstants } from "node:fs";
46
- import { isAbsolute, win32 } from "node:path";
@@ -1,3 +0,0 @@
1
- import type { WorkspacePlan } from "./plan-types.js";
2
- /** Bind launch paths; omit the workspace to hash portable content identity. */
3
- export declare function bindWorkspaceLaunchFlags<T>(plan: WorkspacePlan, flags: readonly T[], workspaceDir?: string): (T | string)[];
@@ -1,13 +0,0 @@
1
- import { resolve } from "node:path";
2
- import { CODEX_SYSTEM_PROMPT_FILE } from "./harness.js";
3
- import { tomlStr } from "./plan-json.js";
4
- /** Bind launch paths; omit the workspace to hash portable content identity. */
5
- export function bindWorkspaceLaunchFlags(plan, flags, workspaceDir) {
6
- return flags.map((flag, at) => plan.harness === "codex" &&
7
- plan.flags[at - 1] === "-c" &&
8
- plan.flags[at] === `model_instructions_file=${CODEX_SYSTEM_PROMPT_FILE}`
9
- ? workspaceDir === undefined
10
- ? `model_instructions_file=${CODEX_SYSTEM_PROMPT_FILE}`
11
- : `model_instructions_file=${tomlStr(resolve(workspaceDir, CODEX_SYSTEM_PROMPT_FILE))}`
12
- : flag);
13
- }