@art-work/cli 0.1.0 → 0.1.1

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 CHANGED
@@ -1,4 +1,4 @@
1
- # @art-domains/workspace-cli
1
+ # @art-work/cli
2
2
 
3
3
  **Purpose:** Operate and monitor multi-repository development environments.
4
4
 
@@ -17,7 +17,7 @@
17
17
  ## Installation
18
18
 
19
19
  ```bash
20
- npm install -g @art-domains/workspace-cli
20
+ npm install -g @art-work/cli
21
21
  ```
22
22
 
23
23
  ## Usage
@@ -1,4 +1,4 @@
1
1
  export { defineConfig } from './defineConfig';
2
2
  export { loadWorkspaceConfig } from './loadWorkspaceConfig';
3
- export type { WorkspaceConfig, WorkspaceRecordsPath } from './types';
3
+ export type { WorkspaceConfig } from './types';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { WorkspaceRecordsPath } from '..';
1
+ import { FSRecordsPath } from '@art-lib/fs-records';
2
2
  import { PartialWorkspaceConfig } from '../types';
3
- export declare function normalizeRecordPaths(records: PartialWorkspaceConfig['records']): WorkspaceRecordsPath[];
3
+ export declare function normalizeRecordPaths(records: PartialWorkspaceConfig['records']): FSRecordsPath[];
4
4
  //# sourceMappingURL=normalizeRecordPaths.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"normalizeRecordPaths.d.ts","sourceRoot":"","sources":["../../../src/config/private/normalizeRecordPaths.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,IAAI,CAAC;AAC/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAUlD,wBAAgB,oBAAoB,CACnC,OAAO,EAAE,sBAAsB,CAAC,SAAS,CAAC,GACxC,oBAAoB,EAAE,CAsBxB"}
1
+ {"version":3,"file":"normalizeRecordPaths.d.ts","sourceRoot":"","sources":["../../../src/config/private/normalizeRecordPaths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAUlD,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,sBAAsB,CAAC,SAAS,CAAC,GAAG,aAAa,EAAE,CAsBhG"}
@@ -1,10 +1,4 @@
1
- export interface WorkspaceRecordsPath {
2
- base: string;
3
- pattern: string | string[];
4
- ignored: string[];
5
- excluded: string[];
6
- gitignore: boolean;
7
- }
1
+ import { FSRecordsPath } from '@art-lib/fs-records';
8
2
  export interface WorkspaceConfig {
9
3
  root: {
10
4
  path: string;
@@ -17,15 +11,15 @@ export interface WorkspaceConfig {
17
11
  template: string;
18
12
  };
19
13
  records: {
20
- paths: WorkspaceRecordsPath[];
14
+ paths: FSRecordsPath[];
21
15
  };
22
16
  }
23
17
  export interface PartialWorkspaceConfig {
24
18
  root?: Partial<WorkspaceConfig['root']>;
25
19
  clone?: Partial<WorkspaceConfig['clone']>;
26
20
  checkouts?: Partial<WorkspaceConfig['checkouts']>;
27
- records?: Partial<WorkspaceRecordsPath> & {
28
- paths?: Partial<WorkspaceRecordsPath>[];
21
+ records?: Partial<FSRecordsPath> & {
22
+ paths?: Partial<FSRecordsPath>[];
29
23
  };
30
24
  }
31
25
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/config/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC3B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,eAAe;IAC/B,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACvB,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACxB,SAAS,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9C,OAAO,EAAE;QAAE,KAAK,EAAE,oBAAoB,EAAE,CAAA;KAAE,CAAC;CAC3C;AAED,MAAM,WAAW,sBAAsB;IACtC,IAAI,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC;IACxC,KAAK,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC;IAC1C,SAAS,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC,CAAC;IAClD,OAAO,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,GAAG;QAAE,KAAK,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,EAAE,CAAA;KAAE,CAAC;CACtF"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/config/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,MAAM,WAAW,eAAe;IAC/B,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACvB,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACxB,SAAS,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9C,OAAO,EAAE;QAAE,KAAK,EAAE,aAAa,EAAE,CAAA;KAAE,CAAC;CACpC;AAED,MAAM,WAAW,sBAAsB;IACtC,IAAI,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC;IACxC,KAAK,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC;IAC1C,SAAS,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC,CAAC;IAClD,OAAO,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG;QAAE,KAAK,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,EAAE,CAAA;KAAE,CAAC;CACxE"}
package/dist/index.js CHANGED
@@ -247,10 +247,10 @@ function presentOperationsReport(log) {
247
247
  }
248
248
 
249
249
  // src/private/resources/checkout/loadCheckoutRecords.ts
250
- import { findRecordFiles } from "@art-cli/lib-records";
250
+ import { findRecordFiles } from "@art-lib/fs-records";
251
251
 
252
252
  // src/private/resources/checkout/readCheckoutRecord.ts
253
- import { readRecordFileContent } from "@art-cli/lib-records";
253
+ import { readRecordFileContent } from "@art-lib/fs-records";
254
254
  async function readCheckoutRecord(file) {
255
255
  const fileWithContents = file.content ? file : await readRecordFileContent(file);
256
256
  if (!fileWithContents.content) {
@@ -311,10 +311,10 @@ async function loadCheckoutRecords(ctx, repos) {
311
311
  }
312
312
 
313
313
  // src/private/resources/repository/loadRepositoryRecords.ts
314
- import { findRecordFiles as findRecordFiles2 } from "@art-cli/lib-records";
314
+ import { findRecordFiles as findRecordFiles2 } from "@art-lib/fs-records";
315
315
 
316
316
  // src/private/resources/repository/readRepositoryRecord.ts
317
- import { readRecordFileContent as readRecordFileContent2 } from "@art-cli/lib-records";
317
+ import { readRecordFileContent as readRecordFileContent2 } from "@art-lib/fs-records";
318
318
  async function readRepositoryRecord(file) {
319
319
  const fileWithContents = file.content ? file : await readRecordFileContent2(file);
320
320
  if (!fileWithContents.content) {
@@ -1351,10 +1351,10 @@ function getRepositoryCheckoutPackages(checkoutPath, graph) {
1351
1351
  }
1352
1352
 
1353
1353
  // src/private/resources/namespace/loadNamespaceRecords.ts
1354
- import { findRecordFiles as findRecordFiles3 } from "@art-cli/lib-records";
1354
+ import { findRecordFiles as findRecordFiles3 } from "@art-lib/fs-records";
1355
1355
 
1356
1356
  // src/private/resources/namespace/readNamespaceRecord.ts
1357
- import { readRecordFileContent as readRecordFileContent3 } from "@art-cli/lib-records";
1357
+ import { readRecordFileContent as readRecordFileContent3 } from "@art-lib/fs-records";
1358
1358
  async function readNamespaceRecord(file) {
1359
1359
  const fileWithContents = file.content ? file : await readRecordFileContent3(file);
1360
1360
  if (!fileWithContents.content) {
@@ -1388,10 +1388,10 @@ async function loadNamespaceRecords(config, checkoutPath) {
1388
1388
  }
1389
1389
 
1390
1390
  // src/private/resources/package/loadPackageRecords.ts
1391
- import { findRecordFiles as findRecordFiles4 } from "@art-cli/lib-records";
1391
+ import { findRecordFiles as findRecordFiles4 } from "@art-lib/fs-records";
1392
1392
 
1393
1393
  // src/private/resources/package/readPackageRecord.ts
1394
- import { readRecordFileContent as readRecordFileContent4 } from "@art-cli/lib-records";
1394
+ import { readRecordFileContent as readRecordFileContent4 } from "@art-lib/fs-records";
1395
1395
  async function readPackageRecord(file) {
1396
1396
  const fileWithContents = file.content ? file : await readRecordFileContent4(file);
1397
1397
  if (!fileWithContents.content) {
@@ -1421,10 +1421,10 @@ async function loadPackageRecords(config, checkoutPath) {
1421
1421
  }
1422
1422
 
1423
1423
  // src/private/resources/project/loadProjectRecords.ts
1424
- import { findRecordFiles as findRecordFiles5 } from "@art-cli/lib-records";
1424
+ import { findRecordFiles as findRecordFiles5 } from "@art-lib/fs-records";
1425
1425
 
1426
1426
  // src/private/resources/project/readProjectRecord.ts
1427
- import { readRecordFileContent as readRecordFileContent5 } from "@art-cli/lib-records";
1427
+ import { readRecordFileContent as readRecordFileContent5 } from "@art-lib/fs-records";
1428
1428
  async function readProjectRecord(file) {
1429
1429
  const fileWithContents = file.content ? file : await readRecordFileContent5(file);
1430
1430
  if (!fileWithContents.content) {
@@ -1,4 +1,4 @@
1
- import { type RecordFile } from '@art-cli/lib-records';
1
+ import { type FSRecordFile } from '@art-lib/fs-records';
2
2
  import type { CheckoutRecord } from '../types';
3
- export declare function readCheckoutRecord(file: RecordFile): Promise<CheckoutRecord | null>;
3
+ export declare function readCheckoutRecord(file: FSRecordFile): Promise<CheckoutRecord | null>;
4
4
  //# sourceMappingURL=readCheckoutRecord.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"readCheckoutRecord.d.ts","sourceRoot":"","sources":["../../../../src/private/resources/checkout/readCheckoutRecord.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAyB,MAAM,sBAAsB,CAAC;AAE9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CA8BzF"}
1
+ {"version":3,"file":"readCheckoutRecord.d.ts","sourceRoot":"","sources":["../../../../src/private/resources/checkout/readCheckoutRecord.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAyB,MAAM,qBAAqB,CAAC;AAE/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CA8B3F"}
@@ -1,4 +1,4 @@
1
- import { type RecordFile } from '@art-cli/lib-records';
1
+ import { type FSRecordFile } from '@art-lib/fs-records';
2
2
  import type { NamespaceRecord } from '../types';
3
- export declare function readNamespaceRecord(file: RecordFile): Promise<NamespaceRecord | null>;
3
+ export declare function readNamespaceRecord(file: FSRecordFile): Promise<NamespaceRecord | null>;
4
4
  //# sourceMappingURL=readNamespaceRecord.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"readNamespaceRecord.d.ts","sourceRoot":"","sources":["../../../../src/private/resources/namespace/readNamespaceRecord.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAyB,MAAM,sBAAsB,CAAC;AAE9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC,CA+B3F"}
1
+ {"version":3,"file":"readNamespaceRecord.d.ts","sourceRoot":"","sources":["../../../../src/private/resources/namespace/readNamespaceRecord.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAyB,MAAM,qBAAqB,CAAC;AAE/E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC,CA+B7F"}
@@ -1,4 +1,4 @@
1
- import { type RecordFile } from '@art-cli/lib-records';
1
+ import { type FSRecordFile } from '@art-lib/fs-records';
2
2
  import type { PackageRecord } from '../types';
3
- export declare function readPackageRecord(file: RecordFile): Promise<PackageRecord | null>;
3
+ export declare function readPackageRecord(file: FSRecordFile): Promise<PackageRecord | null>;
4
4
  //# sourceMappingURL=readPackageRecord.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"readPackageRecord.d.ts","sourceRoot":"","sources":["../../../../src/private/resources/package/readPackageRecord.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAyB,MAAM,sBAAsB,CAAC;AAE9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAuBvF"}
1
+ {"version":3,"file":"readPackageRecord.d.ts","sourceRoot":"","sources":["../../../../src/private/resources/package/readPackageRecord.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAyB,MAAM,qBAAqB,CAAC;AAE/E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAuBzF"}
@@ -1,4 +1,4 @@
1
- import { type RecordFile } from '@art-cli/lib-records';
1
+ import { type FSRecordFile } from '@art-lib/fs-records';
2
2
  import type { ProjectRecord } from '../types';
3
- export declare function readProjectRecord(file: RecordFile): Promise<ProjectRecord | null>;
3
+ export declare function readProjectRecord(file: FSRecordFile): Promise<ProjectRecord | null>;
4
4
  //# sourceMappingURL=readProjectRecord.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"readProjectRecord.d.ts","sourceRoot":"","sources":["../../../../src/private/resources/project/readProjectRecord.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAyB,MAAM,sBAAsB,CAAC;AAE9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CA+BvF"}
1
+ {"version":3,"file":"readProjectRecord.d.ts","sourceRoot":"","sources":["../../../../src/private/resources/project/readProjectRecord.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAyB,MAAM,qBAAqB,CAAC;AAE/E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CA+BzF"}
@@ -1,4 +1,4 @@
1
- import { type RecordFile } from '@art-cli/lib-records';
1
+ import { type FSRecordFile } from '@art-lib/fs-records';
2
2
  import type { RepositoryRecord } from '../types';
3
- export declare function readRepositoryRecord(file: RecordFile): Promise<RepositoryRecord | null>;
3
+ export declare function readRepositoryRecord(file: FSRecordFile): Promise<RepositoryRecord | null>;
4
4
  //# sourceMappingURL=readRepositoryRecord.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"readRepositoryRecord.d.ts","sourceRoot":"","sources":["../../../../src/private/resources/repository/readRepositoryRecord.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAyB,MAAM,sBAAsB,CAAC;AAE9E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC,CA6B7F"}
1
+ {"version":3,"file":"readRepositoryRecord.d.ts","sourceRoot":"","sources":["../../../../src/private/resources/repository/readRepositoryRecord.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAyB,MAAM,qBAAqB,CAAC;AAE/E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC,CA6B/F"}
@@ -1,3 +1,3 @@
1
- import type { RecordFile } from '@art-cli/lib-records';
2
- export declare function createRecordFile(searchPath: string, filename: string): RecordFile;
1
+ import type { FSRecordFile } from '@art-lib/fs-records';
2
+ export declare function createRecordFile(searchPath: string, filename: string): FSRecordFile;
3
3
  //# sourceMappingURL=createRecordFile.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createRecordFile.d.ts","sourceRoot":"","sources":["../../../../src/test/helpers/records/createRecordFile.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,UAAU,CASjF"}
1
+ {"version":3,"file":"createRecordFile.d.ts","sourceRoot":"","sources":["../../../../src/test/helpers/records/createRecordFile.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,YAAY,CASnF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@art-work/cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "CLI for discovering projects, inspecting and synchronizing checkouts, linking resources, and executing commands across them.",
5
5
  "author": "Noodlestan Collective",
6
6
  "license": "MIT",
@@ -43,7 +43,7 @@
43
43
  "ci": "npm run lint && npm run build && npm run test"
44
44
  },
45
45
  "dependencies": {
46
- "@art-cli/lib-records": "^0.0.1",
46
+ "@art-lib/fs-records": "^0.0.1",
47
47
  "commander": "^12.0.0",
48
48
  "esbuild": "^0.28.0",
49
49
  "simple-git": "^3.24.0"