@noimosai/platform-cli 0.1.2 → 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.
Files changed (93) hide show
  1. package/README.md +12 -56
  2. package/bin/noimos-platform.mjs +3 -4
  3. package/dist/cli/cli.js +477 -87
  4. package/dist/cli/command-help.js +349 -23
  5. package/dist/cli/download.js +25 -25
  6. package/dist/cli/input-error.js +48 -0
  7. package/dist/cli/local-agents.js +199 -0
  8. package/dist/cli/mcp-supervisor.js +136 -0
  9. package/dist/cli/noimos-cli.js +72 -0
  10. package/dist/cli/project-archive.js +27 -0
  11. package/dist/cli/project-files.js +25 -0
  12. package/dist/cli/project-sync.js +259 -0
  13. package/dist/cli/setup-lock.js +1 -0
  14. package/dist/cli/setup.js +347 -0
  15. package/dist/cli/skills.js +142 -0
  16. package/dist/cli/team-harness-targets.js +337 -0
  17. package/dist/cli/team-harness.js +1562 -0
  18. package/dist/cli/team-resources.js +222 -0
  19. package/dist/cli/team-skills.js +457 -0
  20. package/dist/cli/update-bootstrap.js +437 -0
  21. package/dist/cli/update-release.js +212 -0
  22. package/dist/cli/version.js +1 -0
  23. package/dist/cli/wallet.js +85 -0
  24. package/dist/client/agent-run.js +1425 -0
  25. package/dist/client/browser.js +905 -0
  26. package/dist/client/distribution.js +2 -0
  27. package/dist/client/evm-wallet.js +214 -0
  28. package/dist/client/execution-context.js +14 -0
  29. package/dist/client/failure-recovery.js +128 -0
  30. package/dist/client/index.js +4 -225
  31. package/dist/client/local-input.js +33 -12
  32. package/dist/client/local-profile-lock.js +52 -0
  33. package/dist/client/local-profile.js +181 -0
  34. package/dist/client/local-projects.js +131 -0
  35. package/dist/client/local-setup.js +93 -0
  36. package/dist/client/realtime-voice.js +184 -0
  37. package/dist/client/tool-name-hints.js +48 -0
  38. package/dist/client/wallet-access.js +214 -0
  39. package/dist/mcp/agent-server.js +345 -0
  40. package/dist/mcp/context.js +86 -0
  41. package/dist/mcp/host-schema.js +76 -0
  42. package/dist/mcp/icon.js +1 -0
  43. package/dist/mcp/index.js +3 -0
  44. package/dist/mcp/instructions.js +26 -0
  45. package/dist/mcp/local-projects.js +42 -0
  46. package/dist/mcp/local-upload.js +39 -0
  47. package/dist/mcp/noimos-runtime.js +18 -0
  48. package/dist/mcp/noimos-server.js +38 -0
  49. package/dist/mcp/operations.js +40 -0
  50. package/dist/mcp/parallel-result.js +17 -0
  51. package/dist/mcp/project-sync.js +105 -0
  52. package/dist/mcp/results-reply.js +15 -0
  53. package/dist/mcp/runtime.js +81 -0
  54. package/dist/mcp/server.js +410 -0
  55. package/dist/mcp/team-skill.js +63 -0
  56. package/dist/mcp/update-notice.js +75 -0
  57. package/dist/mcp/version.js +1 -0
  58. package/dist/schema/accountRequestMethods.js +1 -0
  59. package/dist/schema/boundedBody.js +30 -0
  60. package/dist/schema/cronValidator.js +150 -0
  61. package/dist/schema/platformApiKey.js +14 -0
  62. package/dist/schema/platformAppAuth.js +11 -0
  63. package/dist/schema/platformBillingConstants.js +4 -0
  64. package/dist/schema/platformCapabilityFamilies.js +293 -0
  65. package/dist/schema/platformConnectionCatalog.js +39 -0
  66. package/dist/schema/platformConnectionPolicy.js +33 -0
  67. package/dist/schema/platformCustomTools.js +148 -0
  68. package/dist/schema/platformEndUserApi.js +62 -0
  69. package/dist/schema/platformFunding.js +10 -0
  70. package/dist/schema/platformHttpConstraints.js +12 -0
  71. package/dist/schema/platformLocalSetup.js +25 -0
  72. package/dist/schema/platformMcpTools.js +7 -0
  73. package/dist/schema/platformMetaTools.js +63 -0
  74. package/dist/schema/platformMonitorSchedule.js +123 -0
  75. package/dist/schema/platformMonitors.js +159 -0
  76. package/dist/schema/platformOAuth.js +13 -0
  77. package/dist/schema/platformProjectPermissions.js +33 -0
  78. package/dist/schema/platformPublicExecution.js +202 -21
  79. package/dist/schema/platformRoutes.js +122 -0
  80. package/dist/schema/platformSkills.js +11 -0
  81. package/dist/schema/platformTeamSecretName.js +3 -0
  82. package/dist/schema/platformTeamSkillSlug.js +1 -0
  83. package/dist/schema/platformTeamSkills.js +302 -0
  84. package/dist/schema/platformToolAccess.js +62 -0
  85. package/dist/schema/platformTriggers.js +153 -0
  86. package/dist/schema/platformWorkflows.js +100 -0
  87. package/dist/schema/scheduleTimeZone.js +15 -0
  88. package/dist/schema/toolDiscovery.js +71 -0
  89. package/dist/schema/toolInputRepair.js +122 -0
  90. package/dist/schema/toolResultContext.js +51 -0
  91. package/dist/schema/untrustedContent.js +35 -0
  92. package/npm-shrinkwrap.json +73 -0
  93. 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 --summary
19
- noimos-platform tool web_search
20
- noimos-platform quote web_search '{"query":"content marketing"}'
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
- Use execution, executions, wait, and download to recover results.
27
- Discovery and quotes do not start paid work.
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
- ## Media understanding and transcription
30
-
31
- Use analyze_video for agentic video understanding, analyze_image for image/OCR
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.
@@ -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
- const manifest = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8"));
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 { runCli } = await import("../dist/cli/cli.js");
10
- process.exitCode = await runCli(args, process.env, console.log, console.error);
8
+ const { runNoimosPlatformCli } = await import("../dist/cli/noimos-cli.js");
9
+ process.exitCode = await runNoimosPlatformCli(args, process.env, console.log, console.error);
11
10
  }