@open-agent-toolkit/cli 0.2.51 → 0.2.53
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/assets/bundle-metadata.json +1 -1
- package/assets/docs/cli-utilities/bootstrap.md +6 -2
- package/assets/docs/cli-utilities/tool-packs.md +87 -33
- package/assets/docs/provider-sync/commands.md +30 -2
- package/assets/docs/provider-sync/config.md +19 -0
- package/assets/docs/provider-sync/manifest-and-drift.md +37 -0
- package/assets/docs/provider-sync/providers.md +69 -2
- package/assets/docs/provider-sync/scope-and-surface.md +44 -0
- package/assets/docs/reference/cli-reference.md +1 -0
- package/assets/docs/reference/oat-directory-structure.md +11 -4
- package/assets/docs/workflows/projects/evidence-layers.md +110 -1
- package/assets/docs/workflows/projects/implementation-execution.md +13 -0
- package/assets/docs/workflows/projects/orchestration-model.md +18 -0
- package/assets/public-package-versions.json +4 -4
- package/assets/skills/oat-dispatch-subagents/SKILL.md +57 -1
- package/assets/skills/oat-dispatch-subagents/references/record-schema.md +77 -1
- package/assets/skills/oat-project-autonomous/references/gate-inventory.md +1 -1
- package/assets/skills/oat-project-dispatch-subagents/SKILL.md +24 -1
- package/assets/skills/oat-project-document/references/docs/autonomy-contract.md +1 -1
- package/assets/skills/oat-project-implement/references/dispatch-and-dry-run.md +11 -0
- package/assets/skills/oat-project-implement/references/docs/autonomy-contract.md +1 -1
- package/assets/skills/oat-project-plan-writing/SKILL.md +12 -1
- package/assets/skills/oat-project-pr-final/references/docs/autonomy-contract.md +1 -1
- package/assets/skills/oat-project-quick-start/references/docs/autonomy-contract.md +1 -1
- package/assets/skills/oat-project-review-provide/SKILL.md +12 -1
- package/assets/skills/oat-project-review-provide-remote/SKILL.md +12 -1
- package/dist/agents/canonical/index.d.ts +2 -0
- package/dist/agents/canonical/index.d.ts.map +1 -1
- package/dist/agents/canonical/index.js +1 -0
- package/dist/agents/canonical/resolve.d.ts +45 -0
- package/dist/agents/canonical/resolve.d.ts.map +1 -0
- package/dist/agents/canonical/resolve.js +175 -0
- package/dist/commands/decision/agents-guidance.d.ts +2 -2
- package/dist/commands/decision/agents-guidance.d.ts.map +1 -1
- package/dist/commands/decision/agents-guidance.js +1 -4
- package/dist/commands/decision/index.d.ts.map +1 -1
- package/dist/commands/decision/index.js +25 -6
- package/dist/commands/docs/init/index.d.ts +7 -1
- package/dist/commands/docs/init/index.d.ts.map +1 -1
- package/dist/commands/docs/init/index.js +53 -20
- package/dist/commands/doctor/index.d.ts +8 -2
- package/dist/commands/doctor/index.d.ts.map +1 -1
- package/dist/commands/doctor/index.js +157 -46
- package/dist/commands/init/index.d.ts +8 -3
- package/dist/commands/init/index.d.ts.map +1 -1
- package/dist/commands/init/index.js +66 -28
- package/dist/commands/init/tools/index.d.ts +12 -12
- package/dist/commands/init/tools/index.d.ts.map +1 -1
- package/dist/commands/init/tools/index.js +430 -99
- package/dist/commands/init/tools/install-state.d.ts +2 -0
- package/dist/commands/init/tools/install-state.d.ts.map +1 -1
- package/dist/commands/init/tools/install-state.js +11 -0
- package/dist/commands/init/tools/project-guidance.d.ts +49 -0
- package/dist/commands/init/tools/project-guidance.d.ts.map +1 -0
- package/dist/commands/init/tools/project-guidance.js +144 -0
- package/dist/commands/init/tools/workflows/index.d.ts +7 -0
- package/dist/commands/init/tools/workflows/index.d.ts.map +1 -1
- package/dist/commands/init/tools/workflows/index.js +160 -7
- package/dist/commands/pjm/index.d.ts.map +1 -1
- package/dist/commands/pjm/index.js +28 -3
- package/dist/commands/pjm/init.d.ts +5 -0
- package/dist/commands/pjm/init.d.ts.map +1 -1
- package/dist/commands/pjm/init.js +19 -3
- package/dist/commands/project/dispatch/index.d.ts +10 -0
- package/dist/commands/project/dispatch/index.d.ts.map +1 -0
- package/dist/commands/project/dispatch/index.js +137 -0
- package/dist/commands/project/dispatch/record.d.ts +91 -0
- package/dist/commands/project/dispatch/record.d.ts.map +1 -0
- package/dist/commands/project/dispatch/record.js +402 -0
- package/dist/commands/project/index.d.ts.map +1 -1
- package/dist/commands/project/index.js +2 -0
- package/dist/commands/providers/inspect/inspect.d.ts +8 -1
- package/dist/commands/providers/inspect/inspect.d.ts.map +1 -1
- package/dist/commands/providers/inspect/inspect.js +146 -26
- package/dist/commands/providers/list/list.d.ts +8 -1
- package/dist/commands/providers/list/list.d.ts.map +1 -1
- package/dist/commands/providers/list/list.js +139 -23
- package/dist/commands/providers/providers.types.d.ts +25 -1
- package/dist/commands/providers/providers.types.d.ts.map +1 -1
- package/dist/commands/providers/set/index.d.ts +9 -1
- package/dist/commands/providers/set/index.d.ts.map +1 -1
- package/dist/commands/providers/set/index.js +43 -33
- package/dist/commands/remove/skill/remove-skill.d.ts.map +1 -1
- package/dist/commands/remove/skill/remove-skill.js +11 -0
- package/dist/commands/shared/agents-md.d.ts +42 -14
- package/dist/commands/shared/agents-md.d.ts.map +1 -1
- package/dist/commands/shared/agents-md.js +364 -70
- package/dist/commands/status/index.d.ts +8 -3
- package/dist/commands/status/index.d.ts.map +1 -1
- package/dist/commands/status/index.js +149 -37
- package/dist/commands/sync/apply.d.ts.map +1 -1
- package/dist/commands/sync/apply.js +220 -29
- package/dist/commands/sync/dry-run.d.ts.map +1 -1
- package/dist/commands/sync/dry-run.js +30 -6
- package/dist/commands/sync/index.d.ts +17 -2
- package/dist/commands/sync/index.d.ts.map +1 -1
- package/dist/commands/sync/index.js +108 -43
- package/dist/commands/sync/sync.types.d.ts +39 -2
- package/dist/commands/sync/sync.types.d.ts.map +1 -1
- package/dist/commands/sync/sync.utils.d.ts +5 -1
- package/dist/commands/sync/sync.utils.d.ts.map +1 -1
- package/dist/commands/sync/sync.utils.js +73 -0
- package/dist/commands/tools/info/info-tool.d.ts +2 -0
- package/dist/commands/tools/info/info-tool.d.ts.map +1 -1
- package/dist/commands/tools/info/info-tool.js +34 -12
- package/dist/commands/tools/install/index.d.ts.map +1 -1
- package/dist/commands/tools/install/index.js +19 -3
- package/dist/commands/tools/list/list-tools.d.ts +2 -0
- package/dist/commands/tools/list/list-tools.d.ts.map +1 -1
- package/dist/commands/tools/list/list-tools.js +36 -7
- package/dist/commands/tools/remove/index.d.ts.map +1 -1
- package/dist/commands/tools/remove/index.js +150 -21
- package/dist/commands/tools/remove/remove-tools.d.ts +20 -0
- package/dist/commands/tools/remove/remove-tools.d.ts.map +1 -1
- package/dist/commands/tools/remove/remove-tools.js +122 -1
- package/dist/commands/tools/shared/format-pack-inventory.d.ts +19 -0
- package/dist/commands/tools/shared/format-pack-inventory.d.ts.map +1 -1
- package/dist/commands/tools/shared/format-pack-inventory.js +109 -0
- package/dist/commands/tools/shared/pack-evidence.d.ts +66 -0
- package/dist/commands/tools/shared/pack-evidence.d.ts.map +1 -0
- package/dist/commands/tools/shared/pack-evidence.js +132 -0
- package/dist/commands/tools/shared/pack-inventory.d.ts +1 -0
- package/dist/commands/tools/shared/pack-inventory.d.ts.map +1 -1
- package/dist/commands/tools/shared/pack-lifecycle-outcome.d.ts +44 -0
- package/dist/commands/tools/shared/pack-lifecycle-outcome.d.ts.map +1 -0
- package/dist/commands/tools/shared/pack-lifecycle-outcome.js +91 -0
- package/dist/commands/tools/update/index.d.ts.map +1 -1
- package/dist/commands/tools/update/index.js +74 -4
- package/dist/commands/tools/update/update-tools.d.ts +5 -0
- package/dist/commands/tools/update/update-tools.d.ts.map +1 -1
- package/dist/commands/tools/update/update-tools.js +64 -2
- package/dist/config/oat-config.d.ts +5 -0
- package/dist/config/oat-config.d.ts.map +1 -1
- package/dist/config/oat-config.js +17 -5
- package/dist/config/user-sync-config.d.ts +1 -0
- package/dist/config/user-sync-config.d.ts.map +1 -1
- package/dist/config/user-sync-config.js +8 -0
- package/dist/drift/detector.d.ts +2 -2
- package/dist/drift/detector.d.ts.map +1 -1
- package/dist/drift/detector.js +18 -0
- package/dist/drift/strays.d.ts.map +1 -1
- package/dist/drift/strays.js +5 -0
- package/dist/engine/collection-sync.d.ts +14 -0
- package/dist/engine/collection-sync.d.ts.map +1 -0
- package/dist/engine/collection-sync.js +282 -0
- package/dist/engine/compute-plan.d.ts +8 -1
- package/dist/engine/compute-plan.d.ts.map +1 -1
- package/dist/engine/compute-plan.js +303 -12
- package/dist/engine/engine.types.d.ts +61 -0
- package/dist/engine/engine.types.d.ts.map +1 -1
- package/dist/engine/execute-plan.d.ts +22 -2
- package/dist/engine/execute-plan.d.ts.map +1 -1
- package/dist/engine/execute-plan.js +459 -27
- package/dist/engine/index.d.ts +1 -1
- package/dist/engine/index.d.ts.map +1 -1
- package/dist/engine/index.js +1 -1
- package/dist/engine/provider-path-safety.d.ts +1 -0
- package/dist/engine/provider-path-safety.d.ts.map +1 -1
- package/dist/engine/provider-path-safety.js +15 -0
- package/dist/engine/scanner.d.ts +9 -2
- package/dist/engine/scanner.d.ts.map +1 -1
- package/dist/engine/scanner.js +58 -4
- package/dist/fs/io.d.ts +67 -0
- package/dist/fs/io.d.ts.map +1 -1
- package/dist/fs/io.js +536 -3
- package/dist/manifest/index.d.ts +2 -2
- package/dist/manifest/index.d.ts.map +1 -1
- package/dist/manifest/index.js +1 -1
- package/dist/manifest/manager.d.ts +2 -2
- package/dist/manifest/manager.d.ts.map +1 -1
- package/dist/manifest/manager.js +20 -3
- package/dist/manifest/manifest.types.d.ts +704 -13
- package/dist/manifest/manifest.types.d.ts.map +1 -1
- package/dist/manifest/manifest.types.js +131 -15
- package/dist/providers/codex/codec/sync-extension.d.ts +1 -1
- package/dist/providers/codex/codec/sync-extension.d.ts.map +1 -1
- package/dist/providers/codex/codec/sync-extension.js +48 -17
- package/dist/providers/cursor/codec/sync-extension.d.ts +1 -1
- package/dist/providers/cursor/codec/sync-extension.d.ts.map +1 -1
- package/dist/providers/cursor/codec/sync-extension.js +52 -23
- package/dist/providers/identity/absolute-paths.d.ts +68 -0
- package/dist/providers/identity/absolute-paths.d.ts.map +1 -0
- package/dist/providers/identity/absolute-paths.js +144 -0
- package/dist/providers/identity/claude-runtime-observation.d.ts +105 -0
- package/dist/providers/identity/claude-runtime-observation.d.ts.map +1 -0
- package/dist/providers/identity/claude-runtime-observation.fixtures.d.ts +40 -0
- package/dist/providers/identity/claude-runtime-observation.fixtures.d.ts.map +1 -0
- package/dist/providers/identity/claude-runtime-observation.fixtures.js +146 -0
- package/dist/providers/identity/claude-runtime-observation.js +229 -0
- package/dist/providers/identity/codex-runtime-observation.d.ts +75 -0
- package/dist/providers/identity/codex-runtime-observation.d.ts.map +1 -0
- package/dist/providers/identity/codex-runtime-observation.fixtures.d.ts +37 -0
- package/dist/providers/identity/codex-runtime-observation.fixtures.d.ts.map +1 -0
- package/dist/providers/identity/codex-runtime-observation.fixtures.js +539 -0
- package/dist/providers/identity/codex-runtime-observation.js +255 -0
- package/dist/providers/identity/generic-dispatch-record.d.ts +313 -0
- package/dist/providers/identity/generic-dispatch-record.d.ts.map +1 -0
- package/dist/providers/identity/generic-dispatch-record.js +539 -0
- package/dist/providers/identity/oat-dispatch-record.d.ts +1964 -0
- package/dist/providers/identity/oat-dispatch-record.d.ts.map +1 -0
- package/dist/providers/identity/oat-dispatch-record.js +691 -0
- package/dist/providers/identity/runtime-observation.d.ts +100 -0
- package/dist/providers/identity/runtime-observation.d.ts.map +1 -0
- package/dist/providers/identity/runtime-observation.js +169 -0
- package/dist/providers/shared/index.d.ts +2 -0
- package/dist/providers/shared/index.d.ts.map +1 -1
- package/dist/providers/shared/index.js +1 -0
- package/dist/providers/shared/materialization-extension.d.ts +12 -0
- package/dist/providers/shared/materialization-extension.d.ts.map +1 -1
- package/dist/providers/shared/registry.d.ts +69 -0
- package/dist/providers/shared/registry.d.ts.map +1 -0
- package/dist/providers/shared/registry.js +252 -0
- package/dist/providers/shared/restart-adviser.d.ts +26 -0
- package/dist/providers/shared/restart-adviser.d.ts.map +1 -0
- package/dist/providers/shared/restart-adviser.js +96 -0
- package/dist/shared/types.d.ts +4 -0
- package/dist/shared/types.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/engine/scanner.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { readdir } from 'node:fs/promises';
|
|
2
|
-
import { join, resolve } from 'node:path';
|
|
2
|
+
import { isAbsolute, join, relative, resolve, sep } from 'node:path';
|
|
3
3
|
import { CliError } from '../errors/index.js';
|
|
4
4
|
import { resolveAssetsRoot } from '../fs/assets.js';
|
|
5
5
|
import { SCOPE_CONTENT_TYPES, USER_SCOPE_MANAGED_AGENT_FILES, } from '../shared/types.js';
|
|
@@ -58,13 +58,67 @@ export async function scanBundledManagedAgents() {
|
|
|
58
58
|
isFile: true,
|
|
59
59
|
}));
|
|
60
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* User-scope Codex/Cursor materialization reads the bundled managed role files,
|
|
63
|
+
* not the installed copies under `~/.agents/agents/`. Concatenating both lists
|
|
64
|
+
* produces the same Cursor/Codex role name twice and aborts the whole sync.
|
|
65
|
+
*/
|
|
66
|
+
export function mergeUserScopeMaterializationEntries(canonicalEntries, bundledManagedAgents) {
|
|
67
|
+
const bundledNames = new Set(bundledManagedAgents.map((entry) => entry.name));
|
|
68
|
+
const merged = [];
|
|
69
|
+
const seenBundledNames = new Set();
|
|
70
|
+
for (const entry of bundledManagedAgents) {
|
|
71
|
+
if (seenBundledNames.has(entry.name)) {
|
|
72
|
+
continue;
|
|
73
|
+
}
|
|
74
|
+
seenBundledNames.add(entry.name);
|
|
75
|
+
merged.push(entry);
|
|
76
|
+
}
|
|
77
|
+
for (const entry of canonicalEntries) {
|
|
78
|
+
if (entry.type === 'agent' && bundledNames.has(entry.name)) {
|
|
79
|
+
continue;
|
|
80
|
+
}
|
|
81
|
+
merged.push(entry);
|
|
82
|
+
}
|
|
83
|
+
return merged;
|
|
84
|
+
}
|
|
85
|
+
export function materializationCanonicalPathAllowed(scopeRoot, canonicalEntry, allowedCanonicalPaths) {
|
|
86
|
+
if (!allowedCanonicalPaths?.length) {
|
|
87
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
const allowed = new Set(allowedCanonicalPaths);
|
|
90
|
+
const relativePath = relative(scopeRoot, canonicalEntry.canonicalPath).replaceAll('\\', '/');
|
|
91
|
+
if (allowed.has(relativePath)) {
|
|
92
|
+
return true;
|
|
93
|
+
}
|
|
94
|
+
return (canonicalEntry.type === 'agent' &&
|
|
95
|
+
canonicalEntry.isFile &&
|
|
96
|
+
allowed.has(join('.agents', 'agents', canonicalEntry.name).replaceAll('\\', '/')));
|
|
97
|
+
}
|
|
61
98
|
/** @deprecated Use scanBundledManagedAgents for provider-neutral materialization. */
|
|
62
99
|
export const scanBundledManagedCodexAgents = scanBundledManagedAgents;
|
|
63
|
-
export async function scanCanonical(basePath, scope) {
|
|
100
|
+
export async function scanCanonical(basePath, scope, targets) {
|
|
64
101
|
const scopeRoot = resolve(basePath);
|
|
65
102
|
const entries = [];
|
|
66
|
-
|
|
67
|
-
|
|
103
|
+
const scanTargets = targets ??
|
|
104
|
+
SCOPE_CONTENT_TYPES[scope].map((contentType) => ({
|
|
105
|
+
contentType,
|
|
106
|
+
canonicalDir: join('.agents', canonicalDirectoryName(contentType)),
|
|
107
|
+
}));
|
|
108
|
+
const seenTargets = new Set();
|
|
109
|
+
for (const { contentType, canonicalDir } of scanTargets) {
|
|
110
|
+
const contentDir = resolve(scopeRoot, canonicalDir);
|
|
111
|
+
const relativeContentDir = relative(scopeRoot, contentDir);
|
|
112
|
+
if (isAbsolute(canonicalDir) ||
|
|
113
|
+
relativeContentDir === '..' ||
|
|
114
|
+
relativeContentDir.startsWith(`..${sep}`)) {
|
|
115
|
+
throw new CliError(`Canonical scan target must stay within the scope root: ${canonicalDir}`);
|
|
116
|
+
}
|
|
117
|
+
const targetKey = `${contentType}::${contentDir}`;
|
|
118
|
+
if (seenTargets.has(targetKey)) {
|
|
119
|
+
continue;
|
|
120
|
+
}
|
|
121
|
+
seenTargets.add(targetKey);
|
|
68
122
|
const includeFiles = contentType === 'agent' || contentType === 'rule';
|
|
69
123
|
const scanned = await readEntries(contentDir);
|
|
70
124
|
for (const scannedEntry of scanned) {
|
package/dist/fs/io.d.ts
CHANGED
|
@@ -1,10 +1,77 @@
|
|
|
1
1
|
export declare function fileExists(path: string): Promise<boolean>;
|
|
2
2
|
export declare function dirExists(path: string): Promise<boolean>;
|
|
3
3
|
export type LinkStrategy = 'symlink' | 'copy';
|
|
4
|
+
export interface CreatedCollectionSymlink {
|
|
5
|
+
linkText: string;
|
|
6
|
+
device: string;
|
|
7
|
+
inode: string;
|
|
8
|
+
}
|
|
9
|
+
export interface CollectionSymlinkCreationGuard {
|
|
10
|
+
scopeRoot: string;
|
|
11
|
+
expectedParent: {
|
|
12
|
+
device: string;
|
|
13
|
+
inode: string;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
4
16
|
export type CopyDirectoryFilter = (sourcePath: string, relativePath: string) => boolean | Promise<boolean>;
|
|
5
17
|
export declare function ensureDir(dirPath: string): Promise<void>;
|
|
6
18
|
export declare function copyDirectory(src: string, dest: string, filter?: CopyDirectoryFilter, sourceRoot?: string): Promise<void>;
|
|
7
19
|
export declare function copySingleFile(src: string, dest: string): Promise<void>;
|
|
20
|
+
export declare function copySingleFileNoClobber(src: string, dest: string): Promise<void>;
|
|
21
|
+
export declare function writeFileNoClobber(dest: string, content: string): Promise<void>;
|
|
8
22
|
export declare function createSymlink(target: string, linkPath: string, onFallback?: (error: unknown) => void, isFile?: boolean): Promise<LinkStrategy>;
|
|
23
|
+
export declare function createSymlinkNoClobber(target: string, linkPath: string, isFile?: boolean): Promise<'symlink'>;
|
|
24
|
+
export declare function createCollectionSymlinkNoClobber(_target: string, linkPath: string, guard: CollectionSymlinkCreationGuard): Promise<CreatedCollectionSymlink>;
|
|
25
|
+
export declare function removeCollectionSymlinkIfUnchanged(linkPath: string, created: CreatedCollectionSymlink): Promise<boolean>;
|
|
26
|
+
/**
|
|
27
|
+
* The one serialization of a JSON document OAT writes to disk.
|
|
28
|
+
*
|
|
29
|
+
* Every size bound that claims to constrain a published file must measure this
|
|
30
|
+
* exact string. Validating compact `JSON.stringify` while writing pretty-printed
|
|
31
|
+
* output with a trailing newline let a record validated at 65,536 bytes land on
|
|
32
|
+
* disk at 65,874.
|
|
33
|
+
*/
|
|
34
|
+
export declare function serializeJsonDocument(data: unknown): string;
|
|
9
35
|
export declare function atomicWriteJson(filePath: string, data: unknown): Promise<void>;
|
|
36
|
+
export interface ContainedWriterLockOptions {
|
|
37
|
+
timeoutMs?: number;
|
|
38
|
+
minReclaimMs?: number;
|
|
39
|
+
hardStaleMs?: number;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Exclusive contained writer lock. `mkdir` without `recursive` is the atomic
|
|
43
|
+
* primitive: exactly one caller can create the directory, and every other
|
|
44
|
+
* caller observes `EEXIST`. The lock is validated as a real directory so a
|
|
45
|
+
* planted symlink fails closed instead of redirecting the guarded section, it
|
|
46
|
+
* records holder evidence so a crashed writer can be reclaimed rather than
|
|
47
|
+
* wedging the project forever, and no message it raises contains an absolute
|
|
48
|
+
* path.
|
|
49
|
+
*/
|
|
50
|
+
export declare function withContainedWriterLock<T>(lockPath: string, scopeRoot: string, run: () => Promise<T>, options?: ContainedWriterLockOptions): Promise<T>;
|
|
51
|
+
export declare function journalErrorCode(error: unknown): string | null;
|
|
52
|
+
/**
|
|
53
|
+
* Re-raise a filesystem error without Node's absolute-path message text while
|
|
54
|
+
* preserving its `code` so callers can still branch on `EEXIST`/`ENOENT`.
|
|
55
|
+
* Exported so every journal producer redacts identically instead of each one
|
|
56
|
+
* re-deriving the rule.
|
|
57
|
+
*/
|
|
58
|
+
export declare function redactedFsError(error: unknown, operation: string, relativeTarget: string): Error;
|
|
59
|
+
/**
|
|
60
|
+
* Publish one immutable JSON journal revision.
|
|
61
|
+
*
|
|
62
|
+
* Guarantees, stated as what the code does:
|
|
63
|
+
* - The destination is created with `link` only. An occupied destination raises
|
|
64
|
+
* `EEXIST`; the destination is never renamed onto, removed, or truncated.
|
|
65
|
+
* - After publication the destination is proven to be the exact staged inode,
|
|
66
|
+
* inside the same directory inode validated before staging, still resolving
|
|
67
|
+
* inside `scopeRoot`. Failure raises and removes nothing.
|
|
68
|
+
* - Staging cleanup removes only the inode this call created.
|
|
69
|
+
* - No raised message contains an absolute path.
|
|
70
|
+
*
|
|
71
|
+
* Residual, unchanged by this design: a privileged concurrent process that
|
|
72
|
+
* swaps the validated directory pathname can cause the `link` to create an
|
|
73
|
+
* unreferenced file under a directory it controls, and can strand the staged
|
|
74
|
+
* file. Neither outcome replaces or deletes pre-existing content.
|
|
75
|
+
*/
|
|
76
|
+
export declare function publishContainedJsonRevision(filePath: string, data: unknown, scopeRoot: string): Promise<void>;
|
|
10
77
|
//# sourceMappingURL=io.d.ts.map
|
package/dist/fs/io.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"io.d.ts","sourceRoot":"","sources":["../../src/fs/io.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"io.d.ts","sourceRoot":"","sources":["../../src/fs/io.ts"],"names":[],"mappings":"AA4BA,wBAAsB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAO/D;AAED,wBAAsB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAO9D;AAED,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,MAAM,CAAC;AAC9C,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf;AACD,MAAM,WAAW,8BAA8B;IAC7C,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE;QACd,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;CACH;AAGD,MAAM,MAAM,mBAAmB,GAAG,CAChC,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,KACjB,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AAEhC,wBAAsB,SAAS,CAAC,OAAO,E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