@a16njs/models 0.1.0 → 0.3.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/README.md CHANGED
@@ -25,12 +25,13 @@ import {
25
25
 
26
26
  ### Types
27
27
 
28
- - `CustomizationType` - Enum of customization types (GlobalPrompt, AgentSkill, FileRule, AgentIgnore)
28
+ - `CustomizationType` - Enum of customization types (GlobalPrompt, AgentSkill, FileRule, AgentIgnore, ManualPrompt)
29
29
  - `AgentCustomization` - Base interface for all customizations
30
30
  - `GlobalPrompt` - Always-applied prompts
31
- - `AgentSkill` - Context-triggered by description (Phase 2)
32
- - `FileRule` - Triggered by file patterns (Phase 2)
33
- - `AgentIgnore` - Ignore patterns (Phase 3)
31
+ - `AgentSkill` - Context-triggered by description
32
+ - `FileRule` - Triggered by file patterns
33
+ - `AgentIgnore` - Ignore patterns
34
+ - `ManualPrompt` - User-invoked prompts (e.g., `/command`), stored in `.cursor/skills/` or `.claude/skills/` with `disable-model-invocation: true`
34
35
 
35
36
  ### Plugin Interface
36
37
 
@@ -50,4 +51,5 @@ import {
50
51
  - `isAgentSkill(item)` - Type guard for AgentSkill
51
52
  - `isFileRule(item)` - Type guard for FileRule
52
53
  - `isAgentIgnore(item)` - Type guard for AgentIgnore
54
+ - `isManualPrompt(item)` - Type guard for ManualPrompt
53
55
  - `createId(type, sourcePath)` - Create unique ID
package/dist/helpers.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { type AgentCustomization, type GlobalPrompt, type AgentSkill, type FileRule, type AgentIgnore, type AgentCommand, CustomizationType } from './types.js';
1
+ import { type AgentCustomization, type GlobalPrompt, type AgentSkill, type FileRule, type AgentIgnore, type ManualPrompt, CustomizationType } from './types.js';
2
2
  /**
3
3
  * Type guard to check if an item is a GlobalPrompt.
4
4
  */
@@ -16,9 +16,9 @@ export declare function isFileRule(item: AgentCustomization): item is FileRule;
16
16
  */
17
17
  export declare function isAgentIgnore(item: AgentCustomization): item is AgentIgnore;
18
18
  /**
19
- * Type guard to check if an item is an AgentCommand.
19
+ * Type guard to check if an item is a ManualPrompt.
20
20
  */
21
- export declare function isAgentCommand(item: AgentCustomization): item is AgentCommand;
21
+ export declare function isManualPrompt(item: AgentCustomization): item is ManualPrompt;
22
22
  /**
23
23
  * Get a unique filename by appending a counter if the name already exists.
24
24
  * @param baseName - The base name to start with
package/dist/helpers.js CHANGED
@@ -24,10 +24,10 @@ export function isAgentIgnore(item) {
24
24
  return item.type === CustomizationType.AgentIgnore;
25
25
  }
26
26
  /**
27
- * Type guard to check if an item is an AgentCommand.
27
+ * Type guard to check if an item is a ManualPrompt.
28
28
  */
29
- export function isAgentCommand(item) {
30
- return item.type === CustomizationType.AgentCommand;
29
+ export function isManualPrompt(item) {
30
+ return item.type === CustomizationType.ManualPrompt;
31
31
  }
32
32
  /**
33
33
  * Get a unique filename by appending a counter if the name already exists.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export { CustomizationType, type AgentCustomization, type GlobalPrompt, type AgentSkill, type FileRule, type AgentIgnore, type AgentCommand, } from './types.js';
2
- export { type A16nPlugin, type DiscoveryResult, type EmitResult, type WrittenFile, } from './plugin.js';
1
+ export { CustomizationType, type AgentCustomization, type GlobalPrompt, type AgentSkill, type FileRule, type AgentIgnore, type ManualPrompt, } from './types.js';
2
+ export { type A16nPlugin, type DiscoveryResult, type EmitResult, type EmitOptions, type WrittenFile, } from './plugin.js';
3
3
  export { WarningCode, type Warning } from './warnings.js';
4
- export { isGlobalPrompt, isAgentSkill, isFileRule, isAgentIgnore, isAgentCommand, getUniqueFilename, createId, } from './helpers.js';
4
+ export { isGlobalPrompt, isAgentSkill, isFileRule, isAgentIgnore, isManualPrompt, getUniqueFilename, createId, } from './helpers.js';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,iBAAiB,EACjB,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,YAAY,GAClB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,WAAW,GACjB,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,WAAW,EAAE,KAAK,OAAO,EAAE,MAAM,eAAe,CAAC;AAG1D,OAAO,EACL,cAAc,EACd,YAAY,EACZ,UAAU,EACV,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,QAAQ,GACT,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,iBAAiB,EACjB,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,YAAY,GAClB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,WAAW,GACjB,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,WAAW,EAAE,KAAK,OAAO,EAAE,MAAM,eAAe,CAAC;AAG1D,OAAO,EACL,cAAc,EACd,YAAY,EACZ,UAAU,EACV,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,QAAQ,GACT,MAAM,cAAc,CAAC"}
package/dist/index.js CHANGED
@@ -4,5 +4,5 @@ export { CustomizationType, } from './types.js';
4
4
  // Warnings
5
5
  export { WarningCode } from './warnings.js';
6
6
  // Helpers
7
- export { isGlobalPrompt, isAgentSkill, isFileRule, isAgentIgnore, isAgentCommand, getUniqueFilename, createId, } from './helpers.js';
7
+ export { isGlobalPrompt, isAgentSkill, isFileRule, isAgentIgnore, isManualPrompt, getUniqueFilename, createId, } from './helpers.js';
8
8
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAElE,QAAQ;AACR,OAAO,EACL,iBAAiB,GAOlB,MAAM,YAAY,CAAC;AAUpB,WAAW;AACX,OAAO,EAAE,WAAW,EAAgB,MAAM,eAAe,CAAC;AAE1D,UAAU;AACV,OAAO,EACL,cAAc,EACd,YAAY,EACZ,UAAU,EACV,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,QAAQ,GACT,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAElE,QAAQ;AACR,OAAO,EACL,iBAAiB,GAOlB,MAAM,YAAY,CAAC;AAWpB,WAAW;AACX,OAAO,EAAE,WAAW,EAAgB,MAAM,eAAe,CAAC;AAE1D,UAAU;AACV,OAAO,EACL,cAAc,EACd,YAAY,EACZ,UAAU,EACV,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,QAAQ,GACT,MAAM,cAAc,CAAC"}
package/dist/plugin.d.ts CHANGED
@@ -19,18 +19,33 @@ export interface WrittenFile {
19
19
  type: CustomizationType;
20
20
  /** How many models went into this file (1 for 1:1, more if merged) */
21
21
  itemCount: number;
22
+ /** True if this file was created fresh; false if merged/edited existing */
23
+ isNewFile: boolean;
24
+ /**
25
+ * Which source AgentCustomizations contributed to this output file.
26
+ * Optional for backwards compatibility.
27
+ * Enables accurate git-ignore conflict detection in match mode.
28
+ */
29
+ sourceItems?: AgentCustomization[];
22
30
  }
23
31
  /**
24
32
  * Result of emitting customizations to a project.
25
33
  */
26
34
  export interface EmitResult {
27
- /** Files that were written */
35
+ /** Files that were written (or would be written in dry-run) */
28
36
  written: WrittenFile[];
29
37
  /** Any warnings encountered during emission */
30
38
  warnings: Warning[];
31
39
  /** Items that could not be represented by this plugin */
32
40
  unsupported: AgentCustomization[];
33
41
  }
42
+ /**
43
+ * Options for emitting customizations.
44
+ */
45
+ export interface EmitOptions {
46
+ /** If true, calculate what would be written without actually writing */
47
+ dryRun?: boolean;
48
+ }
34
49
  /**
35
50
  * The plugin interface that all a16n plugins must implement.
36
51
  * Plugins bridge between a16n's internal model and a specific tool's format.
@@ -52,8 +67,9 @@ export interface A16nPlugin {
52
67
  * Emit customization models to disk in this plugin's format.
53
68
  * @param models - The customizations to emit
54
69
  * @param root - The root directory to write to
55
- * @returns Info about what was written and any issues
70
+ * @param options - Optional emit options (e.g., dryRun)
71
+ * @returns Info about what was written (or would be written) and any issues
56
72
  */
57
- emit(models: AgentCustomization[], root: string): Promise<EmitResult>;
73
+ emit(models: AgentCustomization[], root: string, options?: EmitOptions): Promise<EmitResult>;
58
74
  }
59
75
  //# sourceMappingURL=plugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACxE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,oCAAoC;IACpC,KAAK,EAAE,kBAAkB,EAAE,CAAC;IAC5B,gDAAgD;IAChD,QAAQ,EAAE,OAAO,EAAE,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,+BAA+B;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,oCAAoC;IACpC,IAAI,EAAE,iBAAiB,CAAC;IACxB,sEAAsE;IACtE,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,8BAA8B;IAC9B,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,+CAA+C;IAC/C,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,yDAAyD;IACz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,EAAE,kBAAkB,EAAE,CAAC;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,wEAAwE;IACxE,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB,2DAA2D;IAC3D,EAAE,EAAE,MAAM,CAAC;IACX,0BAA0B;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,qDAAqD;IACrD,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAE9B;;;;OAIG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;IAEjD;;;;;;OAMG;IACH,IAAI,CAAC,MAAM,EAAE,kBAAkB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;CAC9F"}
package/dist/types.d.ts CHANGED
@@ -11,8 +11,8 @@ export declare enum CustomizationType {
11
11
  FileRule = "file-rule",
12
12
  /** Files/patterns to exclude from agent context */
13
13
  AgentIgnore = "agent-ignore",
14
- /** Explicitly invoked slash commands */
15
- AgentCommand = "agent-command"
14
+ /** Explicitly invoked prompts (slash commands, skills with disable-model-invocation) */
15
+ ManualPrompt = "manual-prompt"
16
16
  }
17
17
  /**
18
18
  * Base interface for all agent customization items.
@@ -65,15 +65,14 @@ export interface AgentIgnore extends AgentCustomization {
65
65
  patterns: string[];
66
66
  }
67
67
  /**
68
- * An explicitly invoked slash command.
69
- * Examples: Cursor commands in .cursor/commands/
68
+ * A manually-invoked prompt (slash command or skill with disable-model-invocation).
69
+ * Examples: Cursor commands in .cursor/commands/, skills with disable-model-invocation: true
70
70
  *
71
- * Note: Cursor Claude only. Claude has no dedicated command concept.
72
- * Commands with special features ($ARGUMENTS, !, @, allowed-tools) are skipped.
71
+ * These prompts are only activated when explicitly invoked by the user.
73
72
  */
74
- export interface AgentCommand extends AgentCustomization {
75
- type: CustomizationType.AgentCommand;
76
- /** Command name derived from filename (e.g., "review" from "review.md") */
77
- commandName: string;
73
+ export interface ManualPrompt extends AgentCustomization {
74
+ type: CustomizationType.ManualPrompt;
75
+ /** Prompt name for invocation (e.g., "review" for /review) */
76
+ promptName: string;
78
77
  }
79
78
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,oBAAY,iBAAiB;IAC3B,4DAA4D;IAC5D,YAAY,kBAAkB;IAC9B,gDAAgD;IAChD,UAAU,gBAAgB;IAC1B,sCAAsC;IACtC,QAAQ,cAAc;IACtB,mDAAmD;IACnD,WAAW,iBAAiB;IAC5B,wCAAwC;IACxC,YAAY,kBAAkB;CAC/B;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,sCAAsC;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,gCAAgC;IAChC,IAAI,EAAE,iBAAiB,CAAC;IACxB,mDAAmD;IACnD,UAAU,EAAE,MAAM,CAAC;IACnB,qCAAqC;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,6DAA6D;IAC7D,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC;AAED;;;GAGG;AACH,MAAM,WAAW,YAAa,SAAQ,kBAAkB;IACtD,IAAI,EAAE,iBAAiB,CAAC,YAAY,CAAC;CACtC;AAED;;;GAGG;AACH,MAAM,WAAW,UAAW,SAAQ,kBAAkB;IACpD,IAAI,EAAE,iBAAiB,CAAC,UAAU,CAAC;IACnC,+BAA+B;IAC/B,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,QAAS,SAAQ,kBAAkB;IAClD,IAAI,EAAE,iBAAiB,CAAC,QAAQ,CAAC;IACjC,2CAA2C;IAC3C,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED;;;GAGG;AACH,MAAM,WAAW,W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C,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED;;;GAGG;AACH,MAAM,WAAW,WAAY,SAAQ,kBAAkB;IACrD,IAAI,EAAE,iBAAiB,CAAC,WAAW,CAAC;IACpC,+BAA+B;IAC/B,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED;;;;;GAKG;AACH,MAAM,WAAW,YAAa,SAAQ,kBAAkB;IACtD,IAAI,EAAE,iBAAiB,CAAC,YAAY,CAAC;IACrC,8DAA8D;IAC9D,UAAU,EAAE,MAAM,CAAC;CACpB"}
package/dist/types.js CHANGED
@@ -12,7 +12,7 @@ export var CustomizationType;
12
12
  CustomizationType["FileRule"] = "file-rule";
13
13
  /** Files/patterns to exclude from agent context */
14
14
  CustomizationType["AgentIgnore"] = "agent-ignore";
15
- /** Explicitly invoked slash commands */
16
- CustomizationType["AgentCommand"] = "agent-command";
15
+ /** Explicitly invoked prompts (slash commands, skills with disable-model-invocation) */
16
+ CustomizationType["ManualPrompt"] = "manual-prompt";
17
17
  })(CustomizationType || (CustomizationType = {}));
18
18
  //# sourceMappingURL=types.js.map
package/dist/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAN,IAAY,iBAWX;AAXD,WAAY,iBAAiB;IAC3B,4DAA4D;IAC5D,mDAA8B,CAAA;IAC9B,gDAAgD;IAChD,+CAA0B,CAAA;IAC1B,sCAAsC;IACtC,2CAAsB,CAAA;IACtB,mDAAmD;IACnD,iDAA4B,CAAA;IAC5B,wCAAwC;IACxC,mDAA8B,CAAA;AAChC,CAAC,EAXW,iBAAiB,KAAjB,iBAAiB,QAW5B"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAN,IAAY,iBAWX;AAXD,WAAY,iBAAiB;IAC3B,4DAA4D;IAC5D,mDAA8B,CAAA;IAC9B,gDAAgD;IAChD,+CAA0B,CAAA;IAC1B,sCAAsC;IACtC,2CAAsB,CAAA;IACtB,mDAAmD;IACnD,iDAA4B,CAAA;IAC5B,wFAAwF;IACxF,mDAA8B,CAAA;AAChC,CAAC,EAXW,iBAAiB,KAAjB,iBAAiB,QAW5B"}
@@ -11,7 +11,11 @@ export declare enum WarningCode {
11
11
  /** Existing file was replaced */
12
12
  Overwritten = "overwritten",
13
13
  /** File was renamed to avoid collision */
14
- FileRenamed = "file-renamed"
14
+ FileRenamed = "file-renamed",
15
+ /** Git-ignored source with tracked output (or vice versa) */
16
+ BoundaryCrossing = "boundary-crossing",
17
+ /** Sources have conflicting git status (some ignored, some tracked) */
18
+ GitStatusConflict = "git-status-conflict"
15
19
  }
16
20
  /**
17
21
  * A warning about something that happened during conversion.
@@ -1 +1 @@
1
- {"version":3,"file":"warnings.d.ts","sourceRoot":"","sources":["../src/warnings.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,WAAW;IACrB,kDAAkD;IAClD,MAAM,WAAW;IACjB,yCAAyC;IACzC,YAAY,iBAAiB;IAC7B,4CAA4C;IAC5C,OAAO,YAAY;IACnB,iCAAiC;IACjC,WAAW,gBAAgB;IAC3B,0CAA0C;IAC1C,WAAW,iBAAiB;CAC7B;AAED;;;GAGG;AACH,MAAM,WAAW,OAAO;IACtB,0BAA0B;IAC1B,IAAI,EAAE,WAAW,CAAC;IAClB,8CAA8C;IAC9C,OAAO,EAAE,MAAM,CAAC;IAChB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,sDAAsD;IACtD,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC"}
1
+ {"version":3,"file":"warnings.d.ts","sourceRoot":"","sources":["../src/warnings.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,WAAW;IACrB,kDAAkD;IAClD,MAAM,WAAW;IACjB,yCAAyC;IACzC,YAAY,iBAAiB;IAC7B,4CAA4C;IAC5C,OAAO,YAAY;IACnB,iCAAiC;IACjC,WAAW,gBAAgB;IAC3B,0CAA0C;IAC1C,WAAW,iBAAiB;IAC5B,6DAA6D;IAC7D,gBAAgB,sBAAsB;IACtC,uEAAuE;IACvE,iBAAiB,wBAAwB;CAC1C;AAED;;;GAGG;AACH,MAAM,WAAW,OAAO;IACtB,0BAA0B;IAC1B,IAAI,EAAE,WAAW,CAAC;IAClB,8CAA8C;IAC9C,OAAO,EAAE,MAAM,CAAC;IAChB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,sDAAsD;IACtD,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC"}
package/dist/warnings.js CHANGED
@@ -13,5 +13,9 @@ export var WarningCode;
13
13
  WarningCode["Overwritten"] = "overwritten";
14
14
  /** File was renamed to avoid collision */
15
15
  WarningCode["FileRenamed"] = "file-renamed";
16
+ /** Git-ignored source with tracked output (or vice versa) */
17
+ WarningCode["BoundaryCrossing"] = "boundary-crossing";
18
+ /** Sources have conflicting git status (some ignored, some tracked) */
19
+ WarningCode["GitStatusConflict"] = "git-status-conflict";
16
20
  })(WarningCode || (WarningCode = {}));
17
21
  //# sourceMappingURL=warnings.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"warnings.js","sourceRoot":"","sources":["../src/warnings.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,WAWX;AAXD,WAAY,WAAW;IACrB,kDAAkD;IAClD,gCAAiB,CAAA;IACjB,yCAAyC;IACzC,4CAA6B,CAAA;IAC7B,4CAA4C;IAC5C,kCAAmB,CAAA;IACnB,iCAAiC;IACjC,0CAA2B,CAAA;IAC3B,0CAA0C;IAC1C,2CAA4B,CAAA;AAC9B,CAAC,EAXW,WAAW,KAAX,WAAW,QAWtB"}
1
+ {"version":3,"file":"warnings.js","sourceRoot":"","sources":["../src/warnings.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,WAeX;AAfD,WAAY,WAAW;IACrB,kDAAkD;IAClD,gCAAiB,CAAA;IACjB,yCAAyC;IACzC,4CAA6B,CAAA;IAC7B,4CAA4C;IAC5C,kCAAmB,CAAA;IACnB,iCAAiC;IACjC,0CAA2B,CAAA;IAC3B,0CAA0C;IAC1C,2CAA4B,CAAA;IAC5B,6DAA6D;IAC7D,qDAAsC,CAAA;IACtC,uEAAuE;IACvE,wDAAyC,CAAA;AAC3C,CAAC,EAfW,WAAW,KAAX,WAAW,QAetB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a16njs/models",
3
- "version": "0.1.0",
3
+ "version": "0.3.0",
4
4
  "description": "Type definitions and plugin interface for a16n",
5
5
  "license": "AGPL-3.0",
6
6
  "author": "Texarkanine",