@n1creator/openacp-cli 2026.712.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 +326 -0
- package/dist/channel-Cowirs76.d.ts +816 -0
- package/dist/cli.d.ts +32 -0
- package/dist/cli.js +36438 -0
- package/dist/cli.js.map +1 -0
- package/dist/data/registry-snapshot.json +851 -0
- package/dist/index.d.ts +5204 -0
- package/dist/index.js +21205 -0
- package/dist/index.js.map +1 -0
- package/dist/testing.d.ts +5 -0
- package/dist/testing.js +17749 -0
- package/dist/testing.js.map +1 -0
- package/package.json +71 -0
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Global instance-targeting flags accepted by every CLI command.
|
|
4
|
+
*
|
|
5
|
+
* These are extracted from argv before Commander parses the command,
|
|
6
|
+
* so they are available uniformly without each subcommand declaring them.
|
|
7
|
+
*/
|
|
8
|
+
interface InstanceFlags {
|
|
9
|
+
/** Use the instance in the current working directory (`.openacp/` in CWD). */
|
|
10
|
+
local: boolean;
|
|
11
|
+
/** Explicit path to the workspace directory (parent of `.openacp/`). */
|
|
12
|
+
dir?: string;
|
|
13
|
+
/** Clone a new instance from this source path. */
|
|
14
|
+
from?: string;
|
|
15
|
+
/** Human-readable label for the instance. */
|
|
16
|
+
name?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Returns the instance root resolved during CLI startup.
|
|
20
|
+
*
|
|
21
|
+
* Available to subcommands that need the resolved path without re-resolving it.
|
|
22
|
+
* May be null if the command does not require an instance (e.g., `update`, `adopt`).
|
|
23
|
+
*/
|
|
24
|
+
declare function getResolvedInstanceRoot(): string | null;
|
|
25
|
+
/**
|
|
26
|
+
* Returns the global instance-targeting flags parsed from argv.
|
|
27
|
+
*
|
|
28
|
+
* Useful for subcommands that need to inspect raw flags (e.g., to read `--name`).
|
|
29
|
+
*/
|
|
30
|
+
declare function getInstanceFlags(): InstanceFlags;
|
|
31
|
+
|
|
32
|
+
export { type InstanceFlags, getInstanceFlags, getResolvedInstanceRoot };
|