@ankhorage/devtools 1.10.8 → 1.10.9
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.
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/***
|
|
2
2
|
* Build shared Knip configuration while preserving repository-specific discovery.
|
|
3
3
|
*
|
|
4
|
-
* `createKnipConfig` keeps Knip zero-config discovery
|
|
5
|
-
* Devtools-managed skills. Repositories can add narrow entries, project globs, ignored files,
|
|
4
|
+
* `createKnipConfig` keeps Knip zero-config discovery. Repositories can add narrow entries, project globs, ignored files,
|
|
6
5
|
* binaries, dependencies, and workspace overrides without duplicating the shared Knip version.
|
|
7
6
|
*
|
|
8
7
|
* `createKnipMonorepoConfig` adds a root workspace plus conventional `packages/*` and `apps/*`
|
|
@@ -29,7 +28,7 @@ export interface DevtoolsKnipMonorepoConfigOptions {
|
|
|
29
28
|
readonly workspaceGlobs?: string[];
|
|
30
29
|
readonly workspaces?: Record<string, DevtoolsKnipWorkspaceConfigOptions>;
|
|
31
30
|
}
|
|
32
|
-
/*** Build shared Knip configuration
|
|
31
|
+
/*** Build shared Knip configuration while preserving repository-specific discovery. */
|
|
33
32
|
export declare function createKnipConfig(options?: DevtoolsKnipConfigOptions): KnipConfig;
|
|
34
|
-
/*** Build shared monorepo Knip configuration
|
|
33
|
+
/*** Build shared monorepo Knip configuration. */
|
|
35
34
|
export declare function createKnipMonorepoConfig(options?: DevtoolsKnipMonorepoConfigOptions): KnipConfig;
|
package/dist/tools/knip/index.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { MANAGED_SKILL_EXECUTABLE_GLOB } from '../skills/manifest.js';
|
|
2
1
|
const DEFAULT_MONOREPO_WORKSPACE_GLOBS = ['packages/*', 'apps/*'];
|
|
3
|
-
/*** Build shared Knip configuration
|
|
2
|
+
/*** Build shared Knip configuration while preserving repository-specific discovery. */
|
|
4
3
|
export function createKnipConfig(options = {}) {
|
|
5
|
-
const ignoreFiles = [...new Set([MANAGED_SKILL_EXECUTABLE_GLOB, ...(options.ignoreFiles ?? [])])];
|
|
6
4
|
return {
|
|
7
5
|
...(options.entry === undefined ? {} : { entry: options.entry }),
|
|
8
6
|
...(options.project === undefined ? {} : { project: options.project }),
|
|
@@ -11,11 +9,11 @@ export function createKnipConfig(options = {}) {
|
|
|
11
9
|
...(options.ignoreDependencies === undefined
|
|
12
10
|
? {}
|
|
13
11
|
: { ignoreDependencies: options.ignoreDependencies }),
|
|
14
|
-
ignoreFiles,
|
|
12
|
+
...(options.ignoreFiles === undefined ? {} : { ignoreFiles: options.ignoreFiles }),
|
|
15
13
|
...(options.workspaces === undefined ? {} : { workspaces: options.workspaces }),
|
|
16
14
|
};
|
|
17
15
|
}
|
|
18
|
-
/*** Build shared monorepo Knip configuration
|
|
16
|
+
/*** Build shared monorepo Knip configuration. */
|
|
19
17
|
export function createKnipMonorepoConfig(options = {}) {
|
|
20
18
|
const explicitWorkspaces = options.workspaces ?? {};
|
|
21
19
|
const workspaceGlobs = options.workspaceGlobs ?? [...DEFAULT_MONOREPO_WORKSPACE_GLOBS];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export declare const MANIFEST_PATH = ".agents/.devtools-manifest.json";
|
|
2
2
|
export declare const SKILLS_ROOT = ".agents/skills";
|
|
3
|
-
export declare const MANAGED_SKILL_EXECUTABLE_GLOB = ".agents/skills/**/scripts/**";
|
|
4
3
|
interface ManagedSkillManifestEntry {
|
|
5
4
|
readonly files: Readonly<Record<string, string>>;
|
|
6
5
|
}
|
|
@@ -3,7 +3,6 @@ import { readFile } from 'node:fs/promises';
|
|
|
3
3
|
import { posix, relative, resolve } from 'node:path';
|
|
4
4
|
export const MANIFEST_PATH = '.agents/.devtools-manifest.json';
|
|
5
5
|
export const SKILLS_ROOT = '.agents/skills';
|
|
6
|
-
export const MANAGED_SKILL_EXECUTABLE_GLOB = `${SKILLS_ROOT}/**/scripts/**`;
|
|
7
6
|
const MANIFEST_SCHEMA_VERSION = 1;
|
|
8
7
|
export function createManifestContents(contentsByPath, devtoolsVersion, skillNames) {
|
|
9
8
|
const skills = Object.fromEntries(skillNames.map((skillName) => {
|
package/package.json
CHANGED