opencode-swarm 7.27.0 → 7.27.2

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.
@@ -38,6 +38,13 @@ export declare function isQualityBudgetEvidence(evidence: Evidence): evidence is
38
38
  export declare function isSecretscanEvidence(evidence: Evidence): evidence is SecretscanEvidence;
39
39
  import { sanitizeTaskId as _sanitizeTaskId } from '../validation/task-id';
40
40
  export declare const sanitizeTaskId: typeof _sanitizeTaskId;
41
+ /**
42
+ * Defense-in-depth: verify that `directory` is the project root and not a subdirectory
43
+ * of a project that already has a .swarm/ at its root.
44
+ * Walks up the directory tree to filesystem root looking for a parent .swarm/ directory.
45
+ * @throws Error if a parent directory contains .swarm/
46
+ */
47
+ export declare function validateProjectRoot(directory: string): void;
41
48
  /**
42
49
  * Save evidence to a task's evidence bundle.
43
50
  * Creates new bundle if doesn't exist, appends to existing.
@@ -88,5 +95,6 @@ export declare const _internals: {
88
95
  wrapFlatRetrospective: typeof wrapFlatRetrospective;
89
96
  loadEvidence: typeof loadEvidence;
90
97
  listEvidenceTaskIds: typeof listEvidenceTaskIds;
98
+ validateProjectRoot: typeof validateProjectRoot;
91
99
  };
92
100
  export {};