@aiaiai-pt/frankctl 0.7.1 → 0.7.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/CHANGELOG.md CHANGED
@@ -3,6 +3,15 @@
3
3
  All notable changes to `@aiaiai-pt/frankctl` are documented here. This project
4
4
  adheres to [Semantic Versioning](https://semver.org/).
5
5
 
6
+ ## 0.7.2
7
+
8
+ - Make the CIRA regional-transport integration self-contained by declaring the
9
+ existing reference-layer WFS Source, its exact per-stream primary keys, and
10
+ a page-aligned 500-row iterator bound for the geometry-heavy route layer.
11
+ - Promote the three current-box-proven regional components into the default
12
+ 50-document render; the stale schedule Stream remains explicitly disabled
13
+ and regional `stop_time` remains excluded under #592.
14
+
6
15
  ## 0.7.1
7
16
 
8
17
  - Promote the current-box-proven CIRA air-quality station and observation
package/dist/index.js CHANGED
@@ -361,7 +361,7 @@ Parameters:
361
361
  Components:
362
362
  `),q(Object.entries(a.components).map(([c,l])=>({component:c,status:l.status,manifests:l.manifests.join(","),required_sources:l.required_sources.join(",")})),[{key:"component",header:"COMPONENT"},{key:"status",header:"STATUS"},{key:"manifests",header:"MANIFESTS"},{key:"required_sources",header:"REQUIRED SOURCES"}])}),e.command("render <name>").description("Render a template pack to apply-ready frank.platform/v1 YAML").option("-c, --component <name>","render one component; repeat for an explicit subset",D$,[]).option("--all","render live-proven and declared-pending components").option("--set <key=value>","override a declared template parameter; repeat as needed",D$,[]).option("-o, --output <file>","write rendered YAML to a file").action((r,i)=>{let n=aa(r),o=N$(n,{all:!!i.all,components:i.component,parameters:wA(i.set)}),s=C$(o.documents);if(o.pendingComponents.length>0&&process.stderr.write(`warning: rendering declared_pending components: ${o.pendingComponents.join(", ")}
363
363
  `),i.output){$A.writeFileSync(i.output,s,{encoding:"utf8",mode:384}),process.stderr.write(`wrote ${i.output}
364
- `);return}process.stdout.write(s)})}var SA="0.7.1";function xA(){let t=new Mm;return t.name("frankctl").description("Frank CLI \u2014 scriptable access to the Frank API").version(SA).option("-p, --profile <name>","config profile to use").option("--json","emit machine-readable JSON output").option("-v, --verbose","verbose logging").option("-q, --quiet","suppress non-error output").option("--no-color","disable ANSI colors").option("--api-url <url>","override the API base URL").showHelpAfterError(),Db(t),Rb(t),Lb(t),Wb(t),Hb(t),g$(t),y$(t),v$(t),_$(t),b$(t),$$(t),k$(t),x$(t),O$(t),j$(t),t}function EU(t){return t.optsWithGlobals()}function NU(t){return new Hn({verbose:t.verbose??!1,quiet:t.quiet??!1,color:t.color!==!1})}async function IA(t){let e=xA();e.exitOverride();try{return await e.parseAsync(t),0}catch(r){if(r instanceof w)return process.stderr.write(`error: ${r.message}
364
+ `);return}process.stdout.write(s)})}var SA="0.7.2";function xA(){let t=new Mm;return t.name("frankctl").description("Frank CLI \u2014 scriptable access to the Frank API").version(SA).option("-p, --profile <name>","config profile to use").option("--json","emit machine-readable JSON output").option("-v, --verbose","verbose logging").option("-q, --quiet","suppress non-error output").option("--no-color","disable ANSI colors").option("--api-url <url>","override the API base URL").showHelpAfterError(),Db(t),Rb(t),Lb(t),Wb(t),Hb(t),g$(t),y$(t),v$(t),_$(t),b$(t),$$(t),k$(t),x$(t),O$(t),j$(t),t}function EU(t){return t.optsWithGlobals()}function NU(t){return new Hn({verbose:t.verbose??!1,quiet:t.quiet??!1,color:t.color!==!1})}async function IA(t){let e=xA();e.exitOverride();try{return await e.parseAsync(t),0}catch(r){if(r instanceof w)return process.stderr.write(`error: ${r.message}
365
365
  `),r.exitCode;let i=r;return i.code==="commander.helpDisplayed"||i.code==="commander.version"?0:i.code?.startsWith("commander.")?(i.message&&process.stderr.write(`${i.message}
366
366
  `),2):(process.stderr.write(`error: ${i.message??String(r)}
367
367
  `),1)}}function OA(){try{let t=kA(process.argv[1]??""),e=new URL(import.meta.url).pathname;return t===e}catch{return!1}}OA()&&IA(process.argv).then(t=>process.exit(t));export{xA as buildProgram,IA as main,NU as makeLogger,EU as resolveGlobalOptions};
@@ -0,0 +1,55 @@
1
+ apiVersion: frank.platform/v1
2
+ kind: Source
3
+ metadata:
4
+ name: cira-bdtransportes-rede
5
+ spec:
6
+ name: cira-bdtransportes-rede
7
+ description: Canonical CIRA regional transport reference layers; manual full-refresh replacement only.
8
+ pattern_id: geoserver_wfs
9
+ max_items_per_chunk: 500
10
+ source_config:
11
+ base_url: https://transportes.regiaodeaveiro.pt/geoserver
12
+ workspace: cimo
13
+ resources:
14
+ - CarreirasTotal
15
+ - ParagensPublicoGeral
16
+ - municipios
17
+ - freguesias
18
+ wfs_version: 2.0.0
19
+ srs_name: EPSG:4326
20
+ page_size: 500
21
+ sync_mode: iterator
22
+ schedule_type: manual
23
+ streams:
24
+ - name: CarreirasTotal
25
+ sync_mode: full_refresh
26
+ write_disposition: replace
27
+ primary_key_path:
28
+ - coda
29
+ is_enabled: true
30
+ - name: ParagensPublicoGeral
31
+ sync_mode: full_refresh
32
+ write_disposition: replace
33
+ primary_key_path:
34
+ - IdParagem
35
+ is_enabled: true
36
+ - name: municipios
37
+ sync_mode: full_refresh
38
+ write_disposition: replace
39
+ primary_key_path:
40
+ - fid
41
+ is_enabled: true
42
+ - name: freguesias
43
+ sync_mode: full_refresh
44
+ write_disposition: replace
45
+ primary_key_path:
46
+ - dicofre
47
+ is_enabled: true
48
+ - name: ParagensTotalSchedule
49
+ sync_mode: full_refresh
50
+ write_disposition: replace
51
+ primary_key_path:
52
+ - trip_id
53
+ - Ordem
54
+ - IdParagem
55
+ is_enabled: false
@@ -64,14 +64,14 @@ spec:
64
64
  - 601
65
65
  regional-transport-core:
66
66
  title: Regional transport organizations, freguesias, routes, and stops
67
- status: declared_pending
67
+ status: live_proven
68
68
  manifests:
69
+ - 00_regional_transport_rede_source.yaml
69
70
  - 01_organization.yaml
70
71
  - 02_freguesia.yaml
71
72
  - 03_transit_route.yaml
72
73
  - 04_transit_stop.yaml
73
- required_sources:
74
- - cira-bdtransportes-rede
74
+ required_sources: []
75
75
  issues:
76
76
  - 577
77
77
  - 580
@@ -89,7 +89,7 @@ spec:
89
89
  - 591
90
90
  regional-transport-trips:
91
91
  title: Regional transport schedule and trips
92
- status: declared_pending
92
+ status: live_proven
93
93
  manifests:
94
94
  - 07_transit_trip.yaml
95
95
  required_sources: []
@@ -100,7 +100,7 @@ spec:
100
100
  - 592
101
101
  regional-transport-avl:
102
102
  title: Regional transport current vehicle positions
103
- status: declared_pending
103
+ status: live_proven
104
104
  manifests:
105
105
  - 08_vehicle_position.yaml
106
106
  required_sources: []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiaiai-pt/frankctl",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "Terminal-first client for the Frank Low-Code Pipeline platform",
5
5
  "homepage": "https://franksdocs.nomadriver.co",
6
6
  "repository": {