procler 0.2.0__py3-none-any.whl
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.
- procler/__init__.py +3 -0
- procler/__main__.py +6 -0
- procler/api/__init__.py +5 -0
- procler/api/app.py +261 -0
- procler/api/deps.py +21 -0
- procler/api/routes/__init__.py +5 -0
- procler/api/routes/config.py +290 -0
- procler/api/routes/groups.py +62 -0
- procler/api/routes/logs.py +43 -0
- procler/api/routes/processes.py +185 -0
- procler/api/routes/recipes.py +69 -0
- procler/api/routes/snippets.py +134 -0
- procler/api/routes/ws.py +459 -0
- procler/cli.py +1478 -0
- procler/config/__init__.py +65 -0
- procler/config/changelog.py +148 -0
- procler/config/loader.py +256 -0
- procler/config/schema.py +315 -0
- procler/core/__init__.py +54 -0
- procler/core/context_base.py +117 -0
- procler/core/context_docker.py +384 -0
- procler/core/context_local.py +287 -0
- procler/core/daemon_detector.py +325 -0
- procler/core/events.py +74 -0
- procler/core/groups.py +419 -0
- procler/core/health.py +280 -0
- procler/core/log_tailer.py +262 -0
- procler/core/process_manager.py +1277 -0
- procler/core/recipes.py +330 -0
- procler/core/snippets.py +231 -0
- procler/core/variable_substitution.py +65 -0
- procler/db.py +96 -0
- procler/logging.py +41 -0
- procler/models.py +130 -0
- procler/py.typed +0 -0
- procler/settings.py +29 -0
- procler/static/assets/AboutView-BwZnsfpW.js +4 -0
- procler/static/assets/AboutView-UHbxWXcS.css +1 -0
- procler/static/assets/Code-HTS-H1S6.js +74 -0
- procler/static/assets/ConfigView-CGJcmp9G.css +1 -0
- procler/static/assets/ConfigView-aVtbRDf8.js +1 -0
- procler/static/assets/DashboardView-C5jw9Nsd.css +1 -0
- procler/static/assets/DashboardView-Dab7Cu9v.js +1 -0
- procler/static/assets/DataTable-z39TOAa4.js +746 -0
- procler/static/assets/DescriptionsItem-B2E8YbqJ.js +74 -0
- procler/static/assets/Divider-Dk-6aD2Y.js +42 -0
- procler/static/assets/Empty-MuygEHZM.js +24 -0
- procler/static/assets/Grid-CZ9QVKAT.js +1 -0
- procler/static/assets/GroupsView-BALG7i1X.js +1 -0
- procler/static/assets/GroupsView-gXAI1CVC.css +1 -0
- procler/static/assets/Input-e0xaxoWE.js +259 -0
- procler/static/assets/PhArrowsClockwise.vue-DqDg31az.js +1 -0
- procler/static/assets/PhCheckCircle.vue-Fwj9sh9m.js +1 -0
- procler/static/assets/PhEye.vue-JcPHciC2.js +1 -0
- procler/static/assets/PhPlay.vue-CZm7Gy3u.js +1 -0
- procler/static/assets/PhPlus.vue-yTWqKlSh.js +1 -0
- procler/static/assets/PhStop.vue-DxsqwIki.js +1 -0
- procler/static/assets/PhTrash.vue-DcqQbN1_.js +125 -0
- procler/static/assets/PhXCircle.vue-BXWmrabV.js +1 -0
- procler/static/assets/ProcessDetailView-DDbtIWq9.css +1 -0
- procler/static/assets/ProcessDetailView-DPtdNV-q.js +1 -0
- procler/static/assets/ProcessesView-B3a6Umur.js +1 -0
- procler/static/assets/ProcessesView-goLmghbJ.css +1 -0
- procler/static/assets/RecipesView-D2VxdneD.js +166 -0
- procler/static/assets/RecipesView-DXnFDCK4.css +1 -0
- procler/static/assets/Select-BBR17AHq.js +317 -0
- procler/static/assets/SnippetsView-B3a9q3AI.css +1 -0
- procler/static/assets/SnippetsView-DBCB2yGq.js +1 -0
- procler/static/assets/Spin-BXTjvFUk.js +90 -0
- procler/static/assets/Tag-Bh_qV63A.js +71 -0
- procler/static/assets/changelog-KkTT4H9-.js +1 -0
- procler/static/assets/groups-Zu-_v8ey.js +1 -0
- procler/static/assets/index-BsN-YMXq.css +1 -0
- procler/static/assets/index-BzW1XhyH.js +1282 -0
- procler/static/assets/procler-DOrSB1Vj.js +1 -0
- procler/static/assets/recipes-1w5SseGb.js +1 -0
- procler/static/index.html +17 -0
- procler/static/procler.png +0 -0
- procler-0.2.0.dist-info/METADATA +545 -0
- procler-0.2.0.dist-info/RECORD +83 -0
- procler-0.2.0.dist-info/WHEEL +4 -0
- procler-0.2.0.dist-info/entry_points.txt +2 -0
- procler-0.2.0.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{M as h,r,p as w}from"./index-BzW1XhyH.js";const y=h("config",()=>{const t=r(null),o=r([]),c=r([]),n=r(!1),e=r(null),i=w(()=>{var a;return((a=t.value)==null?void 0:a.config_exists)??!1});async function l(){n.value=!0,e.value=null;try{const s=await(await fetch("/api/config")).json();s.success?t.value=s.data:e.value=s.error}catch(a){e.value=String(a)}finally{n.value=!1}}async function f(){n.value=!0,e.value=null;try{const s=await(await fetch("/api/config/processes")).json();s.success?o.value=s.data.processes:e.value=s.error}catch(a){e.value=String(a)}finally{n.value=!1}}async function g(a=50){var s;n.value=!0,e.value=null;try{const u=await(await fetch(`/api/config/changelog?tail=${a}&format=raw`)).json();if(u.success){const d=Array.isArray((s=u.data)==null?void 0:s.entries)?u.data.entries:[];c.value=d.filter(v=>v!=null)}else e.value=u.error}catch(m){e.value=String(m)}finally{n.value=!1}}async function p(){n.value=!0,e.value=null;try{const s=await(await fetch("/api/config/reload",{method:"POST"})).json();return s.success&&await l(),s}catch(a){return e.value=String(a),{success:!1,error:String(a)}}finally{n.value=!1}}return{info:t,processes:o,changelog:c,loading:n,error:e,isConfigured:i,fetchInfo:l,fetchProcesses:f,fetchChangelog:g,reloadConfig:p}}),$=/\]\s+(\w+)/;function S(t){const o=t.match($);return(o==null?void 0:o[1])??""}function _(t){return typeof t=="string"?S(t).toUpperCase():(t.action??"").toUpperCase()}function A(t){if(typeof t=="string")return t;const o=t.details&&Object.keys(t.details).length>0?JSON.stringify(t.details):"{}";return`[${t.timestamp}] ${t.action} ${t.entity_type}:${t.entity_name} ${o}`}function T(t){if(typeof t=="string"){const i=t.match(/\[([^\]]+)\]\s+(\w+)\s+(.+)/);if(i){const l=new Date(i[1]),f=i[2].toLowerCase(),g=i[3];return`${l.toLocaleTimeString()} - ${f} ${g.split("{")[0].trim()}`}return t}const o=new Date(t.timestamp),c=Number.isNaN(o.getTime())?t.timestamp:o.toLocaleTimeString(),n=t.action?t.action.toLowerCase():"update",e=t.entity_type&&t.entity_name?`${t.entity_type}:${t.entity_name}`:"";return e?`${c} - ${n} ${e}`:`${c} - ${n}`}export{A as a,T as f,_ as g,y as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{M as d,r,p as g}from"./index-BzW1XhyH.js";const h=d("groups",()=>{const u=r([]),l=r(null),e=r(!1),s=r(null),o=r(null),c=g(()=>u.value.length);async function p(){e.value=!0,s.value=null;try{const a=await(await fetch("/api/groups")).json();a.success?u.value=a.data.groups:s.value=a.error}catch(t){s.value=String(t)}finally{e.value=!1}}async function i(t){e.value=!0,s.value=null;try{const n=await(await fetch(`/api/groups/${t}/status`)).json();n.success?l.value=n.data:s.value=n.error}catch(a){s.value=String(a)}finally{e.value=!1}}async function f(t){o.value=t;try{return await(await fetch(`/api/groups/${t}/start`,{method:"POST"})).json()}finally{o.value=null}}async function v(t){o.value=t;try{return await(await fetch(`/api/groups/${t}/stop`,{method:"POST"})).json()}finally{o.value=null}}return{groups:u,currentGroupStatus:l,loading:e,error:s,operationInProgress:o,groupCount:c,fetchGroups:p,fetchGroupStatus:i,startGroup:f,stopGroup:v}});export{h as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.shortcuts-list[data-v-1d9e0227]{display:flex;flex-direction:column;gap:1.5rem}.shortcuts-section h4[data-v-1d9e0227]{margin:0 0 .75rem;font-size:.8rem;text-transform:uppercase;letter-spacing:.1em;color:var(--n-text-color-3)}.shortcut-row[data-v-1d9e0227]{display:flex;align-items:center;gap:1rem;padding:.375rem 0}.shortcut-key[data-v-1d9e0227]{display:inline-flex;align-items:center;justify-content:center;min-width:60px;padding:.25rem .5rem;font-family:var(--n-font-family-mono);font-size:.85rem;background:var(--n-code-color);border:1px solid var(--n-border-color);border-radius:4px;color:var(--n-text-color)}.shortcut-desc[data-v-1d9e0227]{color:var(--n-text-color-2);font-size:.9rem}.language-button[data-v-c1663562]{color:var(--n-text-color-2)}.language-button[data-v-c1663562]:hover{color:var(--n-primary-color)}.app-layout[data-v-519026ec]{min-height:100vh}.app-header[data-v-519026ec]{padding:0 1.5rem;background:var(--n-card-color)}.header-content[data-v-519026ec]{display:flex;align-items:center;gap:2rem;height:56px}.logo[data-v-519026ec]{display:flex;align-items:center;gap:.5rem;color:var(--n-primary-color);text-decoration:none;transition:opacity .15s ease}.logo[data-v-519026ec]:hover{opacity:.85}.logo-text[data-v-519026ec]{font-family:Space Grotesk,sans-serif;font-size:1.25rem;font-weight:600;letter-spacing:.02em}.app-content[data-v-519026ec]{padding:1.5rem}.header-spacer[data-v-519026ec]{flex:1}.connection-indicator[data-v-519026ec]{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;cursor:default;transition:all .2s ease}.connection-indicator.connected[data-v-519026ec]{color:var(--n-success-color);background:#52c41a26;box-shadow:0 0 14px #52c41a59}.connection-indicator.connecting[data-v-519026ec]{color:var(--n-warning-color);background:#faad141a}.connection-indicator.disconnected[data-v-519026ec]{color:var(--n-text-color-3);background:transparent}.connection-indicator.error[data-v-519026ec]{color:var(--n-error-color);background:#ff4d4f1a}.spin[data-v-519026ec]{animation:spin-519026ec 1s linear infinite}@keyframes spin-519026ec{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:root{--ds-font-heading: "Space Grotesk", Inter, system-ui, sans-serif}html,body{margin:0;padding:0;background:var(--n-body-color);color:var(--n-text-color-1);font-family:var(--n-font-family);line-height:var(--n-line-height);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}h1,h2,h3{font-family:var(--ds-font-heading);color:var(--n-primary-color);line-height:1.15;letter-spacing:.02em;margin:2rem 0 .5rem}h1{font-size:2.25rem}h2{font-size:1.75rem}h3{font-size:1.35rem}a{color:var(--n-a-color, var(--n-primary-color));text-decoration:underline;text-decoration-thickness:.1em}a:hover{opacity:.9}pre,code{font-family:var(--n-font-family-mono)}pre{background:var(--n-code-color);border-radius:8px;padding:1rem;overflow-x:auto}:focus-visible{outline:2px solid var(--n-primary-color);outline-offset:2px}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
|