@generacy-ai/generacy-plugin-claude-code 0.2.0 → 0.4.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/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/launch/claude-code-launch-plugin.d.ts +23 -0
- package/dist/launch/claude-code-launch-plugin.d.ts.map +1 -1
- package/dist/launch/claude-code-launch-plugin.js +78 -3
- package/dist/launch/claude-code-launch-plugin.js.map +1 -1
- package/dist/launch/types.d.ts +36 -3
- package/dist/launch/types.d.ts.map +1 -1
- package/dist/launch/types.js +10 -3
- package/dist/launch/types.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -15,5 +15,5 @@ export { OutputParser } from './streaming/output-parser.js';
|
|
|
15
15
|
export { buildClaudeCommand, buildModeCommand, DEFAULT_INVOCATION_TIMEOUT_MS, DEFAULT_MAX_TURNS, } from './invocation/types.js';
|
|
16
16
|
export { ClaudeCodeLaunchPlugin } from './launch/claude-code-launch-plugin.js';
|
|
17
17
|
export { PTY_WRAPPER } from './launch/constants.js';
|
|
18
|
-
export type { PhaseIntent, PrFeedbackIntent, ValidateFixIntent, MergeConflictIntent, ConversationTurnIntent, InvokeIntent,
|
|
18
|
+
export type { PhaseIntent, PrFeedbackIntent, ValidateFixIntent, MergeConflictIntent, ConversationTurnIntent, InvokeIntent, } from './launch/types.js';
|
|
19
19
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,YAAY,EAEV,OAAO,EACP,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,eAAe,EAEf,eAAe,EACf,KAAK,EACL,cAAc,EAEd,YAAY,EACZ,aAAa,EACb,gBAAgB,EAEhB,WAAW,EACX,eAAe,EACf,c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a,EACb,gBAAgB,EAEhB,WAAW,EACX,eAAe,EACf,cAAc,EACd,YAAY,EACZ,eAAe,EAEf,eAAe,EACf,SAAS,EAET,yBAAyB,GAC1B,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,WAAW,EACX,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,cAAc,CAAC;AAGtB,OAAO,EACL,WAAW,EACX,oBAAoB,EACpB,wBAAwB,EACxB,mBAAmB,EACnB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,aAAa,EACb,SAAS,GACV,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,YAAY,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAG9E,OAAO,EACL,kBAAkB,EAClB,0BAA0B,EAC1B,mBAAmB,EACnB,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAG5D,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,6BAA6B,EAC7B,iBAAiB,GAClB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,YAAY,EACV,WAAW,EACX,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,EACtB,YAAY,GACb,MAAM,mBAAmB,CAAC"}
|
|
@@ -30,7 +30,30 @@ interface OutputParser {
|
|
|
30
30
|
*/
|
|
31
31
|
export declare class ClaudeCodeLaunchPlugin {
|
|
32
32
|
readonly pluginId = "claude-code";
|
|
33
|
+
readonly provider = "claude-code";
|
|
33
34
|
readonly supportedKinds: readonly ["phase", "pr-feedback", "validate-fix", "merge-conflict", "conversation-turn", "invoke"];
|
|
35
|
+
/**
|
|
36
|
+
* Whether the installed CLI supports a delivery mechanism for reasoning effort.
|
|
37
|
+
*
|
|
38
|
+
* Probes `claude --help` once per process (result cached in
|
|
39
|
+
* `effortMechanismCache`) and greps for `--effort`. Consulted by validate-time
|
|
40
|
+
* (`packages/generacy`) and spawn-time (orchestrator worker) warning surfaces
|
|
41
|
+
* per FR-010a of issue #1095. Runtime detection closes the drift hazard
|
|
42
|
+
* called out in the #1096 review Finding 3: a container whose CLI predates or
|
|
43
|
+
* removes `--effort` would otherwise still get the flag appended and fail the
|
|
44
|
+
* spawn with an unknown-option error and no `agent.effort.dropped` warning.
|
|
45
|
+
*
|
|
46
|
+
* If the probe cannot run (`claude` not on PATH, spawn error, timeout), the
|
|
47
|
+
* cache falls back to `true` — preserves the pre-#1096 behavior for hosts
|
|
48
|
+
* that do not yet have the CLI installed but will at spawn time. Force a
|
|
49
|
+
* fixed result in tests via `_setHasEffortMechanismForTests`.
|
|
50
|
+
*/
|
|
51
|
+
static hasEffortMechanism(): boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Test-only cache override. Pass `undefined` to force a re-probe on the next
|
|
54
|
+
* `hasEffortMechanism()` call. Not part of the public API.
|
|
55
|
+
*/
|
|
56
|
+
static _setHasEffortMechanismForTests(value: boolean | undefined): void;
|
|
34
57
|
buildLaunch(intent: ClaudeCodeIntent): LaunchSpec;
|
|
35
58
|
createOutputParser(_intent: ClaudeCodeIntent): OutputParser;
|
|
36
59
|
private buildPhaseLaunch;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude-code-launch-plugin.d.ts","sourceRoot":"","sources":["../../src/launch/claude-code-launch-plugin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"claude-code-launch-plugin.d.ts","sourceRoot":"","sources":["../../src/launch/claude-code-launch-plugin.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,gBAAgB,EAOjB,MAAM,YAAY,CAAC;AAGpB;;;GAGG;AACH,UAAU,UAAU;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,UAAU,YAAY;IACpB,YAAY,CAAC,MAAM,EAAE,QAAQ,GAAG,QAAQ,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9D,KAAK,IAAI,IAAI,CAAC;CACf;AASD;;;;;;;;;;;GAWG;AACH,qBAAa,sBAAsB;IACjC,QAAQ,CAAC,QAAQ,iBAAiB;IAClC,QAAQ,CAAC,QAAQ,iBAAiB;IAClC,QAAQ,CAAC,cAAc,qGAAsG;IAE7H;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,kBAAkB,IAAI,OAAO;IAmBpC;;;OAGG;IACH,MAAM,CAAC,8BAA8B,CAAC,KAAK,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI;IAIvE,WAAW,CAAC,MAAM,EAAE,gBAAgB,GAAG,UAAU;IAmBjD,kBAAkB,CAAC,OAAO,EAAE,gBAAgB,GAAG,YAAY;IAa3D,OAAO,CAAC,gBAAgB;IA8BxB,OAAO,CAAC,qBAAqB;IAyB7B,OAAO,CAAC,sBAAsB;IA4B9B,OAAO,CAAC,wBAAwB;IA4BhC,OAAO,CAAC,iBAAiB;IAQzB,OAAO,CAAC,2BAA2B;CA0BpC"}
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
+
import { execFileSync } from 'node:child_process';
|
|
1
2
|
import { PHASE_TO_COMMAND, PTY_WRAPPER } from './constants.js';
|
|
3
|
+
/**
|
|
4
|
+
* Process-lifetime cache for the `--effort` capability probe. `undefined`
|
|
5
|
+
* means the probe has not yet run; `true`/`false` is the resolved answer.
|
|
6
|
+
* See `ClaudeCodeLaunchPlugin.hasEffortMechanism()`.
|
|
7
|
+
*/
|
|
8
|
+
let effortMechanismCache = undefined;
|
|
2
9
|
/**
|
|
3
10
|
* Launch plugin for Claude Code subprocess invocations.
|
|
4
11
|
*
|
|
@@ -13,7 +20,51 @@ import { PHASE_TO_COMMAND, PTY_WRAPPER } from './constants.js';
|
|
|
13
20
|
*/
|
|
14
21
|
export class ClaudeCodeLaunchPlugin {
|
|
15
22
|
pluginId = 'claude-code';
|
|
23
|
+
provider = 'claude-code';
|
|
16
24
|
supportedKinds = ['phase', 'pr-feedback', 'validate-fix', 'merge-conflict', 'conversation-turn', 'invoke'];
|
|
25
|
+
/**
|
|
26
|
+
* Whether the installed CLI supports a delivery mechanism for reasoning effort.
|
|
27
|
+
*
|
|
28
|
+
* Probes `claude --help` once per process (result cached in
|
|
29
|
+
* `effortMechanismCache`) and greps for `--effort`. Consulted by validate-time
|
|
30
|
+
* (`packages/generacy`) and spawn-time (orchestrator worker) warning surfaces
|
|
31
|
+
* per FR-010a of issue #1095. Runtime detection closes the drift hazard
|
|
32
|
+
* called out in the #1096 review Finding 3: a container whose CLI predates or
|
|
33
|
+
* removes `--effort` would otherwise still get the flag appended and fail the
|
|
34
|
+
* spawn with an unknown-option error and no `agent.effort.dropped` warning.
|
|
35
|
+
*
|
|
36
|
+
* If the probe cannot run (`claude` not on PATH, spawn error, timeout), the
|
|
37
|
+
* cache falls back to `true` — preserves the pre-#1096 behavior for hosts
|
|
38
|
+
* that do not yet have the CLI installed but will at spawn time. Force a
|
|
39
|
+
* fixed result in tests via `_setHasEffortMechanismForTests`.
|
|
40
|
+
*/
|
|
41
|
+
static hasEffortMechanism() {
|
|
42
|
+
if (effortMechanismCache !== undefined)
|
|
43
|
+
return effortMechanismCache;
|
|
44
|
+
try {
|
|
45
|
+
const output = execFileSync('claude', ['--help'], {
|
|
46
|
+
encoding: 'utf-8',
|
|
47
|
+
timeout: 5_000,
|
|
48
|
+
stdio: ['ignore', 'pipe', 'ignore'],
|
|
49
|
+
});
|
|
50
|
+
effortMechanismCache = /(^|\s)--effort(\s|=|$)/.test(output);
|
|
51
|
+
}
|
|
52
|
+
catch {
|
|
53
|
+
// `claude` not on PATH, spawn failed, or --help exited non-zero — preserve
|
|
54
|
+
// prior behavior. Operator surfaces (validate warnings + spawn-time
|
|
55
|
+
// warnings) rely on the plugin telling the truth about the CLI installed
|
|
56
|
+
// in the same environment; when we can't tell, don't invent a warning.
|
|
57
|
+
effortMechanismCache = true;
|
|
58
|
+
}
|
|
59
|
+
return effortMechanismCache;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Test-only cache override. Pass `undefined` to force a re-probe on the next
|
|
63
|
+
* `hasEffortMechanism()` call. Not part of the public API.
|
|
64
|
+
*/
|
|
65
|
+
static _setHasEffortMechanismForTests(value) {
|
|
66
|
+
effortMechanismCache = value;
|
|
67
|
+
}
|
|
17
68
|
buildLaunch(intent) {
|
|
18
69
|
switch (intent.kind) {
|
|
19
70
|
case 'phase':
|
|
@@ -51,6 +102,12 @@ export class ClaudeCodeLaunchPlugin {
|
|
|
51
102
|
'--dangerously-skip-permissions',
|
|
52
103
|
'--verbose',
|
|
53
104
|
];
|
|
105
|
+
if (intent.model) {
|
|
106
|
+
args.push('--model', intent.model);
|
|
107
|
+
}
|
|
108
|
+
if (intent.effort) {
|
|
109
|
+
args.push('--effort', intent.effort);
|
|
110
|
+
}
|
|
54
111
|
if (intent.sessionId) {
|
|
55
112
|
args.push('--resume', intent.sessionId);
|
|
56
113
|
}
|
|
@@ -68,8 +125,14 @@ export class ClaudeCodeLaunchPlugin {
|
|
|
68
125
|
'--output-format', 'stream-json',
|
|
69
126
|
'--dangerously-skip-permissions',
|
|
70
127
|
'--verbose',
|
|
71
|
-
intent.prompt,
|
|
72
128
|
];
|
|
129
|
+
if (intent.model) {
|
|
130
|
+
args.push('--model', intent.model);
|
|
131
|
+
}
|
|
132
|
+
if (intent.effort) {
|
|
133
|
+
args.push('--effort', intent.effort);
|
|
134
|
+
}
|
|
135
|
+
args.push(intent.prompt);
|
|
73
136
|
return {
|
|
74
137
|
command: 'claude',
|
|
75
138
|
args,
|
|
@@ -85,8 +148,14 @@ export class ClaudeCodeLaunchPlugin {
|
|
|
85
148
|
'--output-format', 'stream-json',
|
|
86
149
|
'--dangerously-skip-permissions',
|
|
87
150
|
'--verbose',
|
|
88
|
-
intent.prompt,
|
|
89
151
|
];
|
|
152
|
+
if (intent.model) {
|
|
153
|
+
args.push('--model', intent.model);
|
|
154
|
+
}
|
|
155
|
+
if (intent.effort) {
|
|
156
|
+
args.push('--effort', intent.effort);
|
|
157
|
+
}
|
|
158
|
+
args.push(intent.prompt);
|
|
90
159
|
return {
|
|
91
160
|
command: 'claude',
|
|
92
161
|
args,
|
|
@@ -102,8 +171,14 @@ export class ClaudeCodeLaunchPlugin {
|
|
|
102
171
|
'--output-format', 'stream-json',
|
|
103
172
|
'--dangerously-skip-permissions',
|
|
104
173
|
'--verbose',
|
|
105
|
-
intent.prompt,
|
|
106
174
|
];
|
|
175
|
+
if (intent.model) {
|
|
176
|
+
args.push('--model', intent.model);
|
|
177
|
+
}
|
|
178
|
+
if (intent.effort) {
|
|
179
|
+
args.push('--effort', intent.effort);
|
|
180
|
+
}
|
|
181
|
+
args.push(intent.prompt);
|
|
107
182
|
return {
|
|
108
183
|
command: 'claude',
|
|
109
184
|
args,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude-code-launch-plugin.js","sourceRoot":"","sources":["../../src/launch/claude-code-launch-plugin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"claude-code-launch-plugin.js","sourceRoot":"","sources":["../../src/launch/claude-code-launch-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAUlD,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAqB/D;;;;GAI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AO,EAAE,SAAS;YAClB,IAAI,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,UAAU,CAAC;YAC9C,YAAY,EAAE,aAAa;SAC5B,CAAC;IACJ,CAAC;CACF"}
|
package/dist/launch/types.d.ts
CHANGED
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Claude Code-specific launch intent types.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* The orchestrator OWNS the canonical agent intent types (see
|
|
5
|
+
* `@generacy-ai/orchestrator` `src/launcher/types.ts`). These are structural
|
|
6
|
+
* mirrors defined locally so the plugin does not take a build-time dependency
|
|
7
|
+
* on the orchestrator's compiled `.d.ts` — the two packages form a workspace
|
|
8
|
+
* cycle, so `pnpm -r build` compiles them concurrently and a cross-package
|
|
9
|
+
* type import races the producer's `dist/`. TypeScript structural typing keeps
|
|
10
|
+
* these compatible with the orchestrator-owned types at the registration seam.
|
|
11
|
+
* Same rationale as the local `LaunchSpec`/`OutputParser` in
|
|
12
|
+
* `claude-code-launch-plugin.ts`. (Issue #813 permits importing or structurally
|
|
13
|
+
* matching the orchestrator-owned intent types.)
|
|
7
14
|
*/
|
|
15
|
+
/**
|
|
16
|
+
* Reasoning effort level mirror. The canonical schema lives in
|
|
17
|
+
* `@generacy-ai/config` (`EffortSchema`). Kept local here to avoid a build-time
|
|
18
|
+
* dep on the config package (same rationale as the intent-type mirrors above).
|
|
19
|
+
*/
|
|
20
|
+
export type Effort = 'low' | 'medium' | 'high' | 'xhigh' | 'max';
|
|
8
21
|
/**
|
|
9
22
|
* Intent for executing a speckit workflow phase via Claude CLI.
|
|
10
23
|
* Excludes 'validate' at compile time — validate runs via GenericSubprocessPlugin.
|
|
@@ -17,6 +30,10 @@ export interface PhaseIntent {
|
|
|
17
30
|
prompt: string;
|
|
18
31
|
/** Resume a previous Claude session (for MCP server warmth + context carry) */
|
|
19
32
|
sessionId?: string;
|
|
33
|
+
/** Optional model override, provider-interpreted. */
|
|
34
|
+
model?: string;
|
|
35
|
+
/** Optional reasoning-effort override, provider-interpreted. */
|
|
36
|
+
effort?: Effort;
|
|
20
37
|
}
|
|
21
38
|
/**
|
|
22
39
|
* Intent for addressing PR review feedback via Claude CLI.
|
|
@@ -27,6 +44,10 @@ export interface PrFeedbackIntent {
|
|
|
27
44
|
prNumber: number;
|
|
28
45
|
/** Full prompt text (pre-built by caller via buildFeedbackPrompt()) */
|
|
29
46
|
prompt: string;
|
|
47
|
+
/** Optional model override, provider-interpreted. */
|
|
48
|
+
model?: string;
|
|
49
|
+
/** Optional reasoning-effort override, provider-interpreted. */
|
|
50
|
+
effort?: Effort;
|
|
30
51
|
}
|
|
31
52
|
/**
|
|
32
53
|
* Intent for a bounded merge-conflict resolution agent attempt (#898).
|
|
@@ -40,6 +61,12 @@ export interface MergeConflictIntent {
|
|
|
40
61
|
issueNumber: number;
|
|
41
62
|
/** Full prompt (built by MergeConflictHandler via buildMergeConflictPrompt) */
|
|
42
63
|
prompt: string;
|
|
64
|
+
/** Provider breadcrumb (dispatch reads LaunchRequest.provider). */
|
|
65
|
+
provider?: string;
|
|
66
|
+
/** Optional model override, provider-interpreted. */
|
|
67
|
+
model?: string;
|
|
68
|
+
/** Optional reasoning-effort override, provider-interpreted. */
|
|
69
|
+
effort?: Effort;
|
|
43
70
|
}
|
|
44
71
|
/**
|
|
45
72
|
* Intent for a bounded validate-fix agent attempt (#892). Routes through the
|
|
@@ -54,6 +81,12 @@ export interface ValidateFixIntent {
|
|
|
54
81
|
prompt: string;
|
|
55
82
|
/** 64-hex SHA-256 identity of the failing evidence — surfaces in logs. */
|
|
56
83
|
evidenceHash: string;
|
|
84
|
+
/** Provider breadcrumb (dispatch reads LaunchRequest.provider). */
|
|
85
|
+
provider?: string;
|
|
86
|
+
/** Optional model override, provider-interpreted. */
|
|
87
|
+
model?: string;
|
|
88
|
+
/** Optional reasoning-effort override, provider-interpreted. */
|
|
89
|
+
effort?: Effort;
|
|
57
90
|
}
|
|
58
91
|
/**
|
|
59
92
|
* Intent for a single interactive conversation turn via PTY-wrapped Claude CLI.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/launch/types.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/launch/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;GAIG;AACH,MAAM,MAAM,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;AAEjE;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,+BAA+B;IAC/B,KAAK,EAAE,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,WAAW,CAAC;IAC9D,uEAAuE;IACvE,MAAM,EAAE,MAAM,CAAC;IACf,+EAA+E;IAC/E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qDAAqD;IACrD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gEAAgE;IAChE,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,aAAa,CAAC;IACpB,oCAAoC;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,uEAAuE;IACvE,MAAM,EAAE,MAAM,CAAC;IACf,qDAAqD;IACrD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gEAAgE;IAChE,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;GAKG;AACH,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,gBAAgB,CAAC;IACvB,0BAA0B;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,+EAA+E;IAC/E,MAAM,EAAE,MAAM,CAAC;IACf,mEAAmE;IACnE,QAAQ,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ator OWNS the canonical agent intent types (see
|
|
5
|
+
* `@generacy-ai/orchestrator` `src/launcher/types.ts`). These are structural
|
|
6
|
+
* mirrors defined locally so the plugin does not take a build-time dependency
|
|
7
|
+
* on the orchestrator's compiled `.d.ts` — the two packages form a workspace
|
|
8
|
+
* cycle, so `pnpm -r build` compiles them concurrently and a cross-package
|
|
9
|
+
* type import races the producer's `dist/`. TypeScript structural typing keeps
|
|
10
|
+
* these compatible with the orchestrator-owned types at the registration seam.
|
|
11
|
+
* Same rationale as the local `LaunchSpec`/`OutputParser` in
|
|
12
|
+
* `claude-code-launch-plugin.ts`. (Issue #813 permits importing or structurally
|
|
13
|
+
* matching the orchestrator-owned intent types.)
|
|
7
14
|
*/
|
|
8
15
|
export {};
|
|
9
16
|
//# sourceMappingURL=types.js.map
|
package/dist/launch/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/launch/types.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/launch/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@generacy-ai/generacy-plugin-claude-code",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Claude Code agent platform plugin for Generacy - invokes Claude Code agents in isolated Docker containers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|