@noimosai/platform-cli 0.1.3 → 0.1.4
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 +12 -56
- package/bin/noimos-platform.mjs +3 -4
- package/dist/cli/cli.js +477 -87
- package/dist/cli/command-help.js +349 -23
- package/dist/cli/download.js +25 -25
- package/dist/cli/input-error.js +48 -0
- package/dist/cli/local-agents.js +199 -0
- package/dist/cli/mcp-supervisor.js +136 -0
- package/dist/cli/noimos-cli.js +72 -0
- package/dist/cli/project-archive.js +27 -0
- package/dist/cli/project-files.js +25 -0
- package/dist/cli/project-sync.js +259 -0
- package/dist/cli/setup-lock.js +1 -0
- package/dist/cli/setup.js +347 -0
- package/dist/cli/skills.js +142 -0
- package/dist/cli/team-harness-targets.js +337 -0
- package/dist/cli/team-harness.js +1562 -0
- package/dist/cli/team-resources.js +222 -0
- package/dist/cli/team-skills.js +457 -0
- package/dist/cli/update-bootstrap.js +437 -0
- package/dist/cli/update-release.js +212 -0
- package/dist/cli/version.js +1 -0
- package/dist/cli/wallet.js +85 -0
- package/dist/client/agent-run.js +1425 -0
- package/dist/client/browser.js +905 -0
- package/dist/client/distribution.js +2 -0
- package/dist/client/evm-wallet.js +214 -0
- package/dist/client/execution-context.js +14 -0
- package/dist/client/failure-recovery.js +128 -0
- package/dist/client/index.js +4 -225
- package/dist/client/local-input.js +33 -12
- package/dist/client/local-profile-lock.js +52 -0
- package/dist/client/local-profile.js +181 -0
- package/dist/client/local-projects.js +131 -0
- package/dist/client/local-setup.js +93 -0
- package/dist/client/realtime-voice.js +184 -0
- package/dist/client/tool-name-hints.js +48 -0
- package/dist/client/wallet-access.js +214 -0
- package/dist/mcp/agent-server.js +345 -0
- package/dist/mcp/context.js +86 -0
- package/dist/mcp/host-schema.js +76 -0
- package/dist/mcp/icon.js +1 -0
- package/dist/mcp/index.js +3 -0
- package/dist/mcp/instructions.js +26 -0
- package/dist/mcp/local-projects.js +42 -0
- package/dist/mcp/local-upload.js +39 -0
- package/dist/mcp/noimos-runtime.js +18 -0
- package/dist/mcp/noimos-server.js +38 -0
- package/dist/mcp/operations.js +40 -0
- package/dist/mcp/parallel-result.js +17 -0
- package/dist/mcp/project-sync.js +105 -0
- package/dist/mcp/results-reply.js +15 -0
- package/dist/mcp/runtime.js +81 -0
- package/dist/mcp/server.js +410 -0
- package/dist/mcp/team-skill.js +63 -0
- package/dist/mcp/update-notice.js +75 -0
- package/dist/mcp/version.js +1 -0
- package/dist/schema/accountRequestMethods.js +1 -0
- package/dist/schema/boundedBody.js +30 -0
- package/dist/schema/cronValidator.js +150 -0
- package/dist/schema/platformApiKey.js +14 -0
- package/dist/schema/platformAppAuth.js +11 -0
- package/dist/schema/platformBillingConstants.js +4 -0
- package/dist/schema/platformCapabilityFamilies.js +293 -0
- package/dist/schema/platformConnectionCatalog.js +39 -0
- package/dist/schema/platformConnectionPolicy.js +33 -0
- package/dist/schema/platformCustomTools.js +148 -0
- package/dist/schema/platformEndUserApi.js +62 -0
- package/dist/schema/platformFunding.js +10 -0
- package/dist/schema/platformHttpConstraints.js +12 -0
- package/dist/schema/platformLocalSetup.js +25 -0
- package/dist/schema/platformMcpTools.js +7 -0
- package/dist/schema/platformMetaTools.js +63 -0
- package/dist/schema/platformMonitorSchedule.js +123 -0
- package/dist/schema/platformMonitors.js +159 -0
- package/dist/schema/platformOAuth.js +13 -0
- package/dist/schema/platformProjectPermissions.js +33 -0
- package/dist/schema/platformPublicExecution.js +202 -21
- package/dist/schema/platformRoutes.js +122 -0
- package/dist/schema/platformSkills.js +11 -0
- package/dist/schema/platformTeamSecretName.js +3 -0
- package/dist/schema/platformTeamSkillSlug.js +1 -0
- package/dist/schema/platformTeamSkills.js +302 -0
- package/dist/schema/platformToolAccess.js +62 -0
- package/dist/schema/platformTriggers.js +153 -0
- package/dist/schema/platformWorkflows.js +100 -0
- package/dist/schema/scheduleTimeZone.js +15 -0
- package/dist/schema/toolDiscovery.js +71 -0
- package/dist/schema/toolInputRepair.js +122 -0
- package/dist/schema/toolResultContext.js +51 -0
- package/dist/schema/untrustedContent.js +35 -0
- package/npm-shrinkwrap.json +73 -0
- package/package.json +6 -3
package/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# NoimosAI Platform CLI
|
|
2
2
|
|
|
3
|
-
Command-line access to the NoimosAI Developer Platform
|
|
3
|
+
Command-line access to the NoimosAI Developer Platform: research, SEO, social data
|
|
4
|
+
and media generation tools billed to a developer project's USD balance.
|
|
4
5
|
Requires Node.js 22 or later.
|
|
5
6
|
|
|
6
7
|
~~~bash
|
|
@@ -15,70 +16,26 @@ Set NOIMOS_PLATFORM_API_URL to the tool API URL shown in the developer console
|
|
|
15
16
|
developer key. Never commit the key to a repository.
|
|
16
17
|
|
|
17
18
|
~~~bash
|
|
18
|
-
noimos-platform tools --
|
|
19
|
-
noimos-platform tool
|
|
20
|
-
noimos-platform quote
|
|
19
|
+
noimos-platform tools --query "news search"
|
|
20
|
+
noimos-platform tool <tool-name>
|
|
21
|
+
noimos-platform quote <tool-name> '<arguments-json>'
|
|
21
22
|
noimos-platform help execute
|
|
22
23
|
~~~
|
|
23
24
|
|
|
24
25
|
Execution requires the quote's price version and maximum charge, plus a retained
|
|
25
26
|
idempotency key. Retry an uncertain submission with the same arguments and key.
|
|
26
|
-
|
|
27
|
-
Discovery and quotes do not
|
|
27
|
+
`execution` shows a bounded preview; read the stored output with `result`, and
|
|
28
|
+
recover work with `executions`, `wait` and `download`. Discovery and quotes do not
|
|
29
|
+
start paid work. Each tool's inputs, availability and price come from the catalog:
|
|
30
|
+
inspect them with `tool <name>`.
|
|
28
31
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
questions, analyze_audio for sound/music/speech questions, and transcribe_audio
|
|
33
|
-
for verbatim text, speaker labels and word timestamps with SRT/VTT strings.
|
|
34
|
-
Inspect each tool's current schema and availability with `tool <name>`.
|
|
35
|
-
|
|
36
|
-
~~~bash
|
|
37
|
-
noimos-platform upload ./interview.wav
|
|
38
|
-
noimos-platform tool transcribe_audio
|
|
39
|
-
noimos-platform quote analyze_video '{"source":{"url":"https://www.youtube.com/watch?v=LuIL5JATZsc"},"question":"Describe the key scenes with timestamps."}'
|
|
40
|
-
~~~
|
|
41
|
-
|
|
42
|
-
Use the upload response's `data.id` as `source.fileId`. Inputs may alternatively
|
|
43
|
-
reference a project artifact with `source.executionId` and `source.artifactId`.
|
|
44
|
-
Uploads accept explicitly selected regular JPG/PNG/WAV/MP3/MP4 files up to 12 MiB,
|
|
45
|
-
are private to the developer project and expire after 30 days. Public HTTPS media
|
|
46
|
-
URLs use the same size bound; public YouTube video URLs are passed to the analysis
|
|
47
|
-
service. Uploads do not start inference. Quotes reserve input/output token limits;
|
|
48
|
-
adaptive video processing can exceed the reservation and require review, without
|
|
49
|
-
automatically charging above the accepted maximum. Use local tools such as FFmpeg
|
|
50
|
-
for conversion, trimming, merging and subtitle rendering.
|
|
51
|
-
|
|
52
|
-
## Reference generation and voice isolation
|
|
53
|
-
|
|
54
|
-
Use generate_image with referenceImages and describe the desired edit in prompt.
|
|
55
|
-
Each image is a {fileId}, {executionId, artifactId}, or {url} object. Upload a local
|
|
56
|
-
image first, then use its returned ID. Gemini and both GPT Image models support
|
|
57
|
-
the same input contract; inspect the catalog for current models and prices.
|
|
58
|
-
|
|
59
|
-
~~~bash
|
|
60
|
-
noimos-platform upload ./product.png
|
|
61
|
-
noimos-platform quote generate_image '{"prompt":"Keep the product; change the background to a bright kitchen.","referenceImages":[{"fileId":"f_<SHA-256>"}]}'
|
|
62
|
-
noimos-platform quote generate_video '{"prompt":"Slow camera move around the product.","firstFrame":{"fileId":"f_<SHA-256>"},"duration":5}'
|
|
63
|
-
noimos-platform quote isolate_voice '{"source":{"fileId":"f_<SHA-256>"},"maxDurationSeconds":60}'
|
|
64
|
-
~~~
|
|
65
|
-
|
|
66
|
-
Replace the placeholder IDs with upload results. Image/video references accept
|
|
67
|
-
up to four ordered JPG/PNG images, 12 MiB combined. Video accepts referenceImages
|
|
68
|
-
or firstFrame with optional lastFrame; omit aspectRatio in frame mode. Reuse a
|
|
69
|
-
generated artifact as input for further edits without downloading/uploading it.
|
|
70
|
-
|
|
71
|
-
isolate_voice removes background noise from speech. It accepts PCM WAV or MPEG-1
|
|
72
|
-
Layer III MP3 at 44.1 kHz/128 kbps, up to 12 MiB and 600 seconds. It bills the full
|
|
73
|
-
input duration including silence; unused duration reservation is returned.
|
|
74
|
-
Availability and the configured per-minute price are returned by the catalog.
|
|
32
|
+
Upload a local JPG/PNG/WebP/WAV/MP3/MP4/MOV file (at most 12 MiB) with
|
|
33
|
+
`noimos-platform upload <file>` and pass its returned `data.id` where a tool's schema
|
|
34
|
+
takes a file ID. Uploads are private to the developer project and do not start work.
|
|
75
35
|
|
|
76
36
|
## MCP
|
|
77
37
|
|
|
78
38
|
The MCP server is a separate package: @noimosai/platform-mcp.
|
|
79
|
-
Configure your host to launch npx with arguments
|
|
80
|
-
["-y", "@noimosai/platform-mcp"], passing the two environment variables above.
|
|
81
|
-
Pin a tested package version in managed installations.
|
|
82
39
|
|
|
83
40
|
~~~json
|
|
84
41
|
{
|
|
@@ -100,4 +57,3 @@ workspace credentials, social connections or credits of the NoimosAI app.
|
|
|
100
57
|
For workspace operations, use the separate @noimosai/cli or @noimosai/mcp.
|
|
101
58
|
|
|
102
59
|
Local emulators only: set NOIMOS_PLATFORM_ENV=local to allow loopback HTTP.
|
|
103
|
-
The MCP transport is stdio; this package does not start a hosted HTTP endpoint.
|
package/bin/noimos-platform.mjs
CHANGED
|
@@ -3,9 +3,8 @@ import { readFileSync } from "node:fs";
|
|
|
3
3
|
|
|
4
4
|
const args = process.argv.slice(2);
|
|
5
5
|
if (args.length === 1 && args[0] === "--version") {
|
|
6
|
-
|
|
7
|
-
console.log(manifest.version);
|
|
6
|
+
console.log(JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8")).version);
|
|
8
7
|
} else {
|
|
9
|
-
const {
|
|
10
|
-
process.exitCode = await
|
|
8
|
+
const { runNoimosPlatformCli } = await import("../dist/cli/noimos-cli.js");
|
|
9
|
+
process.exitCode = await runNoimosPlatformCli(args, process.env, console.log, console.error);
|
|
11
10
|
}
|