toolfactory 0.1.2 → 0.2.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 +24 -1
- package/dist/commands.d.ts +1 -1
- package/dist/distribution/native.d.ts +50 -0
- package/dist/distribution/native.js +414 -0
- package/dist/distribution/native.test.d.ts +1 -0
- package/dist/distribution/native.test.js +127 -0
- package/dist/distribution/system.d.ts +57 -0
- package/dist/distribution/system.js +637 -0
- package/dist/distribution/system.test.d.ts +1 -0
- package/dist/distribution/system.test.js +116 -0
- package/dist/e2e.test.js +7 -1
- package/dist/hosts/openclaw.js +6 -2
- package/dist/hosts/vscode.d.ts +1 -0
- package/dist/hosts/vscode.js +67 -0
- package/dist/model.d.ts +62 -2
- package/dist/model.js +9 -0
- package/dist/ops.d.ts +52 -0
- package/dist/project/apply.d.ts +1 -1
- package/dist/project/apply.js +194 -17
- package/dist/project/apply.test.js +103 -0
- package/dist/project/gate.d.ts +17 -2
- package/dist/project/gate.js +68 -3
- package/dist/project/history.d.ts +29 -1
- package/dist/project/lock.d.ts +5 -0
- package/dist/project/lock.js +9 -0
- package/dist/surfaces/agent-plugins.js +5 -4
- package/dist/surfaces/agents.js +21 -3
- package/dist/surfaces/agents.test.js +12 -0
- package/dist/surfaces/claude.js +8 -3
- package/dist/surfaces/codex.js +8 -3
- package/dist/surfaces/codex.test.js +8 -8
- package/dist/surfaces/cursor.js +2 -2
- package/dist/surfaces/distribution.test.js +3 -3
- package/dist/surfaces/dsh.js +25 -6
- package/dist/surfaces/dsh.test.js +8 -3
- package/dist/surfaces/gemini.js +2 -2
- package/dist/surfaces/gemini.test.js +4 -4
- package/dist/surfaces/hermes-native.js +38 -9
- package/dist/surfaces/hermes-native.test.js +32 -11
- package/dist/surfaces/mcp-registry.js +43 -5
- package/dist/surfaces/mcp-registry.test.js +18 -0
- package/dist/surfaces/openclaw-native.js +10 -8
- package/dist/surfaces/openclaw-native.test.js +30 -0
- package/dist/surfaces/readme.d.ts +16 -0
- package/dist/surfaces/readme.js +7 -0
- package/dist/surfaces/registry.js +6 -0
- package/dist/surfaces/vscode-extension.d.ts +14 -0
- package/dist/surfaces/vscode-extension.js +312 -0
- package/dist/surfaces/vscode-extension.test.d.ts +1 -0
- package/dist/surfaces/vscode-extension.test.js +81 -0
- package/dist/surfaces/vscode-scaffold.d.ts +43 -0
- package/dist/surfaces/vscode-scaffold.js +43 -0
- package/dist/surfaces/workflows.js +49 -10
- package/dist/surfaces/workflows.test.js +3 -2
- package/dist/toolfactory/cli.js +1 -1
- package/dist/toolfactory/mcp.js +1 -1
- package/package.json +2 -1
- package/src/distribution/native.test.ts +161 -0
- package/src/distribution/native.ts +460 -0
- package/src/distribution/system.test.ts +136 -0
- package/src/distribution/system.ts +688 -0
- package/src/e2e.test.ts +7 -1
- package/src/hosts/openclaw.ts +4 -2
- package/src/hosts/vscode.ts +79 -0
- package/src/model.ts +15 -1
- package/src/project/apply.test.ts +120 -0
- package/src/project/apply.ts +257 -15
- package/src/project/gate.ts +96 -4
- package/src/project/lock.ts +12 -0
- package/src/surfaces/agent-plugins.ts +5 -4
- package/src/surfaces/agents.test.ts +16 -0
- package/src/surfaces/agents.ts +31 -3
- package/src/surfaces/claude.ts +7 -3
- package/src/surfaces/codex.test.ts +7 -7
- package/src/surfaces/codex.ts +8 -3
- package/src/surfaces/cursor.ts +2 -10
- package/src/surfaces/distribution.test.ts +2 -2
- package/src/surfaces/dsh.test.ts +8 -2
- package/src/surfaces/dsh.ts +26 -6
- package/src/surfaces/gemini.test.ts +3 -3
- package/src/surfaces/gemini.ts +1 -2
- package/src/surfaces/hermes-native.test.ts +39 -10
- package/src/surfaces/hermes-native.ts +41 -11
- package/src/surfaces/mcp-registry.test.ts +20 -0
- package/src/surfaces/mcp-registry.ts +46 -6
- package/src/surfaces/openclaw-native.test.ts +37 -0
- package/src/surfaces/openclaw-native.ts +49 -47
- package/src/surfaces/readme.ts +10 -0
- package/src/surfaces/registry.ts +6 -0
- package/src/surfaces/vscode-extension.test.ts +89 -0
- package/src/surfaces/vscode-extension.ts +345 -0
- package/src/surfaces/vscode-scaffold.ts +55 -0
- package/src/surfaces/workflows.test.ts +3 -4
- package/src/surfaces/workflows.ts +49 -10
- package/src/toolfactory/cli.ts +1 -1
- package/src/toolfactory/mcp.ts +1 -1
- package/web/dist/assets/{index-Spapkkvh.js → index-CVm6m4s0.js} +1 -1
- package/web/dist/index.html +1 -1
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Operating-system package managers consume authored native artifacts and packaging metadata.
|
|
3
|
+
* This is intentionally not a cross-language compiler or a launcher generator.
|
|
4
|
+
*/
|
|
5
|
+
import { z } from "zod";
|
|
6
|
+
import type { Project, Surface } from "../model.js";
|
|
7
|
+
import type { GateStep, Registry } from "../project/gate.js";
|
|
8
|
+
export declare const SYSTEM_PACKAGE_IDS: readonly ["homebrew", "winget", "scoop", "chocolatey", "apt", "rpm"];
|
|
9
|
+
export type SystemPackageId = (typeof SYSTEM_PACKAGE_IDS)[number];
|
|
10
|
+
export declare const systemPackageConfigSchema: z.ZodObject<{
|
|
11
|
+
id: z.ZodEnum<{
|
|
12
|
+
homebrew: "homebrew";
|
|
13
|
+
winget: "winget";
|
|
14
|
+
scoop: "scoop";
|
|
15
|
+
chocolatey: "chocolatey";
|
|
16
|
+
apt: "apt";
|
|
17
|
+
rpm: "rpm";
|
|
18
|
+
}>;
|
|
19
|
+
path: z.ZodString;
|
|
20
|
+
identity: z.ZodString;
|
|
21
|
+
name: z.ZodString;
|
|
22
|
+
versionCommand: z.ZodString;
|
|
23
|
+
buildCommand: z.ZodOptional<z.ZodString>;
|
|
24
|
+
buildDependencies: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
25
|
+
asset: z.ZodOptional<z.ZodString>;
|
|
26
|
+
tap: z.ZodOptional<z.ZodString>;
|
|
27
|
+
bucket: z.ZodOptional<z.ZodString>;
|
|
28
|
+
bucketName: z.ZodOptional<z.ZodString>;
|
|
29
|
+
catalogPath: z.ZodOptional<z.ZodString>;
|
|
30
|
+
ppa: z.ZodOptional<z.ZodString>;
|
|
31
|
+
coprProject: z.ZodOptional<z.ZodString>;
|
|
32
|
+
}, z.core.$strict>;
|
|
33
|
+
export type SystemPackageConfig = z.infer<typeof systemPackageConfigSchema>;
|
|
34
|
+
export declare const systemPackageSurfaces: Surface[];
|
|
35
|
+
/** Required CLI preflight for compatible local runs; native CI jobs install their own tooling. */
|
|
36
|
+
export declare function systemToolchainSteps(project: Project, options?: {
|
|
37
|
+
include?: boolean;
|
|
38
|
+
}): GateStep[];
|
|
39
|
+
/** Build actual package artifacts or stage the authored catalog submission, all at portable paths. */
|
|
40
|
+
export declare function systemPackageSteps(project: Project, options?: {
|
|
41
|
+
include?: boolean;
|
|
42
|
+
local?: boolean;
|
|
43
|
+
}): GateStep[];
|
|
44
|
+
export declare function systemRegistryRows(project: Project): Registry[];
|
|
45
|
+
type Job = Record<string, unknown>;
|
|
46
|
+
/**
|
|
47
|
+
* Native runner jobs. The generic Ubuntu gate/package workflow must not execute OS surface steps;
|
|
48
|
+
* it waits for these jobs and downloads each `system-<id>` artifact into dist/release/system/<id>.
|
|
49
|
+
*/
|
|
50
|
+
export declare function systemPackageJobs(project: Project, releaseSha: string): Record<string, Job>;
|
|
51
|
+
/**
|
|
52
|
+
* Publish only after the GitHub release exists. Homebrew taps and Scoop buckets are ordinary
|
|
53
|
+
* author-controlled Git repositories; WinGet remains a reviewed microsoft/winget-pkgs submission.
|
|
54
|
+
*/
|
|
55
|
+
export declare function systemPublishJobs(project: Project, artifactDir: string, _releaseSha: string): Record<string, Job>;
|
|
56
|
+
export declare function systemInstallLines(project: Project): string[];
|
|
57
|
+
export {};
|