@slats/claude-assets-sync 0.1.3 → 0.1.4

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,4 +1,4 @@
1
- export * from './function';
2
- export * from './object';
3
- export * from './utility';
4
- export * from './unit';
1
+ export * from './function.js';
2
+ export * from './object.js';
3
+ export * from './utility.js';
4
+ export * from './unit.js';
@@ -1,15 +1,15 @@
1
1
  /**
2
2
  * Command registry and exports
3
3
  */
4
- export * from './types';
5
- export { runSyncCommand } from './sync';
6
- export { runListCommand, registerListCommand } from './list';
7
- export { runRemoveCommand } from './remove';
8
- export { runStatusCommand } from './status';
9
- export { runMigrateCommand } from './migrate';
10
- export { runAddCommand } from './add';
11
- export { runUpdateCommand } from './update';
12
- export type { UpdateCommandOptions } from './update';
4
+ export * from './types.js';
5
+ export { runSyncCommand } from './sync.js';
6
+ export { runListCommand, registerListCommand } from './list.js';
7
+ export { runRemoveCommand } from './remove.js';
8
+ export { runStatusCommand } from './status.js';
9
+ export { runMigrateCommand } from './migrate.js';
10
+ export { runAddCommand } from './add.js';
11
+ export { runUpdateCommand } from './update.js';
12
+ export type { UpdateCommandOptions } from './update.js';
13
13
  /**
14
14
  * Command metadata for CLI help and documentation
15
15
  */
@@ -1,4 +1,4 @@
1
- import type { MigrateCommandOptions } from './types';
1
+ import type { MigrateCommandOptions } from './types.js';
2
2
  /**
3
3
  * Run the migrate command
4
4
  * @param options - Migration options
@@ -1,4 +1,4 @@
1
- import type { RemoveCommandOptions } from './types';
1
+ import type { RemoveCommandOptions } from './types.js';
2
2
  /**
3
3
  * Run the remove command
4
4
  * @param options - Remove command options
@@ -1,4 +1,4 @@
1
- import type { StatusCommandOptions } from './types';
1
+ import type { StatusCommandOptions } from './types.js';
2
2
  /**
3
3
  * Run the status command
4
4
  * @param options - Status command options
@@ -1,4 +1,4 @@
1
- import type { SyncCommandOptions } from './types';
1
+ import type { SyncCommandOptions } from './types.js';
2
2
  /**
3
3
  * Run the sync command
4
4
  * @param options - Sync command options
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Common types for command modules
3
3
  */
4
- import type { SkillUnit } from '../utils/types';
4
+ import type { SkillUnit } from '../utils/types.js';
5
5
  /**
6
6
  * Base command result
7
7
  */
@@ -1,4 +1,4 @@
1
- import type { UnifiedSyncMeta } from '../utils/types';
1
+ import type { UnifiedSyncMeta } from '../utils/types.js';
2
2
  export interface UpdateCommandOptions {
3
3
  package?: string;
4
4
  local?: boolean;
@@ -1,6 +1,6 @@
1
- export { StatusDisplay } from './StatusDisplay';
2
- export { PackageStatusCard } from './PackageStatusCard';
3
- export { StatusTreeNode } from './StatusTreeNode';
4
- export type { StatusDisplayProps, PackageStatusItem } from './StatusDisplay';
5
- export type { PackageStatusCardProps } from './PackageStatusCard';
6
- export type { StatusTreeNodeProps } from './StatusTreeNode';
1
+ export { StatusDisplay } from './StatusDisplay.js';
2
+ export { PackageStatusCard } from './PackageStatusCard.js';
3
+ export { StatusTreeNode } from './StatusTreeNode.js';
4
+ export type { StatusDisplayProps, PackageStatusItem } from './StatusDisplay.js';
5
+ export type { PackageStatusCardProps } from './PackageStatusCard.js';
6
+ export type { StatusTreeNodeProps } from './StatusTreeNode.js';
@@ -1,5 +1,5 @@
1
1
  import type { AssetStructure, AssetsConfig } from '../utils/types.js';
2
- import { DEFAULT_ASSET_TYPES } from './constants';
2
+ import { DEFAULT_ASSET_TYPES } from './constants.js';
3
3
  export { DEFAULT_ASSET_TYPES };
4
4
  /**
5
5
  * Default structure configuration for built-in asset types
@@ -26,7 +26,7 @@ export declare const META_FILES: {
26
26
  * Schema versions for metadata files
27
27
  */
28
28
  export declare const SCHEMA_VERSIONS: {
29
- readonly UNIFIED_SYNC_META: "0.1.3";
29
+ readonly UNIFIED_SYNC_META: "0.1.4";
30
30
  readonly LEGACY_SYNC_META: "1.0.0";
31
31
  readonly SKILL_UNIT_FORMAT: "2";
32
32
  };
@@ -43,16 +43,16 @@ export declare const DEFAULT_ASSET_TYPES: readonly ["commands", "skills", "agent
43
43
  /**
44
44
  * Default structure configuration for built-in asset types
45
45
  *
46
- * @deprecated Import from './assetStructure' instead to avoid circular dependency.
46
+ * @deprecated Import from './assetStructure.js' instead to avoid circular dependency.
47
47
  * This re-export will be removed in version 1.0.0
48
48
  *
49
49
  * @example
50
50
  * ```typescript
51
51
  * // ❌ Old (causes circular dependency)
52
- * import { DEFAULT_ASSET_STRUCTURES } from './constants';
52
+ * import { DEFAULT_ASSET_STRUCTURES } from './constants.js';
53
53
  *
54
54
  * // ✅ New (recommended)
55
- * import { DEFAULT_ASSET_STRUCTURES } from './assetStructure';
55
+ * import { DEFAULT_ASSET_STRUCTURES } from './assetStructure.js';
56
56
  * ```
57
57
  */
58
58
  /**
@@ -1,5 +1,5 @@
1
1
  import type { AssetType, SyncMeta, UnifiedSyncMeta } from '../utils/types.js';
2
- import { ensureDirectory, writeTextFile } from './io';
2
+ import { ensureDirectory, writeTextFile } from './io.js';
3
3
  /**
4
4
  * Ensure directory exists (creates recursively if needed)
5
5
  * @param dirPath - Directory path
@@ -1,4 +1,4 @@
1
- import type { CliOptions, SyncResult } from '../utils/types';
1
+ import type { CliOptions, SyncResult } from '../utils/types.js';
2
2
  /**
3
3
  * Sync Claude assets for a single package
4
4
  * @param packageName - Package name to sync
@@ -2,7 +2,7 @@ import type { PackageSyncInfo, SkillUnit, UnifiedSyncMeta } from '../utils/types
2
2
  /**
3
3
  * Schema version for the unified metadata format
4
4
  */
5
- export declare const SCHEMA_VERSION: "0.1.3";
5
+ export declare const SCHEMA_VERSION: "0.1.4";
6
6
  /**
7
7
  * Read unified sync metadata from .claude/.sync-meta.json
8
8
  *
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export { syncPackage, syncPackages } from './core/sync';
1
+ export { syncPackage, syncPackages } from './core/sync.js';
2
2
  export { createProgram, run } from './core/cli.js';
3
- export { migrateToFlat, needsMigration } from './core/migration';
4
- export type { MigrationResult } from './core/migration';
5
- export type { AssetType, CliOptions, ClaudeConfig, GitHubRepoInfo, PackageInfo, SyncMeta, SyncResult, UnifiedSyncMeta, PackageSyncInfo, FileMapping, } from './utils/types';
3
+ export { migrateToFlat, needsMigration } from './core/migration.js';
4
+ export type { MigrationResult } from './core/migration.js';
5
+ export type { AssetType, CliOptions, ClaudeConfig, GitHubRepoInfo, PackageInfo, SyncMeta, SyncResult, UnifiedSyncMeta, PackageSyncInfo, FileMapping, } from './utils/types.js';
@@ -1,5 +1,5 @@
1
- import type { ClaudeConfig, GitHubRepoInfo, PackageInfo, WorkspaceInfo } from './types';
2
- export { getAssetStructure } from '../core/assetStructure';
1
+ import type { ClaudeConfig, GitHubRepoInfo, PackageInfo, WorkspaceInfo } from './types.js';
2
+ export { getAssetStructure } from '../core/assetStructure.js';
3
3
  /**
4
4
  * Resolve package path in node_modules by walking up the directory tree.
5
5
  * Mimics Node.js module resolution: checks cwd/node_modules, then ../node_modules, etc.
@@ -1,4 +1,4 @@
1
- import type { AssetType } from './types';
1
+ import type { AssetType } from './types.js';
2
2
  /**
3
3
  * Get the destination directory for synced assets (nested structure)
4
4
  * @param cwd - Current working directory
@@ -249,4 +249,4 @@ export interface TreeNode {
249
249
  *
250
250
  * @see ../core/assetStructure for the actual implementations
251
251
  */
252
- export { DEFAULT_ASSET_TYPES, DEFAULT_ASSET_STRUCTURES, getAssetStructure, detectStructureType, validateAssetStructure, normalizeAssetStructure, } from '../core/assetStructure';
252
+ export { DEFAULT_ASSET_TYPES, DEFAULT_ASSET_STRUCTURES, getAssetStructure, detectStructureType, validateAssetStructure, normalizeAssetStructure, } from '../core/assetStructure.js';
package/dist/version.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use strict';
2
2
 
3
- const VERSION = '0.1.3';
3
+ const VERSION = '0.1.4';
4
4
 
5
5
  exports.VERSION = VERSION;
package/dist/version.d.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  * Current package version from package.json
3
3
  * Automatically synchronized during build process
4
4
  */
5
- export declare const VERSION = "0.1.3";
5
+ export declare const VERSION = "0.1.4";
package/dist/version.mjs CHANGED
@@ -1,3 +1,3 @@
1
- const VERSION = '0.1.3';
1
+ const VERSION = '0.1.4';
2
2
 
3
3
  export { VERSION };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slats/claude-assets-sync",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "CLI tool to sync Claude commands and skills from npm packages to your project's .claude directory",
5
5
  "keywords": [
6
6
  "claude",
@@ -42,7 +42,7 @@
42
42
  "scripts": {
43
43
  "build": "node scripts/inject-version.js && rollup -c && yarn build:types",
44
44
  "build:publish:npm": "yarn build && yarn publish:npm",
45
- "build:types": "tsc -p ./tsconfig.declarations.json && tsc-alias -p ./tsconfig.declarations.json",
45
+ "build:types": "node ../../aileron/script/build/buildTypes.mjs",
46
46
  "dev": "node scripts/inject-version.js && tsx src/cli.ts",
47
47
  "format": "prettier --write \"src/**/*.ts\"",
48
48
  "lint": "eslint \"src/**/*.ts\"",
@@ -53,7 +53,7 @@
53
53
  "version:patch": "yarn version patch"
54
54
  },
55
55
  "dependencies": {
56
- "@winglet/react-utils": "^0.11.0",
56
+ "@winglet/react-utils": "^0.11.2",
57
57
  "commander": "^12.1.0",
58
58
  "ink": "^6.6.0",
59
59
  "ink-select-input": "^6.2.0",