@iwsdk/cli 0.3.2

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.
Files changed (47) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +12 -0
  3. package/dist/argv.d.ts +11 -0
  4. package/dist/argv.d.ts.map +1 -0
  5. package/dist/cli-results.d.ts +14 -0
  6. package/dist/cli-results.d.ts.map +1 -0
  7. package/dist/cli-types.d.ts +40 -0
  8. package/dist/cli-types.d.ts.map +1 -0
  9. package/dist/cli.d.ts +8 -0
  10. package/dist/cli.d.ts.map +1 -0
  11. package/dist/cli.js +23514 -0
  12. package/dist/cli.js.map +1 -0
  13. package/dist/commands/adapter.d.ts +19 -0
  14. package/dist/commands/adapter.d.ts.map +1 -0
  15. package/dist/commands/dev.d.ts +14 -0
  16. package/dist/commands/dev.d.ts.map +1 -0
  17. package/dist/commands/mcp.d.ts +10 -0
  18. package/dist/commands/mcp.d.ts.map +1 -0
  19. package/dist/commands/reference.d.ts +12 -0
  20. package/dist/commands/reference.d.ts.map +1 -0
  21. package/dist/commands/runtime.d.ts +9 -0
  22. package/dist/commands/runtime.d.ts.map +1 -0
  23. package/dist/commands/status.d.ts +10 -0
  24. package/dist/commands/status.d.ts.map +1 -0
  25. package/dist/contract.js +874 -0
  26. package/dist/contract.js.map +1 -0
  27. package/dist/help.d.ts +11 -0
  28. package/dist/help.d.ts.map +1 -0
  29. package/dist/hzdb-telemetry.d.ts +8 -0
  30. package/dist/hzdb-telemetry.d.ts.map +1 -0
  31. package/dist/index.d.ts +12 -0
  32. package/dist/index.d.ts.map +1 -0
  33. package/dist/index.js +23504 -0
  34. package/dist/index.js.map +1 -0
  35. package/dist/mcp-adapters.d.ts +52 -0
  36. package/dist/mcp-adapters.d.ts.map +1 -0
  37. package/dist/mcp-stdio.d.ts +14 -0
  38. package/dist/mcp-stdio.d.ts.map +1 -0
  39. package/dist/reference-runtime.d.ts +12 -0
  40. package/dist/reference-runtime.d.ts.map +1 -0
  41. package/dist/runtime-contract.d.ts +116 -0
  42. package/dist/runtime-contract.d.ts.map +1 -0
  43. package/dist/runtime-state.d.ts +51 -0
  44. package/dist/runtime-state.d.ts.map +1 -0
  45. package/dist/runtime-transport.d.ts +36 -0
  46. package/dist/runtime-transport.d.ts.map +1 -0
  47. package/package.json +65 -0
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import type { CliOptions, CliSuccess, ResolvedCliIo } from '../cli-types.js';
8
+ import { type AiTool } from '../runtime-contract.js';
9
+ export interface AdapterStatusEntry {
10
+ tool: AiTool;
11
+ file: string;
12
+ exists: boolean;
13
+ status: 'configured' | 'missing' | 'stale';
14
+ }
15
+ export declare function readAdapterStatus(workspaceRoot: string): Promise<AdapterStatusEntry[]>;
16
+ export declare function handleAdapterSync(options: CliOptions, io: ResolvedCliIo): Promise<CliSuccess<unknown>>;
17
+ export declare function handleAdapterPrune(options: CliOptions, io: ResolvedCliIo): Promise<CliSuccess<unknown>>;
18
+ export declare function handleAdapterStatus(options: CliOptions, io: ResolvedCliIo): Promise<CliSuccess<unknown>>;
19
+ //# sourceMappingURL=adapter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../src/commands/adapter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,KAAK,EACV,UAAU,EAEV,UAAU,EACV,aAAa,EACd,MAAM,iBAAiB,CAAC;AAYzB,OAAO,EAGL,KAAK,MAAM,EACZ,MAAM,wBAAwB,CAAC;AAGhC,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,YAAY,GAAG,SAAS,GAAG,OAAO,CAAC;CAC5C;AAwFD,wBAAsB,iBAAiB,CACrC,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAgC/B;AA+BD,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,aAAa,GAChB,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAQ9B;AAED,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,aAAa,GAChB,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAS9B;AAED,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,aAAa,GAChB,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAM9B"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import type { CliFailure, CliOptions, CliSuccess, ResolvedCliIo } from '../cli-types.js';
8
+ export declare function handleDevUp(options: CliOptions, io: ResolvedCliIo): Promise<CliSuccess<unknown> | CliFailure | null>;
9
+ export declare function handleDevDown(options: CliOptions, io: ResolvedCliIo): Promise<CliSuccess<unknown>>;
10
+ export declare function handleDevRestart(options: CliOptions, io: ResolvedCliIo): Promise<CliSuccess<unknown> | CliFailure | null>;
11
+ export declare function handleDevLogs(options: CliOptions, io: ResolvedCliIo): Promise<CliSuccess<unknown>>;
12
+ export declare function handleDevOpen(options: CliOptions, io: ResolvedCliIo): Promise<CliSuccess<unknown>>;
13
+ export declare function handleDevStatus(options: CliOptions, io: ResolvedCliIo): Promise<CliSuccess<unknown>>;
14
+ //# sourceMappingURL=dev.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/commands/dev.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,UAAU,EACV,aAAa,EACd,MAAM,iBAAiB,CAAC;AA6XzB,wBAAsB,WAAW,CAC/B,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,aAAa,GAChB,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,UAAU,GAAG,IAAI,CAAC,CAiMlD;AAED,wBAAsB,aAAa,CACjC,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,aAAa,GAChB,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAQ9B;AAED,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,aAAa,GAChB,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,UAAU,GAAG,IAAI,CAAC,CAUlD;AAED,wBAAsB,aAAa,CACjC,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,aAAa,GAChB,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAyB9B;AAED,wBAAsB,aAAa,CACjC,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,aAAa,GAChB,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAqB9B;AAED,wBAAsB,eAAe,CACnC,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,aAAa,GAChB,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAE9B"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import type { CliOptions, CliSuccess, ResolvedCliIo } from '../cli-types.js';
8
+ export declare function handleMcpInspect(options: CliOptions, io: ResolvedCliIo): Promise<CliSuccess<unknown>>;
9
+ export declare function handleMcpStdio(options: CliOptions, io: ResolvedCliIo): Promise<null>;
10
+ //# sourceMappingURL=mcp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../src/commands/mcp.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAM7E,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,aAAa,GAChB,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAyC9B;AAED,wBAAsB,cAAc,CAClC,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,aAAa,GAChB,OAAO,CAAC,IAAI,CAAC,CAef"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import type { CliCommandResult, ResolvedCliIo } from '../cli-types.js';
8
+ export declare function handleReferenceStatus(options: Record<string, unknown>, context: ResolvedCliIo): Promise<CliCommandResult>;
9
+ export declare function handleReferenceInspect(options: Record<string, unknown>, context: ResolvedCliIo): Promise<CliCommandResult>;
10
+ export declare function handleReferenceQuery(subcommand: string, options: Record<string, unknown>, context: ResolvedCliIo): Promise<CliCommandResult>;
11
+ export declare function handleReferenceWarmup(options: Record<string, unknown>, context: ResolvedCliIo): Promise<CliCommandResult>;
12
+ //# sourceMappingURL=reference.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reference.d.ts","sourceRoot":"","sources":["../../src/commands/reference.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAiFvE,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,gBAAgB,CAAC,CAkC3B;AAED,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,gBAAgB,CAAC,CAsC3B;AAED,wBAAsB,oBAAoB,CACxC,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,gBAAgB,CAAC,CA0C3B;AAED,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,gBAAgB,CAAC,CA8B3B"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import type { CliOptions, CliRawOutput, CliSuccess, ResolvedCliIo } from '../cli-types.js';
8
+ export declare function handleRuntimeOperation(domain: string, action: string | undefined, options: CliOptions, io: ResolvedCliIo): Promise<CliSuccess<unknown> | CliRawOutput>;
9
+ //# sourceMappingURL=runtime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/commands/runtime.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,OAAO,KAAK,EACV,UAAU,EACV,YAAY,EACZ,UAAU,EACV,aAAa,EACd,MAAM,iBAAiB,CAAC;AA+DzB,wBAAsB,sBAAsB,CAC1C,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,aAAa,GAChB,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,YAAY,CAAC,CAiE7C"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import type { CliOptionValue, CliOptions, CliSuccess, ResolvedCliIo } from '../cli-types.js';
8
+ export declare function detectWorkspaceForStatus(cwd: string, workspaceOverride: CliOptionValue | undefined): Promise<string | null>;
9
+ export declare function handleStatus(options: CliOptions, io: ResolvedCliIo): Promise<CliSuccess<unknown>>;
10
+ //# sourceMappingURL=status.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/commands/status.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EACV,cAAc,EACd,UAAU,EACV,UAAU,EACV,aAAa,EACd,MAAM,iBAAiB,CAAC;AAQzB,wBAAsB,wBAAwB,CAC5C,GAAG,EAAE,MAAM,EACX,iBAAiB,EAAE,cAAc,GAAG,SAAS,GAC5C,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAcxB;AAED,wBAAsB,YAAY,CAChC,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,aAAa,GAChB,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAsB9B"}