perstack 0.0.102 → 0.0.104
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/bin/cli.js +24 -2
- package/dist/bin/cli.js.map +1 -1
- package/package.json +4 -4
package/dist/bin/cli.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env
|
|
1
|
+
#!/usr/bin/env node
|
|
2
2
|
import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM, r as __exportAll, t as __commonJSMin } from "../chunk-D_gEzPfs.js";
|
|
3
3
|
import { $ as lazy, A as runCommandInputSchema, At as PerstackError, B as resolveModelTier, C as runSettingSchema, Ct as safeParse$1, D as stopRunByDelegate, Dt as normalizeParams, E as startRun, Et as defineLazy, F as expertSchema, G as _instanceof, H as ZodIssueCode$1, I as isCoordinatorExpert, J as array$1, K as _null, L as validateDelegation, M as perstackConfigSchema, Mt as defaultPerstackApiBaseUrl, N as lockfileSchema, Nt as defaultTimeout, O as stopRunByError, Ot as $constructor, P as jobSchema, Pt as createId, Q as intersection, R as checkpointSchema, S as runParamsSchema, St as parseAsync, T as startGeneration, Tt as clone, U as ZodOptional$1, V as number$1, W as _enum, X as custom, Y as boolean, Z as discriminatedUnion, _ as parseExpertKey, _t as describe$1, a as validateEventFilter, at as optional, b as resumeFromStop, bt as $ZodType, c as createBaseToolActivity, ct as strictObject, d as completeRun, dt as union, et as literal, f as continueToNextStep, ft as unknown, g as finishToolCall, gt as toJSONSchema, h as finishMcpTools, ht as datetime, i as createFilteredEventListener, it as object$2, j as startCommandInputSchema, jt as defaultMaxRetries, k as stopRunByInteractiveTool, kt as NEVER, l as createGeneralToolActivity, lt as string, m as createStreamingEvent, mt as safeParseAsync$2, n as parseWithFriendlyError, nt as never, o as getFilteredEnv, ot as preprocess, p as createRuntimeEvent, pt as url, q as any, r as truncateText$1, rt as number, s as BASE_SKILL_PREFIX, st as record, t as createApiClient, tt as looseObject, u as callTools, ut as tuple, v as proceedToInteractiveTools, vt as meta$1, w as skipDelegates, wt as safeParseAsync$1, x as retry, xt as parse$1, y as resolveToolResults, yt as $ZodObject, z as knownModels } from "../dist-Bm8UQoRz.js";
|
|
4
4
|
import { t as require_token_error } from "../token-error-_b-fOBh2.js";
|
|
@@ -21133,6 +21133,25 @@ function createStudioClient(options) {
|
|
|
21133
21133
|
});
|
|
21134
21134
|
}
|
|
21135
21135
|
|
|
21136
|
+
//#endregion
|
|
21137
|
+
//#region ../../packages/studio/src/application-handlers.ts
|
|
21138
|
+
async function applicationsListHandler(options) {
|
|
21139
|
+
const result = await createStudioClient({
|
|
21140
|
+
apiKey: resolveApiKey(options.apiKey),
|
|
21141
|
+
baseUrl: options.baseUrl
|
|
21142
|
+
}).applications.list();
|
|
21143
|
+
if (!result.ok) throw new PerstackError(`Failed to list applications: ${result.error.message}`);
|
|
21144
|
+
const { applications } = result.data.data;
|
|
21145
|
+
if (applications.length === 0) {
|
|
21146
|
+
console.log("No applications found.");
|
|
21147
|
+
return;
|
|
21148
|
+
}
|
|
21149
|
+
for (const app of applications) {
|
|
21150
|
+
console.log(` ${app.name}`);
|
|
21151
|
+
console.log(` ID: ${app.id}`);
|
|
21152
|
+
}
|
|
21153
|
+
}
|
|
21154
|
+
|
|
21136
21155
|
//#endregion
|
|
21137
21156
|
//#region ../../packages/studio/src/draft-handlers.ts
|
|
21138
21157
|
async function expertListHandler(options) {
|
|
@@ -119756,7 +119775,7 @@ async function startHandler(expertKey, query, options, handlerOptions) {
|
|
|
119756
119775
|
//#endregion
|
|
119757
119776
|
//#region package.json
|
|
119758
119777
|
var name = "perstack";
|
|
119759
|
-
var version = "0.0.
|
|
119778
|
+
var version = "0.0.104";
|
|
119760
119779
|
var description = "PerStack CLI";
|
|
119761
119780
|
|
|
119762
119781
|
//#endregion
|
|
@@ -119853,6 +119872,9 @@ expertCmd.command("unpublish").description("Make an expert scope private").argum
|
|
|
119853
119872
|
expertCmd.command("yank").description("Deprecate a specific expert version").argument("<key>", "Expert key with version (e.g., my-expert@1.0.0)").action(async function(key) {
|
|
119854
119873
|
await expertYankHandler(key, getParentOptions(this));
|
|
119855
119874
|
});
|
|
119875
|
+
program.command("application").description("Manage applications on Perstack API").option("--api-key <key>", "Perstack API key (default: PERSTACK_API_KEY env)").option("--base-url <url>", "Custom API base URL").command("list").description("List applications").action(async function() {
|
|
119876
|
+
await applicationsListHandler(getParentOptions(this));
|
|
119877
|
+
});
|
|
119856
119878
|
program.parseAsync().catch((error) => {
|
|
119857
119879
|
if (error instanceof PerstackError) {
|
|
119858
119880
|
console.error(error.message);
|