anpm-io 1.0.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 +174 -0
- package/dist/commands/access.d.ts +2 -0
- package/dist/commands/access.js +90 -0
- package/dist/commands/adopt.d.ts +2 -0
- package/dist/commands/adopt.js +177 -0
- package/dist/commands/changelog.d.ts +2 -0
- package/dist/commands/changelog.js +67 -0
- package/dist/commands/check-update.d.ts +2 -0
- package/dist/commands/check-update.js +76 -0
- package/dist/commands/config.d.ts +2 -0
- package/dist/commands/config.js +84 -0
- package/dist/commands/create.d.ts +2 -0
- package/dist/commands/create.js +227 -0
- package/dist/commands/deploy-record.d.ts +2 -0
- package/dist/commands/deploy-record.js +93 -0
- package/dist/commands/deploy.d.ts +2 -0
- package/dist/commands/deploy.js +284 -0
- package/dist/commands/diff.d.ts +2 -0
- package/dist/commands/diff.js +92 -0
- package/dist/commands/feedback.d.ts +2 -0
- package/dist/commands/feedback.js +71 -0
- package/dist/commands/grant.d.ts +33 -0
- package/dist/commands/grant.js +190 -0
- package/dist/commands/hub.d.ts +2 -0
- package/dist/commands/hub.js +171 -0
- package/dist/commands/init.d.ts +13 -0
- package/dist/commands/init.js +172 -0
- package/dist/commands/install.d.ts +2 -0
- package/dist/commands/install.js +626 -0
- package/dist/commands/join.d.ts +6 -0
- package/dist/commands/join.js +90 -0
- package/dist/commands/link.d.ts +2 -0
- package/dist/commands/link.js +112 -0
- package/dist/commands/list.d.ts +2 -0
- package/dist/commands/list.js +144 -0
- package/dist/commands/login.d.ts +7 -0
- package/dist/commands/login.js +235 -0
- package/dist/commands/orgs.d.ts +10 -0
- package/dist/commands/orgs.js +128 -0
- package/dist/commands/outdated.d.ts +2 -0
- package/dist/commands/outdated.js +70 -0
- package/dist/commands/package.d.ts +57 -0
- package/dist/commands/package.js +569 -0
- package/dist/commands/ping.d.ts +2 -0
- package/dist/commands/ping.js +40 -0
- package/dist/commands/publish.d.ts +98 -0
- package/dist/commands/publish.js +899 -0
- package/dist/commands/run.d.ts +2 -0
- package/dist/commands/run.js +249 -0
- package/dist/commands/search.d.ts +2 -0
- package/dist/commands/search.js +57 -0
- package/dist/commands/status.d.ts +2 -0
- package/dist/commands/status.js +159 -0
- package/dist/commands/uninstall.d.ts +2 -0
- package/dist/commands/uninstall.js +132 -0
- package/dist/commands/update.d.ts +2 -0
- package/dist/commands/update.js +171 -0
- package/dist/commands/versions.d.ts +2 -0
- package/dist/commands/versions.js +44 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +91 -0
- package/dist/lib/agent-status.d.ts +23 -0
- package/dist/lib/agent-status.js +127 -0
- package/dist/lib/ai-tools.d.ts +34 -0
- package/dist/lib/ai-tools.js +104 -0
- package/dist/lib/anpm-config.d.ts +39 -0
- package/dist/lib/anpm-config.js +112 -0
- package/dist/lib/api.d.ts +24 -0
- package/dist/lib/api.js +151 -0
- package/dist/lib/auto-detect.d.ts +30 -0
- package/dist/lib/auto-detect.js +112 -0
- package/dist/lib/cloud-providers/anthropic.d.ts +19 -0
- package/dist/lib/cloud-providers/anthropic.js +200 -0
- package/dist/lib/cloud-providers/package-mapper.d.ts +9 -0
- package/dist/lib/cloud-providers/package-mapper.js +34 -0
- package/dist/lib/cloud-providers/provider.d.ts +60 -0
- package/dist/lib/cloud-providers/provider.js +7 -0
- package/dist/lib/command-adapter.d.ts +41 -0
- package/dist/lib/command-adapter.js +188 -0
- package/dist/lib/config.d.ts +50 -0
- package/dist/lib/config.js +274 -0
- package/dist/lib/contact-format.d.ts +7 -0
- package/dist/lib/contact-format.js +23 -0
- package/dist/lib/device-hash.d.ts +1 -0
- package/dist/lib/device-hash.js +16 -0
- package/dist/lib/error-report.d.ts +5 -0
- package/dist/lib/error-report.js +28 -0
- package/dist/lib/git-installer.d.ts +16 -0
- package/dist/lib/git-installer.js +97 -0
- package/dist/lib/git-operations.d.ts +38 -0
- package/dist/lib/git-operations.js +183 -0
- package/dist/lib/hub-notify.d.ts +9 -0
- package/dist/lib/hub-notify.js +66 -0
- package/dist/lib/install-source.d.ts +33 -0
- package/dist/lib/install-source.js +98 -0
- package/dist/lib/installer.d.ts +40 -0
- package/dist/lib/installer.js +358 -0
- package/dist/lib/local-installer.d.ts +15 -0
- package/dist/lib/local-installer.js +73 -0
- package/dist/lib/lockfile.d.ts +13 -0
- package/dist/lib/lockfile.js +42 -0
- package/dist/lib/manifest.d.ts +65 -0
- package/dist/lib/manifest.js +113 -0
- package/dist/lib/migration.d.ts +10 -0
- package/dist/lib/migration.js +91 -0
- package/dist/lib/paths.d.ts +10 -0
- package/dist/lib/paths.js +22 -0
- package/dist/lib/preamble.d.ts +22 -0
- package/dist/lib/preamble.js +133 -0
- package/dist/lib/relay-config.d.ts +13 -0
- package/dist/lib/relay-config.js +46 -0
- package/dist/lib/requires-suggest.d.ts +23 -0
- package/dist/lib/requires-suggest.js +295 -0
- package/dist/lib/setup-command.d.ts +6 -0
- package/dist/lib/setup-command.js +72 -0
- package/dist/lib/slug.d.ts +24 -0
- package/dist/lib/slug.js +100 -0
- package/dist/lib/step-tracker.d.ts +8 -0
- package/dist/lib/step-tracker.js +28 -0
- package/dist/lib/storage.d.ts +6 -0
- package/dist/lib/storage.js +23 -0
- package/dist/lib/update-cache.d.ts +2 -0
- package/dist/lib/update-cache.js +51 -0
- package/dist/lib/version-check.d.ts +10 -0
- package/dist/lib/version-check.js +75 -0
- package/dist/mcp/server.d.ts +3 -0
- package/dist/mcp/server.js +112 -0
- package/dist/postinstall.d.ts +8 -0
- package/dist/postinstall.js +41 -0
- package/dist/prompts/_error-handling.md +38 -0
- package/dist/prompts/create.md +170 -0
- package/dist/prompts/explore.md +30 -0
- package/dist/prompts/index.d.ts +3 -0
- package/dist/prompts/index.js +22 -0
- package/dist/relay-compat.d.ts +2 -0
- package/dist/relay-compat.js +7 -0
- package/dist/types.d.ts +118 -0
- package/dist/types.js +2 -0
- package/package.json +51 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { Command } from 'commander';
|
|
2
|
+
interface CommandEntry {
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
}
|
|
6
|
+
interface Components {
|
|
7
|
+
agents: number;
|
|
8
|
+
rules: number;
|
|
9
|
+
skills: number;
|
|
10
|
+
}
|
|
11
|
+
export interface RequiresCli {
|
|
12
|
+
name: string;
|
|
13
|
+
install?: string;
|
|
14
|
+
required?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface RequiresMcp {
|
|
17
|
+
name: string;
|
|
18
|
+
package?: string;
|
|
19
|
+
required?: boolean;
|
|
20
|
+
config?: {
|
|
21
|
+
command: string;
|
|
22
|
+
args?: string[];
|
|
23
|
+
};
|
|
24
|
+
env?: string[];
|
|
25
|
+
}
|
|
26
|
+
export interface RequiresEnv {
|
|
27
|
+
name: string;
|
|
28
|
+
required?: boolean;
|
|
29
|
+
description?: string;
|
|
30
|
+
setup_hint?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface RequiresNpm {
|
|
33
|
+
name: string;
|
|
34
|
+
required?: boolean;
|
|
35
|
+
}
|
|
36
|
+
export interface Requires {
|
|
37
|
+
cli?: RequiresCli[];
|
|
38
|
+
mcp?: RequiresMcp[];
|
|
39
|
+
npm?: (string | RequiresNpm)[];
|
|
40
|
+
env?: RequiresEnv[];
|
|
41
|
+
agents?: string[];
|
|
42
|
+
runtime?: {
|
|
43
|
+
node?: string;
|
|
44
|
+
python?: string;
|
|
45
|
+
};
|
|
46
|
+
permissions?: string[];
|
|
47
|
+
}
|
|
48
|
+
interface AgentDetail {
|
|
49
|
+
name: string;
|
|
50
|
+
description: string;
|
|
51
|
+
uses: string[];
|
|
52
|
+
}
|
|
53
|
+
interface SkillDetail {
|
|
54
|
+
name: string;
|
|
55
|
+
description: string;
|
|
56
|
+
uses: string[];
|
|
57
|
+
}
|
|
58
|
+
export interface PublishMetadata {
|
|
59
|
+
slug: string;
|
|
60
|
+
name: string;
|
|
61
|
+
description: string;
|
|
62
|
+
long_description?: string;
|
|
63
|
+
tags: string[];
|
|
64
|
+
commands: CommandEntry[];
|
|
65
|
+
components: Components;
|
|
66
|
+
version: string;
|
|
67
|
+
changelog?: string;
|
|
68
|
+
requires?: Requires;
|
|
69
|
+
visibility?: 'public' | 'private' | 'internal';
|
|
70
|
+
type?: 'command' | 'passive' | 'hybrid';
|
|
71
|
+
recommended_scope?: 'global' | 'local';
|
|
72
|
+
cli_version?: string;
|
|
73
|
+
agent_names?: string[];
|
|
74
|
+
skill_names?: string[];
|
|
75
|
+
agent_details?: AgentDetail[];
|
|
76
|
+
skill_details?: SkillDetail[];
|
|
77
|
+
org_slug?: string;
|
|
78
|
+
cloud_config?: {
|
|
79
|
+
supported_providers: string[];
|
|
80
|
+
[provider: string]: unknown;
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
interface PublishResult {
|
|
84
|
+
status: string;
|
|
85
|
+
slug: string;
|
|
86
|
+
version: string;
|
|
87
|
+
url: string;
|
|
88
|
+
access_code?: string | null;
|
|
89
|
+
profile?: {
|
|
90
|
+
username?: string;
|
|
91
|
+
display_name?: string;
|
|
92
|
+
contact_links?: Record<string, string>;
|
|
93
|
+
default_welcome?: string;
|
|
94
|
+
} | null;
|
|
95
|
+
}
|
|
96
|
+
export declare function publishToApi(token: string, metadata: PublishMetadata): Promise<PublishResult>;
|
|
97
|
+
export declare function registerPublish(program: Command): void;
|
|
98
|
+
export {};
|