teamcast 0.8.0 → 0.9.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/cli/import.d.ts.map +1 -1
- package/dist/cli/import.js +12 -11
- package/dist/cli/import.js.map +1 -1
- package/dist/cli/init.d.ts.map +1 -1
- package/dist/cli/init.js +5 -0
- package/dist/cli/init.js.map +1 -1
- package/dist/cli/manage.d.ts.map +1 -1
- package/dist/cli/manage.js +35 -82
- package/dist/cli/manage.js.map +1 -1
- package/dist/components/policy-fragments.d.ts +1 -1
- package/dist/components/policy-fragments.d.ts.map +1 -1
- package/dist/components/policy-fragments.js +12 -49
- package/dist/components/policy-fragments.js.map +1 -1
- package/dist/core/index.d.ts +0 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +0 -1
- package/dist/core/index.js.map +1 -1
- package/dist/core/types.d.ts +1 -5
- package/dist/core/types.d.ts.map +1 -1
- package/dist/detector/index.d.ts +0 -2
- package/dist/detector/index.d.ts.map +1 -1
- package/dist/detector/index.js +4 -10
- package/dist/detector/index.js.map +1 -1
- package/dist/explainer/index.js +8 -8
- package/dist/explainer/index.js.map +1 -1
- package/dist/generator/index.d.ts.map +1 -1
- package/dist/generator/index.js +2 -0
- package/dist/generator/index.js.map +1 -1
- package/dist/importer/index.d.ts +2 -2
- package/dist/importer/index.d.ts.map +1 -1
- package/dist/importer/index.js +81 -27
- package/dist/importer/index.js.map +1 -1
- package/dist/manifest/normalize.d.ts.map +1 -1
- package/dist/manifest/normalize.js +13 -25
- package/dist/manifest/normalize.js.map +1 -1
- package/dist/manifest/reader.d.ts.map +1 -1
- package/dist/manifest/reader.js +4 -2
- package/dist/manifest/reader.js.map +1 -1
- package/dist/manifest/schema-validator.d.ts.map +1 -1
- package/dist/manifest/schema-validator.js +4 -2
- package/dist/manifest/schema-validator.js.map +1 -1
- package/dist/manifest/types.d.ts +7 -4
- package/dist/manifest/types.d.ts.map +1 -1
- package/dist/manifest/types.js.map +1 -1
- package/dist/plugins/core/models-plugin.d.ts +3 -0
- package/dist/plugins/core/models-plugin.d.ts.map +1 -0
- package/dist/plugins/core/models-plugin.js +28 -0
- package/dist/plugins/core/models-plugin.js.map +1 -0
- package/dist/plugins/core/tools-plugin.d.ts +3 -0
- package/dist/plugins/core/tools-plugin.d.ts.map +1 -0
- package/dist/plugins/core/tools-plugin.js +44 -0
- package/dist/plugins/core/tools-plugin.js.map +1 -0
- package/dist/plugins/environments/node-env-plugin.d.ts +3 -0
- package/dist/plugins/environments/node-env-plugin.d.ts.map +1 -0
- package/dist/plugins/environments/node-env-plugin.js +31 -0
- package/dist/plugins/environments/node-env-plugin.js.map +1 -0
- package/dist/plugins/environments/python-env-plugin.d.ts +3 -0
- package/dist/plugins/environments/python-env-plugin.d.ts.map +1 -0
- package/dist/plugins/environments/python-env-plugin.js +33 -0
- package/dist/plugins/environments/python-env-plugin.js.map +1 -0
- package/dist/plugins/index.d.ts +3 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/index.js +13 -0
- package/dist/plugins/index.js.map +1 -0
- package/dist/plugins/inject.d.ts +3 -0
- package/dist/plugins/inject.d.ts.map +1 -0
- package/dist/plugins/inject.js +16 -0
- package/dist/plugins/inject.js.map +1 -0
- package/dist/plugins/merge-policies.d.ts +8 -0
- package/dist/plugins/merge-policies.d.ts.map +1 -0
- package/dist/plugins/merge-policies.js +56 -0
- package/dist/plugins/merge-policies.js.map +1 -0
- package/dist/plugins/registry.d.ts +21 -0
- package/dist/plugins/registry.d.ts.map +1 -0
- package/dist/plugins/registry.js +63 -0
- package/dist/plugins/registry.js.map +1 -0
- package/dist/plugins/types.d.ts +71 -0
- package/dist/plugins/types.d.ts.map +1 -0
- package/dist/plugins/types.js +2 -0
- package/dist/plugins/types.js.map +1 -0
- package/dist/renderers/claude/policy-mapper.d.ts.map +1 -1
- package/dist/renderers/claude/policy-mapper.js +3 -22
- package/dist/renderers/claude/policy-mapper.js.map +1 -1
- package/dist/team-templates/policies.d.ts.map +1 -1
- package/dist/team-templates/policies.js +0 -12
- package/dist/team-templates/policies.js.map +1 -1
- package/dist/tools/types.d.ts +5 -0
- package/dist/tools/types.d.ts.map +1 -0
- package/dist/tools/types.js +2 -0
- package/dist/tools/types.js.map +1 -0
- package/dist/validator/checks/security-baseline.d.ts.map +1 -1
- package/dist/validator/checks/security-baseline.js +4 -19
- package/dist/validator/checks/security-baseline.js.map +1 -1
- package/dist/wizard/index.d.ts.map +1 -1
- package/dist/wizard/index.js +5 -0
- package/dist/wizard/index.js.map +1 -1
- package/dist/wizard/steps/agent-customization.js +21 -23
- package/dist/wizard/steps/agent-customization.js.map +1 -1
- package/package.json +2 -1
- package/schema/teamcast.schema.json +9 -1
- package/templates/presets/feature-team.yaml +0 -2
- package/templates/presets/research-and-build.yaml +0 -2
- package/templates/presets/secure-dev.yaml +0 -3
- package/templates/presets/solo-dev.yaml +0 -3
- package/dist/core/permissions.d.ts +0 -10
- package/dist/core/permissions.d.ts.map +0 -1
- package/dist/core/permissions.js +0 -67
- package/dist/core/permissions.js.map +0 -1
package/dist/manifest/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { InstructionBlock, InstructionBlockKind } from '../core/instructions.js';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ReasoningEffort, PermissionMode, McpServerConfig, HookEntry } from '../core/types.js';
|
|
3
3
|
import type { AgentSkill } from '../core/skills.js';
|
|
4
4
|
import type { CapabilityTraitName, InstructionFragmentName } from '../components/agent-fragments.js';
|
|
5
5
|
import type { PolicyFragmentName } from '../components/policy-fragments.js';
|
|
@@ -38,11 +38,13 @@ export interface AgentConfig extends BaseAgentConfig {
|
|
|
38
38
|
}
|
|
39
39
|
export interface TargetConfig {
|
|
40
40
|
agents: Record<string, AgentConfig>;
|
|
41
|
+
policies?: PoliciesConfig;
|
|
42
|
+
settings?: GenerationSettings;
|
|
41
43
|
}
|
|
42
44
|
export interface PermissionsConfig {
|
|
43
|
-
allow?:
|
|
44
|
-
ask?:
|
|
45
|
-
deny?:
|
|
45
|
+
allow?: string[];
|
|
46
|
+
ask?: string[];
|
|
47
|
+
deny?: string[];
|
|
46
48
|
default_mode?: 'default' | 'acceptEdits';
|
|
47
49
|
rules?: {
|
|
48
50
|
allow?: string[];
|
|
@@ -92,6 +94,7 @@ export interface PresetMeta {
|
|
|
92
94
|
export interface TeamCastManifest {
|
|
93
95
|
version: '2';
|
|
94
96
|
project: ProjectConfig;
|
|
97
|
+
plugins?: string[];
|
|
95
98
|
policies?: PoliciesConfig;
|
|
96
99
|
settings?: GenerationSettings;
|
|
97
100
|
preset_meta?: PresetMeta;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/manifest/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AACtF,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/manifest/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AACtF,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EACd,eAAe,EACf,SAAS,EACV,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,EACV,mBAAmB,EACnB,uBAAuB,EACxB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,oBAAoB,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB;AA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,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,GAAG,CAAC;IACb,OAAO,EAAE,aAAa,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,WAAW,CAAC,EAAE,UAAU,CAAC;IAGzB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,KAAK,CAAC,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,gBAAgB,GAAG,wBAAwB,GAAG,KAAK,IAAI,wBAAwB,CAExH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/manifest/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/manifest/types.ts"],"names":[],"mappings":"AAgIA,MAAM,UAAU,kBAAkB,CAAC,KAAkD;IACnF,OAAO,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ,IAAI,OAAO,KAAK,CAAC,OAAO,KAAK,QAAQ,CAAC;AAC7E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models-plugin.d.ts","sourceRoot":"","sources":["../../../src/plugins/core/models-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,eAAO,MAAM,gBAAgB,EAAE,cA0B9B,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export const coreModelsPlugin = {
|
|
2
|
+
name: 'core-models',
|
|
3
|
+
version: '1.0.0',
|
|
4
|
+
description: 'Registers default Anthropic and Codex models',
|
|
5
|
+
models: {
|
|
6
|
+
'claude-3-opus': {
|
|
7
|
+
id: 'claude-3-5-opus-20240229',
|
|
8
|
+
displayName: 'Claude 3.5 Opus',
|
|
9
|
+
features: ['vision', 'tools'],
|
|
10
|
+
},
|
|
11
|
+
'claude-3-sonnet': {
|
|
12
|
+
id: 'claude-3-5-sonnet-20241022',
|
|
13
|
+
displayName: 'Claude 3.5 Sonnet',
|
|
14
|
+
features: ['vision', 'tools', 'fast'],
|
|
15
|
+
},
|
|
16
|
+
'gpt-4o': {
|
|
17
|
+
id: 'gpt-4o',
|
|
18
|
+
displayName: 'GPT-4o (Codex)',
|
|
19
|
+
features: ['vision', 'tools'],
|
|
20
|
+
},
|
|
21
|
+
'o3-mini': {
|
|
22
|
+
id: 'o3-mini',
|
|
23
|
+
displayName: 'o3-mini (Codex)',
|
|
24
|
+
features: ['reasoning'],
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=models-plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models-plugin.js","sourceRoot":"","sources":["../../../src/plugins/core/models-plugin.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,gBAAgB,GAAmB;IAC9C,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,8CAA8C;IAC3D,MAAM,EAAE;QACN,eAAe,EAAE;YACf,EAAE,EAAE,0BAA0B;YAC9B,WAAW,EAAE,iBAAiB;YAC9B,QAAQ,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC;SAC9B;QACD,iBAAiB,EAAE;YACjB,EAAE,EAAE,4BAA4B;YAChC,WAAW,EAAE,mBAAmB;YAChC,QAAQ,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC;SACtC;QACD,QAAQ,EAAE;YACR,EAAE,EAAE,QAAQ;YACZ,WAAW,EAAE,gBAAgB;YAC7B,QAAQ,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC;SAC9B;QACD,SAAS,EAAE;YACT,EAAE,EAAE,SAAS;YACb,WAAW,EAAE,iBAAiB;YAC9B,QAAQ,EAAE,CAAC,WAAW,CAAC;SACxB;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools-plugin.d.ts","sourceRoot":"","sources":["../../../src/plugins/core/tools-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,eAAO,MAAM,eAAe,EAAE,cA6C7B,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export const coreToolsPlugin = {
|
|
2
|
+
name: 'core-tools',
|
|
3
|
+
version: '1.0.0',
|
|
4
|
+
description: 'Provides basic system tools and default skills',
|
|
5
|
+
// These tools are available to all setups by default
|
|
6
|
+
tools: {
|
|
7
|
+
read_file: { name: 'read_file', description: 'Read file contents' },
|
|
8
|
+
write_file: { name: 'write_file', description: 'Write or modify file contents' },
|
|
9
|
+
execute_command: { name: 'execute_command', description: 'Execute a bash command in the project directory' },
|
|
10
|
+
search_codebase: { name: 'search_codebase', description: 'Search the codebase for keywords or regex' },
|
|
11
|
+
web_search: { name: 'web_search', description: 'Search the web for documentation or answers' },
|
|
12
|
+
},
|
|
13
|
+
// Base skills that orchestrators and generators expect to exist
|
|
14
|
+
skills: {
|
|
15
|
+
read_files: { id: 'read_files', description: 'Read files' },
|
|
16
|
+
write_files: { id: 'write_files', description: 'Write files' },
|
|
17
|
+
execute: { id: 'execute', description: 'Execute commands' },
|
|
18
|
+
search: { id: 'search', description: 'Search the codebase' },
|
|
19
|
+
web: { id: 'web', description: 'Web access' },
|
|
20
|
+
delegate: { id: 'delegate', description: 'Delegate tasks' },
|
|
21
|
+
interact: { id: 'interact', description: 'Interact with user' },
|
|
22
|
+
notebook: { id: 'notebook', description: 'Jupyter Notebook' },
|
|
23
|
+
},
|
|
24
|
+
// Base policies that apply if no other plugin overrides them
|
|
25
|
+
policies: {
|
|
26
|
+
sandbox: {
|
|
27
|
+
enabled: true,
|
|
28
|
+
excluded_commands: [
|
|
29
|
+
'rm -rf /',
|
|
30
|
+
'mkfs',
|
|
31
|
+
],
|
|
32
|
+
},
|
|
33
|
+
permissions: {
|
|
34
|
+
rules: {
|
|
35
|
+
allow: [
|
|
36
|
+
'Bash(git diff *)',
|
|
37
|
+
'Bash(git status)',
|
|
38
|
+
'Bash(git log)',
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=tools-plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools-plugin.js","sourceRoot":"","sources":["../../../src/plugins/core/tools-plugin.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAmB;IAC7C,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,gDAAgD;IAE7D,qDAAqD;IACrD,KAAK,EAAE;QACL,SAAS,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,oBAAoB,EAAE;QACnE,UAAU,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,WAAW,EAAE,+BAA+B,EAAE;QAChF,eAAe,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,WAAW,EAAE,iDAAiD,EAAE;QAC5G,eAAe,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,WAAW,EAAE,2CAA2C,EAAE;QACtG,UAAU,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,WAAW,EAAE,6CAA6C,EAAE;KAC/F;IAED,gEAAgE;IAChE,MAAM,EAAE;QACN,UAAU,EAAE,EAAE,EAAE,EAAE,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE;QAC3D,WAAW,EAAE,EAAE,EAAE,EAAE,aAAa,EAAE,WAAW,EAAE,aAAa,EAAE;QAC9D,OAAO,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,WAAW,EAAE,kBAAkB,EAAE;QAC3D,MAAM,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,WAAW,EAAE,qBAAqB,EAAE;QAC5D,GAAG,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE;QAC7C,QAAQ,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,WAAW,EAAE,gBAAgB,EAAE;QAC3D,QAAQ,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,WAAW,EAAE,oBAAoB,EAAE;QAC/D,QAAQ,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,WAAW,EAAE,kBAAkB,EAAE;KAC9D;IAED,6DAA6D;IAC7D,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE,IAAI;YACb,iBAAiB,EAAE;gBACjB,UAAU;gBACV,MAAM;aACP;SACF;QACD,WAAW,EAAE;YACX,KAAK,EAAE;gBACL,KAAK,EAAE;oBACL,kBAAkB;oBAClB,kBAAkB;oBAClB,eAAe;iBAChB;aACF;SACF;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-env-plugin.d.ts","sourceRoot":"","sources":["../../../src/plugins/environments/node-env-plugin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,eAAO,MAAM,aAAa,EAAE,cA+B3B,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { existsSync } from 'fs';
|
|
2
|
+
import { join } from 'path';
|
|
3
|
+
export const nodeEnvPlugin = {
|
|
4
|
+
name: 'node-env',
|
|
5
|
+
version: '1.0.0',
|
|
6
|
+
description: 'Node.js environment profile, auto-detected via package.json',
|
|
7
|
+
detect: (cwd) => existsSync(join(cwd, 'package.json')),
|
|
8
|
+
wizard: {
|
|
9
|
+
suggest: true,
|
|
10
|
+
},
|
|
11
|
+
policies: {
|
|
12
|
+
sandbox: {
|
|
13
|
+
enabled: true,
|
|
14
|
+
},
|
|
15
|
+
permissions: {
|
|
16
|
+
rules: {
|
|
17
|
+
allow: [
|
|
18
|
+
'Bash(npm run *)',
|
|
19
|
+
'Bash(npm test *)',
|
|
20
|
+
'Bash(npx *)',
|
|
21
|
+
'Bash(npm install)',
|
|
22
|
+
'Bash(node *)'
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
instruction_fragments: {
|
|
28
|
+
'node_testing': 'To run tests, use `npm test`. To execute scripts, use `npm run <script>`.',
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=node-env-plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-env-plugin.js","sourceRoot":"","sources":["../../../src/plugins/environments/node-env-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAG5B,MAAM,CAAC,MAAM,aAAa,GAAmB;IAC3C,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,6DAA6D;IAE1E,MAAM,EAAE,CAAC,GAAW,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC;IAE9D,MAAM,EAAE;QACN,OAAO,EAAE,IAAI;KACd;IAED,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE,IAAI;SACd;QACD,WAAW,EAAE;YACX,KAAK,EAAE;gBACL,KAAK,EAAE;oBACL,iBAAiB;oBACjB,kBAAkB;oBAClB,aAAa;oBACb,mBAAmB;oBACnB,cAAc;iBACf;aACF;SACF;KACF;IAED,qBAAqB,EAAE;QACrB,cAAc,EAAE,2EAA2E;KAC5F;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"python-env-plugin.d.ts","sourceRoot":"","sources":["../../../src/plugins/environments/python-env-plugin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,eAAO,MAAM,eAAe,EAAE,cAkC7B,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { existsSync } from 'fs';
|
|
2
|
+
import { join } from 'path';
|
|
3
|
+
export const pythonEnvPlugin = {
|
|
4
|
+
name: 'python-env',
|
|
5
|
+
version: '1.0.0',
|
|
6
|
+
description: 'Python environment profile, auto-detected via pyproject.toml or requirements.txt',
|
|
7
|
+
detect: (cwd) => existsSync(join(cwd, 'pyproject.toml')) ||
|
|
8
|
+
existsSync(join(cwd, 'requirements.txt')) ||
|
|
9
|
+
existsSync(join(cwd, 'setup.py')),
|
|
10
|
+
wizard: {
|
|
11
|
+
suggest: true,
|
|
12
|
+
},
|
|
13
|
+
policies: {
|
|
14
|
+
sandbox: {
|
|
15
|
+
enabled: true,
|
|
16
|
+
},
|
|
17
|
+
permissions: {
|
|
18
|
+
rules: {
|
|
19
|
+
allow: [
|
|
20
|
+
'Bash(pytest *)',
|
|
21
|
+
'Bash(python -m pytest *)',
|
|
22
|
+
'Bash(uv run *)',
|
|
23
|
+
'Bash(poetry run *)',
|
|
24
|
+
'Bash(python *)'
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
instruction_fragments: {
|
|
30
|
+
'python_testing': 'To run tests, use `pytest`. If using poetry or uv, prefix with `poetry run` or `uv run`.',
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=python-env-plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"python-env-plugin.js","sourceRoot":"","sources":["../../../src/plugins/environments/python-env-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAG5B,MAAM,CAAC,MAAM,eAAe,GAAmB;IAC7C,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,kFAAkF;IAE/F,MAAM,EAAE,CAAC,GAAW,EAAE,EAAE,CACtB,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,gBAAgB,CAAC,CAAC;QACvC,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,kBAAkB,CAAC,CAAC;QACzC,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC;IAEnC,MAAM,EAAE;QACN,OAAO,EAAE,IAAI;KACd;IAED,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE,IAAI;SACd;QACD,WAAW,EAAE;YACX,KAAK,EAAE;gBACL,KAAK,EAAE;oBACL,gBAAgB;oBAChB,0BAA0B;oBAC1B,gBAAgB;oBAChB,oBAAoB;oBACpB,gBAAgB;iBACjB;aACF;SACF;KACF;IAED,qBAAqB,EAAE;QACrB,gBAAgB,EAAE,0FAA0F;KAC7G;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugins/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAM/C,eAAO,MAAM,eAAe,gBAAuB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PluginRegistry } from './registry.js';
|
|
2
|
+
import { coreToolsPlugin } from './core/tools-plugin.js';
|
|
3
|
+
import { coreModelsPlugin } from './core/models-plugin.js';
|
|
4
|
+
import { nodeEnvPlugin } from './environments/node-env-plugin.js';
|
|
5
|
+
import { pythonEnvPlugin } from './environments/python-env-plugin.js';
|
|
6
|
+
export const defaultRegistry = new PluginRegistry();
|
|
7
|
+
// Register built-in plugins
|
|
8
|
+
defaultRegistry.register(coreToolsPlugin);
|
|
9
|
+
defaultRegistry.register(coreModelsPlugin);
|
|
10
|
+
defaultRegistry.register(nodeEnvPlugin);
|
|
11
|
+
defaultRegistry.register(pythonEnvPlugin);
|
|
12
|
+
// TODO: Register core-presets-plugin once presets are migrated
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/plugins/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAEtE,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,cAAc,EAAE,CAAC;AAEpD,4BAA4B;AAC5B,eAAe,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;AAC1C,eAAe,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;AAC3C,eAAe,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;AACxC,eAAe,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;AAE1C,+DAA+D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inject.d.ts","sourceRoot":"","sources":["../../src/plugins/inject.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAI7D,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,gBAAgB,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAcvF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defaultRegistry } from './index.js';
|
|
2
|
+
import { mergePolicies } from './merge-policies.js';
|
|
3
|
+
export function injectEnvironmentPolicies(manifest, cwd) {
|
|
4
|
+
// Always include core-tools, explicit plugins, and whatever environment plugins detect the project
|
|
5
|
+
const detectedNames = defaultRegistry.getDetectedPlugins(cwd).map((p) => p.name);
|
|
6
|
+
const userPlugins = manifest.plugins ?? [];
|
|
7
|
+
const activePlugins = ['core-tools', ...new Set([...detectedNames, ...userPlugins])];
|
|
8
|
+
const pluginPolicies = defaultRegistry.mergeActivePolicies(activePlugins);
|
|
9
|
+
if (manifest.claude) {
|
|
10
|
+
manifest.claude.policies = mergePolicies([manifest.claude.policies ?? {}, pluginPolicies]);
|
|
11
|
+
}
|
|
12
|
+
if (manifest.codex) {
|
|
13
|
+
manifest.codex.policies = mergePolicies([manifest.codex.policies ?? {}, pluginPolicies]);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=inject.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inject.js","sourceRoot":"","sources":["../../src/plugins/inject.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,MAAM,UAAU,yBAAyB,CAAC,QAA0B,EAAE,GAAW;IAC/E,mGAAmG;IACnG,MAAM,aAAa,GAAG,eAAe,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IACjF,MAAM,WAAW,GAAG,QAAQ,CAAC,OAAO,IAAI,EAAE,CAAC;IAC3C,MAAM,aAAa,GAAG,CAAC,YAAY,EAAE,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,aAAa,EAAE,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;IAErF,MAAM,cAAc,GAAG,eAAe,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAC;IAE1E,IAAI,QAAQ,CAAC,MAAM,EAAE,CAAC;QACpB,QAAQ,CAAC,MAAM,CAAC,QAAQ,GAAG,aAAa,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,IAAI,EAAE,EAAE,cAAc,CAAC,CAAC,CAAC;IAC7F,CAAC;IACD,IAAI,QAAQ,CAAC,KAAK,EAAE,CAAC;QACnB,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,aAAa,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,QAAQ,IAAI,EAAE,EAAE,cAAc,CAAC,CAAC,CAAC;IAC3F,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PoliciesConfig } from '../manifest/types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Deep merges multiple policy objects together.
|
|
4
|
+
* Arrays are concatenated (and deduplicated for strings).
|
|
5
|
+
* Booleans are logically OR'd or AND'd depending on the context (usually OR for enabling flags).
|
|
6
|
+
*/
|
|
7
|
+
export declare function mergePolicies(policiesList: PoliciesConfig[]): PoliciesConfig;
|
|
8
|
+
//# sourceMappingURL=merge-policies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"merge-policies.d.ts","sourceRoot":"","sources":["../../src/plugins/merge-policies.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,YAAY,EAAE,cAAc,EAAE,GAAG,cAAc,CAoE5E"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Deep merges multiple policy objects together.
|
|
3
|
+
* Arrays are concatenated (and deduplicated for strings).
|
|
4
|
+
* Booleans are logically OR'd or AND'd depending on the context (usually OR for enabling flags).
|
|
5
|
+
*/
|
|
6
|
+
export function mergePolicies(policiesList) {
|
|
7
|
+
if (policiesList.length === 0) {
|
|
8
|
+
return {};
|
|
9
|
+
}
|
|
10
|
+
const merged = {};
|
|
11
|
+
for (const policy of policiesList) {
|
|
12
|
+
if (policy.sandbox) {
|
|
13
|
+
merged.sandbox = merged.sandbox ?? {};
|
|
14
|
+
merged.sandbox.enabled = merged.sandbox.enabled || policy.sandbox.enabled;
|
|
15
|
+
if (policy.sandbox.auto_allow_bash !== undefined) {
|
|
16
|
+
merged.sandbox.auto_allow_bash = merged.sandbox.auto_allow_bash || policy.sandbox.auto_allow_bash;
|
|
17
|
+
}
|
|
18
|
+
if (policy.sandbox.excluded_commands) {
|
|
19
|
+
merged.sandbox.excluded_commands = Array.from(new Set([...(merged.sandbox.excluded_commands || []), ...policy.sandbox.excluded_commands]));
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
if (policy.permissions?.rules) {
|
|
23
|
+
merged.permissions = merged.permissions ?? {};
|
|
24
|
+
merged.permissions.rules = merged.permissions.rules ?? {};
|
|
25
|
+
if (policy.permissions.rules.allow) {
|
|
26
|
+
merged.permissions.rules.allow = Array.from(new Set([...(merged.permissions.rules.allow || []), ...policy.permissions.rules.allow]));
|
|
27
|
+
}
|
|
28
|
+
if (policy.permissions.rules.ask) {
|
|
29
|
+
merged.permissions.rules.ask = Array.from(new Set([...(merged.permissions.rules.ask || []), ...policy.permissions.rules.ask]));
|
|
30
|
+
}
|
|
31
|
+
if (policy.permissions.rules.deny) {
|
|
32
|
+
merged.permissions.rules.deny = Array.from(new Set([...(merged.permissions.rules.deny || []), ...policy.permissions.rules.deny]));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
if (policy.hooks) {
|
|
36
|
+
merged.hooks = merged.hooks ?? {};
|
|
37
|
+
if (policy.hooks.pre_tool_use) {
|
|
38
|
+
merged.hooks.pre_tool_use = [...(merged.hooks.pre_tool_use || []), ...policy.hooks.pre_tool_use];
|
|
39
|
+
}
|
|
40
|
+
if (policy.hooks.post_tool_use) {
|
|
41
|
+
merged.hooks.post_tool_use = [...(merged.hooks.post_tool_use || []), ...policy.hooks.post_tool_use];
|
|
42
|
+
}
|
|
43
|
+
if (policy.hooks.notification) {
|
|
44
|
+
merged.hooks.notification = [...(merged.hooks.notification || []), ...policy.hooks.notification];
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
if (policy.network) {
|
|
48
|
+
merged.network = merged.network ?? {};
|
|
49
|
+
if (policy.network.allowed_domains) {
|
|
50
|
+
merged.network.allowed_domains = Array.from(new Set([...(merged.network.allowed_domains || []), ...policy.network.allowed_domains]));
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return merged;
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=merge-policies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"merge-policies.js","sourceRoot":"","sources":["../../src/plugins/merge-policies.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAAC,YAA8B;IAC1D,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC9B,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,MAAM,MAAM,GAAmB,EAAE,CAAC;IAElC,KAAK,MAAM,MAAM,IAAI,YAAY,EAAE,CAAC;QAClC,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;YACnB,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC;YACtC,MAAM,CAAC,OAAO,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,OAAO,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC;YAE1E,IAAI,MAAM,CAAC,OAAO,CAAC,eAAe,KAAK,SAAS,EAAE,CAAC;gBACjD,MAAM,CAAC,OAAO,CAAC,eAAe,GAAG,MAAM,CAAC,OAAO,CAAC,eAAe,IAAI,MAAM,CAAC,OAAO,CAAC,eAAe,CAAC;YACpG,CAAC;YAED,IAAI,MAAM,CAAC,OAAO,CAAC,iBAAiB,EAAE,CAAC;gBACpC,MAAM,CAAC,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AK,CAAC,IAAI,CACzC,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,eAAe,IAAI,EAAE,CAAC,EAAE,GAAG,MAAM,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CACxF,CAAC;YACJ,CAAC;QACJ,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { TeamCastPlugin } from './types.js';
|
|
2
|
+
import type { CanonicalTool } from '../tools/types.js';
|
|
3
|
+
import type { PoliciesConfig } from '../manifest/types.js';
|
|
4
|
+
export declare class PluginRegistry {
|
|
5
|
+
private plugins;
|
|
6
|
+
register(plugin: TeamCastPlugin): void;
|
|
7
|
+
getPlugins(): TeamCastPlugin[];
|
|
8
|
+
/**
|
|
9
|
+
* Filter plugins to those that return true for their detect() method in the given directory.
|
|
10
|
+
*/
|
|
11
|
+
getDetectedPlugins(cwd: string): TeamCastPlugin[];
|
|
12
|
+
getTools(): Record<string, CanonicalTool>;
|
|
13
|
+
getModels(): Record<string, any>;
|
|
14
|
+
getSkills(): Record<string, any>;
|
|
15
|
+
getPresets(): Record<string, any>;
|
|
16
|
+
/**
|
|
17
|
+
* Deep merges policies from multiple plugins
|
|
18
|
+
*/
|
|
19
|
+
mergeActivePolicies(activePluginNames: string[]): PoliciesConfig;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/plugins/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAG3D,qBAAa,cAAc;IACzB,OAAO,CAAC,OAAO,CAAwB;IAEhC,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,IAAI;IAOtC,UAAU,IAAI,cAAc,EAAE;IAIrC;;OAEG;IACI,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,EAAE;IAIjD,QAAQ,IAAI,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC;IAUzC,SAAS;IAUT,SAAS;IAUT,UAAU;IAUjB;;OAEG;IACI,mBAAmB,CAAC,iBAAiB,EAAE,MAAM,EAAE,GAAG,cAAc;CAIxE"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { mergePolicies } from './merge-policies.js';
|
|
2
|
+
export class PluginRegistry {
|
|
3
|
+
plugins = [];
|
|
4
|
+
register(plugin) {
|
|
5
|
+
if (this.plugins.some((p) => p.name === plugin.name)) {
|
|
6
|
+
throw new Error(`Plugin with name "${plugin.name}" is already registered`);
|
|
7
|
+
}
|
|
8
|
+
this.plugins.push(plugin);
|
|
9
|
+
}
|
|
10
|
+
getPlugins() {
|
|
11
|
+
return [...this.plugins];
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Filter plugins to those that return true for their detect() method in the given directory.
|
|
15
|
+
*/
|
|
16
|
+
getDetectedPlugins(cwd) {
|
|
17
|
+
return this.plugins.filter((p) => p.detect && p.detect(cwd));
|
|
18
|
+
}
|
|
19
|
+
getTools() {
|
|
20
|
+
const tools = {};
|
|
21
|
+
for (const plugin of this.plugins) {
|
|
22
|
+
if (plugin.tools) {
|
|
23
|
+
Object.assign(tools, plugin.tools);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
return tools;
|
|
27
|
+
}
|
|
28
|
+
getModels() {
|
|
29
|
+
const models = {};
|
|
30
|
+
for (const plugin of this.plugins) {
|
|
31
|
+
if (plugin.models) {
|
|
32
|
+
Object.assign(models, plugin.models);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return models;
|
|
36
|
+
}
|
|
37
|
+
getSkills() {
|
|
38
|
+
const skills = {};
|
|
39
|
+
for (const plugin of this.plugins) {
|
|
40
|
+
if (plugin.skills) {
|
|
41
|
+
Object.assign(skills, plugin.skills);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return skills;
|
|
45
|
+
}
|
|
46
|
+
getPresets() {
|
|
47
|
+
const presets = {};
|
|
48
|
+
for (const plugin of this.plugins) {
|
|
49
|
+
if (plugin.presets) {
|
|
50
|
+
Object.assign(presets, plugin.presets);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return presets;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Deep merges policies from multiple plugins
|
|
57
|
+
*/
|
|
58
|
+
mergeActivePolicies(activePluginNames) {
|
|
59
|
+
const activePlugins = this.plugins.filter((p) => activePluginNames.includes(p.name));
|
|
60
|
+
return mergePolicies(activePlugins.map((p) => p.policies).filter((p) => Boolean(p)));
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/plugins/registry.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,MAAM,OAAO,cAAc;IACjB,OAAO,GAAqB,EAAE,CAAC;IAEhC,QAAQ,CAAC,MAAsB;QACpC,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;YACrD,MAAM,IAAI,KAAK,CAAC,qBAAqB,MAAM,CAAC,IAAI,yBAAyB,CAAC,CAAC;QAC7E,CAAC;QACD,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC5B,CAAC;IAEM,UAAU;QACf,OAAO,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3B,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,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;YACzC,CAAC;QACH,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAED;;OAEG;IACI,mBAAmB,CAAC,iBAA2B;QACpD,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;QACrF,OAAO,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAuB,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5G,CAAC;CACF"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { CanonicalTool } from '../tools/types.js';
|
|
2
|
+
import type { PoliciesConfig } from '../manifest/types.js';
|
|
3
|
+
import type { Preset } from '../presets/types.js';
|
|
4
|
+
export interface WizardPrompt {
|
|
5
|
+
name: string;
|
|
6
|
+
type: 'confirm' | 'input' | 'select';
|
|
7
|
+
message: string;
|
|
8
|
+
choices?: string[];
|
|
9
|
+
initial?: string | boolean | number;
|
|
10
|
+
}
|
|
11
|
+
export interface ModelDefinition {
|
|
12
|
+
id: string;
|
|
13
|
+
displayName: string;
|
|
14
|
+
target?: string;
|
|
15
|
+
features: string[];
|
|
16
|
+
}
|
|
17
|
+
export interface SkillDefinition {
|
|
18
|
+
id: string;
|
|
19
|
+
description: string;
|
|
20
|
+
}
|
|
21
|
+
export interface TeamCastPlugin {
|
|
22
|
+
/**
|
|
23
|
+
* Unique identifier for the plugin (e.g., 'core-tools', 'python-env')
|
|
24
|
+
*/
|
|
25
|
+
name: string;
|
|
26
|
+
/**
|
|
27
|
+
* Semantic version of the plugin
|
|
28
|
+
*/
|
|
29
|
+
version: string;
|
|
30
|
+
/**
|
|
31
|
+
* Human-readable description of what this plugin provides
|
|
32
|
+
*/
|
|
33
|
+
description: string;
|
|
34
|
+
/**
|
|
35
|
+
* Optional auto-detection logic.
|
|
36
|
+
* If this returns true, the plugin is semi-automatically activated for the project context.
|
|
37
|
+
*/
|
|
38
|
+
detect?: (cwd: string) => boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Configuration for how this plugin interacts with the CLI wizard
|
|
41
|
+
*/
|
|
42
|
+
wizard?: {
|
|
43
|
+
suggest?: boolean;
|
|
44
|
+
prompts?: WizardPrompt[];
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Execution policies (e.g. bash permissions) injected into targets when active
|
|
48
|
+
*/
|
|
49
|
+
policies?: PoliciesConfig;
|
|
50
|
+
/**
|
|
51
|
+
* New canonical tools registered by this plugin
|
|
52
|
+
*/
|
|
53
|
+
tools?: Record<string, CanonicalTool>;
|
|
54
|
+
/**
|
|
55
|
+
* LLM Models registered by this plugin
|
|
56
|
+
*/
|
|
57
|
+
models?: Record<string, ModelDefinition>;
|
|
58
|
+
/**
|
|
59
|
+
* Role skills provided by this plugin
|
|
60
|
+
*/
|
|
61
|
+
skills?: Record<string, SkillDefinition>;
|
|
62
|
+
/**
|
|
63
|
+
* System Prompt fragments injected into agents
|
|
64
|
+
*/
|
|
65
|
+
instruction_fragments?: Record<string, string>;
|
|
66
|
+
/**
|
|
67
|
+
* Exported presets
|
|
68
|
+
*/
|
|
69
|
+
presets?: Record<string, Preset>;
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/plugins/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAgB,MAAM,sBAAsB,CAAC;AACzE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB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C;IAE/C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/plugins/types.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"policy-mapper.d.ts","sourceRoot":"","sources":["../../../src/renderers/claude/policy-mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"policy-mapper.d.ts","sourceRoot":"","sources":["../../../src/renderers/claude/policy-mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,UAAU,qBAAqB;IAC7B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,GAAG,EAAE,MAAM,EAAE,CAAC;IACd,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAUD,wBAAgB,8BAA8B,CAAC,QAAQ,EAAE,YAAY,GAAG,SAAS,GAAG,qBAAqB,CAexG"}
|
|
@@ -1,32 +1,13 @@
|
|
|
1
|
-
const CLAUDE_RULE_MAP = {
|
|
2
|
-
'project.commands': ['Bash(npm run *)'],
|
|
3
|
-
tests: ['Bash(npm test *)'],
|
|
4
|
-
'git.read': ['Bash(git status)', 'Bash(git diff *)'],
|
|
5
|
-
'git.write': ['Bash(git add *)', 'Bash(git commit *)'],
|
|
6
|
-
'package.exec': ['Bash(npx *)'],
|
|
7
|
-
'security.audit': ['Bash(npm audit)'],
|
|
8
|
-
'git.push': ['Bash(git push *)'],
|
|
9
|
-
'destructive-shell': ['Bash(rm -rf *)', 'Bash(git push --force *)'],
|
|
10
|
-
downloads: ['Bash(curl *)', 'Bash(wget *)'],
|
|
11
|
-
'dynamic-exec': ['Bash(eval *)', 'Bash(exec *)'],
|
|
12
|
-
'env.write': ['Write(.env*)', 'Edit(.env*)'],
|
|
13
|
-
};
|
|
14
1
|
function dedupe(values) {
|
|
15
2
|
return [...new Set(values)];
|
|
16
3
|
}
|
|
17
4
|
function domainToPermissionRule(domain) {
|
|
18
5
|
return `WebFetch(${domain}:*)`;
|
|
19
6
|
}
|
|
20
|
-
function expandPermissions(permissions, bucket) {
|
|
21
|
-
const abstractRules = permissions?.[bucket] ?? [];
|
|
22
|
-
const mapped = abstractRules.flatMap((permission) => CLAUDE_RULE_MAP[permission] ?? []);
|
|
23
|
-
const raw = permissions?.rawRules?.[bucket] ?? [];
|
|
24
|
-
return dedupe([...mapped, ...raw]);
|
|
25
|
-
}
|
|
26
7
|
export function mapPoliciesToClaudePermissions(policies) {
|
|
27
|
-
const allow =
|
|
28
|
-
const ask =
|
|
29
|
-
const deny =
|
|
8
|
+
const allow = [...(policies?.permissions?.rules?.allow ?? [])];
|
|
9
|
+
const ask = [...(policies?.permissions?.rules?.ask ?? [])];
|
|
10
|
+
const deny = [...(policies?.permissions?.rules?.deny ?? [])];
|
|
30
11
|
if (policies?.network?.allowedDomains) {
|
|
31
12
|
allow.push(...policies.network.allowedDomains.map(domainToPermissionRule));
|
|
32
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"policy-mapper.js","sourceRoot":"","sources":["../../../src/renderers/claude/policy-mapper.ts"],"names":[],"mappings":"AASA,
|
|
1
|
+
{"version":3,"file":"policy-mapper.js","sourceRoot":"","sources":["../../../src/renderers/claude/policy-mapper.ts"],"names":[],"mappings":"AASA,SAAS,MAAM,CAAC,MAAgB;IAC9B,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;AAC9B,CAAC;AAED,SAAS,sBAAsB,CAAC,MAAc;IAC5C,OAAO,YAAY,MAAM,KAAK,CAAC;AACjC,CAAC;AAED,MAAM,UAAU,8BAA8B,CAAC,QAAkC;IAC/E,MAAM,KAAK,GAAG,CAAC,GAAG,CAAC,QAAQ,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,CAAC;IAC/D,MAAM,GAAG,GAAG,CAAC,GAAG,CAAC,QAAQ,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,CAAC,CAAC,CAAC;IAC3D,MAAM,IAAI,GAAG,CAAC,GAAG,CAAC,QAAQ,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC;IAE7D,IAAI,QAAQ,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC;QACtC,KAAK,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC,CAAC;IAC7E,CAAC;IAED,OAAO;QACL,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC;QACpB,GAAG,EAAE,MAAM,CAAC,GAAG,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC;QAClB,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW;KAChD,CAAC;AACJ,CAAC"}
|