@relyio/cli 0.2.1 → 0.2.2
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/index.js +47 -58
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -4060,12 +4060,6 @@ var init_deploy_service = __esm({
|
|
|
4060
4060
|
};
|
|
4061
4061
|
}
|
|
4062
4062
|
});
|
|
4063
|
-
|
|
4064
|
-
// ../../domain/schema/dist/chunk-QSWR2YJN.js
|
|
4065
|
-
var init_chunk_QSWR2YJN = __esm({
|
|
4066
|
-
"../../domain/schema/dist/chunk-QSWR2YJN.js"() {
|
|
4067
|
-
}
|
|
4068
|
-
});
|
|
4069
4063
|
function normalizeReferenceTargets(to) {
|
|
4070
4064
|
if (to == null) return [];
|
|
4071
4065
|
return Array.isArray(to) ? [...to] : [to];
|
|
@@ -4126,15 +4120,6 @@ var init_chunk_YL47KAP2 = __esm({
|
|
|
4126
4120
|
});
|
|
4127
4121
|
}
|
|
4128
4122
|
});
|
|
4129
|
-
|
|
4130
|
-
// ../../domain/schema/dist/chunk-ILN7T4KB.js
|
|
4131
|
-
var init_chunk_ILN7T4KB = __esm({
|
|
4132
|
-
"../../domain/schema/dist/chunk-ILN7T4KB.js"() {
|
|
4133
|
-
init_chunk_QSWR2YJN();
|
|
4134
|
-
init_chunk_YL47KAP2();
|
|
4135
|
-
init_chunk_NB2NTUXG();
|
|
4136
|
-
}
|
|
4137
|
-
});
|
|
4138
4123
|
var init_chunk_KWUTF26B = __esm({
|
|
4139
4124
|
"../../domain/schema/dist/chunk-KWUTF26B.js"() {
|
|
4140
4125
|
init_chunk_YL47KAP2();
|
|
@@ -4369,14 +4354,34 @@ var init_chunk_KWUTF26B = __esm({
|
|
|
4369
4354
|
z.record(z.any());
|
|
4370
4355
|
}
|
|
4371
4356
|
});
|
|
4357
|
+
var init_chunk_XTMEVLMJ = __esm({
|
|
4358
|
+
"../../domain/schema/dist/chunk-XTMEVLMJ.js"() {
|
|
4359
|
+
}
|
|
4360
|
+
});
|
|
4361
|
+
|
|
4362
|
+
// ../../domain/schema/dist/chunk-QSWR2YJN.js
|
|
4363
|
+
var init_chunk_QSWR2YJN = __esm({
|
|
4364
|
+
"../../domain/schema/dist/chunk-QSWR2YJN.js"() {
|
|
4365
|
+
}
|
|
4366
|
+
});
|
|
4367
|
+
|
|
4368
|
+
// ../../domain/schema/dist/chunk-N5M2EZW6.js
|
|
4369
|
+
var init_chunk_N5M2EZW6 = __esm({
|
|
4370
|
+
"../../domain/schema/dist/chunk-N5M2EZW6.js"() {
|
|
4371
|
+
init_chunk_YL47KAP2();
|
|
4372
|
+
init_chunk_QSWR2YJN();
|
|
4373
|
+
init_chunk_NB2NTUXG();
|
|
4374
|
+
}
|
|
4375
|
+
});
|
|
4372
4376
|
var init_dist = __esm({
|
|
4373
4377
|
"../../domain/schema/dist/index.js"() {
|
|
4374
|
-
init_chunk_ILN7T4KB();
|
|
4375
|
-
init_chunk_QSWR2YJN();
|
|
4376
4378
|
init_chunk_KWUTF26B();
|
|
4377
4379
|
init_chunk_OOMXKJZA();
|
|
4380
|
+
init_chunk_XTMEVLMJ();
|
|
4378
4381
|
init_chunk_VGBOPF6G();
|
|
4382
|
+
init_chunk_N5M2EZW6();
|
|
4379
4383
|
init_chunk_YL47KAP2();
|
|
4384
|
+
init_chunk_QSWR2YJN();
|
|
4380
4385
|
init_chunk_NB2NTUXG();
|
|
4381
4386
|
new Set(FORBIDDEN_ASSET_TYPE_FIELD_TYPES);
|
|
4382
4387
|
}
|
|
@@ -6659,16 +6664,23 @@ var init_diff_service = __esm({
|
|
|
6659
6664
|
}
|
|
6660
6665
|
});
|
|
6661
6666
|
|
|
6662
|
-
// src/ai/core/
|
|
6667
|
+
// src/ai/core/gateway-url.ts
|
|
6663
6668
|
function getGatewayUrl() {
|
|
6664
6669
|
if (process.env.RELYIO_AI_GATEWAY_URL) {
|
|
6665
6670
|
return process.env.RELYIO_AI_GATEWAY_URL.replaceAll("http://localhost", "http://127.0.0.1");
|
|
6666
6671
|
}
|
|
6667
|
-
if (process.env.RELYIO_API_URL)
|
|
6668
|
-
|
|
6669
|
-
}
|
|
6670
|
-
return "https://ai-gateway.relyio.com";
|
|
6672
|
+
if (process.env.RELYIO_API_URL) return LOCAL_GATEWAY_URL;
|
|
6673
|
+
return PRODUCTION_GATEWAY_URL;
|
|
6671
6674
|
}
|
|
6675
|
+
var PRODUCTION_GATEWAY_URL, LOCAL_GATEWAY_URL;
|
|
6676
|
+
var init_gateway_url = __esm({
|
|
6677
|
+
"src/ai/core/gateway-url.ts"() {
|
|
6678
|
+
PRODUCTION_GATEWAY_URL = "https://ai.relyio.com";
|
|
6679
|
+
LOCAL_GATEWAY_URL = "http://127.0.0.1:3600";
|
|
6680
|
+
}
|
|
6681
|
+
});
|
|
6682
|
+
|
|
6683
|
+
// src/ai/core/stream-client.ts
|
|
6672
6684
|
function getAuthToken3() {
|
|
6673
6685
|
const token = config_default.getAuthToken();
|
|
6674
6686
|
if (token) return token;
|
|
@@ -6680,6 +6692,7 @@ var AI_GATEWAY_PATH, MAX_RETRIES, RETRY_DELAY_MS, REQUEST_TIMEOUT_MS, GatewayStr
|
|
|
6680
6692
|
var init_stream_client = __esm({
|
|
6681
6693
|
"src/ai/core/stream-client.ts"() {
|
|
6682
6694
|
init_config();
|
|
6695
|
+
init_gateway_url();
|
|
6683
6696
|
AI_GATEWAY_PATH = "/ai/cli";
|
|
6684
6697
|
MAX_RETRIES = 2;
|
|
6685
6698
|
RETRY_DELAY_MS = 1e3;
|
|
@@ -6830,13 +6843,6 @@ var init_stream_client = __esm({
|
|
|
6830
6843
|
});
|
|
6831
6844
|
|
|
6832
6845
|
// src/ai/services/handoff-client.ts
|
|
6833
|
-
function getGatewayUrl2() {
|
|
6834
|
-
if (process.env.RELYIO_AI_GATEWAY_URL) {
|
|
6835
|
-
return process.env.RELYIO_AI_GATEWAY_URL.replaceAll("http://localhost", "http://127.0.0.1");
|
|
6836
|
-
}
|
|
6837
|
-
if (process.env.RELYIO_API_URL) return "http://127.0.0.1:3600";
|
|
6838
|
-
return "https://ai-gateway.relyio.com";
|
|
6839
|
-
}
|
|
6840
6846
|
function getAuthToken4() {
|
|
6841
6847
|
const token = config_default.getAuthToken();
|
|
6842
6848
|
return token ?? null;
|
|
@@ -6847,7 +6853,7 @@ async function fetchHandoffSummary(req) {
|
|
|
6847
6853
|
const controller = new AbortController();
|
|
6848
6854
|
const timeout = setTimeout(() => controller.abort(), REQUEST_TIMEOUT_MS2);
|
|
6849
6855
|
try {
|
|
6850
|
-
const response = await fetch(`${
|
|
6856
|
+
const response = await fetch(`${getGatewayUrl()}${AI_GATEWAY_HANDOFF_PATH}`, {
|
|
6851
6857
|
method: "POST",
|
|
6852
6858
|
headers: {
|
|
6853
6859
|
"Content-Type": "application/json",
|
|
@@ -6873,6 +6879,7 @@ var init_handoff_client = __esm({
|
|
|
6873
6879
|
"src/ai/services/handoff-client.ts"() {
|
|
6874
6880
|
init_wire();
|
|
6875
6881
|
init_config();
|
|
6882
|
+
init_gateway_url();
|
|
6876
6883
|
AI_GATEWAY_HANDOFF_PATH = "/ai/cli/handoff/summary";
|
|
6877
6884
|
REQUEST_TIMEOUT_MS2 = 15e3;
|
|
6878
6885
|
}
|
|
@@ -10205,7 +10212,7 @@ var init_banner = __esm({
|
|
|
10205
10212
|
init_dev_cockpit_context();
|
|
10206
10213
|
init_dev_cockpit_format();
|
|
10207
10214
|
init_startup_info();
|
|
10208
|
-
CLI_VERSION2 = "0.2.
|
|
10215
|
+
CLI_VERSION2 = "0.2.2" ;
|
|
10209
10216
|
BRAND_GLYPH = "\u25B6";
|
|
10210
10217
|
BRAND_NAME = "RelyIO";
|
|
10211
10218
|
LABEL_WIDTH = 9;
|
|
@@ -12459,13 +12466,6 @@ var init_agent_picker = __esm({
|
|
|
12459
12466
|
});
|
|
12460
12467
|
|
|
12461
12468
|
// src/ai/services/models-client.ts
|
|
12462
|
-
function getGatewayUrl3() {
|
|
12463
|
-
if (process.env.RELYIO_AI_GATEWAY_URL) {
|
|
12464
|
-
return process.env.RELYIO_AI_GATEWAY_URL.replaceAll("http://localhost", "http://127.0.0.1");
|
|
12465
|
-
}
|
|
12466
|
-
if (process.env.RELYIO_API_URL) return "http://127.0.0.1:3600";
|
|
12467
|
-
return "https://ai-gateway.relyio.com";
|
|
12468
|
-
}
|
|
12469
12469
|
function getAuthToken5() {
|
|
12470
12470
|
const token = config_default.getAuthToken();
|
|
12471
12471
|
if (token) return token;
|
|
@@ -12500,6 +12500,7 @@ var init_models_client = __esm({
|
|
|
12500
12500
|
"src/ai/services/models-client.ts"() {
|
|
12501
12501
|
init_wire();
|
|
12502
12502
|
init_config();
|
|
12503
|
+
init_gateway_url();
|
|
12503
12504
|
AI_GATEWAY_MODELS_PATH = "/models";
|
|
12504
12505
|
ModelsClient = class {
|
|
12505
12506
|
// In-process cache. Lifetime = CLI process. See file header for rationale.
|
|
@@ -12520,7 +12521,7 @@ var init_models_client = __esm({
|
|
|
12520
12521
|
this.cached = null;
|
|
12521
12522
|
}
|
|
12522
12523
|
async fetchModels() {
|
|
12523
|
-
const url = `${
|
|
12524
|
+
const url = `${getGatewayUrl()}${AI_GATEWAY_MODELS_PATH}`;
|
|
12524
12525
|
const response = await fetch(url, {
|
|
12525
12526
|
method: "GET",
|
|
12526
12527
|
headers: {
|
|
@@ -14621,13 +14622,6 @@ var init_use_session_persistence = __esm({
|
|
|
14621
14622
|
});
|
|
14622
14623
|
|
|
14623
14624
|
// src/ai/services/proposals-client.ts
|
|
14624
|
-
function getGatewayUrl4() {
|
|
14625
|
-
if (process.env.RELYIO_AI_GATEWAY_URL) {
|
|
14626
|
-
return process.env.RELYIO_AI_GATEWAY_URL.replaceAll("http://localhost", "http://127.0.0.1");
|
|
14627
|
-
}
|
|
14628
|
-
if (process.env.RELYIO_API_URL) return "http://127.0.0.1:3600";
|
|
14629
|
-
return "https://ai-gateway.relyio.com";
|
|
14630
|
-
}
|
|
14631
14625
|
function getAuthToken6() {
|
|
14632
14626
|
const token = config_default.getAuthToken();
|
|
14633
14627
|
if (token) return token;
|
|
@@ -14642,10 +14636,11 @@ var init_proposals_client = __esm({
|
|
|
14642
14636
|
"src/ai/services/proposals-client.ts"() {
|
|
14643
14637
|
init_wire();
|
|
14644
14638
|
init_config();
|
|
14639
|
+
init_gateway_url();
|
|
14645
14640
|
AI_GATEWAY_PROPOSALS_PATH = "/ai/proposals";
|
|
14646
14641
|
ProposalsClient = class {
|
|
14647
14642
|
async request(method, path23, init = {}) {
|
|
14648
|
-
const url = new URL(`${
|
|
14643
|
+
const url = new URL(`${getGatewayUrl()}${AI_GATEWAY_PROPOSALS_PATH}${path23}`);
|
|
14649
14644
|
if (init.query) {
|
|
14650
14645
|
for (const [k, v] of Object.entries(init.query)) url.searchParams.set(k, v);
|
|
14651
14646
|
}
|
|
@@ -19708,7 +19703,7 @@ function sandboxCommands(program2) {
|
|
|
19708
19703
|
}
|
|
19709
19704
|
|
|
19710
19705
|
// src/commands/version.ts
|
|
19711
|
-
var CLI_VERSION = "0.2.
|
|
19706
|
+
var CLI_VERSION = "0.2.2" ;
|
|
19712
19707
|
async function handleVersion(_options) {
|
|
19713
19708
|
console.log(heading("RelyIO CLI Version Information"));
|
|
19714
19709
|
const versionInfo = [
|
|
@@ -21902,7 +21897,7 @@ Configuration:
|
|
|
21902
21897
|
relyio config set dashboardUrl <url>
|
|
21903
21898
|
|
|
21904
21899
|
For local development:
|
|
21905
|
-
relyio config set dashboardUrl http://localhost:
|
|
21900
|
+
relyio config set dashboardUrl http://localhost:3920
|
|
21906
21901
|
|
|
21907
21902
|
For production:
|
|
21908
21903
|
relyio config set dashboardUrl https://dashboard.relyio.com
|
|
@@ -22932,14 +22927,8 @@ init_session_manager();
|
|
|
22932
22927
|
// src/ai/services/conversations-client.ts
|
|
22933
22928
|
init_wire();
|
|
22934
22929
|
init_config();
|
|
22930
|
+
init_gateway_url();
|
|
22935
22931
|
var AI_GATEWAY_CONVERSATIONS_PATH = "/ai/conversations";
|
|
22936
|
-
function getGatewayUrl5() {
|
|
22937
|
-
if (process.env.RELYIO_AI_GATEWAY_URL) {
|
|
22938
|
-
return process.env.RELYIO_AI_GATEWAY_URL.replaceAll("http://localhost", "http://127.0.0.1");
|
|
22939
|
-
}
|
|
22940
|
-
if (process.env.RELYIO_API_URL) return "http://127.0.0.1:3600";
|
|
22941
|
-
return "https://ai-gateway.relyio.com";
|
|
22942
|
-
}
|
|
22943
22932
|
function getAuthToken7() {
|
|
22944
22933
|
const token = config_default.getAuthToken();
|
|
22945
22934
|
if (token) return token;
|
|
@@ -22947,7 +22936,7 @@ function getAuthToken7() {
|
|
|
22947
22936
|
}
|
|
22948
22937
|
var ConversationsClient = class {
|
|
22949
22938
|
async request(method, path23, init = {}) {
|
|
22950
|
-
const url = new URL(`${
|
|
22939
|
+
const url = new URL(`${getGatewayUrl()}${AI_GATEWAY_CONVERSATIONS_PATH}${path23}`);
|
|
22951
22940
|
if (init.query) {
|
|
22952
22941
|
for (const [k, v] of Object.entries(init.query)) {
|
|
22953
22942
|
if (v === void 0) continue;
|
|
@@ -24048,7 +24037,7 @@ Examples:
|
|
|
24048
24037
|
}
|
|
24049
24038
|
|
|
24050
24039
|
// src/index.ts
|
|
24051
|
-
var CLI_VERSION3 = "0.2.
|
|
24040
|
+
var CLI_VERSION3 = "0.2.2" ;
|
|
24052
24041
|
var program = new Command();
|
|
24053
24042
|
program.name("relyio").description("RelyIO CLI - Content Management, Simplified").version(CLI_VERSION3);
|
|
24054
24043
|
registerGlobalOptions(program);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@relyio/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "RelyIO is coming soon — this package is not ready for general use yet.",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"email": "team@relyio.com"
|
|
@@ -62,14 +62,14 @@
|
|
|
62
62
|
"ink-testing-library": "^4.0.0",
|
|
63
63
|
"rimraf": "6.1.3",
|
|
64
64
|
"tsup": "8.5.1",
|
|
65
|
-
"typescript": "
|
|
65
|
+
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
66
66
|
"typescript-eslint": "8.69.0",
|
|
67
67
|
"vitest": "4.1.11",
|
|
68
68
|
"@relyio/api-contract": "0.1.0",
|
|
69
|
-
"@relyio/codegen-core": "1.0.0",
|
|
70
69
|
"@relyio/codegen-python": "0.1.0",
|
|
71
|
-
"@relyio/
|
|
70
|
+
"@relyio/codegen-core": "1.0.0",
|
|
72
71
|
"@relyio/codegen-typescript": "1.0.0",
|
|
72
|
+
"@relyio/eslint-config": "0.0.0",
|
|
73
73
|
"@relyio/schema": "0.0.1",
|
|
74
74
|
"@relyio/tenancy": "0.1.0"
|
|
75
75
|
},
|
|
@@ -83,8 +83,8 @@
|
|
|
83
83
|
"scripts": {
|
|
84
84
|
"build": "tsup && chmod +x dist/index.js",
|
|
85
85
|
"dev": "tsup --watch",
|
|
86
|
-
"lint:check": "
|
|
87
|
-
"lint:write": "
|
|
86
|
+
"lint:check": "relyio-lint",
|
|
87
|
+
"lint:write": "relyio-lint --fix",
|
|
88
88
|
"clean": "rimraf dist",
|
|
89
89
|
"type:check": "tsc --noEmit",
|
|
90
90
|
"test": "vitest run",
|