@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.
- package/dist/index.d.ts +1226 -29
- package/dist/index.js +4987 -23
- package/package.json +7 -5
- package/dist/candidate-types.d.ts +0 -36
- package/dist/candidate-types.js +0 -1
- package/dist/candidate.d.ts +0 -9
- package/dist/candidate.js +0 -283
- package/dist/commands.d.ts +0 -2
- package/dist/commands.js +0 -32
- package/dist/control-maps.d.ts +0 -58
- package/dist/control-maps.js +0 -277
- package/dist/execution-controls.d.ts +0 -5
- package/dist/execution-controls.js +0 -199
- package/dist/harness-prompt.d.ts +0 -22
- package/dist/harness-prompt.js +0 -64
- package/dist/harness.d.ts +0 -131
- package/dist/harness.js +0 -416
- package/dist/hooks.d.ts +0 -6
- package/dist/hooks.js +0 -250
- package/dist/managed-workspace-bind.d.ts +0 -4
- package/dist/managed-workspace-bind.js +0 -112
- package/dist/managed-workspace-stage.d.ts +0 -25
- package/dist/managed-workspace-stage.js +0 -199
- package/dist/managed-workspace-types.d.ts +0 -38
- package/dist/managed-workspace-types.js +0 -1
- package/dist/managed-workspace.d.ts +0 -37
- package/dist/managed-workspace.js +0 -290
- package/dist/mcp-config-ownership.d.ts +0 -13
- package/dist/mcp-config-ownership.js +0 -79
- package/dist/mcp-opencode.d.ts +0 -25
- package/dist/mcp-opencode.js +0 -52
- package/dist/mcp-timeouts.d.ts +0 -7
- package/dist/mcp-timeouts.js +0 -48
- package/dist/mcp.d.ts +0 -4
- package/dist/mcp.js +0 -246
- package/dist/model-id.d.ts +0 -55
- package/dist/model-id.js +0 -67
- package/dist/pi-models-config.d.ts +0 -32
- package/dist/pi-models-config.js +0 -65
- package/dist/plan-application.d.ts +0 -10
- package/dist/plan-application.js +0 -190
- package/dist/plan-digest.d.ts +0 -18
- package/dist/plan-digest.js +0 -116
- package/dist/plan-json.d.ts +0 -13
- package/dist/plan-json.js +0 -91
- package/dist/plan-normalize.d.ts +0 -12
- package/dist/plan-normalize.js +0 -168
- package/dist/plan-prompt.d.ts +0 -38
- package/dist/plan-prompt.js +0 -49
- package/dist/plan-support.d.ts +0 -9
- package/dist/plan-support.js +0 -22
- package/dist/plan-types.d.ts +0 -341
- package/dist/plan-types.js +0 -105
- package/dist/prime-agent-dir.d.ts +0 -64
- package/dist/prime-agent-dir.js +0 -173
- package/dist/prime-fork.d.ts +0 -155
- package/dist/prime-fork.js +0 -262
- package/dist/prime-profile.d.ts +0 -88
- package/dist/prime-profile.js +0 -297
- package/dist/profile-bundle-cache.d.ts +0 -37
- package/dist/profile-bundle-cache.js +0 -320
- package/dist/profile-bundle-key.d.ts +0 -69
- package/dist/profile-bundle-key.js +0 -62
- package/dist/profile-bundle-lru.d.ts +0 -56
- package/dist/profile-bundle-lru.js +0 -220
- package/dist/profile-materializer.d.ts +0 -24
- package/dist/profile-materializer.js +0 -114
- package/dist/profile-plan.d.ts +0 -16
- package/dist/profile-plan.js +0 -90
- package/dist/profile-prompt.d.ts +0 -4
- package/dist/profile-prompt.js +0 -107
- package/dist/profile-support.d.ts +0 -8
- package/dist/profile-support.js +0 -6
- package/dist/resource-lowering.d.ts +0 -6
- package/dist/resource-lowering.js +0 -103
- package/dist/resource-resolution.d.ts +0 -27
- package/dist/resource-resolution.js +0 -265
- package/dist/secret-concurrent-revision.d.ts +0 -30
- package/dist/secret-concurrent-revision.js +0 -291
- package/dist/secret-session-view.d.ts +0 -36
- package/dist/secret-session-view.js +0 -179
- package/dist/subagents.d.ts +0 -6
- package/dist/subagents.js +0 -137
- package/dist/tool-bin-path.d.ts +0 -23
- package/dist/tool-bin-path.js +0 -61
- package/dist/workspace-apply-files.d.ts +0 -57
- package/dist/workspace-apply-files.js +0 -193
- package/dist/workspace-apply-publish.d.ts +0 -22
- package/dist/workspace-apply-publish.js +0 -178
- package/dist/workspace-apply.d.ts +0 -11
- package/dist/workspace-apply.js +0 -124
- package/dist/workspace-files.d.ts +0 -8
- package/dist/workspace-files.js +0 -46
- package/dist/workspace-launch.d.ts +0 -3
- package/dist/workspace-launch.js +0 -13
package/dist/workspace-files.js
DELETED
|
@@ -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";
|
package/dist/workspace-launch.js
DELETED
|
@@ -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
|
-
}
|