@agimon-ai/doompi 0.0.1-alpha.40 → 0.0.1-alpha.43
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 +1 -1
- package/dist/src/commands/cli/harnessOptions.cjs +1 -1
- package/dist/src/commands/cli/harnessOptions.cjs.map +1 -1
- package/dist/src/commands/cli/harnessOptions.d.cts +3 -2
- package/dist/src/commands/cli/harnessOptions.d.cts.map +1 -1
- package/dist/src/commands/cli/harnessOptions.d.mts +3 -2
- package/dist/src/commands/cli/harnessOptions.d.mts.map +1 -1
- package/dist/src/commands/cli/harnessOptions.mjs +1 -1
- package/dist/src/commands/cli/harnessOptions.mjs.map +1 -1
- package/package.json +17 -17
package/README.md
CHANGED
|
@@ -50,7 +50,7 @@ releases.
|
|
|
50
50
|
|
|
51
51
|
- Node.js 22.19.0 or newer
|
|
52
52
|
- macOS or Linux on arm64 or x64 for the bundled Runner backend
|
|
53
|
-
- Pi 0.84.
|
|
53
|
+
- Pi 0.84.4 and Pi TUI 0.84.4 for packages that declare them as peer requirements
|
|
54
54
|
|
|
55
55
|
## Try DoomPi without replacing your Pi setup
|
|
56
56
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../adapters/repository/repository.cjs"),n=require("./options.cjs"),r=require("../../adapters/config/harnessState.cjs");let i=require("node:path");i=e.__toESM(i,1);let a=require("@agimon-ai/doompi-config/domains"),o=require("@agimon-ai/doompi-config/majorModes");function s(e){let
|
|
1
|
+
const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../adapters/repository/repository.cjs"),n=require("./options.cjs"),r=require("../../adapters/config/harnessState.cjs");let i=require("node:path");i=e.__toESM(i,1);let a=require("@agimon-ai/doompi-config/domains"),o=require("@agimon-ai/doompi-config/majorModes");function s(e){try{return t.findRepositoryRoot(e)}catch{return i.default.resolve(e)}}function c(e){let t=e.environment??process.env,c=e.cwd??process.cwd(),l=[...e.args],u=n.parseHarnessArgs(l),d=r.readHarnessState(t,e.report).root,f=d?i.default.resolve(d):s(u.options.cwd);return{repoRoot:f,...n.parseHarnessArgs(l,t,c,(0,o.loadMajorModesConfig)(f).defaultMajorMode,(0,a.loadDomains)(f).defaultDomains).options}}exports.resolveHarnessOptions=c;
|
|
2
2
|
//# sourceMappingURL=harnessOptions.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harnessOptions.cjs","names":["
|
|
1
|
+
{"version":3,"file":"harnessOptions.cjs","names":["findRepositoryRoot","path","parseHarnessArgs","readHarnessState","loadMajorModesConfig","loadDomains"],"sources":["../../../../src/commands/cli/harnessOptions.ts"],"sourcesContent":["import path from 'node:path';\nimport { loadDomains } from '@agimon-ai/doompi-config/domains';\nimport { loadMajorModesConfig } from '@agimon-ai/doompi-config/majorModes';\nimport { parseHarnessArgs } from './options.ts';\nimport { readHarnessState } from '../../adapters/config/harnessState.ts';\nimport { findRepositoryRoot } from '../../adapters/repository/repository.ts';\nimport type { HarnessFailureReporter } from '../../adapters/telemetry/logSinkTelemetry.ts';\nimport type { HarnessOptions } from '../../types/interfaces/harness';\n\nexport interface ResolveHarnessOptionsInput {\n /** Raw launcher arguments, as the binary received them. */\n args: readonly string[];\n environment?: NodeJS.ProcessEnv;\n cwd?: string;\n /** Reports a malformed inherited harness state without failing the run. */\n report?: HarnessFailureReporter;\n}\n\n/** Uses the nearest configured repository, or the selected directory for an unconfigured workspace. */\nfunction resolveConfigurationRoot(cwd: string): string {\n try {\n return findRepositoryRoot(cwd);\n } catch {\n return path.resolve(cwd);\n }\n}\n\n/**\n * Settles the configuration root and the full option matrix for one run.\n *\n * Two passes are required: the first reads --cwd without touching repository\n * configuration, which keeps a run resolvable even when modes.yaml is\n * malformed, and the second applies the defaults that root supplies. An\n * inherited root wins, which is how a nested run stays pinned to the outer\n * repository rather than re-deriving one from its own cwd. When no configured\n * repository exists, the selected working directory is the configuration root.\n */\nexport function resolveHarnessOptions(input: ResolveHarnessOptionsInput): HarnessOptions {\n const environment = input.environment ?? process.env;\n const cwd = input.cwd ?? process.cwd();\n const args = [...input.args];\n\n const initial = parseHarnessArgs(args);\n const inheritedRoot = readHarnessState(environment, input.report).root;\n const repoRoot = inheritedRoot ? path.resolve(inheritedRoot) : resolveConfigurationRoot(initial.options.cwd);\n const parsed = parseHarnessArgs(\n args,\n environment,\n cwd,\n loadMajorModesConfig(repoRoot).defaultMajorMode,\n loadDomains(repoRoot).defaultDomains,\n );\n return { repoRoot, ...parsed.options };\n}\n"],"mappings":"+UAmBA,SAAS,EAAyB,EAAqB,CACrD,GAAI,CACF,OAAOA,EAAAA,mBAAmB,CAAG,CAC/B,MAAQ,CACN,OAAOC,EAAAA,QAAK,QAAQ,CAAG,CACzB,CACF,CAYA,SAAgB,EAAsB,EAAmD,CACvF,IAAM,EAAc,EAAM,aAAe,QAAQ,IAC3C,EAAM,EAAM,KAAO,QAAQ,IAAI,EAC/B,EAAO,CAAC,GAAG,EAAM,IAAI,EAErB,EAAUC,EAAAA,iBAAiB,CAAI,EAC/B,EAAgBC,EAAAA,iBAAiB,EAAa,EAAM,MAAM,CAAC,CAAC,KAC5D,EAAW,EAAgBF,EAAAA,QAAK,QAAQ,CAAa,EAAI,EAAyB,EAAQ,QAAQ,GAAG,EAQ3G,MAAO,CAAE,WAAU,GAPJC,EAAAA,iBACb,EACA,EACA,GAAA,EACAE,EAAAA,qBAAAA,CAAqB,CAAQ,CAAC,CAAC,kBAAA,EAC/BC,EAAAA,YAAAA,CAAY,CAAQ,CAAC,CAAC,cAEG,CAAC,CAAC,OAAQ,CACvC"}
|
|
@@ -10,13 +10,14 @@ interface ResolveHarnessOptionsInput {
|
|
|
10
10
|
report?: HarnessFailureReporter;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
|
-
* Settles the
|
|
13
|
+
* Settles the configuration root and the full option matrix for one run.
|
|
14
14
|
*
|
|
15
15
|
* Two passes are required: the first reads --cwd without touching repository
|
|
16
16
|
* configuration, which keeps a run resolvable even when modes.yaml is
|
|
17
17
|
* malformed, and the second applies the defaults that root supplies. An
|
|
18
18
|
* inherited root wins, which is how a nested run stays pinned to the outer
|
|
19
|
-
* repository rather than re-deriving one from its own cwd.
|
|
19
|
+
* repository rather than re-deriving one from its own cwd. When no configured
|
|
20
|
+
* repository exists, the selected working directory is the configuration root.
|
|
20
21
|
*/
|
|
21
22
|
declare function resolveHarnessOptions(input: ResolveHarnessOptionsInput): HarnessOptions;
|
|
22
23
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harnessOptions.d.cts","names":[],"sources":["../../../../src/commands/cli/harnessOptions.ts"],"mappings":";;;UASiB;;EAEf;EACA,cAAc,OAAO;EACrB;;EAEA,SAAS
|
|
1
|
+
{"version":3,"file":"harnessOptions.d.cts","names":[],"sources":["../../../../src/commands/cli/harnessOptions.ts"],"mappings":";;;UASiB;;EAEf;EACA,cAAc,OAAO;EACrB;;EAEA,SAAS;;;;;;;;;;;;iBAsBK,sBAAsB,OAAO,6BAA6B"}
|
|
@@ -10,13 +10,14 @@ interface ResolveHarnessOptionsInput {
|
|
|
10
10
|
report?: HarnessFailureReporter;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
|
-
* Settles the
|
|
13
|
+
* Settles the configuration root and the full option matrix for one run.
|
|
14
14
|
*
|
|
15
15
|
* Two passes are required: the first reads --cwd without touching repository
|
|
16
16
|
* configuration, which keeps a run resolvable even when modes.yaml is
|
|
17
17
|
* malformed, and the second applies the defaults that root supplies. An
|
|
18
18
|
* inherited root wins, which is how a nested run stays pinned to the outer
|
|
19
|
-
* repository rather than re-deriving one from its own cwd.
|
|
19
|
+
* repository rather than re-deriving one from its own cwd. When no configured
|
|
20
|
+
* repository exists, the selected working directory is the configuration root.
|
|
20
21
|
*/
|
|
21
22
|
declare function resolveHarnessOptions(input: ResolveHarnessOptionsInput): HarnessOptions;
|
|
22
23
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harnessOptions.d.mts","names":[],"sources":["../../../../src/commands/cli/harnessOptions.ts"],"mappings":";;;UASiB;;EAEf;EACA,cAAc,OAAO;EACrB;;EAEA,SAAS
|
|
1
|
+
{"version":3,"file":"harnessOptions.d.mts","names":[],"sources":["../../../../src/commands/cli/harnessOptions.ts"],"mappings":";;;UASiB;;EAEf;EACA,cAAc,OAAO;EACrB;;EAEA,SAAS;;;;;;;;;;;;iBAsBK,sBAAsB,OAAO,6BAA6B"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{findRepositoryRoot as e}from"../../adapters/repository/repository.mjs";import{parseHarnessArgs as t}from"./options.mjs";import{readHarnessState as n}from"../../adapters/config/harnessState.mjs";import r from"node:path";import{loadDomains as i}from"@agimon-ai/doompi-config/domains";import{loadMajorModesConfig as a}from"@agimon-ai/doompi-config/majorModes";function o(
|
|
1
|
+
import{findRepositoryRoot as e}from"../../adapters/repository/repository.mjs";import{parseHarnessArgs as t}from"./options.mjs";import{readHarnessState as n}from"../../adapters/config/harnessState.mjs";import r from"node:path";import{loadDomains as i}from"@agimon-ai/doompi-config/domains";import{loadMajorModesConfig as a}from"@agimon-ai/doompi-config/majorModes";function o(t){try{return e(t)}catch{return r.resolve(t)}}function s(e){let s=e.environment??process.env,c=e.cwd??process.cwd(),l=[...e.args],u=t(l),d=n(s,e.report).root,f=d?r.resolve(d):o(u.options.cwd);return{repoRoot:f,...t(l,s,c,a(f).defaultMajorMode,i(f).defaultDomains).options}}export{s as resolveHarnessOptions};
|
|
2
2
|
//# sourceMappingURL=harnessOptions.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harnessOptions.mjs","names":[],"sources":["../../../../src/commands/cli/harnessOptions.ts"],"sourcesContent":["import path from 'node:path';\nimport { loadDomains } from '@agimon-ai/doompi-config/domains';\nimport { loadMajorModesConfig } from '@agimon-ai/doompi-config/majorModes';\nimport { parseHarnessArgs } from './options.ts';\nimport { readHarnessState } from '../../adapters/config/harnessState.ts';\nimport { findRepositoryRoot } from '../../adapters/repository/repository.ts';\nimport type { HarnessFailureReporter } from '../../adapters/telemetry/logSinkTelemetry.ts';\nimport type { HarnessOptions } from '../../types/interfaces/harness';\n\nexport interface ResolveHarnessOptionsInput {\n /** Raw launcher arguments, as the binary received them. */\n args: readonly string[];\n environment?: NodeJS.ProcessEnv;\n cwd?: string;\n /** Reports a malformed inherited harness state without failing the run. */\n report?: HarnessFailureReporter;\n}\n\n/**\n * Settles the
|
|
1
|
+
{"version":3,"file":"harnessOptions.mjs","names":[],"sources":["../../../../src/commands/cli/harnessOptions.ts"],"sourcesContent":["import path from 'node:path';\nimport { loadDomains } from '@agimon-ai/doompi-config/domains';\nimport { loadMajorModesConfig } from '@agimon-ai/doompi-config/majorModes';\nimport { parseHarnessArgs } from './options.ts';\nimport { readHarnessState } from '../../adapters/config/harnessState.ts';\nimport { findRepositoryRoot } from '../../adapters/repository/repository.ts';\nimport type { HarnessFailureReporter } from '../../adapters/telemetry/logSinkTelemetry.ts';\nimport type { HarnessOptions } from '../../types/interfaces/harness';\n\nexport interface ResolveHarnessOptionsInput {\n /** Raw launcher arguments, as the binary received them. */\n args: readonly string[];\n environment?: NodeJS.ProcessEnv;\n cwd?: string;\n /** Reports a malformed inherited harness state without failing the run. */\n report?: HarnessFailureReporter;\n}\n\n/** Uses the nearest configured repository, or the selected directory for an unconfigured workspace. */\nfunction resolveConfigurationRoot(cwd: string): string {\n try {\n return findRepositoryRoot(cwd);\n } catch {\n return path.resolve(cwd);\n }\n}\n\n/**\n * Settles the configuration root and the full option matrix for one run.\n *\n * Two passes are required: the first reads --cwd without touching repository\n * configuration, which keeps a run resolvable even when modes.yaml is\n * malformed, and the second applies the defaults that root supplies. An\n * inherited root wins, which is how a nested run stays pinned to the outer\n * repository rather than re-deriving one from its own cwd. When no configured\n * repository exists, the selected working directory is the configuration root.\n */\nexport function resolveHarnessOptions(input: ResolveHarnessOptionsInput): HarnessOptions {\n const environment = input.environment ?? process.env;\n const cwd = input.cwd ?? process.cwd();\n const args = [...input.args];\n\n const initial = parseHarnessArgs(args);\n const inheritedRoot = readHarnessState(environment, input.report).root;\n const repoRoot = inheritedRoot ? path.resolve(inheritedRoot) : resolveConfigurationRoot(initial.options.cwd);\n const parsed = parseHarnessArgs(\n args,\n environment,\n cwd,\n loadMajorModesConfig(repoRoot).defaultMajorMode,\n loadDomains(repoRoot).defaultDomains,\n );\n return { repoRoot, ...parsed.options };\n}\n"],"mappings":"4WAmBA,SAAS,EAAyB,EAAqB,CACrD,GAAI,CACF,OAAO,EAAmB,CAAG,CAC/B,MAAQ,CACN,OAAO,EAAK,QAAQ,CAAG,CACzB,CACF,CAYA,SAAgB,EAAsB,EAAmD,CACvF,IAAM,EAAc,EAAM,aAAe,QAAQ,IAC3C,EAAM,EAAM,KAAO,QAAQ,IAAI,EAC/B,EAAO,CAAC,GAAG,EAAM,IAAI,EAErB,EAAU,EAAiB,CAAI,EAC/B,EAAgB,EAAiB,EAAa,EAAM,MAAM,CAAC,CAAC,KAC5D,EAAW,EAAgB,EAAK,QAAQ,CAAa,EAAI,EAAyB,EAAQ,QAAQ,GAAG,EAQ3G,MAAO,CAAE,WAAU,GAPJ,EACb,EACA,EACA,EACA,EAAqB,CAAQ,CAAC,CAAC,iBAC/B,EAAY,CAAQ,CAAC,CAAC,cAEG,CAAC,CAAC,OAAQ,CACvC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agimon-ai/doompi",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.43",
|
|
4
4
|
"description": "Opinionated, composable Pi distribution for scoped agent tools, skills, MCP servers, and developer workflows.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -301,7 +301,7 @@
|
|
|
301
301
|
},
|
|
302
302
|
"dependencies": {
|
|
303
303
|
"@deepseek-ai/cordis": "4.0.1",
|
|
304
|
-
"@earendil-works/pi-coding-agent": "0.84.
|
|
304
|
+
"@earendil-works/pi-coding-agent": "0.84.4",
|
|
305
305
|
"cross-spawn": "7.0.6",
|
|
306
306
|
"gpt-tokenizer": "4.0.0",
|
|
307
307
|
"minimatch": "10.2.6",
|
|
@@ -309,30 +309,30 @@
|
|
|
309
309
|
"rolldown": "1.2.5",
|
|
310
310
|
"typebox": "1.3.16",
|
|
311
311
|
"yaml": "2.9.0",
|
|
312
|
-
"@agimon-ai/doompi-autostop": "0.0.1-alpha.
|
|
313
|
-
"@agimon-ai/doompi-
|
|
314
|
-
"@agimon-ai/doompi-
|
|
315
|
-
"@agimon-ai/doompi-domain": "0.0.1-alpha.
|
|
316
|
-
"@agimon-ai/doompi-
|
|
317
|
-
"@agimon-ai/doompi-
|
|
318
|
-
"@agimon-ai/doompi-
|
|
319
|
-
"@agimon-ai/doompi-
|
|
320
|
-
"@agimon-ai/doompi-
|
|
321
|
-
"@agimon-ai/doompi-
|
|
322
|
-
"@agimon-ai/doompi-
|
|
312
|
+
"@agimon-ai/doompi-autostop": "0.0.1-alpha.21",
|
|
313
|
+
"@agimon-ai/doompi-cache": "0.0.1-alpha.10",
|
|
314
|
+
"@agimon-ai/doompi-config": "0.0.1-alpha.43",
|
|
315
|
+
"@agimon-ai/doompi-domain": "0.0.1-alpha.21",
|
|
316
|
+
"@agimon-ai/doompi-extension-contracts": "0.0.1-alpha.43",
|
|
317
|
+
"@agimon-ai/doompi-major-mode": "0.0.1-alpha.21",
|
|
318
|
+
"@agimon-ai/doompi-notification": "0.0.1-alpha.21",
|
|
319
|
+
"@agimon-ai/doompi-profile": "0.0.1-alpha.21",
|
|
320
|
+
"@agimon-ai/doompi-skill": "0.0.1-alpha.21",
|
|
321
|
+
"@agimon-ai/doompi-telemetry": "0.0.1-alpha.43",
|
|
322
|
+
"@agimon-ai/doompi-ui": "0.0.1-alpha.43"
|
|
323
323
|
},
|
|
324
324
|
"devDependencies": {
|
|
325
|
-
"@earendil-works/pi-ai": "0.84.
|
|
326
|
-
"@earendil-works/pi-tui": "0.84.
|
|
325
|
+
"@earendil-works/pi-ai": "0.84.4",
|
|
326
|
+
"@earendil-works/pi-tui": "0.84.4",
|
|
327
327
|
"@types/cross-spawn": "6.0.6",
|
|
328
328
|
"@types/node": "26.2.0",
|
|
329
329
|
"@vitest/coverage-v8": "4.1.11",
|
|
330
330
|
"typescript": "7.0.2",
|
|
331
331
|
"vitest": "4.1.11",
|
|
332
|
-
"@agimon-ai/doompi-runner": "0.0.1-alpha.
|
|
332
|
+
"@agimon-ai/doompi-runner": "0.0.1-alpha.43"
|
|
333
333
|
},
|
|
334
334
|
"peerDependencies": {
|
|
335
|
-
"@earendil-works/pi-tui": "0.84.
|
|
335
|
+
"@earendil-works/pi-tui": "0.84.4"
|
|
336
336
|
},
|
|
337
337
|
"peerDependenciesMeta": {
|
|
338
338
|
"@earendil-works/pi-tui": {
|