alphamilk 0.0.1 → 0.0.3
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/dist/cli.js +11 -11
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -229,17 +229,17 @@ var playbookCommand = Command.make(
|
|
|
229
229
|
yield* Console2.log(response);
|
|
230
230
|
})
|
|
231
231
|
).pipe(Command.withDescription("Open a playbook or its report template"));
|
|
232
|
-
var
|
|
233
|
-
Args.withDescription("
|
|
232
|
+
var probeSlug = Args.text({ name: "slug" }).pipe(
|
|
233
|
+
Args.withDescription("Probe slug (e.g., serp-google, ranked-keywords)")
|
|
234
234
|
);
|
|
235
|
-
var
|
|
235
|
+
var probeParams = Options.keyValueMap("param").pipe(
|
|
236
236
|
Options.withAlias("p"),
|
|
237
|
-
Options.withDescription("
|
|
237
|
+
Options.withDescription("Probe parameters as key=value pairs (repeat for multiple)"),
|
|
238
238
|
Options.optional
|
|
239
239
|
);
|
|
240
|
-
var
|
|
241
|
-
"
|
|
242
|
-
{ slug:
|
|
240
|
+
var probeCommand = Command.make(
|
|
241
|
+
"probe",
|
|
242
|
+
{ slug: probeSlug, params: probeParams },
|
|
243
243
|
({ slug, params }) => Effect3.gen(function* () {
|
|
244
244
|
const session = yield* requireSession;
|
|
245
245
|
const queryParams = {};
|
|
@@ -248,14 +248,14 @@ var skillCommand = Command.make(
|
|
|
248
248
|
queryParams[k] = v;
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
|
-
const response = yield*
|
|
251
|
+
const response = yield* apiPost(
|
|
252
252
|
session.baseUrl,
|
|
253
|
-
`/milk/
|
|
253
|
+
`/milk/probe/${session.sessionId}/${slug}`,
|
|
254
254
|
queryParams
|
|
255
255
|
).pipe(handleApiError("Skill execution failed"));
|
|
256
256
|
yield* Console2.log(response);
|
|
257
257
|
})
|
|
258
|
-
).pipe(Command.withDescription("Execute a research
|
|
258
|
+
).pipe(Command.withDescription("Execute a research probe"));
|
|
259
259
|
var reportSaveName = Options.text("name").pipe(
|
|
260
260
|
Options.withAlias("n"),
|
|
261
261
|
Options.withDescription("Report title/name")
|
|
@@ -404,7 +404,7 @@ var root = Command.make("alphamilk").pipe(
|
|
|
404
404
|
sessionCommand,
|
|
405
405
|
playbooksCommand,
|
|
406
406
|
playbookCommand,
|
|
407
|
-
|
|
407
|
+
probeCommand,
|
|
408
408
|
reportCommand,
|
|
409
409
|
artifactCommand
|
|
410
410
|
])
|