@hearsay-tools/squawk 0.18.0-dev.7439 → 0.18.0-dev.7447
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/agent-config/catalog.d.ts +6 -60
- package/dist/agent-config/catalog.js +12 -337
- package/dist/agent-config/catalog.js.map +1 -1
- package/dist/agent-config/files.d.ts +1 -1
- package/dist/agent-config/files.js.map +1 -1
- package/dist/agent-config/model-settings/claude.d.ts +1 -1
- package/dist/agent-config/model-settings/codex.d.ts +1 -1
- package/dist/agent-config/model-settings/opencode.d.ts +1 -1
- package/dist/agent-config/model-settings/pi.d.ts +1 -1
- package/dist/agent-config/model-settings/shared.d.ts +1 -1
- package/dist/agent-config/model-settings/shared.js +2 -2
- package/dist/agent-config/model-settings/shared.js.map +1 -1
- package/dist/agent-config/models.d.ts +5 -1
- package/dist/agent-config/models.js +5 -19
- package/dist/agent-config/models.js.map +1 -1
- package/dist/agent-config/seed.js +2 -2
- package/dist/agent-config/seed.js.map +1 -1
- package/dist/agent-config/service.d.ts +1 -1
- package/dist/agent-config/service.js +2 -2
- package/dist/agent-config/service.js.map +1 -1
- package/dist/agent-config/validate.d.ts +1 -1
- package/dist/ci-wait/controller.d.ts +42 -42
- package/dist/core/host-model-catalog.d.ts +2 -1
- package/dist/core/host-model-catalog.js +7 -13
- package/dist/core/host-model-catalog.js.map +1 -1
- package/dist/core/host-skill-catalog.d.ts +5 -2
- package/dist/core/host-skill-catalog.js +9 -12
- package/dist/core/host-skill-catalog.js.map +1 -1
- package/dist/core/model-identity.d.ts +9 -11
- package/dist/core/model-identity.js +12 -28
- package/dist/core/model-identity.js.map +1 -1
- package/dist/core/model-presets.d.ts +0 -5
- package/dist/core/model-presets.js +11 -30
- package/dist/core/model-presets.js.map +1 -1
- package/dist/core/opencode-minimal.js +1 -2
- package/dist/core/opencode-minimal.js.map +1 -1
- package/dist/core/opencode-runtime-config.d.ts +3 -0
- package/dist/core/opencode-runtime-config.js +11 -0
- package/dist/core/opencode-runtime-config.js.map +1 -1
- package/dist/core/pi-runner.js +1 -1
- package/dist/core/pi-runner.js.map +1 -1
- package/dist/core/runner-config-files.d.ts +60 -0
- package/dist/core/runner-config-files.js +2 -0
- package/dist/core/runner-config-files.js.map +1 -0
- package/dist/core/runner-definition.d.ts +33 -0
- package/dist/core/runner-definition.js.map +1 -1
- package/dist/{agent-config/model-settings/types.d.ts → core/runner-model-settings.d.ts} +3 -1
- package/dist/core/runner-model-settings.js +2 -0
- package/dist/core/runner-model-settings.js.map +1 -0
- package/dist/delegation/routes.d.ts +16 -16
- package/dist/delegation/transport.d.ts +74 -74
- package/dist/paths.d.ts +1 -1
- package/dist/runners/claude/config-files.d.ts +7 -0
- package/dist/runners/claude/config-files.js +112 -0
- package/dist/runners/claude/config-files.js.map +1 -0
- package/dist/runners/claude/definition.js +11 -0
- package/dist/runners/claude/definition.js.map +1 -1
- package/dist/runners/claude/extra-tools.d.ts +3 -0
- package/dist/runners/claude/extra-tools.js +4 -0
- package/dist/runners/claude/extra-tools.js.map +1 -0
- package/dist/runners/claude/models.d.ts +3 -0
- package/dist/runners/claude/models.js +16 -0
- package/dist/runners/claude/models.js.map +1 -0
- package/dist/runners/codex/config-files.d.ts +7 -0
- package/dist/runners/codex/config-files.js +58 -0
- package/dist/runners/codex/config-files.js.map +1 -0
- package/dist/runners/codex/definition.js +11 -0
- package/dist/runners/codex/definition.js.map +1 -1
- package/dist/runners/codex/extra-tools.d.ts +3 -0
- package/dist/runners/codex/extra-tools.js +4 -0
- package/dist/runners/codex/extra-tools.js.map +1 -0
- package/dist/runners/codex/models.d.ts +3 -0
- package/dist/runners/codex/models.js +9 -0
- package/dist/runners/codex/models.js.map +1 -0
- package/dist/runners/omp/config-files.d.ts +7 -0
- package/dist/runners/omp/config-files.js +87 -0
- package/dist/runners/omp/config-files.js.map +1 -0
- package/dist/runners/omp/definition.js +14 -0
- package/dist/runners/omp/definition.js.map +1 -1
- package/dist/runners/omp/extra-tools.d.ts +3 -0
- package/dist/runners/omp/extra-tools.js +6 -0
- package/dist/runners/omp/extra-tools.js.map +1 -0
- package/dist/runners/omp/models.d.ts +3 -0
- package/dist/runners/omp/models.js +9 -0
- package/dist/runners/omp/models.js.map +1 -0
- package/dist/runners/opencode/config-files.d.ts +7 -0
- package/dist/runners/opencode/config-files.js +57 -0
- package/dist/runners/opencode/config-files.js.map +1 -0
- package/dist/runners/opencode/definition.js +11 -0
- package/dist/runners/opencode/definition.js.map +1 -1
- package/dist/runners/opencode/extra-tools.d.ts +3 -0
- package/dist/runners/opencode/extra-tools.js +4 -0
- package/dist/runners/opencode/extra-tools.js.map +1 -0
- package/dist/runners/opencode/models.d.ts +3 -0
- package/dist/runners/opencode/models.js +8 -0
- package/dist/runners/opencode/models.js.map +1 -0
- package/dist/runners/pi/config-files.d.ts +7 -0
- package/dist/runners/pi/config-files.js +59 -0
- package/dist/runners/pi/config-files.js.map +1 -0
- package/dist/runners/pi/definition.js +11 -0
- package/dist/runners/pi/definition.js.map +1 -1
- package/dist/runners/pi/extra-tools.d.ts +3 -0
- package/dist/runners/pi/extra-tools.js +7 -0
- package/dist/runners/pi/extra-tools.js.map +1 -0
- package/dist/runners/pi/models.d.ts +3 -0
- package/dist/runners/pi/models.js +15 -0
- package/dist/runners/pi/models.js.map +1 -0
- package/dist/runners/project-agents-file.d.ts +6 -0
- package/dist/runners/project-agents-file.js +19 -0
- package/dist/runners/project-agents-file.js.map +1 -0
- package/dist/server/activity-routes.d.ts +23 -23
- package/dist/server/server.d.ts +254 -254
- package/dist/workflows/types.d.ts +1 -5
- package/dist/workflows/types.js +4 -15
- package/dist/workflows/types.js.map +1 -1
- package/package.json +4 -4
- package/dist/agent-config/model-settings/types.js +0 -2
- package/dist/agent-config/model-settings/types.js.map +0 -1
- package/dist/ci-wait/injection.d.ts +0 -3
- package/dist/ci-wait/injection.js +0 -13
- package/dist/ci-wait/injection.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extra-tools.js","sourceRoot":"","sources":["../../../src/runners/opencode/extra-tools.ts"],"names":[],"mappings":"AAAA;8DAC8D;AAC9D,MAAM,CAAC,MAAM,oBAAoB,GAAsB,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** The OpenCode runner's model data. Data only: importing it loads no adapter. */
|
|
2
|
+
export const OPENCODE_MODELS = {
|
|
3
|
+
known: [],
|
|
4
|
+
// opencode selects across providers, so a bare model is ambiguous: reject it
|
|
5
|
+
// loudly rather than let the server pick a default the user never asked for.
|
|
6
|
+
idMap: {},
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=models.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/runners/opencode/models.ts"],"names":[],"mappings":"AAEA,kFAAkF;AAClF,MAAM,CAAC,MAAM,eAAe,GAAoB;IAC9C,KAAK,EAAE,EAAE;IACT,6EAA6E;IAC7E,6EAA6E;IAC7E,KAAK,EAAE,EAAE;CACV,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ConfigFileDef } from '../../core/runner-config-files.ts';
|
|
2
|
+
/**
|
|
3
|
+
* The pi runner's native config files for Settings → Agent config. Data only: importing it
|
|
4
|
+
* loads no adapter. Order is presentation order: user → project → local, so the scope ladder
|
|
5
|
+
* reads top (broad) to bottom (specific).
|
|
6
|
+
*/
|
|
7
|
+
export declare const PI_CONFIG_FILES: readonly ConfigFileDef[];
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { join } from 'node:path';
|
|
2
|
+
import { PROJECT_AGENTS_FILE } from '../project-agents-file.js';
|
|
3
|
+
const PI_SETTINGS_DOCS = 'https://github.com/badlogic/pi-mono/blob/main/packages/coding-agent/docs/settings.md';
|
|
4
|
+
const PI_CONTEXT_FILES_DOCS = 'https://github.com/badlogic/pi-mono/blob/main/packages/coding-agent/README.md#context-files';
|
|
5
|
+
/**
|
|
6
|
+
* The pi runner's native config files for Settings → Agent config. Data only: importing it
|
|
7
|
+
* loads no adapter. Order is presentation order: user → project → local, so the scope ladder
|
|
8
|
+
* reads top (broad) to bottom (specific).
|
|
9
|
+
*/
|
|
10
|
+
export const PI_CONFIG_FILES = [
|
|
11
|
+
// ---- Pi ----
|
|
12
|
+
// Pi has no MCP file of its own: its README says "No MCP." — servers arrive only through a Pi
|
|
13
|
+
// extension, so nothing here carries `holdsMcp` and the cockpit's MCP group states that instead.
|
|
14
|
+
{
|
|
15
|
+
id: 'pi.user.settings',
|
|
16
|
+
runners: ['pi'],
|
|
17
|
+
kind: 'settings',
|
|
18
|
+
scope: 'user',
|
|
19
|
+
resolve: (_repo, home) => join(home.pi, 'settings.json'),
|
|
20
|
+
label: '~/.pi/agent/settings.json',
|
|
21
|
+
format: 'json',
|
|
22
|
+
tracked: 'outside-repo',
|
|
23
|
+
modelKey: 'defaultModel',
|
|
24
|
+
modelProviderKey: 'defaultProvider',
|
|
25
|
+
modelPriority: 1,
|
|
26
|
+
precedence: 'Global (all projects). Project settings override global settings — the two merge recursively, so nested objects combine rather than replace. Startup model: defaultProvider + defaultModel.',
|
|
27
|
+
docsUrl: PI_SETTINGS_DOCS,
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
id: 'pi.project.settings',
|
|
31
|
+
runners: ['pi'],
|
|
32
|
+
kind: 'settings',
|
|
33
|
+
scope: 'project',
|
|
34
|
+
resolve: (repo) => join(repo, '.pi', 'settings.json'),
|
|
35
|
+
label: '.pi/settings.json',
|
|
36
|
+
format: 'json',
|
|
37
|
+
tracked: 'tracked',
|
|
38
|
+
modelKey: 'defaultModel',
|
|
39
|
+
modelProviderKey: 'defaultProvider',
|
|
40
|
+
modelPriority: 2,
|
|
41
|
+
precedence: `Overrides global settings (merged recursively). Loaded only once the project folder is trusted; non-interactive modes such as --mode rpc fall back to defaultProjectTrust in the global settings and ignore it under "ask" or "never" — Squawk reads a native default model from it only when that value is "always". Runs read the committed copy.`,
|
|
42
|
+
docsUrl: PI_SETTINGS_DOCS,
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
id: 'pi.user.memory',
|
|
46
|
+
runners: ['pi'],
|
|
47
|
+
kind: 'memory',
|
|
48
|
+
scope: 'user',
|
|
49
|
+
resolve: (_repo, home) => join(home.pi, 'AGENTS.md'),
|
|
50
|
+
label: '~/.pi/agent/AGENTS.md',
|
|
51
|
+
format: 'markdown',
|
|
52
|
+
tracked: 'outside-repo',
|
|
53
|
+
precedence: 'Global context file, loaded first. Every AGENTS.md (or CLAUDE.md) from the parent directories down to the current one is concatenated after it; an AGENTS.override.md replaces that directory’s file only.',
|
|
54
|
+
docsUrl: PI_CONTEXT_FILES_DOCS,
|
|
55
|
+
},
|
|
56
|
+
// <repo>/AGENTS.md, shared with Codex, OpenCode, Pi and OMP: the catalog lists it once.
|
|
57
|
+
PROJECT_AGENTS_FILE,
|
|
58
|
+
];
|
|
59
|
+
//# sourceMappingURL=config-files.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-files.js","sourceRoot":"","sources":["../../../src/runners/pi/config-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,MAAM,gBAAgB,GAAG,sFAAsF,CAAC;AAChH,MAAM,qBAAqB,GAAG,6FAA6F,CAAC;AAE5H;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAA6B;IACvD,eAAe;IACf,8FAA8F;IAC9F,iGAAiG;IACjG;QACE,EAAE,EAAE,kBAAkB;QACtB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,MAAM;QACb,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,eAAe,CAAC;QACxD,KAAK,EAAE,2BAA2B;QAClC,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,cAAc;QACvB,QAAQ,EAAE,cAAc;QACxB,gBAAgB,EAAE,iBAAiB;QACnC,aAAa,EAAE,CAAC;QAChB,UAAU,EACR,6LAA6L;QAC/L,OAAO,EAAE,gBAAgB;KAC1B;IACD;QACE,EAAE,EAAE,qBAAqB;QACzB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,SAAS;QAChB,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,eAAe,CAAC;QACrD,KAAK,EAAE,mBAAmB;QAC1B,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,SAAS;QAClB,QAAQ,EAAE,cAAc;QACxB,gBAAgB,EAAE,iBAAiB;QACnC,aAAa,EAAE,CAAC;QAChB,UAAU,EACR,qVAAqV;QACvV,OAAO,EAAE,gBAAgB;KAC1B;IACD;QACE,EAAE,EAAE,gBAAgB;QACpB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,MAAM;QACb,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,WAAW,CAAC;QACpD,KAAK,EAAE,uBAAuB;QAC9B,MAAM,EAAE,UAAU;QAClB,OAAO,EAAE,cAAc;QACvB,UAAU,EACR,4MAA4M;QAC9M,OAAO,EAAE,qBAAqB;KAC/B;IAED,wFAAwF;IACxF,mBAAmB;CACpB,CAAC"}
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import { defineRunner } from '../../core/runner-definition.js';
|
|
2
2
|
import { PI_FACTS } from './facts.js';
|
|
3
|
+
import { PI_MODELS } from './models.js';
|
|
4
|
+
import { PI_CONFIG_FILES } from './config-files.js';
|
|
5
|
+
import { PI_EXTRA_TOOLS } from './extra-tools.js';
|
|
3
6
|
/** The Pi runner. */
|
|
4
7
|
export const piRunner = defineRunner({
|
|
5
8
|
id: 'pi',
|
|
6
9
|
facts: PI_FACTS,
|
|
7
10
|
loadAdapter: async () => new (await import('../../core/pi-runner.js')).PiRunner(),
|
|
11
|
+
models: {
|
|
12
|
+
...PI_MODELS,
|
|
13
|
+
loadSettings: async () => (await import('../../agent-config/model-settings/pi.js')).piModelSettingsStrategy,
|
|
14
|
+
},
|
|
15
|
+
loadModelCatalog: async () => (await import('../../core/pi-model-catalog.js')).discoverPiModels,
|
|
16
|
+
loadSkillCatalog: async () => (await import('../../core/pi-skill-catalog.js')).discoverPiSkills,
|
|
17
|
+
configFiles: PI_CONFIG_FILES,
|
|
18
|
+
extraTools: PI_EXTRA_TOOLS,
|
|
8
19
|
});
|
|
9
20
|
//# sourceMappingURL=definition.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../src/runners/pi/definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../src/runners/pi/definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,qBAAqB;AACrB,MAAM,CAAC,MAAM,QAAQ,GAAG,YAAY,CAAC;IACnC,EAAE,EAAE,IAAI;IACR,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,KAAK,IAAI,EAAE,CAAC,IAAI,CAAC,MAAM,MAAM,CAAC,yBAAyB,CAAC,CAAC,CAAC,QAAQ,EAAE;IACjF,MAAM,EAAE;QACN,GAAG,SAAS;QACZ,YAAY,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,MAAM,CAAC,yCAAyC,CAAC,CAAC,CAAC,uBAAuB;KAC5G;IACD,gBAAgB,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,MAAM,CAAC,gCAAgC,CAAC,CAAC,CAAC,gBAAgB;IAC/F,gBAAgB,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,MAAM,CAAC,gCAAgC,CAAC,CAAC,CAAC,gBAAgB;IAC/F,WAAW,EAAE,eAAe;IAC5B,UAAU,EAAE,cAAc;CAC3B,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** The pi runner's extra tools: unioned onto the default list when a step does not set
|
|
2
|
+
* allowedTools. Data only: importing it loads no adapter. */
|
|
3
|
+
// The trio still marks the default list (hearsay-tools/cezarion#75). pi itself gets no --tools
|
|
4
|
+
// allowlist for it (hearsay-tools/cezarion#1305): the default-tools extension activates these
|
|
5
|
+
// names with the built-ins, so MCP and other extension tools stay callable.
|
|
6
|
+
export const PI_EXTRA_TOOLS = ['Subagent', 'SubagentSupervisor', 'SubagentWait'];
|
|
7
|
+
//# sourceMappingURL=extra-tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extra-tools.js","sourceRoot":"","sources":["../../../src/runners/pi/extra-tools.ts"],"names":[],"mappings":"AAAA;8DAC8D;AAC9D,+FAA+F;AAC/F,8FAA8F;AAC9F,4EAA4E;AAC5E,MAAM,CAAC,MAAM,cAAc,GAAsB,CAAC,UAAU,EAAE,oBAAoB,EAAE,cAAc,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** The pi runner's model data. Data only: importing it loads no adapter. */
|
|
2
|
+
export const PI_MODELS = {
|
|
3
|
+
// pi lists nothing for the same reason OpenCode does (#794), plus one of its own: it picks a
|
|
4
|
+
// model with the canonical `provider/model` convention and has no default provider, so the
|
|
5
|
+
// structural check in `modelConflictsWithRunner` already guards it without vendor
|
|
6
|
+
// knowledge. Listing pi's composer presets here would actively break OpenCode — the ids
|
|
7
|
+
// overlap (`anthropic/claude-sonnet-5`), and a shared id present in pi's list but absent from
|
|
8
|
+
// OpenCode's empty one would read as "another runner's preset" and be refused.
|
|
9
|
+
known: [],
|
|
10
|
+
// pi selects across providers with the same `provider/model` convention as
|
|
11
|
+
// opencode (#387) — no default provider, so a bare model is rejected loudly
|
|
12
|
+
// and `toBackendModel` hands pi the full `provider/model` on its `--model`.
|
|
13
|
+
idMap: {},
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=models.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/runners/pi/models.ts"],"names":[],"mappings":"AAEA,4EAA4E;AAC5E,MAAM,CAAC,MAAM,SAAS,GAAoB;IACxC,6FAA6F;IAC7F,2FAA2F;IAC3F,kFAAkF;IAClF,wFAAwF;IACxF,8FAA8F;IAC9F,+EAA+E;IAC/E,KAAK,EAAE,EAAE;IACT,2EAA2E;IAC3E,4EAA4E;IAC5E,4EAA4E;IAC5E,KAAK,EAAE,EAAE;CACV,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ConfigFileDef } from '../core/runner-config-files.ts';
|
|
2
|
+
/**
|
|
3
|
+
* `<repo>/AGENTS.md` is read by Codex, OpenCode, Pi AND OMP. Each of their definitions lists this
|
|
4
|
+
* one entry in its `configFiles`; the agent-config catalog lists it once. Data only.
|
|
5
|
+
*/
|
|
6
|
+
export declare const PROJECT_AGENTS_FILE: ConfigFileDef;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { join } from 'node:path';
|
|
2
|
+
const OPENCODE_RULES_DOCS = 'https://opencode.ai/docs/rules/';
|
|
3
|
+
/**
|
|
4
|
+
* `<repo>/AGENTS.md` is read by Codex, OpenCode, Pi AND OMP. Each of their definitions lists this
|
|
5
|
+
* one entry in its `configFiles`; the agent-config catalog lists it once. Data only.
|
|
6
|
+
*/
|
|
7
|
+
export const PROJECT_AGENTS_FILE = {
|
|
8
|
+
id: 'project.agents',
|
|
9
|
+
runners: ['codex', 'opencode', 'pi', 'omp'],
|
|
10
|
+
kind: 'memory',
|
|
11
|
+
scope: 'project',
|
|
12
|
+
resolve: (repo) => join(repo, 'AGENTS.md'),
|
|
13
|
+
label: 'AGENTS.md',
|
|
14
|
+
format: 'markdown',
|
|
15
|
+
tracked: 'tracked',
|
|
16
|
+
precedence: 'Read by Codex, OpenCode, Pi and OMP (Claude ignores it). Codex concatenates it root-down; OpenCode uses the first match and prefers it over CLAUDE.md; Pi concatenates every AGENTS.md (or CLAUDE.md) from the parent directories down, after its global file; OMP loads standalone ancestor AGENTS.md files through its low-priority `agents-md` provider. Runs read the committed copy.',
|
|
17
|
+
docsUrl: OPENCODE_RULES_DOCS,
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=project-agents-file.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-agents-file.js","sourceRoot":"","sources":["../../src/runners/project-agents-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAGjC,MAAM,mBAAmB,GAAG,iCAAiC,CAAC;AAE9D;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAkB;IAChD,EAAE,EAAE,gBAAgB;IACpB,OAAO,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,CAAC;IAC3C,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,SAAS;IAChB,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,WAAW,CAAC;IAC1C,KAAK,EAAE,WAAW;IAClB,MAAM,EAAE,UAAU;IAClB,OAAO,EAAE,SAAS;IAClB,UAAU,EACR,2XAA2X;IAC7X,OAAO,EAAE,mBAAmB;CAC7B,CAAC"}
|
|
@@ -59,6 +59,29 @@ export declare function ciProgressPlugs(demand: ActivityDemand): {
|
|
|
59
59
|
export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, {
|
|
60
60
|
"/workspace/activity": {
|
|
61
61
|
$get: {
|
|
62
|
+
output: {
|
|
63
|
+
error: string;
|
|
64
|
+
code?: "invalid_input" | undefined;
|
|
65
|
+
};
|
|
66
|
+
outputFormat: "json";
|
|
67
|
+
status: 400;
|
|
68
|
+
input: {
|
|
69
|
+
query: {
|
|
70
|
+
project?: string | undefined;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
} | {
|
|
74
|
+
output: {
|
|
75
|
+
error: string;
|
|
76
|
+
};
|
|
77
|
+
outputFormat: "json";
|
|
78
|
+
status: 404 | 409 | 503;
|
|
79
|
+
input: {
|
|
80
|
+
query: {
|
|
81
|
+
project?: string | undefined;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
} | {
|
|
62
85
|
output: {
|
|
63
86
|
generatedAt: string;
|
|
64
87
|
projects: {
|
|
@@ -289,29 +312,6 @@ export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): impo
|
|
|
289
312
|
project?: string | undefined;
|
|
290
313
|
};
|
|
291
314
|
};
|
|
292
|
-
} | {
|
|
293
|
-
output: {
|
|
294
|
-
error: string;
|
|
295
|
-
code?: "invalid_input" | undefined;
|
|
296
|
-
};
|
|
297
|
-
outputFormat: "json";
|
|
298
|
-
status: 400;
|
|
299
|
-
input: {
|
|
300
|
-
query: {
|
|
301
|
-
project?: string | undefined;
|
|
302
|
-
};
|
|
303
|
-
};
|
|
304
|
-
} | {
|
|
305
|
-
output: {
|
|
306
|
-
error: string;
|
|
307
|
-
};
|
|
308
|
-
outputFormat: "json";
|
|
309
|
-
status: 404 | 409 | 503;
|
|
310
|
-
input: {
|
|
311
|
-
query: {
|
|
312
|
-
project?: string | undefined;
|
|
313
|
-
};
|
|
314
|
-
};
|
|
315
315
|
};
|
|
316
316
|
};
|
|
317
317
|
}, "/", "/workspace/activity">;
|