@karmaniverous/stan-core 0.2.0 → 0.3.0
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/README.md +31 -9
- package/dist/cjs/index.js +1 -1
- package/dist/mjs/index.js +1 -1
- package/dist/types/index.d.ts +8 -56
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -33,67 +33,19 @@ declare const DEFAULT_OPEN_COMMAND = "code -g {file}";
|
|
|
33
33
|
*/
|
|
34
34
|
declare const findConfigPathSync: (cwd: string) => string | null;
|
|
35
35
|
|
|
36
|
-
/** A script entry may be a raw command string or an object with an optional warnPattern. */
|
|
37
|
-
type ScriptEntry = string | {
|
|
38
|
-
script: string;
|
|
39
|
-
warnPattern?: string;
|
|
40
|
-
};
|
|
41
|
-
type ScriptMap = Record<string, ScriptEntry>;
|
|
42
|
-
type CliDefaultsRun = {
|
|
43
|
-
archive?: boolean;
|
|
44
|
-
combine?: boolean;
|
|
45
|
-
keep?: boolean;
|
|
46
|
-
sequential?: boolean;
|
|
47
|
-
live?: boolean;
|
|
48
|
-
plan?: boolean;
|
|
49
|
-
hangWarn?: number;
|
|
50
|
-
hangKill?: number;
|
|
51
|
-
hangKillGrace?: number;
|
|
52
|
-
scripts?: boolean | string[];
|
|
53
|
-
};
|
|
54
|
-
type CliDefaultsPatch = {
|
|
55
|
-
file?: string | null | undefined;
|
|
56
|
-
};
|
|
57
|
-
type CliDefaultsSnap = {
|
|
58
|
-
stash?: boolean;
|
|
59
|
-
};
|
|
60
|
-
type CliDefaults = {
|
|
61
|
-
debug?: boolean;
|
|
62
|
-
boring?: boolean;
|
|
63
|
-
patch?: CliDefaultsPatch;
|
|
64
|
-
run?: CliDefaultsRun;
|
|
65
|
-
snap?: CliDefaultsSnap;
|
|
66
|
-
};
|
|
67
|
-
/**
|
|
68
|
-
* Resolved STAN configuration. * - Paths like stanPath/output and stanPath/diff are referred to without angle * brackets to avoid confusion with HTML-like tags in TSDoc.
|
|
69
|
-
*/
|
|
70
36
|
type ContextConfig = {
|
|
37
|
+
/** STAN workspace directory (e.g., ".stan"). */
|
|
71
38
|
stanPath: string;
|
|
72
|
-
scripts: ScriptMap;
|
|
73
39
|
/**
|
|
74
|
-
* Additive allow‑list globs for
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
* - `includes` can bring back files ignored by `.gitignore` or default denials.
|
|
78
|
-
* - Reserved exclusions still apply: `<stanPath>/diff` is always excluded;
|
|
79
|
-
* `<stanPath>/output` is excluded unless explicitly included by combine mode at archive time.
|
|
40
|
+
* Additive allow‑list globs for selection. Reserved workspace exclusions
|
|
41
|
+
* still apply (<stanPath>/diff and <stanPath>/patch are always excluded;
|
|
42
|
+
* <stanPath>/output is excluded unless combine mode includes it at archive time).
|
|
80
43
|
*/
|
|
81
44
|
includes?: string[];
|
|
82
|
-
/**
|
|
45
|
+
/** Deny‑list globs (take precedence over includes). */
|
|
83
46
|
excludes?: string[];
|
|
84
|
-
/**
|
|
85
|
-
|
|
86
|
-
devMode?: boolean;
|
|
87
|
-
/**
|
|
88
|
-
* Staged imports (archiving only): label -\> glob(s) to copy under <stanPath>/imports/<label>/...
|
|
89
|
-
*/
|
|
90
|
-
imports?: Record<string, string | string[]>;
|
|
91
|
-
/**
|
|
92
|
-
* Phase-scoped CLI defaults used by adapters when flags are omitted.
|
|
93
|
-
* Top-level (no 'opts' wrapper). */
|
|
94
|
-
cliDefaults?: CliDefaults;
|
|
95
|
-
/** Command template to open modified files after a successful patch. */
|
|
96
|
-
patchOpenCommand?: string;
|
|
47
|
+
/** Imports mapping normalized to arrays. */
|
|
48
|
+
imports?: Record<string, string[]>;
|
|
97
49
|
};
|
|
98
50
|
|
|
99
51
|
/**
|
|
@@ -353,4 +305,4 @@ declare const assembleSystemMonolith: (cwd: string, stanPath: string) => Promise
|
|
|
353
305
|
declare const CORE_VERSION: string;
|
|
354
306
|
|
|
355
307
|
export { CORE_VERSION, DEFAULT_OPEN_COMMAND, DEFAULT_STAN_PATH, __internal, applyPatchPipeline, applyWithJsDiff, assembleSystemMonolith, createArchive, createArchiveDiff, detectAndCleanPatch, ensureOutputDir, executeFileOps, findConfigPathSync, getPackagedSystemPromptPath, loadConfig, loadConfigSync, parseFileOpsBlock, prepareImports, resolveStanPath, resolveStanPathSync, validateOrThrow, validateResponseMessage, writeArchiveSnapshot };
|
|
356
|
-
export type { ApplyResult, AssembleResult, Block, BlockKind,
|
|
308
|
+
export type { ApplyResult, AssembleResult, AttemptCapture, Block, BlockKind, ContextConfig, CreateArchiveOptions, FileOp, FileOpsPlan, ImportsMap, JsDiffOutcome, OpResult, PipelineOutcome, SnapshotUpdateMode, ValidationResult };
|
package/package.json
CHANGED